|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+BJd":function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("6MrE"),A=d.n(C)},"+QRC":function(H,F,d){"use strict";var O=d("E9nw"),x={"text/plain":"Text","text/html":"Url",default:"Text"},C="Copy to clipboard: #{key}, Enter";function A(g){var f=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return g.replace(/#{\s*key\s*}/g,f)}function S(g,f){var c,o,r,i,n,e,l=!1;f||(f={}),c=f.debug||!1;try{r=O(),i=document.createRange(),n=document.getSelection(),e=document.createElement("span"),e.textContent=g,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(a){if(a.stopPropagation(),f.format)if(a.preventDefault(),typeof a.clipboardData=="undefined"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var s=x[f.format]||x.default;window.clipboardData.setData(s,g)}else a.clipboardData.clearData(),a.clipboardData.setData(f.format,g);f.onCopy&&(a.preventDefault(),f.onCopy(a.clipboardData))}),document.body.appendChild(e),i.selectNodeContents(e),n.addRange(i);var t=document.execCommand("copy");if(!t)throw new Error("copy command was unsuccessful");l=!0}catch(a){c&&console.error("unable to copy using execCommand: ",a),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(f.format||"text",g),f.onCopy&&f.onCopy(window.clipboardData),l=!0}catch(s){c&&console.error("unable to copy using clipboardData: ",s),c&&console.error("falling back to prompt"),o=A("message"in f?f.message:C),window.prompt(o,g)}}finally{n&&(typeof n.removeRange=="function"?n.removeRange(i):n.removeAllRanges()),e&&document.body.removeChild(e),r()}return l}H.exports=S},"+TT/":function(H,F,d){var O=d("bYtY"),x=d("mFDi"),C=d("OELB"),A=C.parsePercent,S=d("7aKB"),g=O.each,f=["left","right","top","bottom","width","height"],c=[["width","left","right"],["height","top","bottom"]];function o(p,m,v,y,E){var T=0,b=0;y==null&&(y=Infinity),E==null&&(E=Infinity);var w=0;m.eachChild(function(_,I){var L=_.position,N=_.getBoundingRect(),D=m.childAt(I+1),R=D&&D.getBoundingRect(),k,M;if(p==="horizontal"){var U=N.width+(R?-R.x+N.x:0);k=T+U,k>y||_.newline?(T=0,k=U,b+=w+v,w=N.height):w=Math.max(w,N.height)}else{var B=N.height+(R?-R.y+N.y:0);M=b+B,M>E||_.newline?(T+=w+v,b=0,M=B,w=N.width):w=Math.max(w,N.width)}if(_.newline)return;L[0]=T,L[1]=b,p==="horizontal"?T=k+v:b=M+v})}var r=o,i=O.curry(o,"vertical"),n=O.curry(o,"horizontal");function e(p,m,v){var y=m.width,E=m.height,T=A(p.x,y),b=A(p.y,E),w=A(p.x2,y),_=A(p.y2,E);return(isNaN(T)||isNaN(parseFloat(p.x)))&&(T=0),(isNaN(w)||isNaN(parseFloat(p.x2)))&&(w=y),(isNaN(b)||isNaN(parseFloat(p.y)))&&(b=0),(isNaN(_)||isNaN(parseFloat(p.y2)))&&(_=E),v=S.normalizeCssArray(v||0),{width:Math.max(w-T-v[1]-v[3],0),height:Math.max(_-b-v[0]-v[2],0)}}function l(p,m,v){v=S.normalizeCssArray(v||0);var y=m.width,E=m.height,T=A(p.left,y),b=A(p.top,E),w=A(p.right,y),_=A(p.bottom,E),I=A(p.width,y),L=A(p.height,E),N=v[2]+v[0],D=v[1]+v[3],R=p.aspect;isNaN(I)&&(I=y-w-D-T),isNaN(L)&&(L=E-_-N-b),R!=null&&(isNaN(I)&&isNaN(L)&&(R>y/E?I=y*.8:L=E*.8),isNaN(I)&&(I=R*L),isNaN(L)&&(L=I/R)),isNaN(T)&&(T=y-w-I-D),isNaN(b)&&(b=E-_-L-N);switch(p.left||p.right){case"center":T=y/2-I/2-v[3];break;case"right":T=y-I-D;break}switch(p.top||p.bottom){case"middle":case"center":b=E/2-L/2-v[0];break;case"bottom":b=E-L-N;break}T=T||0,b=b||0,isNaN(I)&&(I=y-D-T-(w||0)),isNaN(L)&&(L=E-N-b-(_||0));var k=new x(T+v[3],b+v[0],I,L);return k.margin=v,k}function t(p,m,v,y,E){var T=!E||!E.hv||E.hv[0],b=!E||!E.hv||E.hv[1],w=E&&E.boundingMode||"all";if(!T&&!b)return;var _;if(w==="raw")_=p.type==="group"?new x(0,0,+m.width||0,+m.height||0):p.getBoundingRect();else if(_=p.getBoundingRect(),p.needLocalTransform()){var I=p.getLocalTransform();_=_.clone(),_.applyTransform(I)}m=l(O.defaults({width:_.width,height:_.height},m),v,y);var L=p.position,N=T?m.x-_.x:0,D=b?m.y-_.y:0;p.attr("position",w==="raw"?[N,D]:[L[0]+N,L[1]+D])}function a(p,m){return p[c[m][0]]!=null||p[c[m][1]]!=null&&p[c[m][2]]!=null}function s(p,m,v){!O.isObject(v)&&(v={});var y=v.ignoreSize;!O.isArray(y)&&(y=[y,y]);var E=b(c[0],0),T=b(c[1],1);I(c[0],p,E),I(c[1],p,T);function b(L,N){var D={},R=0,k={},M=0,U=2;if(g(L,function(W){k[W]=p[W]}),g(L,function(W){w(m,W)&&(D[W]=k[W]=m[W]),_(D,W)&&R++,_(k,W)&&M++}),y[N])return _(m,L[1])?k[L[2]]=null:_(m,L[2])&&(k[L[1]]=null),k;if(M===U||!R)return k;if(R>=U)return D;for(var B=0;B<L.length;B++){var j=L[B];if(!w(D,j)&&w(p,j)){D[j]=p[j];break}}return D}function w(L,N){return L.hasOwnProperty(N)}function _(L,N){return L[N]!=null&&L[N]!=="auto"}function I(L,N,D){g(L,function(R){N[R]=D[R]})}}function u(p){return h({},p)}function h(p,m){return m&&p&&g(f,function(v){m.hasOwnProperty(v)&&(p[v]=m[v])}),p}F.LOCATION_PARAMS=f,F.HV_NAMES=c,F.box=r,F.vbox=i,F.hbox=n,F.getAvailableSize=e,F.getLayoutRect=l,F.positionElement=t,F.sizeCalculable=a,F.mergeLayoutParam=s,F.getLayoutParams=u,F.copyLayoutParams=h},"+Zaj":function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("ugBc")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="CalendarOutlined";var c=A.forwardRef(f);F.default=c},"+d4F":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("y3Yb"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},"+eQT":function(H,F,d){"use strict";var O=d("wd/R"),x=d.n(O),C=d("Kwbf"),A={getNow:function(){return x()()},getWeekDay:function(Gt){var vr=Gt.clone().locale("en_US");return vr.weekday()+vr.localeData().firstDayOfWeek()},getYear:function(Gt){return Gt.year()},getMonth:function(Gt){return Gt.month()},getDate:function(Gt){return Gt.date()},getHour:function(Gt){return Gt.hour()},getMinute:function(Gt){return Gt.minute()},getSecond:function(Gt){return Gt.second()},addYear:function(Gt,vr){var fr=Gt.clone();return fr.add(vr,"year")},addMonth:function(Gt,vr){var fr=Gt.clone();return fr.add(vr,"month")},addDate:function(Gt,vr){var fr=Gt.clone();return fr.add(vr,"day")},setYear:function(Gt,vr){var fr=Gt.clone();return fr.year(vr)},setMonth:function(Gt,vr){var fr=Gt.clone();return fr.month(vr)},setDate:function(Gt,vr){var fr=Gt.clone();return fr.date(vr)},setHour:function(Gt,vr){var fr=Gt.clone();return fr.hour(vr)},setMinute:function(Gt,vr){var fr=Gt.clone();return fr.minute(vr)},setSecond:function(Gt,vr){var fr=Gt.clone();return fr.second(vr)},isAfter:function(Gt,vr){return Gt.isAfter(vr)},isValidate:function(Gt){return Gt.isValid()},locale:{getWeekFirstDay:function(Gt){var vr=x()().locale(Gt);return vr.localeData().firstDayOfWeek()},getWeek:function(Gt,vr){var fr=vr.clone(),Gr=fr.locale(Gt);return Gr.week()},getShortWeekDays:function(Gt){var vr=x()().locale(Gt);return vr.localeData().weekdaysMin()},getShortMonths:function(Gt){var vr=x()().locale(Gt);return vr.localeData().monthsShort()},format:function(Gt,vr,fr){var Gr=vr.clone(),Pr=Gr.locale(Gt);return Pr.format(fr)},parse:function(Gt,vr,fr){for(var Gr=[],Pr=0;Pr<fr.length;Pr+=1){var hr=fr[Pr],An=vr;if(hr.includes("wo")||hr.includes("Wo")){hr=hr.replace(/wo/g,"w").replace(/Wo/g,"W");var br=hr.match(/[-YyMmDdHhSsWwGg]+/g),pn=An.match(/[-\d]+/g);br&&pn?(hr=br.join(""),An=pn.join("")):Gr.push(hr.replace(/o/g,""))}var Kn=x()(An,hr,Gt,!0);if(Kn.isValid())return Kn}for(var Wn=0;Wn<Gr.length;Wn+=1){var Ln=x()(vr,Gr[Wn],Gt,!1);if(Ln.isValid())return Object(C.b)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),Ln}return null}}},S=A,g=d("pVnL"),f=d.n(g),c=d("q1tI"),o=d.n(c),r=d("2/Rp");function i(Je){return c.createElement(r.a,f()({size:"small",type:"primary"},Je))}var n=d("mr32");function e(Je){return c.createElement(n.a,f()({color:"blue"},Je))}var l=d("lSNA"),t=d.n(l),a=d("lwsE"),s=d.n(a),u=d("W8MJ"),h=d.n(u),p=d("7W2i"),m=d.n(p),v=d("LQ03"),y=d.n(v),E=d("TSYQ"),T=d.n(E),b=d("r/2G"),w=d.n(b),_=d("XzQk"),I=d.n(_),L=d("kbBi"),N=d.n(L),D=d("1OyB"),R=d("vuIU"),k=d("Ji7U"),M=d("LK+K"),U=d("rePB"),B=d("VTBJ"),j=d("ODXe"),W=d("6cGi"),V=d("U8pU"),z=d("4IlW"),J=c.createContext({}),Z=J,de={visibility:"hidden"};function ie(Je){var Gt=Je.prefixCls,vr=Je.prevIcon,fr=vr===void 0?"\u2039":vr,Gr=Je.nextIcon,Pr=Gr===void 0?"\u203A":Gr,hr=Je.superPrevIcon,An=hr===void 0?"\xAB":hr,br=Je.superNextIcon,pn=br===void 0?"\xBB":br,Kn=Je.onSuperPrev,Wn=Je.onSuperNext,Ln=Je.onPrev,$n=Je.onNext,Un=Je.children,ti=c.useContext(Z),Gn=ti.hideNextBtn,wi=ti.hidePrevBtn;return c.createElement("div",{className:Gt},Kn&&c.createElement("button",{type:"button",onClick:Kn,tabIndex:-1,className:"".concat(Gt,"-super-prev-btn"),style:wi?de:{}},An),Ln&&c.createElement("button",{type:"button",onClick:Ln,tabIndex:-1,className:"".concat(Gt,"-prev-btn"),style:wi?de:{}},fr),c.createElement("div",{className:"".concat(Gt,"-view")},Un),$n&&c.createElement("button",{type:"button",onClick:$n,tabIndex:-1,className:"".concat(Gt,"-next-btn"),style:Gn?de:{}},Pr),Wn&&c.createElement("button",{type:"button",onClick:Wn,tabIndex:-1,className:"".concat(Gt,"-super-next-btn"),style:Gn?de:{}},pn))}var ve=ie;function xe(Je){var Gt=c.useContext(Z),vr=Gt.hideHeader;if(vr)return null;var fr=Je.prefixCls,Gr=Je.generateConfig,Pr=Je.locale,hr=Je.value,An=Je.format,br="".concat(fr,"-header");return c.createElement(ve,{prefixCls:br},hr?Gr.locale.format(Pr.locale,hr,An):"\xA0")}var _e=xe,Ue=d("YrtM"),fe=d("KQm4"),ke=new Map;function se(Je,Gt,vr){if(ke.get(Je)&&cancelAnimationFrame(ke.get(Je)),vr<=0){ke.set(Je,requestAnimationFrame(function(){Je.scrollTop=Gt}));return}var fr=Gt-Je.scrollTop,Gr=fr/vr*10;ke.set(Je,requestAnimationFrame(function(){Je.scrollTop+=Gr,Je.scrollTop!==Gt&&se(Je,Gt,vr-10)}))}function te(Je,Gt){var vr=Gt.onLeftRight,fr=Gt.onCtrlLeftRight,Gr=Gt.onUpDown,Pr=Gt.onPageUpDown,hr=Gt.onEnter,An=Je.which,br=Je.ctrlKey,pn=Je.metaKey;switch(An){case z.a.LEFT:if(br||pn){if(fr)return fr(-1),!0}else if(vr)return vr(-1),!0;break;case z.a.RIGHT:if(br||pn){if(fr)return fr(1),!0}else if(vr)return vr(1),!0;break;case z.a.UP:if(Gr)return Gr(-1),!0;break;case z.a.DOWN:if(Gr)return Gr(1),!0;break;case z.a.PAGE_UP:if(Pr)return Pr(-1),!0;break;case z.a.PAGE_DOWN:if(Pr)return Pr(1),!0;break;case z.a.ENTER:if(hr)return hr(),!0;break}return!1}function Ve(Je,Gt,vr,fr){var Gr=Je;if(!Gr)switch(Gt){case"time":Gr=fr?"hh:mm:ss a":"HH:mm:ss";break;case"week":Gr="gggg-wo";break;case"month":Gr="YYYY-MM";break;case"quarter":Gr="YYYY-[Q]Q";break;case"year":Gr="YYYY";break;default:Gr=vr?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Gr}function ae(Je,Gt){var vr=Je==="time"?8:10;return Math.max(vr,Gt.length)+2}var Q=null,G=new Set;function Y(Je){return!Q&&typeof window!="undefined"&&window.addEventListener&&(Q=function(vr){Object(fe.a)(G).forEach(function(fr){fr(vr)})},window.addEventListener("mousedown",Q)),G.add(Je),function(){G.delete(Je),G.size===0&&(window.removeEventListener("mousedown",Q),Q=null)}}var me=function(Gt){return Gt==="month"||Gt==="date"?"year":Gt},ue=function(Gt){return Gt==="date"?"month":Gt},Ce=function(Gt){return Gt==="month"||Gt==="date"?"quarter":Gt},Ie=function(Gt){return Gt==="date"?"week":Gt},ce={year:me,month:ue,quarter:Ce,week:Ie,time:null,date:null};function Ae(Je,Gt){return Je.some(function(vr){return vr&&vr.contains(Gt)})}function Te(Je){var Gt=Je.prefixCls,vr=Je.units,fr=Je.onSelect,Gr=Je.value,Pr=Je.active,hr=Je.hideDisabledOptions,An="".concat(Gt,"-cell"),br=c.useContext(Z),pn=br.open,Kn=c.useRef(null),Wn=c.useRef(new Map);return c.useLayoutEffect(function(){var Ln=Wn.current.get(Gr);Ln&&pn!==!1&&se(Kn.current,Ln.offsetTop,120)},[Gr]),c.useLayoutEffect(function(){if(pn){var Ln=Wn.current.get(Gr);Ln&&se(Kn.current,Ln.offsetTop,0)}},[pn]),c.createElement("ul",{className:T()("".concat(Gt,"-column"),Object(U.a)({},"".concat(Gt,"-column-active"),Pr)),ref:Kn,style:{position:"relative"}},vr.map(function(Ln){var $n;return hr&&Ln.disabled?null:c.createElement("li",{key:Ln.value,ref:function(ti){Wn.current.set(Ln.value,ti)},className:T()(An,($n={},Object(U.a)($n,"".concat(An,"-disabled"),Ln.disabled),Object(U.a)($n,"".concat(An,"-selected"),Gr===Ln.value),$n)),onClick:function(){if(Ln.disabled)return;fr(Ln.value)}},c.createElement("div",{className:"".concat(An,"-inner")},Ln.label))}))}var Ge=Te;function gt(Je,Gt){for(var vr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",fr=String(Je);fr.length<Gt;)fr="".concat(vr).concat(Je);return fr}var qe=function(){for(var Gt=arguments.length,vr=new Array(Gt),fr=0;fr<Gt;fr++)vr[fr]=arguments[fr];return vr};function Le(Je){return Je==null?[]:Array.isArray(Je)?Je:[Je]}function Ot(Je){var Gt={};return Object.keys(Je).forEach(function(vr){(vr.substr(0,5)==="data-"||vr.substr(0,5)==="aria-"||vr==="role"||vr==="name")&&vr.substr(0,7)!=="data-__"&&(Gt[vr]=Je[vr])}),Gt}function $e(Je,Gt){return Je?Je[Gt]:null}function xt(Je,Gt,vr){var fr=[$e(Je,0),$e(Je,1)];return fr[vr]=typeof Gt=="function"?Gt(fr[vr]):Gt,!fr[0]&&!fr[1]?null:fr}function Ht(Je,Gt,vr,fr,Gr){var Pr=Je.setHour(Gt,vr);return Pr=Je.setMinute(Pr,fr),Pr=Je.setSecond(Pr,Gr),Pr}function tr(Je,Gt,vr,fr,Gr,Pr){var hr=Math.floor(Je/fr)*fr;if(hr<Je)return[hr,60-Gr,60-Pr];var An=Math.floor(Gt/Gr)*Gr;if(An<Gt)return[hr,An,60-Pr];var br=Math.floor(vr/Pr)*Pr;return[hr,An,br]}function Mt(Je,Gt){if(Je.length!==Gt.length)return!0;for(var vr=0;vr<Je.length;vr+=1)if(Je[vr].disabled!==Gt[vr].disabled)return!0;return!1}function Tt(Je,Gt,vr,fr){for(var Gr=[],Pr=Je;Pr<=Gt;Pr+=vr)Gr.push({label:gt(Pr,2),value:Pr,disabled:(fr||[]).includes(Pr)});return Gr}function Xe(Je){var Gt=Je.generateConfig,vr=Je.prefixCls,fr=Je.operationRef,Gr=Je.activeColumnIndex,Pr=Je.value,hr=Je.showHour,An=Je.showMinute,br=Je.showSecond,pn=Je.use12Hours,Kn=Je.hourStep,Wn=Kn===void 0?1:Kn,Ln=Je.minuteStep,$n=Ln===void 0?1:Ln,Un=Je.secondStep,ti=Un===void 0?1:Un,Gn=Je.disabledHours,wi=Je.disabledMinutes,Ei=Je.disabledSeconds,Zi=Je.hideDisabledOptions,ua=Je.onSelect,Xi=[],Gi="".concat(vr,"-content"),wa="".concat(vr,"-time-panel"),na,mo=Pr?Gt.getHour(Pr):-1,Ca=Pr?Gt.getMinute(Pr):-1,qi=Pr?Gt.getSecond(Pr):-1,aa=function(Va,uo,No,Po){var to=Pr||Gt.getNow(),Uo=Math.max(0,uo),co=Math.max(0,No),fa=Math.max(0,Po);return to=Ht(Gt,to,!pn||!Va?Uo:Uo+12,co,fa),to},$i=Tt(0,23,Wn,Gn&&Gn()),Aa=Object(Ue.a)(function(){return $i},$i,Mt);pn&&(na=mo>=12,mo%=12);var ya=c.useMemo(function(){if(!pn)return[!1,!1];var Sa=[!0,!0];return Aa.forEach(function(Va){var uo=Va.disabled,No=Va.value;if(uo)return;No>=12?Sa[1]=!1:Sa[0]=!1}),Sa},[pn,Aa]),Ha=Object(j.a)(ya,2),ta=Ha[0],ra=Ha[1],_a=c.useMemo(function(){return pn?Aa.filter(na?function(Sa){return Sa.value>=12}:function(Sa){return Sa.value<12}).map(function(Sa){var Va=Sa.value%12,uo=Va===0?"12":gt(Va,2);return Object(B.a)(Object(B.a)({},Sa),{},{label:uo,value:Va})}):Aa},[pn,Aa]),Ka=Tt(0,59,$n,wi&&wi(mo)),bo=Tt(0,59,ti,Ei&&Ei(mo,Ca));fr.current={onUpDown:function(Va){var uo=Xi[Gr];if(uo)for(var No=uo.units.findIndex(function(co){return co.value===uo.value}),Po=uo.units.length,to=1;to<Po;to+=1){var Uo=uo.units[(No+Va*to+Po)%Po];if(Uo.disabled!==!0){uo.onSelect(Uo.value);break}}}};function ga(Sa,Va,uo,No,Po){Sa!==!1&&Xi.push({node:c.cloneElement(Va,{prefixCls:wa,value:uo,active:Gr===Xi.length,onSelect:Po,units:No,hideDisabledOptions:Zi}),onSelect:Po,value:uo,units:No})}ga(hr,c.createElement(Ge,{key:"hour"}),mo,_a,function(Sa){ua(aa(na,Sa,Ca,qi),"mouse")}),ga(An,c.createElement(Ge,{key:"minute"}),Ca,Ka,function(Sa){ua(aa(na,mo,Sa,qi),"mouse")}),ga(br,c.createElement(Ge,{key:"second"}),qi,bo,function(Sa){ua(aa(na,mo,Ca,Sa),"mouse")});var go=-1;return typeof na=="boolean"&&(go=na?1:0),ga(pn===!0,c.createElement(Ge,{key:"12hours"}),go,[{label:"AM",value:0,disabled:ta},{label:"PM",value:1,disabled:ra}],function(Sa){ua(aa(!!Sa,mo,Ca,qi),"mouse")}),c.createElement("div",{className:Gi},Xi.map(function(Sa){var Va=Sa.node;return Va}))}var oe=Xe,X=function(Gt){return Gt.filter(function(vr){return vr!==!1}).length};function Be(Je){var Gt=Je.generateConfig,vr=Je.format,fr=vr===void 0?"HH:mm:ss":vr,Gr=Je.prefixCls,Pr=Je.active,hr=Je.operationRef,An=Je.showHour,br=Je.showMinute,pn=Je.showSecond,Kn=Je.use12Hours,Wn=Kn===void 0?!1:Kn,Ln=Je.onSelect,$n=Je.value,Un="".concat(Gr,"-time-panel"),ti=c.useRef(),Gn=c.useState(-1),wi=Object(j.a)(Gn,2),Ei=wi[0],Zi=wi[1],ua=X([An,br,pn,Wn]);return hr.current={onKeyDown:function(Gi){return te(Gi,{onLeftRight:function(na){Zi((Ei+na+ua)%ua)},onUpDown:function(na){Ei===-1?Zi(0):ti.current&&ti.current.onUpDown(na)},onEnter:function(){Ln($n||Gt.getNow(),"key"),Zi(-1)}})},onBlur:function(){Zi(-1)}},c.createElement("div",{className:T()(Un,Object(U.a)({},"".concat(Un,"-active"),Pr))},c.createElement(_e,Object.assign({},Je,{format:fr,prefixCls:Gr})),c.createElement(oe,Object.assign({},Je,{prefixCls:Gr,activeColumnIndex:Ei,operationRef:ti})))}var Ee=Be,ee=7;function lt(Je,Gt){return!Je&&!Gt?!0:!Je||!Gt?!1:void 0}function Ct(Je,Gt,vr){var fr=lt(Gt,vr);if(typeof fr=="boolean")return fr;var Gr=Math.floor(Je.getYear(Gt)/10),Pr=Math.floor(Je.getYear(vr)/10);return Gr===Pr}function dt(Je,Gt,vr){var fr=lt(Gt,vr);return typeof fr=="boolean"?fr:Je.getYear(Gt)===Je.getYear(vr)}function _t(Je,Gt){var vr=Math.floor(Je.getMonth(Gt)/3);return vr+1}function ir(Je,Gt,vr){var fr=lt(Gt,vr);return typeof fr=="boolean"?fr:dt(Je,Gt,vr)&&_t(Je,Gt)===_t(Je,vr)}function $r(Je,Gt,vr){var fr=lt(Gt,vr);return typeof fr=="boolean"?fr:dt(Je,Gt,vr)&&Je.getMonth(Gt)===Je.getMonth(vr)}function nr(Je,Gt,vr){var fr=lt(Gt,vr);return typeof fr=="boolean"?fr:Je.getYear(Gt)===Je.getYear(vr)&&Je.getMonth(Gt)===Je.getMonth(vr)&&Je.getDate(Gt)===Je.getDate(vr)}function lr(Je,Gt,vr){var fr=lt(Gt,vr);return typeof fr=="boolean"?fr:Je.getHour(Gt)===Je.getHour(vr)&&Je.getMinute(Gt)===Je.getMinute(vr)&&Je.getSecond(Gt)===Je.getSecond(vr)}function zt(Je,Gt,vr,fr){var Gr=lt(vr,fr);return typeof Gr=="boolean"?Gr:Je.locale.getWeek(Gt,vr)===Je.locale.getWeek(Gt,fr)}function Ut(Je,Gt,vr){return nr(Je,Gt,vr)&&lr(Je,Gt,vr)}function st(Je,Gt,vr,fr){return!Gt||!vr||!fr?!1:!nr(Je,Gt,fr)&&!nr(Je,vr,fr)&&Je.isAfter(fr,Gt)&&Je.isAfter(vr,fr)}function Hr(Je,Gt,vr){var fr=Gt.locale.getWeekFirstDay(Je),Gr=Gt.setDate(vr,1),Pr=Gt.getWeekDay(Gr),hr=Gt.addDate(Gr,fr-Pr);return Gt.getMonth(hr)===Gt.getMonth(vr)&&Gt.getDate(hr)>1&&(hr=Gt.addDate(hr,-7)),hr}function mn(Je,Gt,vr){var fr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Gt){case"year":return vr.addYear(Je,fr*10);case"quarter":case"month":return vr.addYear(Je,fr);default:return vr.addMonth(Je,fr)}}var In=c.createContext({}),Yn=In;function Mi(Je){var Gt=Je.cellPrefixCls,vr=Je.generateConfig,fr=Je.rangedValue,Gr=Je.hoverRangedValue,Pr=Je.isInView,hr=Je.isSameCell,An=Je.offsetCell,br=Je.today,pn=Je.value;function Kn(Wn){var Ln,$n=An(Wn,-1),Un=An(Wn,1),ti=$e(fr,0),Gn=$e(fr,1),wi=$e(Gr,0),Ei=$e(Gr,1),Zi=st(vr,wi,Ei,Wn);function ua(Ca){return hr(ti,Ca)}function Xi(Ca){return hr(Gn,Ca)}var Gi=hr(wi,Wn),wa=hr(Ei,Wn),na=(Zi||wa)&&(!Pr($n)||Xi($n)),mo=(Zi||Gi)&&(!Pr(Un)||ua(Un));return Ln={},Object(U.a)(Ln,"".concat(Gt,"-in-view"),Pr(Wn)),Object(U.a)(Ln,"".concat(Gt,"-in-range"),st(vr,ti,Gn,Wn)),Object(U.a)(Ln,"".concat(Gt,"-range-start"),ua(Wn)),Object(U.a)(Ln,"".concat(Gt,"-range-end"),Xi(Wn)),Object(U.a)(Ln,"".concat(Gt,"-range-start-single"),ua(Wn)&&!Gn),Object(U.a)(Ln,"".concat(Gt,"-range-end-single"),Xi(Wn)&&!ti),Object(U.a)(Ln,"".concat(Gt,"-range-start-near-hover"),ua(Wn)&&(hr($n,wi)||st(vr,wi,Ei,$n))),Object(U.a)(Ln,"".concat(Gt,"-range-end-near-hover"),Xi(Wn)&&(hr(Un,Ei)||st(vr,wi,Ei,Un))),Object(U.a)(Ln,"".concat(Gt,"-range-hover"),Zi),Object(U.a)(Ln,"".concat(Gt,"-range-hover-start"),Gi),Object(U.a)(Ln,"".concat(Gt,"-range-hover-end"),wa),Object(U.a)(Ln,"".concat(Gt,"-range-hover-edge-start"),na),Object(U.a)(Ln,"".concat(Gt,"-range-hover-edge-end"),mo),Object(U.a)(Ln,"".concat(Gt,"-range-hover-edge-start-near-range"),na&&hr($n,Gn)),Object(U.a)(Ln,"".concat(Gt,"-range-hover-edge-end-near-range"),mo&&hr(Un,ti)),Object(U.a)(Ln,"".concat(Gt,"-today"),hr(br,Wn)),Object(U.a)(Ln,"".concat(Gt,"-selected"),hr(pn,Wn)),Ln}return Kn}function wn(Je){for(var Gt=Je.prefixCls,vr=Je.disabledDate,fr=Je.onSelect,Gr=Je.rowNum,Pr=Je.colNum,hr=Je.prefixColumn,An=Je.rowClassName,br=Je.baseDate,pn=Je.getCellClassName,Kn=Je.getCellText,Wn=Je.getCellNode,Ln=Je.getCellDate,$n=Je.titleCell,Un=Je.headerCells,ti=c.useContext(Z),Gn=ti.onDateMouseEnter,wi=ti.onDateMouseLeave,Ei="".concat(Gt,"-cell"),Zi=[],ua=0;ua<Gr;ua+=1){for(var Xi=[],Gi=void 0,wa=function(Ca){var qi=ua*Pr+Ca,aa=Ln(br,qi),$i=vr&&vr(aa);Ca===0&&(Gi=aa,hr&&Xi.push(hr(Gi))),Xi.push(c.createElement("td",{key:Ca,title:$n&&$n(aa),className:T()(Ei,Object(B.a)(Object(U.a)({},"".concat(Ei,"-disabled"),$i),pn(aa))),onClick:function(){$i||fr(aa)},onMouseEnter:function(){!$i&&Gn&&Gn(aa)},onMouseLeave:function(){!$i&&wi&&wi(aa)}},Wn?Wn(aa):c.createElement("div",{className:"".concat(Ei,"-inner")},Kn(aa))))},na=0;na<Pr;na+=1)wa(na);Zi.push(c.createElement("tr",{key:ua,className:An&&An(Gi)},Xi))}return c.createElement("div",{className:"".concat(Gt,"-body")},c.createElement("table",{className:"".concat(Gt,"-content")},Un&&c.createElement("thead",null,c.createElement("tr",null,Un)),c.createElement("tbody",null,Zi)))}function Rn(Je){var Gt=Je.prefixCls,vr=Je.generateConfig,fr=Je.prefixColumn,Gr=Je.locale,Pr=Je.rowCount,hr=Je.viewDate,An=Je.value,br=Je.dateRender,pn=c.useContext(Yn),Kn=pn.rangedValue,Wn=pn.hoverRangedValue,Ln=Hr(Gr.locale,vr,hr),$n="".concat(Gt,"-cell"),Un=vr.locale.getWeekFirstDay(Gr.locale),ti=vr.getNow(),Gn=[],wi=Gr.shortWeekDays||(vr.locale.getShortWeekDays?vr.locale.getShortWeekDays(Gr.locale):[]);fr&&Gn.push(c.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Ei=0;Ei<ee;Ei+=1)Gn.push(c.createElement("th",{key:Ei},wi[(Ei+Un)%ee]));var Zi=Mi({cellPrefixCls:$n,today:ti,value:An,generateConfig:vr,rangedValue:fr?null:Kn,hoverRangedValue:fr?null:Wn,isSameCell:function(Gi,wa){return nr(vr,Gi,wa)},isInView:function(Gi){return $r(vr,Gi,hr)},offsetCell:function(Gi,wa){return vr.addDate(Gi,wa)}}),ua=br?function(Xi){return br(Xi,ti)}:void 0;return c.createElement(wn,Object.assign({},Je,{rowNum:Pr,colNum:ee,baseDate:Ln,getCellNode:ua,getCellText:vr.getDate,getCellClassName:Zi,getCellDate:vr.addDate,titleCell:function(Gi){return vr.locale.format(Gr.locale,Gi,"YYYY-MM-DD")},headerCells:Gn}))}var kt=Rn;function vt(Je){var Gt=Je.prefixCls,vr=Je.generateConfig,fr=Je.locale,Gr=Je.viewDate,Pr=Je.onNextMonth,hr=Je.onPrevMonth,An=Je.onNextYear,br=Je.onPrevYear,pn=Je.onYearClick,Kn=Je.onMonthClick,Wn=c.useContext(Z),Ln=Wn.hideHeader;if(Ln)return null;var $n="".concat(Gt,"-header"),Un=fr.shortMonths||(vr.locale.getShortMonths?vr.locale.getShortMonths(fr.locale):[]),ti=vr.getMonth(Gr),Gn=c.createElement("button",{type:"button",key:"year",onClick:pn,tabIndex:-1,className:"".concat(Gt,"-year-btn")},vr.locale.format(fr.locale,Gr,fr.yearFormat)),wi=c.createElement("button",{type:"button",key:"month",onClick:Kn,tabIndex:-1,className:"".concat(Gt,"-month-btn")},fr.monthFormat?vr.locale.format(fr.locale,Gr,fr.monthFormat):Un[ti]),Ei=fr.monthBeforeYear?[wi,Gn]:[Gn,wi];return c.createElement(ve,Object.assign({},Je,{prefixCls:$n,onSuperPrev:br,onPrev:hr,onNext:Pr,onSuperNext:An}),Ei)}var Re=vt,Ke=6;function Pe(Je){var Gt=Je.prefixCls,vr=Je.panelName,fr=vr===void 0?"date":vr,Gr=Je.keyboardConfig,Pr=Je.active,hr=Je.operationRef,An=Je.generateConfig,br=Je.value,pn=Je.viewDate,Kn=Je.onViewDateChange,Wn=Je.onPanelChange,Ln=Je.onSelect,$n="".concat(Gt,"-").concat(fr,"-panel");hr.current={onKeyDown:function(wi){return te(wi,Object(B.a)({onLeftRight:function(Zi){Ln(An.addDate(br||pn,Zi),"key")},onCtrlLeftRight:function(Zi){Ln(An.addYear(br||pn,Zi),"key")},onUpDown:function(Zi){Ln(An.addDate(br||pn,Zi*ee),"key")},onPageUpDown:function(Zi){Ln(An.addMonth(br||pn,Zi),"key")}},Gr))}};var Un=function(wi){var Ei=An.addYear(pn,wi);Kn(Ei),Wn(null,Ei)},ti=function(wi){var Ei=An.addMonth(pn,wi);Kn(Ei),Wn(null,Ei)};return c.createElement("div",{className:T()($n,Object(U.a)({},"".concat($n,"-active"),Pr))},c.createElement(Re,Object.assign({},Je,{prefixCls:Gt,value:br,viewDate:pn,onPrevYear:function(){Un(-1)},onNextYear:function(){Un(1)},onPrevMonth:function(){ti(-1)},onNextMonth:function(){ti(1)},onMonthClick:function(){Wn("month",pn)},onYearClick:function(){Wn("year",pn)}})),c.createElement(kt,Object.assign({},Je,{onSelect:function(wi){return Ln(wi,"mouse")},prefixCls:Gt,value:br,viewDate:pn,rowCount:Ke})))}var nt=Pe;function yt(Je,Gt,vr){if(!vr)return Gt;var fr=Gt;return fr=Je.setHour(fr,Je.getHour(vr)),fr=Je.setMinute(fr,Je.getMinute(vr)),fr=Je.setSecond(fr,Je.getSecond(vr)),fr}var Dt=qe("date","time");function bt(Je){var Gt=Je.prefixCls,vr=Je.operationRef,fr=Je.generateConfig,Gr=Je.value,Pr=Je.defaultValue,hr=Je.disabledTime,An=Je.showTime,br=Je.onSelect,pn="".concat(Gt,"-datetime-panel"),Kn=c.useState(null),Wn=Object(j.a)(Kn,2),Ln=Wn[0],$n=Wn[1],Un=c.useRef({}),ti=c.useRef({}),Gn=Object(V.a)(An)==="object"?Object(B.a)({},An):{};function wi(Xi){var Gi=Dt.indexOf(Ln)+Xi,wa=Dt[Gi]||null;return wa}var Ei=function(Gi){ti.current.onBlur&&ti.current.onBlur(Gi),$n(null)};vr.current={onKeyDown:function(Gi){if(Gi.which===z.a.TAB){var wa=wi(Gi.shiftKey?-1:1);return $n(wa),wa&&Gi.preventDefault(),!0}if(Ln){var na=Ln==="date"?Un:ti;return na.current&&na.current.onKeyDown&&na.current.onKeyDown(Gi),!0}return[z.a.LEFT,z.a.RIGHT,z.a.UP,z.a.DOWN].includes(Gi.which)?($n("date"),!0):!1},onBlur:Ei,onClose:Ei};var Zi=function(Gi,wa){var na=Gi;wa==="date"&&!Gr&&Gn.defaultValue?(na=fr.setHour(na,fr.getHour(Gn.defaultValue)),na=fr.setMinute(na,fr.getMinute(Gn.defaultValue)),na=fr.setSecond(na,fr.getSecond(Gn.defaultValue))):wa==="time"&&!Gr&&Pr&&(na=fr.setYear(na,fr.getYear(Pr)),na=fr.setMonth(na,fr.getMonth(Pr)),na=fr.setDate(na,fr.getDate(Pr))),br&&br(na,"mouse")},ua=hr?hr(Gr||null):{};return c.createElement("div",{className:T()(pn,Object(U.a)({},"".concat(pn,"-active"),Ln))},c.createElement(nt,Object.assign({},Je,{operationRef:Un,active:Ln==="date",onSelect:function(Gi){Zi(yt(fr,Gi,An&&Object(V.a)(An)==="object"?An.defaultValue:null),"date")}})),c.createElement(Ee,Object.assign({},Je,{format:void 0},Gn,ua,{defaultValue:void 0,operationRef:ti,active:Ln==="time",onSelect:function(Gi){Zi(Gi,"time")}})))}var It=bt;function gr(Je){var Gt=Je.prefixCls,vr=Je.generateConfig,fr=Je.locale,Gr=Je.value,Pr="".concat(Gt,"-cell"),hr=function(Kn){return c.createElement("td",{key:"week",className:T()(Pr,"".concat(Pr,"-week"))},vr.locale.getWeek(fr.locale,Kn))},An="".concat(Gt,"-week-panel-row"),br=function(Kn){return T()(An,Object(U.a)({},"".concat(An,"-selected"),zt(vr,fr.locale,Gr,Kn)))};return c.createElement(nt,Object.assign({},Je,{panelName:"week",prefixColumn:hr,rowClassName:br,keyboardConfig:{onLeftRight:null}}))}var kr=gr;function wt(Je){var Gt=Je.prefixCls,vr=Je.generateConfig,fr=Je.locale,Gr=Je.viewDate,Pr=Je.onNextYear,hr=Je.onPrevYear,An=Je.onYearClick,br=c.useContext(Z),pn=br.hideHeader;if(pn)return null;var Kn="".concat(Gt,"-header");return c.createElement(ve,Object.assign({},Je,{prefixCls:Kn,onSuperPrev:hr,onSuperNext:Pr}),c.createElement("button",{type:"button",onClick:An,className:"".concat(Gt,"-year-btn")},vr.locale.format(fr.locale,Gr,fr.yearFormat)))}var rt=wt,tt=3,Rt=4;function Ft(Je){var Gt=Je.prefixCls,vr=Je.locale,fr=Je.value,Gr=Je.viewDate,Pr=Je.generateConfig,hr=Je.monthCellRender,An=c.useContext(Yn),br=An.rangedValue,pn=An.hoverRangedValue,Kn="".concat(Gt,"-cell"),Wn=Mi({cellPrefixCls:Kn,value:fr,generateConfig:Pr,rangedValue:br,hoverRangedValue:pn,isSameCell:function(Gn,wi){return $r(Pr,Gn,wi)},isInView:function(){return!0},offsetCell:function(Gn,wi){return Pr.addMonth(Gn,wi)}}),Ln=vr.shortMonths||(Pr.locale.getShortMonths?Pr.locale.getShortMonths(vr.locale):[]),$n=Pr.setMonth(Gr,0),Un=hr?function(ti){return hr(ti,vr)}:void 0;return c.createElement(wn,Object.assign({},Je,{rowNum:Rt,colNum:tt,baseDate:$n,getCellNode:Un,getCellText:function(Gn){return vr.monthFormat?Pr.locale.format(vr.locale,Gn,vr.monthFormat):Ln[Pr.getMonth(Gn)]},getCellClassName:Wn,getCellDate:Pr.addMonth,titleCell:function(Gn){return Pr.locale.format(vr.locale,Gn,"YYYY-MM")}}))}var At=Ft;function Wt(Je){var Gt=Je.prefixCls,vr=Je.operationRef,fr=Je.onViewDateChange,Gr=Je.generateConfig,Pr=Je.value,hr=Je.viewDate,An=Je.onPanelChange,br=Je.onSelect,pn="".concat(Gt,"-month-panel");vr.current={onKeyDown:function(Ln){return te(Ln,{onLeftRight:function(Un){br(Gr.addMonth(Pr||hr,Un),"key")},onCtrlLeftRight:function(Un){br(Gr.addYear(Pr||hr,Un),"key")},onUpDown:function(Un){br(Gr.addMonth(Pr||hr,Un*tt),"key")},onEnter:function(){An("date",Pr||hr)}})}};var Kn=function(Ln){var $n=Gr.addYear(hr,Ln);fr($n),An(null,$n)};return c.createElement("div",{className:pn},c.createElement(rt,Object.assign({},Je,{prefixCls:Gt,onPrevYear:function(){Kn(-1)},onNextYear:function(){Kn(1)},onYearClick:function(){An("year",hr)}})),c.createElement(At,Object.assign({},Je,{prefixCls:Gt,onSelect:function(Ln){br(Ln,"mouse"),An("date",Ln)}})))}var ot=Wt;function Bt(Je){var Gt=Je.prefixCls,vr=Je.generateConfig,fr=Je.locale,Gr=Je.viewDate,Pr=Je.onNextYear,hr=Je.onPrevYear,An=Je.onYearClick,br=c.useContext(Z),pn=br.hideHeader;if(pn)return null;var Kn="".concat(Gt,"-header");return c.createElement(ve,Object.assign({},Je,{prefixCls:Kn,onSuperPrev:hr,onSuperNext:Pr}),c.createElement("button",{type:"button",onClick:An,className:"".concat(Gt,"-year-btn")},vr.locale.format(fr.locale,Gr,fr.yearFormat)))}var Ar=Bt,rr=4,pr=1;function tn(Je){var Gt=Je.prefixCls,vr=Je.locale,fr=Je.value,Gr=Je.viewDate,Pr=Je.generateConfig,hr=c.useContext(Yn),An=hr.rangedValue,br=hr.hoverRangedValue,pn="".concat(Gt,"-cell"),Kn=Mi({cellPrefixCls:pn,value:fr,generateConfig:Pr,rangedValue:An,hoverRangedValue:br,isSameCell:function($n,Un){return ir(Pr,$n,Un)},isInView:function(){return!0},offsetCell:function($n,Un){return Pr.addMonth($n,Un*3)}}),Wn=Pr.setDate(Pr.setMonth(Gr,0),1);return c.createElement(wn,Object.assign({},Je,{rowNum:pr,colNum:rr,baseDate:Wn,getCellText:function($n){return Pr.locale.format(vr.locale,$n,vr.quarterFormat||"[Q]Q")},getCellClassName:Kn,getCellDate:function($n,Un){return Pr.addMonth($n,Un*3)},titleCell:function($n){return Pr.locale.format(vr.locale,$n,"YYYY-[Q]Q")}}))}var hn=tn;function Mn(Je){var Gt=Je.prefixCls,vr=Je.operationRef,fr=Je.onViewDateChange,Gr=Je.generateConfig,Pr=Je.value,hr=Je.viewDate,An=Je.onPanelChange,br=Je.onSelect,pn="".concat(Gt,"-quarter-panel");vr.current={onKeyDown:function(Ln){return te(Ln,{onLeftRight:function(Un){br(Gr.addMonth(Pr||hr,Un*3),"key")},onCtrlLeftRight:function(Un){br(Gr.addYear(Pr||hr,Un),"key")},onUpDown:function(Un){br(Gr.addYear(Pr||hr,Un),"key")}})}};var Kn=function(Ln){var $n=Gr.addYear(hr,Ln);fr($n),An(null,$n)};return c.createElement("div",{className:pn},c.createElement(Ar,Object.assign({},Je,{prefixCls:Gt,onPrevYear:function(){Kn(-1)},onNextYear:function(){Kn(1)},onYearClick:function(){An("year",hr)}})),c.createElement(hn,Object.assign({},Je,{prefixCls:Gt,onSelect:function(Ln){br(Ln,"mouse")}})))}var Xn=Mn;function si(Je){var Gt=Je.prefixCls,vr=Je.generateConfig,fr=Je.viewDate,Gr=Je.onPrevDecade,Pr=Je.onNextDecade,hr=Je.onDecadeClick,An=c.useContext(Z),br=An.hideHeader;if(br)return null;var pn="".concat(Gt,"-header"),Kn=vr.getYear(fr),Wn=Math.floor(Kn/Ne)*Ne,Ln=Wn+Ne-1;return c.createElement(ve,Object.assign({},Je,{prefixCls:pn,onSuperPrev:Gr,onSuperNext:Pr}),c.createElement("button",{type:"button",onClick:hr,className:"".concat(Gt,"-decade-btn")},Wn,"-",Ln))}var vi=si,xi=3,_i=4;function Qe(Je){var Gt=Je.prefixCls,vr=Je.value,fr=Je.viewDate,Gr=Je.locale,Pr=Je.generateConfig,hr=c.useContext(Yn),An=hr.rangedValue,br=hr.hoverRangedValue,pn="".concat(Gt,"-cell"),Kn=Pr.getYear(fr),Wn=Math.floor(Kn/Ne)*Ne,Ln=Wn+Ne-1,$n=Pr.setYear(fr,Wn-Math.ceil((xi*_i-Ne)/2)),Un=function(wi){var Ei=Pr.getYear(wi);return Wn<=Ei&&Ei<=Ln},ti=Mi({cellPrefixCls:pn,value:vr,generateConfig:Pr,rangedValue:An,hoverRangedValue:br,isSameCell:function(wi,Ei){return dt(Pr,wi,Ei)},isInView:Un,offsetCell:function(wi,Ei){return Pr.addYear(wi,Ei)}});return c.createElement(wn,Object.assign({},Je,{rowNum:_i,colNum:xi,baseDate:$n,getCellText:Pr.getYear,getCellClassName:ti,getCellDate:Pr.addYear,titleCell:function(wi){return Pr.locale.format(Gr.locale,wi,"YYYY")}}))}var we=Qe,Ne=10;function Fe(Je){var Gt=Je.prefixCls,vr=Je.operationRef,fr=Je.onViewDateChange,Gr=Je.generateConfig,Pr=Je.value,hr=Je.viewDate,An=Je.sourceMode,br=Je.onSelect,pn=Je.onPanelChange,Kn="".concat(Gt,"-year-panel");vr.current={onKeyDown:function($n){return te($n,{onLeftRight:function(ti){br(Gr.addYear(Pr||hr,ti),"key")},onCtrlLeftRight:function(ti){br(Gr.addYear(Pr||hr,ti*Ne),"key")},onUpDown:function(ti){br(Gr.addYear(Pr||hr,ti*xi),"key")},onEnter:function(){pn(An==="date"?"date":"month",Pr||hr)}})}};var Wn=function($n){var Un=Gr.addYear(hr,$n*10);fr(Un),pn(null,Un)};return c.createElement("div",{className:Kn},c.createElement(vi,Object.assign({},Je,{prefixCls:Gt,onPrevDecade:function(){Wn(-1)},onNextDecade:function(){Wn(1)},onDecadeClick:function(){pn("decade",hr)}})),c.createElement(we,Object.assign({},Je,{prefixCls:Gt,onSelect:function($n){pn(An==="date"?"date":"month",$n),br($n,"mouse")}})))}var Ye=Fe;function We(Je){var Gt=Je.prefixCls,vr=Je.generateConfig,fr=Je.viewDate,Gr=Je.onPrevDecades,Pr=Je.onNextDecades,hr=c.useContext(Z),An=hr.hideHeader;if(An)return null;var br="".concat(Gt,"-header"),pn=vr.getYear(fr),Kn=Math.floor(pn/Br)*Br,Wn=Kn+Br-1;return c.createElement(ve,Object.assign({},Je,{prefixCls:br,onSuperPrev:Gr,onSuperNext:Pr}),Kn,"-",Wn)}var Ze=We,mt=3,it=4;function Jt(Je){var Gt=Sr-1,vr=Je.prefixCls,fr=Je.viewDate,Gr=Je.generateConfig,Pr=Je.disabledDate,hr="".concat(vr,"-cell"),An=Gr.getYear(fr),br=Math.floor(An/Sr)*Sr,pn=Math.floor(An/Br)*Br,Kn=pn+Br-1,Wn=Gr.setYear(fr,pn-Math.ceil((mt*it*Sr-Br)/2)),Ln=function(Un){var ti,Gn=Pr&&Pr(Un),wi=Gr.getYear(Un),Ei=wi+Gt;return ti={},Object(U.a)(ti,"".concat(hr,"-disabled"),Gn),Object(U.a)(ti,"".concat(hr,"-in-view"),pn<=wi&&Ei<=Kn),Object(U.a)(ti,"".concat(hr,"-selected"),wi===br),ti};return c.createElement(wn,Object.assign({},Je,{rowNum:it,colNum:mt,baseDate:Wn,getCellText:function(Un){var ti=Gr.getYear(Un);return"".concat(ti,"-").concat(ti+Gt)},getCellClassName:Ln,getCellDate:function(Un,ti){return Gr.addYear(Un,ti*Sr)}}))}var Dr=Jt,Sr=10,Br=Sr*10;function $t(Je){var Gt=Je.prefixCls,vr=Je.onViewDateChange,fr=Je.generateConfig,Gr=Je.viewDate,Pr=Je.operationRef,hr=Je.onSelect,An=Je.onPanelChange,br="".concat(Gt,"-decade-panel");Pr.current={onKeyDown:function(Ln){return te(Ln,{onLeftRight:function(Un){hr(fr.addYear(Gr,Un*Sr),"key")},onCtrlLeftRight:function(Un){hr(fr.addYear(Gr,Un*Br),"key")},onUpDown:function(Un){hr(fr.addYear(Gr,Un*Sr*mt),"key")},onEnter:function(){An("year",Gr)}})}};var pn=function(Ln){var $n=fr.addYear(Gr,Ln*Br);vr($n),An(null,$n)},Kn=function(Ln){hr(Ln,"mouse"),An("year",Ln)};return c.createElement("div",{className:br},c.createElement(Ze,Object.assign({},Je,{prefixCls:Gt,onPrevDecades:function(){pn(-1)},onNextDecades:function(){pn(1)}})),c.createElement(Dr,Object.assign({},Je,{prefixCls:Gt,onSelect:Kn})))}var gn=$t;function or(Je,Gt,vr){return vr?c.createElement("div",{className:"".concat(Je,"-footer-extra")},vr(Gt)):null}function ln(Je){var Gt=Je.prefixCls,vr=Je.rangeList,fr=vr===void 0?[]:vr,Gr=Je.components,Pr=Gr===void 0?{}:Gr,hr=Je.needConfirmButton,An=Je.onNow,br=Je.onOk,pn=Je.okDisabled,Kn=Je.showNow,Wn=Je.locale,Ln,$n;if(fr.length){var Un=Pr.rangeItem||"span";Ln=c.createElement(c.Fragment,null,fr.map(function(Gn){var wi=Gn.label,Ei=Gn.onClick,Zi=Gn.onMouseEnter,ua=Gn.onMouseLeave;return c.createElement("li",{key:wi,className:"".concat(Gt,"-preset")},c.createElement(Un,{onClick:Ei,onMouseEnter:Zi,onMouseLeave:ua},wi))}))}if(hr){var ti=Pr.button||"button";An&&!Ln&&Kn!==!1&&(Ln=c.createElement("li",{className:"".concat(Gt,"-now")},c.createElement("a",{className:"".concat(Gt,"-now-btn"),onClick:An},Wn.now))),$n=hr&&c.createElement("li",{className:"".concat(Gt,"-ok")},c.createElement(ti,{disabled:pn,onClick:br},Wn.ok))}return!Ln&&!$n?null:c.createElement("ul",{className:"".concat(Gt,"-ranges")},Ln,$n)}function an(Je){var Gt,vr=Je.prefixCls,fr=vr===void 0?"rc-picker":vr,Gr=Je.className,Pr=Je.style,hr=Je.locale,An=Je.generateConfig,br=Je.value,pn=Je.defaultValue,Kn=Je.pickerValue,Wn=Je.defaultPickerValue,Ln=Je.disabledDate,$n=Je.mode,Un=Je.picker,ti=Un===void 0?"date":Un,Gn=Je.tabIndex,wi=Gn===void 0?0:Gn,Ei=Je.showNow,Zi=Je.showTime,ua=Je.showToday,Xi=Je.renderExtraFooter,Gi=Je.hideHeader,wa=Je.onSelect,na=Je.onChange,mo=Je.onPanelChange,Ca=Je.onMouseDown,qi=Je.onPickerValueChange,aa=Je.onOk,$i=Je.components,Aa=Je.direction,ya=Je.hourStep,Ha=ya===void 0?1:ya,ta=Je.minuteStep,ra=ta===void 0?1:ta,_a=Je.secondStep,Ka=_a===void 0?1:_a,bo=ti==="date"&&!!Zi||ti==="time",ga=24%Ha===0,go=60%ra===0,Sa=60%Ka===0,Va=c.useContext(Z),uo=Va.operationRef,No=Va.panelRef,Po=Va.onSelect,to=Va.hideRanges,Uo=Va.defaultOpenValue,co=c.useContext(Yn),fa=co.inRange,ro=co.panelPosition,Wa=co.rangedValue,Ea=co.hoverRangedValue,Qr=c.useRef({}),za=c.useRef(!0),rs=Object(W.a)(null,{value:br,defaultValue:pn,postState:function(Qn){return!Qn&&Uo&&ti==="time"?Uo:Qn}}),Vo=Object(j.a)(rs,2),Go=Vo[0],Qo=Vo[1],Yo=Object(W.a)(null,{value:Kn,defaultValue:Wn||Go,postState:function(Qn){return Qn||An.getNow()}}),vo=Object(j.a)(Yo,2),Io=vo[0],zo=vo[1],Fa=function(Qn){zo(Qn),qi&&qi(Qn)},Ja=function(Qn){var Ni=ce[ti];return Ni?Ni(Qn):Qn},ho=Object(W.a)(function(){return ti==="time"?"time":Ja("date")},{value:$n}),Ao=Object(j.a)(ho,2),$o=Ao[0],ps=Ao[1];c.useEffect(function(){ps(ti)},[ti]);var is=c.useState(function(){return $o}),Za=Object(j.a)(is,2),St=Za[0],Pt=Za[1],Kr=function(Qn,Ni){var Vi=Ja(Qn||$o);Pt($o),ps(Vi),mo&&($o!==Vi||Ut(An,Io,Io))&&mo(Ni,Vi)},Pn=function(Qn,Ni){var Vi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;($o===ti||Vi)&&(Qo(Qn),wa&&wa(Qn),Po&&Po(Qn,Ni),na&&!Ut(An,Qn,Go)&&na(Qn))},ut=function(Qn){return Qr.current&&Qr.current.onKeyDown?([z.a.LEFT,z.a.RIGHT,z.a.UP,z.a.DOWN,z.a.PAGE_UP,z.a.PAGE_DOWN,z.a.ENTER].includes(Qn.which)&&Qn.preventDefault(),Qr.current.onKeyDown(Qn)):(Object(C.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},ne=function(Qn){Qr.current&&Qr.current.onBlur&&Qr.current.onBlur(Qn)};uo&&ro!=="right"&&(uo.current={onKeyDown:ut,onClose:function(){Qr.current&&Qr.current.onClose&&Qr.current.onClose()}}),c.useEffect(function(){br&&!za.current&&zo(br)},[br]),c.useEffect(function(){za.current=!1},[]);var pe,be=Object(B.a)(Object(B.a)({},Je),{},{operationRef:Qr,prefixCls:fr,viewDate:Io,value:Go,onViewDateChange:Fa,sourceMode:St,onPanelChange:Kr,disabledDate:$o!=="decade"?Ln:void 0});delete be.onChange,delete be.onSelect;switch($o){case"decade":pe=c.createElement(gn,Object.assign({},be,{onSelect:function(Qn,Ni){Fa(Qn),Pn(Qn,Ni)}}));break;case"year":pe=c.createElement(Ye,Object.assign({},be,{onSelect:function(Qn,Ni){Fa(Qn),Pn(Qn,Ni)}}));break;case"month":pe=c.createElement(ot,Object.assign({},be,{onSelect:function(Qn,Ni){Fa(Qn),Pn(Qn,Ni)}}));break;case"quarter":pe=c.createElement(Xn,Object.assign({},be,{onSelect:function(Qn,Ni){Fa(Qn),Pn(Qn,Ni)}}));break;case"week":pe=c.createElement(kr,Object.assign({},be,{onSelect:function(Qn,Ni){Fa(Qn),Pn(Qn,Ni)}}));break;case"time":delete be.showTime,pe=c.createElement(Ee,Object.assign({},be,Object(V.a)(Zi)==="object"?Zi:null,{onSelect:function(Qn,Ni){Fa(Qn),Pn(Qn,Ni)}}));break;default:Zi?pe=c.createElement(It,Object.assign({},be,{onSelect:function(Qn,Ni){Fa(Qn),Pn(Qn,Ni)}})):pe=c.createElement(nt,Object.assign({},be,{onSelect:function(Qn,Ni){Fa(Qn),Pn(Qn,Ni)}}))}var je,ht,Vt=function(){var Qn=An.getNow(),Ni=tr(An.getHour(Qn),An.getMinute(Qn),An.getSecond(Qn),ga?Ha:1,go?ra:1,Sa?Ka:1),Vi=Ht(An,Qn,Ni[0],Ni[1],Ni[2]);Pn(Vi,"submit")};to||(je=or(fr,$o,Xi),ht=ln({prefixCls:fr,components:$i,needConfirmButton:bo,okDisabled:!Go||Ln&&Ln(Go),locale:hr,showNow:Ei,onNow:bo&&Vt,onOk:function(){Go&&(Pn(Go,"submit",!0),aa&&aa(Go))}}));var Or;if(ua&&$o==="date"&&ti==="date"&&!Zi){var Yr=An.getNow(),cn="".concat(fr,"-today-btn"),jn=Ln&&Ln(Yr);Or=c.createElement("a",{className:T()(cn,jn&&"".concat(cn,"-disabled")),"aria-disabled":jn,onClick:function(){jn||Pn(Yr,"mouse",!0)}},hr.today)}return c.createElement(Z.Provider,{value:Object(B.a)(Object(B.a)({},Va),{},{hideHeader:"hideHeader"in Je?Gi:Va.hideHeader,hidePrevBtn:fa&&ro==="right",hideNextBtn:fa&&ro==="left"})},c.createElement("div",{tabIndex:wi,className:T()("".concat(fr,"-panel"),Gr,(Gt={},Object(U.a)(Gt,"".concat(fr,"-panel-has-range"),Wa&&Wa[0]&&Wa[1]),Object(U.a)(Gt,"".concat(fr,"-panel-has-range-hover"),Ea&&Ea[0]&&Ea[1]),Object(U.a)(Gt,"".concat(fr,"-panel-rtl"),Aa==="rtl"),Gt)),style:Pr,onKeyDown:ut,onBlur:ne,onMouseDown:Ca,ref:No},pe,je||ht||Or?c.createElement("div",{className:"".concat(fr,"-footer")},je,ht,Or):null))}var Rr=an,On=d("JX7q"),ci=d("i8i4"),Ui=d.n(ci),ki=d("l4aY"),Di=d("m+aA"),Ki=d("c+Xe"),Ur=d("zT1h"),Tn=d("QC+M");function Mr(Je,Gt,vr){return vr?Je[0]===Gt[0]:Je[0]===Gt[0]&&Je[1]===Gt[1]}function mr(Je,Gt,vr){var fr=Je[Gt]||{};return Object(B.a)(Object(B.a)({},fr),vr)}function Cr(Je,Gt,vr,fr){for(var Gr=vr.points,Pr=Object.keys(Je),hr=0;hr<Pr.length;hr+=1){var An=Pr[hr];if(Mr(Je[An].points,Gr,fr))return"".concat(Gt,"-placement-").concat(An)}return""}var Lt=d("Ff2n"),wr=d("xEkU"),Vr=d.n(wr),jr=d("9mu1"),qr=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function oi(Je,Gt){var vr={};return vr[Je.toLowerCase()]=Gt.toLowerCase(),vr["Webkit".concat(Je)]="webkit".concat(Gt),vr["Moz".concat(Je)]="moz".concat(Gt),vr["ms".concat(Je)]="MS".concat(Gt),vr["O".concat(Je)]="o".concat(Gt.toLowerCase()),vr}function Vn(Je,Gt){var vr={animationend:oi("Animation","AnimationEnd"),transitionend:oi("Transition","TransitionEnd")};return Je&&("AnimationEvent"in Gt||delete vr.animationend.animation,"TransitionEvent"in Gt||delete vr.transitionend.transition),vr}var Ti=Vn(qr,typeof window!="undefined"?window:{}),dn={};if(qr){var _r=document.createElement("div");dn=_r.style}var xn={};function Fn(Je){if(xn[Je])return xn[Je];var Gt=Ti[Je];if(Gt)for(var vr=Object.keys(Gt),fr=vr.length,Gr=0;Gr<fr;Gr+=1){var Pr=vr[Gr];if(Object.prototype.hasOwnProperty.call(Gt,Pr)&&Pr in dn)return xn[Je]=Gt[Pr],xn[Je]}return""}var zn=Fn("animationend"),qn=Fn("transitionend"),Oi=!!(zn&&qn);function Li(Je,Gt){if(!Je)return null;if(Object(V.a)(Je)==="object"){var vr=Gt.replace(/-\w/g,function(fr){return fr[1].toUpperCase()});return Je[vr]}return"".concat(Je,"-").concat(Gt)}var Ri="none",Ji="appear",ma="enter",la="leave";function qa(Je){var Gt=Je,vr=!!c.forwardRef;Object(V.a)(Je)==="object"&&(Gt=Je.transitionSupport,vr="forwardRef"in Je?Je.forwardRef:vr);function fr(Pr){return!!(Pr.motionName&&Gt)}var Gr=function(Pr){Object(k.a)(An,Pr);var hr=Object(M.a)(An);function An(){var br;return Object(D.a)(this,An),br=hr.apply(this,arguments),br.$cacheEle=null,br.node=null,br.raf=null,br.destroyed=!1,br.deadlineId=null,br.state={status:Ri,statusActive:!1,newStatus:!1,statusStyle:null},br.onDomUpdate=function(){var pn=br.state,Kn=pn.status,Wn=pn.newStatus,Ln=br.props,$n=Ln.onAppearStart,Un=Ln.onEnterStart,ti=Ln.onLeaveStart,Gn=Ln.onAppearActive,wi=Ln.onEnterActive,Ei=Ln.onLeaveActive,Zi=Ln.motionAppear,ua=Ln.motionEnter,Xi=Ln.motionLeave;if(!fr(br.props))return;var Gi=br.getElement();br.$cacheEle!==Gi&&(br.removeEventListener(br.$cacheEle),br.addEventListener(Gi),br.$cacheEle=Gi),Wn&&Kn===Ji&&Zi?br.updateStatus($n,null,null,function(){br.updateActiveStatus(Gn,Ji)}):Wn&&Kn===ma&&ua?br.updateStatus(Un,null,null,function(){br.updateActiveStatus(wi,ma)}):Wn&&Kn===la&&Xi&&br.updateStatus(ti,null,null,function(){br.updateActiveStatus(Ei,la)})},br.onMotionEnd=function(pn){if(pn&&!pn.deadline&&pn.target!==br.getElement())return;var Kn=br.state,Wn=Kn.status,Ln=Kn.statusActive,$n=br.props,Un=$n.onAppearEnd,ti=$n.onEnterEnd,Gn=$n.onLeaveEnd;Wn===Ji&&Ln?br.updateStatus(Un,{status:Ri},pn):Wn===ma&&Ln?br.updateStatus(ti,{status:Ri},pn):Wn===la&&Ln&&br.updateStatus(Gn,{status:Ri},pn)},br.setNodeRef=function(pn){var Kn=br.props.internalRef;br.node=pn,Object(Ki.b)(Kn,pn)},br.getElement=function(){try{return Object(Di.a)(br.node||Object(On.a)(br))}catch(pn){return br.$cacheEle}},br.addEventListener=function(pn){if(!pn)return;pn.addEventListener(qn,br.onMotionEnd),pn.addEventListener(zn,br.onMotionEnd)},br.removeEventListener=function(pn){if(!pn)return;pn.removeEventListener(qn,br.onMotionEnd),pn.removeEventListener(zn,br.onMotionEnd)},br.updateStatus=function(pn,Kn,Wn,Ln){var $n=pn?pn(br.getElement(),Wn):null;if($n===!1||br.destroyed)return;var Un;Ln&&(Un=function(){br.nextFrame(Ln)}),br.setState(Object(B.a)({statusStyle:Object(V.a)($n)==="object"?$n:null,newStatus:!1},Kn),Un)},br.updateActiveStatus=function(pn,Kn){br.nextFrame(function(){var Wn=br.state.status;if(Wn!==Kn)return;var Ln=br.props.motionDeadline;br.updateStatus(pn,{statusActive:!0}),Ln>0&&(br.deadlineId=setTimeout(function(){br.onMotionEnd({deadline:!0})},Ln))})},br.nextFrame=function(pn){br.cancelNextFrame(),br.raf=Vr()(pn)},br.cancelNextFrame=function(){br.raf&&(Vr.a.cancel(br.raf),br.raf=null)},br}return Object(R.a)(An,[{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 pn,Kn=this.state,Wn=Kn.status,Ln=Kn.statusActive,$n=Kn.statusStyle,Un=this.props,ti=Un.children,Gn=Un.motionName,wi=Un.visible,Ei=Un.removeOnLeave,Zi=Un.leavedClassName,ua=Un.eventProps;return ti?Wn===Ri||!fr(this.props)?wi?ti(Object(B.a)({},ua),this.setNodeRef):Ei?null:ti(Object(B.a)(Object(B.a)({},ua),{},{className:Zi}),this.setNodeRef):ti(Object(B.a)(Object(B.a)({},ua),{},{className:T()(Li(Gn,Wn),(pn={},Object(U.a)(pn,Li(Gn,"".concat(Wn,"-active")),Ln),Object(U.a)(pn,Gn,typeof Gn=="string"),pn)),style:$n}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(pn,Kn){var Wn=Kn.prevProps,Ln=Kn.status;if(!fr(pn))return{};var $n=pn.visible,Un=pn.motionAppear,ti=pn.motionEnter,Gn=pn.motionLeave,wi=pn.motionLeaveImmediately,Ei={prevProps:pn};return(Ln===Ji&&!Un||Ln===ma&&!ti||Ln===la&&!Gn)&&(Ei.status=Ri,Ei.statusActive=!1,Ei.newStatus=!1),!Wn&&$n&&Un&&(Ei.status=Ji,Ei.statusActive=!1,Ei.newStatus=!0),Wn&&!Wn.visible&&$n&&ti&&(Ei.status=ma,Ei.statusActive=!1,Ei.newStatus=!0),(Wn&&Wn.visible&&!$n&&Gn||!Wn&&wi&&!$n&&Gn)&&(Ei.status=la,Ei.statusActive=!1,Ei.newStatus=!0),Ei}}]),An}(c.Component);return Gr.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},vr?c.forwardRef(function(Pr,hr){return c.createElement(Gr,Object.assign({internalRef:hr},Pr))}):Gr}var bi=qa(Oi),Sn="add",zi="keep",oa="remove",Yi="removed";function ca(Je){var Gt;return Je&&Object(V.a)(Je)==="object"&&"key"in Je?Gt=Je:Gt={key:Je},Object(B.a)(Object(B.a)({},Gt),{},{key:String(Gt.key)})}function Hi(){var Je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Je.map(ca)}function Ia(){var Je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],vr=[],fr=0,Gr=Gt.length,Pr=Hi(Je),hr=Hi(Gt);Pr.forEach(function(pn){for(var Kn=!1,Wn=fr;Wn<Gr;Wn+=1){var Ln=hr[Wn];if(Ln.key===pn.key){fr<Wn&&(vr=vr.concat(hr.slice(fr,Wn).map(function($n){return Object(B.a)(Object(B.a)({},$n),{},{status:Sn})})),fr=Wn),vr.push(Object(B.a)(Object(B.a)({},Ln),{},{status:zi})),fr+=1,Kn=!0;break}}Kn||vr.push(Object(B.a)(Object(B.a)({},pn),{},{status:oa}))}),fr<Gr&&(vr=vr.concat(hr.slice(fr).map(function(pn){return Object(B.a)(Object(B.a)({},pn),{},{status:Sn})})));var An={};vr.forEach(function(pn){var Kn=pn.key;An[Kn]=(An[Kn]||0)+1});var br=Object.keys(An).filter(function(pn){return An[pn]>1});return br.forEach(function(pn){vr=vr.filter(function(Kn){var Wn=Kn.key,Ln=Kn.status;return Wn!==pn||Ln!==oa}),vr.forEach(function(Kn){Kn.key===pn&&(Kn.status=zi)})}),vr}var Da=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Qa(Je){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bi,vr=function(fr){Object(k.a)(Pr,fr);var Gr=Object(M.a)(Pr);function Pr(){var hr;return Object(D.a)(this,Pr),hr=Gr.apply(this,arguments),hr.state={keyEntities:[]},hr.removeKey=function(An){hr.setState(function(br){var pn=br.keyEntities;return{keyEntities:pn.map(function(Kn){return Kn.key!==An?Kn:Object(B.a)(Object(B.a)({},Kn),{},{status:Yi})})}})},hr}return Object(R.a)(Pr,[{key:"render",value:function(){var An=this,br=this.state.keyEntities,pn=this.props,Kn=pn.component,Wn=pn.children,Ln=Object(Lt.a)(pn,["component","children"]),$n=Kn||c.Fragment,Un={};return Da.forEach(function(ti){Un[ti]=Ln[ti],delete Ln[ti]}),delete Ln.keys,c.createElement($n,Object.assign({},Ln),br.map(function(ti){var Gn=ti.status,wi=Object(Lt.a)(ti,["status"]),Ei=Gn===Sn||Gn===zi;return c.createElement(Gt,Object.assign({},Un,{key:wi.key,visible:Ei,eventProps:wi,onLeaveEnd:function(){Un.onLeaveEnd&&Un.onLeaveEnd.apply(Un,arguments),An.removeKey(wi.key)}}),Wn)}))}}],[{key:"getDerivedStateFromProps",value:function(An,br){var pn=An.keys,Kn=br.keyEntities,Wn=Hi(pn);if(!Je)return{keyEntities:Wn.map(function(Un){return Object(B.a)(Object(B.a)({},Un),{},{status:zi})})};var Ln=Ia(Kn,Wn),$n=Kn.length;return{keyEntities:Ln.filter(function(Un){for(var ti=null,Gn=0;Gn<$n;Gn+=1){var wi=Kn[Gn];if(wi.key===Un.key){ti=wi;break}}return!(ti&&ti.status===Yi&&Un.status===oa)})}}}]),Pr}(c.Component);return vr.defaultProps={component:"div"},vr}var Wo=Qa(Oi),po=bi,Mo=function(Gt,vr){var fr=Gt.prefixCls,Gr=Gt.className,Pr=Gt.style,hr=Gt.children,An=Gt.onMouseEnter,br=Gt.onMouseLeave,pn=Gt.onMouseDown,Kn=Gt.onTouchStart,Wn=hr;return c.Children.count(hr)>1&&(Wn=c.createElement("div",{className:"".concat(fr,"-content")},hr)),c.createElement("div",{ref:vr,className:Gr,onMouseEnter:An,onMouseLeave:br,onMouseDown:pn,onTouchStart:Kn,style:Pr},Wn)},Fo=c.forwardRef(Mo);Fo.displayName="PopupInner";var yo=Fo;function Oo(Je){var Gt=Je.prefixCls,vr=Je.motion,fr=Je.animation,Gr=Je.transitionName;return vr||(fr?{motionName:"".concat(Gt,"-").concat(fr)}:Gr?{motionName:Gr}:null)}function sa(Je){return Je&&Je.motionName}var hs=function(Je){Object(k.a)(vr,Je);var Gt=Object(M.a)(vr);function vr(){var fr;return Object(D.a)(this,vr),fr=Gt.apply(this,arguments),fr.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},fr.popupRef=o.a.createRef(),fr.alignRef=o.a.createRef(),fr.nextFrameState=null,fr.nextFrameId=null,fr.onAlign=function(Gr,Pr){var hr=fr.state.status,An=fr.props,br=An.getClassNameFromAlign,pn=An.onAlign,Kn=br(Pr);hr==="align"?fr.setState({alignClassName:Kn,status:"aligned"},function(){fr.alignRef.current.forceAlign()}):hr==="aligned"?(fr.setState({alignClassName:Kn,status:"afterAlign"}),pn(Gr,Pr)):fr.setState({alignClassName:Kn})},fr.onMotionEnd=function(){var Gr=fr.props.visible;fr.setState({status:Gr?"AfterMotion":"stable",inMotion:!1})},fr.setStateOnNextFrame=function(Gr){fr.cancelFrameState(),fr.nextFrameState=Object(B.a)(Object(B.a)({},fr.nextFrameState),Gr),fr.nextFrameId=Vr()(function(){var Pr=Object(B.a)({},fr.nextFrameState);fr.nextFrameState=null,fr.setState(Pr)})},fr.getMotion=function(){return Object(B.a)({},Oo(fr.props))},fr.getAlignTarget=function(){var Gr=fr.props,Pr=Gr.point,hr=Gr.getRootDomNode;return Pr||hr},fr.cancelFrameState=function(){Vr.a.cancel(fr.nextFrameId)},fr.renderPopupElement=function(){var Gr=fr.state,Pr=Gr.status,hr=Gr.targetHeight,An=Gr.targetWidth,br=Gr.alignClassName,pn=fr.props,Kn=pn.prefixCls,Wn=pn.className,Ln=pn.style,$n=pn.stretch,Un=pn.visible,ti=pn.align,Gn=pn.destroyPopupOnHide,wi=pn.onMouseEnter,Ei=pn.onMouseLeave,Zi=pn.onMouseDown,ua=pn.onTouchStart,Xi=pn.children,Gi=T()(Kn,Wn,br),wa="".concat(Kn,"-hidden"),na={};$n&&($n.indexOf("height")!==-1?na.height=hr:$n.indexOf("minHeight")!==-1&&(na.minHeight=hr),$n.indexOf("width")!==-1?na.width=An:$n.indexOf("minWidth")!==-1&&(na.minWidth=An));var mo=Object(B.a)(Object(B.a)(Object(B.a)(Object(B.a)({},na),fr.getZIndexStyle()),Ln),{},{opacity:Pr==="stable"||!Un?void 0:0,pointerEvents:Pr==="stable"||!Un?void 0:"none"}),Ca=fr.getMotion(),qi=Un;Un&&Pr!=="beforeMotion"&&Pr!=="motion"&&Pr!=="stable"&&(Ca.motionAppear=!1,Ca.motionEnter=!1,Ca.motionLeave=!1),(Pr==="afterAlign"||Pr==="beforeMotion")&&(qi=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(Aa){var ya=Ca==null?void 0:Ca[Aa];Ca[Aa]=function(){for(var Ha=arguments.length,ta=new Array(Ha),ra=0;ra<Ha;ra++)ta[ra]=arguments[ra];ya==null||ya.apply(void 0,ta),fr.setState({inMotion:!0})}});var aa=!Un||Pr!=="align"&&Pr!=="aligned"&&Pr!=="stable",$i=!0;return Pr==="stable"&&($i=Un),Gn&&!$i?null:o.a.createElement(po,Object.assign({visible:qi},Ca,{removeOnLeave:!1,onEnterEnd:fr.onMotionEnd,onLeaveEnd:fr.onMotionEnd,leavedClassName:wa}),function(Aa,ya){var Ha=Aa.style,ta=Aa.className;return o.a.createElement(jr.a,{target:fr.getAlignTarget(),key:"popup",ref:fr.alignRef,monitorWindowResize:!0,disabled:aa,align:ti,onAlign:fr.onAlign},o.a.createElement(yo,{prefixCls:Kn,className:T()(Gi,ta),ref:Object(Ki.a)(ya,fr.popupRef),onMouseEnter:wi,onMouseLeave:Ei,onMouseDown:Zi,onTouchStart:ua,style:Object(B.a)(Object(B.a)({},mo),Ha)},Xi))})},fr.renderMaskElement=function(){var Gr=fr.props,Pr=Gr.mask,hr=Gr.maskMotion,An=Gr.maskTransitionName,br=Gr.maskAnimation,pn=Gr.prefixCls,Kn=Gr.visible;if(!Pr)return null;var Wn={};return hr&&hr.motionName&&(Wn=Object(B.a)({motionAppear:!0},Oo({motion:hr,prefixCls:pn,transitionName:An,animation:br}))),o.a.createElement(po,Object.assign({},Wn,{visible:Kn,removeOnLeave:!0}),function(Ln){var $n=Ln.className;return o.a.createElement("div",{style:fr.getZIndexStyle(),key:"mask",className:T()("".concat(pn,"-mask"),$n)})})},fr}return Object(R.a)(vr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Gr=this.state.status,Pr=this.props,hr=Pr.getRootDomNode,An=Pr.visible,br=Pr.stretch;if(this.cancelFrameState(),An&&Gr!=="stable")switch(Gr){case null:{this.setStateOnNextFrame({status:br?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:sa(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var pn=["measure","align",null,"beforeMotion","motion"],Kn=pn.indexOf(Gr),Wn=pn[Kn+1];Kn!==-1&&Wn&&this.setStateOnNextFrame({status:Wn})}}if(Gr==="measure"){var Ln=hr();Ln&&this.setStateOnNextFrame({targetHeight:Ln.offsetHeight,targetWidth:Ln.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Gr=this.props.zIndex;return{zIndex:Gr}}},{key:"render",value:function(){return o.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Gr,Pr){var hr=Gr.visible,An=Object(Lt.a)(Gr,["visible"]),br=Pr.prevVisible,pn=Pr.status,Kn=Pr.inMotion,Wn={prevVisible:hr,status:pn},Ln=Oo(An);return br===null&&hr===!1?(Wn.status="stable",Wn.inMotion=!1):hr!==br&&(Wn.inMotion=!1,hr||sa(Ln)&&Kn?Wn.status=null:Wn.status="stable",hr&&(Wn.alignClassName=null)),Wn}}]),vr}(c.Component),Jo=hs,wo=c.createContext(null),_o=wo;function Bo(){}function Ds(){return""}function Nr(){return window.document}var rn=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function En(Je){var Gt=function(vr){Object(k.a)(Gr,vr);var fr=Object(M.a)(Gr);function Gr(Pr){var hr;Object(D.a)(this,Gr),hr=fr.call(this,Pr),hr.popupRef=o.a.createRef(),hr.triggerRef=o.a.createRef(),hr.onMouseEnter=function(br){var pn=hr.props.mouseEnterDelay;hr.fireEvents("onMouseEnter",br),hr.delaySetPopupVisible(!0,pn,pn?null:br)},hr.onMouseMove=function(br){hr.fireEvents("onMouseMove",br),hr.setPoint(br)},hr.onMouseLeave=function(br){hr.fireEvents("onMouseLeave",br),hr.delaySetPopupVisible(!1,hr.props.mouseLeaveDelay)},hr.onPopupMouseEnter=function(){hr.clearDelayTimer()},hr.onPopupMouseLeave=function(br){if(br.relatedTarget&&!br.relatedTarget.setTimeout&&hr.popupRef.current&&hr.popupRef.current.popupRef.current&&Object(ki.a)(hr.popupRef.current.popupRef.current,br.relatedTarget))return;hr.delaySetPopupVisible(!1,hr.props.mouseLeaveDelay)},hr.onFocus=function(br){hr.fireEvents("onFocus",br),hr.clearDelayTimer(),hr.isFocusToShow()&&(hr.focusTime=Date.now(),hr.delaySetPopupVisible(!0,hr.props.focusDelay))},hr.onMouseDown=function(br){hr.fireEvents("onMouseDown",br),hr.preClickTime=Date.now()},hr.onTouchStart=function(br){hr.fireEvents("onTouchStart",br),hr.preTouchTime=Date.now()},hr.onBlur=function(br){hr.fireEvents("onBlur",br),hr.clearDelayTimer(),hr.isBlurToHide()&&hr.delaySetPopupVisible(!1,hr.props.blurDelay)},hr.onContextMenu=function(br){br.preventDefault(),hr.fireEvents("onContextMenu",br),hr.setPopupVisible(!0,br)},hr.onContextMenuClose=function(){hr.isContextMenuToShow()&&hr.close()},hr.onClick=function(br){if(hr.fireEvents("onClick",br),hr.focusTime){var pn;if(hr.preClickTime&&hr.preTouchTime?pn=Math.min(hr.preClickTime,hr.preTouchTime):hr.preClickTime?pn=hr.preClickTime:hr.preTouchTime&&(pn=hr.preTouchTime),Math.abs(pn-hr.focusTime)<20)return;hr.focusTime=0}hr.preClickTime=0,hr.preTouchTime=0,hr.isClickToShow()&&(hr.isClickToHide()||hr.isBlurToHide())&&br&&br.preventDefault&&br.preventDefault();var Kn=!hr.state.popupVisible;(hr.isClickToHide()&&!Kn||Kn&&hr.isClickToShow())&&hr.setPopupVisible(!hr.state.popupVisible,br)},hr.onPopupMouseDown=function(){if(hr.hasPopupMouseDown=!0,clearTimeout(hr.mouseDownTimeout),hr.mouseDownTimeout=window.setTimeout(function(){hr.hasPopupMouseDown=!1},0),hr.context){var br;(br=hr.context).onPopupMouseDown.apply(br,arguments)}},hr.onDocumentClick=function(br){if(hr.props.mask&&!hr.props.maskClosable)return;var pn=br.target,Kn=hr.getRootDomNode(),Wn=hr.getPopupDomNode();!Object(ki.a)(Kn,pn)&&!Object(ki.a)(Wn,pn)&&!hr.hasPopupMouseDown&&hr.close()},hr.getRootDomNode=function(){var br=hr.props.getTriggerDOMNode;if(br)return br(hr.triggerRef.current);try{var pn=Object(Di.a)(hr.triggerRef.current);if(pn)return pn}catch(Kn){}return Ui.a.findDOMNode(Object(On.a)(hr))},hr.getPopupClassNameFromAlign=function(br){var pn=[],Kn=hr.props,Wn=Kn.popupPlacement,Ln=Kn.builtinPlacements,$n=Kn.prefixCls,Un=Kn.alignPoint,ti=Kn.getPopupClassNameFromAlign;return Wn&&Ln&&pn.push(Cr(Ln,$n,br,Un)),ti&&pn.push(ti(br)),pn.join(" ")},hr.getComponent=function(){var br=hr.props,pn=br.prefixCls,Kn=br.destroyPopupOnHide,Wn=br.popupClassName,Ln=br.onPopupAlign,$n=br.popupMotion,Un=br.popupAnimation,ti=br.popupTransitionName,Gn=br.popupStyle,wi=br.mask,Ei=br.maskAnimation,Zi=br.maskTransitionName,ua=br.maskMotion,Xi=br.zIndex,Gi=br.popup,wa=br.stretch,na=br.alignPoint,mo=hr.state,Ca=mo.popupVisible,qi=mo.point,aa=hr.getPopupAlign(),$i={};return hr.isMouseEnterToShow()&&($i.onMouseEnter=hr.onPopupMouseEnter),hr.isMouseLeaveToHide()&&($i.onMouseLeave=hr.onPopupMouseLeave),$i.onMouseDown=hr.onPopupMouseDown,$i.onTouchStart=hr.onPopupMouseDown,o.a.createElement(Jo,Object.assign({prefixCls:pn,destroyPopupOnHide:Kn,visible:Ca,point:na&&qi,className:Wn,align:aa,onAlign:Ln,animation:Un,getClassNameFromAlign:hr.getPopupClassNameFromAlign},$i,{stretch:wa,getRootDomNode:hr.getRootDomNode,style:Gn,mask:wi,zIndex:Xi,transitionName:ti,maskAnimation:Ei,maskTransitionName:Zi,maskMotion:ua,ref:hr.popupRef,motion:$n}),typeof Gi=="function"?Gi():Gi)},hr.getContainer=function(){var br=Object(On.a)(hr),pn=br.props,Kn=document.createElement("div");Kn.style.position="absolute",Kn.style.top="0",Kn.style.left="0",Kn.style.width="100%";var Wn=pn.getPopupContainer?pn.getPopupContainer(hr.getRootDomNode()):pn.getDocument().body;return Wn.appendChild(Kn),Kn},hr.setPoint=function(br){var pn=hr.props.alignPoint;if(!pn||!br)return;hr.setState({point:{pageX:br.pageX,pageY:br.pageY}})},hr.handlePortalUpdate=function(){hr.state.prevPopupVisible!==hr.state.popupVisible&&hr.props.afterPopupVisibleChange(hr.state.popupVisible)};var An;return"popupVisible"in Pr?An=!!Pr.popupVisible:An=!!Pr.defaultPopupVisible,hr.state={prevPopupVisible:An,popupVisible:An},rn.forEach(function(br){hr["fire".concat(br)]=function(pn){hr.fireEvents(br,pn)}}),hr}return Object(R.a)(Gr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var hr=this.props,An=this.state;if(An.popupVisible){var br;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(br=hr.getDocument(),this.clickOutsideHandler=Object(Ur.a)(br,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(br=br||hr.getDocument(),this.touchOutsideHandler=Object(Ur.a)(br,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(br=br||hr.getDocument(),this.contextMenuOutsideHandler1=Object(Ur.a)(br,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Ur.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 hr=this.props,An=hr.popupPlacement,br=hr.popupAlign,pn=hr.builtinPlacements;return An&&pn?mr(pn,An,br):br}},{key:"setPopupVisible",value:function(hr,An){var br=this.props.alignPoint,pn=this.state.popupVisible;this.clearDelayTimer(),pn!==hr&&("popupVisible"in this.props||this.setState({popupVisible:hr,prevPopupVisible:pn}),this.props.onPopupVisibleChange(hr)),br&&An&&this.setPoint(An)}},{key:"delaySetPopupVisible",value:function(hr,An,br){var pn=this,Kn=An*1e3;if(this.clearDelayTimer(),Kn){var Wn=br?{pageX:br.pageX,pageY:br.pageY}:null;this.delayTimer=window.setTimeout(function(){pn.setPopupVisible(hr,Wn),pn.clearDelayTimer()},Kn)}else this.setPopupVisible(hr,br)}},{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(hr){var An=this.props.children.props,br=this.props;return An[hr]&&br[hr]?this["fire".concat(hr)]:An[hr]||br[hr]}},{key:"isClickToShow",value:function(){var hr=this.props,An=hr.action,br=hr.showAction;return An.indexOf("click")!==-1||br.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var hr=this.props,An=hr.action,br=hr.showAction;return An.indexOf("contextMenu")!==-1||br.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var hr=this.props,An=hr.action,br=hr.hideAction;return An.indexOf("click")!==-1||br.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var hr=this.props,An=hr.action,br=hr.showAction;return An.indexOf("hover")!==-1||br.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var hr=this.props,An=hr.action,br=hr.hideAction;return An.indexOf("hover")!==-1||br.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var hr=this.props,An=hr.action,br=hr.showAction;return An.indexOf("focus")!==-1||br.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var hr=this.props,An=hr.action,br=hr.hideAction;return An.indexOf("focus")!==-1||br.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(hr,An){var br=this.props.children.props[hr];br&&br(An);var pn=this.props[hr];pn&&pn(An)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var hr=this.state.popupVisible,An=this.props,br=An.children,pn=An.forceRender,Kn=An.alignPoint,Wn=An.className,Ln=An.autoDestroy,$n=o.a.Children.only(br),Un={key:"trigger"};this.isContextMenuToShow()?Un.onContextMenu=this.onContextMenu:Un.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Un.onClick=this.onClick,Un.onMouseDown=this.onMouseDown,Un.onTouchStart=this.onTouchStart):(Un.onClick=this.createTwoChains("onClick"),Un.onMouseDown=this.createTwoChains("onMouseDown"),Un.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Un.onMouseEnter=this.onMouseEnter,Kn&&(Un.onMouseMove=this.onMouseMove)):Un.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Un.onMouseLeave=this.onMouseLeave:Un.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Un.onFocus=this.onFocus,Un.onBlur=this.onBlur):(Un.onFocus=this.createTwoChains("onFocus"),Un.onBlur=this.createTwoChains("onBlur"));var ti=T()($n&&$n.props&&$n.props.className,Wn);ti&&(Un.className=ti);var Gn=Object(B.a)({},Un);Object(Ki.c)($n)&&(Gn.ref=Object(Ki.a)(this.triggerRef,$n.ref));var wi=o.a.cloneElement($n,Gn),Ei;return(hr||this.popupRef.current||pn)&&(Ei=o.a.createElement(Je,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!hr&&Ln&&(Ei=null),o.a.createElement(_o.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},wi,Ei)}}],[{key:"getDerivedStateFromProps",value:function(hr,An){var br=hr.popupVisible,pn={};return br!==void 0&&An.popupVisible!==br&&(pn.popupVisible=br,pn.prevPopupVisible=An.popupVisible),pn}}]),Gr}(o.a.Component);return Gt.contextType=_o,Gt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Ds,getDocument:Nr,onPopupVisibleChange:Bo,afterPopupVisibleChange:Bo,onPopupAlign:Bo,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Gt}var en=En(Tn.a),ur={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 on(Je){var Gt,vr=Je.prefixCls,fr=Je.popupElement,Gr=Je.popupStyle,Pr=Je.visible,hr=Je.dropdownClassName,An=Je.dropdownAlign,br=Je.transitionName,pn=Je.getPopupContainer,Kn=Je.children,Wn=Je.range,Ln=Je.popupPlacement,$n=Je.direction,Un="".concat(vr,"-dropdown"),ti=function(){return Ln!==void 0?Ln:$n==="rtl"?"bottomRight":"bottomLeft"};return c.createElement(en,{showAction:[],hideAction:[],popupPlacement:ti(),builtinPlacements:ur,prefixCls:Un,popupTransitionName:br,popup:fr,popupAlign:An,popupVisible:Pr,popupClassName:T()(hr,(Gt={},Object(U.a)(Gt,"".concat(Un,"-range"),Wn),Object(U.a)(Gt,"".concat(Un,"-rtl"),$n==="rtl"),Gt)),popupStyle:Gr,getPopupContainer:pn},Kn)}var Bn=on;function Hn(Je){var Gt=Je.open,vr=Je.value,fr=Je.isClickOutside,Gr=Je.triggerOpen,Pr=Je.forwardKeyDown,hr=Je.blurToCancel,An=Je.onSubmit,br=Je.onCancel,pn=Je.onFocus,Kn=Je.onBlur,Wn=Object(c.useState)(!1),Ln=Object(j.a)(Wn,2),$n=Ln[0],Un=Ln[1],ti=Object(c.useState)(!1),Gn=Object(j.a)(ti,2),wi=Gn[0],Ei=Gn[1],Zi=Object(c.useRef)(!1),ua=Object(c.useRef)(!1),Xi={onMouseDown:function(){Un(!0),Gr(!0)},onKeyDown:function(wa){switch(wa.which){case z.a.ENTER:{Gt?An()!==!1&&Un(!0):Gr(!0),wa.preventDefault();return}case z.a.TAB:{$n&&Gt&&!wa.shiftKey?(Un(!1),wa.preventDefault()):!$n&&Gt&&(!Pr(wa)&&wa.shiftKey&&(Un(!0),wa.preventDefault()));return}case z.a.ESC:{Un(!0),br();return}}!Gt&&![z.a.SHIFT].includes(wa.which)?Gr(!0):$n||Pr(wa)},onFocus:function(wa){Un(!0),Ei(!0),pn&&pn(wa)},onBlur:function(wa){if(Zi.current||!fr(document.activeElement)){Zi.current=!1;return}hr?setTimeout(function(){fr(document.activeElement)&&br()},0):Gt&&(Gr(!1),ua.current&&An()),Ei(!1),Kn&&Kn(wa)}};return Object(c.useEffect)(function(){ua.current=!1},[Gt]),Object(c.useEffect)(function(){ua.current=!0},[vr]),Object(c.useEffect)(function(){return Y(function(Gi){var wa=Gi.target;Gt&&(fr(wa)?wi||Gr(!1):(Zi.current=!0,requestAnimationFrame(function(){Zi.current=!1})))})}),[Xi,{focused:wi,typing:$n}]}function Ii(Je){var Gt=Je.valueTexts,vr=Je.onTextChange,fr=c.useState(""),Gr=Object(j.a)(fr,2),Pr=Gr[0],hr=Gr[1],An=c.useRef([]);An.current=Gt;function br(Kn){hr(Kn),vr(Kn)}function pn(){hr(An.current[0])}return c.useEffect(function(){Gt.every(function(Kn){return Kn!==Pr})&&pn()},[Gt.join("||")]),[Pr,br,pn]}var Ci=d("Gytx"),Jn=d.n(Ci);function mi(Je,Gt){var vr=Gt.formatList,fr=Gt.generateConfig,Gr=Gt.locale;return Object(Ue.a)(function(){if(!Je)return[[""],""];for(var Pr="",hr=[],An=0;An<vr.length;An+=1){var br=vr[An],pn=fr.locale.format(Gr.locale,Je,br);hr.push(pn),An===0&&(Pr=pn)}return[hr,Pr]},[Je,vr],function(Pr,hr){return Pr[0]!==hr[0]||!Jn()(Pr[1],hr[1])})}function yi(Je,Gt){var vr=Gt.formatList,fr=Gt.generateConfig,Gr=Gt.locale,Pr=Object(c.useState)(null),hr=Object(j.a)(Pr,2),An=hr[0],br=hr[1],pn=Object(c.useRef)(null);function Kn(Gn){var wi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(pn.current),wi){br(Gn);return}pn.current=requestAnimationFrame(function(){br(Gn)})}var Wn=mi(An,{formatList:vr,generateConfig:fr,locale:Gr}),Ln=Object(j.a)(Wn,2),$n=Ln[1];function Un(Gn){Kn(Gn)}function ti(){var Gn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Kn(null,Gn)}return Object(c.useEffect)(function(){ti(!0)},[Je]),Object(c.useEffect)(function(){return function(){return cancelAnimationFrame(pn.current)}},[]),[$n,Un,ti]}function da(Je){var Gt,vr=Je.prefixCls,fr=vr===void 0?"rc-picker":vr,Gr=Je.id,Pr=Je.tabIndex,hr=Je.style,An=Je.className,br=Je.dropdownClassName,pn=Je.dropdownAlign,Kn=Je.popupStyle,Wn=Je.transitionName,Ln=Je.generateConfig,$n=Je.locale,Un=Je.inputReadOnly,ti=Je.allowClear,Gn=Je.autoFocus,wi=Je.showTime,Ei=Je.picker,Zi=Ei===void 0?"date":Ei,ua=Je.format,Xi=Je.use12Hours,Gi=Je.value,wa=Je.defaultValue,na=Je.open,mo=Je.defaultOpen,Ca=Je.defaultOpenValue,qi=Je.suffixIcon,aa=Je.clearIcon,$i=Je.disabled,Aa=Je.disabledDate,ya=Je.placeholder,Ha=Je.getPopupContainer,ta=Je.pickerRef,ra=Je.panelRender,_a=Je.onChange,Ka=Je.onOpenChange,bo=Je.onFocus,ga=Je.onBlur,go=Je.onMouseDown,Sa=Je.onMouseUp,Va=Je.onMouseEnter,uo=Je.onMouseLeave,No=Je.onContextMenu,Po=Je.onClick,to=Je.direction,Uo=Je.autoComplete,co=Uo===void 0?"off":Uo,fa=c.useRef(null),ro=Zi==="date"&&!!wi||Zi==="time",Wa=Le(Ve(ua,Zi,wi,Xi)),Ea=c.useRef(null),Qr=c.useRef(null),za=Object(W.a)(null,{value:Gi,defaultValue:wa}),rs=Object(j.a)(za,2),Vo=rs[0],Go=rs[1],Qo=c.useState(Vo),Yo=Object(j.a)(Qo,2),vo=Yo[0],Io=Yo[1],zo=c.useRef(null),Fa=Object(W.a)(!1,{value:na,defaultValue:mo,postState:function(ka){return $i?!1:ka},onChange:function(ka){Ka&&Ka(ka),!ka&&zo.current&&zo.current.onClose&&zo.current.onClose()}}),Ja=Object(j.a)(Fa,2),ho=Ja[0],Ao=Ja[1],$o=mi(vo,{formatList:Wa,generateConfig:Ln,locale:$n}),ps=Object(j.a)($o,2),is=ps[0],Za=ps[1],St=Ii({valueTexts:is,onTextChange:function(ka){var os=Ln.locale.parse($n.locale,ka,Wa);os&&(!Aa||!Aa(os))&&Io(os)}}),Pt=Object(j.a)(St,3),Kr=Pt[0],Pn=Pt[1],ut=Pt[2],ne=function(ka){Io(ka),Go(ka),_a&&!Ut(Ln,Vo,ka)&&_a(ka,ka?Ln.locale.format($n.locale,ka,Wa[0]):"")},pe=function(ka){if($i&&ka)return;Ao(ka)},be=function(ka){return ho&&zo.current&&zo.current.onKeyDown?zo.current.onKeyDown(ka):(Object(C.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},je=function(){Sa&&Sa.apply(void 0,arguments),fa.current&&(fa.current.focus(),pe(!0))},ht=Hn({blurToCancel:ro,open:ho,value:Kr,triggerOpen:pe,forwardKeyDown:be,isClickOutside:function(ka){return!Ae([Ea.current,Qr.current],ka)},onSubmit:function(){return Aa&&Aa(vo)?!1:(ne(vo),pe(!1),ut(),!0)},onCancel:function(){pe(!1),Io(Vo),ut()},onFocus:bo,onBlur:ga}),Vt=Object(j.a)(ht,2),Or=Vt[0],Yr=Vt[1],cn=Yr.focused,jn=Yr.typing;c.useEffect(function(){ho||(Io(Vo),!is.length||is[0]===""?Pn(""):Za!==Kr&&ut())},[ho,is]),c.useEffect(function(){ho||ut()},[Zi]),c.useEffect(function(){Io(Vo)},[Vo]),ta&&(ta.current={focus:function(){fa.current&&fa.current.focus()},blur:function(){fa.current&&fa.current.blur()}});var ai=Object(B.a)(Object(B.a)({},Je),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),Qn=c.createElement(Rr,Object.assign({},ai,{generateConfig:Ln,className:T()(Object(U.a)({},"".concat(fr,"-panel-focused"),!jn)),value:vo,locale:$n,tabIndex:-1,onChange:Io,direction:to}));ra&&(Qn=ra(Qn));var Ni=c.createElement("div",{className:"".concat(fr,"-panel-container"),onMouseDown:function(ka){ka.preventDefault()}},Qn),Vi;qi&&(Vi=c.createElement("span",{className:"".concat(fr,"-suffix")},qi));var Ta;ti&&Vo&&!$i&&(Ta=c.createElement("span",{onMouseDown:function(ka){ka.preventDefault(),ka.stopPropagation()},onMouseUp:function(ka){ka.preventDefault(),ka.stopPropagation(),ne(null),pe(!1)},className:"".concat(fr,"-clear")},aa||c.createElement("span",{className:"".concat(fr,"-clear-btn")})));var Ga=function(ka,os){(os==="submit"||os!=="key"&&!ro)&&(ne(ka),pe(!1))},ao=to==="rtl"?"bottomRight":"bottomLeft",Do=yi(Kr,{formatList:Wa,generateConfig:Ln,locale:$n}),fo=Object(j.a)(Do,3),as=fo[0],io=fo[1],Xa=fo[2];return c.createElement(Z.Provider,{value:{operationRef:zo,hideHeader:Zi==="time",panelRef:Ea,onSelect:Ga,open:ho,defaultOpenValue:Ca,onDateMouseEnter:io,onDateMouseLeave:Xa}},c.createElement(Bn,{visible:ho,popupElement:Ni,popupStyle:Kn,prefixCls:fr,dropdownClassName:br,dropdownAlign:pn,getPopupContainer:Ha,transitionName:Wn,popupPlacement:ao,direction:to},c.createElement("div",{className:T()(fr,An,(Gt={},Object(U.a)(Gt,"".concat(fr,"-disabled"),$i),Object(U.a)(Gt,"".concat(fr,"-focused"),cn),Object(U.a)(Gt,"".concat(fr,"-rtl"),to==="rtl"),Gt)),style:hr,onMouseDown:go,onMouseUp:je,onMouseEnter:Va,onMouseLeave:uo,onContextMenu:No,onClick:Po},c.createElement("div",{className:T()("".concat(fr,"-input"),Object(U.a)({},"".concat(fr,"-input-placeholder"),!!as)),ref:Qr},c.createElement("input",Object.assign({id:Gr,tabIndex:Pr,disabled:$i,readOnly:Un||!jn,value:as||Kr,onChange:function(ka){Pn(ka.target.value)},autoFocus:Gn,placeholder:ya,ref:fa,title:Kr},Or,{size:ae(Zi,Wa[0])},Ot(Je),{autoComplete:co})),Vi,Ta))))}var ha=function(Je){Object(k.a)(vr,Je);var Gt=Object(M.a)(vr);function vr(){var fr;return Object(D.a)(this,vr),fr=Gt.apply(this,arguments),fr.pickerRef=c.createRef(),fr.focus=function(){fr.pickerRef.current&&fr.pickerRef.current.focus()},fr.blur=function(){fr.pickerRef.current&&fr.pickerRef.current.blur()},fr}return Object(R.a)(vr,[{key:"render",value:function(){return c.createElement(da,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),vr}(c.Component),Pa=ha;function Ra(Je,Gt,vr){var fr=Je.picker,Gr=Je.locale,Pr=Je.selectedValue,hr=Je.disabledDate,An=Je.disabled,br=Je.generateConfig,pn=$e(Pr,0),Kn=$e(Pr,1);function Wn(Gn){var wi=br.getYear(Gn),Ei=br.locale.getWeek(Gr.locale,Gn);return wi*100+Ei}function Ln(Gn){var wi=br.getYear(Gn),Ei=br.getMonth(Gn);return wi*100+Ei}function $n(Gn){var wi=br.getYear(Gn),Ei=_t(br,Gn);return wi*10+Ei}var Un=c.useCallback(function(Gn){if(hr&&hr(Gn))return!0;if(An[1]&&Kn)return!nr(br,Gn,Kn)&&br.isAfter(Gn,Kn);if(Gt&&Kn)switch(fr){case"quarter":return $n(Gn)>$n(Kn);case"month":return Ln(Gn)>Ln(Kn);case"week":return Wn(Gn)>Wn(Kn);default:return!nr(br,Gn,Kn)&&br.isAfter(Gn,Kn)}return!1},[hr,An[1],Kn,Gt]),ti=c.useCallback(function(Gn){if(hr&&hr(Gn))return!0;if(An[0]&&pn)return!nr(br,Gn,Kn)&&br.isAfter(pn,Gn);if(vr&&pn)switch(fr){case"quarter":return $n(Gn)<$n(pn);case"month":return Ln(Gn)<Ln(pn);case"week":return Wn(Gn)<Wn(pn);default:return!nr(br,Gn,pn)&&br.isAfter(pn,Gn)}return!1},[hr,An[0],pn,vr]);return[Un,ti]}function so(Je,Gt,vr,fr){var Gr=mn(Je,vr,fr,1);function Pr(hr){return hr(Je,Gt)?"same":hr(Gr,Gt)?"closing":"far"}switch(vr){case"year":return Pr(function(hr,An){return Ct(fr,hr,An)});case"quarter":case"month":return Pr(function(hr,An){return dt(fr,hr,An)});default:return Pr(function(hr,An){return $r(fr,hr,An)})}}function La(Je,Gt,vr,fr){var Gr=$e(Je,0),Pr=$e(Je,1);if(Gt===0)return Gr;if(Gr&&Pr){var hr=so(Gr,Pr,vr,fr);switch(hr){case"same":return Gr;case"closing":return Gr;default:return mn(Pr,vr,fr,-1)}}return Gr}function lo(Je){var Gt=Je.values,vr=Je.picker,fr=Je.defaultDates,Gr=Je.generateConfig,Pr=c.useState(function(){return[$e(fr,0),$e(fr,1)]}),hr=Object(j.a)(Pr,2),An=hr[0],br=hr[1],pn=c.useState(null),Kn=Object(j.a)(pn,2),Wn=Kn[0],Ln=Kn[1],$n=$e(Gt,0),Un=$e(Gt,1);function ti(wi){return An[wi]?An[wi]:$e(Wn,wi)||La(Gt,wi,vr,Gr)||$n||Un||Gr.getNow()}function Gn(wi,Ei){if(wi){var Zi=xt(Wn,wi,Ei);br(xt(An,null,Ei)||[null,null]);var ua=(Ei+1)%2;$e(Gt,ua)||(Zi=xt(Zi,wi,ua)),Ln(Zi)}else($n||Un)&&Ln(null)}return[ti,Gn]}function So(Je,Gt){return Je&&Je[0]&&Je[1]&&Gt.isAfter(Je[0],Je[1])?[Je[1],Je[0]]:Je}function Xt(Je,Gt,vr,fr){return Je||fr&&fr[Gt]?!0:!!vr[(Gt+1)%2]}function zr(Je){var Gt,vr,fr,Gr=Je.prefixCls,Pr=Gr===void 0?"rc-picker":Gr,hr=Je.id,An=Je.style,br=Je.className,pn=Je.popupStyle,Kn=Je.dropdownClassName,Wn=Je.transitionName,Ln=Je.dropdownAlign,$n=Je.getPopupContainer,Un=Je.generateConfig,ti=Je.locale,Gn=Je.placeholder,wi=Je.autoFocus,Ei=Je.disabled,Zi=Je.format,ua=Je.picker,Xi=ua===void 0?"date":ua,Gi=Je.showTime,wa=Je.use12Hours,na=Je.separator,mo=na===void 0?"~":na,Ca=Je.value,qi=Je.defaultValue,aa=Je.defaultPickerValue,$i=Je.open,Aa=Je.defaultOpen,ya=Je.disabledDate,Ha=Je.disabledTime,ta=Je.dateRender,ra=Je.panelRender,_a=Je.ranges,Ka=Je.allowEmpty,bo=Je.allowClear,ga=Je.suffixIcon,go=Je.clearIcon,Sa=Je.pickerRef,Va=Je.inputReadOnly,uo=Je.mode,No=Je.renderExtraFooter,Po=Je.onChange,to=Je.onOpenChange,Uo=Je.onPanelChange,co=Je.onCalendarChange,fa=Je.onFocus,ro=Je.onBlur,Wa=Je.onOk,Ea=Je.components,Qr=Je.order,za=Je.direction,rs=Je.activePickerIndex,Vo=Je.autoComplete,Go=Vo===void 0?"off":Vo,Qo=Xi==="date"&&!!Gi||Xi==="time",Yo=Object(c.useRef)({}),vo=Object(c.useRef)(null),Io=Object(c.useRef)(null),zo=Object(c.useRef)(null),Fa=Object(c.useRef)(null),Ja=Object(c.useRef)(null),ho=Object(c.useRef)(null),Ao=Object(c.useRef)(null),$o=Le(Ve(Zi,Xi,Gi,wa)),ps=Object(W.a)(0,{value:rs}),is=Object(j.a)(ps,2),Za=is[0],St=is[1],Pt=Object(c.useRef)(null),Kr=c.useMemo(function(){return Array.isArray(Ei)?Ei:[Ei||!1,Ei||!1]},[Ei]),Pn=Object(W.a)(null,{value:Ca,defaultValue:qi,postState:function($a){return Xi==="time"&&!Qr?$a:So($a,Un)}}),ut=Object(j.a)(Pn,2),ne=ut[0],pe=ut[1],be=lo({values:ne,picker:Xi,defaultDates:aa,generateConfig:Un}),je=Object(j.a)(be,2),ht=je[0],Vt=je[1],Or=Object(W.a)(ne,{postState:function($a){var Eo=$a;if(Kr[0]&&Kr[1])return Eo;for(var Ko=0;Ko<2;Ko+=1)Kr[Ko]&&!$e(Eo,Ko)&&!$e(Ka,Ko)&&(Eo=xt(Eo,Un.getNow(),Ko));return Eo}}),Yr=Object(j.a)(Or,2),cn=Yr[0],jn=Yr[1],ai=Object(W.a)([Xi,Xi],{value:uo}),Qn=Object(j.a)(ai,2),Ni=Qn[0],Vi=Qn[1];Object(c.useEffect)(function(){Vi([Xi,Xi])},[Xi]);var Ta=function($a,Eo){Vi($a),Uo&&Uo(Eo,$a)},Ga=Ra({picker:Xi,selectedValue:cn,locale:ti,disabled:Kr,disabledDate:ya,generateConfig:Un},Yo.current[1],Yo.current[0]),ao=Object(j.a)(Ga,2),Do=ao[0],fo=ao[1],as=Object(W.a)(!1,{value:$i,defaultValue:Aa,postState:function($a){return Kr[Za]?!1:$a},onChange:function($a){to&&to($a),!$a&&Pt.current&&Pt.current.onClose&&Pt.current.onClose()}}),io=Object(j.a)(as,2),Xa=io[0],Ya=io[1],ka=Xa&&Za===0,os=Xa&&Za===1,Es=Object(c.useState)(0),qo=Object(j.a)(Es,2),pa=qo[0],ls=qo[1];Object(c.useEffect)(function(){!Xa&&vo.current&&ls(vo.current.offsetWidth)},[Xa]);var Os=c.useRef();function ys(es,$a){if(es)clearTimeout(Os.current),Yo.current[$a]=!0,St($a),Ya(es),Xa||Vt(null,$a);else if(Za===$a){Ya(es);var Eo=Yo.current;Os.current=setTimeout(function(){Eo===Yo.current&&(Yo.current={})})}}function ms(es){ys(!0,es),setTimeout(function(){var $a=[ho,Ao][es];$a.current&&$a.current.focus()},0)}function ws(es,$a){var Eo=es,Ko=$e(Eo,0),js=$e(Eo,1);Ko&&js&&Un.isAfter(Ko,js)&&(Xi==="week"&&!zt(Un,ti.locale,Ko,js)||Xi==="quarter"&&!ir(Un,Ko,js)||Xi!=="week"&&Xi!=="quarter"&&Xi!=="time"&&!nr(Un,Ko,js)?($a===0?(Eo=[Ko,null],js=null):(Ko=null,Eo=[null,js]),Yo.current=Object(U.a)({},$a,!0)):(Xi!=="time"||Qr!==!1)&&(Eo=So(Eo,Un))),jn(Eo);var Bl=Eo&&Eo[0]?Un.locale.format(ti.locale,Eo[0],$o[0]):"",Ul=Eo&&Eo[1]?Un.locale.format(ti.locale,Eo[1],$o[0]):"";if(co){var Ol={range:$a===0?"start":"end"};co(Eo,[Bl,Ul],Ol)}var Ll=Xt(Ko,0,Kr,Ka),jl=Xt(js,1,Kr,Ka),Hl=Eo===null||Ll&&jl;Hl&&(pe(Eo),Po&&(!Ut(Un,$e(ne,0),Ko)||!Ut(Un,$e(ne,1),js))&&Po(Eo,[Bl,Ul]));var Vs=null;$a===0&&!Kr[1]?Vs=1:$a===1&&!Kr[0]&&(Vs=0),Vs!==null&&Vs!==Za&&(!Yo.current[Vs]||!$e(Eo,Vs))&&$e(Eo,$a)?ms(Vs):ys(!1,$a)}var Pl=function($a){return Xa&&Pt.current&&Pt.current.onKeyDown?Pt.current.onKeyDown($a):(Object(C.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},ml={formatList:$o,generateConfig:Un,locale:ti},Ws=mi($e(cn,0),ml),fs=Object(j.a)(Ws,2),_s=fs[0],gl=fs[1],Bs=mi($e(cn,1),ml),Us=Object(j.a)(Bs,2),Qs=Us[0],al=Us[1],El=function($a,Eo){var Ko=Un.locale.parse(ti.locale,$a,$o),js=Eo===0?Do:fo;Ko&&!js(Ko)&&(jn(xt(cn,Ko,Eo)),Vt(Ko,Eo))},bl=Ii({valueTexts:_s,onTextChange:function($a){return El($a,0)}}),ol=Object(j.a)(bl,3),Gs=ol[0],zs=ol[1],vl=ol[2],Xs=Ii({valueTexts:Qs,onTextChange:function($a){return El($a,1)}}),sl=Object(j.a)(Xs,3),dl=sl[0],rl=sl[1],nl=sl[2],Tl=Object(c.useState)(null),Rs=Object(j.a)(Tl,2),bs=Rs[0],Ms=Rs[1],Ts=Object(c.useState)(null),Zs=Object(j.a)(Ts,2),hl=Zs[0],wl=Zs[1],Kl=yi(Gs,{formatList:$o,generateConfig:Un,locale:ti}),il=Object(j.a)(Kl,3),fl=il[0],kl=il[1],gu=il[2],Jl=yi(dl,{formatList:$o,generateConfig:Un,locale:ti}),Zl=Object(j.a)(Jl,3),$l=Zl[0],Gl=Zl[1],$s=Zl[2],ll=function($a){wl(xt(cn,$a,Za)),Za===0?kl($a):Gl($a)},pl=function(){wl(xt(cn,null,Za)),Za===0?gu():$s()},Nl=function($a,Eo){return{blurToCancel:Qo,forwardKeyDown:Pl,onBlur:ro,isClickOutside:function(js){return!Ae([Io.current,zo.current,Fa.current],js)},onFocus:function(js){St($a),fa&&fa(js)},triggerOpen:function(js){ys(js,$a)},onSubmit:function(){ws(cn,$a),Eo()},onCancel:function(){ys(!1,$a),jn(ne),Eo()}}},ou=Hn(Object(B.a)(Object(B.a)({},Nl(0,vl)),{},{open:ka,value:Gs})),ql=Object(j.a)(ou,2),eu=ql[0],el=ql[1],tu=el.focused,ru=el.typing,su=Hn(Object(B.a)(Object(B.a)({},Nl(1,nl)),{},{open:os,value:dl})),Cl=Object(j.a)(su,2),Dl=Cl[0],Fl=Cl[1],Xl=Fl.focused,jo=Fl.typing,Ho=function($a){!Xa&&!ho.current.contains($a.target)&&!Ao.current.contains($a.target)&&(Kr[0]?Kr[1]||ms(1):ms(0))},us=function($a){Xa&&(tu||Xl)&&!ho.current.contains($a.target)&&!Ao.current.contains($a.target)&&$a.preventDefault()},cs=ne&&ne[0]?Un.locale.format(ti.locale,ne[0],"YYYYMMDDHHmmss"):"",Cs=ne&&ne[1]?Un.locale.format(ti.locale,ne[1],"YYYYMMDDHHmmss"):"";Object(c.useEffect)(function(){Xa||(jn(ne),!_s.length||_s[0]===""?zs(""):gl!==Gs&&vl(),!Qs.length||Qs[0]===""?rl(""):al!==dl&&nl())},[Xa,_s,Qs]),Object(c.useEffect)(function(){jn(ne)},[cs,Cs]),Sa&&(Sa.current={focus:function(){ho.current&&ho.current.focus()},blur:function(){ho.current&&ho.current.blur(),Ao.current&&Ao.current.blur()}});var ds=Object.keys(_a||{}),Js=ds.map(function(es){var $a=_a[es],Eo=typeof $a=="function"?$a():$a;return{label:es,onClick:function(){ws(Eo,null),ys(!1,Za)},onMouseEnter:function(){Ms(Eo)},onMouseLeave:function(){Ms(null)}}});function ss(){var es=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,$a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Eo=null;Xa&&hl&&hl[0]&&hl[1]&&Un.isAfter(hl[1],hl[0])&&(Eo=hl);var Ko=Gi;if(Gi&&Object(V.a)(Gi)==="object"&&Gi.defaultValue){var js=Gi.defaultValue;Ko=Object(B.a)(Object(B.a)({},Gi),{},{defaultValue:$e(js,Za)||void 0})}var Bl=null;return ta&&(Bl=function(Ol,Ll){return ta(Ol,Ll,{range:Za?"end":"start"})}),c.createElement(Yn.Provider,{value:{inRange:!0,panelPosition:es,rangedValue:bs||cn,hoverRangedValue:Eo}},c.createElement(Rr,Object.assign({},Je,$a,{dateRender:Bl,showTime:Ko,mode:Ni[Za],generateConfig:Un,style:void 0,direction:za,disabledDate:Za===0?Do:fo,disabledTime:function(Ol){return Ha?Ha(Ol,Za===0?"start":"end"):!1},className:T()(Object(U.a)({},"".concat(Pr,"-panel-focused"),Za===0?!ru:!jo)),value:$e(cn,Za),locale:ti,tabIndex:-1,onPanelChange:function(Ol,Ll){Ta(xt(Ni,Ll,Za),xt(cn,Ol,Za));var jl=Ol;es==="right"&&Ni[Za]===Ll&&(jl=mn(jl,Ll,Un,-1)),Vt(jl,Za)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Is=0,Al=0;Za&&zo.current&&Ja.current&&Io.current&&(Is=zo.current.offsetWidth+Ja.current.offsetWidth,Io.current.offsetWidth&&Is>Io.current.offsetWidth&&(Al=Is));var lu=za==="rtl"?{right:Is}:{left:Is};function uu(){var es,$a=or(Pr,Ni[Za],No),Eo=ln({prefixCls:Pr,components:Ea,needConfirmButton:Qo,okDisabled:!$e(cn,Za)||ya&&ya(cn[Za]),locale:ti,rangeList:Js,onOk:function(){$e(cn,Za)&&(ws(cn,Za),Wa&&Wa(cn))}});if(Xi!=="time"&&!Gi){var Ko=ht(Za),js=mn(Ko,Xi,Un),Bl=Ni[Za],Ul=Bl===Xi,Ol=ss(Ul?"left":!1,{pickerValue:Ko,onPickerValueChange:function(Vs){Vt(Vs,Za)}}),Ll=ss("right",{pickerValue:js,onPickerValueChange:function(Vs){Vt(mn(Vs,Xi,Un,-1),Za)}});za==="rtl"?es=c.createElement(c.Fragment,null,Ll,Ul&&Ol):es=c.createElement(c.Fragment,null,Ol,Ul&&Ll)}else es=ss();var jl=c.createElement(c.Fragment,null,c.createElement("div",{className:"".concat(Pr,"-panels")},es),($a||Eo)&&c.createElement("div",{className:"".concat(Pr,"-footer")},$a,Eo));return ra&&(jl=ra(jl)),c.createElement("div",{className:"".concat(Pr,"-panel-container"),style:{marginLeft:Al},ref:Io,onMouseDown:function(Vs){Vs.preventDefault()}},jl)}var Yl=c.createElement("div",{className:T()("".concat(Pr,"-range-wrapper"),"".concat(Pr,"-").concat(Xi,"-range-wrapper")),style:{minWidth:pa}},c.createElement("div",{className:"".concat(Pr,"-range-arrow"),style:lu}),uu()),nu;ga&&(nu=c.createElement("span",{className:"".concat(Pr,"-suffix")},ga));var vu;bo&&($e(ne,0)&&!Kr[0]||$e(ne,1)&&!Kr[1])&&(vu=c.createElement("span",{onMouseDown:function($a){$a.preventDefault(),$a.stopPropagation()},onMouseUp:function($a){$a.preventDefault(),$a.stopPropagation();var Eo=ne;Kr[0]||(Eo=xt(Eo,null,0)),Kr[1]||(Eo=xt(Eo,null,1)),ws(Eo,null),ys(!1,Za)},className:"".concat(Pr,"-clear")},go||c.createElement("span",{className:"".concat(Pr,"-clear-btn")})));var yu={size:ae(Xi,$o[0])},bu=0,_l=0;zo.current&&Fa.current&&Ja.current&&(Za===0?_l=zo.current.offsetWidth:(bu=Is,_l=Fa.current.offsetWidth));var Rl=za==="rtl"?{right:bu}:{left:bu},Wl=function($a,Eo){var Ko=xt(cn,$a,Za);Eo==="submit"||Eo!=="key"&&!Qo?(ws(Ko,Za),Za===0?gu():$s()):jn(Ko)};return c.createElement(Z.Provider,{value:{operationRef:Pt,hideHeader:Xi==="time",onDateMouseEnter:ll,onDateMouseLeave:pl,hideRanges:!0,onSelect:Wl,open:Xa}},c.createElement(Bn,{visible:Xa,popupElement:Yl,popupStyle:pn,prefixCls:Pr,dropdownClassName:Kn,dropdownAlign:Ln,getPopupContainer:$n,transitionName:Wn,range:!0,direction:za},c.createElement("div",Object.assign({ref:vo,className:T()(Pr,"".concat(Pr,"-range"),br,(Gt={},Object(U.a)(Gt,"".concat(Pr,"-disabled"),Kr[0]&&Kr[1]),Object(U.a)(Gt,"".concat(Pr,"-focused"),Za===0?tu:Xl),Object(U.a)(Gt,"".concat(Pr,"-rtl"),za==="rtl"),Gt)),style:An,onClick:Ho,onMouseDown:us},Ot(Je)),c.createElement("div",{className:T()("".concat(Pr,"-input"),(vr={},Object(U.a)(vr,"".concat(Pr,"-input-active"),Za===0),Object(U.a)(vr,"".concat(Pr,"-input-placeholder"),!!fl),vr)),ref:zo},c.createElement("input",Object.assign({id:hr,disabled:Kr[0],readOnly:Va||!ru,value:fl||Gs,onChange:function($a){zs($a.target.value)},autoFocus:wi,placeholder:$e(Gn,0)||"",ref:ho},eu,yu,{autoComplete:Go}))),c.createElement("div",{className:"".concat(Pr,"-range-separator"),ref:Ja},mo),c.createElement("div",{className:T()("".concat(Pr,"-input"),(fr={},Object(U.a)(fr,"".concat(Pr,"-input-active"),Za===1),Object(U.a)(fr,"".concat(Pr,"-input-placeholder"),!!$l),fr)),ref:Fa},c.createElement("input",Object.assign({disabled:Kr[1],readOnly:Va||!jo,value:$l||dl,onChange:function($a){rl($a.target.value)},placeholder:$e(Gn,1)||"",ref:Ao},Dl,yu,{autoComplete:Go}))),c.createElement("div",{className:"".concat(Pr,"-active-bar"),style:Object(B.a)(Object(B.a)({},Rl),{},{width:_l,position:"absolute"})}),nu,vu)))}var un=function(Je){Object(k.a)(vr,Je);var Gt=Object(M.a)(vr);function vr(){var fr;return Object(D.a)(this,vr),fr=Gt.apply(this,arguments),fr.pickerRef=c.createRef(),fr.focus=function(){fr.pickerRef.current&&fr.pickerRef.current.focus()},fr.blur=function(){fr.pickerRef.current&&fr.pickerRef.current.blur()},fr}return Object(R.a)(vr,[{key:"render",value:function(){return c.createElement(zr,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),vr}(c.Component),vn=un,ni=Pa,li=d("61s2");function fi(Je,Gt,vr){return vr!==void 0?vr:Je==="year"&&Gt.lang.yearPlaceholder?Gt.lang.yearPlaceholder:Je==="quarter"&&Gt.lang.quarterPlaceholder?Gt.lang.quarterPlaceholder:Je==="month"&&Gt.lang.monthPlaceholder?Gt.lang.monthPlaceholder:Je==="week"&&Gt.lang.weekPlaceholder?Gt.lang.weekPlaceholder:Je==="time"&&Gt.timePickerLocale.placeholder?Gt.timePickerLocale.placeholder:Gt.lang.placeholder}function di(Je,Gt,vr){return vr!==void 0?vr:Je==="year"&&Gt.lang.yearPlaceholder?Gt.lang.rangeYearPlaceholder:Je==="month"&&Gt.lang.monthPlaceholder?Gt.lang.rangeMonthPlaceholder:Je==="week"&&Gt.lang.weekPlaceholder?Gt.lang.rangeWeekPlaceholder:Je==="time"&&Gt.timePickerLocale.placeholder?Gt.timePickerLocale.rangePlaceholder:Gt.lang.rangePlaceholder}var Yt=d("uaoM"),Et=d("H84U"),yr=d("YMnH"),ct=d("3Nzz"),Zt=function(Je,Gt){var vr={};for(var fr in Je)Object.prototype.hasOwnProperty.call(Je,fr)&&Gt.indexOf(fr)<0&&(vr[fr]=Je[fr]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gr=0,fr=Object.getOwnPropertySymbols(Je);Gr<fr.length;Gr++)Gt.indexOf(fr[Gr])<0&&Object.prototype.propertyIsEnumerable.call(Je,fr[Gr])&&(vr[fr[Gr]]=Je[fr[Gr]]);return vr};function dr(Je){function Gt(br,pn){var Kn=function(Wn){m()($n,Wn);var Ln=y()($n);function $n(Un){var ti;return s()(this,$n),ti=Ln.call(this,Un),ti.pickerRef=c.createRef(),ti.focus=function(){ti.pickerRef.current&&ti.pickerRef.current.focus()},ti.blur=function(){ti.pickerRef.current&&ti.pickerRef.current.blur()},ti.getDefaultLocale=function(){var Gn=ti.props.locale,wi=f()(f()({},li.a),Gn);return wi.lang=f()(f()({},wi.lang),(Gn||{}).lang),wi},ti.renderPicker=function(Gn){var wi=ti.context,Ei=wi.getPrefixCls,Zi=wi.direction,ua=wi.getPopupContainer,Xi=ti.props,Gi=Xi.prefixCls,wa=Xi.getPopupContainer,na=Xi.className,mo=Xi.size,Ca=Xi.bordered,qi=Ca===void 0?!0:Ca,aa=Xi.placeholder,$i=Zt(Xi,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Aa=ti.props,ya=Aa.format,Ha=Aa.showTime,ta=Ei("picker",Gi),ra={showToday:!0},_a={};br&&(_a.picker=br);var Ka=br||ti.props.picker;return _a=f()(f()(f()({},_a),Ha?ii(f()({format:ya,picker:Ka},Ha)):{}),Ka==="time"?ii(f()(f()({format:ya},ti.props),{picker:Ka})):{}),c.createElement(ct.b.Consumer,null,function(bo){var ga,go=mo||bo;return c.createElement(ni,f()({ref:ti.pickerRef,placeholder:fi(Ka,Gn,aa),suffixIcon:Ka==="time"?c.createElement(I.a,null):c.createElement(w.a,null),clearIcon:c.createElement(N.a,null),allowClear:!0,transitionName:"slide-up"},ra,$i,_a,{locale:Gn.lang,className:T()(na,(ga={},t()(ga,"".concat(ta,"-").concat(go),go),t()(ga,"".concat(ta,"-borderless"),!qi),ga)),prefixCls:ta,getPopupContainer:wa||ua,generateConfig:Je,prevIcon:c.createElement("span",{className:"".concat(ta,"-prev-icon")}),nextIcon:c.createElement("span",{className:"".concat(ta,"-next-icon")}),superPrevIcon:c.createElement("span",{className:"".concat(ta,"-super-prev-icon")}),superNextIcon:c.createElement("span",{className:"".concat(ta,"-super-next-icon")}),components:Nn,direction:Zi}))})},Object(Yt.a)(br!=="quarter",pn,"DatePicker.".concat(pn," is legacy usage. Please use DatePicker[picker='").concat(br,"'] directly.")),ti}return h()($n,[{key:"render",value:function(){return c.createElement(yr.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),$n}(c.Component);return Kn.contextType=Et.b,pn&&(Kn.displayName=pn),Kn}var vr=Gt(),fr=Gt("week","WeekPicker"),Gr=Gt("month","MonthPicker"),Pr=Gt("year","YearPicker"),hr=Gt("time","TimePicker"),An=Gt("quarter","QuarterPicker");return{DatePicker:vr,WeekPicker:fr,MonthPicker:Gr,YearPicker:Pr,TimePicker:hr,QuarterPicker:An}}var Lr=d("8ISB"),Jr=d.n(Lr),fn=function(Je,Gt){var vr={};for(var fr in Je)Object.prototype.hasOwnProperty.call(Je,fr)&&Gt.indexOf(fr)<0&&(vr[fr]=Je[fr]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gr=0,fr=Object.getOwnPropertySymbols(Je);Gr<fr.length;Gr++)Gt.indexOf(fr[Gr])<0&&Object.prototype.propertyIsEnumerable.call(Je,fr[Gr])&&(vr[fr[Gr]]=Je[fr[Gr]]);return vr};function Cn(Je){var Gt=function(vr){m()(Gr,vr);var fr=y()(Gr);function Gr(){var Pr;return s()(this,Gr),Pr=fr.apply(this,arguments),Pr.pickerRef=c.createRef(),Pr.focus=function(){Pr.pickerRef.current&&Pr.pickerRef.current.focus()},Pr.blur=function(){Pr.pickerRef.current&&Pr.pickerRef.current.blur()},Pr.getDefaultLocale=function(){var hr=Pr.props.locale,An=f()(f()({},li.a),hr);return An.lang=f()(f()({},An.lang),(hr||{}).lang),An},Pr.renderPicker=function(hr){var An=Pr.context,br=An.getPrefixCls,pn=An.direction,Kn=An.getPopupContainer,Wn=Pr.props,Ln=Wn.prefixCls,$n=Wn.getPopupContainer,Un=Wn.className,ti=Wn.size,Gn=Wn.bordered,wi=Gn===void 0?!0:Gn,Ei=Wn.placeholder,Zi=fn(Wn,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),ua=Pr.props,Xi=ua.format,Gi=ua.showTime,wa=ua.picker,na=br("picker",Ln),mo={};return mo=f()(f()(f()({},mo),Gi?ii(f()({format:Xi,picker:wa},Gi)):{}),wa==="time"?ii(f()(f()({format:Xi},Pr.props),{picker:wa})):{}),c.createElement(ct.b.Consumer,null,function(Ca){var qi,aa=ti||Ca;return c.createElement(vn,f()({separator:c.createElement("span",{"aria-label":"to",className:"".concat(na,"-separator")},c.createElement(Jr.a,null)),ref:Pr.pickerRef,placeholder:di(wa,hr,Ei),suffixIcon:wa==="time"?c.createElement(I.a,null):c.createElement(w.a,null),clearIcon:c.createElement(N.a,null),allowClear:!0,transitionName:"slide-up"},Zi,mo,{className:T()(Un,(qi={},t()(qi,"".concat(na,"-").concat(aa),aa),t()(qi,"".concat(na,"-borderless"),!wi),qi)),locale:hr.lang,prefixCls:na,getPopupContainer:$n||Kn,generateConfig:Je,prevIcon:c.createElement("span",{className:"".concat(na,"-prev-icon")}),nextIcon:c.createElement("span",{className:"".concat(na,"-next-icon")}),superPrevIcon:c.createElement("span",{className:"".concat(na,"-super-prev-icon")}),superNextIcon:c.createElement("span",{className:"".concat(na,"-super-next-icon")}),components:Nn,direction:pn}))})},Pr}return h()(Gr,[{key:"render",value:function(){return c.createElement(yr.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),Gr}(c.Component);return Gt.contextType=Et.b,Gt}var Nn={button:i,rangeItem:e};function Zn(Je){return Je?Array.isArray(Je)?Je:[Je]:[]}function ii(Je){var Gt=Je.format,vr=Je.picker,fr=Je.showHour,Gr=Je.showMinute,Pr=Je.showSecond,hr=Je.use12Hours,An=Zn(Gt)[0],br=f()({},Je);return An&&(!An.includes("s")&&Pr===void 0&&(br.showSecond=!1),!An.includes("m")&&Gr===void 0&&(br.showMinute=!1),!An.includes("H")&&!An.includes("h")&&fr===void 0&&(br.showHour=!1),(An.includes("a")||An.includes("A"))&&hr===void 0&&(br.use12Hours=!0)),vr==="time"?br:{showTime:br}}function pi(Je){var Gt=dr(Je),vr=Gt.DatePicker,fr=Gt.WeekPicker,Gr=Gt.MonthPicker,Pr=Gt.YearPicker,hr=Gt.TimePicker,An=Gt.QuarterPicker,br=Cn(Je),pn=vr;return pn.WeekPicker=fr,pn.MonthPicker=Gr,pn.YearPicker=Pr,pn.RangePicker=br,pn.TimePicker=hr,pn.QuarterPicker=An,pn}var ri=pi,ji=ri(S),ei=F.a=ji},"+lIL":function(H,F,d){var O=d("ProS");d("/ry/"),d("3OrL");var x=d("L5E0"),C=d("7Phj");O.registerVisual(x),O.registerLayout(C)},"+nKL":function(H,F,d){"use strict";var O=d("q1tI"),x=d("TSYQ"),C=d.n(x),A=d("t23M");function S(X,Be){var Ee=Object.keys(X);if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(X);Be&&(ee=ee.filter(function(lt){return Object.getOwnPropertyDescriptor(X,lt).enumerable})),Ee.push.apply(Ee,ee)}return Ee}function g(X){for(var Be=1;Be<arguments.length;Be++){var Ee=arguments[Be]!=null?arguments[Be]:{};Be%2?S(Object(Ee),!0).forEach(function(ee){f(X,ee,Ee[ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(Ee)):S(Object(Ee)).forEach(function(ee){Object.defineProperty(X,ee,Object.getOwnPropertyDescriptor(Ee,ee))})}return X}function f(X,Be,Ee){return Be in X?Object.defineProperty(X,Be,{value:Ee,enumerable:!0,configurable:!0,writable:!0}):X[Be]=Ee,X}var c=O.forwardRef(function(X,Be){var Ee=X.height,ee=X.offset,lt=X.children,Ct=X.prefixCls,dt=X.onInnerResize,_t={},ir={display:"flex",flexDirection:"column"};return ee!==void 0&&(_t={height:Ee,position:"relative",overflow:"hidden"},ir=g(g({},ir),{},{transform:"translateY(".concat(ee,"px)"),position:"absolute",left:0,right:0,top:0})),O.createElement("div",{style:_t},O.createElement(A.a,{onResize:function(nr){var lr=nr.offsetHeight;lr&&dt&&dt()}},O.createElement("div",{style:ir,className:C()(f({},"".concat(Ct,"-holder-inner"),Ct)),ref:Be},lt)))});c.displayName="Filler";var o=c,r=d("wgJM");function i(X){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Be){return typeof Be}:function(Be){return Be&&typeof Symbol=="function"&&Be.constructor===Symbol&&Be!==Symbol.prototype?"symbol":typeof Be},i(X)}function n(X,Be,Ee){return Be in X?Object.defineProperty(X,Be,{value:Ee,enumerable:!0,configurable:!0,writable:!0}):X[Be]=Ee,X}function e(X,Be){if(!(X instanceof Be))throw new TypeError("Cannot call a class as a function")}function l(X,Be){for(var Ee=0;Ee<Be.length;Ee++){var ee=Be[Ee];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(X,ee.key,ee)}}function t(X,Be,Ee){return Be&&l(X.prototype,Be),Ee&&l(X,Ee),Object.defineProperty(X,"prototype",{writable:!1}),X}function a(X,Be){if(typeof Be!="function"&&Be!==null)throw new TypeError("Super expression must either be null or a function");X.prototype=Object.create(Be&&Be.prototype,{constructor:{value:X,writable:!0,configurable:!0}}),Object.defineProperty(X,"prototype",{writable:!1}),Be&&s(X,Be)}function s(X,Be){return s=Object.setPrototypeOf||function(ee,lt){return ee.__proto__=lt,ee},s(X,Be)}function u(X){var Be=m();return function(){var ee=v(X),lt;if(Be){var Ct=v(this).constructor;lt=Reflect.construct(ee,arguments,Ct)}else lt=ee.apply(this,arguments);return h(this,lt)}}function h(X,Be){if(Be&&(i(Be)==="object"||typeof Be=="function"))return Be;if(Be!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(X)}function p(X){if(X===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X}function m(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(X){return!1}}function v(X){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(Ee){return Ee.__proto__||Object.getPrototypeOf(Ee)},v(X)}var y=20;function E(X){return"touches"in X?X.touches[0].pageY:X.pageY}var T=function(X){a(Ee,X);var Be=u(Ee);function Ee(){var ee;e(this,Ee);for(var lt=arguments.length,Ct=new Array(lt),dt=0;dt<lt;dt++)Ct[dt]=arguments[dt];return ee=Be.call.apply(Be,[this].concat(Ct)),ee.moveRaf=null,ee.scrollbarRef=O.createRef(),ee.thumbRef=O.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(_t){_t.preventDefault()},ee.onContainerMouseDown=function(_t){_t.stopPropagation(),_t.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 _t;window.removeEventListener("mousemove",ee.onMouseMove),window.removeEventListener("mouseup",ee.onMouseUp),(_t=ee.scrollbarRef.current)===null||_t===void 0||_t.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)),r.a.cancel(ee.moveRaf)},ee.onMouseDown=function(_t){var ir=ee.props.onStartMove;ee.setState({dragging:!0,pageY:E(_t),startTop:ee.getTop()}),ir(),ee.patchEvents(),_t.stopPropagation(),_t.preventDefault()},ee.onMouseMove=function(_t){var ir=ee.state,$r=ir.dragging,nr=ir.pageY,lr=ir.startTop,zt=ee.props.onScroll;if(r.a.cancel(ee.moveRaf),$r){var Ut=E(_t)-nr,st=lr+Ut,Hr=ee.getEnableScrollRange(),mn=ee.getEnableHeightRange(),In=mn?st/mn:0,Yn=Math.ceil(In*Hr);ee.moveRaf=Object(r.a)(function(){zt(Yn)})}},ee.onMouseUp=function(){var _t=ee.props.onStopMove;ee.setState({dragging:!1}),_t(),ee.removeEvents()},ee.getSpinHeight=function(){var _t=ee.props,ir=_t.height,$r=_t.count,nr=ir/$r*10;return nr=Math.max(nr,y),nr=Math.min(nr,ir/2),Math.floor(nr)},ee.getEnableScrollRange=function(){var _t=ee.props,ir=_t.scrollHeight,$r=_t.height;return ir-$r||0},ee.getEnableHeightRange=function(){var _t=ee.props.height,ir=ee.getSpinHeight();return _t-ir||0},ee.getTop=function(){var _t=ee.props.scrollTop,ir=ee.getEnableScrollRange(),$r=ee.getEnableHeightRange();if(_t===0||ir===0)return 0;var nr=_t/ir;return nr*$r},ee.showScroll=function(){var _t=ee.props,ir=_t.height,$r=_t.scrollHeight;return $r>ir},ee}return t(Ee,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(lt){lt.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var lt=this.state,Ct=lt.dragging,dt=lt.visible,_t=this.props.prefixCls,ir=this.getSpinHeight(),$r=this.getTop(),nr=this.showScroll(),lr=nr&&dt;return O.createElement("div",{ref:this.scrollbarRef,className:C()("".concat(_t,"-scrollbar"),n({},"".concat(_t,"-scrollbar-show"),nr)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:lr?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},O.createElement("div",{ref:this.thumbRef,className:C()("".concat(_t,"-scrollbar-thumb"),n({},"".concat(_t,"-scrollbar-thumb-moving"),Ct)),style:{width:"100%",height:ir,top:$r,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),Ee}(O.Component);function b(X){var Be=X.children,Ee=X.setRef,ee=O.useCallback(function(lt){Ee(lt)},[]);return O.cloneElement(Be,{ref:ee})}function w(X,Be,Ee,ee,lt,Ct){var dt=Ct.getKey;return X.slice(Be,Ee+1).map(function(_t,ir){var $r=Be+ir,nr=lt(_t,$r,{}),lr=dt(_t);return O.createElement(b,{key:lr,setRef:function(Ut){return ee(_t,Ut)}},nr)})}var _=d("m+aA");function I(X,Be){if(!(X instanceof Be))throw new TypeError("Cannot call a class as a function")}function L(X,Be){for(var Ee=0;Ee<Be.length;Ee++){var ee=Be[Ee];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(X,ee.key,ee)}}function N(X,Be,Ee){return Be&&L(X.prototype,Be),Ee&&L(X,Ee),Object.defineProperty(X,"prototype",{writable:!1}),X}var D=function(){function X(){I(this,X),this.maps=void 0,this.maps=Object.create(null)}return N(X,[{key:"set",value:function(Ee,ee){this.maps[Ee]=ee}},{key:"get",value:function(Ee){return this.maps[Ee]}}]),X}(),R=D;function k(X,Be){return W(X)||j(X,Be)||U(X,Be)||M()}function M(){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 U(X,Be){if(!X)return;if(typeof X=="string")return B(X,Be);var Ee=Object.prototype.toString.call(X).slice(8,-1);if(Ee==="Object"&&X.constructor&&(Ee=X.constructor.name),Ee==="Map"||Ee==="Set")return Array.from(X);if(Ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ee))return B(X,Be)}function B(X,Be){(Be==null||Be>X.length)&&(Be=X.length);for(var Ee=0,ee=new Array(Be);Ee<Be;Ee++)ee[Ee]=X[Ee];return ee}function j(X,Be){var Ee=X==null?null:typeof Symbol!="undefined"&&X[Symbol.iterator]||X["@@iterator"];if(Ee==null)return;var ee=[],lt=!0,Ct=!1,dt,_t;try{for(Ee=Ee.call(X);!(lt=(dt=Ee.next()).done)&&!(ee.push(dt.value),Be&&ee.length===Be);lt=!0);}catch(ir){Ct=!0,_t=ir}finally{try{!lt&&Ee.return!=null&&Ee.return()}finally{if(Ct)throw _t}}return ee}function W(X){if(Array.isArray(X))return X}function V(X,Be,Ee){var ee=O.useState(0),lt=k(ee,2),Ct=lt[0],dt=lt[1],_t=Object(O.useRef)(new Map),ir=Object(O.useRef)(new R),$r=Object(O.useRef)();function nr(){r.a.cancel($r.current)}function lr(){nr(),$r.current=Object(r.a)(function(){_t.current.forEach(function(Ut,st){if(Ut&&Ut.offsetParent){var Hr=Object(_.a)(Ut),mn=Hr.offsetHeight;ir.current.get(st)!==mn&&ir.current.set(st,Hr.offsetHeight)}}),dt(function(Ut){return Ut+1})})}function zt(Ut,st){var Hr=X(Ut),mn=_t.current.get(Hr);st?(_t.current.set(Hr,st),lr()):_t.current.delete(Hr),!mn!==!st&&(st?Be==null||Be(Ut):Ee==null||Ee(Ut))}return Object(O.useEffect)(function(){return nr},[]),[zt,lr,ir.current,Ct]}function z(X){return z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Be){return typeof Be}:function(Be){return Be&&typeof Symbol=="function"&&Be.constructor===Symbol&&Be!==Symbol.prototype?"symbol":typeof Be},z(X)}function J(X,Be,Ee,ee,lt,Ct,dt,_t){var ir=O.useRef();return function($r){if($r==null){_t();return}if(r.a.cancel(ir.current),typeof $r=="number")dt($r);else if($r&&z($r)==="object"){var nr,lr=$r.align;"index"in $r?nr=$r.index:nr=Be.findIndex(function(Hr){return lt(Hr)===$r.key});var zt=$r.offset,Ut=zt===void 0?0:zt,st=function Hr(mn,In){if(mn<0||!X.current)return;var Yn=X.current.clientHeight,Mi=!1,wn=In;if(Yn){for(var Rn=In||lr,kt=0,vt=0,Re=0,Ke=Math.min(Be.length,nr),Pe=0;Pe<=Ke;Pe+=1){var nt=lt(Be[Pe]);vt=kt;var yt=Ee.get(nt);Re=vt+(yt===void 0?ee:yt),kt=Re,Pe===nr&&yt===void 0&&(Mi=!0)}var Dt=null;switch(Rn){case"top":Dt=vt-Ut;break;case"bottom":Dt=Re-Yn+Ut;break;default:{var bt=X.current.scrollTop,It=bt+Yn;vt<bt?wn="top":Re>It&&(wn="bottom")}}Dt!==null&&Dt!==X.current.scrollTop&&dt(Dt)}ir.current=Object(r.a)(function(){Mi&&Ct(),Hr(mn-1,wn)})};st(3)}}}function Z(X,Be,Ee,ee){var lt=Ee-X,Ct=Be-Ee,dt=Math.min(lt,Ct)*2;if(ee<=dt){var _t=Math.floor(ee/2);return ee%2?Ee+_t+1:Ee-_t}return lt>Ct?Ee-(ee-Ct):Ee+(ee-lt)}function de(X,Be,Ee){var ee=X.length,lt=Be.length,Ct,dt;if(ee===0&<===0)return null;ee<lt?(Ct=X,dt=Be):(Ct=Be,dt=X);var _t={__EMPTY_ITEM__:!0};function ir(st){return st!==void 0?Ee(st):_t}for(var $r=null,nr=Math.abs(ee-lt)!==1,lr=0;lr<dt.length;lr+=1){var zt=ir(Ct[lr]),Ut=ir(dt[lr]);if(zt!==Ut){$r=lr,nr=nr||zt!==ir(dt[lr+1]);break}}return $r===null?null:{index:$r,multiple:nr}}function ie(X,Be){return fe(X)||Ue(X,Be)||xe(X,Be)||ve()}function ve(){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 xe(X,Be){if(!X)return;if(typeof X=="string")return _e(X,Be);var Ee=Object.prototype.toString.call(X).slice(8,-1);if(Ee==="Object"&&X.constructor&&(Ee=X.constructor.name),Ee==="Map"||Ee==="Set")return Array.from(X);if(Ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ee))return _e(X,Be)}function _e(X,Be){(Be==null||Be>X.length)&&(Be=X.length);for(var Ee=0,ee=new Array(Be);Ee<Be;Ee++)ee[Ee]=X[Ee];return ee}function Ue(X,Be){var Ee=X==null?null:typeof Symbol!="undefined"&&X[Symbol.iterator]||X["@@iterator"];if(Ee==null)return;var ee=[],lt=!0,Ct=!1,dt,_t;try{for(Ee=Ee.call(X);!(lt=(dt=Ee.next()).done)&&!(ee.push(dt.value),Be&&ee.length===Be);lt=!0);}catch(ir){Ct=!0,_t=ir}finally{try{!lt&&Ee.return!=null&&Ee.return()}finally{if(Ct)throw _t}}return ee}function fe(X){if(Array.isArray(X))return X}function ke(X,Be,Ee){var ee=O.useState(X),lt=ie(ee,2),Ct=lt[0],dt=lt[1],_t=O.useState(null),ir=ie(_t,2),$r=ir[0],nr=ir[1];return O.useEffect(function(){var lr=de(Ct||[],X||[],Be);(lr==null?void 0:lr.index)!==void 0&&(Ee==null||Ee(lr.index),nr(X[lr.index])),dt(X)},[X]),[$r]}function se(X){return se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Be){return typeof Be}:function(Be){return Be&&typeof Symbol=="function"&&Be.constructor===Symbol&&Be!==Symbol.prototype?"symbol":typeof Be},se(X)}var te=(typeof navigator=="undefined"?"undefined":se(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ve=te,ae=function(X,Be){var Ee=Object(O.useRef)(!1),ee=Object(O.useRef)(null);function lt(){clearTimeout(ee.current),Ee.current=!0,ee.current=setTimeout(function(){Ee.current=!1},50)}var Ct=Object(O.useRef)({top:X,bottom:Be});return Ct.current.top=X,Ct.current.bottom=Be,function(dt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ir=dt<0&&Ct.current.top||dt>0&&Ct.current.bottom;return _t&&ir?(clearTimeout(ee.current),Ee.current=!1):(!ir||Ee.current)&<(),!Ee.current&&ir}};function Q(X,Be,Ee,ee){var lt=Object(O.useRef)(0),Ct=Object(O.useRef)(null),dt=Object(O.useRef)(null),_t=Object(O.useRef)(!1),ir=ae(Be,Ee);function $r(lr){if(!X)return;r.a.cancel(Ct.current);var zt=lr.deltaY;if(lt.current+=zt,dt.current=zt,ir(zt))return;Ve||lr.preventDefault(),Ct.current=Object(r.a)(function(){var Ut=_t.current?10:1;ee(lt.current*Ut),lt.current=0})}function nr(lr){if(!X)return;_t.current=lr.detail===dt.current}return[$r,nr]}var G=d("TNol"),Y=14/15;function me(X,Be,Ee){var ee=Object(O.useRef)(!1),lt=Object(O.useRef)(0),Ct=Object(O.useRef)(null),dt=Object(O.useRef)(null),_t,ir=function(zt){if(ee.current){var Ut=Math.ceil(zt.touches[0].pageY),st=lt.current-Ut;lt.current=Ut,Ee(st)&&zt.preventDefault(),clearInterval(dt.current),dt.current=setInterval(function(){st*=Y,(!Ee(st,!0)||Math.abs(st)<=.1)&&clearInterval(dt.current)},16)}},$r=function(){ee.current=!1,_t()},nr=function(zt){_t(),zt.touches.length===1&&!ee.current&&(ee.current=!0,lt.current=Math.ceil(zt.touches[0].pageY),Ct.current=zt.target,Ct.current.addEventListener("touchmove",ir),Ct.current.addEventListener("touchend",$r))};_t=function(){Ct.current&&(Ct.current.removeEventListener("touchmove",ir),Ct.current.removeEventListener("touchend",$r))},Object(G.a)(function(){return X&&Be.current.addEventListener("touchstart",nr),function(){var lr;(lr=Be.current)===null||lr===void 0||lr.removeEventListener("touchstart",nr),_t(),clearInterval(dt.current)}},[X])}var ue=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function Ce(){return Ce=Object.assign||function(X){for(var Be=1;Be<arguments.length;Be++){var Ee=arguments[Be];for(var ee in Ee)Object.prototype.hasOwnProperty.call(Ee,ee)&&(X[ee]=Ee[ee])}return X},Ce.apply(this,arguments)}function Ie(X,Be){var Ee=Object.keys(X);if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(X);Be&&(ee=ee.filter(function(lt){return Object.getOwnPropertyDescriptor(X,lt).enumerable})),Ee.push.apply(Ee,ee)}return Ee}function ce(X){for(var Be=1;Be<arguments.length;Be++){var Ee=arguments[Be]!=null?arguments[Be]:{};Be%2?Ie(Object(Ee),!0).forEach(function(ee){Ae(X,ee,Ee[ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(Ee)):Ie(Object(Ee)).forEach(function(ee){Object.defineProperty(X,ee,Object.getOwnPropertyDescriptor(Ee,ee))})}return X}function Ae(X,Be,Ee){return Be in X?Object.defineProperty(X,Be,{value:Ee,enumerable:!0,configurable:!0,writable:!0}):X[Be]=Ee,X}function Te(X,Be){return Ot(X)||Le(X,Be)||gt(X,Be)||Ge()}function Ge(){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 gt(X,Be){if(!X)return;if(typeof X=="string")return qe(X,Be);var Ee=Object.prototype.toString.call(X).slice(8,-1);if(Ee==="Object"&&X.constructor&&(Ee=X.constructor.name),Ee==="Map"||Ee==="Set")return Array.from(X);if(Ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ee))return qe(X,Be)}function qe(X,Be){(Be==null||Be>X.length)&&(Be=X.length);for(var Ee=0,ee=new Array(Be);Ee<Be;Ee++)ee[Ee]=X[Ee];return ee}function Le(X,Be){var Ee=X==null?null:typeof Symbol!="undefined"&&X[Symbol.iterator]||X["@@iterator"];if(Ee==null)return;var ee=[],lt=!0,Ct=!1,dt,_t;try{for(Ee=Ee.call(X);!(lt=(dt=Ee.next()).done)&&!(ee.push(dt.value),Be&&ee.length===Be);lt=!0);}catch(ir){Ct=!0,_t=ir}finally{try{!lt&&Ee.return!=null&&Ee.return()}finally{if(Ct)throw _t}}return ee}function Ot(X){if(Array.isArray(X))return X}function $e(X,Be){if(X==null)return{};var Ee=xt(X,Be),ee,lt;if(Object.getOwnPropertySymbols){var Ct=Object.getOwnPropertySymbols(X);for(lt=0;lt<Ct.length;lt++){if(ee=Ct[lt],Be.indexOf(ee)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(X,ee))continue;Ee[ee]=X[ee]}}return Ee}function xt(X,Be){if(X==null)return{};var Ee={},ee=Object.keys(X),lt,Ct;for(Ct=0;Ct<ee.length;Ct++){if(lt=ee[Ct],Be.indexOf(lt)>=0)continue;Ee[lt]=X[lt]}return Ee}var Ht=[],tr={overflowY:"auto",overflowAnchor:"none"};function Mt(X,Be){var Ee=X.prefixCls,ee=Ee===void 0?"rc-virtual-list":Ee,lt=X.className,Ct=X.height,dt=X.itemHeight,_t=X.fullHeight,ir=_t===void 0?!0:_t,$r=X.style,nr=X.data,lr=X.children,zt=X.itemKey,Ut=X.virtual,st=X.component,Hr=st===void 0?"div":st,mn=X.onScroll,In=X.onVisibleChange,Yn=$e(X,ue),Mi=!!(Ut!==!1&&Ct&&dt),wn=Mi&&nr&&dt*nr.length>Ct,Rn=Object(O.useState)(0),kt=Te(Rn,2),vt=kt[0],Re=kt[1],Ke=Object(O.useState)(!1),Pe=Te(Ke,2),nt=Pe[0],yt=Pe[1],Dt=C()(ee,lt),bt=nr||Ht,It=Object(O.useRef)(),gr=Object(O.useRef)(),kr=Object(O.useRef)(),wt=O.useCallback(function(gn){return typeof zt=="function"?zt(gn):gn==null?void 0:gn[zt]},[zt]),rt={getKey:wt};function tt(gn){Re(function(or){var ln;typeof gn=="function"?ln=gn(or):ln=gn;var an=we(ln);return It.current.scrollTop=an,an})}var Rt=Object(O.useRef)({start:0,end:bt.length}),Ft=Object(O.useRef)(),At=ke(bt,wt),Wt=Te(At,1),ot=Wt[0];Ft.current=ot;var Bt=V(wt,null,null),Ar=Te(Bt,4),rr=Ar[0],pr=Ar[1],tn=Ar[2],hn=Ar[3],Mn=O.useMemo(function(){if(!Mi)return{scrollHeight:void 0,start:0,end:bt.length-1,offset:void 0};if(!wn){var gn;return{scrollHeight:((gn=gr.current)===null||gn===void 0?void 0:gn.offsetHeight)||0,start:0,end:bt.length-1,offset:void 0}}for(var or=0,ln,an,Rr,On=bt.length,ci=0;ci<On;ci+=1){var Ui=bt[ci],ki=wt(Ui),Di=tn.get(ki),Ki=or+(Di===void 0?dt:Di);Ki>=vt&&ln===void 0&&(ln=ci,an=or),Ki>vt+Ct&&Rr===void 0&&(Rr=ci),or=Ki}return ln===void 0&&(ln=0,an=0),Rr===void 0&&(Rr=bt.length-1),Rr=Math.min(Rr+1,bt.length),{scrollHeight:or,start:ln,end:Rr,offset:an}},[wn,Mi,vt,bt,hn,Ct]),Xn=Mn.scrollHeight,si=Mn.start,vi=Mn.end,xi=Mn.offset;Rt.current.start=si,Rt.current.end=vi;var _i=Xn-Ct,Qe=Object(O.useRef)(_i);Qe.current=_i;function we(gn){var or=gn;return Number.isNaN(Qe.current)||(or=Math.min(or,Qe.current)),or=Math.max(or,0),or}var Ne=vt<=0,Fe=vt>=_i,Ye=ae(Ne,Fe);function We(gn){var or=gn;tt(or)}function Ze(gn){var or=gn.currentTarget.scrollTop;or!==vt&&tt(or),mn==null||mn(gn)}var mt=Q(Mi,Ne,Fe,function(gn){tt(function(or){var ln=or+gn;return ln})}),it=Te(mt,2),Jt=it[0],Dr=it[1];me(Mi,It,function(gn,or){return Ye(gn,or)?!1:(Jt({preventDefault:function(){},deltaY:gn}),!0)}),Object(G.a)(function(){function gn(or){Mi&&or.preventDefault()}return It.current.addEventListener("wheel",Jt),It.current.addEventListener("DOMMouseScroll",Dr),It.current.addEventListener("MozMousePixelScroll",gn),function(){It.current&&(It.current.removeEventListener("wheel",Jt),It.current.removeEventListener("DOMMouseScroll",Dr),It.current.removeEventListener("MozMousePixelScroll",gn))}},[Mi]);var Sr=J(It,bt,tn,dt,wt,pr,tt,function(){var gn;(gn=kr.current)===null||gn===void 0||gn.delayHidden()});O.useImperativeHandle(Be,function(){return{scrollTo:Sr}}),Object(G.a)(function(){if(In){var gn=bt.slice(si,vi+1);In(gn,bt)}},[si,vi,bt]);var Br=w(bt,si,vi,rr,lr,rt),$t=null;return Ct&&($t=ce(Ae({},ir?"height":"maxHeight",Ct),tr),Mi&&($t.overflowY="hidden",nt&&($t.pointerEvents="none"))),O.createElement("div",Ce({style:ce(ce({},$r),{},{position:"relative"}),className:Dt},Yn),O.createElement(Hr,{className:"".concat(ee,"-holder"),style:$t,ref:It,onScroll:Ze},O.createElement(o,{prefixCls:ee,height:Xn,offset:xi,onInnerResize:pr,ref:gr},Br)),Mi&&O.createElement(T,{ref:kr,prefixCls:ee,scrollTop:vt,height:Ct,scrollHeight:Xn,count:bt.length,onScroll:We,onStartMove:function(){yt(!0)},onStopMove:function(){yt(!1)}}))}var Tt=O.forwardRef(Mt);Tt.displayName="List";var Xe=Tt,oe=F.a=Xe},"+rIm":function(H,F,d){var O=d("bYtY"),x=O.retrieve,C=O.defaults,A=O.extend,S=O.each,g=d("7aKB"),f=d("IwbS"),c=d("Qxkt"),o=d("OELB"),r=o.isRadianAroundZero,i=o.remRadian,n=d("oVpE"),e=n.createSymbol,l=d("Fofx"),t=d("QBsz"),a=t.applyTransform,s=d("aX7z"),u=s.shouldShowAllLabels,h=Math.PI,p=function(M,U){this.opt=U,this.axisModel=M,C(U,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new f.Group;var B=new f.Group({position:U.position.slice(),rotation:U.rotation});B.updateTransform(),this._transform=B.transform,this._dumbGroup=B};p.prototype={constructor:p,hasBuilder:function(M){return!!m[M]},add:function(M){m[M].call(this)},getGroup:function(){return this.group}};var m={axisLine:function(){var M=this.opt,U=this.axisModel;if(!U.get("axisLine.show"))return;var B=this.axisModel.axis.getExtent(),j=this._transform,W=[B[0],0],V=[B[1],0];j&&(a(W,W,j),a(V,V,j));var z=A({lineCap:"round"},U.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new f.Line({anid:"line",subPixelOptimize:!0,shape:{x1:W[0],y1:W[1],x2:V[0],y2:V[1]},style:z,strokeContainThreshold:M.strokeContainThreshold||5,silent:!0,z2:1}));var J=U.get("axisLine.symbol"),Z=U.get("axisLine.symbolSize"),de=U.get("axisLine.symbolOffset")||0;if(typeof de=="number"&&(de=[de,de]),J!=null){typeof J=="string"&&(J=[J,J]),(typeof Z=="string"||typeof Z=="number")&&(Z=[Z,Z]);var ie=Z[0],ve=Z[1];S([{rotate:M.rotation+Math.PI/2,offset:de[0],r:0},{rotate:M.rotation-Math.PI/2,offset:de[1],r:Math.sqrt((W[0]-V[0])*(W[0]-V[0])+(W[1]-V[1])*(W[1]-V[1]))}],function(xe,_e){if(J[_e]!=="none"&&J[_e]!=null){var Ue=e(J[_e],-ie/2,-ve/2,ie,ve,z.stroke,!0),fe=xe.r+xe.offset,ke=[W[0]+fe*Math.cos(M.rotation),W[1]-fe*Math.sin(M.rotation)];Ue.attr({rotation:xe.rotate,position:ke,silent:!0,z2:11}),this.group.add(Ue)}},this)}},axisTickLabel:function(){var M=this.axisModel,U=this.opt,B=N(this,M,U),j=R(this,M,U);b(M,j,B),D(this,M,U)},axisName:function(){var M=this.opt,U=this.axisModel,B=x(M.axisName,U.get("name"));if(!B)return;var j=U.get("nameLocation"),W=M.nameDirection,V=U.getModel("nameTextStyle"),z=U.get("nameGap")||0,J=this.axisModel.axis.getExtent(),Z=J[0]>J[1]?-1:1,de=[j==="start"?J[0]-Z*z:j==="end"?J[1]+Z*z:(J[0]+J[1])/2,I(j)?M.labelOffset+W*z:0],ie,ve=U.get("nameRotate");ve!=null&&(ve=ve*h/180);var xe;I(j)?ie=y(M.rotation,ve!=null?ve:M.rotation,W):(ie=E(M,j,ve||0,J),xe=M.axisNameAvailableWidth,xe!=null&&(xe=Math.abs(xe/Math.sin(ie.rotation)),!isFinite(xe)&&(xe=null)));var _e=V.getFont(),Ue=U.get("nameTruncate",!0)||{},fe=Ue.ellipsis,ke=x(M.nameTruncateMaxWidth,Ue.maxWidth,xe),se=fe!=null&&ke!=null?g.truncateText(B,ke,_e,fe,{minChar:2,placeholder:Ue.placeholder}):B,te=U.get("tooltip",!0),Ve=U.mainType,ae={componentType:Ve,name:B,$vars:["name"]};ae[Ve+"Index"]=U.componentIndex;var Q=new f.Text({anid:"name",__fullText:B,__truncatedText:se,position:de,rotation:ie.rotation,silent:T(U),z2:1,tooltip:te&&te.show?A({content:B,formatter:function(){return B},formatterParams:ae},te):null});f.setTextStyle(Q.style,V,{text:se,textFont:_e,textFill:V.getTextColor()||U.get("axisLine.lineStyle.color"),textAlign:V.get("align")||ie.textAlign,textVerticalAlign:V.get("verticalAlign")||ie.textVerticalAlign}),U.get("triggerEvent")&&(Q.eventData=v(U),Q.eventData.targetType="axisName",Q.eventData.name=B),this._dumbGroup.add(Q),Q.updateTransform(),this.group.add(Q),Q.decomposeTransform()}},v=p.makeAxisEventDataBase=function(M){var U={componentType:M.mainType,componentIndex:M.componentIndex};return U[M.mainType+"Index"]=M.componentIndex,U},y=p.innerTextLayout=function(M,U,B){var j=i(U-M),W,V;return r(j)?(V=B>0?"top":"bottom",W="center"):r(j-h)?(V=B>0?"bottom":"top",W="center"):(V="middle",j>0&&j<h?W=B>0?"right":"left":W=B>0?"left":"right"),{rotation:j,textAlign:W,textVerticalAlign:V}};function E(M,U,B,j){var W=i(B-M.rotation),V,z,J=j[0]>j[1],Z=U==="start"&&!J||U!=="start"&&J;return r(W-h/2)?(z=Z?"bottom":"top",V="center"):r(W-h*1.5)?(z=Z?"top":"bottom",V="center"):(z="middle",W<h*1.5&&W>h/2?V=Z?"left":"right":V=Z?"right":"left"),{rotation:W,textAlign:V,textVerticalAlign:z}}var T=p.isLabelSilent=function(M){var U=M.get("tooltip");return M.get("silent")||!(M.get("triggerEvent")||U&&U.show)};function b(M,U,B){if(u(M.axis))return;var j=M.get("axisLabel.showMinLabel"),W=M.get("axisLabel.showMaxLabel");U=U||[],B=B||[];var V=U[0],z=U[1],J=U[U.length-1],Z=U[U.length-2],de=B[0],ie=B[1],ve=B[B.length-1],xe=B[B.length-2];j===!1?(w(V),w(de)):_(V,z)&&(j?(w(z),w(ie)):(w(V),w(de))),W===!1?(w(J),w(ve)):_(Z,J)&&(W?(w(Z),w(xe)):(w(J),w(ve)))}function w(M){M&&(M.ignore=!0)}function _(M,U,B){var j=M&&M.getBoundingRect().clone(),W=U&&U.getBoundingRect().clone();if(!j||!W)return;var V=l.identity([]);return l.rotate(V,V,-M.rotation),j.applyTransform(l.mul([],V,M.getLocalTransform())),W.applyTransform(l.mul([],V,U.getLocalTransform())),j.intersect(W)}function I(M){return M==="middle"||M==="center"}function L(M,U,B,j,W){for(var V=[],z=[],J=[],Z=0;Z<M.length;Z++){var de=M[Z].coord;z[0]=de,z[1]=0,J[0]=de,J[1]=B,U&&(a(z,z,U),a(J,J,U));var ie=new f.Line({anid:W+"_"+M[Z].tickValue,subPixelOptimize:!0,shape:{x1:z[0],y1:z[1],x2:J[0],y2:J[1]},style:j,z2:2,silent:!0});V.push(ie)}return V}function N(M,U,B){var j=U.axis,W=U.getModel("axisTick");if(!W.get("show")||j.scale.isBlank())return;for(var V=W.getModel("lineStyle"),z=B.tickDirection*W.get("length"),J=j.getTicksCoords(),Z=L(J,M._transform,z,C(V.getLineStyle(),{stroke:U.get("axisLine.lineStyle.color")}),"ticks"),de=0;de<Z.length;de++)M.group.add(Z[de]);return Z}function D(M,U,B){var j=U.axis,W=U.getModel("minorTick");if(!W.get("show")||j.scale.isBlank())return;var V=j.getMinorTicksCoords();if(!V.length)return;for(var z=W.getModel("lineStyle"),J=B.tickDirection*W.get("length"),Z=C(z.getLineStyle(),C(U.getModel("axisTick").getLineStyle(),{stroke:U.get("axisLine.lineStyle.color")})),de=0;de<V.length;de++)for(var ie=L(V[de],M._transform,J,Z,"minorticks_"+de),ve=0;ve<ie.length;ve++)M.group.add(ie[ve])}function R(M,U,B){var j=U.axis,W=x(B.axisLabelShow,U.get("axisLabel.show"));if(!W||j.scale.isBlank())return;var V=U.getModel("axisLabel"),z=V.get("margin"),J=j.getViewLabels(),Z=(x(B.labelRotate,V.get("rotate"))||0)*h/180,de=y(B.rotation,Z,B.labelDirection),ie=U.getCategories&&U.getCategories(!0),ve=[],xe=T(U),_e=U.get("triggerEvent");return S(J,function(Ue,fe){var ke=Ue.tickValue,se=Ue.formattedLabel,te=Ue.rawLabel,Ve=V;ie&&ie[ke]&&ie[ke].textStyle&&(Ve=new c(ie[ke].textStyle,V,U.ecModel));var ae=Ve.getTextColor()||U.get("axisLine.lineStyle.color"),Q=j.dataToCoord(ke),G=[Q,B.labelOffset+B.labelDirection*z],Y=new f.Text({anid:"label_"+ke,position:G,rotation:de.rotation,silent:xe,z2:10});f.setTextStyle(Y.style,Ve,{text:se,textAlign:Ve.getShallow("align",!0)||de.textAlign,textVerticalAlign:Ve.getShallow("verticalAlign",!0)||Ve.getShallow("baseline",!0)||de.textVerticalAlign,textFill:typeof ae=="function"?ae(j.type==="category"?te:j.type==="value"?ke+"":ke,fe):ae}),_e&&(Y.eventData=v(U),Y.eventData.targetType="axisLabel",Y.eventData.value=te),M._dumbGroup.add(Y),Y.updateTransform(),ve.push(Y),M.group.add(Y),Y.decomposeTransform()}),ve}var k=p;H.exports=k},"+wW9":function(H,F,d){var O=d("bYtY"),x=O.each,C=O.isArray,A=O.isObject,S=d("JuEJ"),g=d("4NO4"),f=g.normalizeToArray;function c(l,t){t=t.split(",");for(var a=l,s=0;s<t.length&&!(a=a&&a[t[s]],a==null);s++);return a}function o(l,t,a,s){t=t.split(",");for(var u=l,h,p=0;p<t.length-1;p++)h=t[p],u[h]==null&&(u[h]={}),u=u[h];(s||u[t[p]]==null)&&(u[t[p]]=a)}function r(l){x(i,function(t){t[0]in l&&!(t[1]in l)&&(l[t[1]]=l[t[0]])})}var i=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],n=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function e(l,t){S(l,t),l.series=f(l.series),x(l.series,function(a){if(!A(a))return;var s=a.type;if(s==="line")a.clipOverflow!=null&&(a.clip=a.clipOverflow);else if(s==="pie"||s==="gauge")a.clockWise!=null&&(a.clockwise=a.clockWise);else if(s==="gauge"){var u=c(a,"pointer.color");u!=null&&o(a,"itemStyle.color",u)}r(a)}),l.dataRange&&(l.visualMap=l.dataRange),x(n,function(a){var s=l[a];s&&(C(s)||(s=[s]),x(s,function(u){r(u)}))})}H.exports=e},"/IIm":function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=d("H6uX"),S=d("IwbS"),g=d("pP6R"),f=d("gPAo"),c=C.curry,o=C.each,r=C.map,i=Math.min,n=Math.max,e=Math.pow,l=1e4,t=6,a=6,s="globalPan",u={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},h={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},p={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},m=0;function v(ce){A.call(this),this._zr=ce,this.group=new S.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+m++,this._handlers={},o(G,function(Ae,Te){this._handlers[Te]=C.bind(Ae,this)},this)}v.prototype={constructor:v,enableBrush:function(ce){return this._brushType&&E(this),ce.brushType&&y(this,ce),this},setPanels:function(ce){if(ce&&ce.length){var Ae=this._panels={};C.each(ce,function(Te){Ae[Te.panelId]=C.clone(Te)})}else this._panels=null;return this},mount:function(ce){ce=ce||{},this._enableGlobalPan=ce.enableGlobalPan;var Ae=this.group;return this._zr.add(Ae),Ae.attr({position:ce.position||[0,0],rotation:ce.rotation||0,scale:ce.scale||[1,1]}),this._transform=Ae.getLocalTransform(),this},eachCover:function(ce,Ae){o(this._covers,ce,Ae)},updateCovers:function(ce){ce=C.map(ce,function(Ht){return C.merge(C.clone(p),Ht,!0)});var Ae="\0-brush-index-",Te=this._covers,Ge=this._covers=[],gt=this,qe=this._creatingCover;return new f(Te,ce,Ot,Le).add($e).update($e).remove(xt).execute(),this;function Le(Ht,tr){return(Ht.id!=null?Ht.id:Ae+tr)+"-"+Ht.brushType}function Ot(Ht,tr){return Le(Ht.__brushOption,tr)}function $e(Ht,tr){var Mt=ce[Ht];if(tr!=null&&Te[tr]===qe)Ge[Ht]=Te[tr];else{var Tt=Ge[Ht]=tr!=null?(Te[tr].__brushOption=Mt,Te[tr]):_(gt,w(gt,Mt));N(gt,Tt)}}function xt(Ht){Te[Ht]!==qe&>.group.remove(Te[Ht])}},unmount:function(){return this.enableBrush(!1),M(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},C.mixin(v,A);function y(ce,Ae){var Te=ce._zr;ce._enableGlobalPan||g.take(Te,s,ce._uid),T(Te,ce._handlers),ce._brushType=Ae.brushType,ce._brushOption=C.merge(C.clone(p),Ae,!0)}function E(ce){var Ae=ce._zr;g.release(Ae,s,ce._uid),b(Ae,ce._handlers),ce._brushType=ce._brushOption=null}function T(ce,Ae){o(Ae,function(Te,Ge){ce.on(Ge,Te)})}function b(ce,Ae){o(Ae,function(Te,Ge){ce.off(Ge,Te)})}function w(ce,Ae){var Te=ue[Ae.brushType].createCover(ce,Ae);return Te.__brushOption=Ae,L(Te,Ae),ce.group.add(Te),Te}function _(ce,Ae){var Te=D(Ae);return Te.endCreating&&(Te.endCreating(ce,Ae),L(Ae,Ae.__brushOption)),Ae}function I(ce,Ae){var Te=Ae.__brushOption;D(Ae).updateCoverShape(ce,Ae,Te.range,Te)}function L(ce,Ae){var Te=Ae.z;Te==null&&(Te=l),ce.traverse(function(Ge){Ge.z=Te,Ge.z2=Te})}function N(ce,Ae){D(Ae).updateCommon(ce,Ae),I(ce,Ae)}function D(ce){return ue[ce.__brushOption.brushType]}function R(ce,Ae,Te){var Ge=ce._panels;if(!Ge)return!0;var gt,qe=ce._transform;return o(Ge,function(Le){Le.isTargetByCursor(Ae,Te,qe)&&(gt=Le)}),gt}function k(ce,Ae){var Te=ce._panels;if(!Te)return!0;var Ge=Ae.__brushOption.panelId;return Ge!=null?Te[Ge]:!0}function M(ce){var Ae=ce._covers,Te=Ae.length;return o(Ae,function(Ge){ce.group.remove(Ge)},ce),Ae.length=0,!!Te}function U(ce,Ae){var Te=r(ce._covers,function(Ge){var gt=Ge.__brushOption,qe=C.clone(gt.range);return{brushType:gt.brushType,panelId:gt.panelId,range:qe}});ce.trigger("brush",Te,{isEnd:!!Ae.isEnd,removeOnClick:!!Ae.removeOnClick})}function B(ce){var Ae=ce._track;if(!Ae.length)return!1;var Te=Ae[Ae.length-1],Ge=Ae[0],gt=Te[0]-Ge[0],qe=Te[1]-Ge[1],Le=e(gt*gt+qe*qe,.5);return Le>t}function j(ce){var Ae=ce.length-1;return Ae<0&&(Ae=0),[ce[0],ce[Ae]]}function W(ce,Ae,Te,Ge){var gt=new S.Group;return gt.add(new S.Rect({name:"main",style:Z(Te),silent:!0,draggable:!0,cursor:"move",drift:c(ce,Ae,gt,"nswe"),ondragend:c(U,Ae,{isEnd:!0})})),o(Ge,function(qe){gt.add(new S.Rect({name:qe,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:c(ce,Ae,gt,qe),ondragend:c(U,Ae,{isEnd:!0})}))}),gt}function V(ce,Ae,Te,Ge){var gt=Ge.brushStyle.lineWidth||0,qe=n(gt,a),Le=Te[0][0],Ot=Te[1][0],$e=Le-gt/2,xt=Ot-gt/2,Ht=Te[0][1],tr=Te[1][1],Mt=Ht-qe+gt/2,Tt=tr-qe+gt/2,Xe=Ht-Le,oe=tr-Ot,X=Xe+gt,Be=oe+gt;J(ce,Ae,"main",Le,Ot,Xe,oe),Ge.transformable&&(J(ce,Ae,"w",$e,xt,qe,Be),J(ce,Ae,"e",Mt,xt,qe,Be),J(ce,Ae,"n",$e,xt,X,qe),J(ce,Ae,"s",$e,Tt,X,qe),J(ce,Ae,"nw",$e,xt,qe,qe),J(ce,Ae,"ne",Mt,xt,qe,qe),J(ce,Ae,"sw",$e,Tt,qe,qe),J(ce,Ae,"se",Mt,Tt,qe,qe))}function z(ce,Ae){var Te=Ae.__brushOption,Ge=Te.transformable,gt=Ae.childAt(0);gt.useStyle(Z(Te)),gt.attr({silent:!Ge,cursor:Ge?"move":"default"}),o(["w","e","n","s","se","sw","ne","nw"],function(qe){var Le=Ae.childOfName(qe),Ot=ve(ce,qe);Le&&Le.attr({silent:!Ge,invisible:!Ge,cursor:Ge?h[Ot]+"-resize":null})})}function J(ce,Ae,Te,Ge,gt,qe,Le){var Ot=Ae.childOfName(Te);Ot&&Ot.setShape(ke(fe(ce,Ae,[[Ge,gt],[Ge+qe,gt+Le]])))}function Z(ce){return C.defaults({strokeNoScale:!0},ce.brushStyle)}function de(ce,Ae,Te,Ge){var gt=[i(ce,Te),i(Ae,Ge)],qe=[n(ce,Te),n(Ae,Ge)];return[[gt[0],qe[0]],[gt[1],qe[1]]]}function ie(ce){return S.getTransform(ce.group)}function ve(ce,Ae){if(Ae.length>1){Ae=Ae.split("");var Te=[ve(ce,Ae[0]),ve(ce,Ae[1])];return(Te[0]==="e"||Te[0]==="w")&&Te.reverse(),Te.join("")}else{var Ge={w:"left",e:"right",n:"top",s:"bottom"},gt={left:"w",right:"e",top:"n",bottom:"s"},Te=S.transformDirection(Ge[Ae],ie(ce));return gt[Te]}}function xe(ce,Ae,Te,Ge,gt,qe,Le,Ot){var $e=Ge.__brushOption,xt=ce($e.range),Ht=Ue(Te,qe,Le);o(gt.split(""),function(tr){var Mt=u[tr];xt[Mt[0]][Mt[1]]+=Ht[Mt[0]]}),$e.range=Ae(de(xt[0][0],xt[1][0],xt[0][1],xt[1][1])),N(Te,Ge),U(Te,{isEnd:!1})}function _e(ce,Ae,Te,Ge,gt){var qe=Ae.__brushOption.range,Le=Ue(ce,Te,Ge);o(qe,function(Ot){Ot[0]+=Le[0],Ot[1]+=Le[1]}),N(ce,Ae),U(ce,{isEnd:!1})}function Ue(ce,Ae,Te){var Ge=ce.group,gt=Ge.transformCoordToLocal(Ae,Te),qe=Ge.transformCoordToLocal(0,0);return[gt[0]-qe[0],gt[1]-qe[1]]}function fe(ce,Ae,Te){var Ge=k(ce,Ae);return Ge&&Ge!==!0?Ge.clipPath(Te,ce._transform):C.clone(Te)}function ke(ce){var Ae=i(ce[0][0],ce[1][0]),Te=i(ce[0][1],ce[1][1]),Ge=n(ce[0][0],ce[1][0]),gt=n(ce[0][1],ce[1][1]);return{x:Ae,y:Te,width:Ge-Ae,height:gt-Te}}function se(ce,Ae,Te){if(!ce._brushType||me(ce,Ae))return;var Ge=ce._zr,gt=ce._covers,qe=R(ce,Ae,Te);if(!ce._dragging)for(var Le=0;Le<gt.length;Le++){var Ot=gt[Le].__brushOption;if(qe&&(qe===!0||Ot.panelId===qe.panelId)&&ue[Ot.brushType].contain(gt[Le],Te[0],Te[1]))return}qe&&Ge.setCursorStyle("crosshair")}function te(ce){var Ae=ce.event;Ae.preventDefault&&Ae.preventDefault()}function Ve(ce,Ae,Te){return ce.childOfName("main").contain(Ae,Te)}function ae(ce,Ae,Te,Ge){var gt=ce._creatingCover,qe=ce._creatingPanel,Le=ce._brushOption,Ot;if(ce._track.push(Te.slice()),B(ce)||gt){if(qe&&!gt){Le.brushMode==="single"&&M(ce);var $e=C.clone(Le);$e.brushType=Q($e.brushType,qe),$e.panelId=qe===!0?null:qe.panelId,gt=ce._creatingCover=w(ce,$e),ce._covers.push(gt)}if(gt){var xt=ue[Q(ce._brushType,qe)],Ht=gt.__brushOption;Ht.range=xt.getCreatingRange(fe(ce,gt,ce._track)),Ge&&(_(ce,gt),xt.updateCommon(ce,gt)),I(ce,gt),Ot={isEnd:Ge}}}else Ge&&Le.brushMode==="single"&&Le.removeOnClick&&(R(ce,Ae,Te)&&M(ce)&&(Ot={isEnd:Ge,removeOnClick:!0}));return Ot}function Q(ce,Ae){return ce==="auto"?Ae.defaultBrushType:ce}var G={mousedown:function(ce){if(this._dragging)Y(this,ce);else if(!ce.target||!ce.target.draggable){te(ce);var Ae=this.group.transformCoordToLocal(ce.offsetX,ce.offsetY);this._creatingCover=null;var Te=this._creatingPanel=R(this,ce,Ae);Te&&(this._dragging=!0,this._track=[Ae.slice()])}},mousemove:function(ce){var Ae=ce.offsetX,Te=ce.offsetY,Ge=this.group.transformCoordToLocal(Ae,Te);if(se(this,ce,Ge),this._dragging){te(ce);var gt=ae(this,ce,Ge,!1);gt&&U(this,gt)}},mouseup:function(ce){Y(this,ce)}};function Y(ce,Ae){if(ce._dragging){te(Ae);var Te=Ae.offsetX,Ge=Ae.offsetY,gt=ce.group.transformCoordToLocal(Te,Ge),qe=ae(ce,Ae,gt,!0);ce._dragging=!1,ce._track=[],ce._creatingCover=null,qe&&U(ce,qe)}}function me(ce,Ae,Te){var Ge=ce._zr;return Ae<0||Ae>Ge.getWidth()||Te<0||Te>Ge.getHeight()}var ue={lineX:Ce(0),lineY:Ce(1),rect:{createCover:function(ce,Ae){return W(c(xe,function(Te){return Te},function(Te){return Te}),ce,Ae,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(ce){var Ae=j(ce);return de(Ae[1][0],Ae[1][1],Ae[0][0],Ae[0][1])},updateCoverShape:function(ce,Ae,Te,Ge){V(ce,Ae,Te,Ge)},updateCommon:z,contain:Ve},polygon:{createCover:function(ce,Ae){var Te=new S.Group;return Te.add(new S.Polyline({name:"main",style:Z(Ae),silent:!0})),Te},getCreatingRange:function(ce){return ce},endCreating:function(ce,Ae){Ae.remove(Ae.childAt(0)),Ae.add(new S.Polygon({name:"main",draggable:!0,drift:c(_e,ce,Ae),ondragend:c(U,ce,{isEnd:!0})}))},updateCoverShape:function(ce,Ae,Te,Ge){Ae.childAt(0).setShape({points:fe(ce,Ae,Te)})},updateCommon:z,contain:Ve}};function Ce(ce){return{createCover:function(Ae,Te){return W(c(xe,function(Ge){var gt=[Ge,[0,100]];return ce&>.reverse(),gt},function(Ge){return Ge[ce]}),Ae,Te,[["w","e"],["n","s"]][ce])},getCreatingRange:function(Ae){var Te=j(Ae),Ge=i(Te[0][ce],Te[1][ce]),gt=n(Te[0][ce],Te[1][ce]);return[Ge,gt]},updateCoverShape:function(Ae,Te,Ge,gt){var qe,Le=k(Ae,Te);if(Le!==!0&&Le.getLinearBrushOtherExtent)qe=Le.getLinearBrushOtherExtent(ce,Ae._transform);else{var Ot=Ae._zr;qe=[0,[Ot.getWidth(),Ot.getHeight()][1-ce]]}var $e=[Ge,qe];ce&&$e.reverse(),V(Ae,Te,$e,gt)},updateCommon:z,contain:Ve}}var Ie=v;H.exports=Ie},"/MfK":function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="DeleteOutlined";var f=F.a=x.forwardRef(g)},"/POA":function(H,F,d){!function(O,x){if(!0)H.exports=x();else var C,A}(window,function(){return function(O){var x={};function C(A){if(x[A])return x[A].exports;var S=x[A]={i:A,l:!1,exports:{}};return O[A].call(S.exports,S,S.exports,C),S.l=!0,S.exports}return C.m=O,C.c=x,C.d=function(A,S,g){C.o(A,S)||Object.defineProperty(A,S,{enumerable:!0,get:g})},C.r=function(A){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},C.t=function(A,S){if(1&S&&(A=C(A)),8&S)return A;if(4&S&&typeof A=="object"&&A&&A.__esModule)return A;var g=Object.create(null);if(C.r(g),Object.defineProperty(g,"default",{enumerable:!0,value:A}),2&S&&typeof A!="string")for(var f in A)C.d(g,f,function(c){return A[c]}.bind(null,f));return g},C.n=function(A){var S=A&&A.__esModule?function(){return A.default}:function(){return A};return C.d(S,"a",S),S},C.o=function(A,S){return Object.prototype.hasOwnProperty.call(A,S)},C.p="",C(C.s=34)}([function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.forwardEvent=x.EventEmitter=void 0;var A=function(){function S(){this._listeners=[],this._disposed=!1}return Object.defineProperty(S.prototype,"event",{get:function(){var f=this;return this._event||(this._event=function(c){return f._listeners.push(c),{dispose:function(){if(!f._disposed){for(var r=0;r<f._listeners.length;r++)if(f._listeners[r]===c)return void f._listeners.splice(r,1)}}}}),this._event},enumerable:!1,configurable:!0}),S.prototype.fire=function(g,f){for(var c=[],o=0;o<this._listeners.length;o++)c.push(this._listeners[o]);for(o=0;o<c.length;o++)c[o].call(void 0,g,f)},S.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},S}();x.EventEmitter=A,x.forwardEvent=function(S,g){return S(function(f){return g.fire(f)})}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.IUnicodeService=x.IOptionsService=x.ILogService=x.IInstantiationService=x.IDirtyRowService=x.ICharsetService=x.ICoreService=x.ICoreMouseService=x.IBufferService=void 0;var A=C(14);x.IBufferService=A.createDecorator("BufferService"),x.ICoreMouseService=A.createDecorator("CoreMouseService"),x.ICoreService=A.createDecorator("CoreService"),x.ICharsetService=A.createDecorator("CharsetService"),x.IDirtyRowService=A.createDecorator("DirtyRowService"),x.IInstantiationService=A.createDecorator("InstantiationService"),x.ILogService=A.createDecorator("LogService"),x.IOptionsService=A.createDecorator("OptionsService"),x.IUnicodeService=A.createDecorator("UnicodeService")},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.getDisposeArrayDisposable=x.disposeArray=x.Disposable=void 0;var A=function(){function g(){this._disposables=[],this._isDisposed=!1}return g.prototype.dispose=function(){this._isDisposed=!0;for(var f=0,c=this._disposables;f<c.length;f++)c[f].dispose();this._disposables.length=0},g.prototype.register=function(f){return this._disposables.push(f),f},g.prototype.unregister=function(f){var c=this._disposables.indexOf(f);c!==-1&&this._disposables.splice(c,1)},g}();function S(g){for(var f=0,c=g;f<c.length;f++)c[f].dispose();g.length=0}x.Disposable=A,x.disposeArray=S,x.getDisposeArrayDisposable=function(g){return{dispose:function(){return S(g)}}}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.WHITESPACE_CELL_CODE=x.WHITESPACE_CELL_WIDTH=x.WHITESPACE_CELL_CHAR=x.NULL_CELL_CODE=x.NULL_CELL_WIDTH=x.NULL_CELL_CHAR=x.CHAR_DATA_CODE_INDEX=x.CHAR_DATA_WIDTH_INDEX=x.CHAR_DATA_CHAR_INDEX=x.CHAR_DATA_ATTR_INDEX=x.DEFAULT_ATTR=x.DEFAULT_COLOR=void 0,x.DEFAULT_COLOR=256,x.DEFAULT_ATTR=256|x.DEFAULT_COLOR<<9,x.CHAR_DATA_ATTR_INDEX=0,x.CHAR_DATA_CHAR_INDEX=1,x.CHAR_DATA_WIDTH_INDEX=2,x.CHAR_DATA_CODE_INDEX=3,x.NULL_CELL_CHAR="",x.NULL_CELL_WIDTH=1,x.NULL_CELL_CODE=0,x.WHITESPACE_CELL_CHAR=" ",x.WHITESPACE_CELL_WIDTH=1,x.WHITESPACE_CELL_CODE=32},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(i,n){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var t in l)l.hasOwnProperty(t)&&(e[t]=l[t])})(i,n)},function(r,i){function n(){this.constructor=r}A(r,i),r.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(x,"__esModule",{value:!0}),x.CellData=void 0;var g=C(8),f=C(3),c=C(6),o=function(r){function i(){var n=r!==null&&r.apply(this,arguments)||this;return n.content=0,n.fg=0,n.bg=0,n.extended=new c.ExtendedAttrs,n.combinedData="",n}return S(i,r),i.fromCharData=function(n){var e=new i;return e.setFromCharData(n),e},i.prototype.isCombined=function(){return 2097152&this.content},i.prototype.getWidth=function(){return this.content>>22},i.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?g.stringFromCodePoint(2097151&this.content):""},i.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},i.prototype.setFromCharData=function(n){this.fg=n[f.CHAR_DATA_ATTR_INDEX],this.bg=0;var e=!1;if(n[f.CHAR_DATA_CHAR_INDEX].length>2)e=!0;else if(n[f.CHAR_DATA_CHAR_INDEX].length===2){var l=n[f.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=l&&l<=56319){var t=n[f.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=t&&t<=57343?this.content=1024*(l-55296)+t-56320+65536|n[f.CHAR_DATA_WIDTH_INDEX]<<22:e=!0}else e=!0}else this.content=n[f.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|n[f.CHAR_DATA_WIDTH_INDEX]<<22;e&&(this.combinedData=n[f.CHAR_DATA_CHAR_INDEX],this.content=2097152|n[f.CHAR_DATA_WIDTH_INDEX]<<22)},i.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},i}(c.AttributeData);x.CellData=o},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.ISoundService=x.ISelectionService=x.IRenderService=x.IMouseService=x.ICoreBrowserService=x.ICharSizeService=void 0;var A=C(14);x.ICharSizeService=A.createDecorator("CharSizeService"),x.ICoreBrowserService=A.createDecorator("CoreBrowserService"),x.IMouseService=A.createDecorator("MouseService"),x.IRenderService=A.createDecorator("RenderService"),x.ISelectionService=A.createDecorator("SelectionService"),x.ISoundService=A.createDecorator("SoundService")},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.ExtendedAttrs=x.AttributeData=void 0;var A=function(){function g(){this.fg=0,this.bg=0,this.extended=new S}return g.toColorRGB=function(f){return[f>>>16&255,f>>>8&255,255&f]},g.fromColorRGB=function(f){return(255&f[0])<<16|(255&f[1])<<8|255&f[2]},g.prototype.clone=function(){var f=new g;return f.fg=this.fg,f.bg=this.bg,f.extended=this.extended.clone(),f},g.prototype.isInverse=function(){return 67108864&this.fg},g.prototype.isBold=function(){return 134217728&this.fg},g.prototype.isUnderline=function(){return 268435456&this.fg},g.prototype.isBlink=function(){return 536870912&this.fg},g.prototype.isInvisible=function(){return 1073741824&this.fg},g.prototype.isItalic=function(){return 67108864&this.bg},g.prototype.isDim=function(){return 134217728&this.bg},g.prototype.getFgColorMode=function(){return 50331648&this.fg},g.prototype.getBgColorMode=function(){return 50331648&this.bg},g.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},g.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},g.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},g.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},g.prototype.isFgDefault=function(){return(50331648&this.fg)==0},g.prototype.isBgDefault=function(){return(50331648&this.bg)==0},g.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},g.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},g.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},g.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},g.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},g.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()},g.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},g.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},g.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},g.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},g.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},g}();x.AttributeData=A;var S=function(){function g(f,c){f===void 0&&(f=0),c===void 0&&(c=-1),this.underlineStyle=f,this.underlineColor=c}return g.prototype.clone=function(){return new g(this.underlineStyle,this.underlineColor)},g.prototype.isEmpty=function(){return this.underlineStyle===0},g}();x.ExtendedAttrs=S},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.addDisposableDomListener=void 0,x.addDisposableDomListener=function(A,S,g,f){A.addEventListener(S,g,f);var c=!1;return{dispose:function(){c||(c=!0,A.removeEventListener(S,g,f))}}}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.Utf8ToUtf32=x.StringToUtf32=x.utf32ToString=x.stringFromCodePoint=void 0,x.stringFromCodePoint=function(g){return g>65535?(g-=65536,String.fromCharCode(55296+(g>>10))+String.fromCharCode(g%1024+56320)):String.fromCharCode(g)},x.utf32ToString=function(g,f,c){f===void 0&&(f=0),c===void 0&&(c=g.length);for(var o="",r=f;r<c;++r){var i=g[r];i>65535?(i-=65536,o+=String.fromCharCode(55296+(i>>10))+String.fromCharCode(i%1024+56320)):o+=String.fromCharCode(i)}return o};var A=function(){function g(){this._interim=0}return g.prototype.clear=function(){this._interim=0},g.prototype.decode=function(f,c){var o=f.length;if(!o)return 0;var r=0,i=0;this._interim&&(56320<=(l=f.charCodeAt(i++))&&l<=57343?c[r++]=1024*(this._interim-55296)+l-56320+65536:(c[r++]=this._interim,c[r++]=l),this._interim=0);for(var n=i;n<o;++n){var e=f.charCodeAt(n);if(55296<=e&&e<=56319){if(++n>=o)return this._interim=e,r;var l;56320<=(l=f.charCodeAt(n))&&l<=57343?c[r++]=1024*(e-55296)+l-56320+65536:(c[r++]=e,c[r++]=l)}else c[r++]=e}return r},g}();x.StringToUtf32=A;var S=function(){function g(){this.interim=new Uint8Array(3)}return g.prototype.clear=function(){this.interim.fill(0)},g.prototype.decode=function(f,c){var o=f.length;if(!o)return 0;var r,i,n,e,l=0,t=0,a=0;if(this.interim[0]){var s=!1,u=this.interim[0];u&=(224&u)==192?31:(240&u)==224?15:7;for(var h=0,p=void 0;(p=63&this.interim[++h])&&h<4;)u<<=6,u|=p;for(var m=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,v=m-h;a<v;){if(a>=o)return 0;if((192&(p=f[a++]))!=128){a--,s=!0;break}this.interim[h++]=p,u<<=6,u|=63&p}s||(m===2?u<128?a--:c[l++]=u:m===3?u<2048||u>=55296&&u<=57343||(c[l++]=u):u<65536||u>1114111||(c[l++]=u)),this.interim.fill(0)}for(var y=o-4,E=a;E<o;){for(;!(!(E<y)||128&(r=f[E])||128&(i=f[E+1])||128&(n=f[E+2])||128&(e=f[E+3]));)c[l++]=r,c[l++]=i,c[l++]=n,c[l++]=e,E+=4;if((r=f[E++])<128)c[l++]=r;else if((224&r)==192){if(E>=o)return this.interim[0]=r,l;if((192&(i=f[E++]))!=128){E--;continue}if((t=(31&r)<<6|63&i)<128){E--;continue}c[l++]=t}else if((240&r)==224){if(E>=o)return this.interim[0]=r,l;if((192&(i=f[E++]))!=128){E--;continue}if(E>=o)return this.interim[0]=r,this.interim[1]=i,l;if((192&(n=f[E++]))!=128){E--;continue}if((t=(15&r)<<12|(63&i)<<6|63&n)<2048||t>=55296&&t<=57343)continue;c[l++]=t}else if((248&r)==240){if(E>=o)return this.interim[0]=r,l;if((192&(i=f[E++]))!=128){E--;continue}if(E>=o)return this.interim[0]=r,this.interim[1]=i,l;if((192&(n=f[E++]))!=128){E--;continue}if(E>=o)return this.interim[0]=r,this.interim[1]=i,this.interim[2]=n,l;if((192&(e=f[E++]))!=128){E--;continue}if((t=(7&r)<<18|(63&i)<<12|(63&n)<<6|63&e)<65536||t>1114111)continue;c[l++]=t}}return l},g}();x.Utf8ToUtf32=S},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.CHAR_ATLAS_CELL_SPACING=x.DIM_OPACITY=x.INVERTED_DEFAULT_COLOR=void 0,x.INVERTED_DEFAULT_COLOR=257,x.DIM_OPACITY=.5,x.CHAR_ATLAS_CELL_SPACING=1},function(O,x,C){"use strict";var A,S,g,f;function c(r){var i=r.toString(16);return i.length<2?"0"+i:i}function o(r,i){return r<i?(i+.05)/(r+.05):(r+.05)/(i+.05)}Object.defineProperty(x,"__esModule",{value:!0}),x.contrastRatio=x.toPaddedHex=x.rgba=x.rgb=x.css=x.color=x.channels=void 0,function(r){r.toCss=function(i,n,e,l){return l!==void 0?"#"+c(i)+c(n)+c(e)+c(l):"#"+c(i)+c(n)+c(e)},r.toRgba=function(i,n,e,l){return l===void 0&&(l=255),(i<<24|n<<16|e<<8|l)>>>0}}(A=x.channels||(x.channels={})),(S=x.color||(x.color={})).blend=function(r,i){var n=(255&i.rgba)/255;if(n===1)return{css:i.css,rgba:i.rgba};var e=i.rgba>>24&255,l=i.rgba>>16&255,t=i.rgba>>8&255,a=r.rgba>>24&255,s=r.rgba>>16&255,u=r.rgba>>8&255,h=a+Math.round((e-a)*n),p=s+Math.round((l-s)*n),m=u+Math.round((t-u)*n);return{css:A.toCss(h,p,m),rgba:A.toRgba(h,p,m)}},S.isOpaque=function(r){return(255&r.rgba)==255},S.ensureContrastRatio=function(r,i,n){var e=f.ensureContrastRatio(r.rgba,i.rgba,n);if(e)return f.toColor(e>>24&255,e>>16&255,e>>8&255)},S.opaque=function(r){var i=(255|r.rgba)>>>0,n=f.toChannels(i),e=n[0],l=n[1],t=n[2];return{css:A.toCss(e,l,t),rgba:i}},S.opacity=function(r,i){var n=Math.round(255*i),e=f.toChannels(r.rgba),l=e[0],t=e[1],a=e[2];return{css:A.toCss(l,t,a,n),rgba:A.toRgba(l,t,a,n)}},(x.css||(x.css={})).toColor=function(r){switch(r.length){case 7:return{css:r,rgba:(parseInt(r.slice(1),16)<<8|255)>>>0};case 9:return{css:r,rgba:parseInt(r.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(r){function i(n,e,l){var t=n/255,a=e/255,s=l/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))+.0722*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))}r.relativeLuminance=function(n){return i(n>>16&255,n>>8&255,255&n)},r.relativeLuminance2=i}(g=x.rgb||(x.rgb={})),function(r){function i(e,l,t){for(var a=e>>24&255,s=e>>16&255,u=e>>8&255,h=l>>24&255,p=l>>16&255,m=l>>8&255,v=o(g.relativeLuminance2(h,m,p),g.relativeLuminance2(a,s,u));v<t&&(h>0||p>0||m>0);)h-=Math.max(0,Math.ceil(.1*h)),p-=Math.max(0,Math.ceil(.1*p)),m-=Math.max(0,Math.ceil(.1*m)),v=o(g.relativeLuminance2(h,m,p),g.relativeLuminance2(a,s,u));return(h<<24|p<<16|m<<8|255)>>>0}function n(e,l,t){for(var a=e>>24&255,s=e>>16&255,u=e>>8&255,h=l>>24&255,p=l>>16&255,m=l>>8&255,v=o(g.relativeLuminance2(h,m,p),g.relativeLuminance2(a,s,u));v<t&&(h<255||p<255||m<255);)h=Math.min(255,h+Math.ceil(.1*(255-h))),p=Math.min(255,p+Math.ceil(.1*(255-p))),m=Math.min(255,m+Math.ceil(.1*(255-m))),v=o(g.relativeLuminance2(h,m,p),g.relativeLuminance2(a,s,u));return(h<<24|p<<16|m<<8|255)>>>0}r.ensureContrastRatio=function(e,l,t){var a=g.relativeLuminance(e>>8),s=g.relativeLuminance(l>>8);if(o(a,s)<t)return s<a?i(e,l,t):n(e,l,t)},r.reduceLuminance=i,r.increaseLuminance=n,r.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},r.toColor=function(e,l,t){return{css:A.toCss(e,l,t),rgba:A.toRgba(e,l,t)}}}(f=x.rgba||(x.rgba={})),x.toPaddedHex=c,x.contrastRatio=o},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.isLinux=x.isWindows=x.isIphone=x.isIpad=x.isMac=x.isSafari=x.isFirefox=void 0;var A=typeof navigator=="undefined",S=A?"node":navigator.userAgent,g=A?"node":navigator.platform;function f(c,o){return c.indexOf(o)>=0}x.isFirefox=!!~S.indexOf("Firefox"),x.isSafari=/^((?!chrome|android).)*safari/i.test(S),x.isMac=f(["Macintosh","MacIntel","MacPPC","Mac68K"],g),x.isIpad=g==="iPad",x.isIphone=g==="iPhone",x.isWindows=f(["Windows","Win16","Win32","WinCE"],g),x.isLinux=g.indexOf("Linux")>=0},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.C1=x.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"}(x.C0||(x.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"}(x.C1||(x.C1={}))},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.BaseRenderLayer=void 0;var A=C(3),S=C(9),g=C(25),f=C(6),c=C(28),o=C(10),r=C(17),i=function(){function n(e,l,t,a,s,u,h,p){this._container=e,this._alpha=a,this._colors=s,this._rendererId=u,this._bufferService=h,this._optionsService=p,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+l+"-layer"),this._canvas.style.zIndex=t.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return n.prototype.dispose=function(){var e;r.removeElementFromParent(this._canvas),(e=this._charAtlas)===null||e===void 0||e.dispose()},n.prototype._initCanvas=function(){this._ctx=c.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},n.prototype.onOptionsChanged=function(){},n.prototype.onBlur=function(){},n.prototype.onFocus=function(){},n.prototype.onCursorMove=function(){},n.prototype.onGridChanged=function(e,l){},n.prototype.onSelectionChanged=function(e,l,t){t===void 0&&(t=!1)},n.prototype.setColors=function(e){this._refreshCharAtlas(e)},n.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)}},n.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=g.acquireCharAtlas(this._optionsService.options,this._rendererId,e,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},n.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)},n.prototype._fillCells=function(e,l,t,a){this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,t*this._scaledCellWidth,a*this._scaledCellHeight)},n.prototype._fillBottomLineAtCells=function(e,l,t){t===void 0&&(t=1),this._ctx.fillRect(e*this._scaledCellWidth,(l+1)*this._scaledCellHeight-window.devicePixelRatio-1,t*this._scaledCellWidth,window.devicePixelRatio)},n.prototype._fillLeftLineAtCell=function(e,l,t){this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,window.devicePixelRatio*t,this._scaledCellHeight)},n.prototype._strokeRectAtCell=function(e,l,t,a){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,l*this._scaledCellHeight+window.devicePixelRatio/2,t*this._scaledCellWidth-window.devicePixelRatio,a*this._scaledCellHeight-window.devicePixelRatio)},n.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))},n.prototype._clearCells=function(e,l,t,a){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,l*this._scaledCellHeight,t*this._scaledCellWidth,a*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,t*this._scaledCellWidth,a*this._scaledCellHeight))},n.prototype._fillCharTrueColor=function(e,l,t){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(t),this._ctx.fillText(e.getChars(),l*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},n.prototype._drawChars=function(e,l,t){var a,s,u=this._getContrastColor(e);u||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,l,t,u):(e.isInverse()?(a=e.isBgDefault()?S.INVERTED_DEFAULT_COLOR:e.getBgColor(),s=e.isFgDefault()?S.INVERTED_DEFAULT_COLOR:e.getFgColor()):(s=e.isBgDefault()?A.DEFAULT_COLOR:e.getBgColor(),a=e.isFgDefault()?A.DEFAULT_COLOR:e.getFgColor()),a+=this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&a<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||A.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||A.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=s,this._currentGlyphIdentifier.fg=a,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,t*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,l,t))},n.prototype._drawUncachedChars=function(e,l,t,a){if(this._ctx.save(),this._ctx.font=this._getFont(!!e.isBold(),!!e.isItalic()),this._ctx.textBaseline="middle",e.isInverse())if(a)this._ctx.fillStyle=a.css;else if(e.isBgDefault())this._ctx.fillStyle=o.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+f.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var s=e.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&s<8&&(s+=8),this._ctx.fillStyle=this._colors.ansi[s].css}else if(a)this._ctx.fillStyle=a.css;else if(e.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(e.isFgRGB())this._ctx.fillStyle="rgb("+f.AttributeData.toColorRGB(e.getFgColor()).join(",")+")";else{var u=e.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&u<8&&(u+=8),this._ctx.fillStyle=this._colors.ansi[u].css}this._clipRow(t),e.isDim()&&(this._ctx.globalAlpha=S.DIM_OPACITY),this._ctx.fillText(e.getChars(),l*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},n.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},n.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},n.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 t=e.getFgColor(),a=e.getFgColorMode(),s=e.getBgColor(),u=e.getBgColorMode(),h=!!e.isInverse(),p=!!e.isInverse();if(h){var m=t;t=s,s=m;var v=a;a=u,u=v}var y=this._resolveBackgroundRgba(u,s,h),E=this._resolveForegroundRgba(a,t,h,p),T=o.rgba.ensureContrastRatio(y,E,this._optionsService.options.minimumContrastRatio);if(T){var b={css:o.channels.toCss(T>>24&255,T>>16&255,T>>8&255),rgba:T};return this._colors.contrastCache.setColor(e.bg,e.fg,b),b}this._colors.contrastCache.setColor(e.bg,e.fg,null)}},n.prototype._resolveBackgroundRgba=function(e,l,t){switch(e){case 16777216:case 33554432:return this._colors.ansi[l].rgba;case 50331648:return l<<8;case 0:default:return t?this._colors.foreground.rgba:this._colors.background.rgba}},n.prototype._resolveForegroundRgba=function(e,l,t,a){switch(e){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&a&&l<8&&(l+=8),this._colors.ansi[l].rgba;case 50331648:return l<<8;case 0:default:return t?this._colors.background.rgba:this._colors.foreground.rgba}},n}();x.BaseRenderLayer=i},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.createDecorator=x.getServiceDependencies=x.serviceRegistry=void 0;function A(S,g,f){g.di$target===g?g.di$dependencies.push({id:S,index:f}):(g.di$dependencies=[{id:S,index:f}],g.di$target=g)}x.serviceRegistry=new Map,x.getServiceDependencies=function(S){return S.di$dependencies||[]},x.createDecorator=function(S){if(x.serviceRegistry.has(S))return x.serviceRegistry.get(S);var g=function f(c,o,r){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");A(f,c,r)};return g.toString=function(){return S},x.serviceRegistry.set(S,g),g}},function(O,x,C){"use strict";function A(S,g,f,c){if(f===void 0&&(f=0),c===void 0&&(c=S.length),f>=S.length)return S;f=(S.length+f)%S.length,c=c>=S.length?S.length:(S.length+c)%S.length;for(var o=f;o<c;++o)S[o]=g;return S}Object.defineProperty(x,"__esModule",{value:!0}),x.concat=x.fillFallback=x.fill=void 0,x.fill=function(S,g,f,c){return S.fill?S.fill(g,f,c):A(S,g,f,c)},x.fillFallback=A,x.concat=function(S,g){var f=new S.constructor(S.length+g.length);return f.set(S),f.set(g,S.length),f}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.BufferLine=x.DEFAULT_ATTR_DATA=void 0;var A=C(8),S=C(3),g=C(4),f=C(6);x.DEFAULT_ATTR_DATA=Object.freeze(new f.AttributeData);var c=function(){function o(r,i,n){n===void 0&&(n=!1),this.isWrapped=n,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*r);for(var e=i||g.CellData.fromCharData([0,S.NULL_CELL_CHAR,S.NULL_CELL_WIDTH,S.NULL_CELL_CODE]),l=0;l<r;++l)this.setCell(l,e);this.length=r}return o.prototype.get=function(r){var i=this._data[3*r+0],n=2097151&i;return[this._data[3*r+1],2097152&i?this._combined[r]:n?A.stringFromCodePoint(n):"",i>>22,2097152&i?this._combined[r].charCodeAt(this._combined[r].length-1):n]},o.prototype.set=function(r,i){this._data[3*r+1]=i[S.CHAR_DATA_ATTR_INDEX],i[S.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[r]=i[1],this._data[3*r+0]=2097152|r|i[S.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*r+0]=i[S.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|i[S.CHAR_DATA_WIDTH_INDEX]<<22},o.prototype.getWidth=function(r){return this._data[3*r+0]>>22},o.prototype.hasWidth=function(r){return 12582912&this._data[3*r+0]},o.prototype.getFg=function(r){return this._data[3*r+1]},o.prototype.getBg=function(r){return this._data[3*r+2]},o.prototype.hasContent=function(r){return 4194303&this._data[3*r+0]},o.prototype.getCodePoint=function(r){var i=this._data[3*r+0];return 2097152&i?this._combined[r].charCodeAt(this._combined[r].length-1):2097151&i},o.prototype.isCombined=function(r){return 2097152&this._data[3*r+0]},o.prototype.getString=function(r){var i=this._data[3*r+0];return 2097152&i?this._combined[r]:2097151&i?A.stringFromCodePoint(2097151&i):""},o.prototype.loadCell=function(r,i){var n=3*r;return i.content=this._data[n+0],i.fg=this._data[n+1],i.bg=this._data[n+2],2097152&i.content&&(i.combinedData=this._combined[r]),268435456&i.bg&&(i.extended=this._extendedAttrs[r]),i},o.prototype.setCell=function(r,i){2097152&i.content&&(this._combined[r]=i.combinedData),268435456&i.bg&&(this._extendedAttrs[r]=i.extended),this._data[3*r+0]=i.content,this._data[3*r+1]=i.fg,this._data[3*r+2]=i.bg},o.prototype.setCellFromCodePoint=function(r,i,n,e,l,t){268435456&l&&(this._extendedAttrs[r]=t),this._data[3*r+0]=i|n<<22,this._data[3*r+1]=e,this._data[3*r+2]=l},o.prototype.addCodepointToCell=function(r,i){var n=this._data[3*r+0];2097152&n?this._combined[r]+=A.stringFromCodePoint(i):(2097151&n?(this._combined[r]=A.stringFromCodePoint(2097151&n)+A.stringFromCodePoint(i),n&=-2097152,n|=2097152):n=i|1<<22,this._data[3*r+0]=n)},o.prototype.insertCells=function(r,i,n,e){if((r%=this.length)&&this.getWidth(r-1)===2&&this.setCellFromCodePoint(r-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new f.ExtendedAttrs),i<this.length-r){for(var l=new g.CellData,t=this.length-r-i-1;t>=0;--t)this.setCell(r+i+t,this.loadCell(r+t,l));for(t=0;t<i;++t)this.setCell(r+t,n)}else for(t=r;t<this.length;++t)this.setCell(t,n);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 f.ExtendedAttrs)},o.prototype.deleteCells=function(r,i,n,e){if(r%=this.length,i<this.length-r){for(var l=new g.CellData,t=0;t<this.length-r-i;++t)this.setCell(r+t,this.loadCell(r+i+t,l));for(t=this.length-i;t<this.length;++t)this.setCell(t,n)}else for(t=r;t<this.length;++t)this.setCell(t,n);r&&this.getWidth(r-1)===2&&this.setCellFromCodePoint(r-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new f.ExtendedAttrs),this.getWidth(r)!==0||this.hasContent(r)||this.setCellFromCodePoint(r,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new f.ExtendedAttrs)},o.prototype.replaceCells=function(r,i,n,e){for(r&&this.getWidth(r-1)===2&&this.setCellFromCodePoint(r-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new f.ExtendedAttrs),i<this.length&&this.getWidth(i-1)===2&&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 f.ExtendedAttrs);r<i&&r<this.length;)this.setCell(r++,n)},o.prototype.resize=function(r,i){if(r!==this.length){if(r>this.length){var n=new Uint32Array(3*r);this.length&&(3*r<this._data.length?n.set(this._data.subarray(0,3*r)):n.set(this._data)),this._data=n;for(var e=this.length;e<r;++e)this.setCell(e,i)}else if(r){(n=new Uint32Array(3*r)).set(this._data.subarray(0,3*r)),this._data=n;var l=Object.keys(this._combined);for(e=0;e<l.length;e++){var t=parseInt(l[e],10);t>=r&&delete this._combined[t]}}else this._data=new Uint32Array(0),this._combined={};this.length=r}},o.prototype.fill=function(r){this._combined={},this._extendedAttrs={};for(var i=0;i<this.length;++i)this.setCell(i,r)},o.prototype.copyFrom=function(r){for(var i in this.length!==r.length?this._data=new Uint32Array(r._data):this._data.set(r._data),this.length=r.length,this._combined={},r._combined)this._combined[i]=r._combined[i];for(var i in this._extendedAttrs={},r._extendedAttrs)this._extendedAttrs[i]=r._extendedAttrs[i];this.isWrapped=r.isWrapped},o.prototype.clone=function(){var r=new o(0);for(var i in r._data=new Uint32Array(this._data),r.length=this.length,this._combined)r._combined[i]=this._combined[i];for(var i in this._extendedAttrs)r._extendedAttrs[i]=this._extendedAttrs[i];return r.isWrapped=this.isWrapped,r},o.prototype.getTrimmedLength=function(){for(var r=this.length-1;r>=0;--r)if(4194303&this._data[3*r+0])return r+(this._data[3*r+0]>>22);return 0},o.prototype.copyCellsFrom=function(r,i,n,e,l){var t=r._data;if(l)for(var a=e-1;a>=0;a--)for(var s=0;s<3;s++)this._data[3*(n+a)+s]=t[3*(i+a)+s];else for(a=0;a<e;a++)for(s=0;s<3;s++)this._data[3*(n+a)+s]=t[3*(i+a)+s];var u=Object.keys(r._combined);for(s=0;s<u.length;s++){var h=parseInt(u[s],10);h>=i&&(this._combined[h-i+n]=r._combined[h])}},o.prototype.translateToString=function(r,i,n){r===void 0&&(r=!1),i===void 0&&(i=0),n===void 0&&(n=this.length),r&&(n=Math.min(n,this.getTrimmedLength()));for(var e="";i<n;){var l=this._data[3*i+0],t=2097151&l;e+=2097152&l?this._combined[i]:t?A.stringFromCodePoint(t):S.WHITESPACE_CELL_CHAR,i+=l>>22||1}return e},o}();x.BufferLine=c},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.removeElementFromParent=void 0,x.removeElementFromParent=function(){for(var A,S=[],g=0;g<arguments.length;g++)S[g]=arguments[g];for(var f=0,c=S;f<c.length;f++){var o=c[f];(A=o==null?void 0:o.parentElement)===null||A===void 0||A.removeChild(o)}}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.tooMuchOutput=x.promptLabel=void 0,x.promptLabel="Terminal input",x.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(T,b){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,_){w.__proto__=_}||function(w,_){for(var I in _)_.hasOwnProperty(I)&&(w[I]=_[I])})(T,b)},function(E,T){function b(){this.constructor=E}A(E,T),E.prototype=T===null?Object.create(T):(b.prototype=T.prototype,new b)});Object.defineProperty(x,"__esModule",{value:!0}),x.InputHandler=x.WindowsOptionsReportType=void 0;var g,f=C(12),c=C(20),o=C(39),r=C(2),i=C(15),n=C(8),e=C(16),l=C(0),t=C(3),a=C(4),s=C(6),u=C(22),h=C(24),p={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function m(E,T){if(E>24)return T.setWinLines||!1;switch(E){case 1:return!!T.restoreWin;case 2:return!!T.minimizeWin;case 3:return!!T.setWinPosition;case 4:return!!T.setWinSizePixels;case 5:return!!T.raiseWin;case 6:return!!T.lowerWin;case 7:return!!T.refreshWin;case 8:return!!T.setWinSizeChars;case 9:return!!T.maximizeWin;case 10:return!!T.fullscreenWin;case 11:return!!T.getWinState;case 13:return!!T.getWinPosition;case 14:return!!T.getWinSizePixels;case 15:return!!T.getScreenSizePixels;case 16:return!!T.getCellSizePixels;case 18:return!!T.getWinSizeChars;case 19:return!!T.getScreenSizeChars;case 20:return!!T.getIconTitle;case 21:return!!T.getWinTitle;case 22:return!!T.pushTitle;case 23:return!!T.popTitle;case 24:return!!T.setWinLines}return!1}!function(E){E[E.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",E[E.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(g=x.WindowsOptionsReportType||(x.WindowsOptionsReportType={}));var v=function(){function E(T,b,w,_){this._bufferService=T,this._coreService=b,this._logService=w,this._optionsService=_,this._data=new Uint32Array(0)}return E.prototype.hook=function(T){this._data=new Uint32Array(0)},E.prototype.put=function(T,b,w){this._data=i.concat(this._data,T.subarray(b,w))},E.prototype.unhook=function(T){if(T){var b=n.utf32ToString(this._data);switch(this._data=new Uint32Array(0),b){case'"q':return this._coreService.triggerDataEvent(f.C0.ESC+'P1$r0"q'+f.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(f.C0.ESC+'P1$r61;1"p'+f.C0.ESC+"\\");case"r":var w=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(f.C0.ESC+"P1$r"+w+f.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(f.C0.ESC+"P1$r0m"+f.C0.ESC+"\\");case" q":var _={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return _-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(f.C0.ESC+"P1$r"+_+" q"+f.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",b),this._coreService.triggerDataEvent(f.C0.ESC+"P0$r"+f.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},E}(),y=function(E){function T(b,w,_,I,L,N,D,R,k){k===void 0&&(k=new o.EscapeSequenceParser);var M=E.call(this)||this;M._bufferService=b,M._charsetService=w,M._coreService=_,M._dirtyRowService=I,M._logService=L,M._optionsService=N,M._coreMouseService=D,M._unicodeService=R,M._parser=k,M._parseBuffer=new Uint32Array(4096),M._stringDecoder=new n.StringToUtf32,M._utf8Decoder=new n.Utf8ToUtf32,M._workCell=new a.CellData,M._windowTitle="",M._iconName="",M._windowTitleStack=[],M._iconNameStack=[],M._curAttrData=e.DEFAULT_ATTR_DATA.clone(),M._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone(),M._onRequestBell=new l.EventEmitter,M._onRequestRefreshRows=new l.EventEmitter,M._onRequestReset=new l.EventEmitter,M._onRequestScroll=new l.EventEmitter,M._onRequestSyncScrollBar=new l.EventEmitter,M._onRequestWindowsOptionsReport=new l.EventEmitter,M._onA11yChar=new l.EventEmitter,M._onA11yTab=new l.EventEmitter,M._onCursorMove=new l.EventEmitter,M._onLineFeed=new l.EventEmitter,M._onScroll=new l.EventEmitter,M._onTitleChange=new l.EventEmitter,M.register(M._parser),M._parser.setCsiHandlerFallback(function(W,V){M._logService.debug("Unknown CSI code: ",{identifier:M._parser.identToString(W),params:V.toArray()})}),M._parser.setEscHandlerFallback(function(W){M._logService.debug("Unknown ESC code: ",{identifier:M._parser.identToString(W)})}),M._parser.setExecuteHandlerFallback(function(W){M._logService.debug("Unknown EXECUTE code: ",{code:W})}),M._parser.setOscHandlerFallback(function(W,V,z){M._logService.debug("Unknown OSC code: ",{identifier:W,action:V,data:z})}),M._parser.setDcsHandlerFallback(function(W,V,z){V==="HOOK"&&(z=z.toArray()),M._logService.debug("Unknown DCS code: ",{identifier:M._parser.identToString(W),action:V,payload:z})}),M._parser.setPrintHandler(function(W,V,z){return M.print(W,V,z)}),M._parser.setCsiHandler({final:"@"},function(W){return M.insertChars(W)}),M._parser.setCsiHandler({intermediates:" ",final:"@"},function(W){return M.scrollLeft(W)}),M._parser.setCsiHandler({final:"A"},function(W){return M.cursorUp(W)}),M._parser.setCsiHandler({intermediates:" ",final:"A"},function(W){return M.scrollRight(W)}),M._parser.setCsiHandler({final:"B"},function(W){return M.cursorDown(W)}),M._parser.setCsiHandler({final:"C"},function(W){return M.cursorForward(W)}),M._parser.setCsiHandler({final:"D"},function(W){return M.cursorBackward(W)}),M._parser.setCsiHandler({final:"E"},function(W){return M.cursorNextLine(W)}),M._parser.setCsiHandler({final:"F"},function(W){return M.cursorPrecedingLine(W)}),M._parser.setCsiHandler({final:"G"},function(W){return M.cursorCharAbsolute(W)}),M._parser.setCsiHandler({final:"H"},function(W){return M.cursorPosition(W)}),M._parser.setCsiHandler({final:"I"},function(W){return M.cursorForwardTab(W)}),M._parser.setCsiHandler({final:"J"},function(W){return M.eraseInDisplay(W)}),M._parser.setCsiHandler({prefix:"?",final:"J"},function(W){return M.eraseInDisplay(W)}),M._parser.setCsiHandler({final:"K"},function(W){return M.eraseInLine(W)}),M._parser.setCsiHandler({prefix:"?",final:"K"},function(W){return M.eraseInLine(W)}),M._parser.setCsiHandler({final:"L"},function(W){return M.insertLines(W)}),M._parser.setCsiHandler({final:"M"},function(W){return M.deleteLines(W)}),M._parser.setCsiHandler({final:"P"},function(W){return M.deleteChars(W)}),M._parser.setCsiHandler({final:"S"},function(W){return M.scrollUp(W)}),M._parser.setCsiHandler({final:"T"},function(W){return M.scrollDown(W)}),M._parser.setCsiHandler({final:"X"},function(W){return M.eraseChars(W)}),M._parser.setCsiHandler({final:"Z"},function(W){return M.cursorBackwardTab(W)}),M._parser.setCsiHandler({final:"`"},function(W){return M.charPosAbsolute(W)}),M._parser.setCsiHandler({final:"a"},function(W){return M.hPositionRelative(W)}),M._parser.setCsiHandler({final:"b"},function(W){return M.repeatPrecedingCharacter(W)}),M._parser.setCsiHandler({final:"c"},function(W){return M.sendDeviceAttributesPrimary(W)}),M._parser.setCsiHandler({prefix:">",final:"c"},function(W){return M.sendDeviceAttributesSecondary(W)}),M._parser.setCsiHandler({final:"d"},function(W){return M.linePosAbsolute(W)}),M._parser.setCsiHandler({final:"e"},function(W){return M.vPositionRelative(W)}),M._parser.setCsiHandler({final:"f"},function(W){return M.hVPosition(W)}),M._parser.setCsiHandler({final:"g"},function(W){return M.tabClear(W)}),M._parser.setCsiHandler({final:"h"},function(W){return M.setMode(W)}),M._parser.setCsiHandler({prefix:"?",final:"h"},function(W){return M.setModePrivate(W)}),M._parser.setCsiHandler({final:"l"},function(W){return M.resetMode(W)}),M._parser.setCsiHandler({prefix:"?",final:"l"},function(W){return M.resetModePrivate(W)}),M._parser.setCsiHandler({final:"m"},function(W){return M.charAttributes(W)}),M._parser.setCsiHandler({final:"n"},function(W){return M.deviceStatus(W)}),M._parser.setCsiHandler({prefix:"?",final:"n"},function(W){return M.deviceStatusPrivate(W)}),M._parser.setCsiHandler({intermediates:"!",final:"p"},function(W){return M.softReset(W)}),M._parser.setCsiHandler({intermediates:" ",final:"q"},function(W){return M.setCursorStyle(W)}),M._parser.setCsiHandler({final:"r"},function(W){return M.setScrollRegion(W)}),M._parser.setCsiHandler({final:"s"},function(W){return M.saveCursor(W)}),M._parser.setCsiHandler({final:"t"},function(W){return M.windowOptions(W)}),M._parser.setCsiHandler({final:"u"},function(W){return M.restoreCursor(W)}),M._parser.setCsiHandler({intermediates:"'",final:"}"},function(W){return M.insertColumns(W)}),M._parser.setCsiHandler({intermediates:"'",final:"~"},function(W){return M.deleteColumns(W)}),M._parser.setExecuteHandler(f.C0.BEL,function(){return M.bell()}),M._parser.setExecuteHandler(f.C0.LF,function(){return M.lineFeed()}),M._parser.setExecuteHandler(f.C0.VT,function(){return M.lineFeed()}),M._parser.setExecuteHandler(f.C0.FF,function(){return M.lineFeed()}),M._parser.setExecuteHandler(f.C0.CR,function(){return M.carriageReturn()}),M._parser.setExecuteHandler(f.C0.BS,function(){return M.backspace()}),M._parser.setExecuteHandler(f.C0.HT,function(){return M.tab()}),M._parser.setExecuteHandler(f.C0.SO,function(){return M.shiftOut()}),M._parser.setExecuteHandler(f.C0.SI,function(){return M.shiftIn()}),M._parser.setExecuteHandler(f.C1.IND,function(){return M.index()}),M._parser.setExecuteHandler(f.C1.NEL,function(){return M.nextLine()}),M._parser.setExecuteHandler(f.C1.HTS,function(){return M.tabSet()}),M._parser.setOscHandler(0,new u.OscHandler(function(W){M.setTitle(W),M.setIconName(W)})),M._parser.setOscHandler(1,new u.OscHandler(function(W){return M.setIconName(W)})),M._parser.setOscHandler(2,new u.OscHandler(function(W){return M.setTitle(W)})),M._parser.setEscHandler({final:"7"},function(){return M.saveCursor()}),M._parser.setEscHandler({final:"8"},function(){return M.restoreCursor()}),M._parser.setEscHandler({final:"D"},function(){return M.index()}),M._parser.setEscHandler({final:"E"},function(){return M.nextLine()}),M._parser.setEscHandler({final:"H"},function(){return M.tabSet()}),M._parser.setEscHandler({final:"M"},function(){return M.reverseIndex()}),M._parser.setEscHandler({final:"="},function(){return M.keypadApplicationMode()}),M._parser.setEscHandler({final:">"},function(){return M.keypadNumericMode()}),M._parser.setEscHandler({final:"c"},function(){return M.fullReset()}),M._parser.setEscHandler({final:"n"},function(){return M.setgLevel(2)}),M._parser.setEscHandler({final:"o"},function(){return M.setgLevel(3)}),M._parser.setEscHandler({final:"|"},function(){return M.setgLevel(3)}),M._parser.setEscHandler({final:"}"},function(){return M.setgLevel(2)}),M._parser.setEscHandler({final:"~"},function(){return M.setgLevel(1)}),M._parser.setEscHandler({intermediates:"%",final:"@"},function(){return M.selectDefaultCharset()}),M._parser.setEscHandler({intermediates:"%",final:"G"},function(){return M.selectDefaultCharset()});var U=function(V){B._parser.setEscHandler({intermediates:"(",final:V},function(){return M.selectCharset("("+V)}),B._parser.setEscHandler({intermediates:")",final:V},function(){return M.selectCharset(")"+V)}),B._parser.setEscHandler({intermediates:"*",final:V},function(){return M.selectCharset("*"+V)}),B._parser.setEscHandler({intermediates:"+",final:V},function(){return M.selectCharset("+"+V)}),B._parser.setEscHandler({intermediates:"-",final:V},function(){return M.selectCharset("-"+V)}),B._parser.setEscHandler({intermediates:".",final:V},function(){return M.selectCharset("."+V)}),B._parser.setEscHandler({intermediates:"/",final:V},function(){return M.selectCharset("/"+V)})},B=this;for(var j in c.CHARSETS)U(j);return M._parser.setEscHandler({intermediates:"#",final:"8"},function(){return M.screenAlignmentPattern()}),M._parser.setErrorHandler(function(W){return M._logService.error("Parsing error: ",W),W}),M._parser.setDcsHandler({intermediates:"$",final:"q"},new v(M._bufferService,M._coreService,M._logService,M._optionsService)),M}return S(T,E),Object.defineProperty(T.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),T.prototype.dispose=function(){E.prototype.dispose.call(this)},T.prototype.parse=function(b){var w=this._bufferService.buffer,_=w.x,I=w.y;if(this._logService.debug("parsing data",b),this._parseBuffer.length<b.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(b.length,131072))),this._dirtyRowService.clearRange(),b.length>131072)for(var L=0;L<b.length;L+=131072){var N=L+131072<b.length?L+131072:b.length,D=typeof b=="string"?this._stringDecoder.decode(b.substring(L,N),this._parseBuffer):this._utf8Decoder.decode(b.subarray(L,N),this._parseBuffer);this._parser.parse(this._parseBuffer,D)}else D=typeof b=="string"?this._stringDecoder.decode(b,this._parseBuffer):this._utf8Decoder.decode(b,this._parseBuffer),this._parser.parse(this._parseBuffer,D);(w=this._bufferService.buffer).x===_&&w.y===I||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},T.prototype.print=function(b,w,_){var I,L,N=this._bufferService.buffer,D=this._charsetService.charset,R=this._optionsService.options.screenReaderMode,k=this._bufferService.cols,M=this._coreService.decPrivateModes.wraparound,U=this._coreService.modes.insertMode,B=this._curAttrData,j=N.lines.get(N.ybase+N.y);this._dirtyRowService.markDirty(N.y),N.x&&_-w>0&&j.getWidth(N.x-1)===2&&j.setCellFromCodePoint(N.x-1,0,1,B.fg,B.bg,B.extended);for(var W=w;W<_;++W){if(I=b[W],L=this._unicodeService.wcwidth(I),I<127&&D){var V=D[String.fromCharCode(I)];V&&(I=V.charCodeAt(0))}if(R&&this._onA11yChar.fire(n.stringFromCodePoint(I)),L||!N.x){if(N.x+L-1>=k){if(M){for(;N.x<k;)j.setCellFromCodePoint(N.x++,0,1,B.fg,B.bg,B.extended);N.x=0,N.y++,N.y===N.scrollBottom+1?(N.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(N.y>=this._bufferService.rows&&(N.y=this._bufferService.rows-1),N.lines.get(N.ybase+N.y).isWrapped=!0),j=N.lines.get(N.ybase+N.y)}else if(N.x=k-1,L===2)continue}if(U&&(j.insertCells(N.x,L,N.getNullCell(B),B),j.getWidth(k-1)===2&&j.setCellFromCodePoint(k-1,t.NULL_CELL_CODE,t.NULL_CELL_WIDTH,B.fg,B.bg,B.extended)),j.setCellFromCodePoint(N.x++,I,L,B.fg,B.bg,B.extended),L>0)for(;--L;)j.setCellFromCodePoint(N.x++,0,0,B.fg,B.bg,B.extended)}else j.getWidth(N.x-1)?j.addCodepointToCell(N.x-1,I):j.addCodepointToCell(N.x-2,I)}_-w>0&&(j.loadCell(N.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),N.x<k&&_-w>0&&j.getWidth(N.x)===0&&!j.hasContent(N.x)&&j.setCellFromCodePoint(N.x,0,1,B.fg,B.bg,B.extended),this._dirtyRowService.markDirty(N.y)},T.prototype.addCsiHandler=function(b,w){var _=this;return b.final!=="t"||b.prefix||b.intermediates?this._parser.addCsiHandler(b,w):this._parser.addCsiHandler(b,function(I){return!m(I.params[0],_._optionsService.options.windowOptions)||w(I)})},T.prototype.addDcsHandler=function(b,w){return this._parser.addDcsHandler(b,new h.DcsHandler(w))},T.prototype.addEscHandler=function(b,w){return this._parser.addEscHandler(b,w)},T.prototype.addOscHandler=function(b,w){return this._parser.addOscHandler(b,new u.OscHandler(w))},T.prototype.bell=function(){this._onRequestBell.fire()},T.prototype.lineFeed=function(){var b=this._bufferService.buffer;this._dirtyRowService.markDirty(b.y),this._optionsService.options.convertEol&&(b.x=0),b.y++,b.y===b.scrollBottom+1?(b.y--,this._onRequestScroll.fire(this._eraseAttrData())):b.y>=this._bufferService.rows&&(b.y=this._bufferService.rows-1),b.x>=this._bufferService.cols&&b.x--,this._dirtyRowService.markDirty(b.y),this._onLineFeed.fire()},T.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},T.prototype.backspace=function(){var b,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&&((b=w.lines.get(w.ybase+w.y))===null||b===void 0?void 0:b.isWrapped)){w.lines.get(w.ybase+w.y).isWrapped=!1,w.y--,w.x=this._bufferService.cols-1;var _=w.lines.get(w.ybase+w.y);_.hasWidth(w.x)&&!_.hasContent(w.x)&&w.x--}this._restrictCursor()},T.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var b=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-b)}},T.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},T.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},T.prototype._restrictCursor=function(b){b===void 0&&(b=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(b,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)},T.prototype._setCursor=function(b,w){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=b,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+w):(this._bufferService.buffer.x=b,this._bufferService.buffer.y=w),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},T.prototype._moveCursor=function(b,w){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+b,this._bufferService.buffer.y+w)},T.prototype.cursorUp=function(b){var w=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;w>=0?this._moveCursor(0,-Math.min(w,b.params[0]||1)):this._moveCursor(0,-(b.params[0]||1))},T.prototype.cursorDown=function(b){var w=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;w>=0?this._moveCursor(0,Math.min(w,b.params[0]||1)):this._moveCursor(0,b.params[0]||1)},T.prototype.cursorForward=function(b){this._moveCursor(b.params[0]||1,0)},T.prototype.cursorBackward=function(b){this._moveCursor(-(b.params[0]||1),0)},T.prototype.cursorNextLine=function(b){this.cursorDown(b),this._bufferService.buffer.x=0},T.prototype.cursorPrecedingLine=function(b){this.cursorUp(b),this._bufferService.buffer.x=0},T.prototype.cursorCharAbsolute=function(b){this._setCursor((b.params[0]||1)-1,this._bufferService.buffer.y)},T.prototype.cursorPosition=function(b){this._setCursor(b.length>=2?(b.params[1]||1)-1:0,(b.params[0]||1)-1)},T.prototype.charPosAbsolute=function(b){this._setCursor((b.params[0]||1)-1,this._bufferService.buffer.y)},T.prototype.hPositionRelative=function(b){this._moveCursor(b.params[0]||1,0)},T.prototype.linePosAbsolute=function(b){this._setCursor(this._bufferService.buffer.x,(b.params[0]||1)-1)},T.prototype.vPositionRelative=function(b){this._moveCursor(0,b.params[0]||1)},T.prototype.hVPosition=function(b){this.cursorPosition(b)},T.prototype.tabClear=function(b){var w=b.params[0];w===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:w===3&&(this._bufferService.buffer.tabs={})},T.prototype.cursorForwardTab=function(b){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var w=b.params[0]||1;w--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},T.prototype.cursorBackwardTab=function(b){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var w=b.params[0]||1,_=this._bufferService.buffer;w--;)_.x=_.prevStop()},T.prototype._eraseInBufferLine=function(b,w,_,I){I===void 0&&(I=!1);var L=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+b);L.replaceCells(w,_,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),I&&(L.isWrapped=!1)},T.prototype._resetBufferLine=function(b){var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+b);w.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),w.isWrapped=!1},T.prototype.eraseInDisplay=function(b){var w;switch(this._restrictCursor(),b.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 _=this._bufferService.buffer.lines.length-this._bufferService.rows;_>0&&(this._bufferService.buffer.lines.trimStart(_),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-_,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-_,0),this._onScroll.fire(0))}},T.prototype.eraseInLine=function(b){switch(this._restrictCursor(),b.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)},T.prototype.insertLines=function(b){this._restrictCursor();var w=b.params[0]||1,_=this._bufferService.buffer;if(!(_.y>_.scrollBottom||_.y<_.scrollTop)){for(var I=_.ybase+_.y,L=this._bufferService.rows-1-_.scrollBottom,N=this._bufferService.rows-1+_.ybase-L+1;w--;)_.lines.splice(N-1,1),_.lines.splice(I,0,_.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(_.y,_.scrollBottom),_.x=0}},T.prototype.deleteLines=function(b){this._restrictCursor();var w=b.params[0]||1,_=this._bufferService.buffer;if(!(_.y>_.scrollBottom||_.y<_.scrollTop)){var I,L=_.ybase+_.y;for(I=this._bufferService.rows-1-_.scrollBottom,I=this._bufferService.rows-1+_.ybase-I;w--;)_.lines.splice(L,1),_.lines.splice(I,0,_.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(_.y,_.scrollBottom),_.x=0}},T.prototype.insertChars=function(b){this._restrictCursor();var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.insertCells(this._bufferService.buffer.x,b.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},T.prototype.deleteChars=function(b){this._restrictCursor();var w=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);w&&(w.deleteCells(this._bufferService.buffer.x,b.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},T.prototype.scrollUp=function(b){for(var w=b.params[0]||1,_=this._bufferService.buffer;w--;)_.lines.splice(_.ybase+_.scrollTop,1),_.lines.splice(_.ybase+_.scrollBottom,0,_.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(_.scrollTop,_.scrollBottom)},T.prototype.scrollDown=function(b){for(var w=b.params[0]||1,_=this._bufferService.buffer;w--;)_.lines.splice(_.ybase+_.scrollBottom,1),_.lines.splice(_.ybase+_.scrollTop,0,_.getBlankLine(e.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(_.scrollTop,_.scrollBottom)},T.prototype.scrollLeft=function(b){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var _=b.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var L=w.lines.get(w.ybase+I);L.deleteCells(0,_,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},T.prototype.scrollRight=function(b){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var _=b.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var L=w.lines.get(w.ybase+I);L.insertCells(0,_,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},T.prototype.insertColumns=function(b){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var _=b.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var L=this._bufferService.buffer.lines.get(w.ybase+I);L.insertCells(w.x,_,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},T.prototype.deleteColumns=function(b){var w=this._bufferService.buffer;if(!(w.y>w.scrollBottom||w.y<w.scrollTop)){for(var _=b.params[0]||1,I=w.scrollTop;I<=w.scrollBottom;++I){var L=w.lines.get(w.ybase+I);L.deleteCells(w.x,_,w.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}},T.prototype.eraseChars=function(b){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+(b.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},T.prototype.repeatPrecedingCharacter=function(b){if(this._parser.precedingCodepoint){for(var w=b.params[0]||1,_=new Uint32Array(w),I=0;I<w;++I)_[I]=this._parser.precedingCodepoint;this.print(_,0,_.length)}},T.prototype.sendDeviceAttributesPrimary=function(b){b.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(f.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(f.C0.ESC+"[?6c"))},T.prototype.sendDeviceAttributesSecondary=function(b){b.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(f.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(f.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(b.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(f.C0.ESC+"[>83;40003;0c"))},T.prototype._is=function(b){return(this._optionsService.options.termName+"").indexOf(b)===0},T.prototype.setMode=function(b){for(var w=0;w<b.length;w++)switch(b.params[w]){case 4:this._coreService.modes.insertMode=!0}},T.prototype.setModePrivate=function(b){for(var w=0;w<b.length;w++)switch(b.params[w]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,c.DEFAULT_CHARSET),this._charsetService.setgCharset(1,c.DEFAULT_CHARSET),this._charsetService.setgCharset(2,c.DEFAULT_CHARSET),this._charsetService.setgCharset(3,c.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}},T.prototype.resetMode=function(b){for(var w=0;w<b.length;w++)switch(b.params[w]){case 4:this._coreService.modes.insertMode=!1}},T.prototype.resetModePrivate=function(b){for(var w=0;w<b.length;w++)switch(b.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(),b.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}},T.prototype._updateAttrColor=function(b,w,_,I,L){return w===2?(b|=50331648,b&=-16777216,b|=s.AttributeData.fromColorRGB([_,I,L])):w===5&&(b&=-50331904,b|=33554432|255&_),b},T.prototype._extractColor=function(b,w,_){var I=[0,0,-1,0,0,0],L=0,N=0;do{if(I[N+L]=b.params[w+N],b.hasSubParams(w+N)){var D=b.getSubParams(w+N),R=0;do I[1]===5&&(L=1),I[N+R+1+L]=D[R];while(++R<D.length&&R+N+1+L<I.length);break}if(I[1]===5&&N+L>=2||I[1]===2&&N+L>=5)break;I[1]&&(L=1)}while(++N+w<b.length&&N+L<I.length);for(R=2;R<I.length;++R)I[R]===-1&&(I[R]=0);switch(I[0]){case 38:_.fg=this._updateAttrColor(_.fg,I[1],I[3],I[4],I[5]);break;case 48:_.bg=this._updateAttrColor(_.bg,I[1],I[3],I[4],I[5]);break;case 58:_.extended=_.extended.clone(),_.extended.underlineColor=this._updateAttrColor(_.extended.underlineColor,I[1],I[3],I[4],I[5])}return N},T.prototype._processUnderline=function(b,w){w.extended=w.extended.clone(),(!~b||b>5)&&(b=1),w.extended.underlineStyle=b,w.fg|=268435456,b===0&&(w.fg&=-268435457),w.updateExtended()},T.prototype.charAttributes=function(b){if(b.length===1&&b.params[0]===0)return this._curAttrData.fg=e.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=e.DEFAULT_ATTR_DATA.bg);for(var w,_=b.length,I=this._curAttrData,L=0;L<_;L++)(w=b.params[L])>=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(b.hasSubParams(L)?b.getSubParams(L)[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?L+=this._extractColor(b,L,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)},T.prototype.deviceStatus=function(b){switch(b.params[0]){case 5:this._coreService.triggerDataEvent(f.C0.ESC+"[0n");break;case 6:var w=this._bufferService.buffer.y+1,_=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(f.C0.ESC+"["+w+";"+_+"R")}},T.prototype.deviceStatusPrivate=function(b){switch(b.params[0]){case 6:var w=this._bufferService.buffer.y+1,_=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(f.C0.ESC+"[?"+w+";"+_+"R")}},T.prototype.softReset=function(b){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},T.prototype.setCursorStyle=function(b){var w=b.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 _=w%2==1;this._optionsService.options.cursorBlink=_},T.prototype.setScrollRegion=function(b){var w,_=b.params[0]||1;(b.length<2||(w=b.params[1])>this._bufferService.rows||w===0)&&(w=this._bufferService.rows),w>_&&(this._bufferService.buffer.scrollTop=_-1,this._bufferService.buffer.scrollBottom=w-1,this._setCursor(0,0))},T.prototype.windowOptions=function(b){if(m(b.params[0],this._optionsService.options.windowOptions)){var w=b.length>1?b.params[1]:0;switch(b.params[0]){case 14:w!==2&&this._onRequestWindowsOptionsReport.fire(g.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(g.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(f.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())}}},T.prototype.saveCursor=function(b){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},T.prototype.restoreCursor=function(b){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()},T.prototype.setTitle=function(b){this._windowTitle=b,this._onTitleChange.fire(b)},T.prototype.setIconName=function(b){this._iconName=b},T.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},T.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},T.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},T.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,c.DEFAULT_CHARSET)},T.prototype.selectCharset=function(b){b.length===2?b[0]!=="/"&&this._charsetService.setgCharset(p[b[0]],c.CHARSETS[b[1]]||c.DEFAULT_CHARSET):this.selectDefaultCharset()},T.prototype.index=function(){this._restrictCursor();var b=this._bufferService.buffer;this._bufferService.buffer.y++,b.y===b.scrollBottom+1?(b.y--,this._onRequestScroll.fire(this._eraseAttrData())):b.y>=this._bufferService.rows&&(b.y=this._bufferService.rows-1),this._restrictCursor()},T.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},T.prototype.reverseIndex=function(){this._restrictCursor();var b=this._bufferService.buffer;if(b.y===b.scrollTop){var w=b.scrollBottom-b.scrollTop;b.lines.shiftElements(b.ybase+b.y,w,1),b.lines.set(b.ybase+b.y,b.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(b.scrollTop,b.scrollBottom)}else b.y--,this._restrictCursor()},T.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},T.prototype.reset=function(){this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone()},T.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},T.prototype.setgLevel=function(b){this._charsetService.setgLevel(b)},T.prototype.screenAlignmentPattern=function(){var b=new a.CellData;b.content=1<<22|"E".charCodeAt(0),b.fg=this._curAttrData.fg,b.bg=this._curAttrData.bg;var w=this._bufferService.buffer;this._setCursor(0,0);for(var _=0;_<this._bufferService.rows;++_){var I=w.ybase+w.y+_,L=w.lines.get(I);L&&(L.fill(b),L.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},T}(r.Disposable);x.InputHandler=y},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.DEFAULT_CHARSET=x.CHARSETS=void 0,x.CHARSETS={},x.DEFAULT_CHARSET=x.CHARSETS.B,x.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"},x.CHARSETS.A={"#":"\xA3"},x.CHARSETS.B=void 0,x.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},x.CHARSETS.C=x.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},x.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},x.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},x.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},x.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},x.CHARSETS.E=x.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},x.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},x.CHARSETS.H=x.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},x.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.Params=void 0;var A=function(){function S(g,f){if(g===void 0&&(g=32),f===void 0&&(f=32),this.maxLength=g,this.maxSubParamsLength=f,f>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(g),this.length=0,this._subParams=new Int32Array(f),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(g),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return S.fromArray=function(g){var f=new S;if(!g.length)return f;for(var c=g[0]instanceof Array?1:0;c<g.length;++c){var o=g[c];if(o instanceof Array)for(var r=0;r<o.length;++r)f.addSubParam(o[r]);else f.addParam(o)}return f},S.prototype.clone=function(){var g=new S(this.maxLength,this.maxSubParamsLength);return g.params.set(this.params),g.length=this.length,g._subParams.set(this._subParams),g._subParamsLength=this._subParamsLength,g._subParamsIdx.set(this._subParamsIdx),g._rejectDigits=this._rejectDigits,g._rejectSubDigits=this._rejectSubDigits,g._digitIsSub=this._digitIsSub,g},S.prototype.toArray=function(){for(var g=[],f=0;f<this.length;++f){g.push(this.params[f]);var c=this._subParamsIdx[f]>>8,o=255&this._subParamsIdx[f];o-c>0&&g.push(Array.prototype.slice.call(this._subParams,c,o))}return g},S.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},S.prototype.addParam=function(g){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(g<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=g>2147483647?2147483647:g}},S.prototype.addSubParam=function(g){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(g<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=g>2147483647?2147483647:g,this._subParamsIdx[this.length-1]++}},S.prototype.hasSubParams=function(g){return(255&this._subParamsIdx[g])-(this._subParamsIdx[g]>>8)>0},S.prototype.getSubParams=function(g){var f=this._subParamsIdx[g]>>8,c=255&this._subParamsIdx[g];return c-f>0?this._subParams.subarray(f,c):null},S.prototype.getSubParamsAll=function(){for(var g={},f=0;f<this.length;++f){var c=this._subParamsIdx[f]>>8,o=255&this._subParamsIdx[f];o-c>0&&(g[f]=this._subParams.slice(c,o))}return g},S.prototype.addDigit=function(g){var f;if(!(this._rejectDigits||!(f=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var c=this._digitIsSub?this._subParams:this.params,o=c[f-1];c[f-1]=~o?Math.min(10*o+g,2147483647):g}},S}();x.Params=A},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.OscHandler=x.OscParser=void 0;var A=C(23),S=C(8),g=function(){function c(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return c.prototype.addHandler=function(o,r){this._handlers[o]===void 0&&(this._handlers[o]=[]);var i=this._handlers[o];return i.push(r),{dispose:function(){var e=i.indexOf(r);e!==-1&&i.splice(e,1)}}},c.prototype.setHandler=function(o,r){this._handlers[o]=[r]},c.prototype.clearHandler=function(o){this._handlers[o]&&delete this._handlers[o]},c.prototype.setHandlerFallback=function(o){this._handlerFb=o},c.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},c.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},c.prototype._start=function(){var o=this._handlers[this._id];if(o)for(var r=o.length-1;r>=0;r--)o[r].start();else this._handlerFb(this._id,"START")},c.prototype._put=function(o,r,i){var n=this._handlers[this._id];if(n)for(var e=n.length-1;e>=0;e--)n[e].put(o,r,i);else this._handlerFb(this._id,"PUT",S.utf32ToString(o,r,i))},c.prototype._end=function(o){var r=this._handlers[this._id];if(r){for(var i=r.length-1;i>=0&&r[i].end(o)===!1;i--);for(i--;i>=0;i--)r[i].end(!1)}else this._handlerFb(this._id,"END",o)},c.prototype.start=function(){this.reset(),this._id=-1,this._state=1},c.prototype.put=function(o,r,i){if(this._state!==3){if(this._state===1)for(;r<i;){var n=o[r++];if(n===59){this._state=2,this._start();break}if(n<48||57<n)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+n-48}this._state===2&&i-r>0&&this._put(o,r,i)}},c.prototype.end=function(o){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(o)),this._id=-1,this._state=0)},c}();x.OscParser=g;var f=function(){function c(o){this._handler=o,this._data="",this._hitLimit=!1}return c.prototype.start=function(){this._data="",this._hitLimit=!1},c.prototype.put=function(o,r,i){this._hitLimit||(this._data+=S.utf32ToString(o,r,i),this._data.length>A.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},c.prototype.end=function(o){var r;return this._hitLimit?r=!1:o&&(r=this._handler(this._data)),this._data="",this._hitLimit=!1,r},c}();x.OscHandler=f},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.PAYLOAD_LIMIT=void 0,x.PAYLOAD_LIMIT=1e7},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.DcsHandler=x.DcsParser=void 0;var A=C(8),S=C(21),g=C(23),f=[],c=function(){function r(){this._handlers=Object.create(null),this._active=f,this._ident=0,this._handlerFb=function(){}}return r.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},r.prototype.addHandler=function(i,n){this._handlers[i]===void 0&&(this._handlers[i]=[]);var e=this._handlers[i];return e.push(n),{dispose:function(){var t=e.indexOf(n);t!==-1&&e.splice(t,1)}}},r.prototype.setHandler=function(i,n){this._handlers[i]=[n]},r.prototype.clearHandler=function(i){this._handlers[i]&&delete this._handlers[i]},r.prototype.setHandlerFallback=function(i){this._handlerFb=i},r.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=f,this._ident=0},r.prototype.hook=function(i,n){if(this.reset(),this._ident=i,this._active=this._handlers[i]||f,this._active.length)for(var e=this._active.length-1;e>=0;e--)this._active[e].hook(n);else this._handlerFb(this._ident,"HOOK",n)},r.prototype.put=function(i,n,e){if(this._active.length)for(var l=this._active.length-1;l>=0;l--)this._active[l].put(i,n,e);else this._handlerFb(this._ident,"PUT",A.utf32ToString(i,n,e))},r.prototype.unhook=function(i){if(this._active.length){for(var n=this._active.length-1;n>=0&&this._active[n].unhook(i)===!1;n--);for(n--;n>=0;n--)this._active[n].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",i);this._active=f,this._ident=0},r}();x.DcsParser=c;var o=function(){function r(i){this._handler=i,this._data="",this._hitLimit=!1}return r.prototype.hook=function(i){this._params=i.clone(),this._data="",this._hitLimit=!1},r.prototype.put=function(i,n,e){this._hitLimit||(this._data+=A.utf32ToString(i,n,e),this._data.length>g.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},r.prototype.unhook=function(i){var n;return this._hitLimit?n=!1:i&&(n=this._handler(this._data,this._params||new S.Params)),this._params=void 0,this._data="",this._hitLimit=!1,n},r}();x.DcsHandler=o},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.removeTerminalFromCache=x.acquireCharAtlas=void 0;var A=C(26),S=C(43),g=[];x.acquireCharAtlas=function(f,c,o,r,i){for(var n=A.generateConfig(r,i,f,o),e=0;e<g.length;e++){var l=(t=g[e]).ownedBy.indexOf(c);if(l>=0){if(A.configEquals(t.config,n))return t.atlas;t.ownedBy.length===1?(t.atlas.dispose(),g.splice(e,1)):t.ownedBy.splice(l,1);break}}for(e=0;e<g.length;e++){var t=g[e];if(A.configEquals(t.config,n))return t.ownedBy.push(c),t.atlas}var a={atlas:new S.DynamicCharAtlas(document,n),config:n,ownedBy:[c]};return g.push(a),a.atlas},x.removeTerminalFromCache=function(f){for(var c=0;c<g.length;c++){var o=g[c].ownedBy.indexOf(f);if(o!==-1){g[c].ownedBy.length===1?(g[c].atlas.dispose(),g.splice(c,1)):g[c].ownedBy.splice(o,1);break}}}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.is256Color=x.configEquals=x.generateConfig=void 0;var A=C(3);x.generateConfig=function(S,g,f,c){var o={foreground:c.foreground,background:c.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:c.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:S,scaledCharHeight:g,fontFamily:f.fontFamily,fontSize:f.fontSize,fontWeight:f.fontWeight,fontWeightBold:f.fontWeightBold,allowTransparency:f.allowTransparency,colors:o}},x.configEquals=function(S,g){for(var f=0;f<S.colors.ansi.length;f++)if(S.colors.ansi[f].rgba!==g.colors.ansi[f].rgba)return!1;return S.devicePixelRatio===g.devicePixelRatio&&S.fontFamily===g.fontFamily&&S.fontSize===g.fontSize&&S.fontWeight===g.fontWeight&&S.fontWeightBold===g.fontWeightBold&&S.allowTransparency===g.allowTransparency&&S.scaledCharWidth===g.scaledCharWidth&&S.scaledCharHeight===g.scaledCharHeight&&S.colors.foreground===g.colors.foreground&&S.colors.background===g.colors.background},x.is256Color=function(S){return S<A.DEFAULT_COLOR}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.ColorManager=x.DEFAULT_ANSI_COLORS=void 0;var A=C(10),S=C(45),g=A.css.toColor("#ffffff"),f=A.css.toColor("#000000"),c=A.css.toColor("#ffffff"),o=A.css.toColor("#000000"),r={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};x.DEFAULT_ANSI_COLORS=function(){for(var n=[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 t=e[l/36%6|0],a=e[l/6%6|0],s=e[l%6];n.push({css:A.channels.toCss(t,a,s),rgba:A.channels.toRgba(t,a,s)})}for(l=0;l<24;l++){var u=8+10*l;n.push({css:A.channels.toCss(u,u,u),rgba:A.channels.toRgba(u,u,u)})}return n}();var i=function(){function n(e,l){this.allowTransparency=l;var t=e.createElement("canvas");t.width=1,t.height=1;var a=t.getContext("2d");if(!a)throw new Error("Could not get rendering context");this._ctx=a,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new S.ColorContrastCache,this.colors={foreground:g,background:f,cursor:c,cursorAccent:o,selectionTransparent:r,selectionOpaque:A.color.blend(f,r),ansi:x.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return n.prototype.onOptionsChange=function(e){e==="minimumContrastRatio"&&this._contrastCache.clear()},n.prototype.setTheme=function(e){(e===void 0&&(e={}),this.colors.foreground=this._parseColor(e.foreground,g),this.colors.background=this._parseColor(e.background,f),this.colors.cursor=this._parseColor(e.cursor,c,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,o,!0),this.colors.selectionTransparent=this._parseColor(e.selection,r,!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,x.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,x.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,x.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,x.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,x.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,x.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,x.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,x.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,x.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,x.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,x.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,x.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,x.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,x.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,x.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,x.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},n.prototype._parseColor=function(e,l,t){if(t===void 0&&(t=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 a=this._ctx.getImageData(0,0,1,1).data;if(a[3]!==255){if(!t)return console.warn("Color: "+e+" is using transparency, but allowTransparency is false. Using fallback "+l.css+"."),l;var s=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(y){return Number(y)}),u=s[0],h=s[1],p=s[2],m=s[3],v=Math.round(255*m);return{rgba:A.channels.toRgba(u,h,p,v),css:e}}return{css:this._ctx.fillStyle,rgba:A.channels.toRgba(a[0],a[1],a[2],a[3])}},n}();x.ColorManager=i},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.throwIfFalsy=void 0,x.throwIfFalsy=function(A){if(!A)throw new Error("value must not be falsy");return A}},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(n,e){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,t){l.__proto__=t}||function(l,t){for(var a in t)t.hasOwnProperty(a)&&(l[a]=t[a])})(n,e)},function(i,n){function e(){this.constructor=i}A(i,n),i.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(x,"__esModule",{value:!0}),x.CharacterJoinerRegistry=x.JoinedCellData=void 0;var g=C(6),f=C(3),c=C(4),o=function(i){function n(e,l,t){var a=i.call(this)||this;return a.content=0,a.combinedData="",a.fg=e.fg,a.bg=e.bg,a.combinedData=l,a._width=t,a}return S(n,i),n.prototype.isCombined=function(){return 2097152},n.prototype.getWidth=function(){return this._width},n.prototype.getChars=function(){return this.combinedData},n.prototype.getCode=function(){return 2097151},n.prototype.setFromCharData=function(e){throw new Error("not implemented")},n.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},n}(g.AttributeData);x.JoinedCellData=o;var r=function(){function i(n){this._bufferService=n,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new c.CellData}return i.prototype.registerCharacterJoiner=function(n){var e={id:this._nextCharacterJoinerId++,handler:n};return this._characterJoiners.push(e),e.id},i.prototype.deregisterCharacterJoiner=function(n){for(var e=0;e<this._characterJoiners.length;e++)if(this._characterJoiners[e].id===n)return this._characterJoiners.splice(e,1),!0;return!1},i.prototype.getJoinedCharacters=function(n){if(this._characterJoiners.length===0)return[];var e=this._bufferService.buffer.lines.get(n);if(!e||e.length===0)return[];for(var l=[],t=e.translateToString(!0),a=0,s=0,u=0,h=e.getFg(0),p=e.getBg(0),m=0;m<e.getTrimmedLength();m++)if(e.loadCell(m,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==h||this._workCell.bg!==p){if(m-a>1)for(var v=this._getJoinedRanges(t,u,s,e,a),y=0;y<v.length;y++)l.push(v[y]);a=m,u=s,h=this._workCell.fg,p=this._workCell.bg}s+=this._workCell.getChars().length||f.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-a>1)for(v=this._getJoinedRanges(t,u,s,e,a),y=0;y<v.length;y++)l.push(v[y]);return l},i.prototype._getJoinedRanges=function(n,e,l,t,a){for(var s=n.substring(e,l),u=this._characterJoiners[0].handler(s),h=1;h<this._characterJoiners.length;h++)for(var p=this._characterJoiners[h].handler(s),m=0;m<p.length;m++)i._mergeRanges(u,p[m]);return this._stringRangesToCellRanges(u,t,a),u},i.prototype._stringRangesToCellRanges=function(n,e,l){var t=0,a=!1,s=0,u=n[t];if(u){for(var h=l;h<this._bufferService.cols;h++){var p=e.getWidth(h),m=e.getString(h).length||f.WHITESPACE_CELL_CHAR.length;if(p!==0){if(!a&&u[0]<=s&&(u[0]=h,a=!0),u[1]<=s){if(u[1]=h,!(u=n[++t]))break;u[0]<=s?(u[0]=h,a=!0):a=!1}s+=m}}u&&(u[1]=this._bufferService.cols)}},i._mergeRanges=function(n,e){for(var l=!1,t=0;t<n.length;t++){var a=n[t];if(l){if(e[1]<=a[0])return n[t-1][1]=e[1],n;if(e[1]<=a[1])return n[t-1][1]=Math.max(e[1],a[1]),n.splice(t,1),n;n.splice(t,1),t--}else{if(e[1]<=a[0])return n.splice(t,0,e),n;if(e[1]<=a[1])return a[0]=Math.min(e[0],a[0]),n;e[0]<a[1]&&(a[0]=Math.min(e[0],a[0]),l=!0)}}return l?n[n.length-1][1]=e[1]:n.push(e),n},i}();x.CharacterJoinerRegistry=r},function(O,x,C){"use strict";function A(S,g){var f=g.getBoundingClientRect();return[S.clientX-f.left,S.clientY-f.top]}Object.defineProperty(x,"__esModule",{value:!0}),x.getRawByteCoords=x.getCoords=x.getCoordsRelativeToElement=void 0,x.getCoordsRelativeToElement=A,x.getCoords=function(S,g,f,c,o,r,i,n){if(o){var e=A(S,g);if(e)return e[0]=Math.ceil((e[0]+(n?r/2:0))/r),e[1]=Math.ceil(e[1]/i),e[0]=Math.min(Math.max(e[0],1),f+(n?1:0)),e[1]=Math.min(Math.max(e[1],1),c),e}},x.getRawByteCoords=function(S){if(S)return{x:S[0]+32,y:S[1]+32}}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.RenderDebouncer=void 0;var A=function(){function S(g){this._renderCallback=g}return S.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},S.prototype.refresh=function(g,f,c){var o=this;this._rowCount=c,g=g!==void 0?g:0,f=f!==void 0?f:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,g):g,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,f):f,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return o._innerRefresh()}))},S.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var g=Math.max(this._rowStart,0),f=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(g,f)}},S}();x.RenderDebouncer=A},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(c,o){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)i.hasOwnProperty(n)&&(r[n]=i[n])})(c,o)},function(f,c){function o(){this.constructor=f}A(f,c),f.prototype=c===null?Object.create(c):(o.prototype=c.prototype,new o)});Object.defineProperty(x,"__esModule",{value:!0}),x.ScreenDprMonitor=void 0;var g=function(f){function c(){var o=f!==null&&f.apply(this,arguments)||this;return o._currentDevicePixelRatio=window.devicePixelRatio,o}return S(c,f),c.prototype.setListener=function(o){var r=this;this._listener&&this.clearListener(),this._listener=o,this._outerListener=function(){r._listener&&(r._listener(window.devicePixelRatio,r._currentDevicePixelRatio),r._updateDpr())},this._updateDpr()},c.prototype.dispose=function(){f.prototype.dispose.call(this),this.clearListener()},c.prototype._updateDpr=function(){var o;this._outerListener&&((o=this._resolutionMediaMatchList)===null||o===void 0||o.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},c.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)},c}(C(2).Disposable);x.ScreenDprMonitor=g},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.clone=void 0,x.clone=function A(S,g){if(g===void 0&&(g=5),typeof S!="object")return S;var f=Array.isArray(S)?[]:{};for(var c in S)f[c]=g<=1?S[c]:S[c]?A(S[c],g-1):S[c];return f}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.Terminal=void 0;var A=C(4),S=C(35),g=C(18),f=C(0),c=C(83),o=function(){function t(a){this._core=new S.Terminal(a),this._addonManager=new c.AddonManager}return t.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(t.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new e(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unicode",{get:function(){return this._checkProposedApi(),new l(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffer",{get:function(){return this._checkProposedApi(),new i(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),t.prototype.blur=function(){this._core.blur()},t.prototype.focus=function(){this._core.focus()},t.prototype.resize=function(a,s){this._verifyIntegers(a,s),this._core.resize(a,s)},t.prototype.open=function(a){this._core.open(a)},t.prototype.attachCustomKeyEventHandler=function(a){this._core.attachCustomKeyEventHandler(a)},t.prototype.registerLinkMatcher=function(a,s,u){return this._checkProposedApi(),this._core.registerLinkMatcher(a,s,u)},t.prototype.deregisterLinkMatcher=function(a){this._checkProposedApi(),this._core.deregisterLinkMatcher(a)},t.prototype.registerLinkProvider=function(a){return this._checkProposedApi(),this._core.registerLinkProvider(a)},t.prototype.registerCharacterJoiner=function(a){return this._checkProposedApi(),this._core.registerCharacterJoiner(a)},t.prototype.deregisterCharacterJoiner=function(a){this._checkProposedApi(),this._core.deregisterCharacterJoiner(a)},t.prototype.registerMarker=function(a){return this._checkProposedApi(),this._verifyIntegers(a),this._core.addMarker(a)},t.prototype.addMarker=function(a){return this.registerMarker(a)},t.prototype.hasSelection=function(){return this._core.hasSelection()},t.prototype.select=function(a,s,u){this._verifyIntegers(a,s,u),this._core.select(a,s,u)},t.prototype.getSelection=function(){return this._core.getSelection()},t.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},t.prototype.clearSelection=function(){this._core.clearSelection()},t.prototype.selectAll=function(){this._core.selectAll()},t.prototype.selectLines=function(a,s){this._verifyIntegers(a,s),this._core.selectLines(a,s)},t.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},t.prototype.scrollLines=function(a){this._verifyIntegers(a),this._core.scrollLines(a)},t.prototype.scrollPages=function(a){this._verifyIntegers(a),this._core.scrollPages(a)},t.prototype.scrollToTop=function(){this._core.scrollToTop()},t.prototype.scrollToBottom=function(){this._core.scrollToBottom()},t.prototype.scrollToLine=function(a){this._verifyIntegers(a),this._core.scrollToLine(a)},t.prototype.clear=function(){this._core.clear()},t.prototype.write=function(a,s){this._core.write(a,s)},t.prototype.writeUtf8=function(a,s){this._core.write(a,s)},t.prototype.writeln=function(a,s){this._core.write(a),this._core.write(`\r
|
|
|
`,s)},t.prototype.paste=function(a){this._core.paste(a)},t.prototype.getOption=function(a){return this._core.optionsService.getOption(a)},t.prototype.setOption=function(a,s){this._core.optionsService.setOption(a,s)},t.prototype.refresh=function(a,s){this._verifyIntegers(a,s),this._core.refresh(a,s)},t.prototype.reset=function(){this._core.reset()},t.prototype.loadAddon=function(a){return this._addonManager.loadAddon(this,a)},Object.defineProperty(t,"strings",{get:function(){return g},enumerable:!1,configurable:!0}),t.prototype._verifyIntegers=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];for(var u=0,h=a;u<h.length;u++){var p=h[u];if(p===1/0||isNaN(p)||p%1!=0)throw new Error("This API only accepts integers")}},t}();x.Terminal=o;var r=function(){function t(a,s){this._buffer=a,this.type=s}return t.prototype.init=function(a){return this._buffer=a,this},Object.defineProperty(t.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),t.prototype.getLine=function(a){var s=this._buffer.lines.get(a);if(s)return new n(s)},t.prototype.getNullCell=function(){return new A.CellData},t}(),i=function(){function t(a){var s=this;this._buffers=a,this._onBufferChange=new f.EventEmitter,this._normal=new r(this._buffers.normal,"normal"),this._alternate=new r(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return s._onBufferChange.fire(s.active)})}return Object.defineProperty(t.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(t.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(t.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),t}(),n=function(){function t(a){this._line=a}return Object.defineProperty(t.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),t.prototype.getCell=function(a,s){if(!(a<0||a>=this._line.length))return s?(this._line.loadCell(a,s),s):this._line.loadCell(a,new A.CellData)},t.prototype.translateToString=function(a,s,u){return this._line.translateToString(a,s,u)},t}(),e=function(){function t(a){this._core=a}return t.prototype.registerCsiHandler=function(a,s){return this._core.addCsiHandler(a,function(u){return s(u.toArray())})},t.prototype.addCsiHandler=function(a,s){return this.registerCsiHandler(a,s)},t.prototype.registerDcsHandler=function(a,s){return this._core.addDcsHandler(a,function(u,h){return s(u,h.toArray())})},t.prototype.addDcsHandler=function(a,s){return this.registerDcsHandler(a,s)},t.prototype.registerEscHandler=function(a,s){return this._core.addEscHandler(a,s)},t.prototype.addEscHandler=function(a,s){return this.registerEscHandler(a,s)},t.prototype.registerOscHandler=function(a,s){return this._core.addOscHandler(a,s)},t.prototype.addOscHandler=function(a,s){return this.registerOscHandler(a,s)},t}(),l=function(){function t(a){this._core=a}return t.prototype.register=function(a){this._core.unicodeService.register(a)},Object.defineProperty(t.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(s){this._core.unicodeService.activeVersion=s},enumerable:!1,configurable:!0}),t}()},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(M,U){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,j){B.__proto__=j}||function(B,j){for(var W in j)j.hasOwnProperty(W)&&(B[W]=j[W])})(M,U)},function(k,M){function U(){this.constructor=k}A(k,M),k.prototype=M===null?Object.create(M):(U.prototype=M.prototype,new U)});Object.defineProperty(x,"__esModule",{value:!0}),x.Terminal=void 0;var g=C(36),f=C(37),c=C(38),o=C(12),r=C(19),i=C(40),n=C(50),e=C(51),l=C(11),t=C(7),a=C(18),s=C(54),u=C(55),h=C(56),p=C(57),m=C(59),v=C(0),y=C(16),E=C(27),T=C(60),b=C(5),w=C(61),_=C(62),I=C(63),L=C(64),N=C(65),D=typeof window!="undefined"?window.document:null,R=function(k){function M(U){U===void 0&&(U={});var B=k.call(this,U)||this;return B.browser=l,B._keyDownHandled=!1,B._onCursorMove=new v.EventEmitter,B._onKey=new v.EventEmitter,B._onRender=new v.EventEmitter,B._onSelectionChange=new v.EventEmitter,B._onTitleChange=new v.EventEmitter,B._onFocus=new v.EventEmitter,B._onBlur=new v.EventEmitter,B._onA11yCharEmitter=new v.EventEmitter,B._onA11yTabEmitter=new v.EventEmitter,B._setup(),B.linkifier=B._instantiationService.createInstance(n.Linkifier),B.linkifier2=B.register(B._instantiationService.createInstance(I.Linkifier2)),B.register(B._inputHandler.onRequestBell(function(){return B.bell()})),B.register(B._inputHandler.onRequestRefreshRows(function(j,W){return B.refresh(j,W)})),B.register(B._inputHandler.onRequestReset(function(){return B.reset()})),B.register(B._inputHandler.onRequestScroll(function(j,W){return B.scroll(j,W||void 0)})),B.register(B._inputHandler.onRequestWindowsOptionsReport(function(j){return B._reportWindowsOptions(j)})),B.register(v.forwardEvent(B._inputHandler.onCursorMove,B._onCursorMove)),B.register(v.forwardEvent(B._inputHandler.onTitleChange,B._onTitleChange)),B.register(v.forwardEvent(B._inputHandler.onA11yChar,B._onA11yCharEmitter)),B.register(v.forwardEvent(B._inputHandler.onA11yTab,B._onA11yTabEmitter)),B.register(B._bufferService.onResize(function(j){return B._afterResize(j.cols,j.rows)})),B}return S(M,k),Object.defineProperty(M.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),M.prototype.dispose=function(){var U,B,j;this._isDisposed||(k.prototype.dispose.call(this),(U=this._renderService)===null||U===void 0||U.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(j=(B=this.element)===null||B===void 0?void 0:B.parentNode)===null||j===void 0||j.removeChild(this.element))},M.prototype._setup=function(){k.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(M.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),M.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},M.prototype._updateOptions=function(U){var B,j,W,V;switch(k.prototype._updateOptions.call(this,U),U){case"fontFamily":case"fontSize":(B=this._renderService)===null||B===void 0||B.clear(),(j=this._charSizeService)===null||j===void 0||j.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(W=this.viewport)===null||W===void 0||W.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new h.AccessibilityManager(this,this._renderService)):((V=this._accessibilityManager)===null||V===void 0||V.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},M.prototype._onTextAreaFocus=function(U){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(o.C0.ESC+"[I"),this.updateCursorStyle(U),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},M.prototype.blur=function(){var U;return(U=this.textarea)===null||U===void 0?void 0:U.blur()},M.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(o.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},M.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var U=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),B=this._bufferService.buffer.y*U,j=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=j+"px",this.textarea.style.top=B+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=U+"px",this.textarea.style.lineHeight=U+"px",this.textarea.style.zIndex="-5"}},M.prototype._initGlobal=function(){var U=this;this._bindKeys(),this.register(t.addDisposableDomListener(this.element,"copy",function(j){U.hasSelection()&&c.copyHandler(j,U._selectionService)}));var B=function(W){return c.handlePasteEvent(W,U.textarea,U._coreService)};this.register(t.addDisposableDomListener(this.textarea,"paste",B)),this.register(t.addDisposableDomListener(this.element,"paste",B)),l.isFirefox?this.register(t.addDisposableDomListener(this.element,"mousedown",function(j){j.button===2&&c.rightClickHandler(j,U.textarea,U.screenElement,U._selectionService,U.options.rightClickSelectsWord)})):this.register(t.addDisposableDomListener(this.element,"contextmenu",function(j){c.rightClickHandler(j,U.textarea,U.screenElement,U._selectionService,U.options.rightClickSelectsWord)})),l.isLinux&&this.register(t.addDisposableDomListener(this.element,"auxclick",function(j){j.button===1&&c.moveTextAreaUnderMouseCursor(j,U.textarea,U.screenElement)}))},M.prototype._bindKeys=function(){var U=this;this.register(t.addDisposableDomListener(this.textarea,"keyup",function(B){return U._keyUp(B)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keydown",function(B){return U._keyDown(B)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keypress",function(B){return U._keyPress(B)},!0)),this.register(t.addDisposableDomListener(this.textarea,"compositionstart",function(){return U._compositionHelper.compositionstart()})),this.register(t.addDisposableDomListener(this.textarea,"compositionupdate",function(B){return U._compositionHelper.compositionupdate(B)})),this.register(t.addDisposableDomListener(this.textarea,"compositionend",function(){return U._compositionHelper.compositionend()})),this.register(this.onRender(function(){return U._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(B){return U._queueLinkification(B.start,B.end)}))},M.prototype.open=function(U){var B=this;if(!U)throw new Error("Terminal requires a parent element.");D.body.contains(U)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=U.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),U.appendChild(this.element);var j=D.createDocumentFragment();this._viewportElement=D.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),j.appendChild(this._viewportElement),this._viewportScrollArea=D.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=D.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=D.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),j.appendChild(this.screenElement),this.textarea=D.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",a.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(t.addDisposableDomListener(this.textarea,"focus",function(z){return B._onTextAreaFocus(z)})),this.register(t.addDisposableDomListener(this.textarea,"blur",function(){return B._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var W=this._instantiationService.createInstance(L.CoreBrowserService,this.textarea);this._instantiationService.setService(b.ICoreBrowserService,W),this._charSizeService=this._instantiationService.createInstance(w.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(b.ICharSizeService,this._charSizeService),this._compositionView=D.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(g.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(j),this._theme=this.options.theme||this._theme,this._colorManager=new E.ColorManager(D,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(z){return B._colorManager.onOptionsChange(z)})),this._colorManager.setTheme(this._theme);var V=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(T.RenderService,V,this.rows,this.screenElement)),this._instantiationService.setService(b.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(z){return B._onRender.fire(z)})),this.onResize(function(z){return B._renderService.resize(z.cols,z.rows)}),this._soundService=this._instantiationService.createInstance(s.SoundService),this._instantiationService.setService(b.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(_.MouseService),this._instantiationService.setService(b.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(f.Viewport,function(z,J){return B.scrollLines(z,J)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return B.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){B._renderService.onCursorMove(),B._syncTextArea()})),this.register(this.onResize(function(){return B._renderService.onResize(B.cols,B.rows)})),this.register(this.onBlur(function(){return B._renderService.onBlur()})),this.register(this.onFocus(function(){return B._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return B.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(e.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(b.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(z){return B.scrollLines(z.amount,z.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return B._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(z){return B._renderService.onSelectionChanged(z.start,z.end,z.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(z){B.textarea.value=z,B.textarea.focus(),B.textarea.select()})),this.register(this.onScroll(function(){B.viewport.syncScrollArea(),B._selectionService.refresh()})),this.register(t.addDisposableDomListener(this._viewportElement,"scroll",function(){return B._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(u.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return B._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(t.addDisposableDomListener(this.element,"mousedown",function(z){return B._selectionService.onMouseDown(z)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new h.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},M.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(i.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(p.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},M.prototype._setTheme=function(U){var B,j,W;this._theme=U,(B=this._colorManager)===null||B===void 0||B.setTheme(U),(j=this._renderService)===null||j===void 0||j.setColors(this._colorManager.colors),(W=this.viewport)===null||W===void 0||W.onThemeChange(this._colorManager.colors)},M.prototype.bindMouse=function(){var U=this,B=this,j=this.element;function W(ie){var ve,xe,_e=B._mouseService.getRawByteCoords(ie,B.screenElement,B.cols,B.rows);if(!_e)return!1;switch(ie.overrideType||ie.type){case"mousemove":xe=32,ie.buttons===void 0?(ve=3,ie.button!==void 0&&(ve=ie.button<3?ie.button:3)):ve=1&ie.buttons?0:4&ie.buttons?1:2&ie.buttons?2:3;break;case"mouseup":xe=0,ve=ie.button<3?ie.button:3;break;case"mousedown":xe=1,ve=ie.button<3?ie.button:3;break;case"wheel":ie.deltaY!==0&&(xe=ie.deltaY<0?0:1),ve=4;break;default:return!1}return!(xe===void 0||ve===void 0||ve>4)&&B._coreMouseService.triggerMouseEvent({col:_e.x-33,row:_e.y-33,button:ve,action:xe,ctrl:ie.ctrlKey,alt:ie.altKey,shift:ie.shiftKey})}var V={mouseup:null,wheel:null,mousedrag:null,mousemove:null},z=function(ve){return W(ve),ve.buttons||(U._document.removeEventListener("mouseup",V.mouseup),V.mousedrag&&U._document.removeEventListener("mousemove",V.mousedrag)),U.cancel(ve)},J=function(ve){return W(ve),ve.preventDefault(),U.cancel(ve)},Z=function(ve){ve.buttons&&W(ve)},de=function(ve){ve.buttons||W(ve)};this.register(this._coreMouseService.onProtocolChange(function(ie){ie?(U.optionsService.options.logLevel==="debug"&&U._logService.debug("Binding to mouse events:",U._coreMouseService.explainEvents(ie)),U.element.classList.add("enable-mouse-events"),U._selectionService.disable()):(U._logService.debug("Unbinding from mouse events."),U.element.classList.remove("enable-mouse-events"),U._selectionService.enable()),8&ie?V.mousemove||(j.addEventListener("mousemove",de),V.mousemove=de):(j.removeEventListener("mousemove",V.mousemove),V.mousemove=null),16&ie?V.wheel||(j.addEventListener("wheel",J,{passive:!1}),V.wheel=J):(j.removeEventListener("wheel",V.wheel),V.wheel=null),2&ie?V.mouseup||(V.mouseup=z):(U._document.removeEventListener("mouseup",V.mouseup),V.mouseup=null),4&ie?V.mousedrag||(V.mousedrag=Z):(U._document.removeEventListener("mousemove",V.mousedrag),V.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(t.addDisposableDomListener(j,"mousedown",function(ie){if(ie.preventDefault(),U.focus(),U._coreMouseService.areMouseEventsActive&&!U._selectionService.shouldForceSelection(ie))return W(ie),V.mouseup&&U._document.addEventListener("mouseup",V.mouseup),V.mousedrag&&U._document.addEventListener("mousemove",V.mousedrag),U.cancel(ie)})),this.register(t.addDisposableDomListener(j,"wheel",function(ie){if(!V.wheel){if(!U.buffer.hasScrollback){var ve=U.viewport.getLinesScrolled(ie);if(ve===0)return;for(var xe=o.C0.ESC+(U._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(ie.deltaY<0?"A":"B"),_e="",Ue=0;Ue<Math.abs(ve);Ue++)_e+=xe;U._coreService.triggerDataEvent(_e,!0)}}},{passive:!0})),this.register(t.addDisposableDomListener(j,"wheel",function(ie){if(!V.wheel)return U.viewport.onWheel(ie)?void 0:U.cancel(ie)},{passive:!1})),this.register(t.addDisposableDomListener(j,"touchstart",function(ie){if(!U._coreMouseService.areMouseEventsActive)return U.viewport.onTouchStart(ie),U.cancel(ie)},{passive:!0})),this.register(t.addDisposableDomListener(j,"touchmove",function(ie){if(!U._coreMouseService.areMouseEventsActive)return U.viewport.onTouchMove(ie)?void 0:U.cancel(ie)},{passive:!1}))},M.prototype.refresh=function(U,B){var j;(j=this._renderService)===null||j===void 0||j.refreshRows(U,B)},M.prototype._queueLinkification=function(U,B){var j;(j=this.linkifier)===null||j===void 0||j.linkifyRows(U,B)},M.prototype.updateCursorStyle=function(U){this._selectionService&&this._selectionService.shouldColumnSelect(U)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},M.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},M.prototype.scrollLines=function(U,B){k.prototype.scrollLines.call(this,U,B),this.refresh(0,this.rows-1)},M.prototype.paste=function(U){c.paste(U,this.textarea,this._coreService)},M.prototype.attachCustomKeyEventHandler=function(U){this._customKeyEventHandler=U},M.prototype.registerLinkMatcher=function(U,B,j){var W=this.linkifier.registerLinkMatcher(U,B,j);return this.refresh(0,this.rows-1),W},M.prototype.deregisterLinkMatcher=function(U){this.linkifier.deregisterLinkMatcher(U)&&this.refresh(0,this.rows-1)},M.prototype.registerLinkProvider=function(U){return this.linkifier2.registerLinkProvider(U)},M.prototype.registerCharacterJoiner=function(U){var B=this._renderService.registerCharacterJoiner(U);return this.refresh(0,this.rows-1),B},M.prototype.deregisterCharacterJoiner=function(U){this._renderService.deregisterCharacterJoiner(U)&&this.refresh(0,this.rows-1)},Object.defineProperty(M.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),M.prototype.addMarker=function(U){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+U)},M.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},M.prototype.select=function(U,B,j){this._selectionService.setSelection(U,B,j)},M.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},M.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},M.prototype.clearSelection=function(){var U;(U=this._selectionService)===null||U===void 0||U.clearSelection()},M.prototype.selectAll=function(){var U;(U=this._selectionService)===null||U===void 0||U.selectAll()},M.prototype.selectLines=function(U,B){var j;(j=this._selectionService)===null||j===void 0||j.selectLines(U,B)},M.prototype._keyDown=function(U){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(U)===!1)return!1;if(!this._compositionHelper.keydown(U))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var B=m.evaluateKeyboardEvent(U,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(U),B.type===3||B.type===2){var j=this.rows-1;return this.scrollLines(B.type===2?-j:j),this.cancel(U,!0)}return B.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,U)||(B.cancel&&this.cancel(U,!0),!B.key||(B.key!==o.C0.ETX&&B.key!==o.C0.CR||(this.textarea.value=""),this._onKey.fire({key:B.key,domEvent:U}),this._showCursor(),this._coreService.triggerDataEvent(B.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(U,!0)))},M.prototype._isThirdLevelShift=function(U,B){var j=U.isMac&&!this.options.macOptionIsMeta&&B.altKey&&!B.ctrlKey&&!B.metaKey||U.isWindows&&B.altKey&&B.ctrlKey&&!B.metaKey;return B.type==="keypress"?j:j&&(!B.keyCode||B.keyCode>47)},M.prototype._keyUp=function(U){this._customKeyEventHandler&&this._customKeyEventHandler(U)===!1||(function(B){return B.keyCode===16||B.keyCode===17||B.keyCode===18}(U)||this.focus(),this.updateCursorStyle(U))},M.prototype._keyPress=function(U){var B;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(U)===!1)return!1;if(this.cancel(U),U.charCode)B=U.charCode;else if(U.which===null||U.which===void 0)B=U.keyCode;else{if(U.which===0||U.charCode===0)return!1;B=U.which}return!(!B||(U.altKey||U.ctrlKey||U.metaKey)&&!this._isThirdLevelShift(this.browser,U))&&(B=String.fromCharCode(B),this._onKey.fire({key:B,domEvent:U}),this._showCursor(),this._coreService.triggerDataEvent(B,!0),!0)},M.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},M.prototype.resize=function(U,B){U!==this.cols||B!==this.rows?k.prototype.resize.call(this,U,B):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},M.prototype._afterResize=function(U,B){var j,W;(j=this._charSizeService)===null||j===void 0||j.measure(),(W=this.viewport)===null||W===void 0||W.syncScrollArea(!0)},M.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var U=1;U<this.rows;U++)this.buffer.lines.push(this.buffer.getBlankLine(y.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},M.prototype.reset=function(){var U,B;this.options.rows=this.rows,this.options.cols=this.cols;var j=this._customKeyEventHandler;this._setup(),k.prototype.reset.call(this),(U=this._selectionService)===null||U===void 0||U.reset(),this._customKeyEventHandler=j,this.refresh(0,this.rows-1),(B=this.viewport)===null||B===void 0||B.syncScrollArea()},M.prototype._reportWindowsOptions=function(U){if(this._renderService)switch(U){case r.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var B=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),j=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(o.C0.ESC+"[4;"+j+";"+B+"t");break;case r.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var W=this._renderService.dimensions.scaledCellWidth.toFixed(0),V=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(o.C0.ESC+"[6;"+V+";"+W+"t")}},M.prototype.cancel=function(U,B){if(this.options.cancelEvents||B)return U.preventDefault(),U.stopPropagation(),!1},M.prototype._visualBell=function(){return!1},M.prototype._soundBell=function(){return this.options.bellStyle==="sound"},M}(N.CoreTerminal);x.Terminal=R},function(O,x,C){"use strict";var A=this&&this.__decorate||function(o,r,i,n){var e,l=arguments.length,t=l<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,i):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,r,i,n);else for(var a=o.length-1;a>=0;a--)(e=o[a])&&(t=(l<3?e(t):l>3?e(r,i,t):e(r,i))||t);return l>3&&t&&Object.defineProperty(r,i,t),t},S=this&&this.__param||function(o,r){return function(i,n){r(i,n,o)}};Object.defineProperty(x,"__esModule",{value:!0}),x.CompositionHelper=void 0;var g=C(5),f=C(1),c=function(){function o(r,i,n,e,l,t){this._textarea=r,this._compositionView=i,this._bufferService=n,this._optionsService=e,this._charSizeService=l,this._coreService=t,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(o.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),o.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},o.prototype.compositionupdate=function(r){var i=this;this._compositionView.textContent=r.data,this.updateCompositionElements(),setTimeout(function(){i._compositionPosition.end=i._textarea.value.length},0)},o.prototype.compositionend=function(){this._finalizeComposition(!0)},o.prototype.keydown=function(r){if(this._isComposing||this._isSendingComposition){if(r.keyCode===229)return!1;if(r.keyCode===16||r.keyCode===17||r.keyCode===18)return!1;this._finalizeComposition(!1)}return r.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},o.prototype._finalizeComposition=function(r){var i=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,r){var n={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(i._isSendingComposition){i._isSendingComposition=!1;var l=void 0;l=i._isComposing?i._textarea.value.substring(n.start,n.end):i._textarea.value.substring(n.start),i._coreService.triggerDataEvent(l,!0)}},0)}else{this._isSendingComposition=!1;var e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}},o.prototype._handleAnyTextareaChanges=function(){var r=this,i=this._textarea.value;setTimeout(function(){if(!r._isComposing){var n=r._textarea.value.replace(i,"");n.length>0&&r._coreService.triggerDataEvent(n,!0)}},0)},o.prototype.updateCompositionElements=function(r){var i=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var n=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),e=this._bufferService.buffer.y*n,l=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=l+"px",this._compositionView.style.top=e+"px",this._compositionView.style.height=n+"px",this._compositionView.style.lineHeight=n+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var t=this._compositionView.getBoundingClientRect();this._textarea.style.left=l+"px",this._textarea.style.top=e+"px",this._textarea.style.width=t.width+"px",this._textarea.style.height=t.height+"px",this._textarea.style.lineHeight=t.height+"px"}r||setTimeout(function(){return i.updateCompositionElements(!0)},0)}},o=A([S(2,f.IBufferService),S(3,f.IOptionsService),S(4,g.ICharSizeService),S(5,f.ICoreService)],o)}();x.CompositionHelper=c},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(l,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u])})(l,t)},function(e,l){function t(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)}),g=this&&this.__decorate||function(e,l,t,a){var s,u=arguments.length,h=u<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,l,t,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(h=(u<3?s(h):u>3?s(l,t,h):s(l,t))||h);return u>3&&h&&Object.defineProperty(l,t,h),h},f=this&&this.__param||function(e,l){return function(t,a){l(t,a,e)}};Object.defineProperty(x,"__esModule",{value:!0}),x.Viewport=void 0;var c=C(2),o=C(7),r=C(5),i=C(1),n=function(e){function l(t,a,s,u,h,p,m){var v=e.call(this)||this;return v._scrollLines=t,v._viewportElement=a,v._scrollArea=s,v._bufferService=u,v._optionsService=h,v._charSizeService=p,v._renderService=m,v.scrollBarWidth=0,v._currentRowHeight=0,v._lastRecordedBufferLength=0,v._lastRecordedViewportHeight=0,v._lastRecordedBufferHeight=0,v._lastTouchY=0,v._lastScrollTop=0,v._wheelPartialScroll=0,v._refreshAnimationFrame=null,v._ignoreNextScrollEvent=!1,v.scrollBarWidth=v._viewportElement.offsetWidth-v._scrollArea.offsetWidth||15,v.register(o.addDisposableDomListener(v._viewportElement,"scroll",v._onScroll.bind(v))),setTimeout(function(){return v.syncScrollArea()},0),v}return S(l,e),l.prototype.onThemeChange=function(t){this._viewportElement.style.backgroundColor=t.background.css},l.prototype._refresh=function(t){var a=this;if(t)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return a._innerRefresh()}))},l.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var t=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==t&&(this._lastRecordedBufferHeight=t,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var a=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==a&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=a),this._refreshAnimationFrame=null},l.prototype.syncScrollArea=function(t){if(t===void 0&&(t=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(t);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var a=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===a&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(t)}else this._refresh(t)},l.prototype._onScroll=function(t){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var a=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(a,!0)}},l.prototype._bubbleScroll=function(t,a){var s=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(a<0&&this._viewportElement.scrollTop!==0||a>0&&s<this._lastRecordedBufferHeight)||(t.cancelable&&t.preventDefault(),!1)},l.prototype.onWheel=function(t){var a=this._getPixelsScrolled(t);return a!==0&&(this._viewportElement.scrollTop+=a,this._bubbleScroll(t,a))},l.prototype._getPixelsScrolled=function(t){if(t.deltaY===0)return 0;var a=this._applyScrollModifier(t.deltaY,t);return t.deltaMode===WheelEvent.DOM_DELTA_LINE?a*=this._currentRowHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(a*=this._currentRowHeight*this._bufferService.rows),a},l.prototype.getLinesScrolled=function(t){if(t.deltaY===0)return 0;var a=this._applyScrollModifier(t.deltaY,t);return t.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(a/=this._currentRowHeight+0,this._wheelPartialScroll+=a,a=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(a*=this._bufferService.rows),a},l.prototype._applyScrollModifier=function(t,a){var s=this._optionsService.options.fastScrollModifier;return s==="alt"&&a.altKey||s==="ctrl"&&a.ctrlKey||s==="shift"&&a.shiftKey?t*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:t*this._optionsService.options.scrollSensitivity},l.prototype.onTouchStart=function(t){this._lastTouchY=t.touches[0].pageY},l.prototype.onTouchMove=function(t){var a=this._lastTouchY-t.touches[0].pageY;return this._lastTouchY=t.touches[0].pageY,a!==0&&(this._viewportElement.scrollTop+=a,this._bubbleScroll(t,a))},l=g([f(3,i.IBufferService),f(4,i.IOptionsService),f(5,r.ICharSizeService),f(6,r.IRenderService)],l)}(c.Disposable);x.Viewport=n},function(O,x,C){"use strict";function A(c){return c.replace(/\r?\n/g,"\r")}function S(c,o){return o?"[200~"+c+"[201~":c}function g(c,o,r){c=S(c=A(c),r.decPrivateModes.bracketedPasteMode),r.triggerDataEvent(c,!0),o.value=""}function f(c,o,r){var i=r.getBoundingClientRect(),n=c.clientX-i.left-10,e=c.clientY-i.top-10;o.style.width="20px",o.style.height="20px",o.style.left=n+"px",o.style.top=e+"px",o.style.zIndex="1000",o.focus()}Object.defineProperty(x,"__esModule",{value:!0}),x.rightClickHandler=x.moveTextAreaUnderMouseCursor=x.paste=x.handlePasteEvent=x.copyHandler=x.bracketTextForPaste=x.prepareTextForTerminal=void 0,x.prepareTextForTerminal=A,x.bracketTextForPaste=S,x.copyHandler=function(c,o){c.clipboardData&&c.clipboardData.setData("text/plain",o.selectionText),c.preventDefault()},x.handlePasteEvent=function(c,o,r){c.stopPropagation(),c.clipboardData&&g(c.clipboardData.getData("text/plain"),o,r)},x.paste=g,x.moveTextAreaUnderMouseCursor=f,x.rightClickHandler=function(c,o,r,i,n){f(c,o,r),n&&!i.isClickInSelection(c)&&i.selectWordAtCursor(c),o.value=i.selectionText,o.select()}},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(l,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u])})(l,t)},function(e,l){function t(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)});Object.defineProperty(x,"__esModule",{value:!0}),x.EscapeSequenceParser=x.VT500_TRANSITION_TABLE=x.TransitionTable=void 0;var g=C(2),f=C(15),c=C(21),o=C(22),r=C(24),i=function(){function e(l){this.table=new Uint8Array(l)}return e.prototype.setDefault=function(l,t){f.fill(this.table,l<<4|t)},e.prototype.add=function(l,t,a,s){this.table[t<<8|l]=a<<4|s},e.prototype.addMany=function(l,t,a,s){for(var u=0;u<l.length;u++)this.table[t<<8|l[u]]=a<<4|s},e}();x.TransitionTable=i,x.VT500_TRANSITION_TABLE=function(){var e=new i(4095),l=Array.apply(null,Array(256)).map(function(p,m){return m}),t=function(m,v){return l.slice(m,v)},a=t(32,127),s=t(0,24);s.push(25),s.push.apply(s,t(28,32));var u,h=t(0,14);for(u in e.setDefault(1,0),e.addMany(a,0,2,0),h)e.addMany([24,26,153,154],u,3,0),e.addMany(t(128,144),u,3,0),e.addMany(t(144,152),u,3,0),e.add(156,u,0,0),e.add(27,u,11,1),e.add(157,u,4,8),e.addMany([152,158,159],u,0,7),e.add(155,u,11,3),e.add(144,u,11,9);return e.addMany(s,0,3,0),e.addMany(s,1,3,1),e.add(127,1,0,1),e.addMany(s,8,0,8),e.addMany(s,3,3,3),e.add(127,3,0,3),e.addMany(s,4,3,4),e.add(127,4,0,4),e.addMany(s,6,3,6),e.addMany(s,5,3,5),e.add(127,5,0,5),e.addMany(s,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(a,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(t(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(a,7,0,7),e.addMany(s,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(t(64,127),3,7,0),e.addMany(t(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(t(48,60),4,8,4),e.addMany(t(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(t(32,64),6,0,6),e.add(127,6,0,6),e.addMany(t(64,127),6,0,0),e.addMany(t(32,48),3,9,5),e.addMany(t(32,48),5,9,5),e.addMany(t(48,64),5,0,6),e.addMany(t(64,127),5,7,0),e.addMany(t(32,48),4,9,5),e.addMany(t(32,48),1,9,2),e.addMany(t(32,48),2,9,2),e.addMany(t(48,127),2,10,0),e.addMany(t(48,80),1,10,0),e.addMany(t(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(t(96,127),1,10,0),e.add(80,1,11,9),e.addMany(s,9,0,9),e.add(127,9,0,9),e.addMany(t(28,32),9,0,9),e.addMany(t(32,48),9,9,12),e.addMany(t(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(s,11,0,11),e.addMany(t(32,128),11,0,11),e.addMany(t(28,32),11,0,11),e.addMany(s,10,0,10),e.add(127,10,0,10),e.addMany(t(28,32),10,0,10),e.addMany(t(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(t(32,48),10,9,12),e.addMany(s,12,0,12),e.add(127,12,0,12),e.addMany(t(28,32),12,0,12),e.addMany(t(32,48),12,9,12),e.addMany(t(48,64),12,0,11),e.addMany(t(64,127),12,12,13),e.addMany(t(64,127),10,12,13),e.addMany(t(64,127),9,12,13),e.addMany(s,13,13,13),e.addMany(a,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 n=function(e){function l(t){t===void 0&&(t=x.VT500_TRANSITION_TABLE);var a=e.call(this)||this;return a._transitions=t,a.initialState=0,a.currentState=a.initialState,a._params=new c.Params,a._params.addParam(0),a._collect=0,a.precedingCodepoint=0,a._printHandlerFb=function(s,u,h){},a._executeHandlerFb=function(s){},a._csiHandlerFb=function(s,u){},a._escHandlerFb=function(s){},a._errorHandlerFb=function(s){return s},a._printHandler=a._printHandlerFb,a._executeHandlers=Object.create(null),a._csiHandlers=Object.create(null),a._escHandlers=Object.create(null),a._oscParser=new o.OscParser,a._dcsParser=new r.DcsParser,a._errorHandler=a._errorHandlerFb,a.setEscHandler({final:"\\"},function(){}),a}return S(l,e),l.prototype._identifier=function(t,a){a===void 0&&(a=[64,126]);var s=0;if(t.prefix){if(t.prefix.length>1)throw new Error("only one byte as prefix supported");if((s=t.prefix.charCodeAt(0))&&60>s||s>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(t.intermediates){if(t.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var u=0;u<t.intermediates.length;++u){var h=t.intermediates.charCodeAt(u);if(32>h||h>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");s<<=8,s|=h}}if(t.final.length!==1)throw new Error("final must be a single byte");var p=t.final.charCodeAt(0);if(a[0]>p||p>a[1])throw new Error("final must be in range "+a[0]+" .. "+a[1]);return s<<=8,s|=p},l.prototype.identToString=function(t){for(var a=[];t;)a.push(String.fromCharCode(255&t)),t>>=8;return a.reverse().join("")},l.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},l.prototype.setPrintHandler=function(t){this._printHandler=t},l.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},l.prototype.addEscHandler=function(t,a){var s=this._identifier(t,[48,126]);this._escHandlers[s]===void 0&&(this._escHandlers[s]=[]);var u=this._escHandlers[s];return u.push(a),{dispose:function(){var p=u.indexOf(a);p!==-1&&u.splice(p,1)}}},l.prototype.setEscHandler=function(t,a){this._escHandlers[this._identifier(t,[48,126])]=[a]},l.prototype.clearEscHandler=function(t){this._escHandlers[this._identifier(t,[48,126])]&&delete this._escHandlers[this._identifier(t,[48,126])]},l.prototype.setEscHandlerFallback=function(t){this._escHandlerFb=t},l.prototype.setExecuteHandler=function(t,a){this._executeHandlers[t.charCodeAt(0)]=a},l.prototype.clearExecuteHandler=function(t){this._executeHandlers[t.charCodeAt(0)]&&delete this._executeHandlers[t.charCodeAt(0)]},l.prototype.setExecuteHandlerFallback=function(t){this._executeHandlerFb=t},l.prototype.addCsiHandler=function(t,a){var s=this._identifier(t);this._csiHandlers[s]===void 0&&(this._csiHandlers[s]=[]);var u=this._csiHandlers[s];return u.push(a),{dispose:function(){var p=u.indexOf(a);p!==-1&&u.splice(p,1)}}},l.prototype.setCsiHandler=function(t,a){this._csiHandlers[this._identifier(t)]=[a]},l.prototype.clearCsiHandler=function(t){this._csiHandlers[this._identifier(t)]&&delete this._csiHandlers[this._identifier(t)]},l.prototype.setCsiHandlerFallback=function(t){this._csiHandlerFb=t},l.prototype.addDcsHandler=function(t,a){return this._dcsParser.addHandler(this._identifier(t),a)},l.prototype.setDcsHandler=function(t,a){this._dcsParser.setHandler(this._identifier(t),a)},l.prototype.clearDcsHandler=function(t){this._dcsParser.clearHandler(this._identifier(t))},l.prototype.setDcsHandlerFallback=function(t){this._dcsParser.setHandlerFallback(t)},l.prototype.addOscHandler=function(t,a){return this._oscParser.addHandler(t,a)},l.prototype.setOscHandler=function(t,a){this._oscParser.setHandler(t,a)},l.prototype.clearOscHandler=function(t){this._oscParser.clearHandler(t)},l.prototype.setOscHandlerFallback=function(t){this._oscParser.setHandlerFallback(t)},l.prototype.setErrorHandler=function(t){this._errorHandler=t},l.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},l.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},l.prototype.parse=function(t,a){for(var s=0,u=0,h=this.currentState,p=this._oscParser,m=this._dcsParser,v=this._collect,y=this._params,E=this._transitions.table,T=0;T<a;++T){switch((u=E[h<<8|((s=t[T])<160?s:160)])>>4){case 2:for(var b=T+1;;++b){if(b>=a||(s=t[b])<32||s>126&&s<160){this._printHandler(t,T,b),T=b-1;break}if(++b>=a||(s=t[b])<32||s>126&&s<160){this._printHandler(t,T,b),T=b-1;break}if(++b>=a||(s=t[b])<32||s>126&&s<160){this._printHandler(t,T,b),T=b-1;break}if(++b>=a||(s=t[b])<32||s>126&&s<160){this._printHandler(t,T,b),T=b-1;break}}break;case 3:this._executeHandlers[s]?this._executeHandlers[s]():this._executeHandlerFb(s),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:T,code:s,currentState:h,collect:v,params:y,abort:!1}).abort)return;break;case 7:for(var w=this._csiHandlers[v<<8|s],_=w?w.length-1:-1;_>=0&&w[_](y)===!1;_--);_<0&&this._csiHandlerFb(v<<8|s,y),this.precedingCodepoint=0;break;case 8:do switch(s){case 59:y.addParam(0);break;case 58:y.addSubParam(-1);break;default:y.addDigit(s-48)}while(++T<a&&(s=t[T])>47&&s<60);T--;break;case 9:v<<=8,v|=s;break;case 10:for(var I=this._escHandlers[v<<8|s],L=I?I.length-1:-1;L>=0&&I[L]()===!1;L--);L<0&&this._escHandlerFb(v<<8|s),this.precedingCodepoint=0;break;case 11:y.reset(),y.addParam(0),v=0;break;case 12:m.hook(v<<8|s,y);break;case 13:for(var N=T+1;;++N)if(N>=a||(s=t[N])===24||s===26||s===27||s>127&&s<160){m.put(t,T,N),T=N-1;break}break;case 14:m.unhook(s!==24&&s!==26),s===27&&(u|=1),y.reset(),y.addParam(0),v=0,this.precedingCodepoint=0;break;case 4:p.start();break;case 5:for(var D=T+1;;D++)if(D>=a||(s=t[D])<32||s>127&&s<=159){p.put(t,T,D),T=D-1;break}break;case 6:p.end(s!==24&&s!==26),s===27&&(u|=1),y.reset(),y.addParam(0),v=0,this.precedingCodepoint=0}h=15&u}this._collect=v,this.currentState=h},l}(g.Disposable);x.EscapeSequenceParser=n},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(m,v){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var T in E)E.hasOwnProperty(T)&&(y[T]=E[T])})(m,v)},function(p,m){function v(){this.constructor=p}A(p,m),p.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}),g=this&&this.__decorate||function(p,m,v,y){var E,T=arguments.length,b=T<3?m:y===null?y=Object.getOwnPropertyDescriptor(m,v):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(p,m,v,y);else for(var w=p.length-1;w>=0;w--)(E=p[w])&&(b=(T<3?E(b):T>3?E(m,v,b):E(m,v))||b);return T>3&&b&&Object.defineProperty(m,v,b),b},f=this&&this.__param||function(p,m){return function(v,y){m(v,y,p)}};Object.defineProperty(x,"__esModule",{value:!0}),x.Renderer=void 0;var c=C(41),o=C(47),r=C(48),i=C(49),n=C(29),e=C(2),l=C(5),t=C(1),a=C(25),s=C(0),u=1,h=function(p){function m(v,y,E,T,b,w,_,I,L){var N=p.call(this)||this;N._colors=v,N._screenElement=y,N._bufferService=b,N._charSizeService=w,N._optionsService=_,N._id=u++,N._onRequestRedraw=new s.EventEmitter;var D=N._optionsService.options.allowTransparency;return N._characterJoinerRegistry=new n.CharacterJoinerRegistry(N._bufferService),N._renderLayers=[new c.TextRenderLayer(N._screenElement,0,N._colors,N._characterJoinerRegistry,D,N._id,N._bufferService,_),new o.SelectionRenderLayer(N._screenElement,1,N._colors,N._id,N._bufferService,_),new i.LinkRenderLayer(N._screenElement,2,N._colors,N._id,E,T,N._bufferService,_),new r.CursorRenderLayer(N._screenElement,3,N._colors,N._id,N._onRequestRedraw,N._bufferService,_,I,L)],N.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},N._devicePixelRatio=window.devicePixelRatio,N._updateDimensions(),N.onOptionsChanged(),N}return S(m,p),Object.defineProperty(m.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),m.prototype.dispose=function(){for(var v=0,y=this._renderLayers;v<y.length;v++)y[v].dispose();p.prototype.dispose.call(this),a.removeTerminalFromCache(this._id)},m.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},m.prototype.setColors=function(v){this._colors=v;for(var y=0,E=this._renderLayers;y<E.length;y++){var T=E[y];T.setColors(this._colors),T.reset()}},m.prototype.onResize=function(v,y){this._updateDimensions();for(var E=0,T=this._renderLayers;E<T.length;E++)T[E].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},m.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},m.prototype.onBlur=function(){this._runOperation(function(v){return v.onBlur()})},m.prototype.onFocus=function(){this._runOperation(function(v){return v.onFocus()})},m.prototype.onSelectionChanged=function(v,y,E){E===void 0&&(E=!1),this._runOperation(function(T){return T.onSelectionChanged(v,y,E)})},m.prototype.onCursorMove=function(){this._runOperation(function(v){return v.onCursorMove()})},m.prototype.onOptionsChanged=function(){this._runOperation(function(v){return v.onOptionsChanged()})},m.prototype.clear=function(){this._runOperation(function(v){return v.reset()})},m.prototype._runOperation=function(v){for(var y=0,E=this._renderLayers;y<E.length;y++)v(E[y])},m.prototype.renderRows=function(v,y){for(var E=0,T=this._renderLayers;E<T.length;E++)T[E].onGridChanged(v,y)},m.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)},m.prototype.registerCharacterJoiner=function(v){return this._characterJoinerRegistry.registerCharacterJoiner(v)},m.prototype.deregisterCharacterJoiner=function(v){return this._characterJoinerRegistry.deregisterCharacterJoiner(v)},m=g([f(4,t.IBufferService),f(5,l.ICharSizeService),f(6,t.IOptionsService),f(7,t.ICoreService),f(8,l.ICoreBrowserService)],m)}(e.Disposable);x.Renderer=h},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(l,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u])})(l,t)},function(e,l){function t(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)});Object.defineProperty(x,"__esModule",{value:!0}),x.TextRenderLayer=void 0;var g=C(42),f=C(13),c=C(6),o=C(3),r=C(29),i=C(4),n=function(e){function l(t,a,s,u,h,p,m,v){var y=e.call(this,t,"text",a,h,s,p,m,v)||this;return y._characterWidth=0,y._characterFont="",y._characterOverlapCache={},y._workCell=new i.CellData,y._state=new g.GridCache,y._characterJoinerRegistry=u,y}return S(l,e),l.prototype.resize=function(t){e.prototype.resize.call(this,t);var a=this._getFont(!1,!1);this._characterWidth===t.scaledCharWidth&&this._characterFont===a||(this._characterWidth=t.scaledCharWidth,this._characterFont=a,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(t,a,s,u){for(var h=t;h<=a;h++)for(var p=h+this._bufferService.buffer.ydisp,m=this._bufferService.buffer.lines.get(p),v=s?s.getJoinedCharacters(p):[],y=0;y<this._bufferService.cols;y++){m.loadCell(y,this._workCell);var E=this._workCell,T=!1,b=y;if(E.getWidth()!==0){if(v.length>0&&y===v[0][0]){T=!0;var w=v.shift();E=new r.JoinedCellData(this._workCell,m.translateToString(!0,w[0],w[1]),w[1]-w[0]),b=w[1]-1}!T&&this._isOverlapping(E)&&b<m.length-1&&m.getCodePoint(b+1)===o.NULL_CELL_CODE&&(E.content&=-12582913,E.content|=2<<22),u(E,y,h),y=b}}},l.prototype._drawBackground=function(t,a){var s=this,u=this._ctx,h=this._bufferService.cols,p=0,m=0,v=null;u.save(),this._forEachCell(t,a,null,function(y,E,T){var b=null;y.isInverse()?b=y.isFgDefault()?s._colors.foreground.css:y.isFgRGB()?"rgb("+c.AttributeData.toColorRGB(y.getFgColor()).join(",")+")":s._colors.ansi[y.getFgColor()].css:y.isBgRGB()?b="rgb("+c.AttributeData.toColorRGB(y.getBgColor()).join(",")+")":y.isBgPalette()&&(b=s._colors.ansi[y.getBgColor()].css),v===null&&(p=E,m=T),T!==m?(u.fillStyle=v||"",s._fillCells(p,m,h-p,1),p=E,m=T):v!==b&&(u.fillStyle=v||"",s._fillCells(p,m,E-p,1),p=E,m=T),v=b}),v!==null&&(u.fillStyle=v,this._fillCells(p,m,h-p,1)),u.restore()},l.prototype._drawForeground=function(t,a){var s=this;this._forEachCell(t,a,this._characterJoinerRegistry,function(u,h,p){if(!u.isInvisible()&&(s._drawChars(u,h,p),u.isUnderline())){if(s._ctx.save(),u.isInverse())if(u.isBgDefault())s._ctx.fillStyle=s._colors.background.css;else if(u.isBgRGB())s._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(u.getBgColor()).join(",")+")";else{var m=u.getBgColor();s._optionsService.options.drawBoldTextInBrightColors&&u.isBold()&&m<8&&(m+=8),s._ctx.fillStyle=s._colors.ansi[m].css}else if(u.isFgDefault())s._ctx.fillStyle=s._colors.foreground.css;else if(u.isFgRGB())s._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(u.getFgColor()).join(",")+")";else{var v=u.getFgColor();s._optionsService.options.drawBoldTextInBrightColors&&u.isBold()&&v<8&&(v+=8),s._ctx.fillStyle=s._colors.ansi[v].css}s._fillBottomLineAtCells(h,p,u.getWidth()),s._ctx.restore()}})},l.prototype.onGridChanged=function(t,a){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,t,this._bufferService.cols,a-t+1),this._drawBackground(t,a),this._drawForeground(t,a))},l.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},l.prototype._isOverlapping=function(t){if(t.getWidth()!==1)return!1;if(t.getCode()<256)return!1;var a=t.getChars();if(this._characterOverlapCache.hasOwnProperty(a))return this._characterOverlapCache[a];this._ctx.save(),this._ctx.font=this._characterFont;var s=Math.floor(this._ctx.measureText(a).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[a]=s,s},l}(f.BaseRenderLayer);x.TextRenderLayer=n},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.GridCache=void 0;var A=function(){function S(){this.cache=[]}return S.prototype.resize=function(g,f){for(var c=0;c<g;c++){this.cache.length<=c&&this.cache.push([]);for(var o=this.cache[c].length;o<f;o++)this.cache[c].push(void 0);this.cache[c].length=f}this.cache.length=g},S.prototype.clear=function(){for(var g=0;g<this.cache.length;g++)for(var f=0;f<this.cache[g].length;f++)this.cache[g][f]=void 0},S}();x.GridCache=A},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(u,h){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,m){p.__proto__=m}||function(p,m){for(var v in m)m.hasOwnProperty(v)&&(p[v]=m[v])})(u,h)},function(s,u){function h(){this.constructor=s}A(s,u),s.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)});Object.defineProperty(x,"__esModule",{value:!0}),x.NoneCharAtlas=x.DynamicCharAtlas=x.getGlyphCacheKey=void 0;var g=C(9),f=C(44),c=C(27),o=C(46),r=C(11),i=C(28),n=C(10),e={css:"rgba(0, 0, 0, 0)",rgba:0};function l(s){return s.code<<21|s.bg<<12|s.fg<<3|(s.bold?0:4)+(s.dim?0:2)+(s.italic?0:1)}x.getGlyphCacheKey=l;var t=function(s){function u(h,p){var m=s.call(this)||this;m._config=p,m._drawToCacheCount=0,m._glyphsWaitingOnBitmap=[],m._bitmapCommitTimeout=null,m._bitmap=null,m._cacheCanvas=h.createElement("canvas"),m._cacheCanvas.width=1024,m._cacheCanvas.height=1024,m._cacheCtx=i.throwIfFalsy(m._cacheCanvas.getContext("2d",{alpha:!0}));var v=h.createElement("canvas");v.width=m._config.scaledCharWidth,v.height=m._config.scaledCharHeight,m._tmpCtx=i.throwIfFalsy(v.getContext("2d",{alpha:m._config.allowTransparency})),m._width=Math.floor(1024/m._config.scaledCharWidth),m._height=Math.floor(1024/m._config.scaledCharHeight);var y=m._width*m._height;return m._cacheMap=new o.LRUMap(y),m._cacheMap.prealloc(y),m}return S(u,s),u.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},u.prototype.beginFrame=function(){this._drawToCacheCount=0},u.prototype.draw=function(h,p,m,v){if(p.code===32)return!0;if(!this._canCache(p))return!1;var y=l(p),E=this._cacheMap.get(y);if(E!=null)return this._drawFromCache(h,E,m,v),!0;if(this._drawToCacheCount<100){var T=void 0;T=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var b=this._drawToCache(p,T);return this._cacheMap.set(y,b),this._drawFromCache(h,b,m,v),!0}return!1},u.prototype._canCache=function(h){return h.code<256},u.prototype._toCoordinateX=function(h){return h%this._width*this._config.scaledCharWidth},u.prototype._toCoordinateY=function(h){return Math.floor(h/this._width)*this._config.scaledCharHeight},u.prototype._drawFromCache=function(h,p,m,v){if(!p.isEmpty){var y=this._toCoordinateX(p.index),E=this._toCoordinateY(p.index);h.drawImage(p.inBitmap?this._bitmap:this._cacheCanvas,y,E,this._config.scaledCharWidth,this._config.scaledCharHeight,m,v,this._config.scaledCharWidth,this._config.scaledCharHeight)}},u.prototype._getColorFromAnsiIndex=function(h){return h<this._config.colors.ansi.length?this._config.colors.ansi[h]:c.DEFAULT_ANSI_COLORS[h]},u.prototype._getBackgroundColor=function(h){return this._config.allowTransparency?e:h.bg===g.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:h.bg<256?this._getColorFromAnsiIndex(h.bg):this._config.colors.background},u.prototype._getForegroundColor=function(h){return h.fg===g.INVERTED_DEFAULT_COLOR?n.color.opaque(this._config.colors.background):h.fg<256?this._getColorFromAnsiIndex(h.fg):this._config.colors.foreground},u.prototype._drawToCache=function(h,p){this._drawToCacheCount++,this._tmpCtx.save();var m=this._getBackgroundColor(h);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=m.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var v=h.bold?this._config.fontWeightBold:this._config.fontWeight,y=h.italic?"italic":"";this._tmpCtx.font=y+" "+v+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(h).css,h.dim&&(this._tmpCtx.globalAlpha=g.DIM_OPACITY),this._tmpCtx.fillText(h.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var E=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),T=!1;this._config.allowTransparency||(T=function(I,L){for(var N=!0,D=L.rgba>>>24,R=L.rgba>>>16&255,k=L.rgba>>>8&255,M=0;M<I.data.length;M+=4)I.data[M]===D&&I.data[M+1]===R&&I.data[M+2]===k?I.data[M+3]=0:N=!1;return N}(E,m));var b=this._toCoordinateX(p),w=this._toCoordinateY(p);this._cacheCtx.putImageData(E,b,w);var _={index:p,isEmpty:T,inBitmap:!1};return this._addGlyphToBitmap(_),_},u.prototype._addGlyphToBitmap=function(h){var p=this;!("createImageBitmap"in window)||r.isFirefox||r.isSafari||(this._glyphsWaitingOnBitmap.push(h),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return p._generateBitmap()},100)))},u.prototype._generateBitmap=function(){var h=this,p=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(m){h._bitmap=m;for(var v=0;v<p.length;v++)p[v].inBitmap=!0}),this._bitmapCommitTimeout=null},u}(f.BaseCharAtlas);x.DynamicCharAtlas=t;var a=function(s){function u(h,p){return s.call(this)||this}return S(u,s),u.prototype.draw=function(h,p,m,v){return!1},u}(f.BaseCharAtlas);x.NoneCharAtlas=a},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.BaseCharAtlas=void 0;var A=function(){function S(){this._didWarmUp=!1}return S.prototype.dispose=function(){},S.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},S.prototype._doWarmUp=function(){},S.prototype.beginFrame=function(){},S}();x.BaseCharAtlas=A},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.ColorContrastCache=void 0;var A=function(){function S(){this._color={},this._rgba={}}return S.prototype.clear=function(){this._color={},this._rgba={}},S.prototype.setCss=function(g,f,c){this._rgba[g]||(this._rgba[g]={}),this._rgba[g][f]=c},S.prototype.getCss=function(g,f){return this._rgba[g]?this._rgba[g][f]:void 0},S.prototype.setColor=function(g,f,c){this._color[g]||(this._color[g]={}),this._color[g][f]=c},S.prototype.getColor=function(g,f){return this._color[g]?this._color[g][f]:void 0},S}();x.ColorContrastCache=A},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.LRUMap=void 0;var A=function(){function S(g){this.capacity=g,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return S.prototype._unlinkNode=function(g){var f=g.prev,c=g.next;g===this._head&&(this._head=c),g===this._tail&&(this._tail=f),f!==null&&(f.next=c),c!==null&&(c.prev=f)},S.prototype._appendNode=function(g){var f=this._tail;f!==null&&(f.next=g),g.prev=f,g.next=null,this._tail=g,this._head===null&&(this._head=g)},S.prototype.prealloc=function(g){for(var f=this._nodePool,c=0;c<g;c++)f.push({prev:null,next:null,key:null,value:null})},S.prototype.get=function(g){var f=this._map[g];return f!==void 0?(this._unlinkNode(f),this._appendNode(f),f.value):null},S.prototype.peekValue=function(g){var f=this._map[g];return f!==void 0?f.value:null},S.prototype.peek=function(){var g=this._head;return g===null?null:g.value},S.prototype.set=function(g,f){var c=this._map[g];if(c!==void 0)c=this._map[g],this._unlinkNode(c),c.value=f;else if(this.size>=this.capacity)c=this._head,this._unlinkNode(c),delete this._map[c.key],c.key=g,c.value=f,this._map[g]=c;else{var o=this._nodePool;o.length>0?((c=o.pop()).key=g,c.value=f):c={prev:null,next:null,key:g,value:f},this._map[g]=c,this.size++}this._appendNode(c)},S}();x.LRUMap=A},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(c,o){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)i.hasOwnProperty(n)&&(r[n]=i[n])})(c,o)},function(f,c){function o(){this.constructor=f}A(f,c),f.prototype=c===null?Object.create(c):(o.prototype=c.prototype,new o)});Object.defineProperty(x,"__esModule",{value:!0}),x.SelectionRenderLayer=void 0;var g=function(f){function c(o,r,i,n,e,l){var t=f.call(this,o,"selection",r,!0,i,n,e,l)||this;return t._clearState(),t}return S(c,f),c.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},c.prototype.resize=function(o){f.prototype.resize.call(this,o),this._clearState()},c.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},c.prototype.onSelectionChanged=function(o,r,i){if(this._didStateChange(o,r,i,this._bufferService.buffer.ydisp))if(this._clearAll(),o&&r){var n=o[1]-this._bufferService.buffer.ydisp,e=r[1]-this._bufferService.buffer.ydisp,l=Math.max(n,0),t=Math.min(e,this._bufferService.rows-1);if(!(l>=this._bufferService.rows||t<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,i){var a=o[0],s=r[0]-a,u=t-l+1;this._fillCells(a,l,s,u)}else{a=n===l?o[0]:0;var h=l===t?r[0]:this._bufferService.cols;this._fillCells(a,l,h-a,1);var p=Math.max(t-l-1,0);if(this._fillCells(0,l+1,this._bufferService.cols,p),l!==t){var m=e===t?r[0]:this._bufferService.cols;this._fillCells(0,t,m,1)}}this._state.start=[o[0],o[1]],this._state.end=[r[0],r[1]],this._state.columnSelectMode=i,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},c.prototype._didStateChange=function(o,r,i,n){return!this._areCoordinatesEqual(o,this._state.start)||!this._areCoordinatesEqual(r,this._state.end)||i!==this._state.columnSelectMode||n!==this._state.ydisp},c.prototype._areCoordinatesEqual=function(o,r){return!(!o||!r)&&o[0]===r[0]&&o[1]===r[1]},c}(C(13).BaseRenderLayer);x.SelectionRenderLayer=g},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(i,n){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var t in l)l.hasOwnProperty(t)&&(e[t]=l[t])})(i,n)},function(r,i){function n(){this.constructor=r}A(r,i),r.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(x,"__esModule",{value:!0}),x.CursorRenderLayer=void 0;var g=C(13),f=C(4),c=function(r){function i(n,e,l,t,a,s,u,h,p){var m=r.call(this,n,"cursor",e,!0,l,t,s,u)||this;return m._onRequestRedraw=a,m._coreService=h,m._coreBrowserService=p,m._cell=new f.CellData,m._state={x:0,y:0,isFocused:!1,style:"",width:0},m._cursorRenderers={bar:m._renderBarCursor.bind(m),block:m._renderBlockCursor.bind(m),underline:m._renderUnderlineCursor.bind(m)},m}return S(i,r),i.prototype.resize=function(n){r.prototype.resize.call(this,n),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},i.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},i.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},i.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},i.prototype.onOptionsChanged=function(){var n,e=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new o(this._coreBrowserService.isFocused,function(){e._render(!0)})):((n=this._cursorBlinkStateManager)===null||n===void 0||n.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},i.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},i.prototype.onGridChanged=function(n,e){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},i.prototype._render=function(n){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 t=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(e).loadCell(t,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var a=this._optionsService.options.cursorStyle;return a&&a!=="block"?this._cursorRenderers[a](t,l,this._cell):this._renderBlurCursor(t,l,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=l,this._state.isFocused=!1,this._state.style=a,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===t&&this._state.y===l&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](t,l,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=l,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},i.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})},i.prototype._renderBarCursor=function(n,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(n,e,this._optionsService.options.cursorWidth),this._ctx.restore()},i.prototype._renderBlockCursor=function(n,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(n,e,l.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(l,n,e),this._ctx.restore()},i.prototype._renderUnderlineCursor=function(n,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(n,e),this._ctx.restore()},i.prototype._renderBlurCursor=function(n,e,l){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(n,e,l.getWidth(),1),this._ctx.restore()},i}(g.BaseRenderLayer);x.CursorRenderLayer=c;var o=function(){function r(i,n){this._renderCallback=n,this.isCursorVisible=!0,i&&this._restartInterval()}return Object.defineProperty(r.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),r.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},r.prototype.restartBlinkAnimation=function(){var i=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){i._renderCallback(),i._animationFrame=void 0})))},r.prototype._restartInterval=function(i){var n=this;i===void 0&&(i=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(n._animationTimeRestarted){var e=600-(Date.now()-n._animationTimeRestarted);if(n._animationTimeRestarted=void 0,e>0)return void n._restartInterval(e)}n.isCursorVisible=!1,n._animationFrame=window.requestAnimationFrame(function(){n._renderCallback(),n._animationFrame=void 0}),n._blinkInterval=window.setInterval(function(){if(n._animationTimeRestarted){var l=600-(Date.now()-n._animationTimeRestarted);return n._animationTimeRestarted=void 0,void n._restartInterval(l)}n.isCursorVisible=!n.isCursorVisible,n._animationFrame=window.requestAnimationFrame(function(){n._renderCallback(),n._animationFrame=void 0})},600)},i)},r.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},r.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},r}()},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(i,n){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var t in l)l.hasOwnProperty(t)&&(e[t]=l[t])})(i,n)},function(r,i){function n(){this.constructor=r}A(r,i),r.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(x,"__esModule",{value:!0}),x.LinkRenderLayer=void 0;var g=C(13),f=C(9),c=C(26),o=function(r){function i(n,e,l,t,a,s,u,h){var p=r.call(this,n,"link",e,!0,l,t,u,h)||this;return a.onShowLinkUnderline(function(m){return p._onShowLinkUnderline(m)}),a.onHideLinkUnderline(function(m){return p._onHideLinkUnderline(m)}),s.onShowLinkUnderline(function(m){return p._onShowLinkUnderline(m)}),s.onHideLinkUnderline(function(m){return p._onHideLinkUnderline(m)}),p}return S(i,r),i.prototype.resize=function(n){r.prototype.resize.call(this,n),this._state=void 0},i.prototype.reset=function(){this._clearCurrentLink()},i.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var n=this._state.y2-this._state.y1-1;n>0&&this._clearCells(0,this._state.y1+1,this._state.cols,n),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},i.prototype._onShowLinkUnderline=function(n){if(n.fg===f.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:n.fg&&c.is256Color(n.fg)?this._ctx.fillStyle=this._colors.ansi[n.fg].css:this._ctx.fillStyle=this._colors.foreground.css,n.y1===n.y2)this._fillBottomLineAtCells(n.x1,n.y1,n.x2-n.x1);else{this._fillBottomLineAtCells(n.x1,n.y1,n.cols-n.x1);for(var e=n.y1+1;e<n.y2;e++)this._fillBottomLineAtCells(0,e,n.cols);this._fillBottomLineAtCells(0,n.y2,n.x2)}this._state=n},i.prototype._onHideLinkUnderline=function(n){this._clearCurrentLink()},i}(g.BaseRenderLayer);x.LinkRenderLayer=o},function(O,x,C){"use strict";var A=this&&this.__decorate||function(r,i,n,e){var l,t=arguments.length,a=t<3?i:e===null?e=Object.getOwnPropertyDescriptor(i,n):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,i,n,e);else for(var s=r.length-1;s>=0;s--)(l=r[s])&&(a=(t<3?l(a):t>3?l(i,n,a):l(i,n))||a);return t>3&&a&&Object.defineProperty(i,n,a),a},S=this&&this.__param||function(r,i){return function(n,e){i(n,e,r)}};Object.defineProperty(x,"__esModule",{value:!0}),x.MouseZone=x.Linkifier=void 0;var g=C(0),f=C(1),c=function(){function r(i,n,e){this._bufferService=i,this._logService=n,this._unicodeService=e,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new g.EventEmitter,this._onHideLinkUnderline=new g.EventEmitter,this._onLinkTooltip=new g.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(r.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),r.prototype.attachToDom=function(i,n){this._element=i,this._mouseZoneManager=n},r.prototype.linkifyRows=function(i,n){var e=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=i,this._rowsToLinkify.end=n):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,i),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,n)),this._mouseZoneManager.clearAll(i,n),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return e._linkifyRows()},r._timeBeforeLatency))},r.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var i=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var n=i.ydisp+this._rowsToLinkify.start;if(!(n>=i.lines.length)){for(var e=i.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,l=Math.ceil(2e3/this._bufferService.cols),t=this._bufferService.buffer.iterator(!1,n,e,l,l);t.hasNext();)for(var a=t.next(),s=0;s<this._linkMatchers.length;s++)this._doLinkifyRow(a.range.first,a.content,this._linkMatchers[s]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},r.prototype.registerLinkMatcher=function(i,n,e){if(e===void 0&&(e={}),!n)throw new Error("handler must be defined");var l={id:this._nextLinkMatcherId++,regex:i,handler:n,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},r.prototype._addLinkMatcherToList=function(i){if(this._linkMatchers.length!==0){for(var n=this._linkMatchers.length-1;n>=0;n--)if(i.priority<=this._linkMatchers[n].priority)return void this._linkMatchers.splice(n+1,0,i);this._linkMatchers.splice(0,0,i)}else this._linkMatchers.push(i)},r.prototype.deregisterLinkMatcher=function(i){for(var n=0;n<this._linkMatchers.length;n++)if(this._linkMatchers[n].id===i)return this._linkMatchers.splice(n,1),!0;return!1},r.prototype._doLinkifyRow=function(i,n,e){for(var l,t=this,a=new RegExp(e.regex.source,(e.regex.flags||"")+"g"),s=-1,u=function(){var m=l[typeof e.matchIndex!="number"?0:e.matchIndex];if(!m)return h._logService.debug("match found without corresponding matchIndex",l,e),"break";if(s=n.indexOf(m,s+1),a.lastIndex=s+m.length,s<0)return"break";var v=h._bufferService.buffer.stringIndexToBufferIndex(i,s);if(v[0]<0)return"break";var y=h._bufferService.buffer.lines.get(v[0]);if(!y)return"break";var E=y.getFg(v[1]),T=E?E>>9&511:void 0;e.validationCallback?e.validationCallback(m,function(b){t._rowsTimeoutId||b&&t._addLink(v[1],v[0]-t._bufferService.buffer.ydisp,m,e,T)}):h._addLink(v[1],v[0]-h._bufferService.buffer.ydisp,m,e,T)},h=this;(l=a.exec(n))!==null&&!(u()==="break"););},r.prototype._addLink=function(i,n,e,l,t){var a=this;if(this._mouseZoneManager&&this._element){var s=this._unicodeService.getStringCellWidth(e),u=i%this._bufferService.cols,h=n+Math.floor(i/this._bufferService.cols),p=(u+s)%this._bufferService.cols,m=h+Math.floor((u+s)/this._bufferService.cols);p===0&&(p=this._bufferService.cols,m--),this._mouseZoneManager.add(new o(u+1,h+1,p+1,m+1,function(v){if(l.handler)return l.handler(v,e);var y=window.open();y?(y.opener=null,y.location.href=e):console.warn("Opening link blocked as opener could not be cleared")},function(){a._onShowLinkUnderline.fire(a._createLinkHoverEvent(u,h,p,m,t)),a._element.classList.add("xterm-cursor-pointer")},function(v){a._onLinkTooltip.fire(a._createLinkHoverEvent(u,h,p,m,t)),l.hoverTooltipCallback&&l.hoverTooltipCallback(v,e,{start:{x:u,y:h},end:{x:p,y:m}})},function(){a._onHideLinkUnderline.fire(a._createLinkHoverEvent(u,h,p,m,t)),a._element.classList.remove("xterm-cursor-pointer"),l.hoverLeaveCallback&&l.hoverLeaveCallback()},function(v){return!l.willLinkActivate||l.willLinkActivate(v,e)}))}},r.prototype._createLinkHoverEvent=function(i,n,e,l,t){return{x1:i,y1:n,x2:e,y2:l,cols:this._bufferService.cols,fg:t}},r._timeBeforeLatency=200,r=A([S(0,f.IBufferService),S(1,f.ILogService),S(2,f.IUnicodeService)],r)}();x.Linkifier=c;var o=function(i,n,e,l,t,a,s,u,h){this.x1=i,this.y1=n,this.x2=e,this.y2=l,this.clickCallback=t,this.hoverCallback=a,this.tooltipCallback=s,this.leaveCallback=u,this.willLinkActivate=h};x.MouseZone=o},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(m,v){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var T in E)E.hasOwnProperty(T)&&(y[T]=E[T])})(m,v)},function(p,m){function v(){this.constructor=p}A(p,m),p.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}),g=this&&this.__decorate||function(p,m,v,y){var E,T=arguments.length,b=T<3?m:y===null?y=Object.getOwnPropertyDescriptor(m,v):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(p,m,v,y);else for(var w=p.length-1;w>=0;w--)(E=p[w])&&(b=(T<3?E(b):T>3?E(m,v,b):E(m,v))||b);return T>3&&b&&Object.defineProperty(m,v,b),b},f=this&&this.__param||function(p,m){return function(v,y){m(v,y,p)}};Object.defineProperty(x,"__esModule",{value:!0}),x.SelectionService=void 0;var c=C(11),o=C(52),r=C(4),i=C(0),n=C(5),e=C(1),l=C(30),t=C(53),a=C(2),s=String.fromCharCode(160),u=new RegExp(s,"g"),h=function(p){function m(v,y,E,T,b,w,_){var I=p.call(this)||this;return I._element=v,I._screenElement=y,I._bufferService=E,I._coreService=T,I._mouseService=b,I._optionsService=w,I._renderService=_,I._dragScrollAmount=0,I._enabled=!0,I._workCell=new r.CellData,I._mouseDownTimeStamp=0,I._onLinuxMouseSelection=I.register(new i.EventEmitter),I._onRedrawRequest=I.register(new i.EventEmitter),I._onSelectionChange=I.register(new i.EventEmitter),I._onRequestScrollLines=I.register(new i.EventEmitter),I._mouseMoveListener=function(L){return I._onMouseMove(L)},I._mouseUpListener=function(L){return I._onMouseUp(L)},I._coreService.onUserInput(function(){I.hasSelection&&I.clearSelection()}),I._trimListener=I._bufferService.buffer.lines.onTrim(function(L){return I._onTrim(L)}),I.register(I._bufferService.buffers.onBufferActivate(function(L){return I._onBufferActivate(L)})),I.enable(),I._model=new o.SelectionModel(I._bufferService),I._activeSelectionMode=0,I}return S(m,p),Object.defineProperty(m.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),m.prototype.dispose=function(){this._removeMouseDownListeners()},m.prototype.reset=function(){this.clearSelection()},m.prototype.disable=function(){this.clearSelection(),this._enabled=!1},m.prototype.enable=function(){this._enabled=!0},Object.defineProperty(m.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"hasSelection",{get:function(){var y=this._model.finalSelectionStart,E=this._model.finalSelectionEnd;return!(!y||!E)&&(y[0]!==E[0]||y[1]!==E[1])},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"selectionText",{get:function(){var y=this._model.finalSelectionStart,E=this._model.finalSelectionEnd;if(!y||!E)return"";var T=this._bufferService.buffer,b=[];if(this._activeSelectionMode===3){if(y[0]===E[0])return"";for(var w=y[1];w<=E[1];w++){var _=T.translateBufferLineToString(w,!0,y[0],E[0]);b.push(_)}}else{var I=y[1]===E[1]?E[0]:void 0;for(b.push(T.translateBufferLineToString(y[1],!0,y[0],I)),w=y[1]+1;w<=E[1]-1;w++){var L=T.lines.get(w);_=T.translateBufferLineToString(w,!0),L&&L.isWrapped?b[b.length-1]+=_:b.push(_)}y[1]!==E[1]&&(L=T.lines.get(E[1]),_=T.translateBufferLineToString(E[1],!0,0,E[0]),L&&L.isWrapped?b[b.length-1]+=_:b.push(_))}return b.map(function(N){return N.replace(u," ")}).join(c.isWindows?`\r
|
|
|
`:`
|
|
|
`)},enumerable:!1,configurable:!0}),m.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},m.prototype.refresh=function(v){var y=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return y._refresh()})),c.isLinux&&v)&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},m.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},m.prototype.isClickInSelection=function(v){var y=this._getMouseBufferCoords(v),E=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;return!!(E&&T&&y)&&this._areCoordsInSelection(y,E,T)},m.prototype._areCoordsInSelection=function(v,y,E){return v[1]>y[1]&&v[1]<E[1]||y[1]===E[1]&&v[1]===y[1]&&v[0]>=y[0]&&v[0]<E[0]||y[1]<E[1]&&v[1]===E[1]&&v[0]<E[0]||y[1]<E[1]&&v[1]===y[1]&&v[0]>=y[0]},m.prototype.selectWordAtCursor=function(v){var y=this._getMouseBufferCoords(v);y&&(this._selectWordAt(y,!1),this._model.selectionEnd=void 0,this.refresh(!0))},m.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},m.prototype.selectLines=function(v,y){this._model.clearSelection(),v=Math.max(v,0),y=Math.min(y,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,v],this._model.selectionEnd=[this._bufferService.cols,y],this.refresh(),this._onSelectionChange.fire()},m.prototype._onTrim=function(v){this._model.onTrim(v)&&this.refresh()},m.prototype._getMouseBufferCoords=function(v){var y=this._mouseService.getCoords(v,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(y)return y[0]--,y[1]--,y[1]+=this._bufferService.buffer.ydisp,y},m.prototype._getMouseEventScrollAmount=function(v){var y=l.getCoordsRelativeToElement(v,this._screenElement)[1],E=this._renderService.dimensions.canvasHeight;return y>=0&&y<=E?0:(y>E&&(y-=E),y=Math.min(Math.max(y,-50),50),(y/=50)/Math.abs(y)+Math.round(14*y))},m.prototype.shouldForceSelection=function(v){return c.isMac?v.altKey&&this._optionsService.options.macOptionClickForcesSelection:v.shiftKey},m.prototype.onMouseDown=function(v){if(this._mouseDownTimeStamp=v.timeStamp,(v.button!==2||!this.hasSelection)&&v.button===0){if(!this._enabled){if(!this.shouldForceSelection(v))return;v.stopPropagation()}v.preventDefault(),this._dragScrollAmount=0,this._enabled&&v.shiftKey?this._onIncrementalClick(v):v.detail===1?this._onSingleClick(v):v.detail===2?this._onDoubleClick(v):v.detail===3&&this._onTripleClick(v),this._addMouseDownListeners(),this.refresh(!0)}},m.prototype._addMouseDownListeners=function(){var v=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return v._dragScroll()},50)},m.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},m.prototype._onIncrementalClick=function(v){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(v))},m.prototype._onSingleClick=function(v){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(v)?3:0,this._model.selectionStart=this._getMouseBufferCoords(v),this._model.selectionStart){this._model.selectionEnd=void 0;var y=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);y&&y.length!==this._model.selectionStart[0]&&y.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},m.prototype._onDoubleClick=function(v){var y=this._getMouseBufferCoords(v);y&&(this._activeSelectionMode=1,this._selectWordAt(y,!0))},m.prototype._onTripleClick=function(v){var y=this._getMouseBufferCoords(v);y&&(this._activeSelectionMode=2,this._selectLineAt(y[1]))},m.prototype.shouldColumnSelect=function(v){return v.altKey&&!(c.isMac&&this._optionsService.options.macOptionClickForcesSelection)},m.prototype._onMouseMove=function(v){if(v.stopImmediatePropagation(),this._model.selectionStart){var y=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(v),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(v),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var E=this._bufferService.buffer;if(this._model.selectionEnd[1]<E.lines.length){var T=E.lines.get(this._model.selectionEnd[1]);T&&T.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}y&&y[0]===this._model.selectionEnd[0]&&y[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},m.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var v=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(v.ydisp+this._bufferService.rows,v.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=v.ydisp),this.refresh()}},m.prototype._onMouseUp=function(v){var y=v.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&y<500&&v.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var E=this._mouseService.getCoords(v,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(E&&E[0]!==void 0&&E[1]!==void 0){var T=t.moveToCellSequence(E[0]-1,E[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(T,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},m.prototype._onBufferActivate=function(v){var y=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=v.activeBuffer.lines.onTrim(function(E){return y._onTrim(E)})},m.prototype._convertViewportColToCharacterIndex=function(v,y){for(var E=y[0],T=0;y[0]>=T;T++){var b=v.loadCell(T,this._workCell).getChars().length;this._workCell.getWidth()===0?E--:b>1&&y[0]!==T&&(E+=b-1)}return E},m.prototype.setSelection=function(v,y,E){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[v,y],this._model.selectionStartLength=E,this.refresh()},m.prototype._getWordAt=function(v,y,E,T){if(E===void 0&&(E=!0),T===void 0&&(T=!0),!(v[0]>=this._bufferService.cols)){var b=this._bufferService.buffer,w=b.lines.get(v[1]);if(w){var _=b.translateBufferLineToString(v[1],!1),I=this._convertViewportColToCharacterIndex(w,v),L=I,N=v[0]-I,D=0,R=0,k=0,M=0;if(_.charAt(I)===" "){for(;I>0&&_.charAt(I-1)===" ";)I--;for(;L<_.length&&_.charAt(L+1)===" ";)L++}else{var U=v[0],B=v[0];w.getWidth(U)===0&&(D++,U--),w.getWidth(B)===2&&(R++,B++);var j=w.getString(B).length;for(j>1&&(M+=j-1,L+=j-1);U>0&&I>0&&!this._isCharWordSeparator(w.loadCell(U-1,this._workCell));){w.loadCell(U-1,this._workCell);var W=this._workCell.getChars().length;this._workCell.getWidth()===0?(D++,U--):W>1&&(k+=W-1,I-=W-1),I--,U--}for(;B<w.length&&L+1<_.length&&!this._isCharWordSeparator(w.loadCell(B+1,this._workCell));){w.loadCell(B+1,this._workCell);var V=this._workCell.getChars().length;this._workCell.getWidth()===2?(R++,B++):V>1&&(M+=V-1,L+=V-1),L++,B++}}L++;var z=I+N-D+k,J=Math.min(this._bufferService.cols,L-I+D+R-k-M);if(y||_.slice(I,L).trim()!==""){if(E&&z===0&&w.getCodePoint(0)!==32){var Z=b.lines.get(v[1]-1);if(Z&&w.isWrapped&&Z.getCodePoint(this._bufferService.cols-1)!==32){var de=this._getWordAt([this._bufferService.cols-1,v[1]-1],!1,!0,!1);if(de){var ie=this._bufferService.cols-de.start;z-=ie,J+=ie}}}if(T&&z+J===this._bufferService.cols&&w.getCodePoint(this._bufferService.cols-1)!==32){var ve=b.lines.get(v[1]+1);if(ve&&ve.isWrapped&&ve.getCodePoint(0)!==32){var xe=this._getWordAt([0,v[1]+1],!1,!1,!0);xe&&(J+=xe.length)}}return{start:z,length:J}}}}},m.prototype._selectWordAt=function(v,y){var E=this._getWordAt(v,y);if(E){for(;E.start<0;)E.start+=this._bufferService.cols,v[1]--;this._model.selectionStart=[E.start,v[1]],this._model.selectionStartLength=E.length}},m.prototype._selectToWordAt=function(v){var y=this._getWordAt(v,!0);if(y){for(var E=v[1];y.start<0;)y.start+=this._bufferService.cols,E--;if(!this._model.areSelectionValuesReversed())for(;y.start+y.length>this._bufferService.cols;)y.length-=this._bufferService.cols,E++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?y.start:y.start+y.length,E]}},m.prototype._isCharWordSeparator=function(v){return v.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(v.getChars())>=0},m.prototype._selectLineAt=function(v){var y=this._bufferService.buffer.getWrappedRangeForLine(v);this._model.selectionStart=[0,y.first],this._model.selectionEnd=[this._bufferService.cols,y.last],this._model.selectionStartLength=0},m=g([f(2,e.IBufferService),f(3,e.ICoreService),f(4,n.IMouseService),f(5,e.IOptionsService),f(6,n.IRenderService)],m)}(a.Disposable);x.SelectionService=h},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.SelectionModel=void 0;var A=function(){function S(g){this._bufferService=g,this.isSelectAllActive=!1,this.selectionStartLength=0}return S.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(S.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(S.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 f=this.selectionStart[0]+this.selectionStartLength;return f>this._bufferService.cols?[f%this._bufferService.cols,this.selectionStart[1]+Math.floor(f/this._bufferService.cols)]:[f,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}),S.prototype.areSelectionValuesReversed=function(){var g=this.selectionStart,f=this.selectionEnd;return!(!g||!f)&&(g[1]>f[1]||g[1]===f[1]&&g[0]>f[0])},S.prototype.onTrim=function(g){return this.selectionStart&&(this.selectionStart[1]-=g),this.selectionEnd&&(this.selectionEnd[1]-=g),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},S}();x.SelectionModel=A},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.moveToCellSequence=void 0;var A=C(12);function S(i,n,e,l){var t=i-g(e,i),a=n-g(e,n);return r(Math.abs(t-a)-function(s,u,h){for(var p=0,m=s-g(h,s),v=u-g(h,u),y=0;y<Math.abs(m-v);y++){var E=f(s,u)==="A"?-1:1,T=h.buffer.lines.get(m+E*y);T&&T.isWrapped&&p++}return p}(i,n,e),o(f(i,n),l))}function g(i,n){for(var e=0,l=i.buffer.lines.get(n),t=l&&l.isWrapped;t&&n>=0&&n<i.rows;)e++,t=(l=i.buffer.lines.get(--n))&&l.isWrapped;return e}function f(i,n){return i>n?"A":"B"}function c(i,n,e,l,t,a){for(var s=i,u=n,h="";s!==e||u!==l;)s+=t?1:-1,t&&s>a.cols-1?(h+=a.buffer.translateBufferLineToString(u,!1,i,s),s=0,i=0,u++):!t&&s<0&&(h+=a.buffer.translateBufferLineToString(u,!1,0,i+1),i=s=a.cols-1,u--);return h+a.buffer.translateBufferLineToString(u,!1,i,s)}function o(i,n){var e=n?"O":"[";return A.C0.ESC+e+i}function r(i,n){i=Math.floor(i);for(var e="",l=0;l<i;l++)e+=n;return e}x.moveToCellSequence=function(i,n,e,l){var t,a=e.buffer.x,s=e.buffer.y;if(!e.buffer.hasScrollback)return function(h,p,m,v,y,E){return S(p,v,y,E).length===0?"":r(c(h,p,h,p-g(y,p),!1,y).length,o("D",E))}(a,s,0,n,e,l)+S(s,n,e,l)+function(h,p,m,v,y,E){var T;T=S(p,v,y,E).length>0?v-g(y,v):p;var b=v,w=function(_,I,L,N,D,R){var k;return k=S(L,N,D,R).length>0?N-g(D,N):I,_<L&&k<=N||_>=L&&k<N?"C":"D"}(h,p,m,v,y,E);return r(c(h,T,m,b,w==="C",y).length,o(w,E))}(a,s,i,n,e,l);if(s===n)return t=a>i?"D":"C",r(Math.abs(a-i),o(t,l));t=s>n?"D":"C";var u=Math.abs(s-n);return r(function(h,p){return p.cols-h}(s>n?i:a,e)+(u-1)*e.cols+1+((s>n?a:i)-1),o(t,l))}},function(O,x,C){"use strict";var A=this&&this.__decorate||function(c,o,r,i){var n,e=arguments.length,l=e<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,r):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(c,o,r,i);else for(var t=c.length-1;t>=0;t--)(n=c[t])&&(l=(e<3?n(l):e>3?n(o,r,l):n(o,r))||l);return e>3&&l&&Object.defineProperty(o,r,l),l},S=this&&this.__param||function(c,o){return function(r,i){o(r,i,c)}};Object.defineProperty(x,"__esModule",{value:!0}),x.SoundService=void 0;var g=C(1),f=function(){function c(o){this._optionsService=o}return Object.defineProperty(c,"audioContext",{get:function(){if(!c._audioContext){var r=window.AudioContext||window.webkitAudioContext;if(!r)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;c._audioContext=new r}return c._audioContext},enumerable:!1,configurable:!0}),c.prototype.playBellSound=function(){var o=c.audioContext;if(o){var r=o.createBufferSource();o.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(i){r.buffer=i,r.connect(o.destination),r.start(0)})}},c.prototype._base64ToArrayBuffer=function(o){for(var r=window.atob(o),i=r.length,n=new Uint8Array(i),e=0;e<i;e++)n[e]=r.charCodeAt(e);return n.buffer},c.prototype._removeMimeType=function(o){return o.split(",")[1]},c=A([S(0,g.IOptionsService)],c)}();x.SoundService=f},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(l,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u])})(l,t)},function(e,l){function t(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)}),g=this&&this.__decorate||function(e,l,t,a){var s,u=arguments.length,h=u<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,l,t,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(h=(u<3?s(h):u>3?s(l,t,h):s(l,t))||h);return u>3&&h&&Object.defineProperty(l,t,h),h},f=this&&this.__param||function(e,l){return function(t,a){l(t,a,e)}};Object.defineProperty(x,"__esModule",{value:!0}),x.MouseZoneManager=void 0;var c=C(2),o=C(7),r=C(5),i=C(1),n=function(e){function l(t,a,s,u,h,p){var m=e.call(this)||this;return m._element=t,m._screenElement=a,m._bufferService=s,m._mouseService=u,m._selectionService=h,m._optionsService=p,m._zones=[],m._areZonesActive=!1,m._lastHoverCoords=[void 0,void 0],m._initialSelectionLength=0,m.register(o.addDisposableDomListener(m._element,"mousedown",function(v){return m._onMouseDown(v)})),m._mouseMoveListener=function(v){return m._onMouseMove(v)},m._mouseLeaveListener=function(v){return m._onMouseLeave(v)},m._clickListener=function(v){return m._onClick(v)},m}return S(l,e),l.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},l.prototype.add=function(t){this._zones.push(t),this._zones.length===1&&this._activate()},l.prototype.clearAll=function(t,a){if(this._zones.length!==0){t&&a||(t=0,a=this._bufferService.rows-1);for(var s=0;s<this._zones.length;s++){var u=this._zones[s];(u.y1>t&&u.y1<=a+1||u.y2>t&&u.y2<=a+1||u.y1<t&&u.y2>a+1)&&(this._currentZone&&this._currentZone===u&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(s--,1))}this._zones.length===0&&this._deactivate()}},l.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},l.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},l.prototype._onMouseMove=function(t){this._lastHoverCoords[0]===t.pageX&&this._lastHoverCoords[1]===t.pageY||(this._onHover(t),this._lastHoverCoords=[t.pageX,t.pageY])},l.prototype._onHover=function(t){var a=this,s=this._findZoneEventAt(t);s!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),s&&(this._currentZone=s,s.hoverCallback&&s.hoverCallback(t),this._tooltipTimeout=window.setTimeout(function(){return a._onTooltip(t)},this._optionsService.options.linkTooltipHoverDuration)))},l.prototype._onTooltip=function(t){this._tooltipTimeout=void 0;var a=this._findZoneEventAt(t);a&&a.tooltipCallback&&a.tooltipCallback(t)},l.prototype._onMouseDown=function(t){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var a=this._findZoneEventAt(t);(a==null?void 0:a.willLinkActivate(t))&&(t.preventDefault(),t.stopImmediatePropagation())}},l.prototype._onMouseLeave=function(t){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},l.prototype._onClick=function(t){var a=this._findZoneEventAt(t),s=this._getSelectionLength();a&&s===this._initialSelectionLength&&(a.clickCallback(t),t.preventDefault(),t.stopImmediatePropagation())},l.prototype._getSelectionLength=function(){var t=this._selectionService.selectionText;return t?t.length:0},l.prototype._findZoneEventAt=function(t){var a=this._mouseService.getCoords(t,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(a)for(var s=a[0],u=a[1],h=0;h<this._zones.length;h++){var p=this._zones[h];if(p.y1===p.y2){if(u===p.y1&&s>=p.x1&&s<p.x2)return p}else if(u===p.y1&&s>=p.x1||u===p.y2&&s<p.x2||u>p.y1&&u<p.y2)return p}},l=g([f(2,i.IBufferService),f(3,r.IMouseService),f(4,r.ISelectionService),f(5,i.IOptionsService)],l)}(c.Disposable);x.MouseZoneManager=n},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(t,a){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var h in u)u.hasOwnProperty(h)&&(s[h]=u[h])})(t,a)},function(l,t){function a(){this.constructor=l}A(l,t),l.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(x,"__esModule",{value:!0}),x.AccessibilityManager=void 0;var g=C(18),f=C(11),c=C(31),o=C(7),r=C(2),i=C(32),n=C(17),e=function(l){function t(a,s){var u=l.call(this)||this;u._terminal=a,u._renderService=s,u._liveRegionLineCount=0,u._charsToConsume=[],u._charsToAnnounce="",u._accessibilityTreeRoot=document.createElement("div"),u._accessibilityTreeRoot.classList.add("xterm-accessibility"),u._rowContainer=document.createElement("div"),u._rowContainer.classList.add("xterm-accessibility-tree"),u._rowContainer.setAttribute("role","list"),u._rowElements=[];for(var h=0;h<u._terminal.rows;h++)u._rowElements[h]=u._createAccessibilityTreeNode(),u._rowContainer.appendChild(u._rowElements[h]);if(u._topBoundaryFocusListener=function(p){return u._onBoundaryFocus(p,0)},u._bottomBoundaryFocusListener=function(p){return u._onBoundaryFocus(p,1)},u._rowElements[0].addEventListener("focus",u._topBoundaryFocusListener),u._rowElements[u._rowElements.length-1].addEventListener("focus",u._bottomBoundaryFocusListener),u._refreshRowsDimensions(),u._accessibilityTreeRoot.appendChild(u._rowContainer),u._renderRowsDebouncer=new c.RenderDebouncer(u._renderRows.bind(u)),u._refreshRows(),u._liveRegion=document.createElement("div"),u._liveRegion.classList.add("live-region"),u._liveRegion.setAttribute("aria-live","assertive"),u._accessibilityTreeRoot.appendChild(u._liveRegion),!u._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return u._terminal.element.insertAdjacentElement("afterbegin",u._accessibilityTreeRoot),u.register(u._renderRowsDebouncer),u.register(u._terminal.onResize(function(p){return u._onResize(p.rows)})),u.register(u._terminal.onRender(function(p){return u._refreshRows(p.start,p.end)})),u.register(u._terminal.onScroll(function(){return u._refreshRows()})),u.register(u._terminal.onA11yChar(function(p){return u._onChar(p)})),u.register(u._terminal.onLineFeed(function(){return u._onChar(`
|
|
|
`)})),u.register(u._terminal.onA11yTab(function(p){return u._onTab(p)})),u.register(u._terminal.onKey(function(p){return u._onKey(p.key)})),u.register(u._terminal.onBlur(function(){return u._clearLiveRegion()})),u.register(u._renderService.onDimensionsChange(function(){return u._refreshRowsDimensions()})),u._screenDprMonitor=new i.ScreenDprMonitor,u.register(u._screenDprMonitor),u._screenDprMonitor.setListener(function(){return u._refreshRowsDimensions()}),u.register(o.addDisposableDomListener(window,"resize",function(){return u._refreshRowsDimensions()})),u}return S(t,l),t.prototype.dispose=function(){l.prototype.dispose.call(this),n.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},t.prototype._onBoundaryFocus=function(a,s){var u=a.target,h=this._rowElements[s===0?1:this._rowElements.length-2];if(u.getAttribute("aria-posinset")!==(s===0?"1":""+this._terminal.buffer.lines.length)&&a.relatedTarget===h){var p,m;if(s===0?(p=u,m=this._rowElements.pop(),this._rowContainer.removeChild(m)):(p=this._rowElements.shift(),m=u,this._rowContainer.removeChild(p)),p.removeEventListener("focus",this._topBoundaryFocusListener),m.removeEventListener("focus",this._bottomBoundaryFocusListener),s===0){var v=this._createAccessibilityTreeNode();this._rowElements.unshift(v),this._rowContainer.insertAdjacentElement("afterbegin",v)}else v=this._createAccessibilityTreeNode(),this._rowElements.push(v),this._rowContainer.appendChild(v);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(s===0?-1:1),this._rowElements[s===0?1:this._rowElements.length-2].focus(),a.preventDefault(),a.stopImmediatePropagation()}},t.prototype._onResize=function(a){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var s=this._rowContainer.children.length;s<this._terminal.rows;s++)this._rowElements[s]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[s]);for(;this._rowElements.length>a;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},t.prototype._createAccessibilityTreeNode=function(){var a=document.createElement("div");return a.setAttribute("role","listitem"),a.tabIndex=-1,this._refreshRowDimensions(a),a},t.prototype._onTab=function(a){for(var s=0;s<a;s++)this._onChar(" ")},t.prototype._onChar=function(a){var s=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==a&&(this._charsToAnnounce+=a):this._charsToAnnounce+=a,a===`
|
|
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=g.tooMuchOutput)),f.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){s._accessibilityTreeRoot.appendChild(s._liveRegion)},0))},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,f.isMac&&n.removeElementFromParent(this._liveRegion)},t.prototype._onKey=function(a){this._clearLiveRegion(),this._charsToConsume.push(a)},t.prototype._refreshRows=function(a,s){this._renderRowsDebouncer.refresh(a,s,this._terminal.rows)},t.prototype._renderRows=function(a,s){for(var u=this._terminal.buffer,h=u.lines.length.toString(),p=a;p<=s;p++){var m=u.translateBufferLineToString(u.ydisp+p,!0),v=(u.ydisp+p+1).toString(),y=this._rowElements[p];y&&(m.length===0?y.innerHTML=" ":y.textContent=m,y.setAttribute("aria-posinset",v),y.setAttribute("aria-setsize",h))}this._announceCharacters()},t.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var a=0;a<this._terminal.rows;a++)this._refreshRowDimensions(this._rowElements[a])}},t.prototype._refreshRowDimensions=function(a){a.style.height=this._renderService.dimensions.actualCellHeight+"px"},t.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},t}(r.Disposable);x.AccessibilityManager=e},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(h,p){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var y in v)v.hasOwnProperty(y)&&(m[y]=v[y])})(h,p)},function(u,h){function p(){this.constructor=u}A(u,h),u.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}),g=this&&this.__decorate||function(u,h,p,m){var v,y=arguments.length,E=y<3?h:m===null?m=Object.getOwnPropertyDescriptor(h,p):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(u,h,p,m);else for(var T=u.length-1;T>=0;T--)(v=u[T])&&(E=(y<3?v(E):y>3?v(h,p,E):v(h,p))||E);return y>3&&E&&Object.defineProperty(h,p,E),E},f=this&&this.__param||function(u,h){return function(p,m){h(p,m,u)}};Object.defineProperty(x,"__esModule",{value:!0}),x.DomRenderer=void 0;var c=C(58),o=C(9),r=C(2),i=C(5),n=C(1),e=C(0),l=C(10),t=C(17),a=1,s=function(u){function h(p,m,v,y,E,T,b,w,_){var I=u.call(this)||this;return I._colors=p,I._element=m,I._screenElement=v,I._viewportElement=y,I._linkifier=E,I._linkifier2=T,I._charSizeService=b,I._optionsService=w,I._bufferService=_,I._terminalClass=a++,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 c.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(L){return I._onLinkHover(L)}),I._linkifier.onHideLinkUnderline(function(L){return I._onLinkLeave(L)}),I._linkifier2.onShowLinkUnderline(function(L){return I._onLinkHover(L)}),I._linkifier2.onHideLinkUnderline(function(L){return I._onLinkLeave(L)}),I}return S(h,u),Object.defineProperty(h.prototype,"onRequestRedraw",{get:function(){return new e.EventEmitter().event},enumerable:!1,configurable:!0}),h.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),t.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),u.prototype.dispose.call(this)},h.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 p=0,m=this._rowElements;p<m.length;p++){var v=m[p];v.style.width=this.dimensions.canvasWidth+"px",v.style.height=this.dimensions.actualCellHeight+"px",v.style.lineHeight=this.dimensions.actualCellHeight+"px",v.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var y=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=y,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},h.prototype.setColors=function(p){this._colors=p,this._injectCss()},h.prototype._injectCss=function(){var p=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var m=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";m+=this._terminalSelector+" span:not(."+c.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+c.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+c.ITALIC_CLASS+" { font-style: italic;}",m+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",m+="@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+"; }}",m+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+c.CURSOR_CLASS+"."+c.CURSOR_BLINK_CLASS+":not(."+c.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+c.CURSOR_CLASS+"."+c.CURSOR_BLINK_CLASS+"."+c.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+c.CURSOR_CLASS+"."+c.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",m+=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(v,y){m+=p._terminalSelector+" .xterm-fg-"+y+" { color: "+v.css+"; }"+p._terminalSelector+" .xterm-bg-"+y+" { background-color: "+v.css+"; }"}),m+=this._terminalSelector+" .xterm-fg-"+o.INVERTED_DEFAULT_COLOR+" { color: "+l.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+o.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=m},h.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},h.prototype._refreshRowElements=function(p,m){for(var v=this._rowElements.length;v<=m;v++){var y=document.createElement("div");this._rowContainer.appendChild(y),this._rowElements.push(y)}for(;this._rowElements.length>m;)this._rowContainer.removeChild(this._rowElements.pop())},h.prototype.onResize=function(p,m){this._refreshRowElements(p,m),this._updateDimensions()},h.prototype.onCharSizeChanged=function(){this._updateDimensions()},h.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},h.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},h.prototype.onSelectionChanged=function(p,m,v){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(p&&m){var y=p[1]-this._bufferService.buffer.ydisp,E=m[1]-this._bufferService.buffer.ydisp,T=Math.max(y,0),b=Math.min(E,this._bufferService.rows-1);if(!(T>=this._bufferService.rows||b<0)){var w=document.createDocumentFragment();if(v)w.appendChild(this._createSelectionElement(T,p[0],m[0],b-T+1));else{var _=y===T?p[0]:0,I=T===b?m[0]:this._bufferService.cols;w.appendChild(this._createSelectionElement(T,_,I));var L=b-T-1;if(w.appendChild(this._createSelectionElement(T+1,0,this._bufferService.cols,L)),T!==b){var N=E===b?m[0]:this._bufferService.cols;w.appendChild(this._createSelectionElement(b,0,N))}}this._selectionContainer.appendChild(w)}}},h.prototype._createSelectionElement=function(p,m,v,y){y===void 0&&(y=1);var E=document.createElement("div");return E.style.height=y*this.dimensions.actualCellHeight+"px",E.style.top=p*this.dimensions.actualCellHeight+"px",E.style.left=m*this.dimensions.actualCellWidth+"px",E.style.width=this.dimensions.actualCellWidth*(v-m)+"px",E},h.prototype.onCursorMove=function(){},h.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},h.prototype.clear=function(){for(var p=0,m=this._rowElements;p<m.length;p++)m[p].innerHTML=""},h.prototype.renderRows=function(p,m){for(var v=this._bufferService.buffer.ybase+this._bufferService.buffer.y,y=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),E=this._optionsService.options.cursorBlink,T=p;T<=m;T++){var b=this._rowElements[T];b.innerHTML="";var w=T+this._bufferService.buffer.ydisp,_=this._bufferService.buffer.lines.get(w),I=this._optionsService.options.cursorStyle;b.appendChild(this._rowFactory.createRow(_,w===v,I,y,E,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(h.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),h.prototype.registerCharacterJoiner=function(p){return-1},h.prototype.deregisterCharacterJoiner=function(p){return!1},h.prototype._onLinkHover=function(p){this._setCellUnderline(p.x1,p.x2,p.y1,p.y2,p.cols,!0)},h.prototype._onLinkLeave=function(p){this._setCellUnderline(p.x1,p.x2,p.y1,p.y2,p.cols,!1)},h.prototype._setCellUnderline=function(p,m,v,y,E,T){for(;p!==m||v!==y;){var b=this._rowElements[v];if(!b)return;var w=b.children[p];w&&(w.style.textDecoration=T?"underline":"none"),++p>=E&&(p=0,v++)}},h=g([f(6,i.ICharSizeService),f(7,n.IOptionsService),f(8,n.IBufferService)],h)}(r.Disposable);x.DomRenderer=s},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.DomRendererRowFactory=x.CURSOR_STYLE_UNDERLINE_CLASS=x.CURSOR_STYLE_BAR_CLASS=x.CURSOR_STYLE_BLOCK_CLASS=x.CURSOR_BLINK_CLASS=x.CURSOR_CLASS=x.UNDERLINE_CLASS=x.ITALIC_CLASS=x.DIM_CLASS=x.BOLD_CLASS=void 0;var A=C(9),S=C(3),g=C(4),f=C(10);x.BOLD_CLASS="xterm-bold",x.DIM_CLASS="xterm-dim",x.ITALIC_CLASS="xterm-italic",x.UNDERLINE_CLASS="xterm-underline",x.CURSOR_CLASS="xterm-cursor",x.CURSOR_BLINK_CLASS="xterm-cursor-blink",x.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",x.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",x.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var c=function(){function r(i,n,e){this._document=i,this._optionsService=n,this._colors=e,this._workCell=new g.CellData}return r.prototype.setColors=function(i){this._colors=i},r.prototype.createRow=function(i,n,e,l,t,a,s){for(var u=this._document.createDocumentFragment(),h=0,p=Math.min(i.length,s)-1;p>=0;p--)if(i.loadCell(p,this._workCell).getCode()!==S.NULL_CELL_CODE||n&&p===l){h=p+1;break}for(p=0;p<h;p++){i.loadCell(p,this._workCell);var m=this._workCell.getWidth();if(m!==0){var v=this._document.createElement("span");if(m>1&&(v.style.width=a*m+"px"),n&&p===l)switch(v.classList.add(x.CURSOR_CLASS),t&&v.classList.add(x.CURSOR_BLINK_CLASS),e){case"bar":v.classList.add(x.CURSOR_STYLE_BAR_CLASS);break;case"underline":v.classList.add(x.CURSOR_STYLE_UNDERLINE_CLASS);break;default:v.classList.add(x.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&v.classList.add(x.BOLD_CLASS),this._workCell.isItalic()&&v.classList.add(x.ITALIC_CLASS),this._workCell.isDim()&&v.classList.add(x.DIM_CLASS),this._workCell.isUnderline()&&v.classList.add(x.UNDERLINE_CLASS),this._workCell.isInvisible()?v.textContent=S.WHITESPACE_CELL_CHAR:v.textContent=this._workCell.getChars()||S.WHITESPACE_CELL_CHAR;var y=this._workCell.getFgColor(),E=this._workCell.getFgColorMode(),T=this._workCell.getBgColor(),b=this._workCell.getBgColorMode(),w=!!this._workCell.isInverse();if(w){var _=y;y=T,T=_;var I=E;E=b,b=I}switch(E){case 16777216:case 33554432:this._workCell.isBold()&&y<8&&this._optionsService.options.drawBoldTextInBrightColors&&(y+=8),this._applyMinimumContrast(v,this._colors.background,this._colors.ansi[y])||v.classList.add("xterm-fg-"+y);break;case 50331648:var L=f.rgba.toColor(y>>16&255,y>>8&255,255&y);this._applyMinimumContrast(v,this._colors.background,L)||this._addStyle(v,"color:#"+o(y.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(v,this._colors.background,this._colors.foreground)||w&&v.classList.add("xterm-fg-"+A.INVERTED_DEFAULT_COLOR)}switch(b){case 16777216:case 33554432:v.classList.add("xterm-bg-"+T);break;case 50331648:this._addStyle(v,"background-color:#"+o(T.toString(16),"0",6));break;case 0:default:w&&v.classList.add("xterm-bg-"+A.INVERTED_DEFAULT_COLOR)}u.appendChild(v)}}return u},r.prototype._applyMinimumContrast=function(i,n,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=f.color.ensureContrastRatio(n,e,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,l!=null?l:null)),!!l&&(this._addStyle(i,"color:"+l.css),!0)},r.prototype._addStyle=function(i,n){i.setAttribute("style",""+(i.getAttribute("style")||"")+n+";")},r}();function o(r,i,n){for(;r.length<n;)r=i+r;return r}x.DomRendererRowFactory=c},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.evaluateKeyboardEvent=void 0;var A=C(12),S={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:["'",'"']};x.evaluateKeyboardEvent=function(g,f,c,o){var r={type:0,cancel:!1,key:void 0},i=(g.shiftKey?1:0)|(g.altKey?2:0)|(g.ctrlKey?4:0)|(g.metaKey?8:0);switch(g.keyCode){case 0:g.key==="UIKeyInputUpArrow"?r.key=f?A.C0.ESC+"OA":A.C0.ESC+"[A":g.key==="UIKeyInputLeftArrow"?r.key=f?A.C0.ESC+"OD":A.C0.ESC+"[D":g.key==="UIKeyInputRightArrow"?r.key=f?A.C0.ESC+"OC":A.C0.ESC+"[C":g.key==="UIKeyInputDownArrow"&&(r.key=f?A.C0.ESC+"OB":A.C0.ESC+"[B");break;case 8:if(g.shiftKey){r.key=A.C0.BS;break}if(g.altKey){r.key=A.C0.ESC+A.C0.DEL;break}r.key=A.C0.DEL;break;case 9:if(g.shiftKey){r.key=A.C0.ESC+"[Z";break}r.key=A.C0.HT,r.cancel=!0;break;case 13:r.key=g.altKey?A.C0.ESC+A.C0.CR:A.C0.CR,r.cancel=!0;break;case 27:r.key=A.C0.ESC,g.altKey&&(r.key=A.C0.ESC+A.C0.ESC),r.cancel=!0;break;case 37:if(g.metaKey)break;i?(r.key=A.C0.ESC+"[1;"+(i+1)+"D",r.key===A.C0.ESC+"[1;3D"&&(r.key=A.C0.ESC+(c?"b":"[1;5D"))):r.key=f?A.C0.ESC+"OD":A.C0.ESC+"[D";break;case 39:if(g.metaKey)break;i?(r.key=A.C0.ESC+"[1;"+(i+1)+"C",r.key===A.C0.ESC+"[1;3C"&&(r.key=A.C0.ESC+(c?"f":"[1;5C"))):r.key=f?A.C0.ESC+"OC":A.C0.ESC+"[C";break;case 38:if(g.metaKey)break;i?(r.key=A.C0.ESC+"[1;"+(i+1)+"A",c||r.key!==A.C0.ESC+"[1;3A"||(r.key=A.C0.ESC+"[1;5A")):r.key=f?A.C0.ESC+"OA":A.C0.ESC+"[A";break;case 40:if(g.metaKey)break;i?(r.key=A.C0.ESC+"[1;"+(i+1)+"B",c||r.key!==A.C0.ESC+"[1;3B"||(r.key=A.C0.ESC+"[1;5B")):r.key=f?A.C0.ESC+"OB":A.C0.ESC+"[B";break;case 45:g.shiftKey||g.ctrlKey||(r.key=A.C0.ESC+"[2~");break;case 46:r.key=i?A.C0.ESC+"[3;"+(i+1)+"~":A.C0.ESC+"[3~";break;case 36:r.key=i?A.C0.ESC+"[1;"+(i+1)+"H":f?A.C0.ESC+"OH":A.C0.ESC+"[H";break;case 35:r.key=i?A.C0.ESC+"[1;"+(i+1)+"F":f?A.C0.ESC+"OF":A.C0.ESC+"[F";break;case 33:g.shiftKey?r.type=2:r.key=A.C0.ESC+"[5~";break;case 34:g.shiftKey?r.type=3:r.key=A.C0.ESC+"[6~";break;case 112:r.key=i?A.C0.ESC+"[1;"+(i+1)+"P":A.C0.ESC+"OP";break;case 113:r.key=i?A.C0.ESC+"[1;"+(i+1)+"Q":A.C0.ESC+"OQ";break;case 114:r.key=i?A.C0.ESC+"[1;"+(i+1)+"R":A.C0.ESC+"OR";break;case 115:r.key=i?A.C0.ESC+"[1;"+(i+1)+"S":A.C0.ESC+"OS";break;case 116:r.key=i?A.C0.ESC+"[15;"+(i+1)+"~":A.C0.ESC+"[15~";break;case 117:r.key=i?A.C0.ESC+"[17;"+(i+1)+"~":A.C0.ESC+"[17~";break;case 118:r.key=i?A.C0.ESC+"[18;"+(i+1)+"~":A.C0.ESC+"[18~";break;case 119:r.key=i?A.C0.ESC+"[19;"+(i+1)+"~":A.C0.ESC+"[19~";break;case 120:r.key=i?A.C0.ESC+"[20;"+(i+1)+"~":A.C0.ESC+"[20~";break;case 121:r.key=i?A.C0.ESC+"[21;"+(i+1)+"~":A.C0.ESC+"[21~";break;case 122:r.key=i?A.C0.ESC+"[23;"+(i+1)+"~":A.C0.ESC+"[23~";break;case 123:r.key=i?A.C0.ESC+"[24;"+(i+1)+"~":A.C0.ESC+"[24~";break;default:if(!g.ctrlKey||g.shiftKey||g.altKey||g.metaKey)if(c&&!o||!g.altKey||g.metaKey)c&&!g.altKey&&!g.ctrlKey&&g.metaKey?g.keyCode===65&&(r.type=1):g.key&&!g.ctrlKey&&!g.altKey&&!g.metaKey&&g.keyCode>=48&&g.key.length===1?r.key=g.key:g.key&&g.ctrlKey&&g.key==="_"&&(r.key=A.C0.US);else{var n=S[g.keyCode],e=n&&n[g.shiftKey?1:0];if(e)r.key=A.C0.ESC+e;else if(g.keyCode>=65&&g.keyCode<=90){var l=g.ctrlKey?g.keyCode-64:g.keyCode+32;r.key=A.C0.ESC+String.fromCharCode(l)}}else g.keyCode>=65&&g.keyCode<=90?r.key=String.fromCharCode(g.keyCode-64):g.keyCode===32?r.key=A.C0.NUL:g.keyCode>=51&&g.keyCode<=55?r.key=String.fromCharCode(g.keyCode-51+27):g.keyCode===56?r.key=A.C0.DEL:g.keyCode===219?r.key=A.C0.ESC:g.keyCode===220?r.key=A.C0.FS:g.keyCode===221&&(r.key=A.C0.GS)}return r}},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(s,u){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var m in p)p.hasOwnProperty(m)&&(h[m]=p[m])})(s,u)},function(a,s){function u(){this.constructor=a}A(a,s),a.prototype=s===null?Object.create(s):(u.prototype=s.prototype,new u)}),g=this&&this.__decorate||function(a,s,u,h){var p,m=arguments.length,v=m<3?s:h===null?h=Object.getOwnPropertyDescriptor(s,u):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(a,s,u,h);else for(var y=a.length-1;y>=0;y--)(p=a[y])&&(v=(m<3?p(v):m>3?p(s,u,v):p(s,u))||v);return m>3&&v&&Object.defineProperty(s,u,v),v},f=this&&this.__param||function(a,s){return function(u,h){s(u,h,a)}};Object.defineProperty(x,"__esModule",{value:!0}),x.RenderService=void 0;var c=C(31),o=C(0),r=C(2),i=C(32),n=C(7),e=C(1),l=C(5),t=function(a){function s(u,h,p,m,v,y){var E=a.call(this)||this;if(E._renderer=u,E._rowCount=h,E._isPaused=!1,E._needsFullRefresh=!1,E._isNextRenderRedrawOnly=!0,E._needsSelectionRefresh=!1,E._canvasWidth=0,E._canvasHeight=0,E._selectionState={start:void 0,end:void 0,columnSelectMode:!1},E._onDimensionsChange=new o.EventEmitter,E._onRender=new o.EventEmitter,E._onRefreshRequest=new o.EventEmitter,E.register({dispose:function(){return E._renderer.dispose()}}),E._renderDebouncer=new c.RenderDebouncer(function(b,w){return E._renderRows(b,w)}),E.register(E._renderDebouncer),E._screenDprMonitor=new i.ScreenDprMonitor,E._screenDprMonitor.setListener(function(){return E.onDevicePixelRatioChange()}),E.register(E._screenDprMonitor),E.register(y.onResize(function(b){return E._fullRefresh()})),E.register(m.onOptionChange(function(){return E._renderer.onOptionsChanged()})),E.register(v.onCharSizeChange(function(){return E.onCharSizeChanged()})),E._renderer.onRequestRedraw(function(b){return E.refreshRows(b.start,b.end,!0)}),E.register(n.addDisposableDomListener(window,"resize",function(){return E.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var T=new IntersectionObserver(function(b){return E._onIntersectionChange(b[b.length-1])},{threshold:0});T.observe(p),E.register({dispose:function(){return T.disconnect()}})}return E}return S(s,a),Object.defineProperty(s.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),s.prototype._onIntersectionChange=function(u){this._isPaused=u.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},s.prototype.refreshRows=function(u,h,p){p===void 0&&(p=!1),this._isPaused?this._needsFullRefresh=!0:(p||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(u,h,this._rowCount))},s.prototype._renderRows=function(u,h){this._renderer.renderRows(u,h),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:u,end:h}),this._isNextRenderRedrawOnly=!0},s.prototype.resize=function(u,h){this._rowCount=h,this._fireOnCanvasResize()},s.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},s.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},s.prototype.dispose=function(){a.prototype.dispose.call(this)},s.prototype.setRenderer=function(u){var h=this;this._renderer.dispose(),this._renderer=u,this._renderer.onRequestRedraw(function(p){return h.refreshRows(p.start,p.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},s.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},s.prototype.setColors=function(u){this._renderer.setColors(u),this._fullRefresh()},s.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},s.prototype.onResize=function(u,h){this._renderer.onResize(u,h),this._fullRefresh()},s.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},s.prototype.onBlur=function(){this._renderer.onBlur()},s.prototype.onFocus=function(){this._renderer.onFocus()},s.prototype.onSelectionChanged=function(u,h,p){this._selectionState.start=u,this._selectionState.end=h,this._selectionState.columnSelectMode=p,this._renderer.onSelectionChanged(u,h,p)},s.prototype.onCursorMove=function(){this._renderer.onCursorMove()},s.prototype.clear=function(){this._renderer.clear()},s.prototype.registerCharacterJoiner=function(u){return this._renderer.registerCharacterJoiner(u)},s.prototype.deregisterCharacterJoiner=function(u){return this._renderer.deregisterCharacterJoiner(u)},s=g([f(3,e.IOptionsService),f(4,l.ICharSizeService),f(5,e.IBufferService)],s)}(r.Disposable);x.RenderService=t},function(O,x,C){"use strict";var A=this&&this.__decorate||function(r,i,n,e){var l,t=arguments.length,a=t<3?i:e===null?e=Object.getOwnPropertyDescriptor(i,n):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,i,n,e);else for(var s=r.length-1;s>=0;s--)(l=r[s])&&(a=(t<3?l(a):t>3?l(i,n,a):l(i,n))||a);return t>3&&a&&Object.defineProperty(i,n,a),a},S=this&&this.__param||function(r,i){return function(n,e){i(n,e,r)}};Object.defineProperty(x,"__esModule",{value:!0}),x.CharSizeService=void 0;var g=C(1),f=C(0),c=function(){function r(i,n,e){this._optionsService=e,this.width=0,this.height=0,this._onCharSizeChange=new f.EventEmitter,this._measureStrategy=new o(i,n,this._optionsService)}return Object.defineProperty(r.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),r.prototype.measure=function(){var i=this._measureStrategy.measure();i.width===this.width&&i.height===this.height||(this.width=i.width,this.height=i.height,this._onCharSizeChange.fire())},r=A([S(2,g.IOptionsService)],r)}();x.CharSizeService=c;var o=function(){function r(i,n,e){this._document=i,this._parentElement=n,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 r.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var i=this._measureElement.getBoundingClientRect();return i.width!==0&&i.height!==0&&(this._result.width=i.width,this._result.height=Math.ceil(i.height)),this._result},r}()},function(O,x,C){"use strict";var A=this&&this.__decorate||function(o,r,i,n){var e,l=arguments.length,t=l<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,i):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,r,i,n);else for(var a=o.length-1;a>=0;a--)(e=o[a])&&(t=(l<3?e(t):l>3?e(r,i,t):e(r,i))||t);return l>3&&t&&Object.defineProperty(r,i,t),t},S=this&&this.__param||function(o,r){return function(i,n){r(i,n,o)}};Object.defineProperty(x,"__esModule",{value:!0}),x.MouseService=void 0;var g=C(5),f=C(30),c=function(){function o(r,i){this._renderService=r,this._charSizeService=i}return o.prototype.getCoords=function(r,i,n,e,l){return f.getCoords(r,i,n,e,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,l)},o.prototype.getRawByteCoords=function(r,i,n,e){var l=this.getCoords(r,i,n,e);return f.getRawByteCoords(l)},o=A([S(0,g.IRenderService),S(1,g.ICharSizeService)],o)}();x.MouseService=c},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(l,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u])})(l,t)},function(e,l){function t(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)}),g=this&&this.__decorate||function(e,l,t,a){var s,u=arguments.length,h=u<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,l,t,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(h=(u<3?s(h):u>3?s(l,t,h):s(l,t))||h);return u>3&&h&&Object.defineProperty(l,t,h),h},f=this&&this.__param||function(e,l){return function(t,a){l(t,a,e)}};Object.defineProperty(x,"__esModule",{value:!0}),x.Linkifier2=void 0;var c=C(1),o=C(0),r=C(2),i=C(7),n=function(e){function l(t){var a=e.call(this)||this;return a._bufferService=t,a._linkProviders=[],a._linkCacheDisposables=[],a._isMouseOut=!0,a._activeLine=-1,a._onShowLinkUnderline=a.register(new o.EventEmitter),a._onHideLinkUnderline=a.register(new o.EventEmitter),a.register(r.getDisposeArrayDisposable(a._linkCacheDisposables)),a}return S(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(t){var a=this;return this._linkProviders.push(t),{dispose:function(){var u=a._linkProviders.indexOf(t);u!==-1&&a._linkProviders.splice(u,1)}}},l.prototype.attachToDom=function(t,a,s){var u=this;this._element=t,this._mouseService=a,this._renderService=s,this.register(i.addDisposableDomListener(this._element,"mouseleave",function(){u._isMouseOut=!0,u._clearCurrentLink()})),this.register(i.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(i.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},l.prototype._onMouseMove=function(t){if(this._lastMouseEvent=t,this._element&&this._mouseService){var a=this._positionFromMouseEvent(t,this._element,this._mouseService);if(a){this._isMouseOut=!1;for(var s=t.composedPath(),u=0;u<s.length;u++){var h=s[u];if(h.classList.contains("xterm"))break;if(h.classList.contains("xterm-hover"))return}this._lastBufferCell&&a.x===this._lastBufferCell.x&&a.y===this._lastBufferCell.y||(this._onHover(a),this._lastBufferCell=a)}}},l.prototype._onHover=function(t){if(this._activeLine!==t.y)return this._clearCurrentLink(),void this._askForLink(t,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,t)||(this._clearCurrentLink(),this._askForLink(t,!0))},l.prototype._askForLink=function(t,a){var s=this;this._activeProviderReplies&&a||(this._activeProviderReplies=new Map,this._activeLine=t.y);var u=!1;this._linkProviders.forEach(function(h,p){var m;a?((m=s._activeProviderReplies)===null||m===void 0?void 0:m.get(p))&&(u=s._checkLinkProviderResult(p,t,u)):h.provideLinks(t.y,function(v){var y,E;if(!s._isMouseOut){var T=v==null?void 0:v.map(function(b){return{link:b}});(y=s._activeProviderReplies)===null||y===void 0||y.set(p,T),u=s._checkLinkProviderResult(p,t,u),((E=s._activeProviderReplies)===null||E===void 0?void 0:E.size)===s._linkProviders.length&&s._removeIntersectingLinks(t.y,s._activeProviderReplies)}})})},l.prototype._removeIntersectingLinks=function(t,a){for(var s=new Set,u=0;u<a.size;u++){var h=a.get(u);if(h)for(var p=0;p<h.length;p++)for(var m=h[p],v=m.link.range.start.y<t?0:m.link.range.start.x,y=m.link.range.end.y>t?this._bufferService.cols:m.link.range.end.x,E=v;E<=y;E++){if(s.has(E)){h.splice(p--,1);break}s.add(E)}}},l.prototype._checkLinkProviderResult=function(t,a,s){var u,h=this;if(!this._activeProviderReplies)return s;for(var p=this._activeProviderReplies.get(t),m=!1,v=0;v<t;v++)this._activeProviderReplies.has(v)&&!this._activeProviderReplies.get(v)||(m=!0);if(!m&&p){var y=p.find(function(T){return h._linkAtPosition(T.link,a)});y&&(s=!0,this._handleNewLink(y))}if(this._activeProviderReplies.size===this._linkProviders.length&&!s)for(v=0;v<this._activeProviderReplies.size;v++){var E=(u=this._activeProviderReplies.get(v))===null||u===void 0?void 0:u.find(function(T){return h._linkAtPosition(T.link,a)});if(E){s=!0,this._handleNewLink(E);break}}return s},l.prototype._onClick=function(t){if(this._element&&this._mouseService&&this._currentLink){var a=this._positionFromMouseEvent(t,this._element,this._mouseService);a&&this._linkAtPosition(this._currentLink.link,a)&&this._currentLink.link.activate(t,this._currentLink.link.text)}},l.prototype._clearCurrentLink=function(t,a){this._element&&this._currentLink&&this._lastMouseEvent&&(!t||!a||this._currentLink.link.range.start.y>=t&&this._currentLink.link.range.end.y<=a)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,r.disposeArray(this._linkCacheDisposables))},l.prototype._handleNewLink=function(t){var a=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var s=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);s&&this._linkAtPosition(t.link,s)&&(this._currentLink=t,this._currentLink.state={decorations:{underline:t.link.decorations===void 0||t.link.decorations.underline,pointerCursor:t.link.decorations===void 0||t.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,t.link,this._lastMouseEvent),t.link.decorations={},Object.defineProperties(t.link.decorations,{pointerCursor:{get:function(){var h,p;return(p=(h=a._currentLink)===null||h===void 0?void 0:h.state)===null||p===void 0?void 0:p.decorations.pointerCursor},set:function(h){var p,m;((p=a._currentLink)===null||p===void 0?void 0:p.state)&&a._currentLink.state.decorations.pointerCursor!==h&&(a._currentLink.state.decorations.pointerCursor=h,a._currentLink.state.isHovered&&((m=a._element)===null||m===void 0||m.classList.toggle("xterm-cursor-pointer",h)))}},underline:{get:function(){var h,p;return(p=(h=a._currentLink)===null||h===void 0?void 0:h.state)===null||p===void 0?void 0:p.decorations.underline},set:function(h){var p,m,v;((p=a._currentLink)===null||p===void 0?void 0:p.state)&&((v=(m=a._currentLink)===null||m===void 0?void 0:m.state)===null||v===void 0?void 0:v.decorations.underline)!==h&&(a._currentLink.state.decorations.underline=h,a._currentLink.state.isHovered&&a._fireUnderlineEvent(t.link,h))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(u){var h=u.start===0?0:u.start+1+a._bufferService.buffer.ydisp;a._clearCurrentLink(h,u.end+1+a._bufferService.buffer.ydisp)})))}},l.prototype._linkHover=function(t,a,s){var u;((u=this._currentLink)===null||u===void 0?void 0:u.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(a,!0),this._currentLink.state.decorations.pointerCursor&&t.classList.add("xterm-cursor-pointer")),a.hover&&a.hover(s,a.text)},l.prototype._fireUnderlineEvent=function(t,a){var s=t.range,u=this._bufferService.buffer.ydisp,h=this._createLinkUnderlineEvent(s.start.x-1,s.start.y-u-1,s.end.x,s.end.y-u-1,void 0);(a?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(h)},l.prototype._linkLeave=function(t,a,s){var u;((u=this._currentLink)===null||u===void 0?void 0:u.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(a,!1),this._currentLink.state.decorations.pointerCursor&&t.classList.remove("xterm-cursor-pointer")),a.leave&&a.leave(s,a.text)},l.prototype._linkAtPosition=function(t,a){var s=t.range.start.y===t.range.end.y,u=t.range.start.y<a.y,h=t.range.end.y>a.y;return(s&&t.range.start.x<=a.x&&t.range.end.x>=a.x||u&&t.range.end.x>=a.x||h&&t.range.start.x<=a.x||u&&h)&&t.range.start.y<=a.y&&t.range.end.y>=a.y},l.prototype._positionFromMouseEvent=function(t,a,s){var u=s.getCoords(t,a,this._bufferService.cols,this._bufferService.rows);if(u)return{x:u[0],y:u[1]+this._bufferService.buffer.ydisp}},l.prototype._createLinkUnderlineEvent=function(t,a,s,u,h){return{x1:t,y1:a,x2:s,y2:u,cols:this._bufferService.cols,fg:h}},l=g([f(0,c.IBufferService)],l)}(r.Disposable);x.Linkifier2=n},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.CoreBrowserService=void 0;var A=function(){function S(g){this._textarea=g}return Object.defineProperty(S.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),S}();x.CoreBrowserService=A},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(y,E){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,b){T.__proto__=b}||function(T,b){for(var w in b)b.hasOwnProperty(w)&&(T[w]=b[w])})(y,E)},function(v,y){function E(){this.constructor=v}A(v,y),v.prototype=y===null?Object.create(y):(E.prototype=y.prototype,new E)});Object.defineProperty(x,"__esModule",{value:!0}),x.CoreTerminal=void 0;var g=C(2),f=C(1),c=C(66),o=C(67),r=C(68),i=C(74),n=C(75),e=C(0),l=C(76),t=C(77),a=C(78),s=C(80),u=C(81),h=C(19),p=C(82),m=function(v){function y(E){var T=v.call(this)||this;return T._onBinary=new e.EventEmitter,T._onData=new e.EventEmitter,T._onLineFeed=new e.EventEmitter,T._onResize=new e.EventEmitter,T._onScroll=new e.EventEmitter,T._instantiationService=new c.InstantiationService,T.optionsService=new i.OptionsService(E),T._instantiationService.setService(f.IOptionsService,T.optionsService),T._bufferService=T.register(T._instantiationService.createInstance(r.BufferService)),T._instantiationService.setService(f.IBufferService,T._bufferService),T._logService=T._instantiationService.createInstance(o.LogService),T._instantiationService.setService(f.ILogService,T._logService),T._coreService=T.register(T._instantiationService.createInstance(n.CoreService,function(){return T.scrollToBottom()})),T._instantiationService.setService(f.ICoreService,T._coreService),T._coreMouseService=T._instantiationService.createInstance(l.CoreMouseService),T._instantiationService.setService(f.ICoreMouseService,T._coreMouseService),T._dirtyRowService=T._instantiationService.createInstance(t.DirtyRowService),T._instantiationService.setService(f.IDirtyRowService,T._dirtyRowService),T.unicodeService=T._instantiationService.createInstance(a.UnicodeService),T._instantiationService.setService(f.IUnicodeService,T.unicodeService),T._charsetService=T._instantiationService.createInstance(s.CharsetService),T._instantiationService.setService(f.ICharsetService,T._charsetService),T._inputHandler=new h.InputHandler(T._bufferService,T._charsetService,T._coreService,T._dirtyRowService,T._logService,T.optionsService,T._coreMouseService,T.unicodeService),T.register(e.forwardEvent(T._inputHandler.onLineFeed,T._onLineFeed)),T.register(T._inputHandler),T.register(e.forwardEvent(T._bufferService.onResize,T._onResize)),T.register(e.forwardEvent(T._coreService.onData,T._onData)),T.register(e.forwardEvent(T._coreService.onBinary,T._onBinary)),T.register(T.optionsService.onOptionChange(function(b){return T._updateOptions(b)})),T._writeBuffer=new p.WriteBuffer(function(b){return T._inputHandler.parse(b)}),T}return S(y,v),Object.defineProperty(y.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),y.prototype.dispose=function(){var E;this._isDisposed||(v.prototype.dispose.call(this),(E=this._windowsMode)===null||E===void 0||E.dispose(),this._windowsMode=void 0)},y.prototype.write=function(E,T){this._writeBuffer.write(E,T)},y.prototype.writeSync=function(E){this._writeBuffer.writeSync(E)},y.prototype.resize=function(E,T){isNaN(E)||isNaN(T)||(E=Math.max(E,r.MINIMUM_COLS),T=Math.max(T,r.MINIMUM_ROWS),this._bufferService.resize(E,T))},y.prototype.scroll=function(E,T){T===void 0&&(T=!1);var b,w=this._bufferService.buffer;(b=this._cachedBlankLine)&&b.length===this.cols&&b.getFg(0)===E.fg&&b.getBg(0)===E.bg||(b=w.getBlankLine(E,T),this._cachedBlankLine=b),b.isWrapped=T;var _=w.ybase+w.scrollTop,I=w.ybase+w.scrollBottom;if(w.scrollTop===0){var L=w.lines.isFull;I===w.lines.length-1?L?w.lines.recycle().copyFrom(b):w.lines.push(b.clone()):w.lines.splice(I+1,0,b.clone()),L?this._bufferService.isUserScrolling&&(w.ydisp=Math.max(w.ydisp-1,0)):(w.ybase++,this._bufferService.isUserScrolling||w.ydisp++)}else{var N=I-_+1;w.lines.shiftElements(_+1,N-1,-1),w.lines.set(I,b.clone())}this._bufferService.isUserScrolling||(w.ydisp=w.ybase),this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom),this._onScroll.fire(w.ydisp)},y.prototype.scrollLines=function(E,T){var b=this._bufferService.buffer;if(E<0){if(b.ydisp===0)return;this._bufferService.isUserScrolling=!0}else E+b.ydisp>=b.ybase&&(this._bufferService.isUserScrolling=!1);var w=b.ydisp;b.ydisp=Math.max(Math.min(b.ydisp+E,b.ybase),0),w!==b.ydisp&&(T||this._onScroll.fire(b.ydisp))},y.prototype.scrollPages=function(E){this.scrollLines(E*(this.rows-1))},y.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},y.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},y.prototype.scrollToLine=function(E){var T=E-this._bufferService.buffer.ydisp;T!==0&&this.scrollLines(T)},y.prototype.addEscHandler=function(E,T){return this._inputHandler.addEscHandler(E,T)},y.prototype.addDcsHandler=function(E,T){return this._inputHandler.addDcsHandler(E,T)},y.prototype.addCsiHandler=function(E,T){return this._inputHandler.addCsiHandler(E,T)},y.prototype.addOscHandler=function(E,T){return this._inputHandler.addOscHandler(E,T)},y.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},y.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},y.prototype._updateOptions=function(E){var T;switch(E){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((T=this._windowsMode)===null||T===void 0||T.dispose(),this._windowsMode=void 0)}},y.prototype._enableWindowsMode=function(){var E=this;if(!this._windowsMode){var T=[];T.push(this.onLineFeed(u.updateWindowsModeWrappedState.bind(null,this._bufferService))),T.push(this.addCsiHandler({final:"H"},function(){return u.updateWindowsModeWrappedState(E._bufferService),!1})),this._windowsMode={dispose:function(){for(var w=0,_=T;w<_.length;w++)_[w].dispose()}}}},y}(g.Disposable);x.CoreTerminal=m},function(O,x,C){"use strict";var A=this&&this.__spreadArrays||function(){for(var o=0,r=0,i=arguments.length;r<i;r++)o+=arguments[r].length;var n=Array(o),e=0;for(r=0;r<i;r++)for(var l=arguments[r],t=0,a=l.length;t<a;t++,e++)n[e]=l[t];return n};Object.defineProperty(x,"__esModule",{value:!0}),x.InstantiationService=x.ServiceCollection=void 0;var S=C(1),g=C(14),f=function(){function o(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this._entries=new Map;for(var n=0,e=r;n<e.length;n++){var l=e[n],t=l[0],a=l[1];this.set(t,a)}}return o.prototype.set=function(r,i){var n=this._entries.get(r);return this._entries.set(r,i),n},o.prototype.forEach=function(r){this._entries.forEach(function(i,n){return r(n,i)})},o.prototype.has=function(r){return this._entries.has(r)},o.prototype.get=function(r){return this._entries.get(r)},o}();x.ServiceCollection=f;var c=function(){function o(){this._services=new f,this._services.set(S.IInstantiationService,this)}return o.prototype.setService=function(r,i){this._services.set(r,i)},o.prototype.getService=function(r){return this._services.get(r)},o.prototype.createInstance=function(r){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];for(var e=g.getServiceDependencies(r).sort(function(p,m){return p.index-m.index}),l=[],t=0,a=e;t<a.length;t++){var s=a[t],u=this._services.get(s.id);if(!u)throw new Error("[createInstance] "+r.name+" depends on UNKNOWN service "+s.id+".");l.push(u)}var h=e.length>0?e[0].index:i.length;if(i.length!==h)throw new Error("[createInstance] First service dependency of "+r.name+" at position "+(h+1)+" conflicts with "+i.length+" static arguments");return new(r.bind.apply(r,A([void 0],A(i,l))))},o}();x.InstantiationService=c},function(O,x,C){"use strict";var A=this&&this.__decorate||function(i,n,e,l){var t,a=arguments.length,s=a<3?n:l===null?l=Object.getOwnPropertyDescriptor(n,e):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(i,n,e,l);else for(var u=i.length-1;u>=0;u--)(t=i[u])&&(s=(a<3?t(s):a>3?t(n,e,s):t(n,e))||s);return a>3&&s&&Object.defineProperty(n,e,s),s},S=this&&this.__param||function(i,n){return function(e,l){n(e,l,i)}},g=this&&this.__spreadArrays||function(){for(var i=0,n=0,e=arguments.length;n<e;n++)i+=arguments[n].length;var l=Array(i),t=0;for(n=0;n<e;n++)for(var a=arguments[n],s=0,u=a.length;s<u;s++,t++)l[t]=a[s];return l};Object.defineProperty(x,"__esModule",{value:!0}),x.LogService=x.LogLevel=void 0;var f,c=C(1);!function(i){i[i.DEBUG=0]="DEBUG",i[i.INFO=1]="INFO",i[i.WARN=2]="WARN",i[i.ERROR=3]="ERROR",i[i.OFF=4]="OFF"}(f=x.LogLevel||(x.LogLevel={}));var o={debug:f.DEBUG,info:f.INFO,warn:f.WARN,error:f.ERROR,off:f.OFF},r=function(){function i(n){var e=this;this._optionsService=n,this._updateLogLevel(),this._optionsService.onOptionChange(function(l){l==="logLevel"&&e._updateLogLevel()})}return i.prototype._updateLogLevel=function(){this._logLevel=o[this._optionsService.options.logLevel]},i.prototype._evalLazyOptionalParams=function(n){for(var e=0;e<n.length;e++)typeof n[e]=="function"&&(n[e]=n[e]())},i.prototype._log=function(n,e,l){this._evalLazyOptionalParams(l),n.call.apply(n,g([console,"xterm.js: "+e],l))},i.prototype.debug=function(n){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=f.DEBUG&&this._log(console.log,n,e)},i.prototype.info=function(n){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=f.INFO&&this._log(console.info,n,e)},i.prototype.warn=function(n){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=f.WARN&&this._log(console.warn,n,e)},i.prototype.error=function(n){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=f.ERROR&&this._log(console.error,n,e)},i=A([S(0,c.IOptionsService)],i)}();x.LogService=r},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(l,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u])})(l,t)},function(e,l){function t(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)}),g=this&&this.__decorate||function(e,l,t,a){var s,u=arguments.length,h=u<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,l,t,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(h=(u<3?s(h):u>3?s(l,t,h):s(l,t))||h);return u>3&&h&&Object.defineProperty(l,t,h),h},f=this&&this.__param||function(e,l){return function(t,a){l(t,a,e)}};Object.defineProperty(x,"__esModule",{value:!0}),x.BufferService=x.MINIMUM_ROWS=x.MINIMUM_COLS=void 0;var c=C(1),o=C(69),r=C(0),i=C(2);x.MINIMUM_COLS=2,x.MINIMUM_ROWS=1;var n=function(e){function l(t){var a=e.call(this)||this;return a._optionsService=t,a.isUserScrolling=!1,a._onResize=new r.EventEmitter,a.cols=Math.max(t.options.cols,x.MINIMUM_COLS),a.rows=Math.max(t.options.rows,x.MINIMUM_ROWS),a.buffers=new o.BufferSet(t,a),a}return S(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(t,a){this.cols=t,this.rows=a,this.buffers.resize(t,a),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:t,rows:a})},l.prototype.reset=function(){this.buffers.dispose(),this.buffers=new o.BufferSet(this._optionsService,this),this.isUserScrolling=!1},l=g([f(0,c.IOptionsService)],l)}(i.Disposable);x.BufferService=n},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(r,i){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var l in e)e.hasOwnProperty(l)&&(n[l]=e[l])})(r,i)},function(o,r){function i(){this.constructor=o}A(o,r),o.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)});Object.defineProperty(x,"__esModule",{value:!0}),x.BufferSet=void 0;var g=C(70),f=C(0),c=function(o){function r(i,n){var e=o.call(this)||this;return e._onBufferActivate=e.register(new f.EventEmitter),e._normal=new g.Buffer(!0,i,n),e._normal.fillViewportRows(),e._alt=new g.Buffer(!1,i,n),e._activeBuffer=e._normal,e.setupTabStops(),e}return S(r,o),Object.defineProperty(r.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),r.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},r.prototype.activateAltBuffer=function(i){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(i),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},r.prototype.resize=function(i,n){this._normal.resize(i,n),this._alt.resize(i,n)},r.prototype.setupTabStops=function(i){this._normal.setupTabStops(i),this._alt.setupTabStops(i)},r}(C(2).Disposable);x.BufferSet=c},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.BufferStringIterator=x.Buffer=x.MAX_BUFFER_SIZE=void 0;var A=C(71),S=C(16),g=C(4),f=C(3),c=C(72),o=C(73),r=C(20),i=C(6);x.MAX_BUFFER_SIZE=4294967295;var n=function(){function l(t,a,s){this._hasScrollback=t,this._optionsService=a,this._bufferService=s,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=S.DEFAULT_ATTR_DATA.clone(),this.savedCharset=r.DEFAULT_CHARSET,this.markers=[],this._nullCell=g.CellData.fromCharData([0,f.NULL_CELL_CHAR,f.NULL_CELL_WIDTH,f.NULL_CELL_CODE]),this._whitespaceCell=g.CellData.fromCharData([0,f.WHITESPACE_CELL_CHAR,f.WHITESPACE_CELL_WIDTH,f.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(t){return t?(this._nullCell.fg=t.fg,this._nullCell.bg=t.bg,this._nullCell.extended=t.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new i.ExtendedAttrs),this._nullCell},l.prototype.getWhitespaceCell=function(t){return t?(this._whitespaceCell.fg=t.fg,this._whitespaceCell.bg=t.bg,this._whitespaceCell.extended=t.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new i.ExtendedAttrs),this._whitespaceCell},l.prototype.getBlankLine=function(t,a){return new S.BufferLine(this._bufferService.cols,this.getNullCell(t),a)},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 a=this.ybase+this.y-this.ydisp;return a>=0&&a<this._rows},enumerable:!1,configurable:!0}),l.prototype._getCorrectBufferLength=function(t){if(!this._hasScrollback)return t;var a=t+this._optionsService.options.scrollback;return a>x.MAX_BUFFER_SIZE?x.MAX_BUFFER_SIZE:a},l.prototype.fillViewportRows=function(t){if(this.lines.length===0){t===void 0&&(t=S.DEFAULT_ATTR_DATA);for(var a=this._rows;a--;)this.lines.push(this.getBlankLine(t))}},l.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new A.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},l.prototype.resize=function(t,a){var s=this.getNullCell(S.DEFAULT_ATTR_DATA),u=this._getCorrectBufferLength(a);if(u>this.lines.maxLength&&(this.lines.maxLength=u),this.lines.length>0){if(this._cols<t)for(var h=0;h<this.lines.length;h++)this.lines.get(h).resize(t,s);var p=0;if(this._rows<a)for(var m=this._rows;m<a;m++)this.lines.length<a+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new S.BufferLine(t,s)):this.ybase>0&&this.lines.length<=this.ybase+this.y+p+1?(this.ybase--,p++,this.ydisp>0&&this.ydisp--):this.lines.push(new S.BufferLine(t,s)));else for(m=this._rows;m>a;m--)this.lines.length>a+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(u<this.lines.maxLength){var v=this.lines.length-u;v>0&&(this.lines.trimStart(v),this.ybase=Math.max(this.ybase-v,0),this.ydisp=Math.max(this.ydisp-v,0),this.savedY=Math.max(this.savedY-v,0)),this.lines.maxLength=u}this.x=Math.min(this.x,t-1),this.y=Math.min(this.y,a-1),p&&(this.y+=p),this.savedX=Math.min(this.savedX,t-1),this.scrollTop=0}if(this.scrollBottom=a-1,this._isReflowEnabled&&(this._reflow(t,a),this._cols>t))for(h=0;h<this.lines.length;h++)this.lines.get(h).resize(t,s);this._cols=t,this._rows=a},Object.defineProperty(l.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),l.prototype._reflow=function(t,a){this._cols!==t&&(t>this._cols?this._reflowLarger(t,a):this._reflowSmaller(t,a))},l.prototype._reflowLarger=function(t,a){var s=c.reflowLargerGetLinesToRemove(this.lines,this._cols,t,this.ybase+this.y,this.getNullCell(S.DEFAULT_ATTR_DATA));if(s.length>0){var u=c.reflowLargerCreateNewLayout(this.lines,s);c.reflowLargerApplyNewLayout(this.lines,u.layout),this._reflowLargerAdjustViewport(t,a,u.countRemoved)}},l.prototype._reflowLargerAdjustViewport=function(t,a,s){for(var u=this.getNullCell(S.DEFAULT_ATTR_DATA),h=s;h-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<a&&this.lines.push(new S.BufferLine(t,u))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-s,0)},l.prototype._reflowSmaller=function(t,a){for(var s=this.getNullCell(S.DEFAULT_ATTR_DATA),u=[],h=0,p=this.lines.length-1;p>=0;p--){var m=this.lines.get(p);if(!(!m||!m.isWrapped&&m.getTrimmedLength()<=t)){for(var v=[m];m.isWrapped&&p>0;)m=this.lines.get(--p),v.unshift(m);var y=this.ybase+this.y;if(!(y>=p&&y<p+v.length)){var E=v[v.length-1].getTrimmedLength(),T=c.reflowSmallerGetNewLineLengths(v,this._cols,t),b=T.length-v.length,w=void 0;w=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+b):Math.max(0,this.lines.length-this.lines.maxLength+b);for(var _=[],I=0;I<b;I++){var L=this.getBlankLine(S.DEFAULT_ATTR_DATA,!0);_.push(L)}_.length>0&&(u.push({start:p+v.length+h,newLines:_}),h+=_.length),v.push.apply(v,_);var N=T.length-1,D=T[N];D===0&&(D=T[--N]);for(var R=v.length-b-1,k=E;R>=0;){var M=Math.min(k,D);if(v[N].copyCellsFrom(v[R],k-M,D-M,M,!0),(D-=M)===0&&(D=T[--N]),(k-=M)===0){R--;var U=Math.max(R,0);k=c.getWrappedLineTrimmedLength(v,U,this._cols)}}for(I=0;I<v.length;I++)T[I]<t&&v[I].setCell(T[I],s);for(var B=b-w;B-- >0;)this.ybase===0?this.y<a-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+h)-a&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+b,this.ybase+a-1)}}}if(u.length>0){var j=[],W=[];for(I=0;I<this.lines.length;I++)W.push(this.lines.get(I));var V=this.lines.length,z=V-1,J=0,Z=u[J];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+h);var de=0;for(I=Math.min(this.lines.maxLength-1,V+h-1);I>=0;I--)if(Z&&Z.start>z+de){for(var ie=Z.newLines.length-1;ie>=0;ie--)this.lines.set(I--,Z.newLines[ie]);I++,j.push({index:z+1,amount:Z.newLines.length}),de+=Z.newLines.length,Z=u[++J]}else this.lines.set(I,W[z--]);var ve=0;for(I=j.length-1;I>=0;I--)j[I].index+=ve,this.lines.onInsertEmitter.fire(j[I]),ve+=j[I].amount;var xe=Math.max(0,V+h-this.lines.maxLength);xe>0&&this.lines.onTrimEmitter.fire(xe)}},l.prototype.stringIndexToBufferIndex=function(t,a,s){for(s===void 0&&(s=!1);a;){var u=this.lines.get(t);if(!u)return[-1,-1];for(var h=s?u.getTrimmedLength():u.length,p=0;p<h;++p)if(u.get(p)[f.CHAR_DATA_WIDTH_INDEX]&&(a-=u.get(p)[f.CHAR_DATA_CHAR_INDEX].length||1),a<0)return[t,p];t++}return[t,0]},l.prototype.translateBufferLineToString=function(t,a,s,u){s===void 0&&(s=0);var h=this.lines.get(t);return h?h.translateToString(a,s,u):""},l.prototype.getWrappedRangeForLine=function(t){for(var a=t,s=t;a>0&&this.lines.get(a).isWrapped;)a--;for(;s+1<this.lines.length&&this.lines.get(s+1).isWrapped;)s++;return{first:a,last:s}},l.prototype.setupTabStops=function(t){for(t!=null?this.tabs[t]||(t=this.prevStop(t)):(this.tabs={},t=0);t<this._cols;t+=this._optionsService.options.tabStopWidth)this.tabs[t]=!0},l.prototype.prevStop=function(t){for(t==null&&(t=this.x);!this.tabs[--t]&&t>0;);return t>=this._cols?this._cols-1:t<0?0:t},l.prototype.nextStop=function(t){for(t==null&&(t=this.x);!this.tabs[++t]&&t<this._cols;);return t>=this._cols?this._cols-1:t<0?0:t},l.prototype.addMarker=function(t){var a=this,s=new o.Marker(t);return this.markers.push(s),s.register(this.lines.onTrim(function(u){s.line-=u,s.line<0&&s.dispose()})),s.register(this.lines.onInsert(function(u){s.line>=u.index&&(s.line+=u.amount)})),s.register(this.lines.onDelete(function(u){s.line>=u.index&&s.line<u.index+u.amount&&s.dispose(),s.line>u.index&&(s.line-=u.amount)})),s.register(s.onDispose(function(){return a._removeMarker(s)})),s},l.prototype._removeMarker=function(t){this.markers.splice(this.markers.indexOf(t),1)},l.prototype.iterator=function(t,a,s,u,h){return new e(this,t,a,s,u,h)},l}();x.Buffer=n;var e=function(){function l(t,a,s,u,h,p){s===void 0&&(s=0),u===void 0&&(u=t.lines.length),h===void 0&&(h=0),p===void 0&&(p=0),this._buffer=t,this._trimRight=a,this._startIndex=s,this._endIndex=u,this._startOverscan=h,this._endOverscan=p,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 t=this._buffer.getWrappedRangeForLine(this._current);t.first<this._startIndex-this._startOverscan&&(t.first=this._startIndex-this._startOverscan),t.last>this._endIndex+this._endOverscan&&(t.last=this._endIndex+this._endOverscan),t.first=Math.max(t.first,0),t.last=Math.min(t.last,this._buffer.lines.length);for(var a="",s=t.first;s<=t.last;++s)a+=this._buffer.translateBufferLineToString(s,this._trimRight);return this._current=t.last+1,{range:t,content:a}},l}();x.BufferStringIterator=e},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.CircularList=void 0;var A=C(0),S=function(){function g(f){this._maxLength=f,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(g.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"maxLength",{get:function(){return this._maxLength},set:function(c){if(this._maxLength!==c){for(var o=new Array(c),r=0;r<Math.min(c,this.length);r++)o[r]=this._array[this._getCyclicIndex(r)];this._array=o,this._maxLength=c,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"length",{get:function(){return this._length},set:function(c){if(c>this._length)for(var o=this._length;o<c;o++)this._array[o]=void 0;this._length=c},enumerable:!1,configurable:!0}),g.prototype.get=function(f){return this._array[this._getCyclicIndex(f)]},g.prototype.set=function(f,c){this._array[this._getCyclicIndex(f)]=c},g.prototype.push=function(f){this._array[this._getCyclicIndex(this._length)]=f,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},g.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(g.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),g.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},g.prototype.splice=function(f,c){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];if(c){for(var i=f;i<this._length-c;i++)this._array[this._getCyclicIndex(i)]=this._array[this._getCyclicIndex(i+c)];this._length-=c}for(i=this._length-1;i>=f;i--)this._array[this._getCyclicIndex(i+o.length)]=this._array[this._getCyclicIndex(i)];for(i=0;i<o.length;i++)this._array[this._getCyclicIndex(f+i)]=o[i];if(this._length+o.length>this._maxLength){var n=this._length+o.length-this._maxLength;this._startIndex+=n,this._length=this._maxLength,this.onTrimEmitter.fire(n)}else this._length+=o.length},g.prototype.trimStart=function(f){f>this._length&&(f=this._length),this._startIndex+=f,this._length-=f,this.onTrimEmitter.fire(f)},g.prototype.shiftElements=function(f,c,o){if(!(c<=0)){if(f<0||f>=this._length)throw new Error("start argument out of range");if(f+o<0)throw new Error("Cannot shift elements in list beyond index 0");if(o>0){for(var r=c-1;r>=0;r--)this.set(f+r+o,this.get(f+r));var i=f+c+o-this._length;if(i>0)for(this._length+=i;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(r=0;r<c;r++)this.set(f+r+o,this.get(f+r))}},g.prototype._getCyclicIndex=function(f){return(this._startIndex+f)%this._maxLength},g}();x.CircularList=S},function(O,x,C){"use strict";function A(S,g,f){if(g===S.length-1)return S[g].getTrimmedLength();var c=!S[g].hasContent(f-1)&&S[g].getWidth(f-1)===1,o=S[g+1].getWidth(0)===2;return c&&o?f-1:f}Object.defineProperty(x,"__esModule",{value:!0}),x.getWrappedLineTrimmedLength=x.reflowSmallerGetNewLineLengths=x.reflowLargerApplyNewLayout=x.reflowLargerCreateNewLayout=x.reflowLargerGetLinesToRemove=void 0,x.reflowLargerGetLinesToRemove=function(S,g,f,c,o){for(var r=[],i=0;i<S.length-1;i++){var n=i,e=S.get(++n);if(e.isWrapped){for(var l=[S.get(i)];n<S.length&&e.isWrapped;)l.push(e),e=S.get(++n);if(c>=i&&c<n)i+=l.length-1;else{for(var t=0,a=A(l,t,g),s=1,u=0;s<l.length;){var h=A(l,s,g),p=h-u,m=f-a,v=Math.min(p,m);l[t].copyCellsFrom(l[s],u,a,v,!1),(a+=v)===f&&(t++,a=0),(u+=v)===h&&(s++,u=0),a===0&&t!==0&&l[t-1].getWidth(f-1)===2&&(l[t].copyCellsFrom(l[t-1],f-1,a++,1,!1),l[t-1].setCell(f-1,o))}l[t].replaceCells(a,f,o);for(var y=0,E=l.length-1;E>0&&(E>t||l[E].getTrimmedLength()===0);E--)y++;y>0&&(r.push(i+l.length-y),r.push(y)),i+=l.length-1}}}return r},x.reflowLargerCreateNewLayout=function(S,g){for(var f=[],c=0,o=g[c],r=0,i=0;i<S.length;i++)if(o===i){var n=g[++c];S.onDeleteEmitter.fire({index:i-r,amount:n}),i+=n-1,r+=n,o=g[++c]}else f.push(i);return{layout:f,countRemoved:r}},x.reflowLargerApplyNewLayout=function(S,g){for(var f=[],c=0;c<g.length;c++)f.push(S.get(g[c]));for(c=0;c<f.length;c++)S.set(c,f[c]);S.length=g.length},x.reflowSmallerGetNewLineLengths=function(S,g,f){for(var c=[],o=S.map(function(a,s){return A(S,s,g)}).reduce(function(a,s){return a+s}),r=0,i=0,n=0;n<o;){if(o-n<f){c.push(o-n);break}r+=f;var e=A(S,i,g);r>e&&(r-=e,i++);var l=S[i].getWidth(r-1)===2;l&&r--;var t=l?f-1:f;c.push(t),n+=t}return c},x.getWrappedLineTrimmedLength=A},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(o,r){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var e in n)n.hasOwnProperty(e)&&(i[e]=n[e])})(o,r)},function(c,o){function r(){this.constructor=c}A(c,o),c.prototype=o===null?Object.create(o):(r.prototype=o.prototype,new r)});Object.defineProperty(x,"__esModule",{value:!0}),x.Marker=void 0;var g=C(0),f=function(c){function o(r){var i=c.call(this)||this;return i.line=r,i._id=o._nextId++,i.isDisposed=!1,i._onDispose=new g.EventEmitter,i}return S(o,c),Object.defineProperty(o.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),o.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},o._nextId=1,o}(C(2).Disposable);x.Marker=f},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.OptionsService=x.DEFAULT_OPTIONS=x.DEFAULT_BELL_SOUND=void 0;var A=C(0),S=C(11),g=C(33);x.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",x.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:x.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:S.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var f=["cols","rows"],c=function(){function o(r){this._onOptionChange=new A.EventEmitter,this.options=g.clone(x.DEFAULT_OPTIONS);for(var i=0,n=Object.keys(r);i<n.length;i++){var e=n[i];if(e in this.options){var l=r[e];this.options[e]=l}}}return Object.defineProperty(o.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),o.prototype.setOption=function(r,i){if(!(r in x.DEFAULT_OPTIONS))throw new Error('No option with key "'+r+'"');if(f.indexOf(r)!==-1)throw new Error('Option "'+r+'" can only be set in the constructor');this.options[r]!==i&&(i=this._sanitizeAndValidateOption(r,i),this.options[r]!==i&&(this.options[r]=i,this._onOptionChange.fire(r)))},o.prototype._sanitizeAndValidateOption=function(r,i){switch(r){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":i||(i=x.DEFAULT_OPTIONS[r]);break;case"cursorWidth":i=Math.floor(i);case"lineHeight":case"tabStopWidth":if(i<1)throw new Error(r+" cannot be less than 1, value: "+i);break;case"minimumContrastRatio":i=Math.max(1,Math.min(21,Math.round(10*i)/10));break;case"scrollback":if((i=Math.min(i,4294967295))<0)throw new Error(r+" cannot be less than 0, value: "+i);break;case"fastScrollSensitivity":case"scrollSensitivity":if(i<=0)throw new Error(r+" cannot be less than or equal to 0, value: "+i)}return i},o.prototype.getOption=function(r){if(!(r in x.DEFAULT_OPTIONS))throw new Error('No option with key "'+r+'"');return this.options[r]},o}();x.OptionsService=c},function(O,x,C){"use strict";var A,S=this&&this.__extends||(A=function(a,s){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var p in h)h.hasOwnProperty(p)&&(u[p]=h[p])})(a,s)},function(t,a){function s(){this.constructor=t}A(t,a),t.prototype=a===null?Object.create(a):(s.prototype=a.prototype,new s)}),g=this&&this.__decorate||function(t,a,s,u){var h,p=arguments.length,m=p<3?a:u===null?u=Object.getOwnPropertyDescriptor(a,s):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(t,a,s,u);else for(var v=t.length-1;v>=0;v--)(h=t[v])&&(m=(p<3?h(m):p>3?h(a,s,m):h(a,s))||m);return p>3&&m&&Object.defineProperty(a,s,m),m},f=this&&this.__param||function(t,a){return function(s,u){a(s,u,t)}};Object.defineProperty(x,"__esModule",{value:!0}),x.CoreService=void 0;var c=C(1),o=C(0),r=C(33),i=C(2),n=Object.freeze({insertMode:!1}),e=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),l=function(t){function a(s,u,h,p){var m=t.call(this)||this;return m._bufferService=u,m._logService=h,m._optionsService=p,m.isCursorInitialized=!1,m.isCursorHidden=!1,m._onData=m.register(new o.EventEmitter),m._onUserInput=m.register(new o.EventEmitter),m._onBinary=m.register(new o.EventEmitter),m._scrollToBottom=s,m.register({dispose:function(){return m._scrollToBottom=void 0}}),m.modes=r.clone(n),m.decPrivateModes=r.clone(e),m}return S(a,t),Object.defineProperty(a.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),a.prototype.reset=function(){this.modes=r.clone(n),this.decPrivateModes=r.clone(e)},a.prototype.triggerDataEvent=function(s,u){if(u===void 0&&(u=!1),!this._optionsService.options.disableStdin){var h=this._bufferService.buffer;h.ybase!==h.ydisp&&this._scrollToBottom(),u&&this._onUserInput.fire(),this._logService.debug('sending data "'+s+'"',function(){return s.split("").map(function(p){return p.charCodeAt(0)})}),this._onData.fire(s)}},a.prototype.triggerBinaryEvent=function(s){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+s+'"',function(){return s.split("").map(function(u){return u.charCodeAt(0)})}),this._onBinary.fire(s))},a=g([f(1,c.IBufferService),f(2,c.ILogService),f(3,c.IOptionsService)],a)}(i.Disposable);x.CoreService=l},function(O,x,C){"use strict";var A=this&&this.__decorate||function(e,l,t,a){var s,u=arguments.length,h=u<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,l,t,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(h=(u<3?s(h):u>3?s(l,t,h):s(l,t))||h);return u>3&&h&&Object.defineProperty(l,t,h),h},S=this&&this.__param||function(e,l){return function(t,a){l(t,a,e)}};Object.defineProperty(x,"__esModule",{value:!0}),x.CoreMouseService=void 0;var g=C(1),f=C(0),c={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(l){return l.button!==4&&l.action===1&&(l.ctrl=!1,l.alt=!1,l.shift=!1,!0)}},VT200:{events:19,restrict:function(l){return l.action!==32}},DRAG:{events:23,restrict:function(l){return l.action!==32||l.button!==3}},ANY:{events:31,restrict:function(l){return!0}}};function o(e,l){var t=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(t|=64,t|=e.action):(t|=3&e.button,4&e.button&&(t|=64),8&e.button&&(t|=128),e.action===32?t|=32:e.action!==0||l||(t|=3)),t}var r=String.fromCharCode,i={DEFAULT:function(l){var t=[o(l,!1)+32,l.col+32,l.row+32];return t[0]>255||t[1]>255||t[2]>255?"":"[M"+r(t[0])+r(t[1])+r(t[2])},SGR:function(l){var t=l.action===0&&l.button!==4?"m":"M";return"[<"+o(l,!0)+";"+l.col+";"+l.row+t}},n=function(){function e(l,t){this._bufferService=l,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new f.EventEmitter,this._lastEvent=null;for(var a=0,s=Object.keys(c);a<s.length;a++){var u=s[a];this.addProtocol(u,c[u])}for(var h=0,p=Object.keys(i);h<p.length;h++){var m=p[h];this.addEncoding(m,i[m])}this.reset()}return e.prototype.addProtocol=function(l,t){this._protocols[l]=t},e.prototype.addEncoding=function(l,t){this._encodings[l]=t},Object.defineProperty(e.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(t){if(!this._protocols[t])throw new Error('unknown protocol "'+t+'"');this._activeProtocol=t,this._onProtocolChange.fire(this._protocols[t].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(t){if(!this._encodings[t])throw new Error('unknown encoding "'+t+'"');this._activeEncoding=t},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 t=this._encodings[this._activeEncoding](l);return t&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!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,t){return l.col===t.col&&l.row===t.row&&l.button===t.button&&l.action===t.action&&l.ctrl===t.ctrl&&l.alt===t.alt&&l.shift===t.shift},e=A([S(0,g.IBufferService),S(1,g.ICoreService)],e)}();x.CoreMouseService=n},function(O,x,C){"use strict";var A=this&&this.__decorate||function(c,o,r,i){var n,e=arguments.length,l=e<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,r):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(c,o,r,i);else for(var t=c.length-1;t>=0;t--)(n=c[t])&&(l=(e<3?n(l):e>3?n(o,r,l):n(o,r))||l);return e>3&&l&&Object.defineProperty(o,r,l),l},S=this&&this.__param||function(c,o){return function(r,i){o(r,i,c)}};Object.defineProperty(x,"__esModule",{value:!0}),x.DirtyRowService=void 0;var g=C(1),f=function(){function c(o){this._bufferService=o,this.clearRange()}return Object.defineProperty(c.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),c.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},c.prototype.markDirty=function(o){o<this._start?this._start=o:o>this._end&&(this._end=o)},c.prototype.markRangeDirty=function(o,r){if(o>r){var i=o;o=r,r=i}o<this._start&&(this._start=o),r>this._end&&(this._end=r)},c.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},c=A([S(0,g.IBufferService)],c)}();x.DirtyRowService=f},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.UnicodeService=void 0;var A=C(0),S=C(79),g=function(){function f(){this._providers=Object.create(null),this._active="",this._onChange=new A.EventEmitter;var c=new S.UnicodeV6;this.register(c),this._active=c.version,this._activeProvider=c}return Object.defineProperty(f.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"activeVersion",{get:function(){return this._active},set:function(o){if(!this._providers[o])throw new Error('unknown Unicode version "'+o+'"');this._active=o,this._activeProvider=this._providers[o],this._onChange.fire(o)},enumerable:!1,configurable:!0}),f.prototype.register=function(c){this._providers[c.version]=c},f.prototype.wcwidth=function(c){return this._activeProvider.wcwidth(c)},f.prototype.getStringCellWidth=function(c){for(var o=0,r=c.length,i=0;i<r;++i){var n=c.charCodeAt(i);if(55296<=n&&n<=56319){if(++i>=r)return o+this.wcwidth(n);var e=c.charCodeAt(i);56320<=e&&e<=57343?n=1024*(n-55296)+e-56320+65536:o+=this.wcwidth(e)}o+=this.wcwidth(n)}return o},f}();x.UnicodeService=g},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.UnicodeV6=void 0;var A,S=C(15),g=[[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]],f=[[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]],c=function(){function o(){if(this.version="6",!A){A=new Uint8Array(65536),S.fill(A,1),A[0]=0,S.fill(A,0,1,32),S.fill(A,0,127,160),S.fill(A,2,4352,4448),A[9001]=2,A[9002]=2,S.fill(A,2,11904,42192),A[12351]=1,S.fill(A,2,44032,55204),S.fill(A,2,63744,64256),S.fill(A,2,65040,65050),S.fill(A,2,65072,65136),S.fill(A,2,65280,65377),S.fill(A,2,65504,65511);for(var r=0;r<g.length;++r)S.fill(A,0,g[r][0],g[r][1]+1)}}return o.prototype.wcwidth=function(r){return r<32?0:r<127?1:r<65536?A[r]:function(i,n){var e,l=0,t=n.length-1;if(i<n[0][0]||i>n[t][1])return!1;for(;t>=l;)if(i>n[e=l+t>>1][1])l=e+1;else{if(!(i<n[e][0]))return!0;t=e-1}return!1}(r,f)?0:r>=131072&&r<=196605||r>=196608&&r<=262141?2:1},o}();x.UnicodeV6=c},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.CharsetService=void 0;var A=function(){function S(){this.glevel=0,this._charsets=[]}return S.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},S.prototype.setgLevel=function(g){this.glevel=g,this.charset=this._charsets[g]},S.prototype.setgCharset=function(g,f){this._charsets[g]=f,this.glevel===g&&(this.charset=f)},S}();x.CharsetService=A},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.updateWindowsModeWrappedState=void 0;var A=C(3);x.updateWindowsModeWrappedState=function(S){var g=S.buffer.lines.get(S.buffer.ybase+S.buffer.y-1),f=g==null?void 0:g.get(S.cols-1),c=S.buffer.lines.get(S.buffer.ybase+S.buffer.y);c&&f&&(c.isWrapped=f[A.CHAR_DATA_CODE_INDEX]!==A.NULL_CELL_CODE&&f[A.CHAR_DATA_CODE_INDEX]!==A.WHITESPACE_CELL_CODE)}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.WriteBuffer=void 0;var A=function(){function S(g){this._action=g,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return S.prototype.writeSync=function(g){if(this._writeBuffer.length){for(var f=this._bufferOffset;f<this._writeBuffer.length;++f){var c=this._writeBuffer[f],o=this._callbacks[f];this._action(c),o&&o()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(g)},S.prototype.write=function(g,f){var c=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 c._innerWrite()})),this._pendingData+=g.length,this._writeBuffer.push(g),this._callbacks.push(f)},S.prototype._innerWrite=function(){for(var g=this,f=Date.now();this._writeBuffer.length>this._bufferOffset;){var c=this._writeBuffer[this._bufferOffset],o=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(c),this._pendingData-=c.length,o&&o(),Date.now()-f>=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 g._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},S}();x.WriteBuffer=A},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.AddonManager=void 0;var A=function(){function S(){this._addons=[]}return S.prototype.dispose=function(){for(var g=this._addons.length-1;g>=0;g--)this._addons[g].instance.dispose()},S.prototype.loadAddon=function(g,f){var c=this,o={instance:f,dispose:f.dispose,isDisposed:!1};this._addons.push(o),f.dispose=function(){return c._wrappedAddonDispose(o)},f.activate(g)},S.prototype._wrappedAddonDispose=function(g){if(!g.isDisposed){for(var f=-1,c=0;c<this._addons.length;c++)if(this._addons[c]===g){f=c;break}if(f===-1)throw new Error("Could not dispose an addon that has not been loaded");g.isDisposed=!0,g.dispose.apply(g.instance),this._addons.splice(f,1)}},S}();x.AddonManager=A}])})},"/SeX":function(H,F,d){var O=d("knOB"),x=d("qZFw"),C=function(S){this.name=S||"",this.cx=0,this.cy=0,this._radiusAxis=new O,this._angleAxis=new x,this._radiusAxis.polar=this._angleAxis.polar=this};C.prototype={type:"polar",axisPointerEnabled:!0,constructor:C,dimensions:["radius","angle"],model:null,containPoint:function(S){var g=this.pointToCoord(S);return this._radiusAxis.contain(g[0])&&this._angleAxis.contain(g[1])},containData:function(S){return this._radiusAxis.containData(S[0])&&this._angleAxis.containData(S[1])},getAxis:function(S){return this["_"+S+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(S){var g=[],f=this._angleAxis,c=this._radiusAxis;return f.scale.type===S&&g.push(f),c.scale.type===S&&g.push(c),g},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(S){var g=this._angleAxis;return S===g?this._radiusAxis:g},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(S){var g=S!=null&&S!=="auto"?this.getAxis(S):this.getBaseAxis();return{baseAxes:[g],otherAxes:[this.getOtherAxis(g)]}},dataToPoint:function(S,g){return this.coordToPoint([this._radiusAxis.dataToRadius(S[0],g),this._angleAxis.dataToAngle(S[1],g)])},pointToData:function(S,g){var f=this.pointToCoord(S);return[this._radiusAxis.radiusToData(f[0],g),this._angleAxis.angleToData(f[1],g)]},pointToCoord:function(S){var g=S[0]-this.cx,f=S[1]-this.cy,c=this.getAngleAxis(),o=c.getExtent(),r=Math.min(o[0],o[1]),i=Math.max(o[0],o[1]);c.inverse?r=i-360:i=r+360;var n=Math.sqrt(g*g+f*f);g/=n,f/=n;for(var e=Math.atan2(-f,g)/Math.PI*180,l=e<r?1:-1;e<r||e>i;)e+=l*360;return[n,e]},coordToPoint:function(S){var g=S[0],f=S[1]/180*Math.PI,c=Math.cos(f)*g+this.cx,o=-Math.sin(f)*g+this.cy;return[c,o]},getArea:function(){var S=this.getAngleAxis(),g=this.getRadiusAxis(),f=g.getExtent().slice();f[0]>f[1]&&f.reverse();var c=S.getExtent(),o=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:f[0],r:f[1],startAngle:-c[0]*o,endAngle:-c[1]*o,clockwise:S.inverse,contain:function(r,i){var n=r-this.cx,e=i-this.cy,l=n*n+e*e,t=this.r,a=this.r0;return l<=t*t&&l>=a*a}}}};var A=C;H.exports=A},"/WM3":function(H,F,d){var O=d("QuXc"),x=d("bYtY"),C=x.isFunction,A={createOnAllSeries:!0,performRawSeries:!0,reset:function(S,g){var f=S.getData(),c=(S.visualColorAccessPath||"itemStyle.color").split("."),o=S.get(c),r=C(o)&&!(o instanceof O)?o:null;(!o||r)&&(o=S.getColorFromPalette(S.name,null,g.getSeriesCount())),f.setVisual("color",o);var i=(S.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),n=S.get(i);if(f.setVisual("borderColor",n),!g.isSeriesFiltered(S)){r&&f.each(function(l){f.setItemVisual(l,"color",r(S.getDataParams(l)))});var e=function(l,t){var a=l.getItemModel(t),s=a.get(c,!0),u=a.get(i,!0);s!=null&&l.setItemVisual(t,"color",s),u!=null&&l.setItemVisual(t,"borderColor",u)};return{dataEach:f.hasItemOption?e:null}}}};H.exports=A},"/d5a":function(H,F){var d={average:function(C){for(var A=0,S=0,g=0;g<C.length;g++)isNaN(C[g])||(A+=C[g],S++);return S===0?NaN:A/S},sum:function(C){for(var A=0,S=0;S<C.length;S++)A+=C[S]||0;return A},max:function(C){for(var A=-Infinity,S=0;S<C.length;S++)C[S]>A&&(A=C[S]);return isFinite(A)?A:NaN},min:function(C){for(var A=Infinity,S=0;S<C.length;S++)C[S]<A&&(A=C[S]);return isFinite(A)?A:NaN},nearest:function(C){return C[0]}},O=function(C,A){return Math.round(C.length/2)};function x(C){return{seriesType:C,modifyOutputEnd:!0,reset:function(A,S,g){var f=A.getData(),c=A.get("sampling"),o=A.coordinateSystem;if(o.type==="cartesian2d"&&c){var r=o.getBaseAxis(),i=o.getOtherAxis(r),n=r.getExtent(),e=n[1]-n[0],l=Math.round(f.count()/e);if(l>1){var t;typeof c=="string"?t=d[c]:typeof c=="function"&&(t=c),t&&A.setData(f.downSample(f.mapDimension(i.dim),1/l,t,O))}}}}}H.exports=x},"/ezw":function(H,F,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),S=d("cDf5"),g=d.n(S),f=d("q1tI"),c=d("TSYQ"),o=d.n(c),r=function(B){var j=B.prefixCls,W=B.className,V=B.width,z=B.style;return f.createElement("h3",{className:o()(j,W),style:A()({width:V},z)})},i=r,n=d("RIqP"),e=d.n(n),l=function(B){var j=function(ie){var ve=B.width,xe=B.rows,_e=xe===void 0?2:xe;return Array.isArray(ve)?ve[ie]:_e-1===ie?ve:void 0},W=B.prefixCls,V=B.className,z=B.style,J=B.rows,Z=e()(Array(J)).map(function(de,ie){return f.createElement("li",{key:ie,style:{width:j(ie)}})});return f.createElement("ul",{className:o()(W,V),style:z},Z)},t=l,a=d("H84U"),s=function(B){var j,W,V=B.prefixCls,z=B.className,J=B.style,Z=B.size,de=B.shape,ie=o()((j={},x()(j,"".concat(V,"-lg"),Z==="large"),x()(j,"".concat(V,"-sm"),Z==="small"),j)),ve=o()((W={},x()(W,"".concat(V,"-circle"),de==="circle"),x()(W,"".concat(V,"-square"),de==="square"),x()(W,"".concat(V,"-round"),de==="round"),W)),xe=typeof Z=="number"?{width:Z,height:Z,lineHeight:"".concat(Z,"px")}:{};return f.createElement("span",{className:o()(V,z,ie,ve),style:A()(A()({},xe),J)})},u=s,h=d("BGR+"),p=function(B){var j=function(V){var z=V.getPrefixCls,J=B.prefixCls,Z=B.className,de=B.active,ie=z("skeleton",J),ve=Object(h.default)(B,["prefixCls"]),xe=o()(ie,Z,"".concat(ie,"-element"),x()({},"".concat(ie,"-active"),de));return f.createElement("div",{className:xe},f.createElement(u,A()({prefixCls:"".concat(ie,"-avatar")},ve)))};return f.createElement(a.a,null,j)};p.defaultProps={size:"default",shape:"circle"};var m=p,v=function(B){var j=function(V){var z=V.getPrefixCls,J=B.prefixCls,Z=B.className,de=B.active,ie=z("skeleton",J),ve=Object(h.default)(B,["prefixCls"]),xe=o()(ie,Z,"".concat(ie,"-element"),x()({},"".concat(ie,"-active"),de));return f.createElement("div",{className:xe},f.createElement(u,A()({prefixCls:"".concat(ie,"-button")},ve)))};return f.createElement(a.a,null,j)};v.defaultProps={size:"default"};var y=v,E=function(B){var j=function(V){var z=V.getPrefixCls,J=B.prefixCls,Z=B.className,de=B.active,ie=z("skeleton",J),ve=Object(h.default)(B,["prefixCls"]),xe=o()(ie,Z,"".concat(ie,"-element"),x()({},"".concat(ie,"-active"),de));return f.createElement("div",{className:xe},f.createElement(u,A()({prefixCls:"".concat(ie,"-input")},ve)))};return f.createElement(a.a,null,j)};E.defaultProps={size:"default"};var T=E,b="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(B){var j=function(V){var z=V.getPrefixCls,J=B.prefixCls,Z=B.className,de=B.style,ie=z("skeleton",J),ve=o()(ie,Z,"".concat(ie,"-element"));return f.createElement("div",{className:ve},f.createElement("div",{className:o()("".concat(ie,"-image"),Z),style:de},f.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(ie,"-image-svg")},f.createElement("path",{d:b,className:"".concat(ie,"-image-path")}))))};return f.createElement(a.a,null,j)},_=w;function I(U){return U&&g()(U)==="object"?U:{}}function L(U,B){return U&&!B?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function N(U,B){return!U&&B?{width:"38%"}:U&&B?{width:"50%"}:{}}function D(U,B){var j={};return(!U||!B)&&(j.width="61%"),!U&&B?j.rows=3:j.rows=2,j}var R=function(B){var j=function(V){var z=V.getPrefixCls,J=V.direction,Z=B.prefixCls,de=B.loading,ie=B.className,ve=B.children,xe=B.avatar,_e=B.title,Ue=B.paragraph,fe=B.active,ke=B.round,se=z("skeleton",Z);if(de||!("loading"in B)){var te,Ve=!!xe,ae=!!_e,Q=!!Ue,G;if(Ve){var Y=A()(A()({prefixCls:"".concat(se,"-avatar")},L(ae,Q)),I(xe));G=f.createElement("div",{className:"".concat(se,"-header")},f.createElement(u,Y))}var me;if(ae||Q){var ue;if(ae){var Ce=A()(A()({prefixCls:"".concat(se,"-title")},N(Ve,Q)),I(_e));ue=f.createElement(i,Ce)}var Ie;if(Q){var ce=A()(A()({prefixCls:"".concat(se,"-paragraph")},D(Ve,ae)),I(Ue));Ie=f.createElement(t,ce)}me=f.createElement("div",{className:"".concat(se,"-content")},ue,Ie)}var Ae=o()(se,ie,(te={},x()(te,"".concat(se,"-with-avatar"),Ve),x()(te,"".concat(se,"-active"),fe),x()(te,"".concat(se,"-rtl"),J==="rtl"),x()(te,"".concat(se,"-round"),ke),te));return f.createElement("div",{className:Ae},G,me)}return ve};return f.createElement(a.a,null,j)};R.defaultProps={avatar:!1,title:!0,paragraph:!0},R.Button=y,R.Avatar=m,R.Input=T,R.Image=_;var k=R,M=F.a=k},"/iHx":function(H,F,d){var O=d("6GrX"),x=d("IwbS"),C=["textStyle","color"],A={getTextColor:function(S){var g=this.ecModel;return this.getShallow("color")||(!S&&g?g.get(C):null)},getFont:function(){return x.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(S){return O.getBoundingRect(S,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};H.exports=A},"/ry/":function(H,F,d){var O=d("bYtY"),x=d("T4UG"),C=d("5GhG"),A=C.seriesModelMixin,S=x.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}});O.mixin(S,A,!0);var g=S;H.exports=g},"/stD":function(H,F,d){var O=d("bYtY"),x=d("IUWy"),C=d("Kagy"),A=C.toolbox.brush;function S(c,o,r){this.model=c,this.ecModel=o,this.api=r,this._brushType,this._brushMode}S.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:O.clone(A.title)};var g=S.prototype;g.render=g.updateView=function(c,o,r){var i,n,e;o.eachComponent({mainType:"brush"},function(l){i=l.brushType,n=l.brushOption.brushMode||"single",e|=l.areas.length}),this._brushType=i,this._brushMode=n,O.each(c.get("type",!0),function(l){c.setIconStatus(l,(l==="keep"?n==="multiple":l==="clear"?e:l===i)?"emphasis":"normal")})},g.getIcons=function(){var c=this.model,o=c.get("icon",!0),r={};return O.each(c.get("type",!0),function(i){o[i]&&(r[i]=o[i])}),r},g.onclick=function(c,o,r){var i=this._brushType,n=this._brushMode;r==="clear"?(o.dispatchAction({type:"axisAreaSelect",intervals:[]}),o.dispatchAction({type:"brush",command:"clear",areas:[]})):o.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:r==="keep"?i:i===r?!1:r,brushMode:r==="keep"?n==="multiple"?"single":"multiple":n}})},x.register("brush",S);var f=S;H.exports=f},"/wGt":function(H,F,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),S=d("lwsE"),g=d.n(S),f=d("W8MJ"),c=d.n(f),o=d("PJYZ"),r=d.n(o),i=d("7W2i"),n=d.n(i),e=d("LQ03"),l=d.n(e),t=d("q1tI"),a=d("Ff2n"),s=d("1OyB"),u=d("vuIU"),h=d("Ji7U"),p=d("md7G"),m=d("foSv"),v=d("1W/9"),y=d("rePB"),E=d("JX7q"),T=d("TSYQ"),b=d.n(T),w=d("qx4F"),_=d("4IlW");function I(ue){return Array.isArray(ue)?ue:[ue]}var L={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},N=Object.keys(L).filter(function(ue){if(typeof document=="undefined")return!1;var Ce=document.getElementsByTagName("html")[0];return ue in(Ce?Ce.style:{})})[0],D=L[N];function R(ue,Ce,Ie,ce){ue.addEventListener?ue.addEventListener(Ce,Ie,ce):ue.attachEvent&&ue.attachEvent("on".concat(Ce),Ie)}function k(ue,Ce,Ie,ce){ue.removeEventListener?ue.removeEventListener(Ce,Ie,ce):ue.attachEvent&&ue.detachEvent("on".concat(Ce),Ie)}function M(ue,Ce){var Ie=typeof ue=="function"?ue(Ce):ue;return Array.isArray(Ie)?Ie.length===2?Ie:[Ie[0],Ie[1]]:[Ie]}var U=function(Ce){return!isNaN(parseFloat(Ce))&&isFinite(Ce)},B=!(typeof window!="undefined"&&window.document&&window.document.createElement),j=function ue(Ce,Ie,ce,Ae){if(!Ie||Ie===document||Ie instanceof Document)return!1;if(Ie===Ce.parentNode)return!0;var Te=Math.max(Math.abs(ce),Math.abs(Ae))===Math.abs(Ae),Ge=Math.max(Math.abs(ce),Math.abs(Ae))===Math.abs(ce),gt=Ie.scrollHeight-Ie.clientHeight,qe=Ie.scrollWidth-Ie.clientWidth,Le=document.defaultView.getComputedStyle(Ie),Ot=Le.overflowY==="auto"||Le.overflowY==="scroll",$e=Le.overflowX==="auto"||Le.overflowX==="scroll",xt=gt&&Ot,Ht=qe&&$e;return Te&&(!xt||xt&&(Ie.scrollTop>=gt&&Ae<0||Ie.scrollTop<=0&&Ae>0))||Ge&&(!Ht||Ht&&(Ie.scrollLeft>=qe&&ce<0||Ie.scrollLeft<=0&&ce>0))?ue(Ce,Ie.parentNode,ce,Ae):!1};function W(ue){var Ce=V();return function(){var ce=Object(m.a)(ue),Ae;if(Ce){var Te=Object(m.a)(this).constructor;Ae=Reflect.construct(ce,arguments,Te)}else Ae=ce.apply(this,arguments);return Object(p.a)(this,Ae)}}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(ue){return!1}}var z={},J=function(ue){Object(h.a)(Ie,ue);var Ce=W(Ie);function Ie(ce){var Ae;return Object(s.a)(this,Ie),Ae=Ce.call(this,ce),Ae.domFocus=function(){Ae.dom&&Ae.dom.focus()},Ae.removeStartHandler=function(Te){if(Te.touches.length>1)return;Ae.startPos={x:Te.touches[0].clientX,y:Te.touches[0].clientY}},Ae.removeMoveHandler=function(Te){if(Te.changedTouches.length>1)return;var Ge=Te.currentTarget,gt=Te.changedTouches[0].clientX-Ae.startPos.x,qe=Te.changedTouches[0].clientY-Ae.startPos.y;(Ge===Ae.maskDom||Ge===Ae.handlerDom||Ge===Ae.contentDom&&j(Ge,Te.target,gt,qe))&&Te.cancelable&&Te.preventDefault()},Ae.transitionEnd=function(Te){var Ge=Te.target;k(Ge,D,Ae.transitionEnd),Ge.style.transition=""},Ae.onKeyDown=function(Te){if(Te.keyCode===_.a.ESC){var Ge=Ae.props.onClose;Te.stopPropagation(),Ge&&Ge(Te)}},Ae.onWrapperTransitionEnd=function(Te){var Ge=Ae.props,gt=Ge.open,qe=Ge.afterVisibleChange;Te.target===Ae.contentWrapper&&Te.propertyName.match(/transform$/)&&(Ae.dom.style.transition="",!gt&&Ae.getCurrentDrawerSome()&&(document.body.style.overflowX="",Ae.maskDom&&(Ae.maskDom.style.left="",Ae.maskDom.style.width="")),qe&&qe(!!gt))},Ae.openLevelTransition=function(){var Te=Ae.props,Ge=Te.open,gt=Te.width,qe=Te.height,Le=Ae.getHorizontalBoolAndPlacementName(),Ot=Le.isHorizontal,$e=Le.placementName,xt=Ae.contentDom?Ae.contentDom.getBoundingClientRect()[Ot?"width":"height"]:0,Ht=(Ot?gt:qe)||xt;Ae.setLevelAndScrolling(Ge,$e,Ht)},Ae.setLevelTransform=function(Te,Ge,gt,qe){var Le=Ae.props,Ot=Le.placement,$e=Le.levelMove,xt=Le.duration,Ht=Le.ease,tr=Le.showMask;Ae.levelDom.forEach(function(Mt){Mt.style.transition="transform ".concat(xt," ").concat(Ht),R(Mt,D,Ae.transitionEnd);var Tt=Te?gt:0;if($e){var Xe=M($e,{target:Mt,open:Te});Tt=Te?Xe[0]:Xe[1]||0}var oe=typeof Tt=="number"?"".concat(Tt,"px"):Tt,X=Ot==="left"||Ot==="top"?oe:"-".concat(oe);X=tr&&Ot==="right"&&qe?"calc(".concat(X," + ").concat(qe,"px)"):X,Mt.style.transform=Tt?"".concat(Ge,"(").concat(X,")"):""})},Ae.setLevelAndScrolling=function(Te,Ge,gt){var qe=Ae.props.onChange;if(!B){var Le=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(w.a)(!0):0;Ae.setLevelTransform(Te,Ge,gt,Le),Ae.toggleScrollingToDrawerAndBody(Le)}qe&&qe(Te)},Ae.toggleScrollingToDrawerAndBody=function(Te){var Ge=Ae.props,gt=Ge.getOpenCount,qe=Ge.getContainer,Le=Ge.showMask,Ot=Ge.open,$e=qe&&qe(),xt=gt&>();if($e&&$e.parentNode===document.body&&Le){var Ht=["touchstart"],tr=[document.body,Ae.maskDom,Ae.handlerDom,Ae.contentDom];Ot&&document.body.style.overflow!=="hidden"?(Te&&Ae.addScrollingEffect(Te),xt===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",tr.forEach(function(Mt,Tt){if(!Mt)return;R(Mt,Ht[Tt]||"touchmove",Tt?Ae.removeMoveHandler:Ae.removeStartHandler,Ae.passive)})):Ae.getCurrentDrawerSome()&&(xt||(document.body.style.overflow=""),document.body.style.touchAction="",Te&&Ae.remScrollingEffect(Te),tr.forEach(function(Mt,Tt){if(!Mt)return;k(Mt,Ht[Tt]||"touchmove",Tt?Ae.removeMoveHandler:Ae.removeStartHandler,Ae.passive)}))}},Ae.addScrollingEffect=function(Te){var Ge=Ae.props,gt=Ge.placement,qe=Ge.duration,Le=Ge.ease,Ot=Ge.getOpenCount,$e=Ge.switchScrollingEffect,xt=Ot&&Ot();xt===1&&$e();var Ht="width ".concat(qe," ").concat(Le),tr="transform ".concat(qe," ").concat(Le);Ae.dom.style.transition="none";switch(gt){case"right":Ae.dom.style.transform="translateX(-".concat(Te,"px)");break;case"top":case"bottom":Ae.dom.style.width="calc(100% - ".concat(Te,"px)"),Ae.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(Ae.timeout),Ae.timeout=setTimeout(function(){Ae.dom&&(Ae.dom.style.transition="".concat(tr,",").concat(Ht),Ae.dom.style.width="",Ae.dom.style.transform="")})},Ae.remScrollingEffect=function(Te){var Ge=Ae.props,gt=Ge.placement,qe=Ge.duration,Le=Ge.ease,Ot=Ge.getOpenCount,$e=Ge.switchScrollingEffect,xt=Ot&&Ot();xt||$e(!0),N&&(document.body.style.overflowX="hidden"),Ae.dom.style.transition="none";var Ht,tr="width ".concat(qe," ").concat(Le),Mt="transform ".concat(qe," ").concat(Le);switch(gt){case"left":{Ae.dom.style.width="100%",tr="width 0s ".concat(Le," ").concat(qe);break}case"right":{Ae.dom.style.transform="translateX(".concat(Te,"px)"),Ae.dom.style.width="100%",tr="width 0s ".concat(Le," ").concat(qe),Ae.maskDom&&(Ae.maskDom.style.left="-".concat(Te,"px"),Ae.maskDom.style.width="calc(100% + ".concat(Te,"px)"));break}case"top":case"bottom":{Ae.dom.style.width="calc(100% + ".concat(Te,"px)"),Ae.dom.style.height="100%",Ae.dom.style.transform="translateZ(0)",Ht="height 0s ".concat(Le," ").concat(qe);break}default:break}clearTimeout(Ae.timeout),Ae.timeout=setTimeout(function(){Ae.dom&&(Ae.dom.style.transition="".concat(Mt,",").concat(Ht?"".concat(Ht,","):"").concat(tr),Ae.dom.style.transform="",Ae.dom.style.width="",Ae.dom.style.height="")})},Ae.getCurrentDrawerSome=function(){return!Object.keys(z).some(function(Te){return z[Te]})},Ae.getLevelDom=function(Te){var Ge=Te.level,gt=Te.getContainer;if(B)return;var qe=gt&>(),Le=qe?qe.parentNode:null;if(Ae.levelDom=[],Ge==="all"){var Ot=Le?Array.prototype.slice.call(Le.children):[];Ot.forEach(function($e){$e.nodeName!=="SCRIPT"&&$e.nodeName!=="STYLE"&&$e.nodeName!=="LINK"&&$e!==qe&&Ae.levelDom.push($e)})}else Ge&&I(Ge).forEach(function($e){document.querySelectorAll($e).forEach(function(xt){Ae.levelDom.push(xt)})})},Ae.getHorizontalBoolAndPlacementName=function(){var Te=Ae.props.placement,Ge=Te==="left"||Te==="right",gt="translate".concat(Ge?"X":"Y");return{isHorizontal:Ge,placementName:gt}},Ae.state={_self:Object(E.a)(Ae)},Ae}return Object(u.a)(Ie,[{key:"componentDidMount",value:function(){var Ae=this;if(!B){var Te=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Te=!0,null}}))}catch(Ot){}this.passive=Te?{passive:!1}:!1}var Ge=this.props,gt=Ge.open,qe=Ge.getContainer,Le=qe&&qe();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),gt&&(Le&&Le.parentNode===document.body&&(z[this.drawerId]=gt),this.openLevelTransition(),this.forceUpdate(function(){Ae.domFocus()}))}},{key:"componentDidUpdate",value:function(Ae){var Te=this.props,Ge=Te.open,gt=Te.getContainer,qe=gt&>();Ge!==Ae.open&&(Ge&&this.domFocus(),qe&&qe.parentNode===document.body&&(z[this.drawerId]=!!Ge),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var Ae=this.props,Te=Ae.getOpenCount,Ge=Ae.open,gt=Ae.switchScrollingEffect,qe=typeof Te=="function"&&Te();delete z[this.drawerId],Ge&&(this.setLevelTransform(!1),document.body.style.touchAction=""),qe||(document.body.style.overflow="",gt(!0))}},{key:"render",value:function(){var Ae,Te=this,Ge=this.props,gt=Ge.className,qe=Ge.children,Le=Ge.style,Ot=Ge.width,$e=Ge.height,xt=Ge.defaultOpen,Ht=Ge.open,tr=Ge.prefixCls,Mt=Ge.placement,Tt=Ge.level,Xe=Ge.levelMove,oe=Ge.ease,X=Ge.duration,Be=Ge.getContainer,Ee=Ge.handler,ee=Ge.onChange,lt=Ge.afterVisibleChange,Ct=Ge.showMask,dt=Ge.maskClosable,_t=Ge.maskStyle,ir=Ge.onClose,$r=Ge.onHandleClick,nr=Ge.keyboard,lr=Ge.getOpenCount,zt=Ge.switchScrollingEffect,Ut=Object(a.a)(Ge,["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","getOpenCount","switchScrollingEffect"]),st=this.dom?Ht:!1,Hr=b()(tr,(Ae={},Object(y.a)(Ae,"".concat(tr,"-").concat(Mt),!0),Object(y.a)(Ae,"".concat(tr,"-open"),st),Object(y.a)(Ae,gt||"",!!gt),Object(y.a)(Ae,"no-mask",!Ct),Ae)),mn=this.getHorizontalBoolAndPlacementName(),In=mn.placementName,Yn=Mt==="left"||Mt==="top"?"-100%":"100%",Mi=st?"":"".concat(In,"(").concat(Yn,")"),wn=Ee&&t.cloneElement(Ee,{onClick:function(kt){Ee.props.onClick&&Ee.props.onClick(),$r&&$r(kt)},ref:function(kt){Te.handlerDom=kt}});return t.createElement("div",Object.assign({},Ut,{tabIndex:-1,className:Hr,style:Le,ref:function(kt){Te.dom=kt},onKeyDown:st&&nr?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),Ct&&t.createElement("div",{className:"".concat(tr,"-mask"),onClick:dt?ir:void 0,style:_t,ref:function(kt){Te.maskDom=kt}}),t.createElement("div",{className:"".concat(tr,"-content-wrapper"),style:{transform:Mi,msTransform:Mi,width:U(Ot)?"".concat(Ot,"px"):Ot,height:U($e)?"".concat($e,"px"):$e},ref:function(kt){Te.contentWrapper=kt}},t.createElement("div",{className:"".concat(tr,"-content"),ref:function(kt){Te.contentDom=kt},onTouchStart:st&&Ct?this.removeStartHandler:void 0,onTouchMove:st&&Ct?this.removeMoveHandler:void 0},qe),wn))}}],[{key:"getDerivedStateFromProps",value:function(Ae,Te){var Ge=Te.prevProps,gt=Te._self,qe={prevProps:Ae};if(Ge!==void 0){var Le=Ae.placement,Ot=Ae.level;Le!==Ge.placement&&(gt.contentDom=null),Ot!==Ge.level&>.getLevelDom(Ae)}return qe}}]),Ie}(t.Component);J.defaultProps={switchScrollingEffect:function(){}};var Z=J;function de(ue){var Ce=ie();return function(){var ce=Object(m.a)(ue),Ae;if(Ce){var Te=Object(m.a)(this).constructor;Ae=Reflect.construct(ce,arguments,Te)}else Ae=ce.apply(this,arguments);return Object(p.a)(this,Ae)}}function ie(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ue){return!1}}var ve=function(ue){Object(h.a)(Ie,ue);var Ce=de(Ie);function Ie(ce){var Ae;Object(s.a)(this,Ie),Ae=Ce.call(this,ce),Ae.onHandleClick=function(Ge){var gt=Ae.props,qe=gt.onHandleClick,Le=gt.open;if(qe&&qe(Ge),typeof Le=="undefined"){var Ot=Ae.state.open;Ae.setState({open:!Ot})}},Ae.onClose=function(Ge){var gt=Ae.props,qe=gt.onClose,Le=gt.open;qe&&qe(Ge),typeof Le=="undefined"&&Ae.setState({open:!1})};var Te=typeof ce.open!="undefined"?ce.open:!!ce.defaultOpen;return Ae.state={open:Te},"onMaskClick"in ce&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),Ae}return Object(u.a)(Ie,[{key:"render",value:function(){var Ae=this,Te=this.props,Ge=Te.defaultOpen,gt=Te.getContainer,qe=Te.wrapperClassName,Le=Te.forceRender,Ot=Te.handler,$e=Object(a.a)(Te,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),xt=this.state.open;if(!gt)return t.createElement("div",{className:qe,ref:function(Mt){Ae.dom=Mt}},t.createElement(Z,Object.assign({},$e,{open:xt,handler:Ot,getContainer:function(){return Ae.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var Ht=!!Ot||Le;return t.createElement(v.a,{visible:xt,forceRender:Ht,getContainer:gt,wrapperClassName:qe},function(tr){var Mt=tr.visible,Tt=tr.afterClose,Xe=Object(a.a)(tr,["visible","afterClose"]);return t.createElement(Z,Object.assign({},$e,Xe,{open:Mt!==void 0?Mt:xt,afterVisibleChange:Tt!==void 0?Tt:$e.afterVisibleChange,handler:Ot,onClose:Ae.onClose,onHandleClick:Ae.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(Ae,Te){var Ge=Te.prevProps,gt={prevProps:Ae};return typeof Ge!="undefined"&&Ae.open!==Ge.open&&(gt.open=Ae.open),gt}}]),Ie}(t.Component);ve.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:t.createElement("div",{className:"drawer-handle"},t.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var xe=ve,_e=xe,Ue=d("V/uB"),fe=d.n(Ue),ke=d("BGR+"),se=d("H84U"),te=d("CWQg"),Ve=function(ue,Ce){var Ie={};for(var ce in ue)Object.prototype.hasOwnProperty.call(ue,ce)&&Ce.indexOf(ce)<0&&(Ie[ce]=ue[ce]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ce=Object.getOwnPropertySymbols(ue);Ae<ce.length;Ae++)Ce.indexOf(ce[Ae])<0&&Object.prototype.propertyIsEnumerable.call(ue,ce[Ae])&&(Ie[ce[Ae]]=ue[ce[Ae]]);return Ie},ae=t.createContext(null),Q=Object(te.a)("top","right","bottom","left"),G={distance:180},Y=function(ue){n()(Ie,ue);var Ce=l()(Ie);function Ie(){var ce;return g()(this,Ie),ce=Ce.apply(this,arguments),ce.state={push:!1},ce.push=function(){ce.props.push&&ce.setState({push:!0})},ce.pull=function(){ce.props.push&&ce.setState({push:!1})},ce.onDestroyTransitionEnd=function(){var Ae=ce.getDestroyOnClose();if(!Ae)return;ce.props.visible||(ce.destroyClose=!0,ce.forceUpdate())},ce.getDestroyOnClose=function(){return ce.props.destroyOnClose&&!ce.props.visible},ce.getPushDistance=function(){var Ae=ce.props.push,Te;return typeof Ae=="boolean"?Te=Ae?G.distance:0:Te=Ae.distance,parseFloat(String(Te||0))},ce.getPushTransform=function(Ae){var Te=ce.getPushDistance();if(Ae==="left"||Ae==="right")return"translateX(".concat(Ae==="left"?Te:-Te,"px)");if(Ae==="top"||Ae==="bottom")return"translateY(".concat(Ae==="top"?Te:-Te,"px)")},ce.getRcDrawerStyle=function(){var Ae=ce.props,Te=Ae.zIndex,Ge=Ae.placement,gt=Ae.mask,qe=Ae.style,Le=ce.state.push,Ot=gt?{}:ce.getOffsetStyle();return A()(A()({zIndex:Te,transform:Le?ce.getPushTransform(Ge):void 0},Ot),qe)},ce.renderBody=function(){var Ae=ce.props,Te=Ae.bodyStyle,Ge=Ae.drawerStyle,gt=Ae.prefixCls,qe=Ae.visible;if(ce.destroyClose&&!qe)return null;ce.destroyClose=!1;var Le={},Ot=ce.getDestroyOnClose();return Ot&&(Le.opacity=0,Le.transition="opacity .3s"),t.createElement("div",{className:"".concat(gt,"-wrapper-body"),style:A()(A()({},Le),Ge),onTransitionEnd:ce.onDestroyTransitionEnd},ce.renderHeader(),t.createElement("div",{className:"".concat(gt,"-body"),style:Te},ce.props.children),ce.renderFooter())},ce.renderProvider=function(Ae){return ce.parentDrawer=Ae,t.createElement(se.a,null,function(Te){var Ge=Te.getPopupContainer,gt=Te.getPrefixCls,qe=ce.props,Le=qe.prefixCls,Ot=qe.placement,$e=qe.className,xt=qe.mask,Ht=qe.direction,tr=qe.visible,Mt=Ve(qe,["prefixCls","placement","className","mask","direction","visible"]),Tt=gt("select",Le),Xe=b()($e,x()({"no-mask":!xt},"".concat(Tt,"-rtl"),Ht==="rtl")),oe=xt?ce.getOffsetStyle():{};return t.createElement(ae.Provider,{value:r()(ce)},t.createElement(_e,A()({handler:!1},Object(ke.default)(Mt,["zIndex","style","closable","closeIcon","destroyOnClose","drawerStyle","headerStyle","bodyStyle","footerStyle","footer","locale","title","push","visible","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","pageHeader","autoInsertSpaceInButton","width","height","dropdownMatchSelectWidth","getTargetContainer"]),{getContainer:Mt.getContainer===void 0&&Ge?function(){return Ge(document.body)}:Mt.getContainer},oe,{prefixCls:Tt,open:tr,showMask:xt,placement:Ot,style:ce.getRcDrawerStyle(),className:Xe}),ce.renderBody()))})},ce}return c()(Ie,[{key:"componentDidMount",value:function(){var Ae=this.props.visible;Ae&&this.parentDrawer&&this.parentDrawer.push()}},{key:"componentDidUpdate",value:function(Ae){var Te=this.props.visible;Ae.visible!==Te&&this.parentDrawer&&(Te?this.parentDrawer.push():this.parentDrawer.pull())}},{key:"componentWillUnmount",value:function(){this.parentDrawer&&(this.parentDrawer.pull(),this.parentDrawer=null)}},{key:"getOffsetStyle",value:function(){var Ae=this.props,Te=Ae.placement,Ge=Ae.width,gt=Ae.height,qe=Ae.visible,Le=Ae.mask;if(!qe&&!Le)return{};var Ot={};return Te==="left"||Te==="right"?Ot.width=Ge:Ot.height=gt,Ot}},{key:"renderHeader",value:function(){var Ae=this.props,Te=Ae.title,Ge=Ae.prefixCls,gt=Ae.closable,qe=Ae.headerStyle;if(!Te&&!gt)return null;var Le=Te?"".concat(Ge,"-header"):"".concat(Ge,"-header-no-title");return t.createElement("div",{className:Le,style:qe},Te&&t.createElement("div",{className:"".concat(Ge,"-title")},Te),gt&&this.renderCloseIcon())}},{key:"renderFooter",value:function(){var Ae=this.props,Te=Ae.footer,Ge=Ae.footerStyle,gt=Ae.prefixCls;if(!Te)return null;var qe="".concat(gt,"-footer");return t.createElement("div",{className:qe,style:Ge},Te)}},{key:"renderCloseIcon",value:function(){var Ae=this.props,Te=Ae.closable,Ge=Ae.closeIcon,gt=Ge===void 0?t.createElement(fe.a,null):Ge,qe=Ae.prefixCls,Le=Ae.onClose;return Te&&t.createElement("button",{onClick:Le,"aria-label":"Close",className:"".concat(qe,"-close"),style:{"--scroll-bar":"".concat(Object(w.a)(),"px")}},gt)}},{key:"render",value:function(){return t.createElement(ae.Consumer,null,this.renderProvider)}}]),Ie}(t.Component);Y.defaultProps={width:256,height:256,closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:G};var me=F.a=Object(se.c)({prefixCls:"drawer"})(Y)},"/y7N":function(H,F,d){var O=d("bYtY"),x=d("IwbS"),C=d("6GrX"),A=d("7aKB"),S=d("Fofx"),g=d("aX7z"),f=d("+rIm");function c(s){var u=s.get("type"),h=s.getModel(u+"Style"),p;return u==="line"?(p=h.getLineStyle(),p.fill=null):u==="shadow"&&(p=h.getAreaStyle(),p.stroke=null),p}function o(s,u,h,p,m){var v=h.get("value"),y=i(v,u.axis,u.ecModel,h.get("seriesDataIndices"),{precision:h.get("label.precision"),formatter:h.get("label.formatter")}),E=h.getModel("label"),T=A.normalizeCssArray(E.get("padding")||0),b=E.getFont(),w=C.getBoundingRect(y,b),_=m.position,I=w.width+T[1]+T[3],L=w.height+T[0]+T[2],N=m.align;N==="right"&&(_[0]-=I),N==="center"&&(_[0]-=I/2);var D=m.verticalAlign;D==="bottom"&&(_[1]-=L),D==="middle"&&(_[1]-=L/2),r(_,I,L,p);var R=E.get("backgroundColor");(!R||R==="auto")&&(R=u.get("axisLine.lineStyle.color")),s.label={shape:{x:0,y:0,width:I,height:L,r:E.get("borderRadius")},position:_.slice(),style:{text:y,textFont:b,textFill:E.getTextColor(),textPosition:"inside",textPadding:T,fill:R,stroke:E.get("borderColor")||"transparent",lineWidth:E.get("borderWidth")||0,shadowBlur:E.get("shadowBlur"),shadowColor:E.get("shadowColor"),shadowOffsetX:E.get("shadowOffsetX"),shadowOffsetY:E.get("shadowOffsetY")},z2:10}}function r(s,u,h,p){var m=p.getWidth(),v=p.getHeight();s[0]=Math.min(s[0]+u,m)-u,s[1]=Math.min(s[1]+h,v)-h,s[0]=Math.max(s[0],0),s[1]=Math.max(s[1],0)}function i(s,u,h,p,m){s=u.scale.parse(s);var v=u.scale.getLabel(s,{precision:m.precision}),y=m.formatter;if(y){var E={value:g.getAxisRawValue(u,s),axisDimension:u.dim,axisIndex:u.index,seriesData:[]};O.each(p,function(T){var b=h.getSeriesByIndex(T.seriesIndex),w=T.dataIndexInside,_=b&&b.getDataParams(w);_&&E.seriesData.push(_)}),O.isString(y)?v=y.replace("{value}",v):O.isFunction(y)&&(v=y(E))}return v}function n(s,u,h){var p=S.create();return S.rotate(p,p,h.rotation),S.translate(p,p,h.position),x.applyTransform([s.dataToCoord(u),(h.labelOffset||0)+(h.labelDirection||1)*(h.labelMargin||0)],p)}function e(s,u,h,p,m,v){var y=f.innerTextLayout(h.rotation,0,h.labelDirection);h.labelMargin=m.get("label.margin"),o(u,p,m,v,{position:n(p.axis,s,h),align:y.textAlign,verticalAlign:y.textVerticalAlign})}function l(s,u,h){return h=h||0,{x1:s[h],y1:s[1-h],x2:u[h],y2:u[1-h]}}function t(s,u,h){return h=h||0,{x:s[h],y:s[1-h],width:u[h],height:u[1-h]}}function a(s,u,h,p,m,v){return{cx:s,cy:u,r0:h,r:p,startAngle:m,endAngle:v,clockwise:!0}}F.buildElStyle=c,F.buildLabelElOption=o,F.getValueLabel=i,F.getTransformedPosition=n,F.buildCartesianSingleLabelElOption=e,F.makeLineShape=l,F.makeRectShape=t,F.makeSectorShape=a},"/zsF":function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("bE4E"),A=d.n(C)},"0/Rx":function(H,F){function d(O){return{seriesType:O,reset:function(x,C){var A=C.findComponents({mainType:"legend"});if(!A||!A.length)return;var S=x.getData();S.filterSelf(function(g){for(var f=S.getName(g),c=0;c<A.length;c++)if(!A[c].isSelected(f))return!1;return!0})}}}H.exports=d},"01d+":function(H,F,d){var O=d("bYtY"),x=O.each,C=d("HF/U"),A=C.simpleLayout,S=C.simpleLayoutEdge;function g(f,c){f.eachSeriesByType("graph",function(o){var r=o.get("layout"),i=o.coordinateSystem;if(i&&i.type!=="view"){var n=o.getData(),e=[];x(i.dimensions,function(h){e=e.concat(n.mapDimension(h,!0))});for(var l=0;l<n.count();l++){for(var t=[],a=!1,s=0;s<e.length;s++){var u=n.get(e[s],l);isNaN(u)||(a=!0),t.push(u)}a?n.setItemLayout(l,i.dataToPoint(t)):n.setItemLayout(l,[NaN,NaN])}S(n.graph)}else(!r||r==="none")&&A(o)})}H.exports=g},"06DH":function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("Kagy"),A=d("IUWy"),S=C.toolbox.magicType,g="__ec_magicType_stack__";function f(n){this.model=n}f.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:x.clone(S.title),option:{},seriesIndex:{}};var c=f.prototype;c.getIcons=function(){var n=this.model,e=n.get("icon"),l={};return x.each(n.get("type"),function(t){e[t]&&(l[t]=e[t])}),l};var o={line:function(n,e,l,t){if(n==="bar")return x.merge({id:e,type:"line",data:l.get("data"),stack:l.get("stack"),markPoint:l.get("markPoint"),markLine:l.get("markLine")},t.get("option.line")||{},!0)},bar:function(n,e,l,t){if(n==="line")return x.merge({id:e,type:"bar",data:l.get("data"),stack:l.get("stack"),markPoint:l.get("markPoint"),markLine:l.get("markLine")},t.get("option.bar")||{},!0)},stack:function(n,e,l,t){var a=l.get("stack")===g;if(n==="line"||n==="bar")return t.setIconStatus("stack",a?"normal":"emphasis"),x.merge({id:e,stack:a?"":g},t.get("option.stack")||{},!0)}},r=[["line","bar"],["stack"]];c.onclick=function(n,e,l){var t=this.model,a=t.get("seriesIndex."+l);if(!o[l])return;var s={series:[]},u=function(m){var v=m.subType,y=m.id,E=o[l](v,y,m,t);E&&(x.defaults(E,m.option),s.series.push(E));var T=m.coordinateSystem;if(T&&T.type==="cartesian2d"&&(l==="line"||l==="bar")){var b=T.getAxesByScale("ordinal")[0];if(b){var w=b.dim,_=w+"Axis",I=n.queryComponents({mainType:_,index:m.get(name+"Index"),id:m.get(name+"Id")})[0],L=I.componentIndex;s[_]=s[_]||[];for(var N=0;N<=L;N++)s[_][L]=s[_][L]||{};s[_][L].boundaryGap=l==="bar"}}};x.each(r,function(m){x.indexOf(m,l)>=0&&x.each(m,function(v){t.setIconStatus(v,"normal")})}),t.setIconStatus(l,"emphasis"),n.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},u);var h;if(l==="stack"){var p=s.series&&s.series[0]&&s.series[0].stack===g;h=p?x.merge({stack:S.title.tiled},S.title):x.clone(S.title)}e.dispatchAction({type:"changeMagicType",currentType:l,newOption:s,newTitle:h,featureName:"magicType"})},O.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)}),A.register("magicType",f);var i=f;H.exports=i},"06Qe":function(H,F,d){var O=d("ItGF"),x="urn:schemas-microsoft-com:vml",C=typeof window=="undefined"?null:window,A=!1,S=C&&C.document;function g(o){return f(o)}var f;if(S&&!O.canvasSupported)try{!S.namespaces.zrvml&&S.namespaces.add("zrvml",x),f=function(r){return S.createElement("<zrvml:"+r+' class="zrvml">')}}catch(o){f=function(i){return S.createElement("<"+i+' xmlns="'+x+'" class="zrvml">')}}function c(){if(A||!S)return;A=!0;var o=S.styleSheets;o.length<31?S.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):o[0].addRule(".zrvml","behavior:url(#default#VML)")}F.doc=S,F.createNode=g,F.initVML=c},"09Wf":function(H,F,d){"use strict";d.d(F,"b",function(){return x}),d.d(F,"a",function(){return C});var O=d("CWQg"),x=Object(O.a)("success","processing","error","default","warning"),C=Object(O.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},"0Bwj":function(H,F,d){var O=d("T4UG"),x=d("I3/A"),C=d("7aKB"),A=C.encodeHTML,S=d("Qxkt"),g=d("Tghj"),f=g.__DEV__,c=O.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(r,i){for(var n=r.edges||r.links,e=r.data||r.nodes,l=r.levels,t=this.levelModels={},a=0;a<l.length;a++)l[a].depth!=null&&l[a].depth>=0&&(t[l[a].depth]=new S(l[a],this,i));if(e&&n){var s=x(e,n,this,!0,u);return s.data}function u(h,p){h.wrapMethod("getItemModel",function(m,v){return m.customizeGetParent(function(y){var E=this.parentModel,T=E.getData().getItemLayout(v).depth,b=E.levelModels[T];return b||this.parentModel}),m}),p.wrapMethod("getItemModel",function(m,v){return m.customizeGetParent(function(y){var E=this.parentModel,T=E.getGraph().getEdgeByIndex(v),b=T.node1.getLayout().depth,w=E.levelModels[b];return w||this.parentModel}),m})}},setNodePosition:function(r,i){var n=this.option.data[r];n.localX=i[0],n.localY=i[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(r,i,n){if(n==="edge"){var e=this.getDataParams(r,n),l=e.data,t=l.source+" -- "+l.target;return e.value&&(t+=" : "+e.value),A(t)}else if(n==="node"){var a=this.getGraph().getNodeByIndex(r),s=a.getLayout().value,u=this.getDataParams(r,n).data.name;if(s)var t=u+" : "+s;return A(t)}return c.superCall(this,"formatTooltip",r,i)},optionUpdated:function(){var r=this.option;r.focusNodeAdjacency===!0&&(r.focusNodeAdjacency="allEdges")},getDataParams:function(r,i){var n=c.superCall(this,"getDataParams",r,i);if(n.value==null&&i==="node"){var e=this.getGraph().getNodeByIndex(r),l=e.getLayout().value;n.value=l}return n},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}}),o=c;H.exports=o},"0HBW":function(H,F,d){var O=d("ProS"),x=d("bYtY");d("Hxpc"),d("7uqq"),d("dmGj"),d("SehX");function C(A,S){S.update="updateView",O.registerAction(S,function(g,f){var c={};return f.eachComponent({mainType:"geo",query:g},function(o){o[A](g.name);var r=o.coordinateSystem;x.each(r.regions,function(i){c[i.name]=o.isSelected(i.name)||!1})}),{selected:c,name:g.name}})}C("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),C("select",{type:"geoSelect",event:"geoselected"}),C("unSelect",{type:"geoUnSelect",event:"geounselected"})},"0JAE":function(H,F,d){var O=d("bYtY"),x=d("+TT/"),C=d("OELB"),A=d("IDmD"),S=864e5;function g(o,r,i){this._model=o}g.prototype={constructor:g,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(o){o=C.parseDate(o);var r=o.getFullYear(),i=o.getMonth()+1;i=i<10?"0"+i:i;var n=o.getDate();n=n<10?"0"+n:n;var e=o.getDay();return e=Math.abs((e+7-this.getFirstDayOfWeek())%7),{y:r,m:i,d:n,day:e,time:o.getTime(),formatedDate:r+"-"+i+"-"+n,date:o}},getNextNDay:function(o,r){return r=r||0,r===0?this.getDateInfo(o):(o=new Date(this.getDateInfo(o).time),o.setDate(o.getDate()+r),this.getDateInfo(o))},update:function(o,r){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 i=this._rangeInfo.weeks||1,n=["width","height"],e=this._model.get("cellSize").slice(),l=this._model.getBoxLayoutParams(),t=this._orient==="horizontal"?[i,7]:[7,i];O.each([0,1],function(h){u(e,h)&&(l[n[h]]=e[h]*t[h])});var a={width:r.getWidth(),height:r.getHeight()},s=this._rect=x.getLayoutRect(l,a);O.each([0,1],function(h){u(e,h)||(e[h]=s[n[h]]/t[h])});function u(h,p){return h[p]!=null&&h[p]!=="auto"}this._sw=e[0],this._sh=e[1]},dataToPoint:function(o,r){O.isArray(o)&&(o=o[0]),r==null&&(r=!0);var i=this.getDateInfo(o),n=this._rangeInfo,e=i.formatedDate;if(r&&!(i.time>=n.start.time&&i.time<n.end.time+S))return[NaN,NaN];var l=i.day,t=this._getRangeInfo([n.start.time,e]).nthWeek;return this._orient==="vertical"?[this._rect.x+l*this._sw+this._sw/2,this._rect.y+t*this._sh+this._sh/2]:[this._rect.x+t*this._sw+this._sw/2,this._rect.y+l*this._sh+this._sh/2]},pointToData:function(o){var r=this.pointToDate(o);return r&&r.time},dataToRect:function(o,r){var i=this.dataToPoint(o,r);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},pointToDate:function(o){var r=Math.floor((o[0]-this._rect.x)/this._sw)+1,i=Math.floor((o[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(i,r-1,n):this._getDateByWeeksAndDay(r,i-1,n)},convertToPixel:O.curry(f,"dataToPoint"),convertFromPixel:O.curry(f,"pointToData"),_initRangeOption:function(){var o=this._model.get("range"),r=o;if(O.isArray(r)&&r.length===1&&(r=r[0]),/^\d{4}$/.test(r)&&(o=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var i=this.getDateInfo(r),n=i.date;n.setMonth(n.getMonth()+1);var e=this.getNextNDay(n,-1);o=[i.formatedDate,e.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(o=[r,r]);var l=this._getRangeInfo(o);return l.start.time>l.end.time&&o.reverse(),o},_getRangeInfo:function(o){o=[this.getDateInfo(o[0]),this.getDateInfo(o[1])];var r;o[0].time>o[1].time&&(r=!0,o.reverse());var i=Math.floor(o[1].time/S)-Math.floor(o[0].time/S)+1,n=new Date(o[0].time),e=n.getDate(),l=o[1].date.getDate();n.setDate(e+i-1);var t=n.getDate();if(t!==l)for(var a=n.getTime()-o[1].time>0?1:-1;(t=n.getDate())!==l&&(n.getTime()-o[1].time)*a>0;)i-=a,n.setDate(t-a);var s=Math.floor((i+o[0].day+6)/7),u=r?-s+1:s-1;return r&&o.reverse(),{range:[o[0].formatedDate,o[1].formatedDate],start:o[0],end:o[1],allDay:i,weeks:s,nthWeek:u,fweek:o[0].day,lweek:o[1].day}},_getDateByWeeksAndDay:function(o,r,i){var n=this._getRangeInfo(i);if(o>n.weeks||o===0&&r<n.fweek||o===n.weeks&&r>n.lweek)return!1;var e=(o-1)*7-n.fweek+r,l=new Date(n.start.time);return l.setDate(n.start.d+e),this.getDateInfo(l)}},g.dimensions=g.prototype.dimensions,g.getDimensionsInfo=g.prototype.getDimensionsInfo,g.create=function(o,r){var i=[];return o.eachComponent("calendar",function(n){var e=new g(n,o,r);i.push(e),n.coordinateSystem=e}),o.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=i[n.get("calendarIndex")||0])}),i};function f(o,r,i,n){var e=i.calendarModel,l=i.seriesModel,t=e?e.coordinateSystem:l?l.coordinateSystem:null;return t===this?t[o](n):null}A.register("calendar",g);var c=g;H.exports=c},"0JQy":function(H,F){var d="\\ud800-\\udfff",O="\\u0300-\\u036f",x="\\ufe20-\\ufe2f",C="\\u20d0-\\u20ff",A=O+x+C,S="\\ufe0e\\ufe0f",g="["+d+"]",f="["+A+"]",c="\\ud83c[\\udffb-\\udfff]",o="(?:"+f+"|"+c+")",r="[^"+d+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",n="[\\ud800-\\udbff][\\udc00-\\udfff]",e="\\u200d",l=o+"?",t="["+S+"]?",a="(?:"+e+"(?:"+[r,i,n].join("|")+")"+t+l+")*",s=t+l+a,u="(?:"+[r+f+"?",f,i,n,g].join("|")+")",h=RegExp(c+"(?="+c+")|"+u+s,"g");function p(m){return m.match(h)||[]}H.exports=p},"0NbB":function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="CaretDownOutlined";var f=F.a=x.forwardRef(g)},"0V0F":function(H,F,d){var O=d("bYtY"),x=O.createHashMap,C=O.each;function A(g){var f=x();g.eachSeries(function(c){var o=c.get("stack");if(o){var r=f.get(o)||f.set(o,[]),i=c.getData(),n={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:c};if(!n.stackedDimension||!(n.isStackedByIndex||n.stackedByDimension))return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(n)}}),f.each(S)}function S(g){C(g,function(f,c){var o=[],r=[NaN,NaN],i=[f.stackResultDimension,f.stackedOverDimension],n=f.data,e=f.isStackedByIndex,l=n.map(i,function(t,a,s){var u=n.get(f.stackedDimension,s);if(isNaN(u))return r;var h,p;e?p=n.getRawIndex(s):h=n.get(f.stackedByDimension,s);for(var m=NaN,v=c-1;v>=0;v--){var y=g[v];if(e||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var E=y.data.getByRawIndex(y.stackResultDimension,p);if(u>=0&&E>0||u<=0&&E<0){u+=E,m=E;break}}}return o[0]=u,o[1]=m,o});n.hostModel.setData(l),f.data=l})}H.exports=A},"0XgM":function(H,F,d){},"0fbx":function(H,F,d){},"0o9m":function(H,F,d){var O=d("ProS");d("hNWo"),d("RlCK"),d("XpcN");var x=d("kDyi"),C=d("bLfw");O.registerProcessor(O.PRIORITY.PROCESSOR.SERIES_FILTER,x),C.registerSubTypeDefaulter("legend",function(){return"plain"})},"0qV/":function(H,F,d){var O=d("ProS");O.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),O.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},"0r65":function(H,F){var d=arguments[3],O=arguments[4],x=arguments[5],C=JSON.stringify;H.exports=function(A,S){for(var g,f=Object.keys(x),c=0,o=f.length;c<o;c++){var r=f[c],i=x[r].exports;if(i===A||i&&i.default===A){g=r;break}}if(!g){g=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var n={},c=0,o=f.length;c<o;c++){var r=f[c];n[r]=r}O[g]=["function(require,module,exports){"+A+"(self); }",n]}var e=Math.floor(Math.pow(16,8)*Math.random()).toString(16),l={};l[g]=g,O[e]=["function(require,module,exports){var f = require("+C(g)+");(f.default ? f.default : f)(self);}",l];var t={};a(e);function a(v){t[v]=!0;for(var y in O[v][1]){var E=O[v][1][y];t[E]||a(E)}}var s="("+d+")({"+Object.keys(t).map(function(v){return C(v)+":["+O[v][0]+","+C(O[v][1])+"]"}).join(",")+"},{},["+C(e)+"])",u=window.URL||window.webkitURL||window.mozURL||window.msURL,h=new Blob([s],{type:"text/javascript"});if(S&&S.bare)return h;var p=u.createObjectURL(h),m=new Worker(p);return m.objectURL=p,m}},"0s+r":function(H,F,d){var O=d("bYtY"),x=d("QBsz"),C=d("y23F"),A=d("H6uX"),S=d("YH21"),g=d("C0SR"),f="silent";function c(a,s,u){return{type:a,event:u,target:s.target,topTarget:s.topTarget,cancelBubble:!1,offsetX:u.zrX,offsetY:u.zrY,gestureEvent:u.gestureEvent,pinchX:u.pinchX,pinchY:u.pinchY,pinchScale:u.pinchScale,wheelDelta:u.zrDelta,zrByTouch:u.zrByTouch,which:u.which,stop:o}}function o(){S.stop(this.event)}function r(){}r.prototype.dispose=function(){};var i=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],n=function(s,u,h,p){A.call(this),this.storage=s,this.painter=u,this.painterRoot=p,h=h||new r,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,C.call(this),this.setHandlerProxy(h)};n.prototype={constructor:n,setHandlerProxy:function(s){this.proxy&&this.proxy.dispose(),s&&(O.each(i,function(u){s.on&&s.on(u,this[u],this)},this),s.handler=this),this.proxy=s},mousemove:function(s){var u=s.zrX,h=s.zrY,p=l(this,u,h),m=this._hovered,v=m.target;v&&!v.__zr&&(m=this.findHover(m.x,m.y),v=m.target);var y=this._hovered=p?{x:u,y:h}:this.findHover(u,h),E=y.target,T=this.proxy;T.setCursor&&T.setCursor(E?E.cursor:"default"),v&&E!==v&&this.dispatchToElement(m,"mouseout",s),this.dispatchToElement(y,"mousemove",s),E&&E!==v&&this.dispatchToElement(y,"mouseover",s)},mouseout:function(s){var u=s.zrEventControl,h=s.zrIsToLocalDOM;u!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",s),u!=="no_globalout"&&(!h&&this.trigger("globalout",{type:"globalout",event:s}))},resize:function(s){this._hovered={}},dispatch:function(s,u){var h=this[s];h&&h.call(this,u)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(s){var u=this.proxy;u.setCursor&&u.setCursor(s)},dispatchToElement:function(s,u,h){s=s||{};var p=s.target;if(p&&p.silent)return;for(var m="on"+u,v=c(u,s,h);p&&!(p[m]&&(v.cancelBubble=p[m].call(p,v)),p.trigger(u,v),p=p.parent,v.cancelBubble););v.cancelBubble||(this.trigger(u,v),this.painter&&this.painter.eachOtherLayer(function(y){typeof y[m]=="function"&&y[m].call(y,v),y.trigger&&y.trigger(u,v)}))},findHover:function(s,u,h){for(var p=this.storage.getDisplayList(),m={x:s,y:u},v=p.length-1;v>=0;v--){var y;if(p[v]!==h&&!p[v].ignore&&(y=e(p[v],s,u))&&(!m.topTarget&&(m.topTarget=p[v]),y!==f)){m.target=p[v];break}}return m},processGesture:function(s,u){this._gestureMgr||(this._gestureMgr=new g);var h=this._gestureMgr;u==="start"&&h.clear();var p=h.recognize(s,this.findHover(s.zrX,s.zrY,null).target,this.proxy.dom);if(u==="end"&&h.clear(),p){var m=p.type;s.gestureEvent=m,this.dispatchToElement({target:p.target},m,p.event)}}},O.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){n.prototype[a]=function(s){var u=s.zrX,h=s.zrY,p=l(this,u,h),m,v;if((a!=="mouseup"||!p)&&(m=this.findHover(u,h),v=m.target),a==="mousedown")this._downEl=v,this._downPoint=[s.zrX,s.zrY],this._upEl=v;else if(a==="mouseup")this._upEl=v;else if(a==="click"){if(this._downEl!==this._upEl||!this._downPoint||x.dist(this._downPoint,[s.zrX,s.zrY])>4)return;this._downPoint=null}this.dispatchToElement(m,a,s)}});function e(a,s,u){if(a[a.rectHover?"rectContain":"contain"](s,u)){for(var h=a,p;h;){if(h.clipPath&&!h.clipPath.contain(s,u))return!1;h.silent&&(p=!0),h=h.parent}return p?f:!0}return!1}function l(a,s,u){var h=a.painter;return s<0||s>h.getWidth()||u<0||u>h.getHeight()}O.mixin(n,A),O.mixin(n,C);var t=n;H.exports=t},"10cm":function(H,F,d){var O=d("ProS"),x=d("2B6p"),C=x.updateCenterAndZoom;d("0qV/");var A={type:"graphRoam",event:"graphRoam",update:"none"};O.registerAction(A,function(S,g){g.eachComponent({mainType:"series",query:S},function(f){var c=f.coordinateSystem,o=C(c,S);f.setCenter&&f.setCenter(o.center),f.setZoom&&f.setZoom(o.zoom)})})},"15/o":function(H,F,d){},"19Vz":function(H,F,d){(function(O){O(d("VrN/"))})(function(O){O.defineOption("placeholder","",function(c,o,r){var i=r&&r!=O.Init;if(o&&!i)c.on("blur",S),c.on("change",g),c.on("swapDoc",g),O.on(c.getInputField(),"compositionupdate",c.state.placeholderCompose=function(){A(c)}),g(c);else if(!o&&i){c.off("blur",S),c.off("change",g),c.off("swapDoc",g),O.off(c.getInputField(),"compositionupdate",c.state.placeholderCompose),x(c);var n=c.getWrapperElement();n.className=n.className.replace(" CodeMirror-empty","")}o&&!c.hasFocus()&&S(c)});function x(c){c.state.placeholder&&(c.state.placeholder.parentNode.removeChild(c.state.placeholder),c.state.placeholder=null)}function C(c){x(c);var o=c.state.placeholder=document.createElement("pre");o.style.cssText="height: 0; overflow: visible",o.style.direction=c.getOption("direction"),o.className="CodeMirror-placeholder CodeMirror-line-like";var r=c.getOption("placeholder");typeof r=="string"&&(r=document.createTextNode(r)),o.appendChild(r),c.display.lineSpace.insertBefore(o,c.display.lineSpace.firstChild)}function A(c){setTimeout(function(){var o=!1,r=c.getInputField();r.nodeName=="TEXTAREA"?o=!r.value:c.lineCount()==1&&(o=!/[^\u200b]/.test(r.querySelector(".CodeMirror-line").textContent)),o?C(c):x(c)},20)}function S(c){f(c)&&C(c)}function g(c){var o=c.getWrapperElement(),r=f(c);o.className=o.className.replace(" CodeMirror-empty","")+(r?" CodeMirror-empty":""),r?C(c):x(c)}function f(c){return c.lineCount()===1&&c.getLine(0)===""}})},"1Jh7":function(H,F,d){var O=d("y+Vt"),x=d("T6xi"),C=O.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(S,g){x.buildPath(S,g,!1)}});H.exports=C},"1LEl":function(H,F,d){var O=d("ProS"),x=d("F9bG"),C=O.extendComponentView({type:"axisPointer",render:function(S,g,f){var c=g.getComponent("tooltip"),o=S.get("triggerOn")||c&&c.get("triggerOn")||"mousemove|click";x.register("axisPointer",f,function(r,i,n){o!=="none"&&(r==="leave"||o.indexOf(r)>=0)&&n({type:"updateAxisPointer",currTrigger:r,x:i&&i.offsetX,y:i&&i.offsetY})})},remove:function(S,g){x.unregister(g.getZr(),"axisPointer"),C.superApply(this._model,"remove",arguments)},dispose:function(S,g){x.unregister("axisPointer",g),C.superApply(this._model,"dispose",arguments)}}),A=C;H.exports=A},"1MYJ":function(H,F,d){var O=d("y+Vt"),x=O.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var A=this.__dirtyPath,S=this.shape.paths,g=0;g<S.length;g++)A=A||S[g].__dirtyPath;this.__dirtyPath=A,this.__dirty=this.__dirty||A},beforeBrush:function(){this._updatePathDirty();for(var A=this.shape.paths||[],S=this.getGlobalScale(),g=0;g<A.length;g++)A[g].path||A[g].createPathProxy(),A[g].path.setScale(S[0],S[1],A[g].segmentIgnoreThreshold)},buildPath:function(A,S){for(var g=S.paths||[],f=0;f<g.length;f++)g[f].buildPath(A,g[f].shape,!0)},afterBrush:function(){for(var A=this.shape.paths||[],S=0;S<A.length;S++)A[S].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),O.prototype.getBoundingRect.call(this)}});H.exports=x},"1NG9":function(H,F,d){var O=d("y+Vt"),x=d("QBsz"),C=d("iXp4"),A=x.min,S=x.max,g=x.scaleAndAdd,f=x.copy,c=[],o=[],r=[];function i(u){return isNaN(u[0])||isNaN(u[1])}function n(u,h,p,m,v,y,E,T,b,w,_){return w==="none"||!w?l.apply(this,arguments):e.apply(this,arguments)}function e(u,h,p,m,v,y,E,T,b,w,_){for(var I=0,L=p,N=0;N<m;N++){var D=h[L];if(L>=v||L<0)break;if(i(D)){if(_){L+=y;continue}break}if(L===p)u[y>0?"moveTo":"lineTo"](D[0],D[1]);else if(b>0){var R=h[I],k=w==="y"?1:0,M=(D[k]-R[k])*b;f(o,R),o[k]=R[k]+M,f(r,D),r[k]=D[k]-M,u.bezierCurveTo(o[0],o[1],r[0],r[1],D[0],D[1])}else u.lineTo(D[0],D[1]);I=L,L+=y}return N}function l(u,h,p,m,v,y,E,T,b,w,_){for(var I=0,L=p,N=0;N<m;N++){var D=h[L];if(L>=v||L<0)break;if(i(D)){if(_){L+=y;continue}break}if(L===p)u[y>0?"moveTo":"lineTo"](D[0],D[1]),f(o,D);else if(b>0){var R=L+y,k=h[R];if(_)for(;k&&i(h[R]);)R+=y,k=h[R];var M=.5,U=h[I],k=h[R];if(!k||i(k))f(r,D);else{i(k)&&!_&&(k=D),x.sub(c,k,U);var B,j;if(w==="x"||w==="y"){var W=w==="x"?0:1;B=Math.abs(D[W]-U[W]),j=Math.abs(D[W]-k[W])}else B=x.dist(D,U),j=x.dist(D,k);M=j/(j+B),g(r,D,c,-b*(1-M))}A(o,o,T),S(o,o,E),A(r,r,T),S(r,r,E),u.bezierCurveTo(o[0],o[1],r[0],r[1],D[0],D[1]),g(o,D,c,b*M)}else u.lineTo(D[0],D[1]);I=L,L+=y}return N}function t(u,h){var p=[Infinity,Infinity],m=[-Infinity,-Infinity];if(h)for(var v=0;v<u.length;v++){var y=u[v];y[0]<p[0]&&(p[0]=y[0]),y[1]<p[1]&&(p[1]=y[1]),y[0]>m[0]&&(m[0]=y[0]),y[1]>m[1]&&(m[1]=y[1])}return{min:h?p:m,max:h?m:p}}var a=O.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:C(O.prototype.brush),buildPath:function(u,h){var p=h.points,m=0,v=p.length,y=t(p,h.smoothConstraint);if(h.connectNulls){for(;v>0&&i(p[v-1]);v--);for(;m<v&&i(p[m]);m++);}for(;m<v;)m+=n(u,p,m,v,v,1,y.min,y.max,h.smooth,h.smoothMonotone,h.connectNulls)+1}}),s=O.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:C(O.prototype.brush),buildPath:function(u,h){var p=h.points,m=h.stackedOnPoints,v=0,y=p.length,E=h.smoothMonotone,T=t(p,h.smoothConstraint),b=t(m,h.smoothConstraint);if(h.connectNulls){for(;y>0&&i(p[y-1]);y--);for(;v<y&&i(p[v]);v++);}for(;v<y;){var w=n(u,p,v,y,y,1,T.min,T.max,h.smooth,E,h.connectNulls);n(u,m,v+w-1,w,y,-1,b.min,b.max,h.stackedOnSmooth,E,h.connectNulls),v+=w+1,u.closePath()}}});F.Polyline=a,F.Polygon=s},"1RvN":function(H,F){var d=function(){this.head=null,this.tail=null,this._len=0},O=d.prototype;O.insert=function(g){var f=new x(g);return this.insertEntry(f),f},O.insertEntry=function(g){this.head?(this.tail.next=g,g.prev=this.tail,g.next=null,this.tail=g):this.head=this.tail=g,this._len++},O.remove=function(g){var f=g.prev,c=g.next;f?f.next=c:this.head=c,c?c.prev=f:this.tail=f,g.next=g.prev=null,this._len--},O.len=function(){return this._len},O.clear=function(){this.head=this.tail=null,this._len=0};var x=function(f){this.value=f,this.next,this.prev},C=function(f){this._list=new d,this._map={},this._maxSize=f||10,this._lastRemovedEntry=null},A=C.prototype;A.put=function(g,f){var c=this._list,o=this._map,r=null;if(o[g]==null){var i=c.len(),n=this._lastRemovedEntry;if(i>=this._maxSize&&i>0){var e=c.head;c.remove(e),delete o[e.key],r=e.value,this._lastRemovedEntry=e}n?n.value=f:n=new x(f),n.key=g,c.insertEntry(n),o[g]=n}return r},A.get=function(g){var f=this._map[g],c=this._list;if(f!=null)return f!==c.tail&&(c.remove(f),c.insertEntry(f)),f.value},A.clear=function(){this._list.clear(),this._map={}};var S=C;H.exports=S},"1bdT":function(H,F,d){var O=d("3gBT"),x=d("H6uX"),C=d("DN4a"),A=d("vWvF"),S=d("bYtY"),g=function(o){C.call(this,o),x.call(this,o),A.call(this,o),this.id=o.id||O()};g.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(o,r){switch(this.draggable){case"horizontal":r=0;break;case"vertical":o=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=o,i[5]+=r,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(o,r){},attrKV:function(o,r){if(o==="position"||o==="scale"||o==="origin"){if(r){var i=this[o];i||(i=this[o]=[]),i[0]=r[0],i[1]=r[1]}}else this[o]=r},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(o,r){if(typeof o=="string")this.attrKV(o,r);else if(S.isObject(o))for(var i in o)o.hasOwnProperty(i)&&this.attrKV(i,o[i]);return this.dirty(!1),this},setClipPath:function(o){var r=this.__zr;r&&o.addSelfToZr(r),this.clipPath&&this.clipPath!==o&&this.removeClipPath(),this.clipPath=o,o.__zr=r,o.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var o=this.clipPath;o&&(o.__zr&&o.removeSelfFromZr(o.__zr),o.__zr=null,o.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(o){this.__zr=o;var r=this.animators;if(r)for(var i=0;i<r.length;i++)o.animation.addAnimator(r[i]);this.clipPath&&this.clipPath.addSelfToZr(o)},removeSelfFromZr:function(o){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)o.animation.removeAnimator(r[i]);this.clipPath&&this.clipPath.removeSelfFromZr(o)}},S.mixin(g,A),S.mixin(g,C),S.mixin(g,x);var f=g;H.exports=f},"1dTM":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=d("GQ8N"),x=w(d("Lo0S")),C=d("VSMT"),A=d("GdRQ"),S=d("SZEN"),g=d("vewr"),f=T(d("YJ9k")),c=T(d("MZdM")),o=T(d("ItS6")),r=T(d("whVF")),i=T(d("Fv0C")),n=T(d("LCi9")),e=T(d("rwxt")),l=T(d("Mmt2")),t=T(d("iUHT")),a=T(d("mHUz")),s=T(d("P2ho")),u=d("NBmB");d("mdZa");var h=T(d("34/K")),p=T(d("hXwI")),m=T(d("SgaC")),v=T(d("3690")),y=T(d("8K/p")),E=T(d("xO64"));function T(me){return me&&me.__esModule?me:{default:me}}function b(){if(typeof WeakMap!="function")return null;var me=new WeakMap;return b=function(){return me},me}function w(me){if(me&&me.__esModule)return me;if(me===null||_(me)!=="object"&&typeof me!="function")return{default:me};var ue=b();if(ue&&ue.has(me))return ue.get(me);var Ce={},Ie=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var ce in me)if(Object.prototype.hasOwnProperty.call(me,ce)){var Ae=Ie?Object.getOwnPropertyDescriptor(me,ce):null;Ae&&(Ae.get||Ae.set)?Object.defineProperty(Ce,ce,Ae):Ce[ce]=me[ce]}return Ce.default=me,ue&&ue.set(me,Ce),Ce}function _(me){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(Ce){return typeof Ce}:_=function(Ce){return Ce&&typeof Symbol=="function"&&Ce.constructor===Symbol&&Ce!==Symbol.prototype?"symbol":typeof Ce},_(me)}function I(me,ue){if(!(me instanceof ue))throw new TypeError("Cannot call a class as a function")}function L(me,ue){for(var Ce=0;Ce<ue.length;Ce++){var Ie=ue[Ce];Ie.enumerable=Ie.enumerable||!1,Ie.configurable=!0,"value"in Ie&&(Ie.writable=!0),Object.defineProperty(me,Ie.key,Ie)}}function N(me,ue,Ce){return ue&&L(me.prototype,ue),Ce&&L(me,Ce),me}function D(me,ue){if(typeof ue!="function"&&ue!==null)throw new TypeError("Super expression must either be null or a function");me.prototype=Object.create(ue&&ue.prototype,{constructor:{value:me,writable:!0,configurable:!0}}),ue&&R(me,ue)}function R(me,ue){return R=Object.setPrototypeOf||function(Ie,ce){return Ie.__proto__=ce,Ie},R(me,ue)}function k(me){var ue=B();return function(){var Ie=j(me),ce;if(ue){var Ae=j(this).constructor;ce=Reflect.construct(Ie,arguments,Ae)}else ce=Ie.apply(this,arguments);return M(this,ce)}}function M(me,ue){return ue&&(_(ue)==="object"||typeof ue=="function")?ue:U(me)}function U(me){if(me===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return me}function B(){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(me){return!1}}function j(me){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(Ce){return Ce.__proto__||Object.getPrototypeOf(Ce)},j(me)}var W=3,V="rgb(40, 40, 40)",z=17,J=50,Z=19,de=75,ie=50,ve=1e3,xe=50,_e=1,Ue=1<<1,fe=1<<2,ke=1<<3,se=1<<4,te=1<<24,Ve=1<<25,ae=1<<26,Q=1<<27,G=1<<28,Y=function(me){D(Ce,me);var ue=k(Ce);function Ce(Ie,ce,Ae){var Te;if(I(this,Ce),!Ie)throw new Error("Must specify target");if(!ce)throw new Error("Must specify URL");Te=ue.call(this),Te._target=Ie,Te._url=ce,Ae=Ae||{},Te._rfbCredentials=Ae.credentials||{},Te._shared="shared"in Ae?!!Ae.shared:!0,Te._repeaterID=Ae.repeaterID||"",Te._wsProtocols=Ae.wsProtocols||[],Te._rfbConnectionState="",Te._rfbInitState="",Te._rfbAuthScheme=-1,Te._rfbCleanDisconnect=!0,Te._rfbVersion=0,Te._rfbMaxVersion=3.8,Te._rfbTightVNC=!1,Te._rfbVeNCryptState=0,Te._rfbXvpVer=0,Te._fbWidth=0,Te._fbHeight=0,Te._fbName="",Te._capabilities={power:!1},Te._supportsFence=!1,Te._supportsContinuousUpdates=!1,Te._enabledContinuousUpdates=!1,Te._supportsSetDesktopSize=!1,Te._screenID=0,Te._screenFlags=0,Te._qemuExtKeyEventSupported=!1,Te._clipboardText=null,Te._clipboardServerCapabilitiesActions={},Te._clipboardServerCapabilitiesFormats={},Te._sock=null,Te._display=null,Te._flushing=!1,Te._keyboard=null,Te._gestures=null,Te._disconnTimer=null,Te._resizeTimeout=null,Te._mouseMoveTimer=null,Te._decoders={},Te._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},Te._mousePos={},Te._mouseButtonMask=0,Te._mouseLastMoveTime=0,Te._viewportDragging=!1,Te._viewportDragPos={},Te._viewportHasMoved=!1,Te._accumulatedWheelDeltaX=0,Te._accumulatedWheelDeltaY=0,Te._gestureLastTapTime=null,Te._gestureFirstDoubleTapEv=null,Te._gestureLastMagnitudeX=0,Te._gestureLastMagnitudeY=0,Te._eventHandlers={focusCanvas:Te._focusCanvas.bind(U(Te)),windowResize:Te._windowResize.bind(U(Te)),handleMouse:Te._handleMouse.bind(U(Te)),handleWheel:Te._handleWheel.bind(U(Te)),handleGesture:Te._handleGesture.bind(U(Te))},x.Debug(">> RFB.constructor"),Te._screen=document.createElement("div"),Te._screen.style.display="flex",Te._screen.style.width="100%",Te._screen.style.height="100%",Te._screen.style.overflow="auto",Te._screen.style.background=V,Te._canvas=document.createElement("canvas"),Te._canvas.style.margin="auto",Te._canvas.style.outline="none",Te._canvas.style.flexShrink="0",Te._canvas.width=0,Te._canvas.height=0,Te._canvas.tabIndex=-1,Te._screen.appendChild(Te._canvas),Te._cursor=new e.default,Te._cursorImage=Ce.cursors.none,Te._decoders[u.encodings.encodingRaw]=new h.default,Te._decoders[u.encodings.encodingCopyRect]=new p.default,Te._decoders[u.encodings.encodingRRE]=new m.default,Te._decoders[u.encodings.encodingHextile]=new v.default,Te._decoders[u.encodings.encodingTight]=new y.default,Te._decoders[u.encodings.encodingTightPNG]=new E.default;try{Te._display=new c.default(Te._canvas)}catch(Ge){throw x.Error("Display exception: "+Ge),Ge}return Te._display.onflush=Te._onFlush.bind(U(Te)),Te._keyboard=new i.default(Te._canvas),Te._keyboard.onkeyevent=Te._handleKeyEvent.bind(U(Te)),Te._gestures=new n.default,Te._sock=new l.default,Te._sock.on("message",function(){Te._handleMessage()}),Te._sock.on("open",function(){Te._rfbConnectionState==="connecting"&&Te._rfbInitState===""?(Te._rfbInitState="ProtocolVersion",x.Debug("Starting VNC handshake")):Te._fail("Unexpected server connection while "+Te._rfbConnectionState)}),Te._sock.on("close",function(Ge){x.Debug("WebSocket on-close event");var gt="";Ge.code&&(gt="(code: "+Ge.code,Ge.reason&&(gt+=", reason: "+Ge.reason),gt+=")");switch(Te._rfbConnectionState){case"connecting":Te._fail("Connection closed "+gt);break;case"connected":Te._updateConnectionState("disconnecting"),Te._updateConnectionState("disconnected");break;case"disconnecting":Te._updateConnectionState("disconnected");break;case"disconnected":Te._fail("Unexpected server disconnect when already disconnected "+gt);break;default:Te._fail("Unexpected server disconnect before connecting "+gt);break}Te._sock.off("close")}),Te._sock.on("error",function(Ge){return x.Warn("WebSocket on-error event")}),setTimeout(Te._updateConnectionState.bind(U(Te),"connecting")),x.Debug("<< RFB.constructor"),Te.dragViewport=!1,Te.focusOnClick=!0,Te._viewOnly=!1,Te._clipViewport=!1,Te._scaleViewport=!1,Te._resizeSession=!1,Te._showDotCursor=!1,Ae.showDotCursor!==void 0&&(x.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),Te._showDotCursor=Ae.showDotCursor),Te._qualityLevel=6,Te._compressionLevel=2,Te}return N(Ce,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(ce){this._rfbCredentials=ce,setTimeout(this._initMsg.bind(this),0)}},{key:"sendCtrlAltDel",value:function(){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;x.Info("Sending Ctrl-Alt-Del"),this.sendKey(a.default.XK_Control_L,"ControlLeft",!0),this.sendKey(a.default.XK_Alt_L,"AltLeft",!0),this.sendKey(a.default.XK_Delete,"Delete",!0),this.sendKey(a.default.XK_Delete,"Delete",!1),this.sendKey(a.default.XK_Alt_L,"AltLeft",!1),this.sendKey(a.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(ce,Ae,Te){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(Te===void 0){this.sendKey(ce,Ae,!0),this.sendKey(ce,Ae,!1);return}var Ge=s.default[Ae];if(this._qemuExtKeyEventSupported&&Ge)ce=ce||0,x.Info("Sending key ("+(Te?"down":"up")+"): keysym "+ce+", scancode "+Ge),Ce.messages.QEMUExtendedKeyEvent(this._sock,ce,Te,Ge);else{if(!ce)return;x.Info("Sending keysym ("+(Te?"down":"up")+"): "+ce),Ce.messages.keyEvent(this._sock,ce,Te?1:0)}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(ce){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(this._clipboardServerCapabilitiesFormats[_e]&&this._clipboardServerCapabilitiesActions[Q])this._clipboardText=ce,Ce.messages.extendedClipboardNotify(this._sock,[_e]);else{for(var Ae=new Uint8Array(ce.length),Te=0;Te<ce.length;Te++)Ae[Te]=ce.charCodeAt(Te);Ce.messages.clientCutText(this._sock,Ae)}}},{key:"_connect",value:function(){x.Debug(">> RFB.connect"),x.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(ce){ce.name==="SyntaxError"?this._fail("Invalid host or port ("+ce+")"):this._fail("Error when opening socket ("+ce+")")}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),x.Debug("<< RFB.connect")}},{key:"_disconnect",value:function(){x.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(ce){if(!(ce.name==="NotFoundError"))throw ce}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),x.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(ce){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(ce){this._fbName=ce,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(ce){var Ae=this;window.requestAnimationFrame(function(){Ae._updateClip(),Ae._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var ce=this._display.clipViewport,Ae=this._clipViewport;if(this._scaleViewport&&(Ae=!1),ce!==Ae&&(this._display.clipViewport=Ae),Ae){var Te=this._screenSize();this._display.viewportChangeSize(Te.w,Te.h),this._fixScrollbars()}}},{key:"_updateScale",value:function(){if(!this._scaleViewport)this._display.scale=1;else{var ce=this._screenSize();this._display.autoscale(ce.w,ce.h)}this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;var ce=this._screenSize();Ce.messages.setDesktopSize(this._sock,Math.floor(ce.w),Math.floor(ce.h),this._screenID,this._screenFlags),x.Debug("Requested new desktop size: "+ce.w+"x"+ce.h)}},{key:"_screenSize",value:function(){var ce=this._screen.getBoundingClientRect();return{w:ce.width,h:ce.height}}},{key:"_fixScrollbars",value:function(){var ce=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=ce}},{key:"_updateConnectionState",value:function(ce){var Ae=this,Te=this._rfbConnectionState;if(ce===Te){x.Debug("Already in state '"+ce+"', ignoring");return}if(Te==="disconnected"){x.Error("Tried changing state of a disconnected RFB object");return}switch(ce){case"connected":if(Te!=="connecting"){x.Error("Bad transition to connected state, previous connection state: "+Te);return}break;case"disconnected":if(Te!=="disconnecting"){x.Error("Bad transition to disconnected state, previous connection state: "+Te);return}break;case"connecting":if(Te!==""){x.Error("Bad transition to connecting state, previous connection state: "+Te);return}break;case"disconnecting":if(Te!=="connected"&&Te!=="connecting"){x.Error("Bad transition to disconnecting state, previous connection state: "+Te);return}break;default:x.Error("Unknown connection state: "+ce);return}this._rfbConnectionState=ce,x.Debug("New state '"+ce+"', was '"+Te+"'."),this._disconnTimer&&ce!=="disconnecting"&&(x.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(ce){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout(function(){x.Error("Disconnection timed out."),Ae._updateConnectionState("disconnected")},W*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(ce){switch(this._rfbConnectionState){case"disconnecting":x.Error("Failed when disconnecting: "+ce);break;case"connected":x.Error("Failed while connected: "+ce);break;case"connecting":x.Error("Failed when connecting: "+ce);break;default:x.Error("RFB failure: "+ce);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(ce,Ae){this._capabilities[ce]=Ae,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}},{key:"_handleMessage",value:function(){if(this._sock.rQlen===0){x.Warn("handleMessage called on an empty receive queue");return}switch(this._rfbConnectionState){case"disconnected":x.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(ce,Ae,Te){this.sendKey(ce,Ae,Te)}},{key:"_handleMouse",value:function(ce){if(ce.type==="click"&&ce.target!==this._canvas)return;if(ce.stopPropagation(),ce.preventDefault(),ce.type==="click"||ce.type==="contextmenu")return;var Ae=(0,S.clientToElement)(ce.clientX,ce.clientY,this._canvas);switch(ce.type){case"mousedown":(0,g.setCapture)(this._canvas),this._handleMouseButton(Ae.x,Ae.y,!0,1<<ce.button);break;case"mouseup":this._handleMouseButton(Ae.x,Ae.y,!1,1<<ce.button);break;case"mousemove":this._handleMouseMove(Ae.x,Ae.y);break}}},{key:"_handleMouseButton",value:function(ce,Ae,Te,Ge){if(this.dragViewport)if(Te&&!this._viewportDragging){this._viewportDragging=!0,this._viewportDragPos={x:ce,y:Ae},this._viewportHasMoved=!1;return}else{if(this._viewportDragging=!1,this._viewportHasMoved)return;this._sendMouse(ce,Ae,Ge)}this._mouseMoveTimer!==null&&(clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=null,this._sendMouse(ce,Ae,this._mouseButtonMask)),Te?this._mouseButtonMask|=Ge:this._mouseButtonMask&=~Ge,this._sendMouse(ce,Ae,this._mouseButtonMask)}},{key:"_handleMouseMove",value:function(ce,Ae){var Te=this;if(this._viewportDragging){var Ge=this._viewportDragPos.x-ce,gt=this._viewportDragPos.y-Ae;(this._viewportHasMoved||Math.abs(Ge)>A.dragThreshold||Math.abs(gt)>A.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:ce,y:Ae},this._display.viewportChangePos(Ge,gt));return}if(this._mousePos={x:ce,y:Ae},this._mouseMoveTimer==null){var qe=Date.now()-this._mouseLastMoveTime;qe>z?(this._sendMouse(ce,Ae,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){Te._handleDelayedMouseMove()},z-qe)}}},{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(ce,Ae,Te){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;Ce.messages.pointerEvent(this._sock,this._display.absX(ce),this._display.absY(Ae),Te)}},{key:"_handleWheel",value:function(ce){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;ce.stopPropagation(),ce.preventDefault();var Ae=(0,S.clientToElement)(ce.clientX,ce.clientY,this._canvas),Te=ce.deltaX,Ge=ce.deltaY;ce.deltaMode!==0&&(Te*=Z,Ge*=Z),this._accumulatedWheelDeltaX+=Te,this._accumulatedWheelDeltaY+=Ge,Math.abs(this._accumulatedWheelDeltaX)>=J&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(Ae.x,Ae.y,!0,1<<5),this._handleMouseButton(Ae.x,Ae.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(Ae.x,Ae.y,!0,1<<6),this._handleMouseButton(Ae.x,Ae.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=J&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(Ae.x,Ae.y,!0,1<<3),this._handleMouseButton(Ae.x,Ae.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(Ae.x,Ae.y,!0,1<<4),this._handleMouseButton(Ae.x,Ae.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(ce,Ae,Te){this._handleMouseMove(Ae,Te),this._cursor.move(ce.detail.clientX,ce.detail.clientY)}},{key:"_handleTapEvent",value:function(ce,Ae){var Te=(0,S.clientToElement)(ce.detail.clientX,ce.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTime<ve&&this._gestureFirstDoubleTapEv.detail.type===ce.detail.type){var Ge=this._gestureFirstDoubleTapEv.detail.clientX-ce.detail.clientX,gt=this._gestureFirstDoubleTapEv.detail.clientY-ce.detail.clientY,qe=Math.hypot(Ge,gt);qe<xe?Te=(0,S.clientToElement)(this._gestureFirstDoubleTapEv.detail.clientX,this._gestureFirstDoubleTapEv.detail.clientY,this._canvas):this._gestureFirstDoubleTapEv=ce}else this._gestureFirstDoubleTapEv=ce;this._gestureLastTapTime=Date.now(),this._fakeMouseMove(this._gestureFirstDoubleTapEv,Te.x,Te.y),this._handleMouseButton(Te.x,Te.y,!0,Ae),this._handleMouseButton(Te.x,Te.y,!1,Ae)}},{key:"_handleGesture",value:function(ce){var Ae,Te=(0,S.clientToElement)(ce.detail.clientX,ce.detail.clientY,this._canvas);switch(ce.type){case"gesturestart":switch(ce.detail.type){case"onetap":this._handleTapEvent(ce,1);break;case"twotap":this._handleTapEvent(ce,4);break;case"threetap":this._handleTapEvent(ce,2);break;case"drag":this._fakeMouseMove(ce,Te.x,Te.y),this._handleMouseButton(Te.x,Te.y,!0,1);break;case"longpress":this._fakeMouseMove(ce,Te.x,Te.y),this._handleMouseButton(Te.x,Te.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=ce.detail.magnitudeX,this._gestureLastMagnitudeY=ce.detail.magnitudeY,this._fakeMouseMove(ce,Te.x,Te.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(ce.detail.magnitudeX,ce.detail.magnitudeY),this._fakeMouseMove(ce,Te.x,Te.y);break}break;case"gesturemove":switch(ce.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(ce,Te.x,Te.y);break;case"twodrag":for(this._fakeMouseMove(ce,Te.x,Te.y);ce.detail.magnitudeY-this._gestureLastMagnitudeY>ie;)this._handleMouseButton(Te.x,Te.y,!0,8),this._handleMouseButton(Te.x,Te.y,!1,8),this._gestureLastMagnitudeY+=ie;for(;ce.detail.magnitudeY-this._gestureLastMagnitudeY<-ie;)this._handleMouseButton(Te.x,Te.y,!0,16),this._handleMouseButton(Te.x,Te.y,!1,16),this._gestureLastMagnitudeY-=ie;for(;ce.detail.magnitudeX-this._gestureLastMagnitudeX>ie;)this._handleMouseButton(Te.x,Te.y,!0,32),this._handleMouseButton(Te.x,Te.y,!1,32),this._gestureLastMagnitudeX+=ie;for(;ce.detail.magnitudeX-this._gestureLastMagnitudeX<-ie;)this._handleMouseButton(Te.x,Te.y,!0,64),this._handleMouseButton(Te.x,Te.y,!1,64),this._gestureLastMagnitudeX-=ie;break;case"pinch":if(this._fakeMouseMove(ce,Te.x,Te.y),Ae=Math.hypot(ce.detail.magnitudeX,ce.detail.magnitudeY),Math.abs(Ae-this._gestureLastMagnitudeX)>de){for(this._handleKeyEvent(a.default.XK_Control_L,"ControlLeft",!0);Ae-this._gestureLastMagnitudeX>de;)this._handleMouseButton(Te.x,Te.y,!0,8),this._handleMouseButton(Te.x,Te.y,!1,8),this._gestureLastMagnitudeX+=de;for(;Ae-this._gestureLastMagnitudeX<-de;)this._handleMouseButton(Te.x,Te.y,!0,16),this._handleMouseButton(Te.x,Te.y,!1,16),this._gestureLastMagnitudeX-=de}this._handleKeyEvent(a.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(ce.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(ce,Te.x,Te.y),this._handleMouseButton(Te.x,Te.y,!1,1);break;case"longpress":this._fakeMouseMove(ce,Te.x,Te.y),this._handleMouseButton(Te.x,Te.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var ce=this._sock.rQshiftStr(12).substr(4,7);x.Info("Server ProtocolVersion: "+ce);var Ae=0;switch(ce){case"000.000":Ae=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 "+ce)}if(Ae){for(var Te="ID:"+this._repeaterID;Te.length<250;)Te+="\0";return this._sock.sendString(Te),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var Ge="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+Ge+`
|
|
|
`),x.Debug("Sent ProtocolVersion: "+Ge),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function ce(Ge,gt){for(var qe=0;qe<gt.length;qe++)if(gt[qe]===Ge)return!0;return!1}if(this._rfbVersion>=3.7){var Ae=this._sock.rQshift8();if(this._sock.rQwait("security type",Ae,1))return!1;if(Ae===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var Te=this._sock.rQshiftBytes(Ae);if(x.Debug("Server security types: "+Te),ce(1,Te))this._rfbAuthScheme=1;else if(ce(22,Te))this._rfbAuthScheme=22;else if(ce(16,Te))this._rfbAuthScheme=16;else if(ce(2,Te))this._rfbAuthScheme=2;else if(ce(19,Te))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+Te+")");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",x.Debug("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}},{key:"_handleSecurityReason",value:function(){if(this._sock.rQwait("reason length",4))return!1;var ce=this._sock.rQshift32(),Ae="";if(ce>0){if(this._sock.rQwait("reason",ce,4))return!1;Ae=this._sock.rQshiftStr(ce)}return Ae!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:Ae}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+Ae+")")):(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 ce=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(ce),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var ce=this._sock.rQshift8(),Ae=this._sock.rQshift8();if(!(ce==0&&Ae==2))return this._fail("Unsupported VeNCrypt version "+ce+"."+Ae);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var Te=this._sock.rQshift8();if(Te!=0)return this._fail("VeNCrypt failure "+Te);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var Ge=this._sock.rQshift8();if(Ge<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=Ge,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var gt=[],qe=0;qe<this._rfbVeNCryptSubtypesLength;qe++)gt.push(this._sock.rQshift32());if(gt.indexOf(256)!=-1)this._sock.send([0,0,1,0]),this._rfbVeNCryptState=4;else return this._fail("VeNCrypt Plain subtype not offered by server")}if(this._rfbVeNCryptState==4){if(!this._rfbCredentials.username||!this._rfbCredentials.password)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1;var Le=(0,C.encodeUTF8)(this._rfbCredentials.username),Ot=(0,C.encodeUTF8)(this._rfbCredentials.password);return this._sock.send([0,0,0,Le.length]),this._sock.send([0,0,0,Ot.length]),this._sock.sendString(Le),this._sock.sendString(Ot),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 ce=Array.prototype.slice.call(this._sock.rQshiftBytes(16)),Ae=Ce.genDES(this._rfbCredentials.password,ce);return this._sock.send(Ae),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(ce){for(var Ae={0:{vendor:"TGHT",signature:"NOTUNNEL"}},Te={},Ge=0;Ge<ce;Ge++){var gt=this._sock.rQshift32(),qe=this._sock.rQshiftStr(4),Le=this._sock.rQshiftStr(8);Te[gt]={vendor:qe,signature:Le}}return x.Debug("Server Tight tunnel types: "+Te),Te[1]&&Te[1].vendor==="SICR"&&Te[1].signature==="SCHANNEL"&&(x.Debug("Detected Siemens server. Assuming NOTUNNEL support."),Te[0]={vendor:"TGHT",signature:"NOTUNNEL"}),Te[0]?Te[0].vendor!=Ae[0].vendor||Te[0].signature!=Ae[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(x.Debug("Selected tunnel type: "+Ae[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 ce=this._sock.rQshift32();if(ce>0&&this._sock.rQwait("tunnel capabilities",16*ce,4))return!1;if(this._rfbTightVNC=!0,ce>0)return this._negotiateTightTunnels(ce),!1}if(this._sock.rQwait("sub auth count",4))return!1;var Ae=this._sock.rQshift32();if(Ae===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*Ae,4))return!1;for(var Te={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},Ge=[],gt=0;gt<Ae;gt++){this._sock.rQshift32();var qe=this._sock.rQshiftStr(12);Ge.push(qe)}x.Debug("Server Tight authentication types: "+Ge);for(var Le in Te)if(Ge.indexOf(Le)!=-1){this._sock.send([0,0,0,Te[Le]]),x.Debug("Selected authentication type: "+Le);switch(Le){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: "+Le+")")}}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 ce=this._sock.rQshift32();return ce===0?(this._rfbInitState="ClientInitialisation",x.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=ce,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:ce}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var ce=this._sock.rQshift16(),Ae=this._sock.rQshift16(),Te=this._sock.rQshift8(),Ge=this._sock.rQshift8(),gt=this._sock.rQshift8(),qe=this._sock.rQshift8(),Le=this._sock.rQshift16(),Ot=this._sock.rQshift16(),$e=this._sock.rQshift16(),xt=this._sock.rQshift8(),Ht=this._sock.rQshift8(),tr=this._sock.rQshift8();this._sock.rQskipBytes(3);var Mt=this._sock.rQshift32();if(this._sock.rQwait("server init name",Mt,24))return!1;var Tt=this._sock.rQshiftStr(Mt);if(Tt=(0,C.decodeUTF8)(Tt,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+Mt))return!1;var Xe=this._sock.rQshift16(),oe=this._sock.rQshift16(),X=this._sock.rQshift16();this._sock.rQskipBytes(2);var Be=(Xe+oe+X)*16;if(this._sock.rQwait("TightVNC extended server init header",Be,32+Mt))return!1;this._sock.rQskipBytes(16*Xe),this._sock.rQskipBytes(16*oe),this._sock.rQskipBytes(16*X)}return x.Info("Screen: "+ce+"x"+Ae+", bpp: "+Te+", depth: "+Ge+", bigEndian: "+gt+", trueColor: "+qe+", redMax: "+Le+", greenMax: "+Ot+", blueMax: "+$e+", redShift: "+xt+", greenShift: "+Ht+", blueShift: "+tr),this._setDesktopName(Tt),this._resize(ce,Ae),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,this._fbName==="Intel(r) AMT KVM"&&(x.Warn("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),Ce.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),Ce.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}},{key:"_sendEncodings",value:function(){var ce=[];ce.push(u.encodings.encodingCopyRect),this._fbDepth==24&&(ce.push(u.encodings.encodingTight),ce.push(u.encodings.encodingTightPNG),ce.push(u.encodings.encodingHextile),ce.push(u.encodings.encodingRRE)),ce.push(u.encodings.encodingRaw),ce.push(u.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),ce.push(u.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),ce.push(u.encodings.pseudoEncodingDesktopSize),ce.push(u.encodings.pseudoEncodingLastRect),ce.push(u.encodings.pseudoEncodingQEMUExtendedKeyEvent),ce.push(u.encodings.pseudoEncodingExtendedDesktopSize),ce.push(u.encodings.pseudoEncodingXvp),ce.push(u.encodings.pseudoEncodingFence),ce.push(u.encodings.pseudoEncodingContinuousUpdates),ce.push(u.encodings.pseudoEncodingDesktopName),ce.push(u.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(ce.push(u.encodings.pseudoEncodingVMwareCursor),ce.push(u.encodings.pseudoEncodingCursor)),Ce.messages.clientEncodings(this._sock,ce)}},{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 x.Debug("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}},{key:"_handleServerCutText",value:function(){if(x.Debug("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);var ce=this._sock.rQshift32();if(ce=(0,O.toSigned32bit)(ce),this._sock.rQwait("ServerCutText content",Math.abs(ce),8))return!1;if(ce>=0){var Ae=this._sock.rQshiftStr(ce);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Ae}}))}else{ce=Math.abs(ce);var Te=this._sock.rQshift32(),Ge=Te&65535,gt=Te&4278190080,qe=!!(gt&te);if(qe){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var Le=0;Le<=15;Le++){var Ot=1<<Le;Ge&Ot&&(this._clipboardServerCapabilitiesFormats[Ot]=!0,this._sock.rQshift32())}for(var $e=24;$e<=31;$e++){var xt=1<<$e;this._clipboardServerCapabilitiesActions[xt]=!!(gt&xt)}var Ht=[te,Ve,ae,Q,G];Ce.messages.extendedClipboardCaps(this._sock,Ht,{extendedClipboardFormatText:0})}else if(gt===Ve){if(this._viewOnly)return!0;this._clipboardText!=null&&this._clipboardServerCapabilitiesActions[G]&&(Ge&_e&&Ce.messages.extendedClipboardProvide(this._sock,[_e],[this._clipboardText]))}else if(gt===ae){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[Q]&&(this._clipboardText!=null?Ce.messages.extendedClipboardNotify(this._sock,[_e]):Ce.messages.extendedClipboardNotify(this._sock,[]))}else if(gt===Q){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[Ve]&&(Ge&_e&&Ce.messages.extendedClipboardRequest(this._sock,[_e]))}else if(gt===G){if(this._viewOnly)return!0;if(!(Ge&_e))return!0;this._clipboardText=null;var tr=this._sock.rQshiftBytes(ce-4),Mt=new o.default,Tt=null;Mt.setInput(tr);for(var Xe=0;Xe<=15;Xe++){var oe=1<<Xe;if(Ge&oe){var X=0,Be=Mt.inflate(4);X|=Be[0]<<24,X|=Be[1]<<16,X|=Be[2]<<8,X|=Be[3];var Ee=Mt.inflate(X);oe===_e&&(Tt=Ee)}}if(Mt.setInput(null),Tt!==null){for(var ee="",lt=0;lt<Tt.length;lt++)ee+=String.fromCharCode(Tt[lt]);Tt=ee,Tt=(0,C.decodeUTF8)(Tt),Tt.length>0&&Tt.charAt(Tt.length-1)==="\0"&&(Tt=Tt.slice(0,-1)),Tt=Tt.replace(`\r
|
|
|
`,`
|
|
|
`),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Tt}}))}}else return this._fail("Unexpected action in extended clipboard message: "+gt)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var ce=this._sock.rQshift32(),Ae=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",Ae,9))return!1;Ae>64&&(x.Warn("Bad payload length ("+Ae+") in fence response"),Ae=64);var Te=this._sock.rQshiftStr(Ae);return this._supportsFence=!0,ce&1<<31?(ce&=1<<0|1<<1,Ce.messages.clientFence(this._sock,ce,Te),!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 ce=this._sock.rQshift8(),Ae=this._sock.rQshift8();switch(Ae){case 0:x.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=ce,x.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+Ae+")");break}return!0}},{key:"_normalMsg",value:function(){var ce;this._FBU.rects>0?ce=0:ce=this._sock.rQshift8();var Ae,Te;switch(ce){case 0:return Te=this._framebufferUpdate(),Te&&!this._enabledContinuousUpdates&&Ce.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),Te;case 1:return this._handleSetColourMapMsg();case 2:return x.Debug("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return Ae=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,Ae&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),x.Info("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+ce+")"),x.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 ce=this._sock.rQshiftBytes(12);this._FBU.x=(ce[0]<<8)+ce[1],this._FBU.y=(ce[2]<<8)+ce[3],this._FBU.width=(ce[4]<<8)+ce[5],this._FBU.height=(ce[6]<<8)+ce[7],this._FBU.encoding=parseInt((ce[8]<<24)+(ce[9]<<16)+(ce[10]<<8)+ce[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 u.encodings.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case u.encodings.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case u.encodings.pseudoEncodingCursor:return this._handleCursor();case u.encodings.pseudoEncodingQEMUExtendedKeyEvent:try{var ce=document.createEvent("keyboardEvent");ce.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(Ae){}return!0;case u.encodings.pseudoEncodingDesktopName:return this._handleDesktopName();case u.encodings.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case u.encodings.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}},{key:"_handleVMwareCursor",value:function(){var ce=this._FBU.x,Ae=this._FBU.y,Te=this._FBU.width,Ge=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var gt=this._sock.rQshift8();this._sock.rQshift8();var qe,Le=4;if(gt==0){var Ot=4294967040|0;if(qe=new Array(Te*Ge*Le),this._sock.rQwait("VMware cursor classic encoding",Te*Ge*Le*2,2))return!1;for(var $e=new Array(Te*Ge),xt=0;xt<Te*Ge;xt++)$e[xt]=this._sock.rQshift32();for(var Ht=new Array(Te*Ge),tr=0;tr<Te*Ge;tr++)Ht[tr]=this._sock.rQshift32();for(var Mt=0;Mt<Te*Ge;Mt++)if($e[Mt]==0){var Tt=Ht[Mt],Xe=Tt>>8&255,oe=Tt>>16&255,X=Tt>>24&255;qe[Mt*Le]=Xe,qe[Mt*Le+1]=oe,qe[Mt*Le+2]=X,qe[Mt*Le+3]=255}else($e[Mt]&Ot)==Ot?Ht[Mt]==0?(qe[Mt*Le]=0,qe[Mt*Le+1]=0,qe[Mt*Le+2]=0,qe[Mt*Le+3]=0):((Ht[Mt]&Ot)==Ot,qe[Mt*Le]=0,qe[Mt*Le+1]=0,qe[Mt*Le+2]=0,qe[Mt*Le+3]=255):(qe[Mt*Le]=0,qe[Mt*Le+1]=0,qe[Mt*Le+2]=0,qe[Mt*Le+3]=255)}else if(gt==1){if(this._sock.rQwait("VMware cursor alpha encoding",Te*Ge*4,2))return!1;qe=new Array(Te*Ge*Le);for(var Be=0;Be<Te*Ge;Be++){var Ee=this._sock.rQshift32();qe[Be*4]=Ee>>24&255,qe[Be*4+1]=Ee>>16&255,qe[Be*4+2]=Ee>>8&255,qe[Be*4+3]=Ee&255}}else return x.Warn("The given cursor type is not supported: "+gt+" given."),!1;return this._updateCursor(qe,ce,Ae,Te,Ge),!0}},{key:"_handleCursor",value:function(){var ce=this._FBU.x,Ae=this._FBU.y,Te=this._FBU.width,Ge=this._FBU.height,gt=Te*Ge*4,qe=Math.ceil(Te/8)*Ge,Le=gt+qe;if(this._sock.rQwait("cursor encoding",Le))return!1;for(var Ot=this._sock.rQshiftBytes(gt),$e=this._sock.rQshiftBytes(qe),xt=new Uint8Array(Te*Ge*4),Ht=0,tr=0;tr<Ge;tr++)for(var Mt=0;Mt<Te;Mt++){var Tt=tr*Math.ceil(Te/8)+Math.floor(Mt/8),Xe=$e[Tt]<<Mt%8&128?255:0;xt[Ht]=Ot[Ht+2],xt[Ht+1]=Ot[Ht+1],xt[Ht+2]=Ot[Ht],xt[Ht+3]=Xe,Ht+=4}return this._updateCursor(xt,ce,Ae,Te,Ge),!0}},{key:"_handleDesktopName",value:function(){if(this._sock.rQwait("DesktopName",4))return!1;var ce=this._sock.rQshift32();if(this._sock.rQwait("DesktopName",ce,4))return!1;var Ae=this._sock.rQshiftStr(ce);return Ae=(0,C.decodeUTF8)(Ae,!0),this._setDesktopName(Ae),!0}},{key:"_handleExtendedDesktopSize",value:function(){if(this._sock.rQwait("ExtendedDesktopSize",4))return!1;var ce=this._sock.rQpeek8(),Ae=4+ce*16;if(this._sock.rQwait("ExtendedDesktopSize",Ae))return!1;var Te=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,Te&&this._requestRemoteResize(),this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(var Ge=0;Ge<ce;Ge+=1)Ge===0?(this._screenID=this._sock.rQshiftBytes(4),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._screenFlags=this._sock.rQshiftBytes(4)):this._sock.rQskipBytes(16);if(this._FBU.x===1&&this._FBU.y!==0){var gt="";switch(this._FBU.y){case 1:gt="Resize is administratively prohibited";break;case 2:gt="Out of resources";break;case 3:gt="Invalid screen layout";break;default:gt="Unknown reason";break}x.Warn("Server did not accept the resize request: "+gt)}else this._resize(this._FBU.width,this._FBU.height);return!0}},{key:"_handleDataRect",value:function(){var ce=this._decoders[this._FBU.encoding];if(!ce)return this._fail("Unsupported encoding (encoding: "+this._FBU.encoding+")"),!1;try{return ce.decodeRect(this._FBU.x,this._FBU.y,this._FBU.width,this._FBU.height,this._sock,this._display,this._fbDepth)}catch(Ae){return this._fail("Error decoding rect: "+Ae),!1}}},{key:"_updateContinuousUpdates",value:function(){if(!this._enabledContinuousUpdates)return;Ce.messages.enableContinuousUpdates(this._sock,!0,0,0,this._fbWidth,this._fbHeight)}},{key:"_resize",value:function(ce,Ae){this._fbWidth=ce,this._fbHeight=Ae,this._display.resize(this._fbWidth,this._fbHeight),this._updateClip(),this._updateScale(),this._updateContinuousUpdates()}},{key:"_xvpOp",value:function(ce,Ae){if(this._rfbXvpVer<ce)return;x.Info("Sending XVP operation "+Ae+" (version "+ce+")"),Ce.messages.xvpOp(this._sock,ce,Ae)}},{key:"_updateCursor",value:function(ce,Ae,Te,Ge,gt){this._cursorImage={rgbaPixels:ce,hotx:Ae,hoty:Te,w:Ge,h:gt},this._refreshCursor()}},{key:"_shouldShowDotCursor",value:function(){if(!this._showDotCursor)return!1;for(var ce=3;ce<this._cursorImage.rgbaPixels.length;ce+=4)if(this._cursorImage.rgbaPixels[ce])return!1;return!0}},{key:"_refreshCursor",value:function(){if(this._rfbConnectionState!=="connecting"&&this._rfbConnectionState!=="connected")return;var ce=this._shouldShowDotCursor()?Ce.cursors.dot:this._cursorImage;this._cursor.change(ce.rgbaPixels,ce.hotx,ce.hoty,ce.w,ce.h)}},{key:"viewOnly",get:function(){return this._viewOnly},set:function(ce){this._viewOnly=ce,(this._rfbConnectionState==="connecting"||this._rfbConnectionState==="connected")&&(ce?this._keyboard.ungrab():this._keyboard.grab())}},{key:"capabilities",get:function(){return this._capabilities}},{key:"touchButton",get:function(){return 0},set:function(ce){x.Warn("Using old API!")}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(ce){this._clipViewport=ce,this._updateClip()}},{key:"scaleViewport",get:function(){return this._scaleViewport},set:function(ce){this._scaleViewport=ce,ce&&this._clipViewport&&this._updateClip(),this._updateScale(),!ce&&this._clipViewport&&this._updateClip()}},{key:"resizeSession",get:function(){return this._resizeSession},set:function(ce){this._resizeSession=ce,ce&&this._requestRemoteResize()}},{key:"showDotCursor",get:function(){return this._showDotCursor},set:function(ce){this._showDotCursor=ce,this._refreshCursor()}},{key:"background",get:function(){return this._screen.style.background},set:function(ce){this._screen.style.background=ce}},{key:"qualityLevel",get:function(){return this._qualityLevel},set:function(ce){if(!Number.isInteger(ce)||ce<0||ce>9){x.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===ce)return;this._qualityLevel=ce,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(ce){if(!Number.isInteger(ce)||ce<0||ce>9){x.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===ce)return;this._compressionLevel=ce,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(ce,Ae){var Te=ce.split("").map(function(Ge){return Ge.charCodeAt(0)});return new t.default(Te).encrypt(Ae)}}]),Ce}(f.default);F.default=Y,Y.messages={keyEvent:function(ue,Ce,Ie){var ce=ue._sQ,Ae=ue._sQlen;ce[Ae]=4,ce[Ae+1]=Ie,ce[Ae+2]=0,ce[Ae+3]=0,ce[Ae+4]=Ce>>24,ce[Ae+5]=Ce>>16,ce[Ae+6]=Ce>>8,ce[Ae+7]=Ce,ue._sQlen+=8,ue.flush()},QEMUExtendedKeyEvent:function(ue,Ce,Ie,ce){function Ae(qe){var Le=ce>>8,Ot=ce&255;return Le===224&&Ot<127?Ot|128:qe}var Te=ue._sQ,Ge=ue._sQlen;Te[Ge]=255,Te[Ge+1]=0,Te[Ge+2]=Ie>>8,Te[Ge+3]=Ie,Te[Ge+4]=Ce>>24,Te[Ge+5]=Ce>>16,Te[Ge+6]=Ce>>8,Te[Ge+7]=Ce;var gt=Ae(ce);Te[Ge+8]=gt>>24,Te[Ge+9]=gt>>16,Te[Ge+10]=gt>>8,Te[Ge+11]=gt,ue._sQlen+=12,ue.flush()},pointerEvent:function(ue,Ce,Ie,ce){var Ae=ue._sQ,Te=ue._sQlen;Ae[Te]=5,Ae[Te+1]=ce,Ae[Te+2]=Ce>>8,Ae[Te+3]=Ce,Ae[Te+4]=Ie>>8,Ae[Te+5]=Ie,ue._sQlen+=6,ue.flush()},_buildExtendedClipboardFlags:function(ue,Ce){for(var Ie=new Uint8Array(4),ce=0,Ae=0,Te=0;Te<ue.length;Te++)Ae|=ue[Te];for(var Ge=0;Ge<Ce.length;Ge++)ce|=Ce[Ge];return Ie[0]=Ae>>24,Ie[1]=0,Ie[2]=0,Ie[3]=ce,Ie},extendedClipboardProvide:function(ue,Ce,Ie){for(var ce=new r.default,Ae=[],Te=0;Te<Ce.length;Te++){if(Ce[Te]!=_e)throw new Error("Unsupported extended clipboard format for Provide message.");Ie[Te]=Ie[Te].replace(/\r\n|\r|\n/gm,`\r
|
|
|
`);var Ge=(0,C.encodeUTF8)(Ie[Te]+"\0");Ae.push(Ge.length>>24&255,Ge.length>>16&255,Ge.length>>8&255,Ge.length&255);for(var gt=0;gt<Ge.length;gt++)Ae.push(Ge.charCodeAt(gt))}var qe=ce.deflate(new Uint8Array(Ae)),Le=new Uint8Array(4+qe.length);Le.set(Y.messages._buildExtendedClipboardFlags([G],Ce)),Le.set(qe,4),Y.messages.clientCutText(ue,Le,!0)},extendedClipboardNotify:function(ue,Ce){var Ie=Y.messages._buildExtendedClipboardFlags([Q],Ce);Y.messages.clientCutText(ue,Ie,!0)},extendedClipboardRequest:function(ue,Ce){var Ie=Y.messages._buildExtendedClipboardFlags([Ve],Ce);Y.messages.clientCutText(ue,Ie,!0)},extendedClipboardCaps:function(ue,Ce,Ie){var ce=Object.keys(Ie),Ae=new Uint8Array(4+4*ce.length);ce.map(function(gt){return parseInt(gt)}),ce.sort(function(gt,qe){return gt-qe}),Ae.set(Y.messages._buildExtendedClipboardFlags(Ce,[]));for(var Te=4,Ge=0;Ge<ce.length;Ge++)Ae[Te]=Ie[ce[Ge]]>>24,Ae[Te+1]=Ie[ce[Ge]]>>16,Ae[Te+2]=Ie[ce[Ge]]>>8,Ae[Te+3]=Ie[ce[Ge]]>>0,Te+=4,Ae[3]|=1<<ce[Ge];Y.messages.clientCutText(ue,Ae,!0)},clientCutText:function(ue,Ce){var Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ce=ue._sQ,Ae=ue._sQlen;ce[Ae]=6,ce[Ae+1]=0,ce[Ae+2]=0,ce[Ae+3]=0;var Te;Ie?Te=(0,O.toUnsigned32bit)(-Ce.length):Te=Ce.length,ce[Ae+4]=Te>>24,ce[Ae+5]=Te>>16,ce[Ae+6]=Te>>8,ce[Ae+7]=Te,ue._sQlen+=8;for(var Ge=0,gt=Ce.length;gt>0;){for(var qe=Math.min(gt,ue._sQbufferSize-ue._sQlen),Le=0;Le<qe;Le++)ce[ue._sQlen+Le]=Ce[Ge+Le];ue._sQlen+=qe,ue.flush(),gt-=qe,Ge+=qe}},setDesktopSize:function(ue,Ce,Ie,ce,Ae){var Te=ue._sQ,Ge=ue._sQlen;Te[Ge]=251,Te[Ge+1]=0,Te[Ge+2]=Ce>>8,Te[Ge+3]=Ce,Te[Ge+4]=Ie>>8,Te[Ge+5]=Ie,Te[Ge+6]=1,Te[Ge+7]=0,Te[Ge+8]=ce>>24,Te[Ge+9]=ce>>16,Te[Ge+10]=ce>>8,Te[Ge+11]=ce,Te[Ge+12]=0,Te[Ge+13]=0,Te[Ge+14]=0,Te[Ge+15]=0,Te[Ge+16]=Ce>>8,Te[Ge+17]=Ce,Te[Ge+18]=Ie>>8,Te[Ge+19]=Ie,Te[Ge+20]=Ae>>24,Te[Ge+21]=Ae>>16,Te[Ge+22]=Ae>>8,Te[Ge+23]=Ae,ue._sQlen+=24,ue.flush()},clientFence:function(ue,Ce,Ie){var ce=ue._sQ,Ae=ue._sQlen;ce[Ae]=248,ce[Ae+1]=0,ce[Ae+2]=0,ce[Ae+3]=0,ce[Ae+4]=Ce>>24,ce[Ae+5]=Ce>>16,ce[Ae+6]=Ce>>8,ce[Ae+7]=Ce;var Te=Ie.length;ce[Ae+8]=Te;for(var Ge=0;Ge<Te;Ge++)ce[Ae+9+Ge]=Ie.charCodeAt(Ge);ue._sQlen+=9+Te,ue.flush()},enableContinuousUpdates:function(ue,Ce,Ie,ce,Ae,Te){var Ge=ue._sQ,gt=ue._sQlen;Ge[gt]=150,Ge[gt+1]=Ce,Ge[gt+2]=Ie>>8,Ge[gt+3]=Ie,Ge[gt+4]=ce>>8,Ge[gt+5]=ce,Ge[gt+6]=Ae>>8,Ge[gt+7]=Ae,Ge[gt+8]=Te>>8,Ge[gt+9]=Te,ue._sQlen+=10,ue.flush()},pixelFormat:function(ue,Ce,Ie){var ce=ue._sQ,Ae=ue._sQlen,Te;Ce>16?Te=32:Ce>8?Te=16:Te=8;var Ge=Math.floor(Ce/3);ce[Ae]=0,ce[Ae+1]=0,ce[Ae+2]=0,ce[Ae+3]=0,ce[Ae+4]=Te,ce[Ae+5]=Ce,ce[Ae+6]=0,ce[Ae+7]=Ie?1:0,ce[Ae+8]=0,ce[Ae+9]=(1<<Ge)-1,ce[Ae+10]=0,ce[Ae+11]=(1<<Ge)-1,ce[Ae+12]=0,ce[Ae+13]=(1<<Ge)-1,ce[Ae+14]=Ge*2,ce[Ae+15]=Ge*1,ce[Ae+16]=Ge*0,ce[Ae+17]=0,ce[Ae+18]=0,ce[Ae+19]=0,ue._sQlen+=20,ue.flush()},clientEncodings:function(ue,Ce){var Ie=ue._sQ,ce=ue._sQlen;Ie[ce]=2,Ie[ce+1]=0,Ie[ce+2]=Ce.length>>8,Ie[ce+3]=Ce.length;for(var Ae=ce+4,Te=0;Te<Ce.length;Te++){var Ge=Ce[Te];Ie[Ae]=Ge>>24,Ie[Ae+1]=Ge>>16,Ie[Ae+2]=Ge>>8,Ie[Ae+3]=Ge,Ae+=4}ue._sQlen+=Ae-ce,ue.flush()},fbUpdateRequest:function(ue,Ce,Ie,ce,Ae,Te){var Ge=ue._sQ,gt=ue._sQlen;typeof Ie=="undefined"&&(Ie=0),typeof ce=="undefined"&&(ce=0),Ge[gt]=3,Ge[gt+1]=Ce?1:0,Ge[gt+2]=Ie>>8&255,Ge[gt+3]=Ie&255,Ge[gt+4]=ce>>8&255,Ge[gt+5]=ce&255,Ge[gt+6]=Ae>>8&255,Ge[gt+7]=Ae&255,Ge[gt+8]=Te>>8&255,Ge[gt+9]=Te&255,ue._sQlen+=10,ue.flush()},xvpOp:function(ue,Ce,Ie){var ce=ue._sQ,Ae=ue._sQlen;ce[Ae]=250,ce[Ae+1]=0,ce[Ae+2]=Ce,ce[Ae+3]=Ie,ue._sQlen+=4,ue.flush()}},Y.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(H,F,d){(function(O){O(d("VrN/"))})(function(O){"use strict";var x={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},C={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};O.defineMode("xml",function(A,S){var g=A.indentUnit,f={},c=S.htmlMode?x:C;for(var o in c)f[o]=c[o];for(var o in S)f[o]=S[o];var r,i;function n(I,L){function N(k){return L.tokenize=k,k(I,L)}var D=I.next();if(D=="<")return I.eat("!")?I.eat("[")?I.match("CDATA[")?N(t("atom","]]>")):null:I.match("--")?N(t("comment","-->")):I.match("DOCTYPE",!0,!0)?(I.eatWhile(/[\w\._\-]/),N(a(1))):null:I.eat("?")?(I.eatWhile(/[\w\._\-]/),L.tokenize=t("meta","?>"),"meta"):(r=I.eat("/")?"closeTag":"openTag",L.tokenize=e,"tag bracket");if(D=="&"){var R;return I.eat("#")?I.eat("x")?R=I.eatWhile(/[a-fA-F\d]/)&&I.eat(";"):R=I.eatWhile(/[\d]/)&&I.eat(";"):R=I.eatWhile(/[\w\.\-:]/)&&I.eat(";"),R?"atom":"error"}else return I.eatWhile(/[^&<]/),null}n.isInText=!0;function e(I,L){var N=I.next();if(N==">"||N=="/"&&I.eat(">"))return L.tokenize=n,r=N==">"?"endTag":"selfcloseTag","tag bracket";if(N=="=")return r="equals",null;if(N=="<"){L.tokenize=n,L.state=p,L.tagName=L.tagStart=null;var D=L.tokenize(I,L);return D?D+" tag error":"tag error"}else return/[\'\"]/.test(N)?(L.tokenize=l(N),L.stringStartCol=I.column(),L.tokenize(I,L)):(I.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(I){var L=function(D,R){for(;!D.eol();)if(D.next()==I){R.tokenize=e;break}return"string"};return L.isInAttribute=!0,L}function t(I,L){return function(N,D){for(;!N.eol();){if(N.match(L)){D.tokenize=n;break}N.next()}return I}}function a(I){return function(L,N){for(var D;(D=L.next())!=null;){if(D=="<")return N.tokenize=a(I+1),N.tokenize(L,N);if(D==">")if(I==1){N.tokenize=n;break}else return N.tokenize=a(I-1),N.tokenize(L,N)}return"meta"}}function s(I,L,N){this.prev=I.context,this.tagName=L,this.indent=I.indented,this.startOfLine=N,(f.doNotIndent.hasOwnProperty(L)||I.context&&I.context.noIndent)&&(this.noIndent=!0)}function u(I){I.context&&(I.context=I.context.prev)}function h(I,L){for(var N;;){if(!I.context)return;if(N=I.context.tagName,!f.contextGrabbers.hasOwnProperty(N)||!f.contextGrabbers[N].hasOwnProperty(L))return;u(I)}}function p(I,L,N){return I=="openTag"?(N.tagStart=L.column(),m):I=="closeTag"?v:p}function m(I,L,N){return I=="word"?(N.tagName=L.current(),i="tag",T):f.allowMissingTagName&&I=="endTag"?(i="tag bracket",T(I,L,N)):(i="error",m)}function v(I,L,N){if(I=="word"){var D=L.current();return N.context&&N.context.tagName!=D&&f.implicitlyClosed.hasOwnProperty(N.context.tagName)&&u(N),N.context&&N.context.tagName==D||f.matchClosing===!1?(i="tag",y):(i="tag error",E)}else return f.allowMissingTagName&&I=="endTag"?(i="tag bracket",y(I,L,N)):(i="error",E)}function y(I,L,N){return I!="endTag"?(i="error",y):(u(N),p)}function E(I,L,N){return i="error",y(I,L,N)}function T(I,L,N){if(I=="word")return i="attribute",b;if(I=="endTag"||I=="selfcloseTag"){var D=N.tagName,R=N.tagStart;return N.tagName=N.tagStart=null,I=="selfcloseTag"||f.autoSelfClosers.hasOwnProperty(D)?h(N,D):(h(N,D),N.context=new s(N,D,R==N.indented)),p}return i="error",T}function b(I,L,N){return I=="equals"?w:(f.allowMissing||(i="error"),T(I,L,N))}function w(I,L,N){return I=="string"?_:I=="word"&&f.allowUnquoted?(i="string",T):(i="error",T(I,L,N))}function _(I,L,N){return I=="string"?_:T(I,L,N)}return{startState:function(L){var N={tokenize:n,state:p,indented:L||0,tagName:null,tagStart:null,context:null};return L!=null&&(N.baseIndent=L),N},token:function(L,N){if(!N.tagName&&L.sol()&&(N.indented=L.indentation()),L.eatSpace())return null;r=null;var D=N.tokenize(L,N);return(D||r)&&D!="comment"&&(i=null,N.state=N.state(r||D,L,N),i&&(D=i=="error"?D+" error":i)),D},indent:function(L,N,D){var R=L.context;if(L.tokenize.isInAttribute)return L.tagStart==L.indented?L.stringStartCol+1:L.indented+g;if(R&&R.noIndent)return O.Pass;if(L.tokenize!=e&&L.tokenize!=n)return D?D.match(/^(\s*)/)[0].length:0;if(L.tagName)return f.multilineTagIndentPastTag!==!1?L.tagStart+L.tagName.length+2:L.tagStart+g*(f.multilineTagIndentFactor||1);if(f.alignCDATA&&/<!\[CDATA\[/.test(N))return 0;var k=N&&/^<(\/)?([\w_:\.-]*)/.exec(N);if(k&&k[1])for(;R;)if(R.tagName==k[2]){R=R.prev;break}else if(f.implicitlyClosed.hasOwnProperty(R.tagName))R=R.prev;else break;else if(k)for(;R;){var M=f.contextGrabbers[R.tagName];if(M&&M.hasOwnProperty(k[2]))R=R.prev;else break}for(;R&&R.prev&&!R.startOfLine;)R=R.prev;return R?R.indent+g:L.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:f.htmlMode?"html":"xml",helperType:f.htmlMode?"html":"xml",skipAttribute:function(L){L.state==w&&(L.state=T)},xmlCurrentTag:function(L){return L.tagName?{name:L.tagName,close:L.type=="closeTag"}:null},xmlCurrentContext:function(L){for(var N=[],D=L.context;D;D=D.prev)D.tagName&&N.push(D.tagName);return N.reverse()}}}),O.defineMIME("text/xml","xml"),O.defineMIME("application/xml","xml"),O.mimeModes.hasOwnProperty("text/html")||O.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"1n7x":function(H,F,d){(function(O,x){/*!
|
|
|
* html2pdf.js v0.10.1
|
|
|
* Copyright (c) 2021 Erik Koopmans
|
|
|
* Released under the MIT License.
|
|
|
*/(function(A,S){H.exports=S(d("dtIV"),d("wOnQ"))})(self,function(C,A){return function(){var S={"./src/plugin/hyperlinks.js":function(r,i,n){"use strict";n.r(i);var e=n("./node_modules/core-js/modules/web.dom-collections.for-each.js"),l=n.n(e),t=n("./node_modules/core-js/modules/es.string.link.js"),a=n.n(t),s=n("./src/worker.js"),u=n("./src/utils.js"),h=[],p={toContainer:s.default.prototype.toContainer,toPdf:s.default.prototype.toPdf};s.default.prototype.toContainer=function(){return p.toContainer.call(this).then(function(){if(this.opt.enableLinks){var y=this.prop.container,E=y.querySelectorAll("a"),T=(0,u.unitConvert)(y.getBoundingClientRect(),this.prop.pageSize.k);h=[],Array.prototype.forEach.call(E,function(b){for(var w=b.getClientRects(),_=0;_<w.length;_++){var I=(0,u.unitConvert)(w[_],this.prop.pageSize.k);I.left-=T.left,I.top-=T.top;var L=Math.floor(I.top/this.prop.pageSize.inner.height)+1,N=this.opt.margin[0]+I.top%this.prop.pageSize.inner.height,D=this.opt.margin[1]+I.left;h.push({page:L,top:N,left:D,clientRect:I,link:b})}},this)}})},s.default.prototype.toPdf=function(){return p.toPdf.call(this).then(function(){if(this.opt.enableLinks){h.forEach(function(E){this.prop.pdf.setPage(E.page),this.prop.pdf.link(E.left,E.top,E.clientRect.width,E.clientRect.height,{url:E.link.href})},this);var y=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(y)}})}},"./src/plugin/jspdf-plugin.js":function(r,i,n){"use strict";n.r(i);var e=n("./node_modules/core-js/modules/es.symbol.js"),l=n.n(e),t=n("./node_modules/core-js/modules/es.symbol.description.js"),a=n.n(t),s=n("./node_modules/core-js/modules/es.object.to-string.js"),u=n.n(s),h=n("./node_modules/core-js/modules/es.symbol.iterator.js"),p=n.n(h),m=n("./node_modules/core-js/modules/es.array.iterator.js"),v=n.n(m),y=n("./node_modules/core-js/modules/es.string.iterator.js"),E=n.n(y),T=n("./node_modules/core-js/modules/web.dom-collections.iterator.js"),b=n.n(T),w=n("jspdf"),_=n.n(w);function I(L){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(D){return typeof D}:I=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},I(L)}w.jsPDF.getPageSize=function(L,N,D){if(I(L)==="object"){var R=L;L=R.orientation,N=R.unit||N,D=R.format||D}N=N||"mm",D=D||"a4",L=(""+(L||"P")).toLowerCase();var k=(""+D).toLowerCase(),M={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(N){case"pt":var U=1;break;case"mm":var U=72/25.4;break;case"cm":var U=72/2.54;break;case"in":var U=72;break;case"px":var U=72/96;break;case"pc":var U=12;break;case"em":var U=12;break;case"ex":var U=6;break;default:throw"Invalid unit: "+N}if(M.hasOwnProperty(k))var B=M[k][1]/U,j=M[k][0]/U;else try{var B=D[1],j=D[0]}catch(z){throw new Error("Invalid format: "+D)}if(L==="p"||L==="portrait"){if(L="p",j>B){var W=j;j=B,B=W}}else if(L==="l"||L==="landscape"){if(L="l",B>j){var W=j;j=B,B=W}}else throw"Invalid orientation: "+L;var V={width:j,height:B,unit:N,k:U};return V},i.default=w.jsPDF},"./src/plugin/pagebreaks.js":function(r,i,n){"use strict";n.r(i);var e=n("./node_modules/core-js/modules/es.array.concat.js"),l=n.n(e),t=n("./node_modules/core-js/modules/es.array.slice.js"),a=n.n(t),s=n("./node_modules/core-js/modules/es.array.join.js"),u=n.n(s),h=n("./node_modules/core-js/modules/web.dom-collections.for-each.js"),p=n.n(h),m=n("./node_modules/core-js/modules/es.object.keys.js"),v=n.n(m),y=n("./src/worker.js"),E=n("./src/utils.js"),T={toContainer:y.default.prototype.toContainer};y.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},y.default.prototype.toContainer=function(){return T.toContainer.call(this).then(function(){var _=this.prop.container,I=this.prop.pageSize.inner.px.height,L=[].concat(this.opt.pagebreak.mode),N={avoidAll:L.indexOf("avoid-all")!==-1,css:L.indexOf("css")!==-1,legacy:L.indexOf("legacy")!==-1},D={},R=this;["before","after","avoid"].forEach(function(U){var B=N.avoidAll&&U==="avoid";D[U]=B?[]:[].concat(R.opt.pagebreak[U]||[]),D[U].length>0&&(D[U]=Array.prototype.slice.call(_.querySelectorAll(D[U].join(", "))))});var k=_.querySelectorAll(".html2pdf__page-break");k=Array.prototype.slice.call(k);var M=_.querySelectorAll("*");Array.prototype.forEach.call(M,function(B){var j={before:!1,after:N.legacy&&k.indexOf(B)!==-1,avoid:N.avoidAll};if(N.css){var W=window.getComputedStyle(B),V=["always","page","left","right"],z=["avoid","avoid-page"];j={before:j.before||V.indexOf(W.breakBefore||W.pageBreakBefore)!==-1,after:j.after||V.indexOf(W.breakAfter||W.pageBreakAfter)!==-1,avoid:j.avoid||z.indexOf(W.breakInside||W.pageBreakInside)!==-1}}Object.keys(j).forEach(function(xe){j[xe]=j[xe]||D[xe].indexOf(B)!==-1});var J=B.getBoundingClientRect();if(j.avoid&&!j.before){var Z=Math.floor(J.top/I),de=Math.floor(J.bottom/I),ie=Math.abs(J.bottom-J.top)/I;de!==Z&&ie<=1&&(j.before=!0)}if(j.before){var ve=(0,E.createElement)("div",{style:{display:"block",height:I-J.top%I+"px"}});B.parentNode.insertBefore(ve,B)}if(j.after){var ve=(0,E.createElement)("div",{style:{display:"block",height:I-J.bottom%I+"px"}});B.parentNode.insertBefore(ve,B.nextSibling)}})})}},"./src/utils.js":function(r,i,n){"use strict";n.r(i),n.d(i,{objType:function(){return L},createElement:function(){return N},cloneNode:function(){return D},unitConvert:function(){return R},toPx:function(){return k}});var e=n("./node_modules/core-js/modules/es.number.constructor.js"),l=n.n(e),t=n("./node_modules/core-js/modules/es.symbol.js"),a=n.n(t),s=n("./node_modules/core-js/modules/es.symbol.description.js"),u=n.n(s),h=n("./node_modules/core-js/modules/es.object.to-string.js"),p=n.n(h),m=n("./node_modules/core-js/modules/es.symbol.iterator.js"),v=n.n(m),y=n("./node_modules/core-js/modules/es.array.iterator.js"),E=n.n(y),T=n("./node_modules/core-js/modules/es.string.iterator.js"),b=n.n(T),w=n("./node_modules/core-js/modules/web.dom-collections.iterator.js"),_=n.n(w);function I(M){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(B){return typeof B}:I=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},I(M)}var L=function(U){var B=I(U);return B==="undefined"?"undefined":B==="string"||U instanceof String?"string":B==="number"||U instanceof Number?"number":B==="function"||U instanceof Function?"function":!!U&&U.constructor===Array?"array":U&&U.nodeType===1?"element":B==="object"?"object":"unknown"},N=function(U,B){var j=document.createElement(U);if(B.className&&(j.className=B.className),B.innerHTML){j.innerHTML=B.innerHTML;for(var W=j.getElementsByTagName("script"),V=W.length;V-- >0;null)W[V].parentNode.removeChild(W[V])}for(var z in B.style)j.style[z]=B.style[z];return j},D=function M(U,B){for(var j=U.nodeType===3?document.createTextNode(U.nodeValue):U.cloneNode(!1),W=U.firstChild;W;W=W.nextSibling)(B===!0||W.nodeType!==1||W.nodeName!=="SCRIPT")&&j.appendChild(M(W,B));return U.nodeType===1&&(U.nodeName==="CANVAS"?(j.width=U.width,j.height=U.height,j.getContext("2d").drawImage(U,0,0)):(U.nodeName==="TEXTAREA"||U.nodeName==="SELECT")&&(j.value=U.value),j.addEventListener("load",function(){j.scrollTop=U.scrollTop,j.scrollLeft=U.scrollLeft},!0)),j},R=function(U,B){if(L(U)==="number")return U*72/96/B;var j={};for(var W in U)j[W]=U[W]*72/96/B;return j},k=function(U,B){return Math.floor(U*B/72*96)}},"./src/worker.js":function(r,i,n){"use strict";n.r(i);var e=n("./node_modules/core-js/modules/es.object.assign.js"),l=n.n(e),t=n("./node_modules/core-js/modules/es.array.map.js"),a=n.n(t),s=n("./node_modules/core-js/modules/es.object.keys.js"),u=n.n(s),h=n("./node_modules/core-js/modules/es.array.concat.js"),p=n.n(h),m=n("./node_modules/core-js/modules/es.object.to-string.js"),v=n.n(m),y=n("./node_modules/core-js/modules/es.regexp.to-string.js"),E=n.n(y),T=n("./node_modules/core-js/modules/es.function.name.js"),b=n.n(T),w=n("./node_modules/core-js/modules/web.dom-collections.for-each.js"),_=n.n(w),I=n("jspdf"),L=n.n(I),N=n("html2canvas"),D=n.n(N),R=n("./src/utils.js"),k=n("./node_modules/es6-promise/dist/es6-promise.js"),M=n.n(k),U=M().Promise,B=function j(W){var V=Object.assign(j.convert(U.resolve()),JSON.parse(JSON.stringify(j.template))),z=j.convert(U.resolve(),V);return z=z.setProgress(1,j,1,[j]),z=z.set(W),z};B.prototype=Object.create(U.prototype),B.prototype.constructor=B,B.convert=function(W,V){return W.__proto__=V||B.prototype,W},B.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:{}}},B.prototype.from=function(W,V){function z(J){switch((0,R.objType)(J)){case"string":return"string";case"element":return J.nodeName.toLowerCase==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){V=V||z(W);switch(V){case"string":return this.set({src:(0,R.createElement)("div",{innerHTML:W})});case"element":return this.set({src:W});case"canvas":return this.set({canvas:W});case"img":return this.set({img:W});default:return this.error("Unknown source type.")}})},B.prototype.to=function(W){switch(W){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.")}},B.prototype.toContainer=function(){var W=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(W).then(function(){var z={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},J={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};z.opacity=0;var Z=(0,R.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,R.createElement)("div",{className:"html2pdf__overlay",style:z}),this.prop.container=(0,R.createElement)("div",{className:"html2pdf__container",style:J}),this.prop.container.appendChild(Z),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},B.prototype.toCanvas=function(){var W=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(W).then(function(){var z=Object.assign({},this.opt.html2canvas);return delete z.onrendered,N(this.prop.container,z)}).then(function(z){var J=this.opt.html2canvas.onrendered||function(){};J(z),this.prop.canvas=z,document.body.removeChild(this.prop.overlay)})},B.prototype.toImg=function(){var W=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(W).then(function(){var z=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=z})},B.prototype.toPdf=function(){var W=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(W).then(function(){var z=this.prop.canvas,J=this.opt,Z=z.height,de=Math.floor(z.width*this.prop.pageSize.inner.ratio),ie=Math.ceil(Z/de),ve=this.prop.pageSize.inner.height,xe=document.createElement("canvas"),_e=xe.getContext("2d");xe.width=z.width,xe.height=de,this.prop.pdf=this.prop.pdf||new I.jsPDF(J.jsPDF);for(var Ue=0;Ue<ie;Ue++){Ue===ie-1&&Z%de!==0&&(xe.height=Z%de,ve=xe.height*this.prop.pageSize.inner.width/xe.width);var fe=xe.width,ke=xe.height;_e.fillStyle="white",_e.fillRect(0,0,fe,ke),_e.drawImage(z,0,Ue*de,fe,ke,0,0,fe,ke),Ue&&this.prop.pdf.addPage();var se=xe.toDataURL("image/"+J.image.type,J.image.quality);this.prop.pdf.addImage(se,J.image.type,J.margin[1],J.margin[0],this.prop.pageSize.inner.width,ve)}})},B.prototype.output=function(W,V,z){return z=z||"pdf",z.toLowerCase()==="img"||z.toLowerCase()==="image"?this.outputImg(W,V):this.outputPdf(W,V)},B.prototype.outputPdf=function(W,V){var z=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(z).then(function(){return this.prop.pdf.output(W,V)})},B.prototype.outputImg=function(W,V){var z=[function(){return this.prop.img||this.toImg()}];return this.thenList(z).then(function(){switch(W){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 "'+W+'" is not supported.'}})},B.prototype.save=function(W){var V=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(V).set(W?{filename:W}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},B.prototype.set=function(W){if((0,R.objType)(W)!=="object")return this;var V=Object.keys(W||{}).map(function(z){switch(z){case"margin":return this.setMargin.bind(this,W.margin);case"jsPDF":return function(){return this.opt.jsPDF=W.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,W.pageSize);default:return z in B.template.prop?function(){this.prop[z]=W[z]}:function(){this.opt[z]=W[z]}}},this);return this.then(function(){return this.thenList(V)})},B.prototype.get=function(W,V){return this.then(function(){var J=W in B.template.prop?this.prop[W]:this.opt[W];return V?V(J):J})},B.prototype.setMargin=function(W){return this.then(function(){switch((0,R.objType)(W)){case"number":W=[W,W,W,W];case"array":if(W.length===2&&(W=[W[0],W[1],W[0],W[1]]),W.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=W}).then(this.setPageSize)},B.prototype.setPageSize=function(W){return this.then(function(){W=W||I.jsPDF.getPageSize(this.opt.jsPDF),W.hasOwnProperty("inner")||(W.inner={width:W.width-this.opt.margin[1]-this.opt.margin[3],height:W.height-this.opt.margin[0]-this.opt.margin[2]},W.inner.px={width:(0,R.toPx)(W.inner.width,W.k),height:(0,R.toPx)(W.inner.height,W.k)},W.inner.ratio=W.inner.height/W.inner.width),this.prop.pageSize=W})},B.prototype.setProgress=function(W,V,z,J){return W!=null&&(this.progress.val=W),V!=null&&(this.progress.state=V),z!=null&&(this.progress.n=z),J!=null&&(this.progress.stack=J),this.progress.ratio=this.progress.val/this.progress.state,this},B.prototype.updateProgress=function(W,V,z,J){return this.setProgress(W?this.progress.val+W:null,V||null,z?this.progress.n+z:null,J?this.progress.stack.concat(J):null)},B.prototype.then=function(W,V){var z=this;return this.thenCore(W,V,function(Z,de){return z.updateProgress(null,null,1,[Z]),U.prototype.then.call(this,function(ve){return z.updateProgress(null,Z),ve}).then(Z,de).then(function(ve){return z.updateProgress(1),ve})})},B.prototype.thenCore=function(W,V,z){z=z||U.prototype.then;var J=this;W&&(W=W.bind(J)),V&&(V=V.bind(J));var Z=U.toString().indexOf("[native code]")!==-1&&U.name==="Promise",de=Z?J:B.convert(Object.assign({},J),U.prototype),ie=z.call(de,W,V);return B.convert(ie,J.__proto__)},B.prototype.thenExternal=function(W,V){return U.prototype.then.call(this,W,V)},B.prototype.thenList=function(W){var V=this;return W.forEach(function(J){V=V.thenCore(J)}),V},B.prototype.catch=function(j){j&&(j=j.bind(this));var W=U.prototype.catch.call(this,j);return B.convert(W,this)},B.prototype.catchExternal=function(W){return U.prototype.catch.call(this,W)},B.prototype.error=function(W){return this.then(function(){throw new Error(W)})},B.prototype.using=B.prototype.set,B.prototype.saveAs=B.prototype.save,B.prototype.export=B.prototype.output,B.prototype.run=B.prototype.then,i.default=B},"./node_modules/core-js/internals/a-function.js":function(r){r.exports=function(i){if(typeof i!="function")throw TypeError(String(i)+" is not a function");return i}},"./node_modules/core-js/internals/a-possible-prototype.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js");r.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(r,i,n){var e=n("./node_modules/core-js/internals/well-known-symbol.js"),l=n("./node_modules/core-js/internals/object-create.js"),t=n("./node_modules/core-js/internals/object-define-property.js"),a=e("unscopables"),s=Array.prototype;s[a]==null&&t.f(s,a,{configurable:!0,value:l(null)}),r.exports=function(u){s[a][u]=!0}},"./node_modules/core-js/internals/an-object.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js");r.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(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/array-iteration.js").forEach,l=n("./node_modules/core-js/internals/array-method-is-strict.js"),t=l("forEach");r.exports=t?[].forEach:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-indexed-object.js"),l=n("./node_modules/core-js/internals/to-length.js"),t=n("./node_modules/core-js/internals/to-absolute-index.js"),a=function(u){return function(h,p,m){var v=e(h),y=l(v.length),E=t(m,y),T;if(u&&p!=p){for(;y>E;)if(T=v[E++],T!=T)return!0}else for(;y>E;E++)if((u||E in v)&&v[E]===p)return u||E||0;return!u&&-1}};r.exports={includes:a(!0),indexOf:a(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(r,i,n){var e=n("./node_modules/core-js/internals/function-bind-context.js"),l=n("./node_modules/core-js/internals/indexed-object.js"),t=n("./node_modules/core-js/internals/to-object.js"),a=n("./node_modules/core-js/internals/to-length.js"),s=n("./node_modules/core-js/internals/array-species-create.js"),u=[].push,h=function(m){var v=m==1,y=m==2,E=m==3,T=m==4,b=m==6,w=m==7,_=m==5||b;return function(I,L,N,D){for(var R=t(I),k=l(R),M=e(L,N,3),U=a(k.length),B=0,j=D||s,W=v?j(I,U):y||w?j(I,0):void 0,V,z;U>B;B++)if((_||B in k)&&(V=k[B],z=M(V,B,R),m))if(v)W[B]=z;else if(z)switch(m){case 3:return!0;case 5:return V;case 6:return B;case 2:u.call(W,V)}else switch(m){case 4:return!1;case 7:u.call(W,V)}return b?-1:E||T?T:W}};r.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterReject:h(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(r,i,n){var e=n("./node_modules/core-js/internals/fails.js"),l=n("./node_modules/core-js/internals/well-known-symbol.js"),t=n("./node_modules/core-js/internals/engine-v8-version.js"),a=l("species");r.exports=function(s){return t>=51||!e(function(){var u=[],h=u.constructor={};return h[a]=function(){return{foo:1}},u[s](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/fails.js");r.exports=function(l,t){var a=[][l];return!!a&&e(function(){a.call(null,t||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js"),l=n("./node_modules/core-js/internals/is-array.js"),t=n("./node_modules/core-js/internals/well-known-symbol.js"),a=t("species");r.exports=function(s){var u;return l(s)&&(u=s.constructor,typeof u=="function"&&(u===Array||l(u.prototype))?u=void 0:e(u)&&(u=u[a],u===null&&(u=void 0))),u===void 0?Array:u}},"./node_modules/core-js/internals/array-species-create.js":function(r,i,n){var e=n("./node_modules/core-js/internals/array-species-constructor.js");r.exports=function(l,t){return new(e(l))(t===0?0:t)}},"./node_modules/core-js/internals/classof-raw.js":function(r){var i={}.toString;r.exports=function(n){return i.call(n).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-string-tag-support.js"),l=n("./node_modules/core-js/internals/classof-raw.js"),t=n("./node_modules/core-js/internals/well-known-symbol.js"),a=t("toStringTag"),s=l(function(){return arguments}())=="Arguments",u=function(p,m){try{return p[m]}catch(v){}};r.exports=e?l:function(h){var p,m,v;return h===void 0?"Undefined":h===null?"Null":typeof(m=u(p=Object(h),a))=="string"?m:s?l(p):(v=l(p))=="Object"&&typeof p.callee=="function"?"Arguments":v}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(r,i,n){var e=n("./node_modules/core-js/internals/has.js"),l=n("./node_modules/core-js/internals/own-keys.js"),t=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),a=n("./node_modules/core-js/internals/object-define-property.js");r.exports=function(s,u){for(var h=l(u),p=a.f,m=t.f,v=0;v<h.length;v++){var y=h[v];e(s,y)||p(s,y,m(u,y))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(r,i,n){var e=n("./node_modules/core-js/internals/fails.js");r.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(r,i,n){var e=n("./node_modules/core-js/internals/require-object-coercible.js"),l=n("./node_modules/core-js/internals/to-string.js"),t=/"/g;r.exports=function(a,s,u,h){var p=l(e(a)),m="<"+s;return u!==""&&(m+=" "+u+'="'+l(h).replace(t,""")+'"'),m+">"+p+"</"+s+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,l=n("./node_modules/core-js/internals/object-create.js"),t=n("./node_modules/core-js/internals/create-property-descriptor.js"),a=n("./node_modules/core-js/internals/set-to-string-tag.js"),s=n("./node_modules/core-js/internals/iterators.js"),u=function(){return this};r.exports=function(h,p,m){var v=p+" Iterator";return h.prototype=l(e,{next:t(1,m)}),a(h,v,!1,!0),s[v]=u,h}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(r,i,n){var e=n("./node_modules/core-js/internals/descriptors.js"),l=n("./node_modules/core-js/internals/object-define-property.js"),t=n("./node_modules/core-js/internals/create-property-descriptor.js");r.exports=e?function(a,s,u){return l.f(a,s,t(1,u))}:function(a,s,u){return a[s]=u,a}},"./node_modules/core-js/internals/create-property-descriptor.js":function(r){r.exports=function(i,n){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:n}}},"./node_modules/core-js/internals/create-property.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/to-property-key.js"),l=n("./node_modules/core-js/internals/object-define-property.js"),t=n("./node_modules/core-js/internals/create-property-descriptor.js");r.exports=function(a,s,u){var h=e(s);h in a?l.f(a,h,t(0,u)):a[h]=u}},"./node_modules/core-js/internals/define-iterator.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),l=n("./node_modules/core-js/internals/create-iterator-constructor.js"),t=n("./node_modules/core-js/internals/object-get-prototype-of.js"),a=n("./node_modules/core-js/internals/object-set-prototype-of.js"),s=n("./node_modules/core-js/internals/set-to-string-tag.js"),u=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),h=n("./node_modules/core-js/internals/redefine.js"),p=n("./node_modules/core-js/internals/well-known-symbol.js"),m=n("./node_modules/core-js/internals/is-pure.js"),v=n("./node_modules/core-js/internals/iterators.js"),y=n("./node_modules/core-js/internals/iterators-core.js"),E=y.IteratorPrototype,T=y.BUGGY_SAFARI_ITERATORS,b=p("iterator"),w="keys",_="values",I="entries",L=function(){return this};r.exports=function(N,D,R,k,M,U,B){l(R,D,k);var j=function(Ue){if(Ue===M&&Z)return Z;if(!T&&Ue in z)return z[Ue];switch(Ue){case w:return function(){return new R(this,Ue)};case _:return function(){return new R(this,Ue)};case I:return function(){return new R(this,Ue)}}return function(){return new R(this)}},W=D+" Iterator",V=!1,z=N.prototype,J=z[b]||z["@@iterator"]||M&&z[M],Z=!T&&J||j(M),de=D=="Array"&&z.entries||J,ie,ve,xe;if(de&&(ie=t(de.call(new N)),E!==Object.prototype&&ie.next&&(!m&&t(ie)!==E&&(a?a(ie,E):typeof ie[b]!="function"&&u(ie,b,L)),s(ie,W,!0,!0),m&&(v[W]=L))),M==_&&J&&J.name!==_&&(V=!0,Z=function(){return J.call(this)}),(!m||B)&&z[b]!==Z&&u(z,b,Z),v[D]=Z,M)if(ve={values:j(_),keys:U?Z:j(w),entries:j(I)},B)for(xe in ve)(T||V||!(xe in z))&&h(z,xe,ve[xe]);else e({target:D,proto:!0,forced:T||V},ve);return ve}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(r,i,n){var e=n("./node_modules/core-js/internals/path.js"),l=n("./node_modules/core-js/internals/has.js"),t=n("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),a=n("./node_modules/core-js/internals/object-define-property.js").f;r.exports=function(s){var u=e.Symbol||(e.Symbol={});l(u,s)||a(u,s,{value:t.f(s)})}},"./node_modules/core-js/internals/descriptors.js":function(r,i,n){var e=n("./node_modules/core-js/internals/fails.js");r.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/is-object.js"),t=e.document,a=l(t)&&l(t.createElement);r.exports=function(s){return a?t.createElement(s):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(r){r.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(r,i,n){var e=n("./node_modules/core-js/internals/get-built-in.js");r.exports=e("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/engine-user-agent.js"),t=e.process,a=e.Deno,s=t&&t.versions||a&&a.version,u=s&&s.v8,h,p;u?(h=u.split("."),p=h[0]<4?1:h[0]+h[1]):l&&(h=l.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=l.match(/Chrome\/(\d+)/),h&&(p=h[1]))),r.exports=p&&+p},"./node_modules/core-js/internals/enum-bug-keys.js":function(r){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,t=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),a=n("./node_modules/core-js/internals/redefine.js"),s=n("./node_modules/core-js/internals/set-global.js"),u=n("./node_modules/core-js/internals/copy-constructor-properties.js"),h=n("./node_modules/core-js/internals/is-forced.js");r.exports=function(p,m){var v=p.target,y=p.global,E=p.stat,T,b,w,_,I,L;if(y?b=e:E?b=e[v]||s(v,{}):b=(e[v]||{}).prototype,b)for(w in m){if(I=m[w],p.noTargetGet?(L=l(b,w),_=L&&L.value):_=b[w],T=h(y?w:v+(E?".":"#")+w,p.forced),!T&&_!==void 0){if(typeof I===typeof _)continue;u(I,_)}(p.sham||_&&_.sham)&&t(I,"sham",!0),a(b,w,I,p)}}},"./node_modules/core-js/internals/fails.js":function(r){r.exports=function(i){try{return!!i()}catch(n){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(r,i,n){var e=n("./node_modules/core-js/internals/a-function.js");r.exports=function(l,t,a){if(e(l),t===void 0)return l;switch(a){case 0:return function(){return l.call(t)};case 1:return function(s){return l.call(t,s)};case 2:return function(s,u){return l.call(t,s,u)};case 3:return function(s,u,h){return l.call(t,s,u,h)}}return function(){return l.apply(t,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=function(a){return typeof a=="function"?a:void 0};r.exports=function(t,a){return arguments.length<2?l(e[t]):e[t]&&e[t][a]}},"./node_modules/core-js/internals/global.js":function(r){var i=function(e){return e&&e.Math==Math&&e};r.exports=i(typeof globalThis=="object"&&globalThis)||i(typeof window=="object"&&window)||i(typeof self=="object"&&self)||i(typeof O=="object"&&O)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-object.js"),l={}.hasOwnProperty;r.exports=Object.hasOwn||function(a,s){return l.call(e(a),s)}},"./node_modules/core-js/internals/hidden-keys.js":function(r){r.exports={}},"./node_modules/core-js/internals/html.js":function(r,i,n){var e=n("./node_modules/core-js/internals/get-built-in.js");r.exports=e("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(r,i,n){var e=n("./node_modules/core-js/internals/descriptors.js"),l=n("./node_modules/core-js/internals/fails.js"),t=n("./node_modules/core-js/internals/document-create-element.js");r.exports=!e&&!l(function(){return Object.defineProperty(t("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(r,i,n){var e=n("./node_modules/core-js/internals/fails.js"),l=n("./node_modules/core-js/internals/classof-raw.js"),t="".split;r.exports=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(a){return l(a)=="String"?t.call(a,""):Object(a)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js"),l=n("./node_modules/core-js/internals/object-set-prototype-of.js");r.exports=function(t,a,s){var u,h;return l&&typeof(u=a.constructor)=="function"&&u!==s&&e(h=u.prototype)&&h!==s.prototype&&l(t,h),t}},"./node_modules/core-js/internals/inspect-source.js":function(r,i,n){var e=n("./node_modules/core-js/internals/shared-store.js"),l=Function.toString;typeof e.inspectSource!="function"&&(e.inspectSource=function(t){return l.call(t)}),r.exports=e.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(r,i,n){var e=n("./node_modules/core-js/internals/native-weak-map.js"),l=n("./node_modules/core-js/internals/global.js"),t=n("./node_modules/core-js/internals/is-object.js"),a=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),s=n("./node_modules/core-js/internals/has.js"),u=n("./node_modules/core-js/internals/shared-store.js"),h=n("./node_modules/core-js/internals/shared-key.js"),p=n("./node_modules/core-js/internals/hidden-keys.js"),m="Object already initialized",v=l.WeakMap,y,E,T,b=function(k){return T(k)?E(k):y(k,{})},w=function(k){return function(M){var U;if(!t(M)||(U=E(M)).type!==k)throw TypeError("Incompatible receiver, "+k+" required");return U}};if(e||u.state){var _=u.state||(u.state=new v),I=_.get,L=_.has,N=_.set;y=function(k,M){if(L.call(_,k))throw new TypeError(m);return M.facade=k,N.call(_,k,M),M},E=function(k){return I.call(_,k)||{}},T=function(k){return L.call(_,k)}}else{var D=h("state");p[D]=!0,y=function(k,M){if(s(k,D))throw new TypeError(m);return M.facade=k,a(k,D,M),M},E=function(k){return s(k,D)?k[D]:{}},T=function(k){return s(k,D)}}r.exports={set:y,get:E,has:T,enforce:b,getterFor:w}},"./node_modules/core-js/internals/is-array.js":function(r,i,n){var e=n("./node_modules/core-js/internals/classof-raw.js");r.exports=Array.isArray||function(t){return e(t)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(r,i,n){var e=n("./node_modules/core-js/internals/fails.js"),l=/#|\.prototype\./,t=function(m,v){var y=s[a(m)];return y==h?!0:y==u?!1:typeof v=="function"?e(v):!!v},a=t.normalize=function(p){return String(p).replace(l,".").toLowerCase()},s=t.data={},u=t.NATIVE="N",h=t.POLYFILL="P";r.exports=t},"./node_modules/core-js/internals/is-object.js":function(r){r.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},"./node_modules/core-js/internals/is-pure.js":function(r){r.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(r,i,n){var e=n("./node_modules/core-js/internals/get-built-in.js"),l=n("./node_modules/core-js/internals/use-symbol-as-uid.js");r.exports=l?function(t){return typeof t=="symbol"}:function(t){var a=e("Symbol");return typeof a=="function"&&Object(t)instanceof a}},"./node_modules/core-js/internals/iterators-core.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/fails.js"),l=n("./node_modules/core-js/internals/object-get-prototype-of.js"),t=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),a=n("./node_modules/core-js/internals/has.js"),s=n("./node_modules/core-js/internals/well-known-symbol.js"),u=n("./node_modules/core-js/internals/is-pure.js"),h=s("iterator"),p=!1,m=function(){return this},v,y,E;[].keys&&(E=[].keys(),"next"in E?(y=l(l(E)),y!==Object.prototype&&(v=y)):p=!0);var T=v==null||e(function(){var b={};return v[h].call(b)!==b});T&&(v={}),(!u||T)&&!a(v,h)&&t(v,h,m),r.exports={IteratorPrototype:v,BUGGY_SAFARI_ITERATORS:p}},"./node_modules/core-js/internals/iterators.js":function(r){r.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(r,i,n){var e=n("./node_modules/core-js/internals/engine-v8-version.js"),l=n("./node_modules/core-js/internals/fails.js");r.exports=!!Object.getOwnPropertySymbols&&!l(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41})},"./node_modules/core-js/internals/native-weak-map.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/inspect-source.js"),t=e.WeakMap;r.exports=typeof t=="function"&&/native code/.test(l(t))},"./node_modules/core-js/internals/object-assign.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/descriptors.js"),l=n("./node_modules/core-js/internals/fails.js"),t=n("./node_modules/core-js/internals/object-keys.js"),a=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),s=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),u=n("./node_modules/core-js/internals/to-object.js"),h=n("./node_modules/core-js/internals/indexed-object.js"),p=Object.assign,m=Object.defineProperty;r.exports=!p||l(function(){if(e&&p({b:1},p(m({},"a",{enumerable:!0,get:function(){m(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},y={},E=Symbol(),T="abcdefghijklmnopqrst";return v[E]=7,T.split("").forEach(function(b){y[b]=b}),p({},v)[E]!=7||t(p({},y)).join("")!=T})?function(y,E){for(var T=u(y),b=arguments.length,w=1,_=a.f,I=s.f;b>w;)for(var L=h(arguments[w++]),N=_?t(L).concat(_(L)):t(L),D=N.length,R=0,k;D>R;)k=N[R++],(!e||I.call(L,k))&&(T[k]=L[k]);return T}:p},"./node_modules/core-js/internals/object-create.js":function(r,i,n){var e=n("./node_modules/core-js/internals/an-object.js"),l=n("./node_modules/core-js/internals/object-define-properties.js"),t=n("./node_modules/core-js/internals/enum-bug-keys.js"),a=n("./node_modules/core-js/internals/hidden-keys.js"),s=n("./node_modules/core-js/internals/html.js"),u=n("./node_modules/core-js/internals/document-create-element.js"),h=n("./node_modules/core-js/internals/shared-key.js"),p=">",m="<",v="prototype",y="script",E=h("IE_PROTO"),T=function(){},b=function(D){return m+y+p+D+m+"/"+y+p},w=function(D){D.write(b("")),D.close();var R=D.parentWindow.Object;return D=null,R},_=function(){var D=u("iframe"),R="java"+y+":",k;if(D.style)return D.style.display="none",s.appendChild(D),D.src=String(R),k=D.contentWindow.document,k.open(),k.write(b("document.F=Object")),k.close(),k.F},I,L=function(){try{I=new ActiveXObject("htmlfile")}catch(R){}L=document.domain&&I?w(I):_()||w(I);for(var D=t.length;D--;)delete L[v][t[D]];return L()};a[E]=!0,r.exports=Object.create||function(D,R){var k;return D!==null?(T[v]=e(D),k=new T,T[v]=null,k[E]=D):k=L(),R===void 0?k:l(k,R)}},"./node_modules/core-js/internals/object-define-properties.js":function(r,i,n){var e=n("./node_modules/core-js/internals/descriptors.js"),l=n("./node_modules/core-js/internals/object-define-property.js"),t=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/object-keys.js");r.exports=e?Object.defineProperties:function(u,h){t(u);for(var p=a(h),m=p.length,v=0,y;m>v;)l.f(u,y=p[v++],h[y]);return u}},"./node_modules/core-js/internals/object-define-property.js":function(r,i,n){var e=n("./node_modules/core-js/internals/descriptors.js"),l=n("./node_modules/core-js/internals/ie8-dom-define.js"),t=n("./node_modules/core-js/internals/an-object.js"),a=n("./node_modules/core-js/internals/to-property-key.js"),s=Object.defineProperty;i.f=e?s:function(h,p,m){if(t(h),p=a(p),t(m),l)try{return s(h,p,m)}catch(v){}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(h[p]=m.value),h}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(r,i,n){var e=n("./node_modules/core-js/internals/descriptors.js"),l=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),t=n("./node_modules/core-js/internals/create-property-descriptor.js"),a=n("./node_modules/core-js/internals/to-indexed-object.js"),s=n("./node_modules/core-js/internals/to-property-key.js"),u=n("./node_modules/core-js/internals/has.js"),h=n("./node_modules/core-js/internals/ie8-dom-define.js"),p=Object.getOwnPropertyDescriptor;i.f=e?p:function(v,y){if(v=a(v),y=s(y),h)try{return p(v,y)}catch(E){}if(u(v,y))return t(!l.f.call(v,y),v[y])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-indexed-object.js"),l=n("./node_modules/core-js/internals/object-get-own-property-names.js").f,t={}.toString,a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(h){try{return l(h)}catch(p){return a.slice()}};r.exports.f=function(h){return a&&t.call(h)=="[object Window]"?s(h):l(e(h))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(r,i,n){var e=n("./node_modules/core-js/internals/object-keys-internal.js"),l=n("./node_modules/core-js/internals/enum-bug-keys.js"),t=l.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(s){return e(s,t)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(r,i){i.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(r,i,n){var e=n("./node_modules/core-js/internals/has.js"),l=n("./node_modules/core-js/internals/to-object.js"),t=n("./node_modules/core-js/internals/shared-key.js"),a=n("./node_modules/core-js/internals/correct-prototype-getter.js"),s=t("IE_PROTO"),u=Object.prototype;r.exports=a?Object.getPrototypeOf:function(h){return h=l(h),e(h,s)?h[s]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?u:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(r,i,n){var e=n("./node_modules/core-js/internals/has.js"),l=n("./node_modules/core-js/internals/to-indexed-object.js"),t=n("./node_modules/core-js/internals/array-includes.js").indexOf,a=n("./node_modules/core-js/internals/hidden-keys.js");r.exports=function(s,u){var h=l(s),p=0,m=[],v;for(v in h)!e(a,v)&&e(h,v)&&m.push(v);for(;u.length>p;)e(h,v=u[p++])&&(~t(m,v)||m.push(v));return m}},"./node_modules/core-js/internals/object-keys.js":function(r,i,n){var e=n("./node_modules/core-js/internals/object-keys-internal.js"),l=n("./node_modules/core-js/internals/enum-bug-keys.js");r.exports=Object.keys||function(a){return e(a,l)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(r,i){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,l=e&&!n.call({1:2},1);i.f=l?function(a){var s=e(this,a);return!!s&&s.enumerable}:n},"./node_modules/core-js/internals/object-set-prototype-of.js":function(r,i,n){var e=n("./node_modules/core-js/internals/an-object.js"),l=n("./node_modules/core-js/internals/a-possible-prototype.js");r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,a={},s;try{s=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,s.call(a,[]),t=a instanceof Array}catch(u){}return function(h,p){return e(h),l(p),t?s.call(h,p):h.__proto__=p,h}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/to-string-tag-support.js"),l=n("./node_modules/core-js/internals/classof.js");r.exports=e?{}.toString:function(){return"[object "+l(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js");r.exports=function(l,t){var a,s;if(t==="string"&&typeof(a=l.toString)=="function"&&!e(s=a.call(l)))return s;if(typeof(a=l.valueOf)=="function"&&!e(s=a.call(l)))return s;if(t!=="string"&&typeof(a=l.toString)=="function"&&!e(s=a.call(l)))return s;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(r,i,n){var e=n("./node_modules/core-js/internals/get-built-in.js"),l=n("./node_modules/core-js/internals/object-get-own-property-names.js"),t=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),a=n("./node_modules/core-js/internals/an-object.js");r.exports=e("Reflect","ownKeys")||function(u){var h=l.f(a(u)),p=t.f;return p?h.concat(p(u)):h}},"./node_modules/core-js/internals/path.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js");r.exports=e},"./node_modules/core-js/internals/redefine.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),t=n("./node_modules/core-js/internals/has.js"),a=n("./node_modules/core-js/internals/set-global.js"),s=n("./node_modules/core-js/internals/inspect-source.js"),u=n("./node_modules/core-js/internals/internal-state.js"),h=u.get,p=u.enforce,m=String(String).split("String");(r.exports=function(v,y,E,T){var b=T?!!T.unsafe:!1,w=T?!!T.enumerable:!1,_=T?!!T.noTargetGet:!1,I;if(typeof E=="function"&&(typeof y=="string"&&!t(E,"name")&&l(E,"name",y),I=p(E),I.source||(I.source=m.join(typeof y=="string"?y:""))),v===e){w?v[y]=E:a(y,E);return}else b?!_&&v[y]&&(w=!0):delete v[y];w?v[y]=E:l(v,y,E)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||s(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/an-object.js");r.exports=function(){var l=e(this),t="";return l.global&&(t+="g"),l.ignoreCase&&(t+="i"),l.multiline&&(t+="m"),l.dotAll&&(t+="s"),l.unicode&&(t+="u"),l.sticky&&(t+="y"),t}},"./node_modules/core-js/internals/require-object-coercible.js":function(r){r.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},"./node_modules/core-js/internals/set-global.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js");r.exports=function(l,t){try{Object.defineProperty(e,l,{value:t,configurable:!0,writable:!0})}catch(a){e[l]=t}return t}},"./node_modules/core-js/internals/set-to-string-tag.js":function(r,i,n){var e=n("./node_modules/core-js/internals/object-define-property.js").f,l=n("./node_modules/core-js/internals/has.js"),t=n("./node_modules/core-js/internals/well-known-symbol.js"),a=t("toStringTag");r.exports=function(s,u,h){s&&!l(s=h?s:s.prototype,a)&&e(s,a,{configurable:!0,value:u})}},"./node_modules/core-js/internals/shared-key.js":function(r,i,n){var e=n("./node_modules/core-js/internals/shared.js"),l=n("./node_modules/core-js/internals/uid.js"),t=e("keys");r.exports=function(a){return t[a]||(t[a]=l(a))}},"./node_modules/core-js/internals/shared-store.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/set-global.js"),t="__core-js_shared__",a=e[t]||l(t,{});r.exports=a},"./node_modules/core-js/internals/shared.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-pure.js"),l=n("./node_modules/core-js/internals/shared-store.js");(r.exports=function(t,a){return l[t]||(l[t]=a!==void 0?a:{})})("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(r,i,n){var e=n("./node_modules/core-js/internals/fails.js");r.exports=function(l){return e(function(){var t=""[l]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-integer.js"),l=n("./node_modules/core-js/internals/to-string.js"),t=n("./node_modules/core-js/internals/require-object-coercible.js"),a=function(u){return function(h,p){var m=l(t(h)),v=e(p),y=m.length,E,T;return v<0||v>=y?u?"":void 0:(E=m.charCodeAt(v),E<55296||E>56319||v+1===y||(T=m.charCodeAt(v+1))<56320||T>57343?u?m.charAt(v):E:u?m.slice(v,v+2):(E-55296<<10)+(T-56320)+65536)}};r.exports={codeAt:a(!1),charAt:a(!0)}},"./node_modules/core-js/internals/string-trim.js":function(r,i,n){var e=n("./node_modules/core-js/internals/require-object-coercible.js"),l=n("./node_modules/core-js/internals/to-string.js"),t=n("./node_modules/core-js/internals/whitespaces.js"),a="["+t+"]",s=RegExp("^"+a+a+"*"),u=RegExp(a+a+"*$"),h=function(m){return function(v){var y=l(e(v));return m&1&&(y=y.replace(s,"")),m&2&&(y=y.replace(u,"")),y}};r.exports={start:h(1),end:h(2),trim:h(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-integer.js"),l=Math.max,t=Math.min;r.exports=function(a,s){var u=e(a);return u<0?l(u+s,0):t(u,s)}},"./node_modules/core-js/internals/to-indexed-object.js":function(r,i,n){var e=n("./node_modules/core-js/internals/indexed-object.js"),l=n("./node_modules/core-js/internals/require-object-coercible.js");r.exports=function(t){return e(l(t))}},"./node_modules/core-js/internals/to-integer.js":function(r){var i=Math.ceil,n=Math.floor;r.exports=function(e){return isNaN(e=+e)?0:(e>0?n:i)(e)}},"./node_modules/core-js/internals/to-length.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-integer.js"),l=Math.min;r.exports=function(t){return t>0?l(e(t),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(r,i,n){var e=n("./node_modules/core-js/internals/require-object-coercible.js");r.exports=function(l){return Object(e(l))}},"./node_modules/core-js/internals/to-primitive.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js"),l=n("./node_modules/core-js/internals/is-symbol.js"),t=n("./node_modules/core-js/internals/ordinary-to-primitive.js"),a=n("./node_modules/core-js/internals/well-known-symbol.js"),s=a("toPrimitive");r.exports=function(u,h){if(!e(u)||l(u))return u;var p=u[s],m;if(p!==void 0){if(h===void 0&&(h="default"),m=p.call(u,h),!e(m)||l(m))return m;throw TypeError("Can't convert object to primitive value")}return h===void 0&&(h="number"),t(u,h)}},"./node_modules/core-js/internals/to-property-key.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-primitive.js"),l=n("./node_modules/core-js/internals/is-symbol.js");r.exports=function(t){var a=e(t,"string");return l(a)?a:String(a)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(r,i,n){var e=n("./node_modules/core-js/internals/well-known-symbol.js"),l=e("toStringTag"),t={};t[l]="z",r.exports=String(t)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-symbol.js");r.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(r){var i=0,n=Math.random();r.exports=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++i+n).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(r,i,n){var e=n("./node_modules/core-js/internals/native-symbol.js");r.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(r,i,n){var e=n("./node_modules/core-js/internals/well-known-symbol.js");i.f=e},"./node_modules/core-js/internals/well-known-symbol.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/shared.js"),t=n("./node_modules/core-js/internals/has.js"),a=n("./node_modules/core-js/internals/uid.js"),s=n("./node_modules/core-js/internals/native-symbol.js"),u=n("./node_modules/core-js/internals/use-symbol-as-uid.js"),h=l("wks"),p=e.Symbol,m=u?p:p&&p.withoutSetter||a;r.exports=function(v){return(!t(h,v)||!(s||typeof h[v]=="string"))&&(s&&t(p,v)?h[v]=p[v]:h[v]=m("Symbol."+v)),h[v]}},"./node_modules/core-js/internals/whitespaces.js":function(r){r.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(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),l=n("./node_modules/core-js/internals/fails.js"),t=n("./node_modules/core-js/internals/is-array.js"),a=n("./node_modules/core-js/internals/is-object.js"),s=n("./node_modules/core-js/internals/to-object.js"),u=n("./node_modules/core-js/internals/to-length.js"),h=n("./node_modules/core-js/internals/create-property.js"),p=n("./node_modules/core-js/internals/array-species-create.js"),m=n("./node_modules/core-js/internals/array-method-has-species-support.js"),v=n("./node_modules/core-js/internals/well-known-symbol.js"),y=n("./node_modules/core-js/internals/engine-v8-version.js"),E=v("isConcatSpreadable"),T=9007199254740991,b="Maximum allowed index exceeded",w=y>=51||!l(function(){var N=[];return N[E]=!1,N.concat()[0]!==N}),_=m("concat"),I=function(D){if(!a(D))return!1;var R=D[E];return R!==void 0?!!R:t(D)},L=!w||!_;e({target:"Array",proto:!0,forced:L},{concat:function(D){var R=s(this),k=p(R,0),M=0,U,B,j,W,V;for(U=-1,j=arguments.length;U<j;U++)if(V=U===-1?R:arguments[U],I(V)){if(W=u(V.length),M+W>T)throw TypeError(b);for(B=0;B<W;B++,M++)B in V&&h(k,M,V[B])}else{if(M>=T)throw TypeError(b);h(k,M++,V)}return k.length=M,k}})},"./node_modules/core-js/modules/es.array.iterator.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/to-indexed-object.js"),l=n("./node_modules/core-js/internals/add-to-unscopables.js"),t=n("./node_modules/core-js/internals/iterators.js"),a=n("./node_modules/core-js/internals/internal-state.js"),s=n("./node_modules/core-js/internals/define-iterator.js"),u="Array Iterator",h=a.set,p=a.getterFor(u);r.exports=s(Array,"Array",function(m,v){h(this,{type:u,target:e(m),index:0,kind:v})},function(){var m=p(this),v=m.target,y=m.kind,E=m.index++;return!v||E>=v.length?(m.target=void 0,{value:void 0,done:!0}):y=="keys"?{value:E,done:!1}:y=="values"?{value:v[E],done:!1}:{value:[E,v[E]],done:!1}},"values"),t.Arguments=t.Array,l("keys"),l("values"),l("entries")},"./node_modules/core-js/modules/es.array.join.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),l=n("./node_modules/core-js/internals/indexed-object.js"),t=n("./node_modules/core-js/internals/to-indexed-object.js"),a=n("./node_modules/core-js/internals/array-method-is-strict.js"),s=[].join,u=l!=Object,h=a("join",",");e({target:"Array",proto:!0,forced:u||!h},{join:function(m){return s.call(t(this),m===void 0?",":m)}})},"./node_modules/core-js/modules/es.array.map.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),l=n("./node_modules/core-js/internals/array-iteration.js").map,t=n("./node_modules/core-js/internals/array-method-has-species-support.js"),a=t("map");e({target:"Array",proto:!0,forced:!a},{map:function(u){return l(this,u,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),l=n("./node_modules/core-js/internals/is-object.js"),t=n("./node_modules/core-js/internals/is-array.js"),a=n("./node_modules/core-js/internals/to-absolute-index.js"),s=n("./node_modules/core-js/internals/to-length.js"),u=n("./node_modules/core-js/internals/to-indexed-object.js"),h=n("./node_modules/core-js/internals/create-property.js"),p=n("./node_modules/core-js/internals/well-known-symbol.js"),m=n("./node_modules/core-js/internals/array-method-has-species-support.js"),v=m("slice"),y=p("species"),E=[].slice,T=Math.max;e({target:"Array",proto:!0,forced:!v},{slice:function(w,_){var I=u(this),L=s(I.length),N=a(w,L),D=a(_===void 0?L:_,L),R,k,M;if(t(I)&&(R=I.constructor,typeof R=="function"&&(R===Array||t(R.prototype))?R=void 0:l(R)&&(R=R[y],R===null&&(R=void 0)),R===Array||R===void 0))return E.call(I,N,D);for(k=new(R===void 0?Array:R)(T(D-N,0)),M=0;N<D;N++,M++)N in I&&h(k,M,I[N]);return k.length=M,k}})},"./node_modules/core-js/modules/es.function.name.js":function(r,i,n){var e=n("./node_modules/core-js/internals/descriptors.js"),l=n("./node_modules/core-js/internals/object-define-property.js").f,t=Function.prototype,a=t.toString,s=/^\s*function ([^ (]*)/,u="name";e&&!(u in t)&&l(t,u,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(p){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/descriptors.js"),l=n("./node_modules/core-js/internals/global.js"),t=n("./node_modules/core-js/internals/is-forced.js"),a=n("./node_modules/core-js/internals/redefine.js"),s=n("./node_modules/core-js/internals/has.js"),u=n("./node_modules/core-js/internals/classof-raw.js"),h=n("./node_modules/core-js/internals/inherit-if-required.js"),p=n("./node_modules/core-js/internals/is-symbol.js"),m=n("./node_modules/core-js/internals/to-primitive.js"),v=n("./node_modules/core-js/internals/fails.js"),y=n("./node_modules/core-js/internals/object-create.js"),E=n("./node_modules/core-js/internals/object-get-own-property-names.js").f,T=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,b=n("./node_modules/core-js/internals/object-define-property.js").f,w=n("./node_modules/core-js/internals/string-trim.js").trim,_="Number",I=l[_],L=I.prototype,N=u(y(L))==_,D=function(j){if(p(j))throw TypeError("Cannot convert a Symbol value to a number");var W=m(j,"number"),V,z,J,Z,de,ie,ve,xe;if(typeof W=="string"&&W.length>2){if(W=w(W),V=W.charCodeAt(0),V===43||V===45){if(z=W.charCodeAt(2),z===88||z===120)return NaN}else if(V===48){switch(W.charCodeAt(1)){case 66:case 98:J=2,Z=49;break;case 79:case 111:J=8,Z=55;break;default:return+W}for(de=W.slice(2),ie=de.length,ve=0;ve<ie;ve++)if(xe=de.charCodeAt(ve),xe<48||xe>Z)return NaN;return parseInt(de,J)}}return+W};if(t(_,!I(" 0o1")||!I("0b1")||I("+0x1"))){for(var R=function(j){var W=arguments.length<1?0:j,V=this;return V instanceof R&&(N?v(function(){L.valueOf.call(V)}):u(V)!=_)?h(new I(D(W)),V,R):D(W)},k=e?E(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(","),M=0,U;k.length>M;M++)s(I,U=k[M])&&!s(R,U)&&b(R,U,T(I,U));R.prototype=L,L.constructor=R,a(l,_,R)}},"./node_modules/core-js/modules/es.object.assign.js":function(r,i,n){var e=n("./node_modules/core-js/internals/export.js"),l=n("./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(r,i,n){var e=n("./node_modules/core-js/internals/export.js"),l=n("./node_modules/core-js/internals/to-object.js"),t=n("./node_modules/core-js/internals/object-keys.js"),a=n("./node_modules/core-js/internals/fails.js"),s=a(function(){t(1)});e({target:"Object",stat:!0,forced:s},{keys:function(h){return t(l(h))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-string-tag-support.js"),l=n("./node_modules/core-js/internals/redefine.js"),t=n("./node_modules/core-js/internals/object-to-string.js");e||l(Object.prototype,"toString",t,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/redefine.js"),l=n("./node_modules/core-js/internals/an-object.js"),t=n("./node_modules/core-js/internals/to-string.js"),a=n("./node_modules/core-js/internals/fails.js"),s=n("./node_modules/core-js/internals/regexp-flags.js"),u="toString",h=RegExp.prototype,p=h[u],m=a(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),v=p.name!=u;(m||v)&&e(RegExp.prototype,u,function(){var E=l(this),T=t(E.source),b=E.flags,w=t(b===void 0&&E instanceof RegExp&&!("flags"in h)?s.call(E):b);return"/"+T+"/"+w},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/string-multibyte.js").charAt,l=n("./node_modules/core-js/internals/to-string.js"),t=n("./node_modules/core-js/internals/internal-state.js"),a=n("./node_modules/core-js/internals/define-iterator.js"),s="String Iterator",u=t.set,h=t.getterFor(s);a(String,"String",function(p){u(this,{type:s,string:l(p),index:0})},function(){var m=h(this),v=m.string,y=m.index,E;return y>=v.length?{value:void 0,done:!0}:(E=e(v,y),m.index+=E.length,{value:E,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),l=n("./node_modules/core-js/internals/create-html.js"),t=n("./node_modules/core-js/internals/string-html-forced.js");e({target:"String",proto:!0,forced:t("link")},{link:function(s){return l(this,"a","href",s)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),l=n("./node_modules/core-js/internals/descriptors.js"),t=n("./node_modules/core-js/internals/global.js"),a=n("./node_modules/core-js/internals/has.js"),s=n("./node_modules/core-js/internals/is-object.js"),u=n("./node_modules/core-js/internals/object-define-property.js").f,h=n("./node_modules/core-js/internals/copy-constructor-properties.js"),p=t.Symbol;if(l&&typeof p=="function"&&(!("description"in p.prototype)||p().description!==void 0)){var m={},v=function(){var _=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),I=this instanceof v?new p(_):_===void 0?p():p(_);return _===""&&(m[I]=!0),I};h(v,p);var y=v.prototype=p.prototype;y.constructor=v;var E=y.toString,T=String(p("test"))=="Symbol(test)",b=/^Symbol\((.*)\)[^)]+$/;u(y,"description",{configurable:!0,get:function(){var _=s(this)?this.valueOf():this,I=E.call(_);if(a(m,_))return"";var L=T?I.slice(7,-1):I.replace(b,"$1");return L===""?void 0:L}}),e({global:!0,forced:!0},{Symbol:v})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(r,i,n){var e=n("./node_modules/core-js/internals/define-well-known-symbol.js");e("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),l=n("./node_modules/core-js/internals/global.js"),t=n("./node_modules/core-js/internals/get-built-in.js"),a=n("./node_modules/core-js/internals/is-pure.js"),s=n("./node_modules/core-js/internals/descriptors.js"),u=n("./node_modules/core-js/internals/native-symbol.js"),h=n("./node_modules/core-js/internals/fails.js"),p=n("./node_modules/core-js/internals/has.js"),m=n("./node_modules/core-js/internals/is-array.js"),v=n("./node_modules/core-js/internals/is-object.js"),y=n("./node_modules/core-js/internals/is-symbol.js"),E=n("./node_modules/core-js/internals/an-object.js"),T=n("./node_modules/core-js/internals/to-object.js"),b=n("./node_modules/core-js/internals/to-indexed-object.js"),w=n("./node_modules/core-js/internals/to-property-key.js"),_=n("./node_modules/core-js/internals/to-string.js"),I=n("./node_modules/core-js/internals/create-property-descriptor.js"),L=n("./node_modules/core-js/internals/object-create.js"),N=n("./node_modules/core-js/internals/object-keys.js"),D=n("./node_modules/core-js/internals/object-get-own-property-names.js"),R=n("./node_modules/core-js/internals/object-get-own-property-names-external.js"),k=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),M=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),U=n("./node_modules/core-js/internals/object-define-property.js"),B=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),j=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),W=n("./node_modules/core-js/internals/redefine.js"),V=n("./node_modules/core-js/internals/shared.js"),z=n("./node_modules/core-js/internals/shared-key.js"),J=n("./node_modules/core-js/internals/hidden-keys.js"),Z=n("./node_modules/core-js/internals/uid.js"),de=n("./node_modules/core-js/internals/well-known-symbol.js"),ie=n("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),ve=n("./node_modules/core-js/internals/define-well-known-symbol.js"),xe=n("./node_modules/core-js/internals/set-to-string-tag.js"),_e=n("./node_modules/core-js/internals/internal-state.js"),Ue=n("./node_modules/core-js/internals/array-iteration.js").forEach,fe=z("hidden"),ke="Symbol",se="prototype",te=de("toPrimitive"),Ve=_e.set,ae=_e.getterFor(ke),Q=Object[se],G=l.Symbol,Y=t("JSON","stringify"),me=M.f,ue=U.f,Ce=R.f,Ie=B.f,ce=V("symbols"),Ae=V("op-symbols"),Te=V("string-to-symbol-registry"),Ge=V("symbol-to-string-registry"),gt=V("wks"),qe=l.QObject,Le=!qe||!qe[se]||!qe[se].findChild,Ot=s&&h(function(){return L(ue({},"a",{get:function(){return ue(this,"a",{value:7}).a}})).a!=7})?function(Be,Ee,ee){var lt=me(Q,Ee);lt&&delete Q[Ee],ue(Be,Ee,ee),lt&&Be!==Q&&ue(Q,Ee,lt)}:ue,$e=function(Ee,ee){var lt=ce[Ee]=L(G[se]);return Ve(lt,{type:ke,tag:Ee,description:ee}),s||(lt.description=ee),lt},xt=function(Ee,ee,lt){Ee===Q&&xt(Ae,ee,lt),E(Ee);var Ct=w(ee);return E(lt),p(ce,Ct)?(lt.enumerable?(p(Ee,fe)&&Ee[fe][Ct]&&(Ee[fe][Ct]=!1),lt=L(lt,{enumerable:I(0,!1)})):(p(Ee,fe)||ue(Ee,fe,I(1,{})),Ee[fe][Ct]=!0),Ot(Ee,Ct,lt)):ue(Ee,Ct,lt)},Ht=function(Ee,ee){E(Ee);var lt=b(ee),Ct=N(lt).concat(oe(lt));return Ue(Ct,function(dt){(!s||Mt.call(lt,dt))&&xt(Ee,dt,lt[dt])}),Ee},tr=function(Ee,ee){return ee===void 0?L(Ee):Ht(L(Ee),ee)},Mt=function(Ee){var ee=w(Ee),lt=Ie.call(this,ee);return this===Q&&p(ce,ee)&&!p(Ae,ee)?!1:lt||!p(this,ee)||!p(ce,ee)||p(this,fe)&&this[fe][ee]?lt:!0},Tt=function(Ee,ee){var lt=b(Ee),Ct=w(ee);if(lt===Q&&p(ce,Ct)&&!p(Ae,Ct))return;var dt=me(lt,Ct);return dt&&p(ce,Ct)&&!(p(lt,fe)&<[fe][Ct])&&(dt.enumerable=!0),dt},Xe=function(Ee){var ee=Ce(b(Ee)),lt=[];return Ue(ee,function(Ct){!p(ce,Ct)&&!p(J,Ct)&<.push(Ct)}),lt},oe=function(Ee){var ee=Ee===Q,lt=Ce(ee?Ae:b(Ee)),Ct=[];return Ue(lt,function(dt){p(ce,dt)&&(!ee||p(Q,dt))&&Ct.push(ce[dt])}),Ct};if(u||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var Ee=!arguments.length||arguments[0]===void 0?void 0:_(arguments[0]),ee=Z(Ee),lt=function Ct(dt){this===Q&&Ct.call(Ae,dt),p(this,fe)&&p(this[fe],ee)&&(this[fe][ee]=!1),Ot(this,ee,I(1,dt))};return s&&Le&&Ot(Q,ee,{configurable:!0,set:lt}),$e(ee,Ee)},W(G[se],"toString",function(){return ae(this).tag}),W(G,"withoutSetter",function(Be){return $e(Z(Be),Be)}),B.f=Mt,U.f=xt,M.f=Tt,D.f=R.f=Xe,k.f=oe,ie.f=function(Be){return $e(de(Be),Be)},s&&(ue(G[se],"description",{configurable:!0,get:function(){return ae(this).description}}),a||W(Q,"propertyIsEnumerable",Mt,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:G}),Ue(N(gt),function(Be){ve(Be)}),e({target:ke,stat:!0,forced:!u},{for:function(Ee){var ee=_(Ee);if(p(Te,ee))return Te[ee];var lt=G(ee);return Te[ee]=lt,Ge[lt]=ee,lt},keyFor:function(Ee){if(!y(Ee))throw TypeError(Ee+" is not a symbol");if(p(Ge,Ee))return Ge[Ee]},useSetter:function(){Le=!0},useSimple:function(){Le=!1}}),e({target:"Object",stat:!0,forced:!u,sham:!s},{create:tr,defineProperty:xt,defineProperties:Ht,getOwnPropertyDescriptor:Tt}),e({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:Xe,getOwnPropertySymbols:oe}),e({target:"Object",stat:!0,forced:h(function(){k.f(1)})},{getOwnPropertySymbols:function(Ee){return k.f(T(Ee))}}),Y){var X=!u||h(function(){var Be=G();return Y([Be])!="[null]"||Y({a:Be})!="{}"||Y(Object(Be))!="{}"});e({target:"JSON",stat:!0,forced:X},{stringify:function(Ee,ee,lt){for(var Ct=[Ee],dt=1,_t;arguments.length>dt;)Ct.push(arguments[dt++]);return _t=ee,!v(ee)&&Ee===void 0||y(Ee)?void 0:(m(ee)||(ee=function($r,nr){if(typeof _t=="function"&&(nr=_t.call(this,$r,nr)),!y(nr))return nr}),Ct[1]=ee,Y.apply(null,Ct))}})}G[se][te]||j(G[se],te,G[se].valueOf),xe(G,ke),J[fe]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/dom-iterables.js"),t=n("./node_modules/core-js/internals/array-for-each.js"),a=n("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var s in l){var u=e[s],h=u&&u.prototype;if(h&&h.forEach!==t)try{a(h,"forEach",t)}catch(p){h.forEach=t}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/dom-iterables.js"),t=n("./node_modules/core-js/modules/es.array.iterator.js"),a=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),s=n("./node_modules/core-js/internals/well-known-symbol.js"),u=s("iterator"),h=s("toStringTag"),p=t.values;for(var m in l){var v=e[m],y=v&&v.prototype;if(y){if(y[u]!==p)try{a(y,u,p)}catch(T){y[u]=p}if(y[h]||a(y,h,m),l[m]){for(var E in t)if(y[E]!==t[E])try{a(y,E,t[E])}catch(T){y[E]=t[E]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(r){/*!
|
|
|
* @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(i,n){r.exports=n()})(this,function(){"use strict";function i(qe){var Le=typeof qe;return qe!==null&&(Le==="object"||Le==="function")}function n(qe){return typeof qe=="function"}var e=void 0;Array.isArray?e=Array.isArray:e=function(Le){return Object.prototype.toString.call(Le)==="[object Array]"};var l=e,t=0,a=void 0,s=void 0,u=function(Le,Ot){N[t]=Le,N[t+1]=Ot,t+=2,t===2&&(s?s(D):k())};function h(qe){s=qe}function p(qe){u=qe}var m=typeof window!="undefined"?window:void 0,v=m||{},y=v.MutationObserver||v.WebKitMutationObserver,E=typeof self=="undefined"&&typeof x!="undefined"&&{}.toString.call(x)==="[object process]",T=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function b(){return function(){return x.nextTick(D)}}function w(){return typeof a!="undefined"?function(){a(D)}:L()}function _(){var qe=0,Le=new y(D),Ot=document.createTextNode("");return Le.observe(Ot,{characterData:!0}),function(){Ot.data=qe=++qe%2}}function I(){var qe=new MessageChannel;return qe.port1.onmessage=D,function(){return qe.port2.postMessage(0)}}function L(){var qe=setTimeout;return function(){return qe(D,1)}}var N=new Array(1e3);function D(){for(var qe=0;qe<t;qe+=2){var Le=N[qe],Ot=N[qe+1];Le(Ot),N[qe]=void 0,N[qe+1]=void 0}t=0}function R(){try{var qe=Function("return this")().require("vertx");return a=qe.runOnLoop||qe.runOnContext,w()}catch(Le){return L()}}var k=void 0;E?k=b():y?k=_():T?k=I():m===void 0&&!0?k=R():k=L();function M(qe,Le){var Ot=this,$e=new this.constructor(j);$e[B]===void 0&&Y($e);var xt=Ot._state;if(xt){var Ht=arguments[xt-1];u(function(){return Ve(xt,$e,Ht,Ot._result)})}else se(Ot,$e,qe,Le);return $e}function U(qe){var Le=this;if(qe&&typeof qe=="object"&&qe.constructor===Le)return qe;var Ot=new Le(j);return _e(Ot,qe),Ot}var B=Math.random().toString(36).substring(2);function j(){}var W=void 0,V=1,z=2;function J(){return new TypeError("You cannot resolve a promise with itself")}function Z(){return new TypeError("A promises callback cannot return that same promise.")}function de(qe,Le,Ot,$e){try{qe.call(Le,Ot,$e)}catch(xt){return xt}}function ie(qe,Le,Ot){u(function($e){var xt=!1,Ht=de(Ot,Le,function(tr){if(xt)return;xt=!0,Le!==tr?_e($e,tr):fe($e,tr)},function(tr){if(xt)return;xt=!0,ke($e,tr)},"Settle: "+($e._label||" unknown promise"));!xt&&Ht&&(xt=!0,ke($e,Ht))},qe)}function ve(qe,Le){Le._state===V?fe(qe,Le._result):Le._state===z?ke(qe,Le._result):se(Le,void 0,function(Ot){return _e(qe,Ot)},function(Ot){return ke(qe,Ot)})}function xe(qe,Le,Ot){Le.constructor===qe.constructor&&Ot===M&&Le.constructor.resolve===U?ve(qe,Le):Ot===void 0?fe(qe,Le):n(Ot)?ie(qe,Le,Ot):fe(qe,Le)}function _e(qe,Le){if(qe===Le)ke(qe,J());else if(i(Le)){var Ot=void 0;try{Ot=Le.then}catch($e){ke(qe,$e);return}xe(qe,Le,Ot)}else fe(qe,Le)}function Ue(qe){qe._onerror&&qe._onerror(qe._result),te(qe)}function fe(qe,Le){if(qe._state!==W)return;qe._result=Le,qe._state=V,qe._subscribers.length!==0&&u(te,qe)}function ke(qe,Le){if(qe._state!==W)return;qe._state=z,qe._result=Le,u(Ue,qe)}function se(qe,Le,Ot,$e){var xt=qe._subscribers,Ht=xt.length;qe._onerror=null,xt[Ht]=Le,xt[Ht+V]=Ot,xt[Ht+z]=$e,Ht===0&&qe._state&&u(te,qe)}function te(qe){var Le=qe._subscribers,Ot=qe._state;if(Le.length===0)return;for(var $e=void 0,xt=void 0,Ht=qe._result,tr=0;tr<Le.length;tr+=3)$e=Le[tr],xt=Le[tr+Ot],$e?Ve(Ot,$e,xt,Ht):xt(Ht);qe._subscribers.length=0}function Ve(qe,Le,Ot,$e){var xt=n(Ot),Ht=void 0,tr=void 0,Mt=!0;if(xt){try{Ht=Ot($e)}catch(Tt){Mt=!1,tr=Tt}if(Le===Ht){ke(Le,Z());return}}else Ht=$e;Le._state!==W||(xt&&Mt?_e(Le,Ht):Mt===!1?ke(Le,tr):qe===V?fe(Le,Ht):qe===z&&ke(Le,Ht))}function ae(qe,Le){try{Le(function($e){_e(qe,$e)},function($e){ke(qe,$e)})}catch(Ot){ke(qe,Ot)}}var Q=0;function G(){return Q++}function Y(qe){qe[B]=Q++,qe._state=void 0,qe._result=void 0,qe._subscribers=[]}function me(){return new Error("Array Methods must be provided an Array")}var ue=function(){function qe(Le,Ot){this._instanceConstructor=Le,this.promise=new Le(j),this.promise[B]||Y(this.promise),l(Ot)?(this.length=Ot.length,this._remaining=Ot.length,this._result=new Array(this.length),this.length===0?fe(this.promise,this._result):(this.length=this.length||0,this._enumerate(Ot),this._remaining===0&&fe(this.promise,this._result))):ke(this.promise,me())}return qe.prototype._enumerate=function(Ot){for(var $e=0;this._state===W&&$e<Ot.length;$e++)this._eachEntry(Ot[$e],$e)},qe.prototype._eachEntry=function(Ot,$e){var xt=this._instanceConstructor,Ht=xt.resolve;if(Ht===U){var tr=void 0,Mt=void 0,Tt=!1;try{tr=Ot.then}catch(oe){Tt=!0,Mt=oe}if(tr===M&&Ot._state!==W)this._settledAt(Ot._state,$e,Ot._result);else if(typeof tr!="function")this._remaining--,this._result[$e]=Ot;else if(xt===Ge){var Xe=new xt(j);Tt?ke(Xe,Mt):xe(Xe,Ot,tr),this._willSettleAt(Xe,$e)}else this._willSettleAt(new xt(function(oe){return oe(Ot)}),$e)}else this._willSettleAt(Ht(Ot),$e)},qe.prototype._settledAt=function(Ot,$e,xt){var Ht=this.promise;Ht._state===W&&(this._remaining--,Ot===z?ke(Ht,xt):this._result[$e]=xt),this._remaining===0&&fe(Ht,this._result)},qe.prototype._willSettleAt=function(Ot,$e){var xt=this;se(Ot,void 0,function(Ht){return xt._settledAt(V,$e,Ht)},function(Ht){return xt._settledAt(z,$e,Ht)})},qe}();function Ce(qe){return new ue(this,qe).promise}function Ie(qe){var Le=this;return l(qe)?new Le(function(Ot,$e){for(var xt=qe.length,Ht=0;Ht<xt;Ht++)Le.resolve(qe[Ht]).then(Ot,$e)}):new Le(function(Ot,$e){return $e(new TypeError("You must pass an array to race."))})}function ce(qe){var Le=this,Ot=new Le(j);return ke(Ot,qe),Ot}function Ae(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Te(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Ge=function(){function qe(Le){this[B]=G(),this._result=this._state=void 0,this._subscribers=[],j!==Le&&(typeof Le!="function"&&Ae(),this instanceof qe?ae(this,Le):Te())}return qe.prototype.catch=function(Ot){return this.then(null,Ot)},qe.prototype.finally=function(Ot){var $e=this,xt=$e.constructor;return n(Ot)?$e.then(function(Ht){return xt.resolve(Ot()).then(function(){return Ht})},function(Ht){return xt.resolve(Ot()).then(function(){throw Ht})}):$e.then(Ot,Ot)},qe}();Ge.prototype.then=M,Ge.all=Ce,Ge.race=Ie,Ge.resolve=U,Ge.reject=ce,Ge._setScheduler=h,Ge._setAsap=p,Ge._asap=u;function gt(){var qe=void 0;if(typeof O!="undefined")qe=O;else if(typeof self!="undefined")qe=self;else try{qe=Function("return this")()}catch($e){throw new Error("polyfill failed because global object is unavailable in this environment")}var Le=qe.Promise;if(Le){var Ot=null;try{Ot=Object.prototype.toString.call(Le.resolve())}catch($e){}if(Ot==="[object Promise]"&&!Le.cast)return}qe.Promise=Ge}return Ge.polyfill=gt,Ge.Promise=Ge,Ge})},html2canvas:function(r){"use strict";r.exports=A},jspdf:function(r){"use strict";r.exports=C}},g={};function f(o){var r=g[o];if(r!==void 0)return r.exports;var i=g[o]={exports:{}};return S[o].call(i.exports,i,i.exports,f),i.exports}!function(){f.n=function(o){var r=o&&o.__esModule?function(){return o.default}:function(){return o};return f.d(r,{a:r}),r}}(),!function(){f.d=function(o,r){for(var i in r)f.o(r,i)&&!f.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:r[i]})}}(),!function(){f.o=function(o,r){return Object.prototype.hasOwnProperty.call(o,r)}}(),!function(){f.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}}();var c={};return!function(){"use strict";/*!**********************!*\
|
|
|
!*** ./src/index.js ***!
|
|
|
\**********************/f.r(c);var o=f("./src/worker.js"),r=f("./src/plugin/jspdf-plugin.js"),i=f("./src/plugin/pagebreaks.js"),n=f("./src/plugin/hyperlinks.js"),e=function l(t,a){var s=new l.Worker(a);return t?s.from(t).save():s};e.Worker=o.default,c.default=e}(),c=c.default,c}()})}).call(this,d("yLpj"),d("Q2Ig"))},"1q3G":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=O;function O(){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(H,F,d){var O=d("MBQ8"),x=O.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,x.superApply(this,"getInitialData",arguments)}}),C=x;H.exports=C},"1u/T":function(H,F,d){var O=d("ProS"),x={type:"selectDataRange",event:"dataRangeSelected",update:"update"};O.registerAction(x,function(C,A){A.eachComponent({mainType:"visualMap",query:C},function(S){S.setSelected(C.selected)})})},"1uat":function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("MlIO"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.Hasher,S=x.x64,g=S.Word,f=S.WordArray,c=x.algo;function o(){return g.create.apply(g,arguments)}var r=[o(1116352408,3609767458),o(1899447441,602891725),o(3049323471,3964484399),o(3921009573,2173295548),o(961987163,4081628472),o(1508970993,3053834265),o(2453635748,2937671579),o(2870763221,3664609560),o(3624381080,2734883394),o(310598401,1164996542),o(607225278,1323610764),o(1426881987,3590304994),o(1925078388,4068182383),o(2162078206,991336113),o(2614888103,633803317),o(3248222580,3479774868),o(3835390401,2666613458),o(4022224774,944711139),o(264347078,2341262773),o(604807628,2007800933),o(770255983,1495990901),o(1249150122,1856431235),o(1555081692,3175218132),o(1996064986,2198950837),o(2554220882,3999719339),o(2821834349,766784016),o(2952996808,2566594879),o(3210313671,3203337956),o(3336571891,1034457026),o(3584528711,2466948901),o(113926993,3758326383),o(338241895,168717936),o(666307205,1188179964),o(773529912,1546045734),o(1294757372,1522805485),o(1396182291,2643833823),o(1695183700,2343527390),o(1986661051,1014477480),o(2177026350,1206759142),o(2456956037,344077627),o(2730485921,1290863460),o(2820302411,3158454273),o(3259730800,3505952657),o(3345764771,106217008),o(3516065817,3606008344),o(3600352804,1432725776),o(4094571909,1467031594),o(275423344,851169720),o(430227734,3100823752),o(506948616,1363258195),o(659060556,3750685593),o(883997877,3785050280),o(958139571,3318307427),o(1322822218,3812723403),o(1537002063,2003034995),o(1747873779,3602036899),o(1955562222,1575990012),o(2024104815,1125592928),o(2227730452,2716904306),o(2361852424,442776044),o(2428436474,593698344),o(2756734187,3733110249),o(3204031479,2999351573),o(3329325298,3815920427),o(3391569614,3928383900),o(3515267271,566280711),o(3940187606,3454069534),o(4118630271,4000239992),o(116418474,1914138554),o(174292421,2731055270),o(289380356,3203993006),o(460393269,320620315),o(685471733,587496836),o(852142971,1086792851),o(1017036298,365543100),o(1126000580,2618297676),o(1288033470,3409855158),o(1501505948,4234509866),o(1607167915,987167468),o(1816402316,1246189591)],i=[];(function(){for(var e=0;e<80;e++)i[e]=o()})();var n=c.SHA512=A.extend({_doReset:function(){this._hash=new f.init([new g.init(1779033703,4089235720),new g.init(3144134277,2227873595),new g.init(1013904242,4271175723),new g.init(2773480762,1595750129),new g.init(1359893119,2917565137),new g.init(2600822924,725511199),new g.init(528734635,4215389547),new g.init(1541459225,327033209)])},_doProcessBlock:function(l,t){for(var a=this._hash.words,s=a[0],u=a[1],h=a[2],p=a[3],m=a[4],v=a[5],y=a[6],E=a[7],T=s.high,b=s.low,w=u.high,_=u.low,I=h.high,L=h.low,N=p.high,D=p.low,R=m.high,k=m.low,M=v.high,U=v.low,B=y.high,j=y.low,W=E.high,V=E.low,z=T,J=b,Z=w,de=_,ie=I,ve=L,xe=N,_e=D,Ue=R,fe=k,ke=M,se=U,te=B,Ve=j,ae=W,Q=V,G=0;G<80;G++){var Y,me,ue=i[G];if(G<16)me=ue.high=l[t+G*2]|0,Y=ue.low=l[t+G*2+1]|0;else{var Ce=i[G-15],Ie=Ce.high,ce=Ce.low,Ae=(Ie>>>1|ce<<31)^(Ie>>>8|ce<<24)^Ie>>>7,Te=(ce>>>1|Ie<<31)^(ce>>>8|Ie<<24)^(ce>>>7|Ie<<25),Ge=i[G-2],gt=Ge.high,qe=Ge.low,Le=(gt>>>19|qe<<13)^(gt<<3|qe>>>29)^gt>>>6,Ot=(qe>>>19|gt<<13)^(qe<<3|gt>>>29)^(qe>>>6|gt<<26),$e=i[G-7],xt=$e.high,Ht=$e.low,tr=i[G-16],Mt=tr.high,Tt=tr.low;Y=Te+Ht,me=Ae+xt+(Y>>>0<Te>>>0?1:0),Y=Y+Ot,me=me+Le+(Y>>>0<Ot>>>0?1:0),Y=Y+Tt,me=me+Mt+(Y>>>0<Tt>>>0?1:0),ue.high=me,ue.low=Y}var Xe=Ue&ke^~Ue&te,oe=fe&se^~fe&Ve,X=z&Z^z&ie^Z&ie,Be=J&de^J&ve^de&ve,Ee=(z>>>28|J<<4)^(z<<30|J>>>2)^(z<<25|J>>>7),ee=(J>>>28|z<<4)^(J<<30|z>>>2)^(J<<25|z>>>7),lt=(Ue>>>14|fe<<18)^(Ue>>>18|fe<<14)^(Ue<<23|fe>>>9),Ct=(fe>>>14|Ue<<18)^(fe>>>18|Ue<<14)^(fe<<23|Ue>>>9),dt=r[G],_t=dt.high,ir=dt.low,$r=Q+Ct,nr=ae+lt+($r>>>0<Q>>>0?1:0),$r=$r+oe,nr=nr+Xe+($r>>>0<oe>>>0?1:0),$r=$r+ir,nr=nr+_t+($r>>>0<ir>>>0?1:0),$r=$r+Y,nr=nr+me+($r>>>0<Y>>>0?1:0),lr=ee+Be,zt=Ee+X+(lr>>>0<ee>>>0?1:0);ae=te,Q=Ve,te=ke,Ve=se,ke=Ue,se=fe,fe=_e+$r|0,Ue=xe+nr+(fe>>>0<_e>>>0?1:0)|0,xe=ie,_e=ve,ie=Z,ve=de,Z=z,de=J,J=$r+lr|0,z=nr+zt+(J>>>0<$r>>>0?1:0)|0}b=s.low=b+J,s.high=T+z+(b>>>0<J>>>0?1:0),_=u.low=_+de,u.high=w+Z+(_>>>0<de>>>0?1:0),L=h.low=L+ve,h.high=I+ie+(L>>>0<ve>>>0?1:0),D=p.low=D+_e,p.high=N+xe+(D>>>0<_e>>>0?1:0),k=m.low=k+fe,m.high=R+Ue+(k>>>0<fe>>>0?1:0),U=v.low=U+se,v.high=M+ke+(U>>>0<se>>>0?1:0),j=y.low=j+Ve,y.high=B+te+(j>>>0<Ve>>>0?1:0),V=E.low=V+Q,E.high=W+ae+(V>>>0<Q>>>0?1:0)},_doFinalize:function(){var l=this._data,t=l.words,a=this._nDataBytes*8,s=l.sigBytes*8;t[s>>>5]|=128<<24-s%32,t[(s+128>>>10<<5)+30]=Math.floor(a/4294967296),t[(s+128>>>10<<5)+31]=a,l.sigBytes=t.length*4,this._process();var u=this._hash.toX32();return u},clone:function(){var l=A.clone.call(this);return l._hash=this._hash.clone(),l},blockSize:1024/32});x.SHA512=A._createHelper(n),x.HmacSHA512=A._createHmacHelper(n)}(),O.SHA512})},"1vzs":function(H,F,d){"use strict";d.d(F,"a",function(){return t});var O=d("q1tI"),x=d.n(O),C=d("HQEm"),A=d.n(C),S=d("gZBC"),g=d.n(S),f=d("NAnI"),c=d.n(f),o=d("V/uB"),r=d.n(o),i=d("kbBi"),n=d.n(i),e=d("w6Tc"),l=d.n(e);function t(a){var s=a.suffixIcon,u=a.clearIcon,h=a.menuItemSelectedIcon,p=a.removeIcon,m=a.loading,v=a.multiple,y=a.prefixCls,E=u;u||(E=O.createElement(n.a,null));var T=null;if(s!==void 0)T=s;else if(m)T=O.createElement(g.a,{spin:!0});else{var b="".concat(y,"-suffix");T=function(L){var N=L.open,D=L.showSearch;return N&&D?O.createElement(l.a,{className:b}):O.createElement(A.a,{className:b})}}var w=null;h!==void 0?w=h:v?w=O.createElement(c.a,null):w=null;var _=null;return p!==void 0?_=p:_=O.createElement(r.a,null),{clearIcon:E,suffixIcon:T,itemIcon:w,removeIcon:_}}},"1xaR":function(H,F,d){var O=d("ProS"),x=d("bYtY");d("qgGe"),d("NA0q"),d("RPvy");var C=d("mOdp"),A=d("y3NT"),S=d("0/Rx");O.registerVisual(x.curry(C,"sunburst")),O.registerLayout(x.curry(A,"sunburst")),O.registerProcessor(x.curry(S,"sunburst"))},"24YM":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.SensorTabIndex=F.SensorClassName=F.SizeSensorId=void 0;var O="size-sensor-id";F.SizeSensorId=O;var x="size-sensor-object";F.SensorClassName=x;var C="-1";F.SensorTabIndex=C},"2548":function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("6GrX"),A=d("IUWy"),S=d("IwbS"),g=d("Qxkt"),f=d("gPAo"),c=d("eRkO"),o=O.extendComponentView({type:"toolbox",render:function(i,n,e,l){var t=this.group;if(t.removeAll(),!i.get("show"))return;var a=+i.get("itemSize"),s=i.get("feature")||{},u=this._features||(this._features={}),h=[];x.each(s,function(v,y){h.push(y)}),new f(this._featureNames||[],h).add(p).update(p).remove(x.curry(p,null)).execute(),this._featureNames=h;function p(v,y){var E=h[v],T=h[y],b=s[E],w=new g(b,i,i.ecModel),_;if(l&&l.newTitle!=null&&l.featureName===E&&(b.title=l.newTitle),E&&!T){if(r(E))_={model:w,onclick:w.option.onclick,featureName:E};else{var I=A.get(E);if(!I)return;_=new I(w,n,e)}u[E]=_}else{if(_=u[T],!_)return;_.model=w,_.ecModel=n,_.api=e}if(!E&&T){_.dispose&&_.dispose(n,e);return}if(!w.get("show")||_.unusable){_.remove&&_.remove(n,e);return}m(w,_,E),w.setIconStatus=function(L,N){var D=this.option,R=this.iconPaths;D.iconStatus=D.iconStatus||{},D.iconStatus[L]=N,R[L]&&R[L].trigger(N)},_.render&&_.render(w,n,e,l)}function m(v,y,E){var T=v.getModel("iconStyle"),b=v.getModel("emphasis.iconStyle"),w=y.getIcons?y.getIcons():v.get("icon"),_=v.get("title")||{};if(typeof w=="string"){var I=w,L=_;w={},_={},w[E]=I,_[E]=L}var N=v.iconPaths={};x.each(w,function(D,R){var k=S.createIcon(D,{},{x:-a/2,y:-a/2,width:a,height:a});k.setStyle(T.getItemStyle()),k.hoverStyle=b.getItemStyle(),k.setStyle({text:_[R],textAlign:b.get("textAlign"),textBorderRadius:b.get("textBorderRadius"),textPadding:b.get("textPadding"),textFill:null});var M=i.getModel("tooltip");M&&M.get("show")&&k.attr("tooltip",x.extend({content:_[R],formatter:M.get("formatter",!0)||function(){return _[R]},formatterParams:{componentType:"toolbox",name:R,title:_[R],$vars:["name","title"]},position:M.get("position",!0)||"bottom"},M.option)),S.setHoverStyle(k),i.get("showTitle")&&(k.__title=_[R],k.on("mouseover",function(){var U=b.getItemStyle(),B=i.get("orient")==="vertical"?i.get("right")==null?"right":"left":i.get("bottom")==null?"bottom":"top";k.setStyle({textFill:b.get("textFill")||U.fill||U.stroke||"#000",textBackgroundColor:b.get("textBackgroundColor"),textPosition:b.get("textPosition")||B})}).on("mouseout",function(){k.setStyle({textFill:null,textBackgroundColor:null})})),k.trigger(v.get("iconStatus."+R)||"normal"),t.add(k),k.on("click",x.bind(y.onclick,y,n,e,R)),N[R]=k})}c.layout(t,i,e),t.add(c.makeBackground(t.getBoundingRect(),i)),t.eachChild(function(v){var y=v.__title,E=v.hoverStyle;if(E&&y){var T=C.getBoundingRect(y,C.makeFont(E)),b=v.position[0]+t.position[0],w=v.position[1]+t.position[1]+a,_=!1;w+T.height>e.getHeight()&&(E.textPosition="top",_=!0);var I=_?-5-T.height:a+8;b+T.width/2>e.getWidth()?(E.textPosition=["100%",I],E.textAlign="right"):b-T.width/2<0&&(E.textPosition=[0,I],E.textAlign="left")}})},updateView:function(i,n,e,l){x.each(this._features,function(t){t.updateView&&t.updateView(t.model,n,e,l)})},remove:function(i,n){x.each(this._features,function(e){e.remove&&e.remove(i,n)}),this.group.removeAll()},dispose:function(i,n){x.each(this._features,function(e){e.dispose&&e.dispose(i,n)})}});function r(i){return i.indexOf("my")===0}H.exports=o},"2B6p":function(H,F){function d(O,x,C){var A=O.getZoom(),S=O.getCenter(),g=x.zoom,f=O.dataToPoint(S);if(x.dx!=null&&x.dy!=null){f[0]-=x.dx,f[1]-=x.dy;var S=O.pointToData(f);O.setCenter(S)}if(g!=null){if(C){var c=C.min||0,o=C.max||Infinity;g=Math.max(Math.min(A*g,o),c)/A}O.scale[0]*=g,O.scale[1]*=g;var r=O.position,i=(x.originX-r[0])*(g-1),n=(x.originY-r[1])*(g-1);r[0]-=i,r[1]-=n,O.updateTransform();var S=O.pointToData(f);O.setCenter(S),O.setZoom(g*A)}return{center:O.getCenter(),zoom:O.getZoom()}}F.updateCenterAndZoom=d},"2BaD":function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="CloseCircleOutlined";var f=F.a=x.forwardRef(g)},"2DNl":function(H,F,d){var O=d("IMiH"),x=d("loD1"),C=d("59Ip"),A=d("aKvl"),S=d("n1HI"),g=d("hX1E"),f=g.normalizeRadian,c=d("Sj9i"),o=d("hyiK"),r=O.CMD,i=Math.PI*2,n=1e-4;function e(y,E){return Math.abs(y-E)<n}var l=[-1,-1,-1],t=[-1,-1];function a(){var y=t[0];t[0]=t[1],t[1]=y}function s(y,E,T,b,w,_,I,L,N,D){if(D>E&&D>b&&D>_&&D>L||D<E&&D<b&&D<_&&D<L)return 0;var R=c.cubicRootAt(E,b,_,L,D,l);if(R===0)return 0;for(var k=0,M=-1,U,B,j=0;j<R;j++){var W=l[j],V=W===0||W===1?.5:1,z=c.cubicAt(y,T,w,I,W);if(z<N)continue;M<0&&(M=c.cubicExtrema(E,b,_,L,t),t[1]<t[0]&&M>1&&a(),U=c.cubicAt(E,b,_,L,t[0]),M>1&&(B=c.cubicAt(E,b,_,L,t[1]))),M===2?W<t[0]?k+=U<E?V:-V:W<t[1]?k+=B<U?V:-V:k+=L<B?V:-V:W<t[0]?k+=U<E?V:-V:k+=L<U?V:-V}return k}function u(y,E,T,b,w,_,I,L){if(L>E&&L>b&&L>_||L<E&&L<b&&L<_)return 0;var N=c.quadraticRootAt(E,b,_,L,l);if(N===0)return 0;var D=c.quadraticExtremum(E,b,_);if(D>=0&&D<=1){for(var R=0,k=c.quadraticAt(E,b,_,D),M=0;M<N;M++){var U=l[M]===0||l[M]===1?.5:1,B=c.quadraticAt(y,T,w,l[M]);if(B<I)continue;l[M]<D?R+=k<E?U:-U:R+=_<k?U:-U}return R}else{var U=l[0]===0||l[0]===1?.5:1,B=c.quadraticAt(y,T,w,l[0]);return B<I?0:_<E?U:-U}}function h(y,E,T,b,w,_,I,L){if(L-=E,L>T||L<-T)return 0;var N=Math.sqrt(T*T-L*L);l[0]=-N,l[1]=N;var D=Math.abs(b-w);if(D<1e-4)return 0;if(D%i<1e-4){b=0,w=i;var R=_?1:-1;return I>=l[0]+y&&I<=l[1]+y?R:0}if(_){var N=b;b=f(w),w=f(N)}else b=f(b),w=f(w);b>w&&(w+=i);for(var k=0,M=0;M<2;M++){var U=l[M];if(U+y>I){var B=Math.atan2(L,U),R=_?1:-1;B<0&&(B=i+B),(B>=b&&B<=w||B+i>=b&&B+i<=w)&&(B>Math.PI/2&&B<Math.PI*1.5&&(R=-R),k+=R)}}return k}function p(y,E,T,b,w){for(var _=0,I=0,L=0,N=0,D=0,R=0;R<y.length;){var k=y[R++];k===r.M&&R>1&&(T||(_+=o(I,L,N,D,b,w))),R===1&&(I=y[R],L=y[R+1],N=I,D=L);switch(k){case r.M:N=y[R++],D=y[R++],I=N,L=D;break;case r.L:if(T){if(x.containStroke(I,L,y[R],y[R+1],E,b,w))return!0}else _+=o(I,L,y[R],y[R+1],b,w)||0;I=y[R++],L=y[R++];break;case r.C:if(T){if(C.containStroke(I,L,y[R++],y[R++],y[R++],y[R++],y[R],y[R+1],E,b,w))return!0}else _+=s(I,L,y[R++],y[R++],y[R++],y[R++],y[R],y[R+1],b,w)||0;I=y[R++],L=y[R++];break;case r.Q:if(T){if(A.containStroke(I,L,y[R++],y[R++],y[R],y[R+1],E,b,w))return!0}else _+=u(I,L,y[R++],y[R++],y[R],y[R+1],b,w)||0;I=y[R++],L=y[R++];break;case r.A:var M=y[R++],U=y[R++],B=y[R++],j=y[R++],W=y[R++],V=y[R++];R+=1;var z=1-y[R++],J=Math.cos(W)*B+M,Z=Math.sin(W)*j+U;R>1?_+=o(I,L,J,Z,b,w):(N=J,D=Z);var de=(b-M)*j/B+M;if(T){if(S.containStroke(M,U,j,W,W+V,z,E,de,w))return!0}else _+=h(M,U,j,W,W+V,z,de,w);I=Math.cos(W+V)*B+M,L=Math.sin(W+V)*j+U;break;case r.R:N=I=y[R++],D=L=y[R++];var ie=y[R++],ve=y[R++],J=N+ie,Z=D+ve;if(T){if(x.containStroke(N,D,J,D,E,b,w)||x.containStroke(J,D,J,Z,E,b,w)||x.containStroke(J,Z,N,Z,E,b,w)||x.containStroke(N,Z,N,D,E,b,w))return!0}else _+=o(J,D,J,Z,b,w),_+=o(N,Z,N,D,b,w);break;case r.Z:if(T){if(x.containStroke(I,L,N,D,E,b,w))return!0}else _+=o(I,L,N,D,b,w);I=N,L=D;break}}return!T&&!e(L,D)&&(_+=o(I,L,N,D,b,w)||0),_!==0}function m(y,E,T){return p(y,0,!1,E,T)}function v(y,E,T,b){return p(y,E,!0,T,b)}F.contain=m,F.containStroke=v},"2dDv":function(H,F,d){var O=d("bYtY"),x=d("Fofx"),C=d("+TT/"),A=d("aX7z"),S=d("D1WM"),g=d("IwbS"),f=d("OELB"),c=d("72pK"),o=O.each,r=Math.min,i=Math.max,n=Math.floor,e=Math.ceil,l=f.round,t=Math.PI;function a(m,v,y){this._axesMap=O.createHashMap(),this._axesLayout={},this.dimensions=m.dimensions,this._rect,this._model=m,this._init(m,v,y)}a.prototype={type:"parallel",constructor:a,_init:function(m,v,y){var E=m.dimensions,T=m.parallelAxisIndex;o(E,function(b,w){var _=T[w],I=v.getComponent("parallelAxis",_),L=this._axesMap.set(b,new S(b,A.createScaleByModel(I),[0,0],I.get("type"),_)),N=L.type==="category";L.onBand=N&&I.get("boundaryGap"),L.inverse=I.get("inverse"),I.axis=L,L.model=I,L.coordinateSystem=I.coordinateSystem=this},this)},update:function(m,v){this._updateAxesFromSeries(this._model,m)},containPoint:function(m){var v=this._makeLayoutInfo(),y=v.axisBase,E=v.layoutBase,T=v.pixelDimIndex,b=m[1-T],w=m[T];return b>=y&&b<=y+v.axisLength&&w>=E&&w<=E+v.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(m,v){v.eachSeries(function(y){if(!m.contains(y,v))return;var E=y.getData();o(this.dimensions,function(T){var b=this._axesMap.get(T);b.scale.unionExtentFromData(E,E.mapDimension(T)),A.niceScaleExtent(b.scale,b.model)},this)},this)},resize:function(m,v){this._rect=C.getLayoutRect(m.getBoxLayoutParams(),{width:v.getWidth(),height:v.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var m=this._model,v=this._rect,y=["x","y"],E=["width","height"],T=m.get("layout"),b=T==="horizontal"?0:1,w=v[E[b]],_=[0,w],I=this.dimensions.length,L=s(m.get("axisExpandWidth"),_),N=s(m.get("axisExpandCount")||0,[0,I]),D=m.get("axisExpandable")&&I>3&&I>N&&N>1&&L>0&&w>0,R=m.get("axisExpandWindow"),k;if(R)k=s(R[1]-R[0],_),R[1]=R[0]+k;else{k=s(L*(N-1),_);var M=m.get("axisExpandCenter")||n(I/2);R=[L*M-k/2],R[1]=R[0]+k}var U=(w-k)/(I-N);U<3&&(U=0);var B=[n(l(R[0]/L,1))+1,e(l(R[1]/L,1))-1],j=U/L*R[0];return{layout:T,pixelDimIndex:b,layoutBase:v[y[b]],layoutLength:w,axisBase:v[y[1-b]],axisLength:v[E[1-b]],axisExpandable:D,axisExpandWidth:L,axisCollapseWidth:U,axisExpandWindow:R,axisCount:I,winInnerIndices:B,axisExpandWindow0Pos:j}},_layoutAxes:function(){var m=this._rect,v=this._axesMap,y=this.dimensions,E=this._makeLayoutInfo(),T=E.layout;v.each(function(b){var w=[0,E.axisLength],_=b.inverse?1:0;b.setExtent(w[_],w[1-_])}),o(y,function(b,w){var _=(E.axisExpandable?h:u)(w,E),I={horizontal:{x:_.position,y:E.axisLength},vertical:{x:0,y:_.position}},L={horizontal:t/2,vertical:0},N=[I[T].x+m.x,I[T].y+m.y],D=L[T],R=x.create();x.rotate(R,R,D),x.translate(R,R,N),this._axesLayout[b]={position:N,rotation:D,transform:R,axisNameAvailableWidth:_.axisNameAvailableWidth,axisLabelShow:_.axisLabelShow,nameTruncateMaxWidth:_.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(m){return this._axesMap.get(m)},dataToPoint:function(m,v){return this.axisCoordToPoint(this._axesMap.get(v).dataToCoord(m),v)},eachActiveState:function(m,v,y,E){y==null&&(y=0),E==null&&(E=m.count());var T=this._axesMap,b=this.dimensions,w=[],_=[];O.each(b,function(U){w.push(m.mapDimension(U)),_.push(T.get(U).model)});for(var I=this.hasAxisBrushed(),L=y;L<E;L++){var N;if(!I)N="normal";else{N="active";for(var D=m.getValues(w,L),R=0,k=b.length;R<k;R++){var M=_[R].getActiveState(D[R]);if(M==="inactive"){N="inactive";break}}}v(N,L)}},hasAxisBrushed:function(){for(var m=this.dimensions,v=this._axesMap,y=!1,E=0,T=m.length;E<T;E++)v.get(m[E]).model.getActiveState()!=="normal"&&(y=!0);return y},axisCoordToPoint:function(m,v){var y=this._axesLayout[v];return g.applyTransform([m,0],y.transform)},getAxisLayout:function(m){return O.clone(this._axesLayout[m])},getSlidedAxisExpandWindow:function(m){var v=this._makeLayoutInfo(),y=v.pixelDimIndex,E=v.axisExpandWindow.slice(),T=E[1]-E[0],b=[0,v.axisExpandWidth*(v.axisCount-1)];if(!this.containPoint(m))return{behavior:"none",axisExpandWindow:E};var w=m[y]-v.layoutBase-v.axisExpandWindow0Pos,_,I="slide",L=v.axisCollapseWidth,N=this._model.get("axisExpandSlideTriggerArea"),D=N[0]!=null;if(L)D&&L&&w<T*N[0]?(I="jump",_=w-T*N[2]):D&&L&&w>T*(1-N[0])?(I="jump",_=w-T*(1-N[2])):(_=w-T*N[1])>=0&&(_=w-T*(1-N[1]))<=0&&(_=0),_*=v.axisExpandWidth/L,_?c(_,E,b,"all"):I="none";else{var T=E[1]-E[0],R=b[1]*w/T;E=[i(0,R-T/2)],E[1]=r(b[1],E[0]+T),E[0]=E[1]-T}return{axisExpandWindow:E,behavior:I}}};function s(m,v){return r(i(m,v[0]),v[1])}function u(m,v){var y=v.layoutLength/(v.axisCount-1);return{position:y*m,axisNameAvailableWidth:y,axisLabelShow:!0}}function h(m,v){var y=v.layoutLength,E=v.axisExpandWidth,T=v.axisCount,b=v.axisCollapseWidth,w=v.winInnerIndices,_,I=b,L=!1,N;return m<w[0]?(_=m*b,N=b):m<=w[1]?(_=v.axisExpandWindow0Pos+m*E-v.axisExpandWindow[0],I=E,L=!0):(_=y-(T-1-m)*b,N=b),{position:_,axisNameAvailableWidth:I,axisLabelShow:L,nameTruncateMaxWidth:N}}var p=a;H.exports=p},"2fGM":function(H,F,d){var O=d("bYtY"),x=d("bLfw"),C=d("nkfE"),A=d("ICMv"),S=x.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});O.merge(S.prototype,A);var g={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function f(c,o){return o.type||(o.data?"category":"value")}C("angle",S,f,g.angle),C("radius",S,f,g.radius)},"2fM7":function(H,F,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),S=d("lwsE"),g=d.n(S),f=d("W8MJ"),c=d.n(f),o=d("7W2i"),r=d.n(o),i=d("LQ03"),n=d.n(i),e=d("q1tI"),l=d("BGR+"),t=d("TSYQ"),a=d.n(t),s=d("1OyB"),u=d("vuIU"),h=d("Ji7U"),p=d("LK+K"),m=d("rePB"),v=d("Ff2n"),y=d("ODXe"),E=d("4IlW"),T=d("VTBJ"),b=`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`,w=`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`,_="".concat(b," ").concat(w).split(/[\s\n]+/),I="aria-",L="data-";function N(bt,It){return bt.indexOf(It)===0}function D(bt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gr;It===!1?gr={aria:!0,data:!0,attr:!0}:It===!0?gr={aria:!0}:gr=Object(T.a)({},It);var kr={};return Object.keys(bt).forEach(function(wt){(gr.aria&&(wt==="role"||N(wt,I))||gr.data&&N(wt,L)||gr.attr&&_.includes(wt))&&(kr[wt]=bt[wt])}),kr}var R=d("YrtM"),k=d("+nKL"),M=function(It){var gr=It.className,kr=It.customizeIcon,wt=It.customizeIconProps,rt=It.onMouseDown,tt=It.onClick,Rt=It.children,Ft;return typeof kr=="function"?Ft=kr(wt):Ft=kr,e.createElement("span",{className:gr,onMouseDown:function(Wt){Wt.preventDefault(),rt&&rt(Wt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:tt,"aria-hidden":!0},Ft!==void 0?Ft:e.createElement("span",{className:a()(gr.split(/\s+/).map(function(At){return"".concat(At,"-icon")}))},Rt))},U=M,B=function(It,gr){var kr=It.prefixCls,wt=It.id,rt=It.flattenOptions,tt=It.childrenAsData,Rt=It.values,Ft=It.searchValue,At=It.multiple,Wt=It.defaultActiveFirstOption,ot=It.height,Bt=It.itemHeight,Ar=It.notFoundContent,rr=It.open,pr=It.menuItemSelectedIcon,tn=It.virtual,hn=It.onSelect,Mn=It.onToggleOpen,Xn=It.onActiveValue,si=It.onScroll,vi=It.onMouseEnter,xi="".concat(kr,"-item"),_i=Object(R.a)(function(){return rt},[rr,rt],function(Sr,Br){return Br[0]&&Sr[1]!==Br[1]}),Qe=e.useRef(null),we=function(Br){Br.preventDefault()},Ne=function(Br){Qe.current&&Qe.current.scrollTo({index:Br})},Fe=function(Br){for(var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,gn=_i.length,or=0;or<gn;or+=1){var ln=(Br+or*$t+gn)%gn,an=_i[ln],Rr=an.group,On=an.data;if(!Rr&&!On.disabled)return ln}return-1},Ye=e.useState(function(){return Fe(0)}),We=Object(y.a)(Ye,2),Ze=We[0],mt=We[1],it=function(Br){mt(Br);var $t=_i[Br];if(!$t){Xn(null,-1);return}Xn($t.data.value,Br)};e.useEffect(function(){it(Wt!==!1?Fe(0):-1)},[_i.length,Ft]),e.useEffect(function(){var Sr=setTimeout(function(){if(!At&&rr&&Rt.size===1){var Br=Array.from(Rt)[0],$t=_i.findIndex(function(gn){var or=gn.data;return or.value===Br});it($t),Ne($t)}});return function(){return clearTimeout(Sr)}},[rr]);var Jt=function(Br){Br!==void 0&&hn(Br,{selected:!Rt.has(Br)}),At||Mn(!1)};if(e.useImperativeHandle(gr,function(){return{onKeyDown:function(Br){var $t=Br.which;switch($t){case E.a.UP:case E.a.DOWN:{var gn=0;if($t===E.a.UP?gn=-1:$t===E.a.DOWN&&(gn=1),gn!==0){var or=Fe(Ze+gn,gn);Ne(or),it(or)}break}case E.a.ENTER:{var ln=_i[Ze];ln&&!ln.data.disabled?Jt(ln.data.value):Jt(void 0),rr&&Br.preventDefault();break}case E.a.ESC:Mn(!1)}},onKeyUp:function(){},scrollTo:function(Br){Ne(Br)}}}),_i.length===0)return e.createElement("div",{role:"listbox",id:"".concat(wt,"_list"),className:"".concat(xi,"-empty"),onMouseDown:we},Ar);function Dr(Sr){var Br=_i[Sr];if(!Br)return null;var $t=Br.data||{},gn=$t.value,or=$t.label,ln=$t.children,an=D($t,!0),Rr=tt?ln:or;return Br?e.createElement("div",Object.assign({"aria-label":typeof Rr=="string"?Rr:null},an,{key:Sr,role:"option",id:"".concat(wt,"_list_").concat(Sr),"aria-selected":Rt.has(gn)}),gn):null}return e.createElement(e.Fragment,null,e.createElement("div",{role:"listbox",id:"".concat(wt,"_list"),style:{height:0,width:0,overflow:"hidden"}},Dr(Ze-1),Dr(Ze),Dr(Ze+1)),e.createElement(k.a,{itemKey:"key",ref:Qe,data:_i,height:ot,itemHeight:Bt,fullHeight:!1,onMouseDown:we,onScroll:si,virtual:tn,onMouseEnter:vi},function(Sr,Br){var $t,gn=Sr.group,or=Sr.groupOption,ln=Sr.data,an=ln.label,Rr=ln.key;if(gn)return e.createElement("div",{className:a()(xi,"".concat(xi,"-group"))},an!==void 0?an:Rr);var On=ln.disabled,ci=ln.value,Ui=ln.title,ki=ln.children,Di=ln.style,Ki=ln.className,Ur=Object(v.a)(ln,["disabled","value","title","children","style","className"]),Tn=Rt.has(ci),Mr="".concat(xi,"-option"),mr=a()(xi,Mr,Ki,($t={},Object(m.a)($t,"".concat(Mr,"-grouped"),or),Object(m.a)($t,"".concat(Mr,"-active"),Ze===Br&&!On),Object(m.a)($t,"".concat(Mr,"-disabled"),On),Object(m.a)($t,"".concat(Mr,"-selected"),Tn),$t)),Cr=tt?ki:an,Lt=!pr||typeof pr=="function"||Tn;return e.createElement("div",Object.assign({},Ur,{"aria-selected":Tn,className:mr,title:Ui,onMouseMove:function(){if(Ze===Br||On)return;it(Br)},onClick:function(){On||Jt(ci)},style:Di}),e.createElement("div",{className:"".concat(Mr,"-content")},Cr||ci),e.isValidElement(pr)||Tn,Lt&&e.createElement(U,{className:"".concat(xi,"-option-state"),customizeIcon:pr,customizeIconProps:{isSelected:Tn}},Tn?"\u2713":null))}))},j=e.forwardRef(B);j.displayName="OptionList";var W=j,V=function(){return null};V.isSelectOption=!0;var z=V,J=function(){return null};J.isSelectOptGroup=!0;var Z=J,de=d("Zm9Q");function ie(bt){var It=bt.key,gr=bt.props,kr=gr.children,wt=gr.value,rt=Object(v.a)(gr,["children","value"]);return Object(T.a)({key:It,value:wt!==void 0?wt:It,children:kr},rt)}function ve(bt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(de.a)(bt).map(function(gr,kr){if(!e.isValidElement(gr)||!gr.type)return null;var wt=gr.type.isSelectOptGroup,rt=gr.key,tt=gr.props,Rt=tt.children,Ft=Object(v.a)(tt,["children"]);return It||!wt?ie(gr):Object(T.a)(Object(T.a)({key:"__RC_SELECT_GRP__".concat(rt===null?kr:rt,"__"),label:rt},Ft),{},{options:ve(Rt)})}).filter(function(gr){return gr})}var xe=d("KQm4"),_e=d("T5bk"),Ue=d("U8pU"),fe=d("Kwbf");function ke(bt){return Array.isArray(bt)?bt:bt!==void 0?[bt]:[]}function se(bt,It){var gr=It.labelInValue,kr=It.combobox;if(bt===void 0||bt===""&&kr)return[];var wt=Array.isArray(bt)?bt:[bt];return gr?wt.map(function(rt){var tt=rt.key,Rt=rt.value;return Rt!==void 0?Rt:tt}):wt}function te(bt,It){var gr=It.optionLabelProp,kr=It.labelInValue,wt=It.prevValue,rt=It.options,tt=It.getLabeledValue,Rt=bt;return kr&&(Rt=Rt.map(function(Ft){return tt(Ft,{options:rt,prevValue:wt,labelInValue:kr,optionLabelProp:gr})})),Rt}function Ve(bt,It){var gr=Object(xe.a)(It),kr;for(kr=bt.length-1;kr>=0&&bt[kr].disabled;kr-=1);var wt=null;return kr!==-1&&(wt=gr[kr],gr.splice(kr,1)),{values:gr,removedValue:wt}}var ae=typeof window!="undefined"&&window.document&&window.document.documentElement,Q=ae,G=0;function Y(){var bt;return Q?(bt=G,G+=1):bt="TEST_OR_SSR",bt}function me(bt,It){var gr=bt.key,kr;return"value"in bt&&(kr=bt.value),gr!=null?gr:kr!==void 0?kr:"rc-index-key-".concat(It)}function ue(bt){var It=[];function gr(kr,wt){kr.forEach(function(rt){wt||!("options"in rt)?It.push({key:me(rt,It.length),groupOption:wt,data:rt}):(It.push({key:me(rt,It.length),group:!0,data:rt}),gr(rt.options,!0))})}return gr(bt,!1),It}function Ce(bt){var It=Object(T.a)({},bt);return"props"in It||Object.defineProperty(It,"props",{get:function(){return Object(fe.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),It}}),It}function Ie(bt,It){var gr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},kr=gr.prevValueOptions,wt=kr===void 0?[]:kr,rt=new Map;return It.forEach(function(tt){if(!tt.group){var Rt=tt.data;rt.set(Rt.value,Rt)}}),bt.map(function(tt){var Rt=rt.get(tt);return Rt||(Rt=Object(T.a)({},wt.find(function(Ft){return Ft._INTERNAL_OPTION_VALUE_===tt}))),Ce(Rt)})}var ce=function(It,gr){var kr=gr.options,wt=gr.prevValue,rt=gr.labelInValue,tt=gr.optionLabelProp,Rt=Ie([It],kr)[0],Ft={value:It},At,Wt=ke(wt);return rt&&(At=Wt.find(function(ot){return Object(Ue.a)(ot)==="object"&&"value"in ot?ot.value===It:ot.key===It})),At&&Object(Ue.a)(At)==="object"&&"label"in At?(Ft.label=At.label,Rt&&typeof At.label=="string"&&typeof Rt[tt]=="string"&&At.label.trim()!==Rt[tt].trim()&&Object(fe.a)(!1,"`label` of `value` is not same as `label` in Select options.")):Rt&&tt in Rt?Ft.label=Rt[tt]:Ft.label=It,Ft.key=Ft.value,Ft};function Ae(bt){return ke(bt).join("")}function Te(bt){return function(It,gr){var kr=It.toLowerCase();if("options"in gr)return Ae(gr.label).toLowerCase().includes(kr);var wt=gr[bt],rt=Ae(wt).toLowerCase();return rt.includes(kr)}}function Ge(bt,It,gr){var kr=gr.optionFilterProp,wt=gr.filterOption,rt=[],tt;return wt===!1?It:(typeof wt=="function"?tt=wt:tt=Te(kr),It.forEach(function(Rt){if("options"in Rt){var Ft=tt(bt,Rt);if(Ft)rt.push(Rt);else{var At=Rt.options.filter(function(Wt){return tt(bt,Wt)});At.length&&rt.push(Object(T.a)(Object(T.a)({},Rt),{},{options:At}))}return}tt(bt,Ce(Rt))&&rt.push(Rt)}),rt)}function gt(bt,It){if(!It||!It.length)return null;var gr=!1;function kr(rt,tt){var Rt=Object(_e.a)(tt),Ft=Rt[0],At=Rt.slice(1);if(!Ft)return[rt];var Wt=rt.split(Ft);return gr=gr||Wt.length>1,Wt.reduce(function(ot,Bt){return[].concat(Object(xe.a)(ot),Object(xe.a)(kr(Bt,At)))},[]).filter(function(ot){return ot})}var wt=kr(bt,It);return gr?wt:null}function qe(bt,It){var gr=Ie([bt],It)[0];return gr.disabled}function Le(bt,It,gr,kr){var wt=ke(It).slice().sort(),rt=Object(xe.a)(bt),tt=new Set;return bt.forEach(function(Rt){Rt.options?Rt.options.forEach(function(Ft){tt.add(Ft.value)}):tt.add(Rt.value)}),wt.forEach(function(Rt){var Ft=kr?Rt.value:Rt;if(!tt.has(Ft)){var At;rt.push(kr?(At={},Object(m.a)(At,gr,Rt.label),Object(m.a)(At,"value",Ft),At):{value:Ft})}}),rt}var Ot=d("6cGi"),$e=d("HTfv"),xt=d("c+Xe"),Ht=function(It,gr){var kr=It.prefixCls,wt=It.id,rt=It.inputElement,tt=It.disabled,Rt=It.tabIndex,Ft=It.autoFocus,At=It.autoComplete,Wt=It.editable,ot=It.accessibilityIndex,Bt=It.value,Ar=It.onKeyDown,rr=It.onMouseDown,pr=It.onChange,tn=It.onPaste,hn=It.onCompositionStart,Mn=It.onCompositionEnd,Xn=It.open,si=It.attrs,vi=rt||e.createElement("input",null),xi=vi,_i=xi.ref,Qe=xi.props,we=Qe.onKeyDown,Ne=Qe.onChange,Fe=Qe.onMouseDown,Ye=Qe.onCompositionStart,We=Qe.onCompositionEnd,Ze=Qe.style;return vi=e.cloneElement(vi,Object(T.a)(Object(T.a)({id:wt,ref:Object(xt.a)(gr,_i),disabled:tt,tabIndex:Rt,autoComplete:At||"off",autoFocus:Ft,className:"".concat(kr,"-selection-search-input"),style:Object(T.a)(Object(T.a)({},Ze),{},{opacity:Wt?null:0}),role:"combobox","aria-expanded":Xn,"aria-haspopup":"listbox","aria-owns":"".concat(wt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(wt,"_list"),"aria-activedescendant":"".concat(wt,"_list_").concat(ot)},si),{},{value:Wt?Bt:"",readOnly:!Wt,unselectable:Wt?null:"on",onKeyDown:function(it){Ar(it),we&&we(it)},onMouseDown:function(it){rr(it),Fe&&Fe(it)},onChange:function(it){pr(it),Ne&&Ne(it)},onCompositionStart:function(it){hn(it),Ye&&Ye(it)},onCompositionEnd:function(it){Mn(it),We&&We(it)},onPaste:tn})),vi},tr=e.forwardRef(Ht);tr.displayName="Input";var Mt=tr;function Tt(bt,It){Q?e.useLayoutEffect(bt,It):e.useEffect(bt,It)}var Xe="__RC_SELECT_MAX_REST_COUNT__",oe=function(It){var gr=It.id,kr=It.prefixCls,wt=It.values,rt=It.open,tt=It.searchValue,Rt=It.inputRef,Ft=It.placeholder,At=It.disabled,Wt=It.mode,ot=It.showSearch,Bt=It.autoFocus,Ar=It.autoComplete,rr=It.accessibilityIndex,pr=It.tabIndex,tn=It.removeIcon,hn=It.choiceTransitionName,Mn=It.maxTagCount,Xn=It.maxTagTextLength,si=It.maxTagPlaceholder,vi=si===void 0?function(ci){return"+ ".concat(ci.length," ...")}:si,xi=It.tagRender,_i=It.onSelect,Qe=It.onInputChange,we=It.onInputPaste,Ne=It.onInputKeyDown,Fe=It.onInputMouseDown,Ye=It.onInputCompositionStart,We=It.onInputCompositionEnd,Ze=e.useState(!1),mt=Object(y.a)(Ze,2),it=mt[0],Jt=mt[1],Dr=e.useRef(null),Sr=e.useState(0),Br=Object(y.a)(Sr,2),$t=Br[0],gn=Br[1];e.useEffect(function(){Jt(!0)},[]);var or=rt||Wt==="tags"?tt:"",ln=Wt==="tags"||rt&&ot;Tt(function(){gn(Dr.current.scrollWidth)},[or]);var an=wt,Rr;typeof Mn=="number"&&(Rr=wt.length-Mn,an=wt.slice(0,Mn)),typeof Xn=="number"&&(an=an.map(function(ci){var Ui=ci.label,ki=Object(v.a)(ci,["label"]),Di=Ui;if(typeof Ui=="string"||typeof Ui=="number"){var Ki=String(Di);Ki.length>Xn&&(Di="".concat(Ki.slice(0,Xn),"..."))}return Object(T.a)(Object(T.a)({},ki),{},{label:Di})})),Rr>0&&an.push({key:Xe,label:typeof vi=="function"?vi(wt.slice(Mn)):vi});var On=e.createElement($e.CSSMotionList,{component:!1,keys:an,motionName:hn,motionAppear:it},function(ci){var Ui=ci.key,ki=ci.label,Di=ci.value,Ki=ci.disabled,Ur=ci.className,Tn=ci.style,Mr=Ui||Di,mr=Ui!==Xe&&!Ki,Cr=function(Vr){Vr.preventDefault(),Vr.stopPropagation()},Lt=function(Vr){Vr&&Vr.stopPropagation(),_i(Di,{selected:!1})};return typeof xi=="function"?e.createElement("span",{key:Mr,onMouseDown:Cr,className:Ur,style:Tn},xi({label:ki,value:Di,disabled:Ki,closable:mr,onClose:Lt})):e.createElement("span",{key:Mr,className:a()(Ur,"".concat(kr,"-selection-item"),Object(m.a)({},"".concat(kr,"-selection-item-disabled"),Ki)),style:Tn},e.createElement("span",{className:"".concat(kr,"-selection-item-content")},ki),mr&&e.createElement(U,{className:"".concat(kr,"-selection-item-remove"),onMouseDown:Cr,onClick:Lt,customizeIcon:tn},"\xD7"))});return e.createElement(e.Fragment,null,On,e.createElement("span",{className:"".concat(kr,"-selection-search"),style:{width:$t}},e.createElement(Mt,{ref:Rt,open:rt,prefixCls:kr,id:gr,inputElement:null,disabled:At,autoFocus:Bt,autoComplete:Ar,editable:ln,accessibilityIndex:rr,value:or,onKeyDown:Ne,onMouseDown:Fe,onChange:Qe,onPaste:we,onCompositionStart:Ye,onCompositionEnd:We,tabIndex:pr,attrs:D(It,!0)}),e.createElement("span",{ref:Dr,className:"".concat(kr,"-selection-search-mirror"),"aria-hidden":!0},or,"\xA0")),!wt.length&&!or&&e.createElement("span",{className:"".concat(kr,"-selection-placeholder")},Ft))},X=oe,Be=function(It){var gr=It.inputElement,kr=It.prefixCls,wt=It.id,rt=It.inputRef,tt=It.disabled,Rt=It.autoFocus,Ft=It.autoComplete,At=It.accessibilityIndex,Wt=It.mode,ot=It.open,Bt=It.values,Ar=It.placeholder,rr=It.tabIndex,pr=It.showSearch,tn=It.searchValue,hn=It.activeValue,Mn=It.onInputKeyDown,Xn=It.onInputMouseDown,si=It.onInputChange,vi=It.onInputPaste,xi=It.onInputCompositionStart,_i=It.onInputCompositionEnd,Qe=e.useState(!1),we=Object(y.a)(Qe,2),Ne=we[0],Fe=we[1],Ye=Wt==="combobox",We=Ye||pr&&ot,Ze=Bt[0],mt=tn||"";Ye&&hn&&!Ne&&(mt=hn),e.useEffect(function(){Ye&&Fe(!1)},[Ye,hn]);var it=Wt!=="combobox"&&!ot?!1:!!mt,Jt=Ze&&(typeof Ze.label=="string"||typeof Ze.label=="number")?Ze.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(kr,"-selection-search")},e.createElement(Mt,{ref:rt,prefixCls:kr,id:wt,open:ot,inputElement:gr,disabled:tt,autoFocus:Rt,autoComplete:Ft,editable:We,accessibilityIndex:At,value:mt,onKeyDown:Mn,onMouseDown:Xn,onChange:function(Sr){Fe(!0),si(Sr)},onPaste:vi,onCompositionStart:xi,onCompositionEnd:_i,tabIndex:rr,attrs:D(It,!0)})),!Ye&&Ze&&!it&&e.createElement("span",{className:"".concat(kr,"-selection-item"),title:Jt},Ze.label),!Ze&&!it&&e.createElement("span",{className:"".concat(kr,"-selection-placeholder")},Ar))},Ee=Be;function ee(){var bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,It=e.useRef(null),gr=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(gr.current)}},[]);function kr(wt){(wt||It.current===null)&&(It.current=wt),window.clearTimeout(gr.current),gr.current=window.setTimeout(function(){It.current=null},bt)}return[function(){return It.current},kr]}var lt=function(It,gr){var kr=Object(e.useRef)(null),wt=Object(e.useRef)(!1),rt=It.prefixCls,tt=It.multiple,Rt=It.open,Ft=It.mode,At=It.showSearch,Wt=It.tokenWithEnter,ot=It.onSearch,Bt=It.onSearchSubmit,Ar=It.onToggleOpen,rr=It.onInputKeyDown,pr=It.domRef;e.useImperativeHandle(gr,function(){return{focus:function(){kr.current.focus()},blur:function(){kr.current.blur()}}});var tn=ee(0),hn=Object(y.a)(tn,2),Mn=hn[0],Xn=hn[1],si=function(it){var Jt=it.which;(Jt===E.a.UP||Jt===E.a.DOWN)&&it.preventDefault(),rr&&rr(it),Jt===E.a.ENTER&&Ft==="tags"&&!wt.current&&!Rt&&Bt(it.target.value),[E.a.SHIFT,E.a.TAB,E.a.BACKSPACE,E.a.ESC].includes(Jt)||Ar(!0)},vi=function(){Xn(!0)},xi=Object(e.useRef)(null),_i=function(it){ot(it,!0,wt.current)!==!1&&Ar(!0)},Qe=function(){wt.current=!0},we=function(){wt.current=!1},Ne=function(it){var Jt=it.target.value;if(Wt&&xi.current&&/[\r\n]/.test(xi.current)){var Dr=xi.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");Jt=Jt.replace(Dr,xi.current)}xi.current=null,_i(Jt)},Fe=function(it){var Jt=it.clipboardData,Dr=Jt.getData("text");xi.current=Dr},Ye=function(it){var Jt=Mn();if(it.target!==kr.current){Jt||it.preventDefault();var Dr=document.body.style.msTouchAction!==void 0;Dr?setTimeout(function(){kr.current.focus()}):kr.current.focus()}(Ft!=="combobox"&&(!At||!Jt)||!Rt)&&(Rt&&ot("",!0,!1),Ar())},We={inputRef:kr,onInputKeyDown:si,onInputMouseDown:vi,onInputChange:Ne,onInputPaste:Fe,onInputCompositionStart:Qe,onInputCompositionEnd:we},Ze=tt?e.createElement(X,Object.assign({},It,We)):e.createElement(Ee,Object.assign({},It,We));return e.createElement("div",{ref:pr,className:"".concat(rt,"-selector"),onMouseDown:Ye},Ze)},Ct=e.forwardRef(lt);Ct.displayName="Selector";var dt=Ct,_t=d("Uaa1"),ir=function(It){var gr=typeof It!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:gr,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:gr,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:gr,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:gr,adjustY:1}}}},$r=function(It,gr){var kr=It.prefixCls,wt=It.disabled,rt=It.visible,tt=It.children,Rt=It.popupElement,Ft=It.containerWidth,At=It.animation,Wt=It.transitionName,ot=It.dropdownStyle,Bt=It.dropdownClassName,Ar=It.direction,rr=Ar===void 0?"ltr":Ar,pr=It.dropdownMatchSelectWidth,tn=pr===void 0?!0:pr,hn=It.dropdownRender,Mn=It.dropdownAlign,Xn=It.getPopupContainer,si=It.empty,vi=It.getTriggerDOMNode,xi=Object(v.a)(It,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),_i="".concat(kr,"-dropdown"),Qe=Rt;hn&&(Qe=hn(Rt));var we=e.useMemo(function(){return ir(tn)},[tn]),Ne=At?"".concat(_i,"-").concat(At):Wt,Fe=e.useRef(null);e.useImperativeHandle(gr,function(){return{getPopupElement:function(){return Fe.current}}});var Ye=Object(T.a)({minWidth:Ft},ot);return typeof tn=="number"?Ye.width=tn:tn&&(Ye.width=Ft),e.createElement(_t.a,Object.assign({},xi,{showAction:[],hideAction:[],popupPlacement:rr==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:we,prefixCls:_i,popupTransitionName:Ne,popup:e.createElement("div",{ref:Fe},Qe),popupAlign:Mn,popupVisible:rt,getPopupContainer:Xn,popupClassName:a()(Bt,Object(m.a)({},"".concat(_i,"-empty"),si)),popupStyle:Ye,getTriggerDOMNode:vi}),tt)},nr=e.forwardRef($r);nr.displayName="SelectTrigger";var lr=nr,zt="RC_SELECT_INTERNAL_PROPS_MARK";function Ut(){var bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,It=e.useState(!1),gr=Object(y.a)(It,2),kr=gr[0],wt=gr[1],rt=e.useRef(null),tt=function(){window.clearTimeout(rt.current)};e.useEffect(function(){return tt},[]);var Rt=function(At,Wt){tt(),rt.current=window.setTimeout(function(){wt(At),Wt&&Wt()},bt)};return[kr,Rt,tt]}function st(bt,It,gr){var kr=e.useRef(null);kr.current={elements:bt.filter(function(wt){return wt}),open:It,triggerOpen:gr},e.useEffect(function(){function wt(rt){var tt=rt.target;kr.current.open&&kr.current.elements.every(function(Rt){return!Rt.contains(tt)&&Rt!==tt})&&kr.current.triggerOpen(!1)}return window.addEventListener("mousedown",wt),function(){return window.removeEventListener("mousedown",wt)}},[])}function Hr(bt){var It=e.useRef(bt),gr=e.useMemo(function(){var kr=new Map;It.current.forEach(function(rt){var tt=rt.value,Rt=rt.label;tt!==Rt&&kr.set(tt,Rt)});var wt=bt.map(function(rt){var tt=kr.get(rt.value);return rt.value===rt.label&&tt?Object(T.a)(Object(T.a)({},rt),{},{label:tt}):rt});return It.current=wt,wt},[bt]);return gr}function mn(bt,It){var gr=e.useRef(null),kr=e.useMemo(function(){var rt=new Map;return It.forEach(function(tt){var Rt=tt.data.value;rt.set(Rt,tt)}),rt},[bt,It]);gr.current=kr;var wt=function(tt){return tt.map(function(Rt){return gr.current.get(Rt)}).filter(Boolean)};return wt}var In=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function Yn(bt){var It=bt.prefixCls,gr=bt.components.optionList,kr=bt.convertChildrenToData,wt=bt.flattenOptions,rt=bt.getLabeledValue,tt=bt.filterOptions,Rt=bt.isValueDisabled,Ft=bt.findValueOption,At=bt.warningProps,Wt=bt.fillOptionsWithMissingValue,ot=bt.omitDOMProps;function Bt(rr,pr){var tn,hn=rr.prefixCls,Mn=hn===void 0?It:hn,Xn=rr.className,si=rr.id,vi=rr.open,xi=rr.defaultOpen,_i=rr.options,Qe=rr.children,we=rr.mode,Ne=rr.value,Fe=rr.defaultValue,Ye=rr.labelInValue,We=rr.showSearch,Ze=rr.inputValue,mt=rr.searchValue,it=rr.filterOption,Jt=rr.optionFilterProp,Dr=Jt===void 0?"value":Jt,Sr=rr.autoClearSearchValue,Br=Sr===void 0?!0:Sr,$t=rr.onSearch,gn=rr.allowClear,or=rr.clearIcon,ln=rr.showArrow,an=rr.inputIcon,Rr=rr.menuItemSelectedIcon,On=rr.disabled,ci=rr.loading,Ui=rr.defaultActiveFirstOption,ki=rr.notFoundContent,Di=ki===void 0?"Not Found":ki,Ki=rr.optionLabelProp,Ur=rr.backfill,Tn=rr.getInputElement,Mr=rr.getPopupContainer,mr=rr.listHeight,Cr=mr===void 0?200:mr,Lt=rr.listItemHeight,wr=Lt===void 0?20:Lt,Vr=rr.animation,jr=rr.transitionName,qr=rr.virtual,oi=rr.dropdownStyle,Vn=rr.dropdownClassName,Ti=rr.dropdownMatchSelectWidth,dn=rr.dropdownRender,_r=rr.dropdownAlign,xn=rr.showAction,Fn=xn===void 0?[]:xn,zn=rr.direction,qn=rr.tokenSeparators,Oi=rr.tagRender,Li=rr.onPopupScroll,Ri=rr.onDropdownVisibleChange,Ji=rr.onFocus,ma=rr.onBlur,la=rr.onKeyUp,qa=rr.onKeyDown,bi=rr.onMouseDown,Sn=rr.onChange,zi=rr.onSelect,oa=rr.onDeselect,Yi=rr.onClear,ca=rr.internalProps,Hi=ca===void 0?{}:ca,Ia=Object(v.a)(rr,["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"]),Da=Hi.mark===zt,Qa=ot?ot(Ia):Ia;In.forEach(function(ta){delete Qa[ta]});var Wo=Object(e.useRef)(null),po=Object(e.useRef)(null),Mo=Object(e.useRef)(null),Fo=Object(e.useRef)(null),yo=Object(e.useMemo)(function(){return(qn||[]).some(function(ta){return[`
|
|
|
`,`\r
|
|
|
`].includes(ta)})},[qn]),Oo=Ut(),sa=Object(y.a)(Oo,3),hs=sa[0],Jo=sa[1],wo=sa[2],_o=Object(e.useState)(),Bo=Object(y.a)(_o,2),Ds=Bo[0],Nr=Bo[1];Object(e.useEffect)(function(){Nr("rc_select_".concat(Y()))},[]);var rn=si||Ds,En=Ki;En===void 0&&(En=_i?"label":"children");var en=we==="combobox"?!1:Ye,ur=we==="tags"||we==="multiple",on=We!==void 0?We:ur||we==="combobox",Bn=Object(e.useRef)(null);e.useImperativeHandle(pr,function(){return{focus:Mo.current.focus,blur:Mo.current.blur}});var Hn=Object(Ot.a)(Fe,{value:Ne}),Ii=Object(y.a)(Hn,2),Ci=Ii[0],Jn=Ii[1],mi=Object(e.useMemo)(function(){return se(Ci,{labelInValue:en,combobox:we==="combobox"})},[Ci,en]),yi=Object(e.useMemo)(function(){return new Set(mi)},[mi]),da=Object(e.useState)(null),ha=Object(y.a)(da,2),Pa=ha[0],Ra=ha[1],so=Object(e.useState)(""),La=Object(y.a)(so,2),lo=La[0],So=La[1],Xt=lo;we==="combobox"&&Ci!==void 0?Xt=Ci:mt!==void 0?Xt=mt:Ze&&(Xt=Ze);var zr=Object(e.useMemo)(function(){var ta=_i;return ta===void 0&&(ta=kr(Qe)),we==="tags"&&Wt&&(ta=Wt(ta,Ci,En,Ye)),ta||[]},[_i,Qe,we,Ci]),un=Object(e.useMemo)(function(){return wt(zr,rr)},[zr]),vn=mn(mi,un),ni=Object(e.useMemo)(function(){if(!Xt||!on)return Object(xe.a)(zr);var ta=tt(Xt,zr,{optionFilterProp:Dr,filterOption:we==="combobox"&&it===void 0?function(){return!0}:it});return we==="tags"&&ta.every(function(ra){return ra[Dr]!==Xt})&&ta.unshift({value:Xt,label:Xt,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),ta},[zr,Xt,we,on]),li=Object(e.useMemo)(function(){return wt(ni,rr)},[ni]);Object(e.useEffect)(function(){Fo.current&&Fo.current.scrollTo&&Fo.current.scrollTo(0)},[Xt]);var fi=Object(e.useMemo)(function(){var ta=mi.map(function(ra){var _a=vn([ra]),Ka=rt(ra,{options:_a,prevValue:Ci,labelInValue:en,optionLabelProp:En});return Object(T.a)(Object(T.a)({},Ka),{},{disabled:Rt(ra,_a)})});return!we&&ta.length===1&&ta[0].value===null&&ta[0].label===null?[]:ta},[Ci,zr,we]);fi=Hr(fi);var di=function(ra,_a,Ka){var bo=vn([ra]),ga=Ft([ra],bo)[0];if(!Hi.skipTriggerSelect){var go=en?rt(ra,{options:bo,prevValue:Ci,labelInValue:en,optionLabelProp:En}):ra;_a&&zi?zi(go,ga):!_a&&oa&&oa(go,ga)}Da&&(_a&&Hi.onRawSelect?Hi.onRawSelect(ra,ga,Ka):!_a&&Hi.onRawDeselect&&Hi.onRawDeselect(ra,ga,Ka))},Yt=Object(e.useState)([]),Et=Object(y.a)(Yt,2),yr=Et[0],ct=Et[1],Zt=function(ra){if(Da&&Hi.skipTriggerChange)return;var _a=vn(ra),Ka=te(Array.from(ra),{labelInValue:en,options:_a,getLabeledValue:rt,prevValue:Ci,optionLabelProp:En}),bo=ur?Ka:Ka[0];if(Sn&&(mi.length!==0||Ka.length!==0)){var ga=Ft(ra,_a,{prevValueOptions:yr});ct(ga.map(function(go,Sa){var Va=Object(T.a)({},go);return Object.defineProperty(Va,"_INTERNAL_OPTION_VALUE_",{get:function(){return ra[Sa]}}),Va})),Sn(bo,ur?ga:ga[0])}Jn(bo)},dr=function(ra,_a){var Ka=_a.selected,bo=_a.source;if(On)return;var ga;ur?(ga=new Set(mi),Ka?ga.add(ra):ga.delete(ra)):(ga=new Set,ga.add(ra)),(ur||!ur&&Array.from(mi)[0]!==ra)&&Zt(Array.from(ga)),di(ra,!ur||Ka,bo),we==="combobox"?(So(String(ra)),Ra("")):(!ur||Br)&&(So(""),Ra(""))},Lr=function(ra,_a){dr(ra,Object(T.a)(Object(T.a)({},_a),{},{source:"option"}))},Jr=function(ra,_a){dr(ra,Object(T.a)(Object(T.a)({},_a),{},{source:"selection"}))},fn=we==="combobox"&&Tn&&Tn()||null,Cn=Object(Ot.a)(void 0,{defaultValue:xi,value:vi}),Nn=Object(y.a)(Cn,2),Zn=Nn[0],ii=Nn[1],pi=Zn,ri=!Di&&!ni.length;(On||ri&&pi&&we==="combobox")&&(pi=!1);var ji=ri?!1:pi,ei=function(ra){var _a=ra!==void 0?ra:!pi;Zn!==_a&&!On&&(ii(_a),Ri&&Ri(_a))};st([Wo.current,po.current&&po.current.getPopupElement()],ji,ei);var Je=function(ra,_a,Ka){var bo=!0,ga=ra;Ra(null);var go=Ka?null:gt(ra,qn),Sa=go;if(we==="combobox")_a&&Zt([ga]);else if(go){ga="",we!=="tags"&&(Sa=go.map(function(uo){var No=un.find(function(Po){var to=Po.data;return to[En]===uo});return No?No.data.value:null}).filter(function(uo){return uo!==null}));var Va=Array.from(new Set([].concat(Object(xe.a)(mi),Object(xe.a)(Sa))));Zt(Va),Va.forEach(function(uo){di(uo,!0,"input")}),ei(!1),bo=!1}return So(ga),$t&&Xt!==ga&&$t(ga),bo},Gt=function(ra){var _a=Array.from(new Set([].concat(Object(xe.a)(mi),[ra])));Zt(_a),_a.forEach(function(Ka){di(Ka,!0,"input")}),So("")};Object(e.useEffect)(function(){Zn&&!!On&&ii(!1)},[On]),Object(e.useEffect)(function(){!pi&&!ur&&we!=="combobox"&&Je("",!1,!1)},[pi]);var vr=ee(),fr=Object(y.a)(vr,2),Gr=fr[0],Pr=fr[1],hr=function(ra){var _a=Gr(),Ka=ra.which;if(!pi&&Ka===E.a.ENTER&&ei(!0),Pr(!!Xt),Ka===E.a.BACKSPACE&&!_a&&ur&&!Xt&&mi.length){var bo=Ve(fi,mi);bo.removedValue!==null&&(Zt(bo.values),di(bo.removedValue,!1,"input"))}for(var ga=arguments.length,go=new Array(ga>1?ga-1:0),Sa=1;Sa<ga;Sa++)go[Sa-1]=arguments[Sa];if(pi&&Fo.current){var Va;(Va=Fo.current).onKeyDown.apply(Va,[ra].concat(go))}qa&&qa.apply(void 0,[ra].concat(go))},An=function(ra){for(var _a=arguments.length,Ka=new Array(_a>1?_a-1:0),bo=1;bo<_a;bo++)Ka[bo-1]=arguments[bo];if(pi&&Fo.current){var ga;(ga=Fo.current).onKeyUp.apply(ga,[ra].concat(Ka))}la&&la.apply(void 0,[ra].concat(Ka))},br=Object(e.useRef)(!1),pn=function(){Jo(!0),On||(Ji&&!br.current&&Ji.apply(void 0,arguments),Fn.includes("focus")&&ei(!0)),br.current=!0},Kn=function(){if(Jo(!1,function(){br.current=!1,ei(!1)}),On)return;Xt&&(we==="tags"?(Je("",!1,!1),Zt(Array.from(new Set([].concat(Object(xe.a)(mi),[Xt]))))):we==="multiple"&&So("")),ma&&ma.apply(void 0,arguments)},Wn=[];Object(e.useEffect)(function(){return function(){Wn.forEach(function(ta){return clearTimeout(ta)}),Wn.splice(0,Wn.length)}},[]);var Ln=function(ra){var _a=ra.target,Ka=po.current&&po.current.getPopupElement();if(Ka&&Ka.contains(_a)){var bo=setTimeout(function(){var Va=Wn.indexOf(bo);Va!==-1&&Wn.splice(Va,1),wo(),Ka.contains(document.activeElement)||Mo.current.focus()});Wn.push(bo)}if(bi){for(var ga=arguments.length,go=new Array(ga>1?ga-1:0),Sa=1;Sa<ga;Sa++)go[Sa-1]=arguments[Sa];bi.apply(void 0,[ra].concat(go))}},$n=Object(e.useState)(0),Un=Object(y.a)($n,2),ti=Un[0],Gn=Un[1],wi=Ui!==void 0?Ui:we!=="combobox",Ei=function(ra,_a){Gn(_a),Ur&&we==="combobox"&&ra!==null&&Ra(String(ra))},Zi=Object(e.useState)(null),ua=Object(y.a)(Zi,2),Xi=ua[0],Gi=ua[1],wa=Object(e.useState)({}),na=Object(y.a)(wa,2),mo=na[1];function Ca(){mo({})}Tt(function(){if(ji){var ta=Math.ceil(Wo.current.offsetWidth);Xi!==ta&&Gi(ta)}},[ji]);var qi=e.createElement(gr,{ref:Fo,prefixCls:Mn,id:rn,open:pi,childrenAsData:!_i,options:ni,flattenOptions:li,multiple:ur,values:yi,height:Cr,itemHeight:wr,onSelect:Lr,onToggleOpen:ei,onActiveValue:Ei,defaultActiveFirstOption:wi,notFoundContent:Di,onScroll:Li,searchValue:Xt,menuItemSelectedIcon:Rr,virtual:qr!==!1&&Ti!==!1,onMouseEnter:Ca}),aa,$i=function(){Da&&Hi.onClear&&Hi.onClear(),Yi&&Yi(),Zt([]),Je("",!1,!1)};!On&&gn&&(mi.length||Xt)&&(aa=e.createElement(U,{className:"".concat(Mn,"-clear"),onMouseDown:$i,customizeIcon:or},"\xD7"));var Aa=ln!==void 0?ln:ci||!ur&&we!=="combobox",ya;Aa&&(ya=e.createElement(U,{className:a()("".concat(Mn,"-arrow"),Object(m.a)({},"".concat(Mn,"-arrow-loading"),ci)),customizeIcon:an,customizeIconProps:{loading:ci,searchValue:Xt,open:pi,focused:hs,showSearch:on}}));var Ha=a()(Mn,Xn,(tn={},Object(m.a)(tn,"".concat(Mn,"-focused"),hs),Object(m.a)(tn,"".concat(Mn,"-multiple"),ur),Object(m.a)(tn,"".concat(Mn,"-single"),!ur),Object(m.a)(tn,"".concat(Mn,"-allow-clear"),gn),Object(m.a)(tn,"".concat(Mn,"-show-arrow"),Aa),Object(m.a)(tn,"".concat(Mn,"-disabled"),On),Object(m.a)(tn,"".concat(Mn,"-loading"),ci),Object(m.a)(tn,"".concat(Mn,"-open"),pi),Object(m.a)(tn,"".concat(Mn,"-customize-input"),fn),Object(m.a)(tn,"".concat(Mn,"-show-search"),on),tn));return e.createElement("div",Object.assign({className:Ha},Qa,{ref:Wo,onMouseDown:Ln,onKeyDown:hr,onKeyUp:An,onFocus:pn,onBlur:Kn}),hs&&!pi&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(mi.join(", "))),e.createElement(lr,{ref:po,disabled:On,prefixCls:Mn,visible:ji,popupElement:qi,containerWidth:Xi,animation:Vr,transitionName:jr,dropdownStyle:oi,dropdownClassName:Vn,direction:zn,dropdownMatchSelectWidth:Ti,dropdownRender:dn,dropdownAlign:_r,getPopupContainer:Mr,empty:!zr.length,getTriggerDOMNode:function(){return Bn.current}},e.createElement(dt,Object.assign({},rr,{domRef:Bn,prefixCls:Mn,inputElement:fn,ref:Mo,id:rn,showSearch:on,mode:we,accessibilityIndex:ti,multiple:ur,tagRender:Oi,values:fi,open:pi,onToggleOpen:ei,searchValue:Xt,activeValue:Pa,onSearch:Je,onSearchSubmit:Gt,onSelect:Jr,tokenWithEnter:yo}))),ya,aa)}var Ar=e.forwardRef(Bt);return Ar}function Mi(bt){var It=bt.mode,gr=bt.options,kr=bt.children,wt=bt.backfill,rt=bt.allowClear,tt=bt.placeholder,Rt=bt.getInputElement,Ft=bt.showSearch,At=bt.onSearch,Wt=bt.defaultOpen,ot=bt.autoFocus,Bt=bt.labelInValue,Ar=bt.value,rr=bt.inputValue,pr=bt.optionLabelProp,tn=It==="multiple"||It==="tags",hn=Ft!==void 0?Ft:tn||It==="combobox",Mn=gr||ve(kr);if(Object(fe.a)(It!=="tags"||Mn.every(function(xi){return!xi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),It==="tags"||It==="combobox"){var Xn=Mn.some(function(xi){return xi.options?xi.options.some(function(_i){return typeof("value"in _i?_i.value:_i.key)=="number"}):typeof("value"in xi?xi.value:xi.key)=="number"});Object(fe.a)(!Xn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(fe.a)(It!=="combobox"||!pr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(fe.a)(It==="combobox"||!wt,"`backfill` only works with `combobox` mode."),Object(fe.a)(It==="combobox"||!Rt,"`getInputElement` only work with `combobox` mode."),Object(fe.b)(It!=="combobox"||!Rt||!rt||!tt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),At&&!hn&&It!=="combobox"&&It!=="tags"&&Object(fe.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(fe.b)(!Wt||ot,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ar!=null){var si=ke(Ar);Object(fe.a)(!Bt||si.every(function(xi){return Object(Ue.a)(xi)==="object"&&("key"in xi||"value"in xi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(fe.a)(!tn||Array.isArray(Ar),"`value` should be array when `mode` is `multiple` or `tags`")}if(kr){var vi=null;Object(de.a)(kr).some(function(xi){if(!e.isValidElement(xi)||!xi.type)return!1;var _i=xi.type;if(_i.isSelectOption)return!1;if(_i.isSelectOptGroup){var Qe=Object(de.a)(xi.props.children).every(function(we){return!e.isValidElement(we)||!xi.type||we.type.isSelectOption?!0:(vi=we.type,!1)});return!Qe}return vi=_i,!0}),vi&&Object(fe.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(vi.displayName||vi.name||vi,"`.")),Object(fe.a)(rr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var wn=Mi,Rn=Yn({prefixCls:"rc-select",components:{optionList:W},convertChildrenToData:ve,flattenOptions:ue,getLabeledValue:ce,filterOptions:Ge,isValueDisabled:qe,findValueOption:Ie,warningProps:wn,fillOptionsWithMissingValue:Le}),kt=function(bt){Object(h.a)(gr,bt);var It=Object(p.a)(gr);function gr(){var kr;return Object(s.a)(this,gr),kr=It.apply(this,arguments),kr.selectRef=e.createRef(),kr.focus=function(){kr.selectRef.current.focus()},kr.blur=function(){kr.selectRef.current.blur()},kr}return Object(u.a)(gr,[{key:"render",value:function(){return e.createElement(Rn,Object.assign({ref:this.selectRef},this.props))}}]),gr}(e.Component);kt.Option=z,kt.OptGroup=Z;var vt=kt,Re=vt,Ke=d("H84U"),Pe=d("1vzs"),nt=d("3Nzz"),yt=function(bt){r()(gr,bt);var It=n()(gr);function gr(){var kr;return g()(this,gr),kr=It.apply(this,arguments),kr.selectRef=e.createRef(),kr.focus=function(){kr.selectRef.current&&kr.selectRef.current.focus()},kr.blur=function(){kr.selectRef.current&&kr.selectRef.current.blur()},kr.getMode=function(){var wt=kr.props.mode;return wt==="combobox"?void 0:wt===gr.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":wt},kr.renderSelect=function(wt){var rt=wt.getPopupContainer,tt=wt.getPrefixCls,Rt=wt.renderEmpty,Ft=wt.direction,At=wt.virtual,Wt=wt.dropdownMatchSelectWidth,ot=kr.props,Bt=ot.prefixCls,Ar=ot.notFoundContent,rr=ot.className,pr=ot.size,tn=ot.listHeight,hn=tn===void 0?256:tn,Mn=ot.listItemHeight,Xn=Mn===void 0?24:Mn,si=ot.getPopupContainer,vi=ot.dropdownClassName,xi=ot.bordered,_i=tt("select",Bt),Qe=kr.getMode(),we=Qe==="multiple"||Qe==="tags",Ne;Ar!==void 0?Ne=Ar:Qe==="combobox"?Ne=null:Ne=Rt("Select");var Fe=Object(Pe.a)(A()(A()({},kr.props),{multiple:we,prefixCls:_i})),Ye=Fe.suffixIcon,We=Fe.itemIcon,Ze=Fe.removeIcon,mt=Fe.clearIcon,it=Object(l.default)(kr.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),Jt=a()(vi,x()({},"".concat(_i,"-dropdown-").concat(Ft),Ft==="rtl"));return e.createElement(nt.b.Consumer,null,function(Dr){var Sr,Br=pr||Dr,$t=a()(rr,(Sr={},x()(Sr,"".concat(_i,"-lg"),Br==="large"),x()(Sr,"".concat(_i,"-sm"),Br==="small"),x()(Sr,"".concat(_i,"-rtl"),Ft==="rtl"),x()(Sr,"".concat(_i,"-borderless"),!xi),Sr));return e.createElement(Re,A()({ref:kr.selectRef,virtual:At,dropdownMatchSelectWidth:Wt},it,{listHeight:hn,listItemHeight:Xn,mode:Qe,prefixCls:_i,direction:Ft,inputIcon:Ye,menuItemSelectedIcon:We,removeIcon:Ze,clearIcon:mt,notFoundContent:Ne,className:$t,getPopupContainer:si||rt,dropdownClassName:Jt}))})},kr}return c()(gr,[{key:"render",value:function(){return e.createElement(Ke.a,null,this.renderSelect)}}]),gr}(e.Component);yt.Option=z,yt.OptGroup=Z,yt.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",yt.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var Dt=F.a=yt},"2fw6":function(H,F,d){var O=d("y+Vt"),x=O.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(A,S,g){g&&A.moveTo(S.cx+S.r,S.cy),A.arc(S.cx,S.cy,S.r,0,Math.PI*2,!0)}});H.exports=x},"2jpz":function(H,F,d){"use strict";d.d(F,"a",function(){return u});var O=d("cDf5"),x=d.n(O),C=d("q1tI"),A=d.n(C),S=d("TSYQ"),g=d.n(S),f=d("gZBC"),c=d.n(f),o=d("vk+C"),r=d.n(o),i=d("pG52"),n=d.n(i),e=d("Csr3"),l=d.n(e),t=d("e5VY"),a=d.n(t),s=d("0n0R");function u(h,p,m,v){var y=v.isLeaf,E=v.expanded,T=v.loading;if(T)return C.createElement(c.a,{className:"".concat(h,"-switcher-loading-icon")});var b;if(m&&x()(m)==="object"&&(b=m.showLeafIcon),y)return m?x()(m)==="object"&&!b?C.createElement("span",{className:"".concat(h,"-switcher-leaf-line")}):C.createElement(r.a,{className:"".concat(h,"-switcher-line-icon")}):null;var w="".concat(h,"-switcher-icon");return Object(s.b)(p)?Object(s.a)(p,{className:g()(p.props.className||"",w)}):p||(m?E?C.createElement(n.a,{className:"".concat(h,"-switcher-line-icon")}):C.createElement(l.a,{className:"".concat(h,"-switcher-line-icon")}):C.createElement(a.a,{className:w}))}},"2oIt":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},"2uGb":function(H,F,d){var O=d("ProS");d("ko1b"),d("s2lz"),d("RBEP");var x=d("kMLO"),C=d("nKiI");O.registerVisual(x),O.registerLayout(C)},"2w7y":function(H,F,d){var O=d("ProS");d("qMZE"),d("g0SD"),O.registerPreprocessor(function(x){x.markPoint=x.markPoint||{}})},"33Ds":function(H,F,d){var O=d("ProS"),x=d("b9oc"),C=d("Kagy"),A=d("IUWy"),S=C.toolbox.restore;function g(o){this.model=o}g.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:S.title};var f=g.prototype;f.onclick=function(o,r,i){x.clear(o),r.dispatchAction({type:"restore",from:this.uid})},A.register("restore",g),O.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(o,r){r.resetOption("recreate")});var c=g;H.exports=c},"34/K":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;function O(S,g){if(!(S instanceof g))throw new TypeError("Cannot call a class as a function")}function x(S,g){for(var f=0;f<g.length;f++){var c=g[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(S,c.key,c)}}function C(S,g,f){return g&&x(S.prototype,g),f&&x(S,f),S}var A=function(){function S(){O(this,S),this._lines=0}return C(S,[{key:"decodeRect",value:function(f,c,o,r,i,n,e){this._lines===0&&(this._lines=r);var l=e==8?1:4,t=o*l;if(i.rQwait("RAW",t))return!1;var a=c+(r-this._lines),s=Math.min(this._lines,Math.floor(i.rQlen/t)),u=i.rQ,h=i.rQi;if(e==8){for(var p=o*s,m=new Uint8Array(p*4),v=0;v<p;v++)m[v*4+0]=(u[h+v]>>0&3)*255/3,m[v*4+1]=(u[h+v]>>2&3)*255/3,m[v*4+2]=(u[h+v]>>4&3)*255/3,m[v*4+4]=0;u=m,h=0}return n.blitImage(f,a,o,s,u,h),i.rQskipBytes(s*t),this._lines-=s,!(this._lines>0)}}]),S}();F.default=A},"3690":function(H,F,d){"use strict";function O(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(i){return typeof i}:O=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},O(o)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var x=A(d("Lo0S"));function C(){if(typeof WeakMap!="function")return null;var o=new WeakMap;return C=function(){return o},o}function A(o){if(o&&o.__esModule)return o;if(o===null||O(o)!=="object"&&typeof o!="function")return{default:o};var r=C();if(r&&r.has(o))return r.get(o);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in o)if(Object.prototype.hasOwnProperty.call(o,e)){var l=n?Object.getOwnPropertyDescriptor(o,e):null;l&&(l.get||l.set)?Object.defineProperty(i,e,l):i[e]=o[e]}return i.default=o,r&&r.set(o,i),i}function S(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function g(o,r){for(var i=0;i<r.length;i++){var n=r[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}function f(o,r,i){return r&&g(o.prototype,r),i&&g(o,i),o}var c=function(){function o(){S(this,o),this._tiles=0,this._lastsubencoding=0}return f(o,[{key:"decodeRect",value:function(i,n,e,l,t,a,s){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 u=1;if(t.rQwait("HEXTILE",u))return!1;var h=t.rQ,p=t.rQi,m=h[p];if(m>30)throw new Error("Illegal hextile subencoding (subencoding: "+m+")");var v=this._totalTiles-this._tiles,y=v%this._tilesX,E=Math.floor(v/this._tilesX),T=i+y*16,b=n+E*16,w=Math.min(16,i+e-T),_=Math.min(16,n+l-b);if(m&1)u+=w*_*4;else if(m&2&&(u+=4),m&4&&(u+=4),m&8){if(u++,t.rQwait("HEXTILE",u))return!1;var I=h[p+u-1];m&16?u+=I*(4+2):u+=I*2}if(t.rQwait("HEXTILE",u))return!1;if(p++,m===0)this._lastsubencoding&1?x.Debug(" Ignoring blank after RAW"):a.fillRect(T,b,w,_,this._background);else if(m&1)a.blitImage(T,b,w,_,h,p),p+=u-1;else{if(m&2&&(this._background=[h[p],h[p+1],h[p+2],h[p+3]],p+=4),m&4&&(this._foreground=[h[p],h[p+1],h[p+2],h[p+3]],p+=4),a.startTile(T,b,w,_,this._background),m&8){var L=h[p];p++;for(var N=0;N<L;N++){var D=void 0;m&16?(D=[h[p],h[p+1],h[p+2],h[p+3]],p+=4):D=this._foreground;var R=h[p];p++;var k=R>>4,M=R&15,U=h[p];p++;var B=(U>>4)+1,j=(U&15)+1;a.subTile(k,M,B,j,D)}}a.finishTile()}t.rQi=p,this._lastsubencoding=m,this._tiles--}return!0}}]),o}();F.default=c},"3C/r":function(H,F){var d=function(C,A){this.image=C,this.repeat=A,this.type="pattern"};d.prototype.getCanvasPattern=function(x){return x.createPattern(this.image,this.repeat||"repeat")};var O=d;H.exports=O},"3CBa":function(H,F,d){var O=d("hydK"),x=O.createElement,C=d("bYtY"),A=d("SUKs"),S=d("y+Vt"),g=d("Dagg"),f=d("dqUG"),c=d("DBLp"),o=d("sW+o"),r=d("n6Mw"),i=d("vKoX"),n=d("P47w"),e=n.path,l=n.image,t=n.text;function a(w){return parseInt(w,10)}function s(w){return w instanceof S?e:w instanceof g?l:w instanceof f?t:e}function u(w,_){return _&&w&&_.parentNode!==w}function h(w,_,I){if(u(w,_)&&I){var L=I.nextSibling;L?w.insertBefore(_,L):w.appendChild(_)}}function p(w,_){if(u(w,_)){var I=w.firstChild;I?w.insertBefore(_,I):w.appendChild(_)}}function m(w,_){_&&w&&_.parentNode===w&&w.removeChild(_)}function v(w){return w.__textSvgEl}function y(w){return w.__svgEl}var E=function(_,I,L,N){this.root=_,this.storage=I,this._opts=L=C.extend({},L||{});var D=x("svg");D.setAttribute("xmlns","http://www.w3.org/2000/svg"),D.setAttribute("version","1.1"),D.setAttribute("baseProfile","full"),D.style.cssText="user-select:none;position:absolute;left:0;top:0;";var R=x("g");D.appendChild(R);var k=x("g");D.appendChild(k),this.gradientManager=new o(N,k),this.clipPathManager=new r(N,k),this.shadowManager=new i(N,k);var M=document.createElement("div");M.style.cssText="overflow:hidden;position:relative",this._svgDom=D,this._svgRoot=k,this._backgroundRoot=R,this._viewport=M,_.appendChild(M),M.appendChild(D),this.resize(L.width,L.height),this._visibleList=[]};E.prototype={constructor:E,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var _=this.getViewportRoot();if(_)return{offsetLeft:_.offsetLeft||0,offsetTop:_.offsetTop||0}},refresh:function(){var _=this.storage.getDisplayList(!0);this._paintList(_)},setBackgroundColor:function(_){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var I=x("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=_,this._backgroundRoot.appendChild(I),this._backgroundNode=I},_paintList:function(_){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var I=this._svgRoot,L=this._visibleList,N=_.length,D=[],R;for(R=0;R<N;R++){var k=_[R],M=s(k),U=y(k)||v(k);k.invisible||(k.__dirty&&(M&&M.brush(k),this.clipPathManager.update(k),k.style&&(this.gradientManager.update(k.style.fill),this.gradientManager.update(k.style.stroke),this.shadowManager.update(U,k)),k.__dirty=!1),D.push(k))}var B=c(L,D),j;for(R=0;R<B.length;R++){var W=B[R];if(W.removed)for(var V=0;V<W.count;V++){var k=L[W.indices[V]],U=y(k),z=v(k);m(I,U),m(I,z)}}for(R=0;R<B.length;R++){var W=B[R];if(W.added)for(var V=0;V<W.count;V++){var k=D[W.indices[V]],U=y(k),z=v(k);j?h(I,U,j):p(I,U),U?h(I,z,U):j?h(I,z,j):p(I,z),h(I,z,U),j=z||U||j,this.gradientManager.addWithoutUpdate(U||z,k),this.shadowManager.addWithoutUpdate(U||z,k),this.clipPathManager.markUsed(k)}else if(!W.removed)for(var V=0;V<W.count;V++){var k=D[W.indices[V]],U=y(k),z=v(k),U=y(k),z=v(k);this.gradientManager.markUsed(k),this.gradientManager.addWithoutUpdate(U||z,k),this.shadowManager.markUsed(k),this.shadowManager.addWithoutUpdate(U||z,k),this.clipPathManager.markUsed(k),z&&h(I,z,U),j=U||z||j}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=D},_getDefs:function(_){var I=this._svgDom,L=I.getElementsByTagName("defs");if(L.length===0)if(_){var L=I.insertBefore(x("defs"),I.firstChild);return L.contains||(L.contains=function(D){var R=L.children;if(!R)return!1;for(var k=R.length-1;k>=0;--k)if(R[k]===D)return!0;return!1}),L}else return null;else return L[0]},resize:function(_,I){var L=this._viewport;L.style.display="none";var N=this._opts;if(_!=null&&(N.width=_),I!=null&&(N.height=I),_=this._getSize(0),I=this._getSize(1),L.style.display="",this._width!==_||this._height!==I){this._width=_,this._height=I;var D=L.style;D.width=_+"px",D.height=I+"px";var R=this._svgDom;R.setAttribute("width",_),R.setAttribute("height",I)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",_),this._backgroundNode.setAttribute("height",I))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(_){var I=this._opts,L=["width","height"][_],N=["clientWidth","clientHeight"][_],D=["paddingLeft","paddingTop"][_],R=["paddingRight","paddingBottom"][_];if(I[L]!=null&&I[L]!=="auto")return parseFloat(I[L]);var k=this.root,M=document.defaultView.getComputedStyle(k);return(k[N]||a(M[L])||a(k.style[L]))-(a(M[D])||0)-(a(M[R])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var _=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,`>
|
|
|
\r<`));return"data:image/svg+xml;charset=UTF-8,"+_}};function T(w){return function(){A('In SVG mode painter not support method "'+w+'"')}}C.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(w){E.prototype[w]=T(w)});var b=E;H.exports=b},"3LNs":function(H,F,d){var O=d("bYtY"),x=d("Yl7c"),C=d("IwbS"),A=d("zTMp"),S=d("YH21"),g=d("iLNv"),f=d("4NO4"),c=f.makeInner,o=c(),r=O.clone,i=O.bind;function n(){}n.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(h,p,m,v){var y=p.get("value"),E=p.get("status");if(this._axisModel=h,this._axisPointerModel=p,this._api=m,!v&&this._lastValue===y&&this._lastStatus===E)return;this._lastValue=y,this._lastStatus=E;var T=this._group,b=this._handle;if(!E||E==="hide"){T&&T.hide(),b&&b.hide();return}T&&T.show(),b&&b.show();var w={};this.makeElOption(w,y,h,p,m);var _=w.graphicKey;_!==this._lastGraphicKey&&this.clear(m),this._lastGraphicKey=_;var I=this._moveAnimation=this.determineAnimation(h,p);if(!T)T=this._group=new C.Group,this.createPointerEl(T,w,h,p),this.createLabelEl(T,w,h,p),m.getZr().add(T);else{var L=O.curry(e,p,I);this.updatePointerEl(T,w,L,p),this.updateLabelEl(T,w,L,p)}s(T,p,!0),this._renderHandle(y)},remove:function(h){this.clear(h)},dispose:function(h){this.clear(h)},determineAnimation:function(h,p){var m=p.get("animation"),v=h.axis,y=v.type==="category",E=p.get("snap");if(!E&&!y)return!1;if(m==="auto"||m==null){var T=this.animationThreshold;if(y&&v.getBandWidth()>T)return!0;if(E){var b=A.getAxisInfo(h).seriesDataCount,w=v.getExtent();return Math.abs(w[0]-w[1])/b>T}return!1}return m===!0},makeElOption:function(h,p,m,v,y){},createPointerEl:function(h,p,m,v){var y=p.pointer;if(y){var E=o(h).pointerEl=new C[y.type](r(p.pointer));h.add(E)}},createLabelEl:function(h,p,m,v){if(p.label){var y=o(h).labelEl=new C.Rect(r(p.label));h.add(y),t(y,v)}},updatePointerEl:function(h,p,m){var v=o(h).pointerEl;v&&p.pointer&&(v.setStyle(p.pointer.style),m(v,{shape:p.pointer.shape}))},updateLabelEl:function(h,p,m,v){var y=o(h).labelEl;y&&(y.setStyle(p.label.style),m(y,{shape:p.label.shape,position:p.label.position}),t(y,v))},_renderHandle:function(h){if(this._dragging||!this.updateHandleTransform)return;var p=this._axisPointerModel,m=this._api.getZr(),v=this._handle,y=p.getModel("handle"),E=p.get("status");if(!y.get("show")||!E||E==="hide"){v&&m.remove(v),this._handle=null;return}var T;this._handle||(T=!0,v=this._handle=C.createIcon(y.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(_){S.stop(_.event)},onmousedown:i(this._onHandleDragMove,this,0,0),drift:i(this._onHandleDragMove,this),ondragend:i(this._onHandleDragEnd,this)}),m.add(v)),s(v,p,!1);var b=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];v.setStyle(y.getItemStyle(null,b));var w=y.get("size");O.isArray(w)||(w=[w,w]),v.attr("scale",[w[0]/2,w[1]/2]),g.createOrUpdate(this,"_doDispatchAxisPointer",y.get("throttle")||0,"fixRate"),this._moveHandleToValue(h,T)},_moveHandleToValue:function(h,p){e(this._axisPointerModel,!p&&this._moveAnimation,this._handle,a(this.getHandleTransform(h,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(h,p){var m=this._handle;if(!m)return;this._dragging=!0;var v=this.updateHandleTransform(a(m),[h,p],this._axisModel,this._axisPointerModel);this._payloadInfo=v,m.stopAnimation(),m.attr(a(v)),o(m).lastProp=null,this._doDispatchAxisPointer()},_doDispatchAxisPointer:function(){var h=this._handle;if(!h)return;var p=this._payloadInfo,m=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:p.cursorPoint[0],y:p.cursorPoint[1],tooltipOption:p.tooltipOption,axesInfo:[{axisDim:m.axis.dim,axisIndex:m.componentIndex}]})},_onHandleDragEnd:function(h){this._dragging=!1;var p=this._handle;if(!p)return;var m=this._axisPointerModel.get("value");this._moveHandleToValue(m),this._api.dispatchAction({type:"hideTip"})},getHandleTransform:null,updateHandleTransform:null,clear:function(h){this._lastValue=null,this._lastStatus=null;var p=h.getZr(),m=this._group,v=this._handle;p&&m&&(this._lastGraphicKey=null,m&&p.remove(m),v&&p.remove(v),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(h,p,m){return m=m||0,{x:h[m],y:h[1-m],width:p[m],height:p[1-m]}}},n.prototype.constructor=n;function e(h,p,m,v){l(o(m).lastProp,v)||(o(m).lastProp=v,p?C.updateProps(m,v,h):(m.stopAnimation(),m.attr(v)))}function l(h,p){if(O.isObject(h)&&O.isObject(p)){var m=!0;return O.each(p,function(v,y){m=m&&l(h[y],v)}),!!m}else return h===p}function t(h,p){h[p.get("label.show")?"show":"hide"]()}function a(h){return{position:h.position.slice(),rotation:h.rotation||0}}function s(h,p,m){var v=p.get("z"),y=p.get("zlevel");h&&h.traverse(function(E){E.type!=="group"&&(v!=null&&(E.z=v),y!=null&&(E.zlevel=y),E.silent=m)})}x.enableClassExtend(n);var u=n;H.exports=u},"3OrL":function(H,F,d){var O=d("bYtY"),x=d("6Ic6"),C=d("IwbS"),A=d("y+Vt"),S=["itemStyle"],g=["emphasis","itemStyle"],f=x.extend({type:"boxplot",render:function(e,l,t){var a=e.getData(),s=this.group,u=this._data;this._data||s.removeAll();var h=e.get("layout")==="horizontal"?1:0;a.diff(u).add(function(p){if(a.hasValue(p)){var m=a.getItemLayout(p),v=o(m,a,p,h,!0);a.setItemGraphicEl(p,v),s.add(v)}}).update(function(p,m){var v=u.getItemGraphicEl(m);if(!a.hasValue(p)){s.remove(v);return}var y=a.getItemLayout(p);v?r(y,v,a,p):v=o(y,a,p,h),s.add(v),a.setItemGraphicEl(p,v)}).remove(function(p){var m=u.getItemGraphicEl(p);m&&s.remove(m)}).execute(),this._data=a},remove:function(e){var l=this.group,t=this._data;this._data=null,t&&t.eachItemGraphicEl(function(a){a&&l.remove(a)})},dispose:O.noop}),c=A.extend({type:"boxplotBoxPath",shape:{},buildPath:function(e,l){var t=l.points,a=0;for(e.moveTo(t[a][0],t[a][1]),a++;a<4;a++)e.lineTo(t[a][0],t[a][1]);for(e.closePath();a<t.length;a++)e.moveTo(t[a][0],t[a][1]),a++,e.lineTo(t[a][0],t[a][1])}});function o(e,l,t,a,s){var u=e.ends,h=new c({shape:{points:s?i(u,a,e):u}});return r(e,h,l,t,s),h}function r(e,l,t,a,s){var u=t.hostModel,h=C[s?"initProps":"updateProps"];h(l,{shape:{points:e.ends}},u,a);var p=t.getItemModel(a),m=p.getModel(S),v=t.getItemVisual(a,"color"),y=m.getItemStyle(["borderColor"]);y.stroke=v,y.strokeNoScale=!0,l.useStyle(y),l.z2=100;var E=p.getModel(g).getItemStyle();C.setHoverStyle(l,E)}function i(e,l,t){return O.map(e,function(a){return a=a.slice(),a[l]=t.initBaseline,a})}var n=f;H.exports=n},"3S7+":function(H,F,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("J4zp"),A=d.n(C),S=d("pVnL"),g=d.n(S),f=d("q1tI"),c=d.n(f),o=d("U8pU"),r=d("VTBJ"),i=d("Ff2n"),n=d("1OyB"),e=d("vuIU"),l=d("JX7q"),t=d("Ji7U"),a=d("LK+K"),s=d("i8i4"),u=d.n(s),h=d("l4aY"),p=d("m+aA"),m=d("c+Xe"),v=d("zT1h"),y=d("QC+M"),E=d("TSYQ"),T=d.n(E);function b(wn,Rn,kt){return kt?wn[0]===Rn[0]:wn[0]===Rn[0]&&wn[1]===Rn[1]}function w(wn,Rn,kt){var vt=wn[Rn]||{};return Object(r.a)(Object(r.a)({},vt),kt)}function _(wn,Rn,kt,vt){for(var Re=kt.points,Ke=Object.keys(wn),Pe=0;Pe<Ke.length;Pe+=1){var nt=Ke[Pe];if(b(wn[nt].points,Re,vt))return"".concat(Rn,"-placement-").concat(nt)}return""}var I=d("xEkU"),L=d.n(I),N=d("9mu1"),D=d("rePB"),R=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function k(wn,Rn){var kt={};return kt[wn.toLowerCase()]=Rn.toLowerCase(),kt["Webkit".concat(wn)]="webkit".concat(Rn),kt["Moz".concat(wn)]="moz".concat(Rn),kt["ms".concat(wn)]="MS".concat(Rn),kt["O".concat(wn)]="o".concat(Rn.toLowerCase()),kt}function M(wn,Rn){var kt={animationend:k("Animation","AnimationEnd"),transitionend:k("Transition","TransitionEnd")};return wn&&("AnimationEvent"in Rn||delete kt.animationend.animation,"TransitionEvent"in Rn||delete kt.transitionend.transition),kt}var U=M(R,typeof window!="undefined"?window:{}),B={};if(R){var j=document.createElement("div");B=j.style}var W={};function V(wn){if(W[wn])return W[wn];var Rn=U[wn];if(Rn)for(var kt=Object.keys(Rn),vt=kt.length,Re=0;Re<vt;Re+=1){var Ke=kt[Re];if(Object.prototype.hasOwnProperty.call(Rn,Ke)&&Ke in B)return W[wn]=Rn[Ke],W[wn]}return""}var z=V("animationend"),J=V("transitionend"),Z=!!(z&&J);function de(wn,Rn){if(!wn)return null;if(Object(o.a)(wn)==="object"){var kt=Rn.replace(/-\w/g,function(vt){return vt[1].toUpperCase()});return wn[kt]}return"".concat(wn,"-").concat(Rn)}var ie="none",ve="appear",xe="enter",_e="leave";function Ue(wn){var Rn=wn,kt=!!f.forwardRef;Object(o.a)(wn)==="object"&&(Rn=wn.transitionSupport,kt="forwardRef"in wn?wn.forwardRef:kt);function vt(Ke){return!!(Ke.motionName&&Rn)}var Re=function(Ke){Object(t.a)(nt,Ke);var Pe=Object(a.a)(nt);function nt(){var yt;return Object(n.a)(this,nt),yt=Pe.apply(this,arguments),yt.$cacheEle=null,yt.node=null,yt.raf=null,yt.destroyed=!1,yt.deadlineId=null,yt.state={status:ie,statusActive:!1,newStatus:!1,statusStyle:null},yt.onDomUpdate=function(){var Dt=yt.state,bt=Dt.status,It=Dt.newStatus,gr=yt.props,kr=gr.onAppearStart,wt=gr.onEnterStart,rt=gr.onLeaveStart,tt=gr.onAppearActive,Rt=gr.onEnterActive,Ft=gr.onLeaveActive,At=gr.motionAppear,Wt=gr.motionEnter,ot=gr.motionLeave;if(!vt(yt.props))return;var Bt=yt.getElement();yt.$cacheEle!==Bt&&(yt.removeEventListener(yt.$cacheEle),yt.addEventListener(Bt),yt.$cacheEle=Bt),It&&bt===ve&&At?yt.updateStatus(kr,null,null,function(){yt.updateActiveStatus(tt,ve)}):It&&bt===xe&&Wt?yt.updateStatus(wt,null,null,function(){yt.updateActiveStatus(Rt,xe)}):It&&bt===_e&&ot&&yt.updateStatus(rt,null,null,function(){yt.updateActiveStatus(Ft,_e)})},yt.onMotionEnd=function(Dt){if(Dt&&!Dt.deadline&&Dt.target!==yt.getElement())return;var bt=yt.state,It=bt.status,gr=bt.statusActive,kr=yt.props,wt=kr.onAppearEnd,rt=kr.onEnterEnd,tt=kr.onLeaveEnd;It===ve&&gr?yt.updateStatus(wt,{status:ie},Dt):It===xe&&gr?yt.updateStatus(rt,{status:ie},Dt):It===_e&&gr&&yt.updateStatus(tt,{status:ie},Dt)},yt.setNodeRef=function(Dt){var bt=yt.props.internalRef;yt.node=Dt,Object(m.b)(bt,Dt)},yt.getElement=function(){try{return Object(p.a)(yt.node||Object(l.a)(yt))}catch(Dt){return yt.$cacheEle}},yt.addEventListener=function(Dt){if(!Dt)return;Dt.addEventListener(J,yt.onMotionEnd),Dt.addEventListener(z,yt.onMotionEnd)},yt.removeEventListener=function(Dt){if(!Dt)return;Dt.removeEventListener(J,yt.onMotionEnd),Dt.removeEventListener(z,yt.onMotionEnd)},yt.updateStatus=function(Dt,bt,It,gr){var kr=Dt?Dt(yt.getElement(),It):null;if(kr===!1||yt.destroyed)return;var wt;gr&&(wt=function(){yt.nextFrame(gr)}),yt.setState(Object(r.a)({statusStyle:Object(o.a)(kr)==="object"?kr:null,newStatus:!1},bt),wt)},yt.updateActiveStatus=function(Dt,bt){yt.nextFrame(function(){var It=yt.state.status;if(It!==bt)return;var gr=yt.props.motionDeadline;yt.updateStatus(Dt,{statusActive:!0}),gr>0&&(yt.deadlineId=setTimeout(function(){yt.onMotionEnd({deadline:!0})},gr))})},yt.nextFrame=function(Dt){yt.cancelNextFrame(),yt.raf=L()(Dt)},yt.cancelNextFrame=function(){yt.raf&&(L.a.cancel(yt.raf),yt.raf=null)},yt}return Object(e.a)(nt,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var Dt,bt=this.state,It=bt.status,gr=bt.statusActive,kr=bt.statusStyle,wt=this.props,rt=wt.children,tt=wt.motionName,Rt=wt.visible,Ft=wt.removeOnLeave,At=wt.leavedClassName,Wt=wt.eventProps;return rt?It===ie||!vt(this.props)?Rt?rt(Object(r.a)({},Wt),this.setNodeRef):Ft?null:rt(Object(r.a)(Object(r.a)({},Wt),{},{className:At}),this.setNodeRef):rt(Object(r.a)(Object(r.a)({},Wt),{},{className:T()(de(tt,It),(Dt={},Object(D.a)(Dt,de(tt,"".concat(It,"-active")),gr),Object(D.a)(Dt,tt,typeof tt=="string"),Dt)),style:kr}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(Dt,bt){var It=bt.prevProps,gr=bt.status;if(!vt(Dt))return{};var kr=Dt.visible,wt=Dt.motionAppear,rt=Dt.motionEnter,tt=Dt.motionLeave,Rt=Dt.motionLeaveImmediately,Ft={prevProps:Dt};return(gr===ve&&!wt||gr===xe&&!rt||gr===_e&&!tt)&&(Ft.status=ie,Ft.statusActive=!1,Ft.newStatus=!1),!It&&kr&&wt&&(Ft.status=ve,Ft.statusActive=!1,Ft.newStatus=!0),It&&!It.visible&&kr&&rt&&(Ft.status=xe,Ft.statusActive=!1,Ft.newStatus=!0),(It&&It.visible&&!kr&&tt||!It&&Rt&&!kr&&tt)&&(Ft.status=_e,Ft.statusActive=!1,Ft.newStatus=!0),Ft}}]),nt}(f.Component);return Re.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},kt?f.forwardRef(function(Ke,Pe){return f.createElement(Re,Object.assign({internalRef:Pe},Ke))}):Re}var fe=Ue(Z),ke="add",se="keep",te="remove",Ve="removed";function ae(wn){var Rn;return wn&&Object(o.a)(wn)==="object"&&"key"in wn?Rn=wn:Rn={key:wn},Object(r.a)(Object(r.a)({},Rn),{},{key:String(Rn.key)})}function Q(){var wn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return wn.map(ae)}function G(){var wn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],kt=[],vt=0,Re=Rn.length,Ke=Q(wn),Pe=Q(Rn);Ke.forEach(function(Dt){for(var bt=!1,It=vt;It<Re;It+=1){var gr=Pe[It];if(gr.key===Dt.key){vt<It&&(kt=kt.concat(Pe.slice(vt,It).map(function(kr){return Object(r.a)(Object(r.a)({},kr),{},{status:ke})})),vt=It),kt.push(Object(r.a)(Object(r.a)({},gr),{},{status:se})),vt+=1,bt=!0;break}}bt||kt.push(Object(r.a)(Object(r.a)({},Dt),{},{status:te}))}),vt<Re&&(kt=kt.concat(Pe.slice(vt).map(function(Dt){return Object(r.a)(Object(r.a)({},Dt),{},{status:ke})})));var nt={};kt.forEach(function(Dt){var bt=Dt.key;nt[bt]=(nt[bt]||0)+1});var yt=Object.keys(nt).filter(function(Dt){return nt[Dt]>1});return yt.forEach(function(Dt){kt=kt.filter(function(bt){var It=bt.key,gr=bt.status;return It!==Dt||gr!==te}),kt.forEach(function(bt){bt.key===Dt&&(bt.status=se)})}),kt}var Y=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function me(wn){var Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fe,kt=function(vt){Object(t.a)(Ke,vt);var Re=Object(a.a)(Ke);function Ke(){var Pe;return Object(n.a)(this,Ke),Pe=Re.apply(this,arguments),Pe.state={keyEntities:[]},Pe.removeKey=function(nt){Pe.setState(function(yt){var Dt=yt.keyEntities;return{keyEntities:Dt.map(function(bt){return bt.key!==nt?bt:Object(r.a)(Object(r.a)({},bt),{},{status:Ve})})}})},Pe}return Object(e.a)(Ke,[{key:"render",value:function(){var nt=this,yt=this.state.keyEntities,Dt=this.props,bt=Dt.component,It=Dt.children,gr=Object(i.a)(Dt,["component","children"]),kr=bt||f.Fragment,wt={};return Y.forEach(function(rt){wt[rt]=gr[rt],delete gr[rt]}),delete gr.keys,f.createElement(kr,Object.assign({},gr),yt.map(function(rt){var tt=rt.status,Rt=Object(i.a)(rt,["status"]),Ft=tt===ke||tt===se;return f.createElement(Rn,Object.assign({},wt,{key:Rt.key,visible:Ft,eventProps:Rt,onLeaveEnd:function(){wt.onLeaveEnd&&wt.onLeaveEnd.apply(wt,arguments),nt.removeKey(Rt.key)}}),It)}))}}],[{key:"getDerivedStateFromProps",value:function(nt,yt){var Dt=nt.keys,bt=yt.keyEntities,It=Q(Dt);if(!wn)return{keyEntities:It.map(function(wt){return Object(r.a)(Object(r.a)({},wt),{},{status:se})})};var gr=G(bt,It),kr=bt.length;return{keyEntities:gr.filter(function(wt){for(var rt=null,tt=0;tt<kr;tt+=1){var Rt=bt[tt];if(Rt.key===wt.key){rt=Rt;break}}return!(rt&&rt.status===Ve&&wt.status===te)})}}}]),Ke}(f.Component);return kt.defaultProps={component:"div"},kt}var ue=me(Z),Ce=fe,Ie=function(Rn,kt){var vt=Rn.prefixCls,Re=Rn.className,Ke=Rn.style,Pe=Rn.children,nt=Rn.onMouseEnter,yt=Rn.onMouseLeave,Dt=Rn.onMouseDown,bt=Rn.onTouchStart,It=Pe;return f.Children.count(Pe)>1&&(It=f.createElement("div",{className:"".concat(vt,"-content")},Pe)),f.createElement("div",{ref:kt,className:Re,onMouseEnter:nt,onMouseLeave:yt,onMouseDown:Dt,onTouchStart:bt,style:Ke},It)},ce=f.forwardRef(Ie);ce.displayName="PopupInner";var Ae=ce;function Te(wn){var Rn=wn.prefixCls,kt=wn.motion,vt=wn.animation,Re=wn.transitionName;return kt||(vt?{motionName:"".concat(Rn,"-").concat(vt)}:Re?{motionName:Re}:null)}function Ge(wn){return wn&&wn.motionName}var gt=function(wn){Object(t.a)(kt,wn);var Rn=Object(a.a)(kt);function kt(){var vt;return Object(n.a)(this,kt),vt=Rn.apply(this,arguments),vt.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},vt.popupRef=c.a.createRef(),vt.alignRef=c.a.createRef(),vt.nextFrameState=null,vt.nextFrameId=null,vt.onAlign=function(Re,Ke){var Pe=vt.state.status,nt=vt.props,yt=nt.getClassNameFromAlign,Dt=nt.onAlign,bt=yt(Ke);Pe==="align"?vt.setState({alignClassName:bt,status:"aligned"},function(){vt.alignRef.current.forceAlign()}):Pe==="aligned"?(vt.setState({alignClassName:bt,status:"afterAlign"}),Dt(Re,Ke)):vt.setState({alignClassName:bt})},vt.onMotionEnd=function(){var Re=vt.props.visible;vt.setState({status:Re?"AfterMotion":"stable",inMotion:!1})},vt.setStateOnNextFrame=function(Re){vt.cancelFrameState(),vt.nextFrameState=Object(r.a)(Object(r.a)({},vt.nextFrameState),Re),vt.nextFrameId=L()(function(){var Ke=Object(r.a)({},vt.nextFrameState);vt.nextFrameState=null,vt.setState(Ke)})},vt.getMotion=function(){return Object(r.a)({},Te(vt.props))},vt.getAlignTarget=function(){var Re=vt.props,Ke=Re.point,Pe=Re.getRootDomNode;return Ke||Pe},vt.cancelFrameState=function(){L.a.cancel(vt.nextFrameId)},vt.renderPopupElement=function(){var Re=vt.state,Ke=Re.status,Pe=Re.targetHeight,nt=Re.targetWidth,yt=Re.alignClassName,Dt=vt.props,bt=Dt.prefixCls,It=Dt.className,gr=Dt.style,kr=Dt.stretch,wt=Dt.visible,rt=Dt.align,tt=Dt.destroyPopupOnHide,Rt=Dt.onMouseEnter,Ft=Dt.onMouseLeave,At=Dt.onMouseDown,Wt=Dt.onTouchStart,ot=Dt.children,Bt=T()(bt,It,yt),Ar="".concat(bt,"-hidden"),rr={};kr&&(kr.indexOf("height")!==-1?rr.height=Pe:kr.indexOf("minHeight")!==-1&&(rr.minHeight=Pe),kr.indexOf("width")!==-1?rr.width=nt:kr.indexOf("minWidth")!==-1&&(rr.minWidth=nt));var pr=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},rr),vt.getZIndexStyle()),gr),{},{opacity:Ke==="stable"||!wt?void 0:0,pointerEvents:Ke==="stable"||!wt?void 0:"none"}),tn=vt.getMotion(),hn=wt;wt&&Ke!=="beforeMotion"&&Ke!=="motion"&&Ke!=="stable"&&(tn.motionAppear=!1,tn.motionEnter=!1,tn.motionLeave=!1),(Ke==="afterAlign"||Ke==="beforeMotion")&&(hn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(si){var vi=tn==null?void 0:tn[si];tn[si]=function(){for(var xi=arguments.length,_i=new Array(xi),Qe=0;Qe<xi;Qe++)_i[Qe]=arguments[Qe];vi==null||vi.apply(void 0,_i),vt.setState({inMotion:!0})}});var Mn=!wt||Ke!=="align"&&Ke!=="aligned"&&Ke!=="stable",Xn=!0;return Ke==="stable"&&(Xn=wt),tt&&!Xn?null:c.a.createElement(Ce,Object.assign({visible:hn},tn,{removeOnLeave:!1,onEnterEnd:vt.onMotionEnd,onLeaveEnd:vt.onMotionEnd,leavedClassName:Ar}),function(si,vi){var xi=si.style,_i=si.className;return c.a.createElement(N.a,{target:vt.getAlignTarget(),key:"popup",ref:vt.alignRef,monitorWindowResize:!0,disabled:Mn,align:rt,onAlign:vt.onAlign},c.a.createElement(Ae,{prefixCls:bt,className:T()(Bt,_i),ref:Object(m.a)(vi,vt.popupRef),onMouseEnter:Rt,onMouseLeave:Ft,onMouseDown:At,onTouchStart:Wt,style:Object(r.a)(Object(r.a)({},pr),xi)},ot))})},vt.renderMaskElement=function(){var Re=vt.props,Ke=Re.mask,Pe=Re.maskMotion,nt=Re.maskTransitionName,yt=Re.maskAnimation,Dt=Re.prefixCls,bt=Re.visible;if(!Ke)return null;var It={};return Pe&&Pe.motionName&&(It=Object(r.a)({motionAppear:!0},Te({motion:Pe,prefixCls:Dt,transitionName:nt,animation:yt}))),c.a.createElement(Ce,Object.assign({},It,{visible:bt,removeOnLeave:!0}),function(gr){var kr=gr.className;return c.a.createElement("div",{style:vt.getZIndexStyle(),key:"mask",className:T()("".concat(Dt,"-mask"),kr)})})},vt}return Object(e.a)(kt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Re=this.state.status,Ke=this.props,Pe=Ke.getRootDomNode,nt=Ke.visible,yt=Ke.stretch;if(this.cancelFrameState(),nt&&Re!=="stable")switch(Re){case null:{this.setStateOnNextFrame({status:yt?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Ge(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var Dt=["measure","align",null,"beforeMotion","motion"],bt=Dt.indexOf(Re),It=Dt[bt+1];bt!==-1&&It&&this.setStateOnNextFrame({status:It})}}if(Re==="measure"){var gr=Pe();gr&&this.setStateOnNextFrame({targetHeight:gr.offsetHeight,targetWidth:gr.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Re=this.props.zIndex;return{zIndex:Re}}},{key:"render",value:function(){return c.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Re,Ke){var Pe=Re.visible,nt=Object(i.a)(Re,["visible"]),yt=Ke.prevVisible,Dt=Ke.status,bt=Ke.inMotion,It={prevVisible:Pe,status:Dt},gr=Te(nt);return yt===null&&Pe===!1?(It.status="stable",It.inMotion=!1):Pe!==yt&&(It.inMotion=!1,Pe||Ge(gr)&&bt?It.status=null:It.status="stable",Pe&&(It.alignClassName=null)),It}}]),kt}(f.Component),qe=gt,Le=f.createContext(null),Ot=Le;function $e(){}function xt(){return""}function Ht(){return window.document}var tr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Mt(wn){var Rn=function(kt){Object(t.a)(Re,kt);var vt=Object(a.a)(Re);function Re(Ke){var Pe;Object(n.a)(this,Re),Pe=vt.call(this,Ke),Pe.popupRef=c.a.createRef(),Pe.triggerRef=c.a.createRef(),Pe.onMouseEnter=function(yt){var Dt=Pe.props.mouseEnterDelay;Pe.fireEvents("onMouseEnter",yt),Pe.delaySetPopupVisible(!0,Dt,Dt?null:yt)},Pe.onMouseMove=function(yt){Pe.fireEvents("onMouseMove",yt),Pe.setPoint(yt)},Pe.onMouseLeave=function(yt){Pe.fireEvents("onMouseLeave",yt),Pe.delaySetPopupVisible(!1,Pe.props.mouseLeaveDelay)},Pe.onPopupMouseEnter=function(){Pe.clearDelayTimer()},Pe.onPopupMouseLeave=function(yt){if(yt.relatedTarget&&!yt.relatedTarget.setTimeout&&Pe.popupRef.current&&Pe.popupRef.current.popupRef.current&&Object(h.a)(Pe.popupRef.current.popupRef.current,yt.relatedTarget))return;Pe.delaySetPopupVisible(!1,Pe.props.mouseLeaveDelay)},Pe.onFocus=function(yt){Pe.fireEvents("onFocus",yt),Pe.clearDelayTimer(),Pe.isFocusToShow()&&(Pe.focusTime=Date.now(),Pe.delaySetPopupVisible(!0,Pe.props.focusDelay))},Pe.onMouseDown=function(yt){Pe.fireEvents("onMouseDown",yt),Pe.preClickTime=Date.now()},Pe.onTouchStart=function(yt){Pe.fireEvents("onTouchStart",yt),Pe.preTouchTime=Date.now()},Pe.onBlur=function(yt){Pe.fireEvents("onBlur",yt),Pe.clearDelayTimer(),Pe.isBlurToHide()&&Pe.delaySetPopupVisible(!1,Pe.props.blurDelay)},Pe.onContextMenu=function(yt){yt.preventDefault(),Pe.fireEvents("onContextMenu",yt),Pe.setPopupVisible(!0,yt)},Pe.onContextMenuClose=function(){Pe.isContextMenuToShow()&&Pe.close()},Pe.onClick=function(yt){if(Pe.fireEvents("onClick",yt),Pe.focusTime){var Dt;if(Pe.preClickTime&&Pe.preTouchTime?Dt=Math.min(Pe.preClickTime,Pe.preTouchTime):Pe.preClickTime?Dt=Pe.preClickTime:Pe.preTouchTime&&(Dt=Pe.preTouchTime),Math.abs(Dt-Pe.focusTime)<20)return;Pe.focusTime=0}Pe.preClickTime=0,Pe.preTouchTime=0,Pe.isClickToShow()&&(Pe.isClickToHide()||Pe.isBlurToHide())&&yt&&yt.preventDefault&&yt.preventDefault();var bt=!Pe.state.popupVisible;(Pe.isClickToHide()&&!bt||bt&&Pe.isClickToShow())&&Pe.setPopupVisible(!Pe.state.popupVisible,yt)},Pe.onPopupMouseDown=function(){if(Pe.hasPopupMouseDown=!0,clearTimeout(Pe.mouseDownTimeout),Pe.mouseDownTimeout=window.setTimeout(function(){Pe.hasPopupMouseDown=!1},0),Pe.context){var yt;(yt=Pe.context).onPopupMouseDown.apply(yt,arguments)}},Pe.onDocumentClick=function(yt){if(Pe.props.mask&&!Pe.props.maskClosable)return;var Dt=yt.target,bt=Pe.getRootDomNode(),It=Pe.getPopupDomNode();!Object(h.a)(bt,Dt)&&!Object(h.a)(It,Dt)&&!Pe.hasPopupMouseDown&&Pe.close()},Pe.getRootDomNode=function(){var yt=Pe.props.getTriggerDOMNode;if(yt)return yt(Pe.triggerRef.current);try{var Dt=Object(p.a)(Pe.triggerRef.current);if(Dt)return Dt}catch(bt){}return u.a.findDOMNode(Object(l.a)(Pe))},Pe.getPopupClassNameFromAlign=function(yt){var Dt=[],bt=Pe.props,It=bt.popupPlacement,gr=bt.builtinPlacements,kr=bt.prefixCls,wt=bt.alignPoint,rt=bt.getPopupClassNameFromAlign;return It&&gr&&Dt.push(_(gr,kr,yt,wt)),rt&&Dt.push(rt(yt)),Dt.join(" ")},Pe.getComponent=function(){var yt=Pe.props,Dt=yt.prefixCls,bt=yt.destroyPopupOnHide,It=yt.popupClassName,gr=yt.onPopupAlign,kr=yt.popupMotion,wt=yt.popupAnimation,rt=yt.popupTransitionName,tt=yt.popupStyle,Rt=yt.mask,Ft=yt.maskAnimation,At=yt.maskTransitionName,Wt=yt.maskMotion,ot=yt.zIndex,Bt=yt.popup,Ar=yt.stretch,rr=yt.alignPoint,pr=Pe.state,tn=pr.popupVisible,hn=pr.point,Mn=Pe.getPopupAlign(),Xn={};return Pe.isMouseEnterToShow()&&(Xn.onMouseEnter=Pe.onPopupMouseEnter),Pe.isMouseLeaveToHide()&&(Xn.onMouseLeave=Pe.onPopupMouseLeave),Xn.onMouseDown=Pe.onPopupMouseDown,Xn.onTouchStart=Pe.onPopupMouseDown,c.a.createElement(qe,Object.assign({prefixCls:Dt,destroyPopupOnHide:bt,visible:tn,point:rr&&hn,className:It,align:Mn,onAlign:gr,animation:wt,getClassNameFromAlign:Pe.getPopupClassNameFromAlign},Xn,{stretch:Ar,getRootDomNode:Pe.getRootDomNode,style:tt,mask:Rt,zIndex:ot,transitionName:rt,maskAnimation:Ft,maskTransitionName:At,maskMotion:Wt,ref:Pe.popupRef,motion:kr}),typeof Bt=="function"?Bt():Bt)},Pe.getContainer=function(){var yt=Object(l.a)(Pe),Dt=yt.props,bt=document.createElement("div");bt.style.position="absolute",bt.style.top="0",bt.style.left="0",bt.style.width="100%";var It=Dt.getPopupContainer?Dt.getPopupContainer(Pe.getRootDomNode()):Dt.getDocument().body;return It.appendChild(bt),bt},Pe.setPoint=function(yt){var Dt=Pe.props.alignPoint;if(!Dt||!yt)return;Pe.setState({point:{pageX:yt.pageX,pageY:yt.pageY}})},Pe.handlePortalUpdate=function(){Pe.state.prevPopupVisible!==Pe.state.popupVisible&&Pe.props.afterPopupVisibleChange(Pe.state.popupVisible)};var nt;return"popupVisible"in Ke?nt=!!Ke.popupVisible:nt=!!Ke.defaultPopupVisible,Pe.state={prevPopupVisible:nt,popupVisible:nt},tr.forEach(function(yt){Pe["fire".concat(yt)]=function(Dt){Pe.fireEvents(yt,Dt)}}),Pe}return Object(e.a)(Re,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Pe=this.props,nt=this.state;if(nt.popupVisible){var yt;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(yt=Pe.getDocument(),this.clickOutsideHandler=Object(v.a)(yt,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(yt=yt||Pe.getDocument(),this.touchOutsideHandler=Object(v.a)(yt,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(yt=yt||Pe.getDocument(),this.contextMenuOutsideHandler1=Object(v.a)(yt,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(v.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,nt=Pe.popupPlacement,yt=Pe.popupAlign,Dt=Pe.builtinPlacements;return nt&&Dt?w(Dt,nt,yt):yt}},{key:"setPopupVisible",value:function(Pe,nt){var yt=this.props.alignPoint,Dt=this.state.popupVisible;this.clearDelayTimer(),Dt!==Pe&&("popupVisible"in this.props||this.setState({popupVisible:Pe,prevPopupVisible:Dt}),this.props.onPopupVisibleChange(Pe)),yt&&nt&&this.setPoint(nt)}},{key:"delaySetPopupVisible",value:function(Pe,nt,yt){var Dt=this,bt=nt*1e3;if(this.clearDelayTimer(),bt){var It=yt?{pageX:yt.pageX,pageY:yt.pageY}:null;this.delayTimer=window.setTimeout(function(){Dt.setPopupVisible(Pe,It),Dt.clearDelayTimer()},bt)}else this.setPopupVisible(Pe,yt)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(Pe){var nt=this.props.children.props,yt=this.props;return nt[Pe]&&yt[Pe]?this["fire".concat(Pe)]:nt[Pe]||yt[Pe]}},{key:"isClickToShow",value:function(){var Pe=this.props,nt=Pe.action,yt=Pe.showAction;return nt.indexOf("click")!==-1||yt.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Pe=this.props,nt=Pe.action,yt=Pe.showAction;return nt.indexOf("contextMenu")!==-1||yt.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Pe=this.props,nt=Pe.action,yt=Pe.hideAction;return nt.indexOf("click")!==-1||yt.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Pe=this.props,nt=Pe.action,yt=Pe.showAction;return nt.indexOf("hover")!==-1||yt.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Pe=this.props,nt=Pe.action,yt=Pe.hideAction;return nt.indexOf("hover")!==-1||yt.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Pe=this.props,nt=Pe.action,yt=Pe.showAction;return nt.indexOf("focus")!==-1||yt.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Pe=this.props,nt=Pe.action,yt=Pe.hideAction;return nt.indexOf("focus")!==-1||yt.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(Pe,nt){var yt=this.props.children.props[Pe];yt&&yt(nt);var Dt=this.props[Pe];Dt&&Dt(nt)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Pe=this.state.popupVisible,nt=this.props,yt=nt.children,Dt=nt.forceRender,bt=nt.alignPoint,It=nt.className,gr=nt.autoDestroy,kr=c.a.Children.only(yt),wt={key:"trigger"};this.isContextMenuToShow()?wt.onContextMenu=this.onContextMenu:wt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(wt.onClick=this.onClick,wt.onMouseDown=this.onMouseDown,wt.onTouchStart=this.onTouchStart):(wt.onClick=this.createTwoChains("onClick"),wt.onMouseDown=this.createTwoChains("onMouseDown"),wt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(wt.onMouseEnter=this.onMouseEnter,bt&&(wt.onMouseMove=this.onMouseMove)):wt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?wt.onMouseLeave=this.onMouseLeave:wt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(wt.onFocus=this.onFocus,wt.onBlur=this.onBlur):(wt.onFocus=this.createTwoChains("onFocus"),wt.onBlur=this.createTwoChains("onBlur"));var rt=T()(kr&&kr.props&&kr.props.className,It);rt&&(wt.className=rt);var tt=Object(r.a)({},wt);Object(m.c)(kr)&&(tt.ref=Object(m.a)(this.triggerRef,kr.ref));var Rt=c.a.cloneElement(kr,tt),Ft;return(Pe||this.popupRef.current||Dt)&&(Ft=c.a.createElement(wn,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Pe&&gr&&(Ft=null),c.a.createElement(Ot.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},Rt,Ft)}}],[{key:"getDerivedStateFromProps",value:function(Pe,nt){var yt=Pe.popupVisible,Dt={};return yt!==void 0&&nt.popupVisible!==yt&&(Dt.popupVisible=yt,Dt.prevPopupVisible=nt.popupVisible),Dt}}]),Re}(c.a.Component);return Rn.contextType=Ot,Rn.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:xt,getDocument:Ht,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},Rn}var Tt=Mt(y.a),Xe={adjustX:1,adjustY:1},oe=[0,0],X={left:{points:["cr","cl"],overflow:Xe,offset:[-4,0],targetOffset:oe},right:{points:["cl","cr"],overflow:Xe,offset:[4,0],targetOffset:oe},top:{points:["bc","tc"],overflow:Xe,offset:[0,-4],targetOffset:oe},bottom:{points:["tc","bc"],overflow:Xe,offset:[0,4],targetOffset:oe},topLeft:{points:["bl","tl"],overflow:Xe,offset:[0,-4],targetOffset:oe},leftTop:{points:["tr","tl"],overflow:Xe,offset:[-4,0],targetOffset:oe},topRight:{points:["br","tr"],overflow:Xe,offset:[0,-4],targetOffset:oe},rightTop:{points:["tl","tr"],overflow:Xe,offset:[4,0],targetOffset:oe},bottomRight:{points:["tr","br"],overflow:Xe,offset:[0,4],targetOffset:oe},rightBottom:{points:["bl","br"],overflow:Xe,offset:[4,0],targetOffset:oe},bottomLeft:{points:["tl","bl"],overflow:Xe,offset:[0,4],targetOffset:oe},leftBottom:{points:["br","bl"],overflow:Xe,offset:[-4,0],targetOffset:oe}},Be=X,Ee=function(Rn){var kt=Rn.overlay,vt=Rn.prefixCls,Re=Rn.id,Ke=Rn.overlayInnerStyle;return f.createElement("div",{className:"".concat(vt,"-inner"),id:Re,role:"tooltip",style:Ke},typeof kt=="function"?kt():kt)},ee=Ee,lt=function(Rn,kt){var vt=Rn.overlayClassName,Re=Rn.trigger,Ke=Re===void 0?["hover"]:Re,Pe=Rn.mouseEnterDelay,nt=Pe===void 0?0:Pe,yt=Rn.mouseLeaveDelay,Dt=yt===void 0?.1:yt,bt=Rn.overlayStyle,It=Rn.prefixCls,gr=It===void 0?"rc-tooltip":It,kr=Rn.children,wt=Rn.onVisibleChange,rt=Rn.afterVisibleChange,tt=Rn.transitionName,Rt=Rn.animation,Ft=Rn.placement,At=Ft===void 0?"right":Ft,Wt=Rn.align,ot=Wt===void 0?{}:Wt,Bt=Rn.destroyTooltipOnHide,Ar=Bt===void 0?!1:Bt,rr=Rn.defaultVisible,pr=Rn.getTooltipContainer,tn=Rn.overlayInnerStyle,hn=Object(i.a)(Rn,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),Mn=Object(f.useRef)(null);Object(f.useImperativeHandle)(kt,function(){return Mn.current});var Xn=Object(r.a)({},hn);"visible"in Rn&&(Xn.popupVisible=Rn.visible);var si=function(){var we=Rn.arrowContent,Ne=we===void 0?null:we,Fe=Rn.overlay,Ye=Rn.id;return[f.createElement("div",{className:"".concat(gr,"-arrow"),key:"arrow"},Ne),f.createElement(ee,{key:"content",prefixCls:gr,id:Ye,overlay:Fe,overlayInnerStyle:tn})]},vi=!1,xi=!1;if(typeof Ar=="boolean")vi=Ar;else if(Ar&&Object(o.a)(Ar)==="object"){var _i=Ar.keepParent;vi=_i===!0,xi=_i===!1}return f.createElement(Tt,Object.assign({popupClassName:vt,prefixCls:gr,popup:si,action:Ke,builtinPlacements:X,popupPlacement:At,ref:Mn,popupAlign:ot,getPopupContainer:pr,onPopupVisibleChange:wt,afterPopupVisibleChange:rt,popupTransitionName:tt,popupAnimation:Rt,defaultPopupVisible:rr,destroyPopupOnHide:vi,autoDestroy:xi,mouseLeaveDelay:Dt,popupStyle:bt,mouseEnterDelay:nt},Xn),kr)},Ct=Object(f.forwardRef)(lt),dt=Ct,_t={adjustX:1,adjustY:1},ir={adjustX:0,adjustY:0},$r=[0,0];function nr(wn){return typeof wn=="boolean"?wn?_t:ir:g()(g()({},ir),wn)}function lr(wn){var Rn=wn.arrowWidth,kt=Rn===void 0?5:Rn,vt=wn.horizontalArrowShift,Re=vt===void 0?16:vt,Ke=wn.verticalArrowShift,Pe=Ke===void 0?8:Ke,nt=wn.autoAdjustOverflow,yt={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(Re+kt),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(Pe+kt)]},topRight:{points:["br","tc"],offset:[Re+kt,-4]},rightTop:{points:["tl","cr"],offset:[4,-(Pe+kt)]},bottomRight:{points:["tr","bc"],offset:[Re+kt,4]},rightBottom:{points:["bl","cr"],offset:[4,Pe+kt]},bottomLeft:{points:["tl","bc"],offset:[-(Re+kt),4]},leftBottom:{points:["br","cl"],offset:[-4,Pe+kt]}};return Object.keys(yt).forEach(function(Dt){yt[Dt]=wn.arrowPointAtCenter?g()(g()({},yt[Dt]),{overflow:nr(nt),targetOffset:$r}):g()(g()({},X[Dt]),{overflow:nr(nt)}),yt[Dt].ignoreShake=!0}),yt}var zt=d("0n0R"),Ut=d("H84U"),st=d("09Wf"),Hr=function(Rn,kt){var vt={},Re=g()({},Rn);return kt.forEach(function(Ke){Rn&&Ke in Rn&&(vt[Ke]=Rn[Ke],delete Re[Ke])}),{picked:vt,omitted:Re}},mn=new RegExp("^(".concat(st.a.join("|"),")(-inverse)?$"));function In(wn,Rn){var kt=wn.type;if((kt.__ANT_BUTTON===!0||kt.__ANT_SWITCH===!0||kt.__ANT_CHECKBOX===!0||wn.type==="button")&&wn.props.disabled){var vt=Hr(wn.props.style,["position","left","right","top","bottom","float","display","zIndex"]),Re=vt.picked,Ke=vt.omitted,Pe=g()(g()({display:"inline-block"},Re),{cursor:"not-allowed",width:wn.props.block?"100%":null}),nt=g()(g()({},Ke),{pointerEvents:"none"}),yt=Object(zt.a)(wn,{style:nt,className:null});return f.createElement("span",{style:Pe,className:T()(wn.props.className,"".concat(Rn,"-disabled-compatible-wrapper"))},yt)}return wn}var Yn=f.forwardRef(function(wn,Rn){var kt,vt=f.useContext(Ut.b),Re=vt.getPopupContainer,Ke=vt.getPrefixCls,Pe=vt.direction,nt=f.useState(!!wn.visible||!!wn.defaultVisible),yt=A()(nt,2),Dt=yt[0],bt=yt[1];f.useEffect(function(){"visible"in wn&&bt(wn.visible)},[wn.visible]);var It=function(){var _i=wn.title,Qe=wn.overlay;return!_i&&!Qe&&_i!==0},gr=function(_i){"visible"in wn||bt(It()?!1:_i),wn.onVisibleChange&&!It()&&wn.onVisibleChange(_i)},kr=function(){var _i=wn.builtinPlacements,Qe=wn.arrowPointAtCenter,we=wn.autoAdjustOverflow;return _i||lr({arrowPointAtCenter:Qe,autoAdjustOverflow:we})},wt=function(_i,Qe){var we=kr(),Ne=Object.keys(we).filter(function(We){return we[We].points[0]===Qe.points[0]&&we[We].points[1]===Qe.points[1]})[0];if(!Ne)return;var Fe=_i.getBoundingClientRect(),Ye={top:"50%",left:"50%"};Ne.indexOf("top")>=0||Ne.indexOf("Bottom")>=0?Ye.top="".concat(Fe.height-Qe.offset[1],"px"):(Ne.indexOf("Top")>=0||Ne.indexOf("bottom")>=0)&&(Ye.top="".concat(-Qe.offset[1],"px")),Ne.indexOf("left")>=0||Ne.indexOf("Right")>=0?Ye.left="".concat(Fe.width-Qe.offset[0],"px"):(Ne.indexOf("right")>=0||Ne.indexOf("Left")>=0)&&(Ye.left="".concat(-Qe.offset[0],"px")),_i.style.transformOrigin="".concat(Ye.left," ").concat(Ye.top)},rt=function(){var _i=wn.title,Qe=wn.overlay;return _i===0?_i:Qe||_i||""},tt=wn.prefixCls,Rt=wn.openClassName,Ft=wn.getPopupContainer,At=wn.getTooltipContainer,Wt=wn.overlayClassName,ot=wn.color,Bt=wn.overlayInnerStyle,Ar=wn.children,rr=Ke("tooltip",tt),pr=Dt;!("visible"in wn)&&It()&&(pr=!1);var tn=In(Object(zt.b)(Ar)?Ar:f.createElement("span",null,Ar),rr),hn=tn.props,Mn=T()(hn.className,x()({},Rt||"".concat(rr,"-open"),!0)),Xn=T()(Wt,(kt={},x()(kt,"".concat(rr,"-rtl"),Pe==="rtl"),x()(kt,"".concat(rr,"-").concat(ot),ot&&mn.test(ot)),kt)),si,vi;return ot&&!mn.test(ot)&&(si=g()(g()({},Bt),{background:ot}),vi={background:ot}),f.createElement(dt,g()({},wn,{prefixCls:rr,overlayClassName:Xn,getTooltipContainer:Ft||At||Re,ref:Rn,builtinPlacements:kr(),overlay:rt(),visible:pr,onVisibleChange:gr,onPopupAlign:wt,overlayInnerStyle:si,arrowContent:f.createElement("span",{className:"".concat(rr,"-arrow-content"),style:vi})}),pr?Object(zt.a)(tn,{className:Mn}):tn)});Yn.displayName="Tooltip",Yn.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var Mi=F.a=Yn},"3TkU":function(H,F,d){d("aTJb"),d("OlYY"),d("fc+c"),d("QUw5"),d("Swgg"),d("LBfv"),d("noeP")},"3X6L":function(H,F,d){var O=d("bYtY"),x=d("7a+S"),C=d("OKJ2"),A=x.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:[]}});O.mixin(A,C);var S=A;H.exports=S},"3e3G":function(H,F,d){var O=d("bYtY"),x=d("QuXc"),C=function(g,f,c,o,r){this.x=g==null?.5:g,this.y=f==null?.5:f,this.r=c==null?.5:c,this.type="radial",this.global=r||!1,x.call(this,o)};C.prototype={constructor:C},O.inherits(C,x);var A=C;H.exports=A},"3gBT":function(H,F){var d=2311;function O(){return d++}H.exports=O},"3hzK":function(H,F){var d={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")}}};H.exports=d},"3m61":function(H,F){function d(x){return x instanceof Array||(x=[x,x]),x}function O(x){x.eachSeriesByType("graph",function(C){var A=C.getGraph(),S=C.getEdgeData(),g=d(C.get("edgeSymbol")),f=d(C.get("edgeSymbolSize")),c="lineStyle.color".split("."),o="lineStyle.opacity".split(".");S.setVisual("fromSymbol",g&&g[0]),S.setVisual("toSymbol",g&&g[1]),S.setVisual("fromSymbolSize",f&&f[0]),S.setVisual("toSymbolSize",f&&f[1]),S.setVisual("color",C.get(c)),S.setVisual("opacity",C.get(o)),S.each(function(r){var i=S.getItemModel(r),n=A.getEdgeByIndex(r),e=d(i.getShallow("symbol",!0)),l=d(i.getShallow("symbolSize",!0)),t=i.get(c),a=i.get(o);switch(t){case"source":t=n.node1.getVisual("color");break;case"target":t=n.node2.getVisual("color");break}e[0]&&n.setVisual("fromSymbol",e[0]),e[1]&&n.setVisual("toSymbol",e[1]),l[0]&&n.setVisual("fromSymbolSize",l[0]),l[1]&&n.setVisual("toSymbolSize",l[1]),n.setVisual("color",t),n.setVisual("opacity",a)})})}H.exports=O},"3ouR":function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="CloseSquareOutlined";var f=F.a=x.forwardRef(g)},"3y9D":function(H,F,d){(function(O,x){H.exports=F=x(d("Ib8C"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.WordArray,S=C.Hasher,g=x.algo,f=[],c=g.SHA1=S.extend({_doReset:function(){this._hash=new A.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,i){for(var n=this._hash.words,e=n[0],l=n[1],t=n[2],a=n[3],s=n[4],u=0;u<80;u++){if(u<16)f[u]=r[i+u]|0;else{var h=f[u-3]^f[u-8]^f[u-14]^f[u-16];f[u]=h<<1|h>>>31}var p=(e<<5|e>>>27)+s+f[u];u<20?p+=(l&t|~l&a)+1518500249:u<40?p+=(l^t^a)+1859775393:u<60?p+=(l&t|l&a|t&a)-1894007588:p+=(l^t^a)-899497514,s=a,a=t,t=l<<30|l>>>2,l=e,e=p}n[0]=n[0]+e|0,n[1]=n[1]+l|0,n[2]=n[2]+t|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0},_doFinalize:function(){var r=this._data,i=r.words,n=this._nDataBytes*8,e=r.sigBytes*8;return i[e>>>5]|=128<<24-e%32,i[(e+64>>>9<<4)+14]=Math.floor(n/4294967296),i[(e+64>>>9<<4)+15]=n,r.sigBytes=i.length*4,this._process(),this._hash},clone:function(){var r=S.clone.call(this);return r._hash=this._hash.clone(),r}});x.SHA1=S._createHelper(c),x.HmacSHA1=S._createHmacHelper(c)}(),O.SHA1})},"3zoK":function(H,F,d){var O=d("bYtY"),x=d("bLfw"),C=d("KCsZ"),A=d("nkfE"),S=d("OELB"),g=d("ICMv"),f=x.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return C([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(i){var n=this.activeIntervals=O.clone(i);if(n)for(var e=n.length-1;e>=0;e--)S.asc(n[e])},getActiveState:function(i){var n=this.activeIntervals;if(!n.length)return"normal";if(i==null||isNaN(i))return"inactive";if(n.length===1){var e=n[0];if(e[0]<=i&&i<=e[1])return"active"}else for(var l=0,t=n.length;l<t;l++)if(n[l][0]<=i&&i<=n[l][1])return"active";return"inactive"}}),c={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};O.merge(f.prototype,g);function o(i,n){return n.type||(n.data?"category":"value")}A("parallel",f,o,c);var r=f;H.exports=r},"49sm":function(H,F){var d={}.toString;H.exports=Array.isArray||function(O){return d.call(O)=="[object Array]"}},"4Feb":function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=d("IwbS"),S=d("x3X8"),g=S.getDefaultLabel,f=d("MwEJ"),c=d("nVfU"),o=c.getLayoutOnAxis,r=d("gPAo"),i=d("T4UG"),n=d("Qxkt"),e=d("6Ic6"),l=d("sK/D"),t=l.createClipPath,a=d("qj72"),s=d("ANjR"),u=d("MHtr"),h=d("6usn"),p=d("Rx6q"),m=A.CACHED_LABEL_STYLE_PROPERTIES,v=["itemStyle"],y=["emphasis","itemStyle"],E=["label"],T=["emphasis","label"],b="e\0\0",w={cartesian2d:a,geo:s,singleAxis:u,polar:h,calendar:p};i.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(ie,ve){return f(this.getSource(),this)},getDataParams:function(ie,ve,xe){var _e=i.prototype.getDataParams.apply(this,arguments);return xe&&(_e.info=xe.info),_e}}),e.extend({type:"custom",_data:null,render:function(ie,ve,xe,_e){var Ue=this._data,fe=ie.getData(),ke=this.group,se=N(ie,fe,ve,xe);fe.diff(Ue).add(function(Ve){R(null,Ve,se(Ve,_e),ie,ke,fe)}).update(function(Ve,ae){var Q=Ue.getItemGraphicEl(ae);R(Q,Ve,se(Ve,_e),ie,ke,fe)}).remove(function(Ve){var ae=Ue.getItemGraphicEl(Ve);ae&&ke.remove(ae)}).execute();var te=ie.get("clip",!0)?t(ie.coordinateSystem,!1,ie):null;te?ke.setClipPath(te):ke.removeClipPath(),this._data=fe},incrementalPrepareRender:function(ie,ve,xe){this.group.removeAll(),this._data=null},incrementalRender:function(ie,ve,xe,_e,Ue){var fe=ve.getData(),ke=N(ve,fe,xe,_e);function se(ae){ae.isGroup||(ae.incremental=!0,ae.useHoverLayer=!0)}for(var te=ie.start;te<ie.end;te++){var Ve=R(null,te,ke(te,Ue),ve,this.group,fe);Ve.traverse(se)}},dispose:C.noop,filterForExposedEvent:function(ie,ve,xe,_e){var Ue=ve.element;if(Ue==null||xe.name===Ue)return!0;for(;(xe=xe.parent)&&xe!==this.group;)if(xe.name===Ue)return!0;return!1}});function _(ie){var ve=ie.type,xe;if(ve==="path"){var _e=ie.shape,Ue=_e.width!=null&&_e.height!=null?{x:_e.x||0,y:_e.y||0,width:_e.width,height:_e.height}:null,fe=J(_e);xe=A.makePath(fe,null,Ue,_e.layout||"center"),xe.__customPathData=fe}else if(ve==="image")xe=new A.Image({}),xe.__customImagePath=ie.style.image;else if(ve==="text")xe=new A.Text({}),xe.__customText=ie.style.text;else if(ve==="group")xe=new A.Group;else{if(ve==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var ke=A.getShapeClass(ve);xe=new ke}return xe.__customGraphicType=ve,xe.name=ie.name,xe}function I(ie,ve,xe,_e,Ue,fe,ke){var se={},te=xe.style||{};if(xe.shape&&(se.shape=C.clone(xe.shape)),xe.position&&(se.position=xe.position.slice()),xe.scale&&(se.scale=xe.scale.slice()),xe.origin&&(se.origin=xe.origin.slice()),xe.rotation&&(se.rotation=xe.rotation),ie.type==="image"&&xe.style){var Ve=se.style={};C.each(["x","y","width","height"],function(G){L(G,Ve,te,ie.style,fe)})}if(ie.type==="text"&&xe.style){var Ve=se.style={};C.each(["x","y"],function(Y){L(Y,Ve,te,ie.style,fe)}),!te.hasOwnProperty("textFill")&&te.fill&&(te.textFill=te.fill),!te.hasOwnProperty("textStroke")&&te.stroke&&(te.textStroke=te.stroke)}if(ie.type!=="group"&&(ie.useStyle(te),fe)){ie.style.opacity=0;var ae=te.opacity;ae==null&&(ae=1),A.initProps(ie,{style:{opacity:ae}},_e,ve)}fe?ie.attr(se):A.updateProps(ie,se,_e,ve),xe.hasOwnProperty("z2")&&ie.attr("z2",xe.z2||0),xe.hasOwnProperty("silent")&&ie.attr("silent",xe.silent),xe.hasOwnProperty("invisible")&&ie.attr("invisible",xe.invisible),xe.hasOwnProperty("ignore")&&ie.attr("ignore",xe.ignore),xe.hasOwnProperty("info")&&ie.attr("info",xe.info);var Q=xe.styleEmphasis;A.setElementHoverStyle(ie,Q),ke&&A.setAsHighDownDispatcher(ie,Q!==!1)}function L(ie,ve,xe,_e,Ue){xe[ie]!=null&&!Ue&&(ve[ie]=xe[ie],xe[ie]=_e[ie])}function N(ie,ve,xe,_e){var Ue=ie.get("renderItem"),fe=ie.coordinateSystem,ke={};fe&&(ke=fe.prepareCustoms?fe.prepareCustoms():w[fe.type](fe));var se=C.defaults({getWidth:_e.getWidth,getHeight:_e.getHeight,getZr:_e.getZr,getDevicePixelRatio:_e.getDevicePixelRatio,value:Ce,style:Ie,styleEmphasis:ce,visual:Ae,barLayout:Te,currentSeriesIndices:Ge,font:gt},ke.api||{}),te={context:{},seriesId:ie.id,seriesName:ie.name,seriesIndex:ie.seriesIndex,coordSys:ke.coordSys,dataInsideLength:ve.count(),encode:D(ie.getData())},Ve,ae=!0,Q,G,Y,me;return function(qe,Le){return Ve=qe,ae=!0,Ue&&Ue(C.defaults({dataIndexInside:qe,dataIndex:ve.getRawIndex(qe),actionType:Le?Le.type:null},te),se)};function ue(qe){qe==null&&(qe=Ve),ae&&(Q=ve.getItemModel(qe),G=Q.getModel(E),Y=Q.getModel(T),me=ve.getItemVisual(qe,"color"),ae=!1)}function Ce(qe,Le){return Le==null&&(Le=Ve),ve.get(ve.getDimension(qe||0),Le)}function Ie(qe,Le){Le==null&&(Le=Ve),ue(Le);var Ot=Q.getModel(v).getItemStyle();me!=null&&(Ot.fill=me);var $e=ve.getItemVisual(Le,"opacity");$e!=null&&(Ot.opacity=$e);var xt=qe?W(qe,G):G;return A.setTextStyle(Ot,xt,null,{autoColor:me,isRectText:!0}),Ot.text=xt.getShallow("show")?C.retrieve2(ie.getFormattedLabel(Le,"normal"),g(ve,Le)):null,qe&&V(Ot,qe),Ot}function ce(qe,Le){Le==null&&(Le=Ve),ue(Le);var Ot=Q.getModel(y).getItemStyle(),$e=qe?W(qe,Y):Y;return A.setTextStyle(Ot,$e,null,{isRectText:!0},!0),Ot.text=$e.getShallow("show")?C.retrieve3(ie.getFormattedLabel(Le,"emphasis"),ie.getFormattedLabel(Le,"normal"),g(ve,Le)):null,qe&&V(Ot,qe),Ot}function Ae(qe,Le){return Le==null&&(Le=Ve),ve.getItemVisual(Le,qe)}function Te(qe){if(fe.getBaseAxis){var Le=fe.getBaseAxis();return o(C.defaults({axis:Le},qe),_e)}}function Ge(){return xe.getCurrentSeriesIndices()}function gt(qe){return A.getFont(qe,xe)}}function D(ie){var ve={};return C.each(ie.dimensions,function(xe,_e){var Ue=ie.getDimensionInfo(xe);if(!Ue.isExtraCoord){var fe=Ue.coordDim,ke=ve[fe]=ve[fe]||[];ke[Ue.coordDimIndex]=_e}}),ve}function R(ie,ve,xe,_e,Ue,fe){return ie=k(ie,ve,xe,_e,Ue,fe,!0),ie&&fe.setItemGraphicEl(ve,ie),ie}function k(ie,ve,xe,_e,Ue,fe,ke){var se=!xe;xe=xe||{};var te=xe.type,Ve=xe.shape,ae=xe.style;if(ie&&(se||te!=null&&te!==ie.__customGraphicType||te==="path"&&Z(Ve)&&J(Ve)!==ie.__customPathData||te==="image"&&de(ae,"image")&&ae.image!==ie.__customImagePath||te==="text"&&de(Ve,"text")&&ae.text!==ie.__customText)&&(Ue.remove(ie),ie=null),se)return;var Q=!ie;return!ie&&(ie=_(xe)),I(ie,ve,xe,_e,fe,Q,ke),te==="group"&&M(ie,ve,xe,_e,fe),Ue.add(ie),ie}function M(ie,ve,xe,_e,Ue){var fe=xe.children,ke=fe?fe.length:0,se=xe.$mergeChildren,te=se==="byName"||xe.diffChildrenByName,Ve=se===!1;if(!ke&&!te&&!Ve)return;if(te){U({oldChildren:ie.children()||[],newChildren:fe||[],dataIndex:ve,animatableModel:_e,group:ie,data:Ue});return}Ve&&ie.removeAll();for(var ae=0;ae<ke;ae++)fe[ae]&&k(ie.childAt(ae),ve,fe[ae],_e,ie,Ue)}function U(ie){new r(ie.oldChildren,ie.newChildren,B,B,ie).add(j).update(j).remove(z).execute()}function B(ie,ve){var xe=ie&&ie.name;return xe!=null?xe:b+ve}function j(ie,ve){var xe=this.context,_e=ie!=null?xe.newChildren[ie]:null,Ue=ve!=null?xe.oldChildren[ve]:null;k(Ue,xe.dataIndex,_e,xe.animatableModel,xe.group,xe.data)}function W(ie,ve){var xe=new n({},ve);return C.each(m,function(_e,Ue){ie.hasOwnProperty(_e)&&(xe.option[Ue]=ie[_e])}),xe}function V(ie,ve){for(var xe in ve)(ve.hasOwnProperty(xe)||!m.hasOwnProperty(xe))&&(ie[xe]=ve[xe])}function z(ie){var ve=this.context,xe=ve.oldChildren[ie];xe&&ve.group.remove(xe)}function J(ie){return ie&&(ie.pathData||ie.d)}function Z(ie){return ie&&(ie.hasOwnProperty("pathData")||ie.hasOwnProperty("d"))}function de(ie,ve){return ie&&ie.hasOwnProperty(ve)}},"4HMb":function(H,F,d){var O=d("bYtY"),x=d("6GrX"),C=d("4NO4"),A=C.makeInner,S=d("aX7z"),g=S.makeLabelFormatter,f=S.getOptionCategoryInterval,c=S.shouldShowAllLabels,o=A();function r(E){return E.type==="category"?n(E):t(E)}function i(E,T){return E.type==="category"?l(E,T):{ticks:E.scale.getTicks()}}function n(E){var T=E.getLabelModel(),b=e(E,T);return!T.get("show")||E.scale.isBlank()?{labels:[],labelCategoryInterval:b.labelCategoryInterval}:b}function e(E,T){var b=a(E,"labels"),w=f(T),_=s(b,w);if(_)return _;var I,L;return O.isFunction(w)?I=y(E,w):(L=w==="auto"?h(E):w,I=v(E,L)),u(b,w,{labels:I,labelCategoryInterval:L})}function l(E,T){var b=a(E,"ticks"),w=f(T),_=s(b,w);if(_)return _;var I,L;if((!T.get("show")||E.scale.isBlank())&&(I=[]),O.isFunction(w))I=y(E,w,!0);else if(w==="auto"){var N=e(E,E.getLabelModel());L=N.labelCategoryInterval,I=O.map(N.labels,function(D){return D.tickValue})}else L=w,I=v(E,L,!0);return u(b,w,{ticks:I,tickCategoryInterval:L})}function t(E){var T=E.scale.getTicks(),b=g(E);return{labels:O.map(T,function(w,_){return{formattedLabel:b(w,_),rawLabel:E.scale.getLabel(w),tickValue:w}})}}function a(E,T){return o(E)[T]||(o(E)[T]=[])}function s(E,T){for(var b=0;b<E.length;b++)if(E[b].key===T)return E[b].value}function u(E,T,b){return E.push({key:T,value:b}),b}function h(E){var T=o(E).autoInterval;return T!=null?T:o(E).autoInterval=E.calculateCategoryInterval()}function p(E){var T=m(E),b=g(E),w=(T.axisRotate-T.labelRotate)/180*Math.PI,_=E.scale,I=_.getExtent(),L=_.count();if(I[1]-I[0]<1)return 0;var N=1;L>40&&(N=Math.max(1,Math.floor(L/40)));for(var D=I[0],R=E.dataToCoord(D+1)-E.dataToCoord(D),k=Math.abs(R*Math.cos(w)),M=Math.abs(R*Math.sin(w)),U=0,B=0;D<=I[1];D+=N){var j=0,W=0,V=x.getBoundingRect(b(D),T.font,"center","top");j=V.width*1.3,W=V.height*1.3,U=Math.max(U,j,7),B=Math.max(B,W,7)}var z=U/k,J=B/M;isNaN(z)&&(z=Infinity),isNaN(J)&&(J=Infinity);var Z=Math.max(0,Math.floor(Math.min(z,J))),de=o(E.model),ie=E.getExtent(),ve=de.lastAutoInterval,xe=de.lastTickCount;return ve!=null&&xe!=null&&Math.abs(ve-Z)<=1&&Math.abs(xe-L)<=1&&ve>Z&&de.axisExtend0===ie[0]&&de.axisExtend1===ie[1]?Z=ve:(de.lastTickCount=L,de.lastAutoInterval=Z,de.axisExtend0=ie[0],de.axisExtend1=ie[1]),Z}function m(E){var T=E.getLabelModel();return{axisRotate:E.getRotate?E.getRotate():E.isHorizontal&&!E.isHorizontal()?90:0,labelRotate:T.get("rotate")||0,font:T.getFont()}}function v(E,T,b){var w=g(E),_=E.scale,I=_.getExtent(),L=E.getLabelModel(),N=[],D=Math.max((T||0)+1,1),R=I[0],k=_.count();R!==0&&D>1&&k/D>2&&(R=Math.round(Math.ceil(R/D)*D));var M=c(E),U=L.get("showMinLabel")||M,B=L.get("showMaxLabel")||M;U&&R!==I[0]&&W(I[0]);for(var j=R;j<=I[1];j+=D)W(j);B&&j-D!==I[1]&&W(I[1]);function W(V){N.push(b?V:{formattedLabel:w(V),rawLabel:_.getLabel(V),tickValue:V})}return N}function y(E,T,b){var w=E.scale,_=g(E),I=[];return O.each(w.getTicks(),function(L){var N=w.getLabel(L);T(L,N)&&I.push(b?L:{formattedLabel:_(L),rawLabel:N,tickValue:L})}),I}F.createAxisLabels=r,F.createAxisTicks=i,F.calculateCategoryInterval=p},"4NO4":function(H,F,d){var O=d("bYtY"),x=d("ItGF"),C=O.each,A=O.isObject,S=O.isArray,g="series\0";function f(b){return b instanceof Array?b:b==null?[]:[b]}function c(b,w,_){if(b){b[w]=b[w]||{},b.emphasis=b.emphasis||{},b.emphasis[w]=b.emphasis[w]||{};for(var I=0,L=_.length;I<L;I++){var N=_[I];!b.emphasis[w].hasOwnProperty(N)&&b[w].hasOwnProperty(N)&&(b.emphasis[w][N]=b[w][N])}}}var o=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function r(b){return A(b)&&!S(b)&&!(b instanceof Date)?b.value:b}function i(b){return A(b)&&!(b instanceof Array)}function n(b,w){w=(w||[]).slice();var _=O.map(b||[],function(I,L){return{exist:I}});return C(w,function(I,L){if(!A(I))return;for(var N=0;N<_.length;N++)if(!_[N].option&&I.id!=null&&_[N].exist.id===I.id+""){_[N].option=I,w[L]=null;return}for(var N=0;N<_.length;N++){var D=_[N].exist;if(!_[N].option&&(D.id==null||I.id==null)&&I.name!=null&&!t(I)&&!t(D)&&D.name===I.name+""){_[N].option=I,w[L]=null;return}}}),C(w,function(I,L){if(!A(I))return;for(var N=0;N<_.length;N++){var D=_[N].exist;if(!_[N].option&&!t(D)&&I.id==null){_[N].option=I;break}}N>=_.length&&_.push({option:I})}),_}function e(b){var w=O.createHashMap();C(b,function(_,I){var L=_.exist;L&&w.set(L.id,_)}),C(b,function(_,I){var L=_.option;O.assert(!L||L.id==null||!w.get(L.id)||w.get(L.id)===_,"id duplicates: "+(L&&L.id)),L&&L.id!=null&&w.set(L.id,_),!_.keyInfo&&(_.keyInfo={})}),C(b,function(_,I){var L=_.exist,N=_.option,D=_.keyInfo;if(!A(N))return;if(D.name=N.name!=null?N.name+"":L?L.name:g+I,L)D.id=L.id;else if(N.id!=null)D.id=N.id+"";else{var R=0;do D.id="\0"+D.name+"\0"+R++;while(w.get(D.id))}w.set(D.id,_)})}function l(b){var w=b.name;return!!(w&&w.indexOf(g))}function t(b){return A(b)&&b.id&&(b.id+"").indexOf("\0_ec_\0")===0}function a(b,w){var _={},I={};return L(b||[],_),L(w||[],I,_),[N(_),N(I)];function L(D,R,k){for(var M=0,U=D.length;M<U;M++)for(var B=D[M].seriesId,j=f(D[M].dataIndex),W=k&&k[B],V=0,z=j.length;V<z;V++){var J=j[V];W&&W[J]?W[J]=null:(R[B]||(R[B]={}))[J]=1}}function N(D,R){var k=[];for(var M in D)if(D.hasOwnProperty(M)&&D[M]!=null)if(R)k.push(+M);else{var U=N(D[M],!0);U.length&&k.push({seriesId:M,dataIndex:U})}return k}}function s(b,w){if(w.dataIndexInside!=null)return w.dataIndexInside;if(w.dataIndex!=null)return O.isArray(w.dataIndex)?O.map(w.dataIndex,function(_){return b.indexOfRawIndex(_)}):b.indexOfRawIndex(w.dataIndex);if(w.name!=null)return O.isArray(w.name)?O.map(w.name,function(_){return b.indexOfName(_)}):b.indexOfName(w.name)}function u(){var b="__\0ec_inner_"+h+++"_"+Math.random().toFixed(5);return function(w){return w[b]||(w[b]={})}}var h=0;function p(b,w,_){if(O.isString(w)){var I={};I[w+"Index"]=0,w=I}var L=_&&_.defaultMainType;L&&!m(w,L+"Index")&&!m(w,L+"Id")&&!m(w,L+"Name")&&(w[L+"Index"]=0);var N={};return C(w,function(D,R){var D=w[R];if(R==="dataIndex"||R==="dataIndexInside"){N[R]=D;return}var k=R.match(/^(\w+)(Index|Id|Name)$/)||[],M=k[1],U=(k[2]||"").toLowerCase();if(!M||!U||D==null||U==="index"&&D==="none"||_&&_.includeMainTypes&&O.indexOf(_.includeMainTypes,M)<0)return;var B={mainType:M};(U!=="index"||D!=="all")&&(B[U]=D);var j=b.queryComponents(B);N[M+"Models"]=j,N[M+"Model"]=j[0]}),N}function m(b,w){return b&&b.hasOwnProperty(w)}function v(b,w,_){b.setAttribute?b.setAttribute(w,_):b[w]=_}function y(b,w){return b.getAttribute?b.getAttribute(w):b[w]}function E(b){return b==="auto"?x.domSupported?"html":"richText":b||"html"}function T(b,w){var _=O.createHashMap(),I=[];return O.each(b,function(L){var N=w(L);(_.get(N)||(I.push(N),_.set(N,[]))).push(L)}),{keys:I,buckets:_}}F.normalizeToArray=f,F.defaultEmphasis=c,F.TEXT_STYLE_OPTIONS=o,F.getDataItemValue=r,F.isDataItemOption=i,F.mappingToExists=n,F.makeIdAndName=e,F.isNameSpecified=l,F.isIdInner=t,F.compressBatches=a,F.queryDataIndex=s,F.makeInner=u,F.parseFinder=p,F.setAttribute=v,F.getAttribute=y,F.getTooltipRenderMode=E,F.groupData=T},"4NgU":function(H,F,d){var O=d("Yl7c");function x(A){this._setting=A||{},this._extent=[Infinity,-Infinity],this._interval=0,this.init&&this.init.apply(this,arguments)}x.prototype.parse=function(A){return A},x.prototype.getSetting=function(A){return this._setting[A]},x.prototype.contain=function(A){var S=this._extent;return A>=S[0]&&A<=S[1]},x.prototype.normalize=function(A){var S=this._extent;return S[1]===S[0]?.5:(A-S[0])/(S[1]-S[0])},x.prototype.scale=function(A){var S=this._extent;return A*(S[1]-S[0])+S[0]},x.prototype.unionExtent=function(A){var S=this._extent;A[0]<S[0]&&(S[0]=A[0]),A[1]>S[1]&&(S[1]=A[1])},x.prototype.unionExtentFromData=function(A,S){this.unionExtent(A.getApproximateExtent(S))},x.prototype.getExtent=function(){return this._extent.slice()},x.prototype.setExtent=function(A,S){var g=this._extent;isNaN(A)||(g[0]=A),isNaN(S)||(g[1]=S)},x.prototype.isBlank=function(){return this._isBlank},x.prototype.setBlank=function(A){this._isBlank=A},x.prototype.getLabel=null,O.enableClassExtend(x),O.enableClassManagement(x,{registerWhenExtend:!0});var C=x;H.exports=C},"4fz+":function(H,F,d){var O=d("bYtY"),x=d("1bdT"),C=d("mFDi"),A=function(f){f=f||{},x.call(this,f);for(var c in f)f.hasOwnProperty(c)&&(this[c]=f[c]);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(f){return this._children[f]},childOfName:function(f){for(var c=this._children,o=0;o<c.length;o++)if(c[o].name===f)return c[o]},childCount:function(){return this._children.length},add:function(f){return f&&f!==this&&f.parent!==this&&(this._children.push(f),this._doAdd(f)),this},addBefore:function(f,c){if(f&&f!==this&&f.parent!==this&&c&&c.parent===this){var o=this._children,r=o.indexOf(c);r>=0&&(o.splice(r,0,f),this._doAdd(f))}return this},_doAdd:function(f){f.parent&&f.parent.remove(f),f.parent=this;var c=this.__storage,o=this.__zr;c&&c!==f.__storage&&(c.addToStorage(f),f instanceof A&&f.addChildrenToStorage(c)),o&&o.refresh()},remove:function(f){var c=this.__zr,o=this.__storage,r=this._children,i=O.indexOf(r,f);return i<0?this:(r.splice(i,1),f.parent=null,o&&(o.delFromStorage(f),f instanceof A&&f.delChildrenFromStorage(o)),c&&c.refresh(),this)},removeAll:function(){var f=this._children,c=this.__storage,o,r;for(r=0;r<f.length;r++)o=f[r],c&&(c.delFromStorage(o),o instanceof A&&o.delChildrenFromStorage(c)),o.parent=null;return f.length=0,this},eachChild:function(f,c){for(var o=this._children,r=0;r<o.length;r++){var i=o[r];f.call(c,i,r)}return this},traverse:function(f,c){for(var o=0;o<this._children.length;o++){var r=this._children[o];f.call(c,r),r.type==="group"&&r.traverse(f,c)}return this},addChildrenToStorage:function(f){for(var c=0;c<this._children.length;c++){var o=this._children[c];f.addToStorage(o),o instanceof A&&o.addChildrenToStorage(f)}},delChildrenFromStorage:function(f){for(var c=0;c<this._children.length;c++){var o=this._children[c];f.delFromStorage(o),o instanceof A&&o.delChildrenFromStorage(f)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(f){for(var c=null,o=new C(0,0,0,0),r=f||this._children,i=[],n=0;n<r.length;n++){var e=r[n];if(e.ignore||e.invisible)continue;var l=e.getBoundingRect(),t=e.getLocalTransform(i);t?(o.copy(l),o.applyTransform(t),c=c||o.clone(),c.union(o)):(c=c||l.clone(),c.union(l))}return c||o}},O.inherits(A,x);var S=A;H.exports=S},"4i/N":function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="CloseOutlined";var f=F.a=x.forwardRef(g)},"4mN7":function(H,F,d){var O=d("QBsz"),x=d("Sj9i"),C=Math.min,A=Math.max,S=Math.sin,g=Math.cos,f=Math.PI*2,c=O.create(),o=O.create(),r=O.create();function i(u,h,p){if(u.length===0)return;var m=u[0],v=m[0],y=m[0],E=m[1],T=m[1],b;for(b=1;b<u.length;b++)m=u[b],v=C(v,m[0]),y=A(y,m[0]),E=C(E,m[1]),T=A(T,m[1]);h[0]=v,h[1]=E,p[0]=y,p[1]=T}function n(u,h,p,m,v,y){v[0]=C(u,p),v[1]=C(h,m),y[0]=A(u,p),y[1]=A(h,m)}var e=[],l=[];function t(u,h,p,m,v,y,E,T,b,w){var _=x.cubicExtrema,I=x.cubicAt,L,N=_(u,p,v,E,e);for(b[0]=Infinity,b[1]=Infinity,w[0]=-Infinity,w[1]=-Infinity,L=0;L<N;L++){var D=I(u,p,v,E,e[L]);b[0]=C(D,b[0]),w[0]=A(D,w[0])}for(N=_(h,m,y,T,l),L=0;L<N;L++){var R=I(h,m,y,T,l[L]);b[1]=C(R,b[1]),w[1]=A(R,w[1])}b[0]=C(u,b[0]),w[0]=A(u,w[0]),b[0]=C(E,b[0]),w[0]=A(E,w[0]),b[1]=C(h,b[1]),w[1]=A(h,w[1]),b[1]=C(T,b[1]),w[1]=A(T,w[1])}function a(u,h,p,m,v,y,E,T){var b=x.quadraticExtremum,w=x.quadraticAt,_=A(C(b(u,p,v),1),0),I=A(C(b(h,m,y),1),0),L=w(u,p,v,_),N=w(h,m,y,I);E[0]=C(u,v,L),E[1]=C(h,y,N),T[0]=A(u,v,L),T[1]=A(h,y,N)}function s(u,h,p,m,v,y,E,T,b){var w=O.min,_=O.max,I=Math.abs(v-y);if(I%f<1e-4&&I>1e-4){T[0]=u-p,T[1]=h-m,b[0]=u+p,b[1]=h+m;return}if(c[0]=g(v)*p+u,c[1]=S(v)*m+h,o[0]=g(y)*p+u,o[1]=S(y)*m+h,w(T,c,o),_(b,c,o),v=v%f,v<0&&(v=v+f),y=y%f,y<0&&(y=y+f),v>y&&!E?y+=f:v<y&&E&&(v+=f),E){var L=y;y=v,v=L}for(var N=0;N<y;N+=Math.PI/2)N>v&&(r[0]=g(N)*p+u,r[1]=S(N)*m+h,w(T,r,T),_(b,r,b))}F.fromPoints=i,F.fromLine=n,F.fromCubic=t,F.fromQuadratic=a,F.fromArc=s},"4vCz":function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("X2/X")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="PlusSquareOutlined";var c=A.forwardRef(f);F.default=c},"4xFK":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},"56rv":function(H,F,d){var O=d("IwbS"),x=d("x3X8"),C=x.getDefaultLabel;function A(g,f,c,o,r,i,n){var e=c.getModel("label"),l=c.getModel("emphasis.label");O.setLabelStyle(g,f,e,l,{labelFetcher:r,labelDataIndex:i,defaultText:C(r.getData(),i),isRectText:!0,autoColor:o}),S(g),S(f)}function S(g,f){g.textPosition==="outside"&&(g.textPosition=f)}F.setLabel=A},"59Ip":function(H,F,d){var O=d("Sj9i");function x(C,A,S,g,f,c,o,r,i,n,e){if(i===0)return!1;var l=i;if(e>A+l&&e>g+l&&e>c+l&&e>r+l||e<A-l&&e<g-l&&e<c-l&&e<r-l||n>C+l&&n>S+l&&n>f+l&&n>o+l||n<C-l&&n<S-l&&n<f-l&&n<o-l)return!1;var t=O.cubicProjectPoint(C,A,S,g,f,c,o,r,n,e,null);return t<=l/2}F.containStroke=x},"5Dmo":function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("5YgA"),A=d.n(C)},"5GOC":function(H,F,d){"use strict";var O=d("cIOH"),x=d("b56q"),C=d("15/o")},"5GhG":function(H,F,d){var O=d("5GtS"),x=d("bYtY"),C=d("L0Ub"),A=C.getDimensionTypeByAxis,S=d("D5nY"),g=S.makeSeriesEncodeForAxisCoordSys,f={_baseAxisDim:null,getInitialData:function(c,o){var r,i=o.getComponent("xAxis",this.get("xAxisIndex")),n=o.getComponent("yAxis",this.get("yAxisIndex")),e=i.get("type"),l=n.get("type"),t;e==="category"?(c.layout="horizontal",r=i.getOrdinalMeta(),t=!0):l==="category"?(c.layout="vertical",r=n.getOrdinalMeta(),t=!0):c.layout=c.layout||"horizontal";var a=["x","y"],s=c.layout==="horizontal"?0:1,u=this._baseAxisDim=a[s],h=a[1-s],p=[i,n],m=p[s].get("type"),v=p[1-s].get("type"),y=c.data;if(y&&t){var E=[];x.each(y,function(w,_){var I;w.value&&x.isArray(w.value)?(I=w.value.slice(),w.value.unshift(_)):x.isArray(w)?(I=w.slice(),w.unshift(_)):I=w,E.push(I)}),c.data=E}var T=this.defaultValueDimensions,b=[{name:u,type:A(m),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:A(v),dimsDef:T.slice()}];return O(this,{coordDimensions:b,dimensionsCount:T.length+1,encodeDefaulter:x.curry(g,b,this)})},getBaseAxis:function(){var c=this._baseAxisDim;return this.ecModel.getComponent(c+"Axis",this.get(c+"AxisIndex")).axis}};F.seriesModelMixin=f},"5GtS":function(H,F,d){var O=d("sdST"),x=d("YXkt"),C=d("bYtY"),A=C.extend,S=C.isArray;function g(f,c,o){c=S(c)&&{coordDimensions:c}||A({},c);var r=f.getSource(),i=O(r,c),n=new x(i,f);return n.initData(r,o),n}H.exports=g},"5Hur":function(H,F,d){var O=d("4NO4"),x=O.makeInner,C=O.normalizeToArray,A=x();function S(f,c){for(var o=f.length,r=0;r<o;r++)if(f[r].length>c)return f[r];return f[o-1]}var g={clearColorPalette:function(){A(this).colorIdx=0,A(this).colorNameMap={}},getColorFromPalette:function(f,c,o){c=c||this;var r=A(c),i=r.colorIdx||0,n=r.colorNameMap=r.colorNameMap||{};if(n.hasOwnProperty(f))return n[f];var e=C(this.get("color",!0)),l=this.get("colorLayer",!0),t=o==null||!l?e:S(l,o);if(t=t||e,!t||!t.length)return;var a=t[i];return f&&(n[f]=a),r.colorIdx=(i+1)%t.length,a}};H.exports=g},"5NDa":function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("OnYD"),A=d.n(C),S=d("+L6B")},"5NHt":function(H,F,d){d("aTJb"),d("OlYY"),d("fc+c"),d("N5BQ"),d("IyUQ"),d("LBfv"),d("noeP")},"5OYt":function(H,F,d){"use strict";var O=d("J4zp"),x=d.n(O),C=d("q1tI"),A=d.n(C),S=d("ACnJ");function g(){var f=Object(C.useState)({}),c=x()(f,2),o=c[0],r=c[1];return Object(C.useEffect)(function(){var i=S.a.subscribe(function(n){r(n)});return function(){return S.a.unsubscribe(i)}},[]),o}F.a=g},"5RzL":function(H,F,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),S=d("lwsE"),g=d.n(S),f=d("W8MJ"),c=d.n(f),o=d("7W2i"),r=d.n(o),i=d("LQ03"),n=d.n(i),e=d("q1tI"),l=d.n(e),t=d("1OyB"),a=d("vuIU"),s=d("Ji7U"),u=d("LK+K"),h=d("KQm4"),p=d("U8pU"),m=d("ODXe"),v=d("VTBJ"),y=d("rePB"),E=d("Ff2n"),T={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Et){var yr=Et.keyCode;if(Et.altKey&&!Et.ctrlKey||Et.metaKey||yr>=T.F1&&yr<=T.F12)return!1;switch(yr){case T.ALT:case T.CAPS_LOCK:case T.CONTEXT_MENU:case T.CTRL:case T.DOWN:case T.END:case T.ESC:case T.HOME:case T.INSERT:case T.LEFT:case T.MAC_FF_META:case T.META:case T.NUMLOCK:case T.NUM_CENTER:case T.PAGE_DOWN:case T.PAGE_UP:case T.PAUSE:case T.PRINT_SCREEN:case T.RIGHT:case T.SHIFT:case T.UP:case T.WIN_KEY:case T.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Et){if(Et>=T.ZERO&&Et<=T.NINE)return!0;if(Et>=T.NUM_ZERO&&Et<=T.NUM_MULTIPLY)return!0;if(Et>=T.A&&Et<=T.Z)return!0;if(window.navigator.userAgent.indexOf("WebKit")!==-1&&Et===0)return!0;switch(Et){case T.SPACE:case T.QUESTION_MARK:case T.NUM_PLUS:case T.NUM_MINUS:case T.NUM_PERIOD:case T.NUM_DIVISION:case T.SEMICOLON:case T.DASH:case T.EQUALS:case T.COMMA:case T.PERIOD:case T.SLASH:case T.APOSTROPHE:case T.SINGLE_QUOTE:case T.OPEN_SQUARE_BRACKET:case T.BACKSLASH:case T.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},b=T,w=d("TSYQ"),_=d.n(w);function I(Yt){var Et=e.useRef();Et.current=Yt;var yr=e.useCallback(function(){for(var ct,Zt=arguments.length,dr=new Array(Zt),Lr=0;Lr<Zt;Lr++)dr[Lr]=arguments[Lr];return(ct=Et.current)===null||ct===void 0?void 0:ct.call.apply(ct,[Et].concat(dr))},[]);return yr}function L(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var N=L()?e.useLayoutEffect:e.useEffect,D=N;function R(Yt){var Et=e.useRef(!1),yr=e.useState(Yt),ct=Object(m.a)(yr,2),Zt=ct[0],dr=ct[1];e.useEffect(function(){return Et.current=!1,function(){Et.current=!0}},[]);function Lr(Jr,fn){if(fn&&Et.current)return;dr(Jr)}return[Zt,Lr]}var k;(function(Yt){Yt[Yt.INNER=0]="INNER",Yt[Yt.PROP=1]="PROP"})(k||(k={}));var M=function(Et,yr){var ct=e.useRef(!0);D(function(){if(!ct.current)return Et()},yr),D(function(){return ct.current=!1,function(){ct.current=!0}},[])};function U(Yt){return Yt!==void 0}function B(Yt,Et){var yr=Et||{},ct=yr.defaultValue,Zt=yr.value,dr=yr.onChange,Lr=yr.postState,Jr=R(function(){var ei=void 0,Je;return U(Zt)?(ei=Zt,Je=k.PROP):U(ct)?(ei=typeof ct=="function"?ct():ct,Je=k.PROP):(ei=typeof Yt=="function"?Yt():Yt,Je=k.INNER),[ei,Je,ei]}),fn=Object(m.a)(Jr,2),Cn=fn[0],Nn=fn[1],Zn=U(Zt)?Zt:Cn[0],ii=Lr?Lr(Zn):Zn;M(function(){Nn(function(ei){var Je=Object(m.a)(ei,1),Gt=Je[0];return[Zt,k.PROP,Gt]})},[Zt]);var pi=e.useRef(),ri=I(function(ei,Je){Nn(function(Gt){var vr=Object(m.a)(Gt,3),fr=vr[0],Gr=vr[1],Pr=vr[2],hr=typeof ei=="function"?ei(fr):ei;if(hr===fr)return Gt;var An=Gr===k.INNER&&pi.current!==Pr?Pr:fr;return[hr,k.INNER,An]},Je)}),ji=I(dr);return D(function(){var ei=Object(m.a)(Cn,3),Je=ei[0],Gt=ei[1],vr=ei[2];Je!==vr&&Gt===k.INNER&&(ji(Je,vr),pi.current=vr)},[Cn]),[ii,ri]}var j=`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`,W=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,V="".concat(j," ").concat(W).split(/[\s\n]+/),z="aria-",J="data-";function Z(Yt,Et){return Yt.indexOf(Et)===0}function de(Yt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yr;Et===!1?yr={aria:!0,data:!0,attr:!0}:Et===!0?yr={aria:!0}:yr=Object(v.a)({},Et);var ct={};return Object.keys(Yt).forEach(function(Zt){(yr.aria&&(Zt==="role"||Z(Zt,z))||yr.data&&Z(Zt,J)||yr.attr&&V.includes(Zt))&&(ct[Zt]=Yt[Zt])}),ct}var ie=d("8XRh"),ve=function(Et){var yr=Et.className,ct=Et.customizeIcon,Zt=Et.customizeIconProps,dr=Et.onMouseDown,Lr=Et.onClick,Jr=Et.children,fn;return typeof ct=="function"?fn=ct(Zt):fn=ct,e.createElement("span",{className:yr,onMouseDown:function(Nn){Nn.preventDefault(),dr&&dr(Nn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Lr,"aria-hidden":!0},fn!==void 0?fn:e.createElement("span",{className:_()(yr.split(/\s+/).map(function(Cn){return"".concat(Cn,"-icon")}))},Jr))},xe=ve,_e=d("TOwV");function Ue(Yt,Et,yr){var ct=e.useRef({});return(!("value"in ct.current)||yr(ct.current.condition,Et))&&(ct.current.value=Yt(),ct.current.condition=Et),ct.current.value}function fe(Yt,Et){typeof Yt=="function"?Yt(Et):Object(p.a)(Yt)==="object"&&Yt&&"current"in Yt&&(Yt.current=Et)}function ke(){for(var Yt=arguments.length,Et=new Array(Yt),yr=0;yr<Yt;yr++)Et[yr]=arguments[yr];var ct=Et.filter(function(Zt){return Zt});return ct.length<=1?ct[0]:function(Zt){Et.forEach(function(dr){fe(dr,Zt)})}}function se(){for(var Yt=arguments.length,Et=new Array(Yt),yr=0;yr<Yt;yr++)Et[yr]=arguments[yr];return Ue(function(){return ke.apply(void 0,Et)},Et,function(ct,Zt){return ct.length===Zt.length&&ct.every(function(dr,Lr){return dr===Zt[Lr]})})}function te(Yt){var Et,yr,ct=Object(_e.isMemo)(Yt)?Yt.type.type:Yt.type;return typeof ct=="function"&&!((Et=ct.prototype)===null||Et===void 0?void 0:Et.render)?!1:!(typeof Yt=="function"&&!((yr=Yt.prototype)===null||yr===void 0?void 0:yr.render))}var Ve=function(Et,yr){var ct=Et.prefixCls,Zt=Et.id,dr=Et.inputElement,Lr=Et.disabled,Jr=Et.tabIndex,fn=Et.autoFocus,Cn=Et.autoComplete,Nn=Et.editable,Zn=Et.accessibilityIndex,ii=Et.value,pi=Et.maxLength,ri=Et.onKeyDown,ji=Et.onMouseDown,ei=Et.onChange,Je=Et.onPaste,Gt=Et.onCompositionStart,vr=Et.onCompositionEnd,fr=Et.open,Gr=Et.attrs,Pr=dr||e.createElement("input",null),hr=Pr,An=hr.ref,br=hr.props,pn=br.onKeyDown,Kn=br.onChange,Wn=br.onMouseDown,Ln=br.onCompositionStart,$n=br.onCompositionEnd,Un=br.style;return Pr=e.cloneElement(Pr,Object(v.a)(Object(v.a)({id:Zt,ref:ke(yr,An),disabled:Lr,tabIndex:Jr,autoComplete:Cn||"off",type:"search",autoFocus:fn,className:"".concat(ct,"-selection-search-input"),style:Object(v.a)(Object(v.a)({},Un),{},{opacity:Nn?null:0}),role:"combobox","aria-expanded":fr,"aria-haspopup":"listbox","aria-owns":"".concat(Zt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Zt,"_list"),"aria-activedescendant":"".concat(Zt,"_list_").concat(Zn)},Gr),{},{value:Nn?ii:"",maxLength:pi,readOnly:!Nn,unselectable:Nn?null:"on",onKeyDown:function(Gn){ri(Gn),pn&&pn(Gn)},onMouseDown:function(Gn){ji(Gn),Wn&&Wn(Gn)},onChange:function(Gn){ei(Gn),Kn&&Kn(Gn)},onCompositionStart:function(Gn){Gt(Gn),Ln&&Ln(Gn)},onCompositionEnd:function(Gn){vr(Gn),$n&&$n(Gn)},onPaste:Je})),Pr},ae=e.forwardRef(Ve);ae.displayName="Input";var Q=ae;function G(Yt){return Array.isArray(Yt)?Yt:Yt!==void 0?[Yt]:[]}function Y(Yt,Et){var yr=Et.labelInValue,ct=Et.combobox;if(Yt===void 0||Yt===""&&ct)return[];var Zt=Array.isArray(Yt)?Yt:[Yt];return yr?Zt.map(function(dr){var Lr=dr.key,Jr=dr.value;return Jr!==void 0?Jr:Lr}):Zt}function me(Yt,Et){var yr=Et.optionLabelProp,ct=Et.labelInValue,Zt=Et.prevValue,dr=Et.options,Lr=Et.getLabeledValue,Jr=Yt;return ct&&(Jr=Jr.map(function(fn){return Lr(fn,{options:dr,prevValue:Zt,labelInValue:ct,optionLabelProp:yr})})),Jr}function ue(Yt,Et){var yr=Object(h.a)(Et),ct;for(ct=Yt.length-1;ct>=0&&Yt[ct].disabled;ct-=1);var Zt=null;return ct!==-1&&(Zt=yr[ct],yr.splice(ct,1)),{values:yr,removedValue:Zt}}var Ce=typeof window!="undefined"&&window.document&&window.document.documentElement,Ie=Ce,ce=0;function Ae(){var Yt;return Ie?(Yt=ce,ce+=1):Yt="TEST_OR_SSR",Yt}function Te(Yt,Et){Ie?e.useLayoutEffect(Yt,Et):e.useEffect(Yt,Et)}var Ge="__RC_SELECT_MAX_REST_COUNT__",gt=function(Et){var yr=Et.id,ct=Et.prefixCls,Zt=Et.values,dr=Et.open,Lr=Et.searchValue,Jr=Et.inputRef,fn=Et.placeholder,Cn=Et.disabled,Nn=Et.mode,Zn=Et.showSearch,ii=Et.autoFocus,pi=Et.autoComplete,ri=Et.accessibilityIndex,ji=Et.tabIndex,ei=Et.removeIcon,Je=Et.choiceTransitionName,Gt=Et.maxTagCount,vr=Et.maxTagTextLength,fr=Et.maxTagPlaceholder,Gr=fr===void 0?function(ya){return"+ ".concat(ya.length," ...")}:fr,Pr=Et.tagRender,hr=Et.onSelect,An=Et.onInputChange,br=Et.onInputPaste,pn=Et.onInputKeyDown,Kn=Et.onInputMouseDown,Wn=Et.onInputCompositionStart,Ln=Et.onInputCompositionEnd,$n=Object(e.useState)(!1),Un=Object(m.a)($n,2),ti=Un[0],Gn=Un[1],wi=e.useRef(null),Ei=Object(e.useState)(0),Zi=Object(m.a)(Ei,2),ua=Zi[0],Xi=Zi[1],Gi=Object(e.useState)(!1),wa=Object(m.a)(Gi,2),na=wa[0],mo=wa[1];e.useEffect(function(){Gn(!0)},[]);var Ca=dr||Nn==="tags"?Lr:"",qi=Nn==="tags"||Zn&&(dr||na);Te(function(){Xi(wi.current.scrollWidth)},[Ca]);var aa=Zt,$i;typeof Gt=="number"&&($i=Zt.length-Gt,aa=Zt.slice(0,Gt)),typeof vr=="number"&&(aa=aa.map(function(ya){var Ha=ya.label,ta=Object(E.a)(ya,["label"]),ra=Ha;if(typeof Ha=="string"||typeof Ha=="number"){var _a=String(ra);_a.length>vr&&(ra="".concat(_a.slice(0,vr),"..."))}return Object(v.a)(Object(v.a)({},ta),{},{label:ra})})),$i>0&&aa.push({key:Ge,label:typeof Gr=="function"?Gr(Zt.slice(Gt)):Gr});var Aa=e.createElement(ie.a,{component:!1,keys:aa,motionName:Je,motionAppear:ti},function(ya){var Ha=ya.key,ta=ya.label,ra=ya.value,_a=ya.disabled,Ka=ya.className,bo=ya.style,ga=Ha||ra,go=!Cn&&Ha!==Ge&&!_a,Sa=function(No){No.preventDefault(),No.stopPropagation()},Va=function(No){No&&No.stopPropagation(),hr(ra,{selected:!1})};return typeof Pr=="function"?e.createElement("span",{key:ga,onMouseDown:Sa,className:Ka,style:bo},Pr({label:ta,value:ra,disabled:_a,closable:go,onClose:Va})):e.createElement("span",{key:ga,className:_()(Ka,"".concat(ct,"-selection-item"),Object(y.a)({},"".concat(ct,"-selection-item-disabled"),_a)),style:bo},e.createElement("span",{className:"".concat(ct,"-selection-item-content")},ta),go&&e.createElement(xe,{className:"".concat(ct,"-selection-item-remove"),onMouseDown:Sa,onClick:Va,customizeIcon:ei},"\xD7"))});return e.createElement(e.Fragment,null,Aa,e.createElement("span",{className:"".concat(ct,"-selection-search"),style:{width:ua},onFocus:function(){mo(!0)},onBlur:function(){mo(!1)}},e.createElement(Q,{ref:Jr,open:dr,prefixCls:ct,id:yr,inputElement:null,disabled:Cn,autoFocus:ii,autoComplete:pi,editable:qi,accessibilityIndex:ri,value:Ca,onKeyDown:pn,onMouseDown:Kn,onChange:An,onPaste:br,onCompositionStart:Wn,onCompositionEnd:Ln,tabIndex:ji,attrs:de(Et,!0)}),e.createElement("span",{ref:wi,className:"".concat(ct,"-selection-search-mirror"),"aria-hidden":!0},Ca,"\xA0")),!Zt.length&&!Ca&&e.createElement("span",{className:"".concat(ct,"-selection-placeholder")},fn))},qe=gt,Le=function(Et){var yr=Et.inputElement,ct=Et.prefixCls,Zt=Et.id,dr=Et.inputRef,Lr=Et.disabled,Jr=Et.autoFocus,fn=Et.autoComplete,Cn=Et.accessibilityIndex,Nn=Et.mode,Zn=Et.open,ii=Et.values,pi=Et.placeholder,ri=Et.tabIndex,ji=Et.showSearch,ei=Et.searchValue,Je=Et.activeValue,Gt=Et.maxLength,vr=Et.onInputKeyDown,fr=Et.onInputMouseDown,Gr=Et.onInputChange,Pr=Et.onInputPaste,hr=Et.onInputCompositionStart,An=Et.onInputCompositionEnd,br=e.useState(!1),pn=Object(m.a)(br,2),Kn=pn[0],Wn=pn[1],Ln=Nn==="combobox",$n=Ln||ji,Un=ii[0],ti=ei||"";Ln&&Je&&!Kn&&(ti=Je),e.useEffect(function(){Ln&&Wn(!1)},[Ln,Je]);var Gn=Nn!=="combobox"&&!Zn?!1:!!ti,wi=Un&&(typeof Un.label=="string"||typeof Un.label=="number")?Un.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(ct,"-selection-search")},e.createElement(Q,{ref:dr,prefixCls:ct,id:Zt,open:Zn,inputElement:yr,disabled:Lr,autoFocus:Jr,autoComplete:fn,editable:$n,accessibilityIndex:Cn,value:ti,onKeyDown:vr,onMouseDown:fr,onChange:function(Zi){Wn(!0),Gr(Zi)},onPaste:Pr,onCompositionStart:hr,onCompositionEnd:An,tabIndex:ri,attrs:de(Et,!0),maxLength:Ln?Gt:void 0})),!Ln&&Un&&!Gn&&e.createElement("span",{className:"".concat(ct,"-selection-item"),title:wi},Un.label),!Un&&!Gn&&e.createElement("span",{className:"".concat(ct,"-selection-placeholder")},pi))},Ot=Le;function $e(){var Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Et=e.useRef(null),yr=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(yr.current)}},[]);function ct(Zt){(Zt||Et.current===null)&&(Et.current=Zt),window.clearTimeout(yr.current),yr.current=window.setTimeout(function(){Et.current=null},Yt)}return[function(){return Et.current},ct]}var xt=function(Et,yr){var ct=Object(e.useRef)(null),Zt=Object(e.useRef)(!1),dr=Et.prefixCls,Lr=Et.multiple,Jr=Et.open,fn=Et.mode,Cn=Et.showSearch,Nn=Et.tokenWithEnter,Zn=Et.onSearch,ii=Et.onSearchSubmit,pi=Et.onToggleOpen,ri=Et.onInputKeyDown,ji=Et.domRef;e.useImperativeHandle(yr,function(){return{focus:function(){ct.current.focus()},blur:function(){ct.current.blur()}}});var ei=$e(0),Je=Object(m.a)(ei,2),Gt=Je[0],vr=Je[1],fr=function(Gn){var wi=Gn.which;(wi===b.UP||wi===b.DOWN)&&Gn.preventDefault(),ri&&ri(Gn),wi===b.ENTER&&fn==="tags"&&!Zt.current&&!Jr&&ii(Gn.target.value),[b.SHIFT,b.TAB,b.BACKSPACE,b.ESC].includes(wi)||pi(!0)},Gr=function(){vr(!0)},Pr=Object(e.useRef)(null),hr=function(Gn){Zn(Gn,!0,Zt.current)!==!1&&pi(!0)},An=function(){Zt.current=!0},br=function(){Zt.current=!1},pn=function(Gn){var wi=Gn.target.value;if(Nn&&Pr.current&&/[\r\n]/.test(Pr.current)){var Ei=Pr.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");wi=wi.replace(Ei,Pr.current)}Pr.current=null,hr(wi)},Kn=function(Gn){var wi=Gn.clipboardData,Ei=wi.getData("text");Pr.current=Ei},Wn=function(Gn){var wi=Gn.target;if(wi!==ct.current){var Ei=document.body.style.msTouchAction!==void 0;Ei?setTimeout(function(){ct.current.focus()}):ct.current.focus()}},Ln=function(Gn){var wi=Gt();Gn.target!==ct.current&&!wi&&Gn.preventDefault(),(fn!=="combobox"&&(!Cn||!wi)||!Jr)&&(Jr&&Zn("",!0,!1),pi())},$n={inputRef:ct,onInputKeyDown:fr,onInputMouseDown:Gr,onInputChange:pn,onInputPaste:Kn,onInputCompositionStart:An,onInputCompositionEnd:br},Un=Lr?e.createElement(qe,Object.assign({},Et,$n)):e.createElement(Ot,Object.assign({},Et,$n));return e.createElement("div",{ref:ji,className:"".concat(dr,"-selector"),onClick:Wn,onMouseDown:Ln},Un)},Ht=e.forwardRef(xt);Ht.displayName="Selector";var tr=Ht,Mt=d("uciX"),Tt=function(Et){var yr=typeof Et!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:yr,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:yr,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:yr,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:yr,adjustY:1}}}},Xe=function(Et,yr){var ct=Et.prefixCls,Zt=Et.disabled,dr=Et.visible,Lr=Et.children,Jr=Et.popupElement,fn=Et.containerWidth,Cn=Et.animation,Nn=Et.transitionName,Zn=Et.dropdownStyle,ii=Et.dropdownClassName,pi=Et.direction,ri=pi===void 0?"ltr":pi,ji=Et.dropdownMatchSelectWidth,ei=ji===void 0?!0:ji,Je=Et.dropdownRender,Gt=Et.dropdownAlign,vr=Et.getPopupContainer,fr=Et.empty,Gr=Et.getTriggerDOMNode,Pr=Object(E.a)(Et,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),hr="".concat(ct,"-dropdown"),An=Jr;Je&&(An=Je(Jr));var br=e.useMemo(function(){return Tt(ei)},[ei]),pn=Cn?"".concat(hr,"-").concat(Cn):Nn,Kn=e.useRef(null);e.useImperativeHandle(yr,function(){return{getPopupElement:function(){return Kn.current}}});var Wn=Object(v.a)({minWidth:fn},Zn);return typeof ei=="number"?Wn.width=ei:ei&&(Wn.width=fn),e.createElement(Mt.a,Object.assign({},Pr,{showAction:[],hideAction:[],popupPlacement:ri==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:br,prefixCls:hr,popupTransitionName:pn,popup:e.createElement("div",{ref:Kn},An),popupAlign:Gt,popupVisible:dr,getPopupContainer:vr,popupClassName:_()(ii,Object(y.a)({},"".concat(hr,"-empty"),fr)),popupStyle:Wn,getTriggerDOMNode:Gr}),Lr)},oe=e.forwardRef(Xe);oe.displayName="SelectTrigger";var X=oe,Be="RC_SELECT_INTERNAL_PROPS_MARK";function Ee(){var Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Et=e.useState(!1),yr=Object(m.a)(Et,2),ct=yr[0],Zt=yr[1],dr=e.useRef(null),Lr=function(){window.clearTimeout(dr.current)};e.useEffect(function(){return Lr},[]);var Jr=function(Cn,Nn){Lr(),dr.current=window.setTimeout(function(){Zt(Cn),Nn&&Nn()},Yt)};return[ct,Jr,Lr]}var ee=d("T5bk"),lt={};function Ct(Yt,Et){}function dt(Yt,Et){}function _t(){lt={}}function ir(Yt,Et,yr){!Et&&!lt[yr]&&(Yt(!1,yr),lt[yr]=!0)}function $r(Yt,Et){ir(Ct,Yt,Et)}function nr(Yt,Et){ir(dt,Yt,Et)}var lr=$r;function zt(Yt,Et){var yr=Yt.key,ct;return"value"in Yt&&(ct=Yt.value),yr!=null?yr:ct!==void 0?ct:"rc-index-key-".concat(Et)}function Ut(Yt){var Et=[];function yr(ct,Zt){ct.forEach(function(dr){Zt||!("options"in dr)?Et.push({key:zt(dr,Et.length),groupOption:Zt,data:dr}):(Et.push({key:zt(dr,Et.length),group:!0,data:dr}),yr(dr.options,!0))})}return yr(Yt,!1),Et}function st(Yt){var Et=Object(v.a)({},Yt);return"props"in Et||Object.defineProperty(Et,"props",{get:function(){return lr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Et}}),Et}function Hr(Yt,Et){var yr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ct=yr.prevValueOptions,Zt=ct===void 0?[]:ct,dr=new Map;return Et.forEach(function(Lr){if(!Lr.group){var Jr=Lr.data;dr.set(Jr.value,Jr)}}),Yt.map(function(Lr){var Jr=dr.get(Lr);return Jr||(Jr=Object(v.a)({},Zt.find(function(fn){return fn._INTERNAL_OPTION_VALUE_===Lr}))),st(Jr)})}var mn=function(Et,yr){var ct=yr.options,Zt=yr.prevValue,dr=yr.labelInValue,Lr=yr.optionLabelProp,Jr=Hr([Et],ct)[0],fn={value:Et},Cn,Nn=G(Zt);return dr&&(Cn=Nn.find(function(Zn){return Object(p.a)(Zn)==="object"&&"value"in Zn?Zn.value===Et:Zn.key===Et})),Cn&&Object(p.a)(Cn)==="object"&&"label"in Cn?(fn.label=Cn.label,Jr&&typeof Cn.label=="string"&&typeof Jr[Lr]=="string"&&Cn.label.trim()!==Jr[Lr].trim()&&lr(!1,"`label` of `value` is not same as `label` in Select options.")):Jr&&Lr in Jr?fn.label=Jr[Lr]:fn.label=Et,fn.key=fn.value,fn};function In(Yt){return G(Yt).join("")}function Yn(Yt){return function(Et,yr){var ct=Et.toLowerCase();if("options"in yr)return In(yr.label).toLowerCase().includes(ct);var Zt=yr[Yt],dr=In(Zt).toLowerCase();return dr.includes(ct)}}function Mi(Yt,Et,yr){var ct=yr.optionFilterProp,Zt=yr.filterOption,dr=[],Lr;return Zt===!1?Object(h.a)(Et):(typeof Zt=="function"?Lr=Zt:Lr=Yn(ct),Et.forEach(function(Jr){if("options"in Jr){var fn=Lr(Yt,Jr);if(fn)dr.push(Jr);else{var Cn=Jr.options.filter(function(Nn){return Lr(Yt,Nn)});Cn.length&&dr.push(Object(v.a)(Object(v.a)({},Jr),{},{options:Cn}))}return}Lr(Yt,st(Jr))&&dr.push(Jr)}),dr)}function wn(Yt,Et){if(!Et||!Et.length)return null;var yr=!1;function ct(dr,Lr){var Jr=Object(ee.a)(Lr),fn=Jr[0],Cn=Jr.slice(1);if(!fn)return[dr];var Nn=dr.split(fn);return yr=yr||Nn.length>1,Nn.reduce(function(Zn,ii){return[].concat(Object(h.a)(Zn),Object(h.a)(ct(ii,Cn)))},[]).filter(function(Zn){return Zn})}var Zt=ct(Yt,Et);return yr?Zt:null}function Rn(Yt,Et){var yr=Hr([Yt],Et)[0];return yr.disabled}function kt(Yt,Et,yr,ct){var Zt=G(Et).slice().sort(),dr=Object(h.a)(Yt),Lr=new Set;return Yt.forEach(function(Jr){Jr.options?Jr.options.forEach(function(fn){Lr.add(fn.value)}):Lr.add(Jr.value)}),Zt.forEach(function(Jr){var fn=ct?Jr.value:Jr;if(!Lr.has(fn)){var Cn;dr.push(ct?(Cn={},Object(y.a)(Cn,yr,Jr.label),Object(y.a)(Cn,"value",fn),Cn):{value:fn})}}),dr}function vt(Yt,Et,yr){var ct=e.useRef(null);ct.current={elements:Yt.filter(function(Zt){return Zt}),open:Et,triggerOpen:yr},e.useEffect(function(){function Zt(dr){var Lr=dr.target;ct.current.open&&ct.current.elements.every(function(Jr){return!Jr.contains(Lr)&&Jr!==Lr})&&ct.current.triggerOpen(!1)}return window.addEventListener("mousedown",Zt),function(){return window.removeEventListener("mousedown",Zt)}},[])}function Re(Yt){var Et=e.useRef(Yt),yr=e.useMemo(function(){var ct=new Map;Et.current.forEach(function(dr){var Lr=dr.value,Jr=dr.label;Lr!==Jr&&ct.set(Lr,Jr)});var Zt=Yt.map(function(dr){var Lr=ct.get(dr.value);return dr.value===dr.label&&Lr?Object(v.a)(Object(v.a)({},dr),{},{label:Lr}):dr});return Et.current=Zt,Zt},[Yt]);return yr}function Ke(Yt,Et){var yr=e.useRef(null),ct=e.useMemo(function(){var dr=new Map;return Et.forEach(function(Lr){var Jr=Lr.data.value;dr.set(Jr,Lr)}),dr},[Yt,Et]);yr.current=ct;var Zt=function(Lr){return Lr.map(function(Jr){return yr.current.get(Jr)}).filter(Boolean)};return Zt}var Pe=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function nt(Yt){var Et=Yt.prefixCls,yr=Yt.components.optionList,ct=Yt.convertChildrenToData,Zt=Yt.flattenOptions,dr=Yt.getLabeledValue,Lr=Yt.filterOptions,Jr=Yt.isValueDisabled,fn=Yt.findValueOption,Cn=Yt.warningProps,Nn=Yt.fillOptionsWithMissingValue,Zn=Yt.omitDOMProps;function ii(ri,ji){var ei,Je=ri.prefixCls,Gt=Je===void 0?Et:Je,vr=ri.className,fr=ri.id,Gr=ri.open,Pr=ri.defaultOpen,hr=ri.options,An=ri.children,br=ri.mode,pn=ri.value,Kn=ri.defaultValue,Wn=ri.labelInValue,Ln=ri.showSearch,$n=ri.inputValue,Un=ri.searchValue,ti=ri.filterOption,Gn=ri.filterSort,wi=ri.optionFilterProp,Ei=wi===void 0?"value":wi,Zi=ri.autoClearSearchValue,ua=Zi===void 0?!0:Zi,Xi=ri.onSearch,Gi=ri.allowClear,wa=ri.clearIcon,na=ri.showArrow,mo=ri.inputIcon,Ca=ri.menuItemSelectedIcon,qi=ri.disabled,aa=ri.loading,$i=ri.defaultActiveFirstOption,Aa=ri.notFoundContent,ya=Aa===void 0?"Not Found":Aa,Ha=ri.optionLabelProp,ta=ri.backfill,ra=ri.getInputElement,_a=ri.getPopupContainer,Ka=ri.listHeight,bo=Ka===void 0?200:Ka,ga=ri.listItemHeight,go=ga===void 0?20:ga,Sa=ri.animation,Va=ri.transitionName,uo=ri.virtual,No=ri.dropdownStyle,Po=ri.dropdownClassName,to=ri.dropdownMatchSelectWidth,Uo=ri.dropdownRender,co=ri.dropdownAlign,fa=ri.showAction,ro=fa===void 0?[]:fa,Wa=ri.direction,Ea=ri.tokenSeparators,Qr=ri.tagRender,za=ri.onPopupScroll,rs=ri.onDropdownVisibleChange,Vo=ri.onFocus,Go=ri.onBlur,Qo=ri.onKeyUp,Yo=ri.onKeyDown,vo=ri.onMouseDown,Io=ri.onChange,zo=ri.onSelect,Fa=ri.onDeselect,Ja=ri.onClear,ho=ri.internalProps,Ao=ho===void 0?{}:ho,$o=Object(E.a)(ri,["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"]),ps=Ao.mark===Be,is=Zn?Zn($o):$o;Pe.forEach(function(jo){delete is[jo]});var Za=Object(e.useRef)(null),St=Object(e.useRef)(null),Pt=Object(e.useRef)(null),Kr=Object(e.useRef)(null),Pn=Object(e.useMemo)(function(){return(Ea||[]).some(function(jo){return[`
|
|
|
`,`\r
|
|
|
`].includes(jo)})},[Ea]),ut=Ee(),ne=Object(m.a)(ut,3),pe=ne[0],be=ne[1],je=ne[2],ht=Object(e.useState)(),Vt=Object(m.a)(ht,2),Or=Vt[0],Yr=Vt[1];Object(e.useEffect)(function(){Yr("rc_select_".concat(Ae()))},[]);var cn=fr||Or,jn=Ha;jn===void 0&&(jn=hr?"label":"children");var ai=br==="combobox"?!1:Wn,Qn=br==="tags"||br==="multiple",Ni=Ln!==void 0?Ln:Qn||br==="combobox",Vi=Object(e.useRef)(null);e.useImperativeHandle(ji,function(){return{focus:Pt.current.focus,blur:Pt.current.blur}});var Ta=B(Kn,{value:pn}),Ga=Object(m.a)(Ta,2),ao=Ga[0],Do=Ga[1],fo=Object(e.useMemo)(function(){return Y(ao,{labelInValue:ai,combobox:br==="combobox"})},[ao,ai]),as=Object(e.useMemo)(function(){return new Set(fo)},[fo]),io=Object(e.useState)(null),Xa=Object(m.a)(io,2),Ya=Xa[0],ka=Xa[1],os=Object(e.useState)(""),Es=Object(m.a)(os,2),qo=Es[0],pa=Es[1],ls=qo;br==="combobox"&&ao!==void 0?ls=ao:Un!==void 0?ls=Un:$n&&(ls=$n);var Os=Object(e.useMemo)(function(){var jo=hr;return jo===void 0&&(jo=ct(An)),br==="tags"&&Nn&&(jo=Nn(jo,ao,jn,Wn)),jo||[]},[hr,An,br,ao]),ys=Object(e.useMemo)(function(){return Zt(Os,ri)},[Os]),ms=Ke(fo,ys),ws=Object(e.useMemo)(function(){if(!ls||!Ni)return Object(h.a)(Os);var jo=Lr(ls,Os,{optionFilterProp:Ei,filterOption:br==="combobox"&&ti===void 0?function(){return!0}:ti});return br==="tags"&&jo.every(function(Ho){return Ho[Ei]!==ls})&&jo.unshift({value:ls,label:ls,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),Gn&&Array.isArray(jo)?Object(h.a)(jo).sort(Gn):jo},[Os,ls,br,Ni,Gn]),Pl=Object(e.useMemo)(function(){return Zt(ws,ri)},[ws]);Object(e.useEffect)(function(){Kr.current&&Kr.current.scrollTo&&Kr.current.scrollTo(0)},[ls]);var ml=Object(e.useMemo)(function(){var jo=fo.map(function(Ho){var us=ms([Ho]),cs=dr(Ho,{options:us,prevValue:ao,labelInValue:ai,optionLabelProp:jn});return Object(v.a)(Object(v.a)({},cs),{},{disabled:Jr(Ho,us)})});return!br&&jo.length===1&&jo[0].value===null&&jo[0].label===null?[]:jo},[ao,Os,br]);ml=Re(ml);var Ws=function(Ho,us,cs){var Cs=ms([Ho]),ds=fn([Ho],Cs)[0];if(!Ao.skipTriggerSelect){var Js=ai?dr(Ho,{options:Cs,prevValue:ao,labelInValue:ai,optionLabelProp:jn}):Ho;us&&zo?zo(Js,ds):!us&&Fa&&Fa(Js,ds)}ps&&(us&&Ao.onRawSelect?Ao.onRawSelect(Ho,ds,cs):!us&&Ao.onRawDeselect&&Ao.onRawDeselect(Ho,ds,cs))},fs=Object(e.useState)([]),_s=Object(m.a)(fs,2),gl=_s[0],Bs=_s[1],Us=function(Ho){if(ps&&Ao.skipTriggerChange)return;var us=ms(Ho),cs=me(Array.from(Ho),{labelInValue:ai,options:us,getLabeledValue:dr,prevValue:ao,optionLabelProp:jn}),Cs=Qn?cs:cs[0];if(Io&&(fo.length!==0||cs.length!==0)){var ds=fn(Ho,us,{prevValueOptions:gl});Bs(ds.map(function(Js,ss){var Is=Object(v.a)({},Js);return Object.defineProperty(Is,"_INTERNAL_OPTION_VALUE_",{get:function(){return Ho[ss]}}),Is})),Io(Cs,Qn?ds:ds[0])}Do(Cs)},Qs=function(Ho,us){var cs=us.selected,Cs=us.source;if(qi)return;var ds;Qn?(ds=new Set(fo),cs?ds.add(Ho):ds.delete(Ho)):(ds=new Set,ds.add(Ho)),(Qn||!Qn&&Array.from(fo)[0]!==Ho)&&Us(Array.from(ds)),Ws(Ho,!Qn||cs,Cs),br==="combobox"?(pa(String(Ho)),ka("")):(!Qn||ua)&&(pa(""),ka(""))},al=function(Ho,us){Qs(Ho,Object(v.a)(Object(v.a)({},us),{},{source:"option"}))},El=function(Ho,us){Qs(Ho,Object(v.a)(Object(v.a)({},us),{},{source:"selection"}))},bl=br==="combobox"&&ra&&ra()||null,ol=B(void 0,{defaultValue:Pr,value:Gr}),Gs=Object(m.a)(ol,2),zs=Gs[0],vl=Gs[1],Xs=zs,sl=!ya&&!ws.length;(qi||sl&&Xs&&br==="combobox")&&(Xs=!1);var dl=sl?!1:Xs,rl=function(Ho){var us=Ho!==void 0?Ho:!Xs;zs!==us&&!qi&&(vl(us),rs&&rs(us))};vt([Za.current,St.current&&St.current.getPopupElement()],dl,rl);var nl=function(Ho,us,cs){var Cs=!0,ds=Ho;ka(null);var Js=cs?null:wn(Ho,Ea),ss=Js;if(br==="combobox")us&&Us([ds]);else if(Js){ds="",br!=="tags"&&(ss=Js.map(function(Al){var lu=ys.find(function(uu){var Yl=uu.data;return Yl[jn]===Al});return lu?lu.data.value:null}).filter(function(Al){return Al!==null}));var Is=Array.from(new Set([].concat(Object(h.a)(fo),Object(h.a)(ss))));Us(Is),Is.forEach(function(Al){Ws(Al,!0,"input")}),rl(!1),Cs=!1}return pa(ds),Xi&&ls!==ds&&Xi(ds),Cs},Tl=function(Ho){var us=Array.from(new Set([].concat(Object(h.a)(fo),[Ho])));Us(us),us.forEach(function(cs){Ws(cs,!0,"input")}),pa("")};Object(e.useEffect)(function(){zs&&!!qi&&vl(!1)},[qi]),Object(e.useEffect)(function(){!Xs&&!Qn&&br!=="combobox"&&nl("",!1,!1)},[Xs]);var Rs=$e(),bs=Object(m.a)(Rs,2),Ms=bs[0],Ts=bs[1],Zs=function(Ho){var us=Ms(),cs=Ho.which;if(!Xs&&cs===b.ENTER&&rl(!0),Ts(!!ls),cs===b.BACKSPACE&&!us&&Qn&&!ls&&fo.length){var Cs=ue(ml,fo);Cs.removedValue!==null&&(Us(Cs.values),Ws(Cs.removedValue,!1,"input"))}for(var ds=arguments.length,Js=new Array(ds>1?ds-1:0),ss=1;ss<ds;ss++)Js[ss-1]=arguments[ss];if(Xs&&Kr.current){var Is;(Is=Kr.current).onKeyDown.apply(Is,[Ho].concat(Js))}Yo&&Yo.apply(void 0,[Ho].concat(Js))},hl=function(Ho){for(var us=arguments.length,cs=new Array(us>1?us-1:0),Cs=1;Cs<us;Cs++)cs[Cs-1]=arguments[Cs];if(Xs&&Kr.current){var ds;(ds=Kr.current).onKeyUp.apply(ds,[Ho].concat(cs))}Qo&&Qo.apply(void 0,[Ho].concat(cs))},wl=Object(e.useRef)(!1),Kl=function(){be(!0),qi||(Vo&&!wl.current&&Vo.apply(void 0,arguments),ro.includes("focus")&&rl(!0)),wl.current=!0},il=function(){if(be(!1,function(){wl.current=!1,rl(!1)}),qi)return;ls&&(br==="tags"?(nl("",!1,!1),Us(Array.from(new Set([].concat(Object(h.a)(fo),[ls]))))):br==="multiple"&&pa("")),Go&&Go.apply(void 0,arguments)},fl=[];Object(e.useEffect)(function(){return function(){fl.forEach(function(jo){return clearTimeout(jo)}),fl.splice(0,fl.length)}},[]);var kl=function(Ho){var us=Ho.target,cs=St.current&&St.current.getPopupElement();if(cs&&cs.contains(us)){var Cs=setTimeout(function(){var Is=fl.indexOf(Cs);Is!==-1&&fl.splice(Is,1),je(),cs.contains(document.activeElement)||Pt.current.focus()});fl.push(Cs)}if(vo){for(var ds=arguments.length,Js=new Array(ds>1?ds-1:0),ss=1;ss<ds;ss++)Js[ss-1]=arguments[ss];vo.apply(void 0,[Ho].concat(Js))}},gu=Object(e.useState)(0),Jl=Object(m.a)(gu,2),Zl=Jl[0],$l=Jl[1],Gl=$i!==void 0?$i:br!=="combobox",$s=function(Ho,us){var cs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Cs=cs.source,ds=Cs===void 0?"keyboard":Cs;$l(us),ta&&br==="combobox"&&Ho!==null&&ds==="keyboard"&&ka(String(Ho))},ll=Object(e.useState)(null),pl=Object(m.a)(ll,2),Nl=pl[0],ou=pl[1],ql=Object(e.useState)({}),eu=Object(m.a)(ql,2),el=eu[1];function tu(){el({})}Te(function(){if(dl){var jo=Math.ceil(Za.current.offsetWidth);Nl!==jo&&ou(jo)}},[dl]);var ru=e.createElement(yr,{ref:Kr,prefixCls:Gt,id:cn,open:Xs,childrenAsData:!hr,options:ws,flattenOptions:Pl,multiple:Qn,values:as,height:bo,itemHeight:go,onSelect:al,onToggleOpen:rl,onActiveValue:$s,defaultActiveFirstOption:Gl,notFoundContent:ya,onScroll:za,searchValue:ls,menuItemSelectedIcon:Ca,virtual:uo!==!1&&to!==!1,onMouseEnter:tu}),su,Cl=function(){ps&&Ao.onClear&&Ao.onClear(),Ja&&Ja(),Us([]),nl("",!1,!1)};!qi&&Gi&&(fo.length||ls)&&(su=e.createElement(xe,{className:"".concat(Gt,"-clear"),onMouseDown:Cl,customizeIcon:wa},"\xD7"));var Dl=na!==void 0?na:aa||!Qn&&br!=="combobox",Fl;Dl&&(Fl=e.createElement(xe,{className:_()("".concat(Gt,"-arrow"),Object(y.a)({},"".concat(Gt,"-arrow-loading"),aa)),customizeIcon:mo,customizeIconProps:{loading:aa,searchValue:ls,open:Xs,focused:pe,showSearch:Ni}}));var Xl=_()(Gt,vr,(ei={},Object(y.a)(ei,"".concat(Gt,"-focused"),pe),Object(y.a)(ei,"".concat(Gt,"-multiple"),Qn),Object(y.a)(ei,"".concat(Gt,"-single"),!Qn),Object(y.a)(ei,"".concat(Gt,"-allow-clear"),Gi),Object(y.a)(ei,"".concat(Gt,"-show-arrow"),Dl),Object(y.a)(ei,"".concat(Gt,"-disabled"),qi),Object(y.a)(ei,"".concat(Gt,"-loading"),aa),Object(y.a)(ei,"".concat(Gt,"-open"),Xs),Object(y.a)(ei,"".concat(Gt,"-customize-input"),bl),Object(y.a)(ei,"".concat(Gt,"-show-search"),Ni),ei));return e.createElement("div",Object.assign({className:Xl},is,{ref:Za,onMouseDown:kl,onKeyDown:Zs,onKeyUp:hl,onFocus:Kl,onBlur:il}),pe&&!Xs&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(fo.join(", "))),e.createElement(X,{ref:St,disabled:qi,prefixCls:Gt,visible:dl,popupElement:ru,containerWidth:Nl,animation:Sa,transitionName:Va,dropdownStyle:No,dropdownClassName:Po,direction:Wa,dropdownMatchSelectWidth:to,dropdownRender:Uo,dropdownAlign:co,getPopupContainer:_a,empty:!Os.length,getTriggerDOMNode:function(){return Vi.current}},e.createElement(tr,Object.assign({},ri,{domRef:Vi,prefixCls:Gt,inputElement:bl,ref:Pt,id:cn,showSearch:Ni,mode:br,accessibilityIndex:Zl,multiple:Qn,tagRender:Qr,values:ml,open:Xs,onToggleOpen:rl,searchValue:ls,activeValue:Ya,onSearch:nl,onSearchSubmit:Tl,onSelect:El,tokenWithEnter:Pn}))),Fl,su)}var pi=e.forwardRef(ii);return pi}function yt(Yt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},yr=[];return l.a.Children.forEach(Yt,function(ct){if(ct==null&&!Et.keepEmpty)return;Array.isArray(ct)?yr=yr.concat(yt(ct)):Object(_e.isFragment)(ct)&&ct.props?yr=yr.concat(yt(ct.props.children,Et)):yr.push(ct)}),yr}var Dt={};function bt(Yt,Et){}function It(Yt,Et){}function gr(){Dt={}}function kr(Yt,Et,yr){!Et&&!Dt[yr]&&(Yt(!1,yr),Dt[yr]=!0)}function wt(Yt,Et){kr(bt,Yt,Et)}function rt(Yt,Et){kr(It,Yt,Et)}var tt=wt,Rt=d("JX7q"),Ft=e.createContext(null),At=function(Et){var yr=Et.prefixCls,ct=Et.level,Zt=Et.isStart,dr=Et.isEnd;if(!ct)return null;for(var Lr="".concat(yr,"-indent-unit"),Jr=[],fn=0;fn<ct;fn+=1){var Cn;Jr.push(e.createElement("span",{key:fn,className:_()(Lr,(Cn={},Object(y.a)(Cn,"".concat(Lr,"-start"),Zt[fn]),Object(y.a)(Cn,"".concat(Lr,"-end"),dr[fn]),Cn))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(yr,"-indent")},Jr)},Wt=At,ot="open",Bt="close",Ar="---",rr=function(Yt){Object(s.a)(yr,Yt);var Et=Object(u.a)(yr);function yr(){var ct;return Object(t.a)(this,yr),ct=Et.apply(this,arguments),ct.state={dragNodeHighlight:!1},ct.onSelectorClick=function(Zt){var dr=ct.props.context.onNodeClick;dr(Zt,or(ct.props)),ct.isSelectable()?ct.onSelect(Zt):ct.onCheck(Zt)},ct.onSelectorDoubleClick=function(Zt){var dr=ct.props.context.onNodeDoubleClick;dr(Zt,or(ct.props))},ct.onSelect=function(Zt){if(ct.isDisabled())return;var dr=ct.props.context.onNodeSelect;Zt.preventDefault(),dr(Zt,or(ct.props))},ct.onCheck=function(Zt){if(ct.isDisabled())return;var dr=ct.props,Lr=dr.disableCheckbox,Jr=dr.checked,fn=ct.props.context.onNodeCheck;if(!ct.isCheckable()||Lr)return;Zt.preventDefault();var Cn=!Jr;fn(Zt,or(ct.props),Cn)},ct.onMouseEnter=function(Zt){var dr=ct.props.context.onNodeMouseEnter;dr(Zt,or(ct.props))},ct.onMouseLeave=function(Zt){var dr=ct.props.context.onNodeMouseLeave;dr(Zt,or(ct.props))},ct.onContextMenu=function(Zt){var dr=ct.props.context.onNodeContextMenu;dr(Zt,or(ct.props))},ct.onDragStart=function(Zt){var dr=ct.props.context.onNodeDragStart;Zt.stopPropagation(),ct.setState({dragNodeHighlight:!0}),dr(Zt,Object(Rt.a)(ct));try{Zt.dataTransfer.setData("text/plain","")}catch(Lr){}},ct.onDragEnter=function(Zt){var dr=ct.props.context.onNodeDragEnter;Zt.preventDefault(),Zt.stopPropagation(),dr(Zt,Object(Rt.a)(ct))},ct.onDragOver=function(Zt){var dr=ct.props.context.onNodeDragOver;Zt.preventDefault(),Zt.stopPropagation(),dr(Zt,Object(Rt.a)(ct))},ct.onDragLeave=function(Zt){var dr=ct.props.context.onNodeDragLeave;Zt.stopPropagation(),dr(Zt,Object(Rt.a)(ct))},ct.onDragEnd=function(Zt){var dr=ct.props.context.onNodeDragEnd;Zt.stopPropagation(),ct.setState({dragNodeHighlight:!1}),dr(Zt,Object(Rt.a)(ct))},ct.onDrop=function(Zt){var dr=ct.props.context.onNodeDrop;Zt.preventDefault(),Zt.stopPropagation(),ct.setState({dragNodeHighlight:!1}),dr(Zt,Object(Rt.a)(ct))},ct.onExpand=function(Zt){var dr=ct.props.context.onNodeExpand;dr(Zt,or(ct.props))},ct.setSelectHandle=function(Zt){ct.selectHandle=Zt},ct.getNodeState=function(){var Zt=ct.props.expanded;return ct.isLeaf()?null:Zt?ot:Bt},ct.hasChildren=function(){var Zt=ct.props.eventKey,dr=ct.props.context.keyEntities,Lr=dr[Zt]||{},Jr=Lr.children;return!!(Jr||[]).length},ct.isLeaf=function(){var Zt=ct.props,dr=Zt.isLeaf,Lr=Zt.loaded,Jr=ct.props.context.loadData,fn=ct.hasChildren();return dr===!1?!1:dr||!Jr&&!fn||Jr&&Lr&&!fn},ct.isDisabled=function(){var Zt=ct.props.disabled,dr=ct.props.context.disabled;return!!(dr||Zt)},ct.isCheckable=function(){var Zt=ct.props.checkable,dr=ct.props.context.checkable;return!dr||Zt===!1?!1:dr},ct.syncLoadData=function(Zt){var dr=Zt.expanded,Lr=Zt.loading,Jr=Zt.loaded,fn=ct.props.context,Cn=fn.loadData,Nn=fn.onNodeLoad;if(Lr)return;Cn&&dr&&!ct.isLeaf()&&(!ct.hasChildren()&&!Jr&&Nn(or(ct.props)))},ct.renderSwitcher=function(){var Zt=ct.props,dr=Zt.expanded,Lr=Zt.switcherIcon,Jr=ct.props.context,fn=Jr.prefixCls,Cn=Jr.switcherIcon,Nn=Lr||Cn;if(ct.isLeaf())return e.createElement("span",{className:_()("".concat(fn,"-switcher"),"".concat(fn,"-switcher-noop"))},typeof Nn=="function"?Nn(Object(v.a)(Object(v.a)({},ct.props),{},{isLeaf:!0})):Nn);var Zn=_()("".concat(fn,"-switcher"),"".concat(fn,"-switcher_").concat(dr?ot:Bt));return e.createElement("span",{onClick:ct.onExpand,className:Zn},typeof Nn=="function"?Nn(Object(v.a)(Object(v.a)({},ct.props),{},{isLeaf:!1})):Nn)},ct.renderCheckbox=function(){var Zt=ct.props,dr=Zt.checked,Lr=Zt.halfChecked,Jr=Zt.disableCheckbox,fn=ct.props.context.prefixCls,Cn=ct.isDisabled(),Nn=ct.isCheckable();if(!Nn)return null;var Zn=typeof Nn!="boolean"?Nn:null;return e.createElement("span",{className:_()("".concat(fn,"-checkbox"),dr&&"".concat(fn,"-checkbox-checked"),!dr&&Lr&&"".concat(fn,"-checkbox-indeterminate"),(Cn||Jr)&&"".concat(fn,"-checkbox-disabled")),onClick:ct.onCheck},Zn)},ct.renderIcon=function(){var Zt=ct.props.loading,dr=ct.props.context.prefixCls;return e.createElement("span",{className:_()("".concat(dr,"-iconEle"),"".concat(dr,"-icon__").concat(ct.getNodeState()||"docu"),Zt&&"".concat(dr,"-icon_loading"))})},ct.renderSelector=function(){var Zt=ct.state.dragNodeHighlight,dr=ct.props,Lr=dr.title,Jr=dr.selected,fn=dr.icon,Cn=dr.loading,Nn=dr.data,Zn=ct.props.context,ii=Zn.prefixCls,pi=Zn.showIcon,ri=Zn.icon,ji=Zn.draggable,ei=Zn.loadData,Je=Zn.titleRender,Gt=ct.isDisabled(),vr="".concat(ii,"-node-content-wrapper"),fr;if(pi){var Gr=fn||ri;fr=Gr?e.createElement("span",{className:_()("".concat(ii,"-iconEle"),"".concat(ii,"-icon__customize"))},typeof Gr=="function"?Gr(ct.props):Gr):ct.renderIcon()}else ei&&Cn&&(fr=ct.renderIcon());var Pr;typeof Lr=="function"?Pr=Lr(Nn):Je?Pr=Je(Nn):Pr=Lr;var hr=e.createElement("span",{className:"".concat(ii,"-title")},Pr);return e.createElement("span",{ref:ct.setSelectHandle,title:typeof Lr=="string"?Lr:"",className:_()("".concat(vr),"".concat(vr,"-").concat(ct.getNodeState()||"normal"),!Gt&&(Jr||Zt)&&"".concat(ii,"-node-selected"),!Gt&&ji&&"draggable"),draggable:!Gt&&ji||void 0,"aria-grabbed":!Gt&&ji||void 0,onMouseEnter:ct.onMouseEnter,onMouseLeave:ct.onMouseLeave,onContextMenu:ct.onContextMenu,onClick:ct.onSelectorClick,onDoubleClick:ct.onSelectorDoubleClick,onDragStart:ji?ct.onDragStart:void 0},fr,hr)},ct}return Object(a.a)(yr,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Zt=this.props.selectable,dr=this.props.context.selectable;return typeof Zt=="boolean"?Zt:dr}},{key:"render",value:function(){var Zt,dr=this.props,Lr=dr.eventKey,Jr=dr.className,fn=dr.style,Cn=dr.dragOver,Nn=dr.dragOverGapTop,Zn=dr.dragOverGapBottom,ii=dr.isLeaf,pi=dr.isStart,ri=dr.isEnd,ji=dr.expanded,ei=dr.selected,Je=dr.checked,Gt=dr.halfChecked,vr=dr.loading,fr=dr.domRef,Gr=dr.active,Pr=dr.onMouseMove,hr=Object(E.a)(dr,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),An=this.props.context,br=An.prefixCls,pn=An.filterTreeNode,Kn=An.draggable,Wn=An.keyEntities,Ln=this.isDisabled(),$n=mt(hr),Un=Wn[Lr]||{},ti=Un.level,Gn=ri[ri.length-1];return e.createElement("div",Object.assign({ref:fr,className:_()(Jr,"".concat(br,"-treenode"),(Zt={},Object(y.a)(Zt,"".concat(br,"-treenode-disabled"),Ln),Object(y.a)(Zt,"".concat(br,"-treenode-switcher-").concat(ji?"open":"close"),!ii),Object(y.a)(Zt,"".concat(br,"-treenode-checkbox-checked"),Je),Object(y.a)(Zt,"".concat(br,"-treenode-checkbox-indeterminate"),Gt),Object(y.a)(Zt,"".concat(br,"-treenode-selected"),ei),Object(y.a)(Zt,"".concat(br,"-treenode-loading"),vr),Object(y.a)(Zt,"".concat(br,"-treenode-active"),Gr),Object(y.a)(Zt,"".concat(br,"-treenode-leaf-last"),Gn),Object(y.a)(Zt,"drag-over",!Ln&&Cn),Object(y.a)(Zt,"drag-over-gap-top",!Ln&&Nn),Object(y.a)(Zt,"drag-over-gap-bottom",!Ln&&Zn),Object(y.a)(Zt,"filter-node",pn&&pn(or(this.props))),Zt)),style:fn,onDragEnter:Kn?this.onDragEnter:void 0,onDragOver:Kn?this.onDragOver:void 0,onDragLeave:Kn?this.onDragLeave:void 0,onDrop:Kn?this.onDrop:void 0,onDragEnd:Kn?this.onDragEnd:void 0,onMouseMove:Pr},$n),e.createElement(Wt,{prefixCls:br,level:ti,isStart:pi,isEnd:ri}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),yr}(e.Component),pr=function(Et){return e.createElement(Ft.Consumer,null,function(yr){return e.createElement(rr,Object.assign({},Et,{context:yr}))})};pr.displayName="TreeNode",pr.defaultProps={title:Ar},pr.isTreeNode=1;var tn=pr,hn=.25,Mn=2;function Xn(Yt,Et){var yr=Yt.slice(),ct=yr.indexOf(Et);return ct>=0&&yr.splice(ct,1),yr}function si(Yt,Et){var yr=Yt.slice();return yr.indexOf(Et)===-1&&yr.push(Et),yr}function vi(Yt){return Yt.split("-")}function xi(Yt,Et){return"".concat(Yt,"-").concat(Et)}function _i(Yt){return Yt&&Yt.type&&Yt.type.isTreeNode}function Qe(Yt,Et){var yr=[Yt],ct=Et[Yt];function Zt(){var dr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];dr.forEach(function(Lr){var Jr=Lr.key,fn=Lr.children;yr.push(Jr),Zt(fn)})}return Zt(ct.children),yr}function we(Yt,Et){var yr=Yt.clientY,ct=Et.selectHandle.getBoundingClientRect(),Zt=ct.top,dr=ct.bottom,Lr=ct.height,Jr=Math.max(Lr*hn,Mn);return yr<=Zt+Jr?-1:yr>=dr-Jr?1:0}function Ne(Yt,Et){if(!Yt)return;var yr=Et.multiple;return yr?Yt.slice():Yt.length?[Yt[0]]:Yt}var Fe=function(Et){return Et};function Ye(Yt,Et){if(!Yt)return[];var yr=Et||{},ct=yr.processProps,Zt=ct===void 0?Fe:ct,dr=Array.isArray(Yt)?Yt:[Yt];return dr.map(function(Lr){var Jr=Lr.children,fn=Object(E.a)(Lr,["children"]),Cn=Ye(Jr,Et);return l.a.createElement(tn,Object.assign({},Zt(fn)),Cn)})}function We(Yt){if(!Yt)return null;var Et;if(Array.isArray(Yt))Et={checkedKeys:Yt,halfCheckedKeys:void 0};else if(Object(p.a)(Yt)==="object")Et={checkedKeys:Yt.checked||void 0,halfCheckedKeys:Yt.halfChecked||void 0};else return tt(!1,"`checkedKeys` is not an array or an object"),null;return Et}function Ze(Yt,Et){var yr=new Set;function ct(Zt){if(yr.has(Zt))return;var dr=Et[Zt];if(!dr)return;yr.add(Zt);var Lr=dr.parent,Jr=dr.node;if(Jr.disabled)return;Lr&&ct(Lr.key)}return(Yt||[]).forEach(function(Zt){ct(Zt)}),Object(h.a)(yr)}function mt(Yt){var Et={};return Object.keys(Yt).forEach(function(yr){(yr.startsWith("data-")||yr.startsWith("aria-"))&&(Et[yr]=Yt[yr])}),Et}function it(Yt,Et){return Yt!=null?Yt:Et}function Jt(){var Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Et=new Map;function yr(ct){var Zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ct||[]).forEach(function(dr){var Lr=dr.key,Jr=dr.children;tt(Lr!=null,"Tree node must have a certain key: [".concat(Zt).concat(Lr,"]"));var fn=String(Lr);tt(!Et.has(fn)||Lr===null||Lr===void 0,"Same 'key' exist in the Tree: ".concat(fn)),Et.set(fn,!0),yr(Jr,"".concat(Zt).concat(fn," > "))})}yr(Yt)}function Dr(Yt){function Et(yr){var ct=yt(yr);return ct.map(function(Zt){if(!_i(Zt))return tt(!Zt,"Tree/TreeNode can only accept TreeNode as children."),null;var dr=Zt.key,Lr=Zt.props,Jr=Lr.children,fn=Object(E.a)(Lr,["children"]),Cn=Object(v.a)({key:dr},fn),Nn=Et(Jr);return Nn.length&&(Cn.children=Nn),Cn}).filter(function(Zt){return Zt})}return Et(Yt)}function Sr(){var Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],yr=new Set(Et===!0?[]:Et),ct=[];function Zt(dr){var Lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return dr.map(function(Jr,fn){var Cn=xi(Lr?Lr.pos:"0",fn),Nn=it(Jr.key,Cn),Zn=Object(v.a)(Object(v.a)({},Jr),{},{parent:Lr,pos:Cn,children:null,data:Jr,isStart:[].concat(Object(h.a)(Lr?Lr.isStart:[]),[fn===0]),isEnd:[].concat(Object(h.a)(Lr?Lr.isEnd:[]),[fn===dr.length-1])});return ct.push(Zn),Et===!0||yr.has(Nn)?Zn.children=Zt(Jr.children||[],Zn):Zn.children=[],Zn})}return Zt(Yt),ct}function Br(Yt,Et,yr){var ct;yr?typeof yr=="string"?ct=function(Lr){return Lr[yr]}:typeof yr=="function"&&(ct=function(Lr){return yr(Lr)}):ct=function(Lr,Jr){return it(Lr.key,Jr)};function Zt(dr,Lr,Jr){var fn=dr?dr.children:Yt,Cn=dr?xi(Jr.pos,Lr):"0";if(dr){var Nn=ct(dr,Cn),Zn={node:dr,index:Lr,pos:Cn,key:Nn,parentPos:Jr.node?Jr.pos:null,level:Jr.level+1};Et(Zn)}fn&&fn.forEach(function(ii,pi){Zt(ii,pi,{node:dr,pos:Cn,level:Jr?Jr.level+1:-1})})}Zt(null)}function $t(Yt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},yr=Et.initWrapper,ct=Et.processEntity,Zt=Et.onProcessFinished,dr=arguments.length>2?arguments[2]:void 0,Lr={},Jr={},fn={posEntities:Lr,keyEntities:Jr};return yr&&(fn=yr(fn)||fn),Br(Yt,function(Cn){var Nn=Cn.node,Zn=Cn.index,ii=Cn.pos,pi=Cn.key,ri=Cn.parentPos,ji=Cn.level,ei={node:Nn,index:Zn,key:pi,pos:ii,level:ji},Je=it(pi,ii);Lr[ii]=ei,Jr[Je]=ei,ei.parent=Lr[ri],ei.parent&&(ei.parent.children=ei.parent.children||[],ei.parent.children.push(ei)),ct&&ct(ei,fn)},dr),Zt&&Zt(fn),fn}function gn(Yt,Et){var yr=Et.expandedKeys,ct=Et.selectedKeys,Zt=Et.loadedKeys,dr=Et.loadingKeys,Lr=Et.checkedKeys,Jr=Et.halfCheckedKeys,fn=Et.dragOverNodeKey,Cn=Et.dropPosition,Nn=Et.keyEntities,Zn=Nn[Yt],ii={eventKey:Yt,expanded:yr.indexOf(Yt)!==-1,selected:ct.indexOf(Yt)!==-1,loaded:Zt.indexOf(Yt)!==-1,loading:dr.indexOf(Yt)!==-1,checked:Lr.indexOf(Yt)!==-1,halfChecked:Jr.indexOf(Yt)!==-1,pos:String(Zn?Zn.pos:""),dragOver:fn===Yt&&Cn===0,dragOverGapTop:fn===Yt&&Cn===-1,dragOverGapBottom:fn===Yt&&Cn===1};return ii}function or(Yt){var Et=Yt.data,yr=Yt.expanded,ct=Yt.selected,Zt=Yt.checked,dr=Yt.loaded,Lr=Yt.loading,Jr=Yt.halfChecked,fn=Yt.dragOver,Cn=Yt.dragOverGapTop,Nn=Yt.dragOverGapBottom,Zn=Yt.pos,ii=Yt.active,pi=Object(v.a)(Object(v.a)({},Et),{},{expanded:yr,selected:ct,checked:Zt,loaded:dr,loading:Lr,halfChecked:Jr,dragOver:fn,dragOverGapTop:Cn,dragOverGapBottom:Nn,pos:Zn,active:ii});return"props"in pi||Object.defineProperty(pi,"props",{get:function(){return tt(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Yt}}),pi}function ln(Yt,Et){var yr=new Set;return Yt.forEach(function(ct){Et.has(ct)||yr.add(ct)}),yr}function an(Yt){var Et=Yt||{},yr=Et.disabled,ct=Et.disableCheckbox,Zt=Et.checkable;return!!(yr||ct)||Zt===!1}function Rr(Yt,Et,yr,ct){for(var Zt=new Set(Yt),dr=new Set,Lr=0;Lr<=yr;Lr+=1){var Jr=Et.get(Lr)||new Set;Jr.forEach(function(Zn){var ii=Zn.key,pi=Zn.node,ri=Zn.children,ji=ri===void 0?[]:ri;Zt.has(ii)&&!ct(pi)&&ji.filter(function(ei){return!ct(ei.node)}).forEach(function(ei){Zt.add(ei.key)})})}for(var fn=new Set,Cn=yr;Cn>=0;Cn-=1){var Nn=Et.get(Cn)||new Set;Nn.forEach(function(Zn){var ii=Zn.parent,pi=Zn.node;if(ct(pi)||!Zn.parent||fn.has(Zn.parent.key))return;if(ct(Zn.parent.node)){fn.add(ii.key);return}var ri=!0,ji=!1;(ii.children||[]).filter(function(ei){return!ct(ei.node)}).forEach(function(ei){var Je=ei.key,Gt=Zt.has(Je);ri&&!Gt&&(ri=!1),!ji&&(Gt||dr.has(Je))&&(ji=!0)}),ri&&Zt.add(ii.key),ji&&dr.add(ii.key),fn.add(ii.key)})}return{checkedKeys:Array.from(Zt),halfCheckedKeys:Array.from(ln(dr,Zt))}}function On(Yt,Et,yr,ct,Zt){for(var dr=new Set(Yt),Lr=new Set(Et),Jr=0;Jr<=ct;Jr+=1){var fn=yr.get(Jr)||new Set;fn.forEach(function(ii){var pi=ii.key,ri=ii.node,ji=ii.children,ei=ji===void 0?[]:ji;!dr.has(pi)&&!Lr.has(pi)&&!Zt(ri)&&ei.filter(function(Je){return!Zt(Je.node)}).forEach(function(Je){dr.delete(Je.key)})})}Lr=new Set;for(var Cn=new Set,Nn=ct;Nn>=0;Nn-=1){var Zn=yr.get(Nn)||new Set;Zn.forEach(function(ii){var pi=ii.parent,ri=ii.node;if(Zt(ri)||!ii.parent||Cn.has(ii.parent.key))return;if(Zt(ii.parent.node)){Cn.add(pi.key);return}var ji=!0,ei=!1;(pi.children||[]).filter(function(Je){return!Zt(Je.node)}).forEach(function(Je){var Gt=Je.key,vr=dr.has(Gt);ji&&!vr&&(ji=!1),!ei&&(vr||Lr.has(Gt))&&(ei=!0)}),ji||dr.delete(pi.key),ei&&Lr.add(pi.key),Cn.add(pi.key)})}return{checkedKeys:Array.from(dr),halfCheckedKeys:Array.from(ln(Lr,dr))}}function ci(Yt,Et,yr,ct){var Zt=[],dr;ct?dr=ct:dr=an;var Lr=new Set(Yt.filter(function(Nn){var Zn=!!yr[Nn];return Zn||Zt.push(Nn),Zn})),Jr=new Map,fn=0;Object.keys(yr).forEach(function(Nn){var Zn=yr[Nn],ii=Zn.level,pi=Jr.get(ii);pi||(pi=new Set,Jr.set(ii,pi)),pi.add(Zn),fn=Math.max(fn,ii)}),tt(!Zt.length,"Tree missing follow keys: ".concat(Zt.slice(0,100).map(function(Nn){return"'".concat(Nn,"'")}).join(", ")));var Cn;return Et===!0?Cn=Rr(Lr,Jr,fn,dr):Cn=On(Lr,Et.halfCheckedKeys,Jr,fn,dr),Cn}function Ui(Yt){var Et=e.useRef();Et.current=Yt;var yr=e.useCallback(function(){for(var ct,Zt=arguments.length,dr=new Array(Zt),Lr=0;Lr<Zt;Lr++)dr[Lr]=arguments[Lr];return(ct=Et.current)===null||ct===void 0?void 0:ct.call.apply(ct,[Et].concat(dr))},[]);return yr}function ki(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Di=ki()?e.useLayoutEffect:e.useEffect,Ki=Di,Ur=function(Et,yr){var ct=e.useRef(!0);Di(function(){if(!ct.current)return Et()},yr),Di(function(){return ct.current=!1,function(){ct.current=!0}},[])};function Tn(Yt){var Et=e.useRef(!1),yr=e.useState(Yt),ct=Object(m.a)(yr,2),Zt=ct[0],dr=ct[1];e.useEffect(function(){return Et.current=!1,function(){Et.current=!0}},[]);function Lr(Jr,fn){if(fn&&Et.current)return;dr(Jr)}return[Zt,Lr]}var Mr;(function(Yt){Yt[Yt.INNER=0]="INNER",Yt[Yt.PROP=1]="PROP"})(Mr||(Mr={}));function mr(Yt){return Yt!==void 0}function Cr(Yt,Et){var yr=Et||{},ct=yr.defaultValue,Zt=yr.value,dr=yr.onChange,Lr=yr.postState,Jr=Tn(function(){var ei=void 0,Je;return mr(Zt)?(ei=Zt,Je=Mr.PROP):mr(ct)?(ei=typeof ct=="function"?ct():ct,Je=Mr.PROP):(ei=typeof Yt=="function"?Yt():Yt,Je=Mr.INNER),[ei,Je,ei]}),fn=Object(m.a)(Jr,2),Cn=fn[0],Nn=fn[1],Zn=mr(Zt)?Zt:Cn[0],ii=Lr?Lr(Zn):Zn;Ur(function(){Nn(function(ei){var Je=Object(m.a)(ei,1),Gt=Je[0];return[Zt,Mr.PROP,Gt]})},[Zt]);var pi=e.useRef(),ri=Ui(function(ei,Je){Nn(function(Gt){var vr=Object(m.a)(Gt,3),fr=vr[0],Gr=vr[1],Pr=vr[2],hr=typeof ei=="function"?ei(fr):ei;if(hr===fr)return Gt;var An=Gr===Mr.INNER&&pi.current!==Pr?Pr:fr;return[hr,Mr.INNER,An]},Je)}),ji=Ui(dr);return Ki(function(){var ei=Object(m.a)(Cn,3),Je=ei[0],Gt=ei[1],vr=ei[2];Je!==vr&&Gt===Mr.INNER&&(ji(Je,vr),pi.current=vr)},[Cn]),[ii,ri]}var Lt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Et){var yr=Et.keyCode;if(Et.altKey&&!Et.ctrlKey||Et.metaKey||yr>=Lt.F1&&yr<=Lt.F12)return!1;switch(yr){case Lt.ALT:case Lt.CAPS_LOCK:case Lt.CONTEXT_MENU:case Lt.CTRL:case Lt.DOWN:case Lt.END:case Lt.ESC:case Lt.HOME:case Lt.INSERT:case Lt.LEFT:case Lt.MAC_FF_META:case Lt.META:case Lt.NUMLOCK:case Lt.NUM_CENTER:case Lt.PAGE_DOWN:case Lt.PAGE_UP:case Lt.PAUSE:case Lt.PRINT_SCREEN:case Lt.RIGHT:case Lt.SHIFT:case Lt.UP:case Lt.WIN_KEY:case Lt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Et){if(Et>=Lt.ZERO&&Et<=Lt.NINE)return!0;if(Et>=Lt.NUM_ZERO&&Et<=Lt.NUM_MULTIPLY)return!0;if(Et>=Lt.A&&Et<=Lt.Z)return!0;if(window.navigator.userAgent.indexOf("WebKit")!==-1&&Et===0)return!0;switch(Et){case Lt.SPACE:case Lt.QUESTION_MARK:case Lt.NUM_PLUS:case Lt.NUM_MINUS:case Lt.NUM_PERIOD:case Lt.NUM_DIVISION:case Lt.SEMICOLON:case Lt.DASH:case Lt.EQUALS:case Lt.COMMA:case Lt.PERIOD:case Lt.SLASH:case Lt.APOSTROPHE:case Lt.SINGLE_QUOTE:case Lt.OPEN_SQUARE_BRACKET:case Lt.BACKSLASH:case Lt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},wr=Lt;function Vr(Yt,Et,yr){var ct=e.useRef({});return(!("value"in ct.current)||yr(ct.current.condition,Et))&&(ct.current.value=Yt(),ct.current.condition=Et),ct.current.value}var jr=d("+nKL"),qr=function(Et,yr){var ct=Et.className,Zt=Et.style,dr=Et.motion,Lr=Et.motionNodes,Jr=Et.motionType,fn=Et.onMotionStart,Cn=Et.onMotionEnd,Nn=Et.active,Zn=Et.treeNodeRequiredProps,ii=Object(E.a)(Et,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),pi=e.useState(!0),ri=Object(m.a)(pi,2),ji=ri[0],ei=ri[1],Je=e.useContext(Ft),Gt=Je.prefixCls,vr=e.useRef(!1),fr=function(){vr.current||Cn(),vr.current=!0};return Object(e.useEffect)(function(){Lr&&Jr==="hide"&&ji&&ei(!1)},[Lr]),Object(e.useEffect)(function(){return Lr&&fn(),function(){Lr&&fr()}},[]),Lr?e.createElement(ie.b,Object.assign({ref:yr,visible:ji},dr,{motionAppear:Jr==="show",onAppearEnd:fr,onLeaveEnd:fr}),function(Gr,Pr){var hr=Gr.className,An=Gr.style;return e.createElement("div",{ref:Pr,className:_()("".concat(Gt,"-treenode-motion"),hr),style:An},Lr.map(function(br){var pn=br.data,Kn=pn.key,Wn=Object(E.a)(pn,["key"]),Ln=br.isStart,$n=br.isEnd;delete Wn.children;var Un=gn(Kn,Zn);return e.createElement(tn,Object.assign({},Wn,Un,{active:Nn,data:br.data,key:Kn,isStart:Ln,isEnd:$n}))}))}):e.createElement(tn,Object.assign({domRef:yr,className:ct,style:Zt},ii,{active:Nn}))};qr.displayName="MotionTreeNode";var oi=e.forwardRef(qr),Vn=oi;function Ti(){var Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],yr=Yt.length,ct=Et.length;if(Math.abs(yr-ct)!==1)return{add:!1,key:null};function Zt(dr,Lr){var Jr=new Map;dr.forEach(function(Cn){Jr.set(Cn,!0)});var fn=Lr.filter(function(Cn){return!Jr.has(Cn)});return fn.length===1?fn[0]:null}return yr<ct?{add:!0,key:Zt(Yt,Et)}:{add:!1,key:Zt(Et,Yt)}}function dn(Yt,Et,yr){var ct=Yt.findIndex(function(Jr){var fn=Jr.data;return fn.key===yr}),Zt=Yt[ct+1],dr=Et.findIndex(function(Jr){var fn=Jr.data;return fn.key===yr});if(Zt){var Lr=Et.findIndex(function(Jr){var fn=Jr.data;return fn.key===Zt.data.key});return Et.slice(dr+1,Lr)}return Et.slice(dr+1)}var _r={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},xn=function(){},Fn="RC_TREE_MOTION_".concat(Math.random()),zn={key:Fn},qn={key:Fn,level:0,index:0,pos:"0",node:zn},Oi={parent:null,children:[],pos:qn.pos,data:zn,isStart:[],isEnd:[]};function Li(Yt,Et,yr,ct){return Et===!1||!yr?Yt:Yt.slice(0,Math.ceil(yr/ct)+1)}function Ri(Yt){var Et=Yt.data.key,yr=Yt.pos;return it(Et,yr)}function Ji(Yt){for(var Et=String(Yt.data.key),yr=Yt;yr.parent;)yr=yr.parent,Et="".concat(yr.data.key," > ").concat(Et);return Et}var ma=function(Et,yr){var ct=Et.prefixCls,Zt=Et.data,dr=Et.selectable,Lr=Et.checkable,Jr=Et.expandedKeys,fn=Et.selectedKeys,Cn=Et.checkedKeys,Nn=Et.loadedKeys,Zn=Et.loadingKeys,ii=Et.halfCheckedKeys,pi=Et.keyEntities,ri=Et.disabled,ji=Et.dragging,ei=Et.dragOverNodeKey,Je=Et.dropPosition,Gt=Et.motion,vr=Et.height,fr=Et.itemHeight,Gr=Et.virtual,Pr=Et.focusable,hr=Et.activeItem,An=Et.focused,br=Et.tabIndex,pn=Et.onKeyDown,Kn=Et.onFocus,Wn=Et.onBlur,Ln=Et.onActiveChange,$n=Et.onListChangeStart,Un=Et.onListChangeEnd,ti=Object(E.a)(Et,["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"]),Gn=e.useRef(null);e.useImperativeHandle(yr,function(){return{scrollTo:function(Va){Gn.current.scrollTo(Va)}}});var wi=e.useState(Jr),Ei=Object(m.a)(wi,2),Zi=Ei[0],ua=Ei[1],Xi=e.useState(Zt),Gi=Object(m.a)(Xi,2),wa=Gi[0],na=Gi[1],mo=e.useState(Zt),Ca=Object(m.a)(mo,2),qi=Ca[0],aa=Ca[1],$i=e.useState([]),Aa=Object(m.a)($i,2),ya=Aa[0],Ha=Aa[1],ta=e.useState(null),ra=Object(m.a)(ta,2),_a=ra[0],Ka=ra[1];function bo(){na(Zt),aa(Zt),Ha([]),Ka(null),Un()}e.useEffect(function(){ua(Jr);var Sa=Ti(Zi,Jr);if(Sa.key!==null)if(Sa.add){var Va=wa.findIndex(function(co){var fa=co.data.key;return fa===Sa.key}),uo=Li(dn(wa,Zt,Sa.key),Gr,vr,fr),No=wa.slice();No.splice(Va+1,0,Oi),aa(No),Ha(uo),Ka("show")}else{var Po=Zt.findIndex(function(co){var fa=co.data.key;return fa===Sa.key}),to=Li(dn(Zt,wa,Sa.key),Gr,vr,fr),Uo=Zt.slice();Uo.splice(Po+1,0,Oi),aa(Uo),Ha(to),Ka("hide")}else wa!==Zt&&(na(Zt),aa(Zt))},[Jr,Zt]),e.useEffect(function(){ji||bo()},[ji]);var ga=Gt?qi:Zt,go={expandedKeys:Jr,selectedKeys:fn,loadedKeys:Nn,loadingKeys:Zn,checkedKeys:Cn,halfCheckedKeys:ii,dragOverNodeKey:ei,dropPosition:Je,keyEntities:pi};return e.createElement(e.Fragment,null,An&&hr&&e.createElement("span",{style:_r,"aria-live":"assertive"},Ji(hr)),e.createElement("div",{role:"tree"},e.createElement("input",{style:_r,disabled:Pr===!1||ri,tabIndex:Pr!==!1?br:null,onKeyDown:pn,onFocus:Kn,onBlur:Wn,value:"",onChange:xn})),e.createElement(jr.a,Object.assign({},ti,{data:ga,itemKey:Ri,height:vr,fullHeight:!1,virtual:Gr,itemHeight:fr,prefixCls:"".concat(ct,"-list"),ref:Gn}),function(Sa){var Va=Sa.pos,uo=Sa.data,No=uo.key,Po=Object(E.a)(uo,["key"]),to=Sa.isStart,Uo=Sa.isEnd,co=it(No,Va);delete Po.children;var fa=gn(co,go);return e.createElement(Vn,Object.assign({},Po,fa,{active:hr&&No===hr.data.key,pos:Va,data:Sa.data,isStart:to,isEnd:Uo,motion:Gt,motionNodes:No===Fn?ya:null,motionType:_a,onMotionStart:$n,onMotionEnd:bo,treeNodeRequiredProps:go,onMouseMove:function(){Ln(null)}}))}))},la=e.forwardRef(ma);la.displayName="NodeList";var qa=la,bi=function(Yt){Object(s.a)(yr,Yt);var Et=Object(u.a)(yr);function yr(){var ct;return Object(t.a)(this,yr),ct=Et.apply(this,arguments),ct.destroyed=!1,ct.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},ct.listRef=e.createRef(),ct.onNodeDragStart=function(Zt,dr){var Lr=ct.state,Jr=Lr.expandedKeys,fn=Lr.keyEntities,Cn=ct.props.onDragStart,Nn=dr.props.eventKey;ct.dragNode=dr;var Zn=Xn(Jr,Nn);ct.setState({dragging:!0,dragNodesKeys:Qe(Nn,fn)}),ct.setExpandedKeys(Zn),Cn&&Cn({event:Zt,node:or(dr.props)})},ct.onNodeDragEnter=function(Zt,dr){var Lr=ct.state,Jr=Lr.expandedKeys,fn=Lr.keyEntities,Cn=Lr.dragNodesKeys,Nn=ct.props.onDragEnter,Zn=dr.props,ii=Zn.pos,pi=Zn.eventKey;if(!ct.dragNode||Cn.indexOf(pi)!==-1)return;var ri=we(Zt,dr);if(ct.dragNode.props.eventKey===pi&&ri===0){ct.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){ct.setState({dragOverNodeKey:pi,dropPosition:ri}),ct.delayedDragEnterLogic||(ct.delayedDragEnterLogic={}),Object.keys(ct.delayedDragEnterLogic).forEach(function(ji){clearTimeout(ct.delayedDragEnterLogic[ji])}),ct.delayedDragEnterLogic[ii]=window.setTimeout(function(){if(!ct.state.dragging)return;var ji=Object(h.a)(Jr),ei=fn[pi];ei&&(ei.children||[]).length&&(ji=si(Jr,pi)),"expandedKeys"in ct.props||ct.setExpandedKeys(ji),Nn&&Nn({event:Zt,node:or(dr.props),expandedKeys:ji})},400)},0)},ct.onNodeDragOver=function(Zt,dr){var Lr=ct.state.dragNodesKeys,Jr=ct.props.onDragOver,fn=dr.props.eventKey;if(Lr.indexOf(fn)!==-1)return;if(ct.dragNode&&fn===ct.state.dragOverNodeKey){var Cn=we(Zt,dr);if(Cn===ct.state.dropPosition)return;ct.setState({dropPosition:Cn})}Jr&&Jr({event:Zt,node:or(dr.props)})},ct.onNodeDragLeave=function(Zt,dr){var Lr=ct.props.onDragLeave;ct.setState({dragOverNodeKey:""}),Lr&&Lr({event:Zt,node:or(dr.props)})},ct.onNodeDragEnd=function(Zt,dr){var Lr=ct.props.onDragEnd;ct.setState({dragOverNodeKey:""}),ct.cleanDragState(),Lr&&Lr({event:Zt,node:or(dr.props)}),ct.dragNode=null},ct.onNodeDrop=function(Zt,dr){var Lr=ct.state,Jr=Lr.dragNodesKeys,fn=Jr===void 0?[]:Jr,Cn=Lr.dropPosition,Nn=ct.props.onDrop,Zn=dr.props,ii=Zn.eventKey,pi=Zn.pos;if(ct.setState({dragOverNodeKey:""}),ct.cleanDragState(),fn.indexOf(ii)!==-1){tt(!1,"Can not drop to dragNode(include it's children node)");return}var ri=vi(pi),ji={event:Zt,node:or(dr.props),dragNode:ct.dragNode?or(ct.dragNode.props):null,dragNodesKeys:fn.slice(),dropPosition:Cn+Number(ri[ri.length-1]),dropToGap:!1};Cn!==0&&(ji.dropToGap=!0),Nn&&Nn(ji),ct.dragNode=null},ct.cleanDragState=function(){var Zt=ct.state.dragging;Zt&&ct.setState({dragging:!1})},ct.onNodeClick=function(Zt,dr){var Lr=ct.props.onClick;Lr&&Lr(Zt,dr)},ct.onNodeDoubleClick=function(Zt,dr){var Lr=ct.props.onDoubleClick;Lr&&Lr(Zt,dr)},ct.onNodeSelect=function(Zt,dr){var Lr=ct.state.selectedKeys,Jr=ct.state.keyEntities,fn=ct.props,Cn=fn.onSelect,Nn=fn.multiple,Zn=dr.selected,ii=dr.key,pi=!Zn;pi?Nn?Lr=si(Lr,ii):Lr=[ii]:Lr=Xn(Lr,ii);var ri=Lr.map(function(ji){var ei=Jr[ji];return ei?ei.node:null}).filter(function(ji){return ji});ct.setUncontrolledState({selectedKeys:Lr}),Cn&&Cn(Lr,{event:"select",selected:pi,node:dr,selectedNodes:ri,nativeEvent:Zt.nativeEvent})},ct.onNodeCheck=function(Zt,dr,Lr){var Jr=ct.state,fn=Jr.keyEntities,Cn=Jr.checkedKeys,Nn=Jr.halfCheckedKeys,Zn=ct.props,ii=Zn.checkStrictly,pi=Zn.onCheck,ri=dr.key,ji,ei={event:"check",node:dr,checked:Lr,nativeEvent:Zt.nativeEvent};if(ii){var Je=Lr?si(Cn,ri):Xn(Cn,ri),Gt=Xn(Nn,ri);ji={checked:Je,halfChecked:Gt},ei.checkedNodes=Je.map(function(An){return fn[An]}).filter(function(An){return An}).map(function(An){return An.node}),ct.setUncontrolledState({checkedKeys:Je})}else{var vr=ci([].concat(Object(h.a)(Cn),[ri]),!0,fn),fr=vr.checkedKeys,Gr=vr.halfCheckedKeys;if(!Lr){var Pr=new Set(fr);Pr.delete(ri);var hr=ci(Array.from(Pr),{checked:!1,halfCheckedKeys:Gr},fn);fr=hr.checkedKeys,Gr=hr.halfCheckedKeys}ji=fr,ei.checkedNodes=[],ei.checkedNodesPositions=[],ei.halfCheckedKeys=Gr,fr.forEach(function(An){var br=fn[An];if(!br)return;var pn=br.node,Kn=br.pos;ei.checkedNodes.push(pn),ei.checkedNodesPositions.push({node:pn,pos:Kn})}),ct.setUncontrolledState({checkedKeys:fr},!1,{halfCheckedKeys:Gr})}pi&&pi(ji,ei)},ct.onNodeLoad=function(Zt){return new Promise(function(dr){ct.setState(function(Lr){var Jr=Lr.loadedKeys,fn=Jr===void 0?[]:Jr,Cn=Lr.loadingKeys,Nn=Cn===void 0?[]:Cn,Zn=ct.props,ii=Zn.loadData,pi=Zn.onLoad,ri=Zt.key;if(!ii||fn.indexOf(ri)!==-1||Nn.indexOf(ri)!==-1)return{};var ji=ii(Zt);return ji.then(function(){var ei=ct.state,Je=ei.loadedKeys,Gt=ei.loadingKeys,vr=si(Je,ri),fr=Xn(Gt,ri);pi&&pi(vr,{event:"load",node:Zt}),ct.setUncontrolledState({loadedKeys:vr}),ct.setState({loadingKeys:fr}),dr()}),{loadingKeys:si(Nn,ri)}})})},ct.onNodeMouseEnter=function(Zt,dr){var Lr=ct.props.onMouseEnter;Lr&&Lr({event:Zt,node:dr})},ct.onNodeMouseLeave=function(Zt,dr){var Lr=ct.props.onMouseLeave;Lr&&Lr({event:Zt,node:dr})},ct.onNodeContextMenu=function(Zt,dr){var Lr=ct.props.onRightClick;Lr&&(Zt.preventDefault(),Lr({event:Zt,node:dr}))},ct.onFocus=function(){var Zt=ct.props.onFocus;ct.setState({focused:!0}),Zt&&Zt.apply(void 0,arguments)},ct.onBlur=function(){var Zt=ct.props.onBlur;ct.setState({focused:!1}),ct.onActiveChange(null),Zt&&Zt.apply(void 0,arguments)},ct.getTreeNodeRequiredProps=function(){var Zt=ct.state,dr=Zt.expandedKeys,Lr=Zt.selectedKeys,Jr=Zt.loadedKeys,fn=Zt.loadingKeys,Cn=Zt.checkedKeys,Nn=Zt.halfCheckedKeys,Zn=Zt.dragOverNodeKey,ii=Zt.dropPosition,pi=Zt.keyEntities;return{expandedKeys:dr||[],selectedKeys:Lr||[],loadedKeys:Jr||[],loadingKeys:fn||[],checkedKeys:Cn||[],halfCheckedKeys:Nn||[],dragOverNodeKey:Zn,dropPosition:ii,keyEntities:pi}},ct.setExpandedKeys=function(Zt){var dr=ct.state.treeData,Lr=Sr(dr,Zt);ct.setUncontrolledState({expandedKeys:Zt,flattenNodes:Lr},!0)},ct.onNodeExpand=function(Zt,dr){var Lr=ct.state.expandedKeys,Jr=ct.state.listChanging,fn=ct.props,Cn=fn.onExpand,Nn=fn.loadData,Zn=dr.key,ii=dr.expanded;if(Jr)return;var pi=Lr.indexOf(Zn),ri=!ii;if(tt(ii&&pi!==-1||!ii&&pi===-1,"Expand state not sync with index check"),ri?Lr=si(Lr,Zn):Lr=Xn(Lr,Zn),ct.setExpandedKeys(Lr),Cn&&Cn(Lr,{node:dr,expanded:ri,nativeEvent:Zt.nativeEvent}),ri&&Nn){var ji=ct.onNodeLoad(dr);ji&&ji.then(function(){var ei=Sr(ct.state.treeData,Lr);ct.setUncontrolledState({flattenNodes:ei})})}},ct.onListChangeStart=function(){ct.setUncontrolledState({listChanging:!0})},ct.onListChangeEnd=function(){setTimeout(function(){ct.setUncontrolledState({listChanging:!1})})},ct.onActiveChange=function(Zt){var dr=ct.state.activeKey,Lr=ct.props.onActiveChange;if(dr===Zt)return;ct.setState({activeKey:Zt}),Zt!==null&&ct.scrollTo({key:Zt}),Lr&&Lr(Zt)},ct.getActiveItem=function(){var Zt=ct.state,dr=Zt.activeKey,Lr=Zt.flattenNodes;return dr===null?null:Lr.find(function(Jr){var fn=Jr.data.key;return fn===dr})||null},ct.offsetActiveKey=function(Zt){var dr=ct.state,Lr=dr.flattenNodes,Jr=dr.activeKey,fn=Lr.findIndex(function(Zn){var ii=Zn.data.key;return ii===Jr});fn===-1&&Zt<0&&(fn=Lr.length),fn=(fn+Zt+Lr.length)%Lr.length;var Cn=Lr[fn];if(Cn){var Nn=Cn.data.key;ct.onActiveChange(Nn)}else ct.onActiveChange(null)},ct.onKeyDown=function(Zt){var dr=ct.state,Lr=dr.activeKey,Jr=dr.expandedKeys,fn=dr.checkedKeys,Cn=ct.props,Nn=Cn.onKeyDown,Zn=Cn.checkable,ii=Cn.selectable;switch(Zt.which){case wr.UP:{ct.offsetActiveKey(-1),Zt.preventDefault();break}case wr.DOWN:{ct.offsetActiveKey(1),Zt.preventDefault();break}}var pi=ct.getActiveItem();if(pi&&pi.data){var ri=ct.getTreeNodeRequiredProps(),ji=pi.data.isLeaf===!1||!!(pi.data.children||[]).length,ei=or(Object(v.a)(Object(v.a)({},gn(Lr,ri)),{},{data:pi.data,active:!0}));switch(Zt.which){case wr.LEFT:{ji&&Jr.includes(Lr)?ct.onNodeExpand({},ei):pi.parent&&ct.onActiveChange(pi.parent.data.key),Zt.preventDefault();break}case wr.RIGHT:{ji&&!Jr.includes(Lr)?ct.onNodeExpand({},ei):pi.children&&pi.children.length&&ct.onActiveChange(pi.children[0].data.key),Zt.preventDefault();break}case wr.ENTER:case wr.SPACE:{Zn&&!ei.disabled&&ei.checkable!==!1&&!ei.disableCheckbox?ct.onNodeCheck({},ei,!fn.includes(Lr)):!Zn&&ii&&!ei.disabled&&ei.selectable!==!1&&ct.onNodeSelect({},ei);break}}}Nn&&Nn(Zt)},ct.setUncontrolledState=function(Zt){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Lr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(ct.destroyed)return;var Jr=!1,fn=!0,Cn={};Object.keys(Zt).forEach(function(Nn){if(Nn in ct.props){fn=!1;return}Jr=!0,Cn[Nn]=Zt[Nn]}),Jr&&(!dr||fn)&&ct.setState(Object(v.a)(Object(v.a)({},Cn),Lr))},ct.scrollTo=function(Zt){ct.listRef.current.scrollTo(Zt)},ct}return Object(a.a)(yr,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var Zt,dr=this.state,Lr=dr.focused,Jr=dr.flattenNodes,fn=dr.keyEntities,Cn=dr.dragging,Nn=dr.activeKey,Zn=this.props,ii=Zn.prefixCls,pi=Zn.className,ri=Zn.style,ji=Zn.showLine,ei=Zn.focusable,Je=Zn.tabIndex,Gt=Je===void 0?0:Je,vr=Zn.selectable,fr=Zn.showIcon,Gr=Zn.icon,Pr=Zn.switcherIcon,hr=Zn.draggable,An=Zn.checkable,br=Zn.checkStrictly,pn=Zn.disabled,Kn=Zn.motion,Wn=Zn.loadData,Ln=Zn.filterTreeNode,$n=Zn.height,Un=Zn.itemHeight,ti=Zn.virtual,Gn=Zn.titleRender,wi=Zn.onContextMenu,Ei=mt(this.props);return e.createElement(Ft.Provider,{value:{prefixCls:ii,selectable:vr,showIcon:fr,icon:Gr,switcherIcon:Pr,draggable:hr,checkable:An,checkStrictly:br,disabled:pn,keyEntities:fn,loadData:Wn,filterTreeNode:Ln,titleRender:Gn,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:_()(ii,pi,(Zt={},Object(y.a)(Zt,"".concat(ii,"-show-line"),ji),Object(y.a)(Zt,"".concat(ii,"-focused"),Lr),Object(y.a)(Zt,"".concat(ii,"-active-focused"),Nn!==null),Zt))},e.createElement(qa,Object.assign({ref:this.listRef,prefixCls:ii,style:ri,data:Jr,disabled:pn,selectable:vr,checkable:!!An,motion:Kn,dragging:Cn,height:$n,itemHeight:Un,virtual:ti,focusable:ei,focused:Lr,tabIndex:Gt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:wi},this.getTreeNodeRequiredProps(),Ei))))}}],[{key:"getDerivedStateFromProps",value:function(Zt,dr){var Lr=dr.prevProps,Jr={prevProps:Zt};function fn(Gr){return!Lr&&Gr in Zt||Lr&&Lr[Gr]!==Zt[Gr]}var Cn;if(fn("treeData")?Cn=Zt.treeData:fn("children")&&(tt(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Cn=Dr(Zt.children)),Cn){Jr.treeData=Cn;var Nn=$t(Cn);Jr.keyEntities=Object(v.a)(Object(y.a)({},Fn,qn),Nn.keyEntities)}var Zn=Jr.keyEntities||dr.keyEntities;if(fn("expandedKeys")||Lr&&fn("autoExpandParent"))Jr.expandedKeys=Zt.autoExpandParent||!Lr&&Zt.defaultExpandParent?Ze(Zt.expandedKeys,Zn):Zt.expandedKeys;else if(!Lr&&Zt.defaultExpandAll){var ii=Object(v.a)({},Zn);delete ii[Fn],Jr.expandedKeys=Object.keys(ii).map(function(Gr){return ii[Gr].key})}else!Lr&&Zt.defaultExpandedKeys&&(Jr.expandedKeys=Zt.autoExpandParent||Zt.defaultExpandParent?Ze(Zt.defaultExpandedKeys,Zn):Zt.defaultExpandedKeys);if(Jr.expandedKeys||delete Jr.expandedKeys,Cn||Jr.expandedKeys){var pi=Sr(Cn||dr.treeData,Jr.expandedKeys||dr.expandedKeys);Jr.flattenNodes=pi}if(Zt.selectable&&(fn("selectedKeys")?Jr.selectedKeys=Ne(Zt.selectedKeys,Zt):!Lr&&Zt.defaultSelectedKeys&&(Jr.selectedKeys=Ne(Zt.defaultSelectedKeys,Zt))),Zt.checkable){var ri;if(fn("checkedKeys")?ri=We(Zt.checkedKeys)||{}:!Lr&&Zt.defaultCheckedKeys?ri=We(Zt.defaultCheckedKeys)||{}:Cn&&(ri=We(Zt.checkedKeys)||{checkedKeys:dr.checkedKeys,halfCheckedKeys:dr.halfCheckedKeys}),ri){var ji=ri,ei=ji.checkedKeys,Je=ei===void 0?[]:ei,Gt=ji.halfCheckedKeys,vr=Gt===void 0?[]:Gt;if(!Zt.checkStrictly){var fr=ci(Je,!0,Zn);Je=fr.checkedKeys,vr=fr.halfCheckedKeys}Jr.checkedKeys=Je,Jr.halfCheckedKeys=vr}}return fn("loadedKeys")&&(Jr.loadedKeys=Zt.loadedKeys),Jr}}]),yr}(e.Component);bi.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:[]},bi.TreeNode=tn;var Sn=bi,zi=Sn,oa=e.createContext(null);function Yi(Yt,Et){if(!Yt)return!0;var yr=Yt.data,ct=yr.disabled,Zt=yr.disableCheckbox;switch(Et){case"select":return ct;case"checkbox":return ct||Zt}return!1}function ca(Yt,Et){var yr=e.useCallback(function(Zt){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Lr=arguments.length>2?arguments[2]:void 0,Jr=Yt.get(Zt);return!Lr&&Yi(Jr,dr)?null:Jr},[Yt]),ct=e.useCallback(function(Zt){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Lr=arguments.length>2?arguments[2]:void 0,Jr=Et.get(Zt);return!Lr&&Yi(Jr,dr)?null:Jr},[Et]);return[yr,ct]}function Hi(Yt){return e.useMemo(function(){var Et=new Map,yr=new Map;return Yt.forEach(function(ct){Et.set(ct.key,ct),yr.set(ct.data.value,ct)}),[Et,yr]},[Yt])}var Ia={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Da=function(Et,yr){var ct=Et.prefixCls,Zt=Et.height,dr=Et.itemHeight,Lr=Et.virtual,Jr=Et.options,fn=Et.flattenOptions,Cn=Et.multiple,Nn=Et.searchValue,Zn=Et.onSelect,ii=Et.onToggleOpen,pi=Et.open,ri=Et.notFoundContent,ji=Et.onMouseEnter,ei=e.useContext(oa),Je=ei.checkable,Gt=ei.checkedKeys,vr=ei.halfCheckedKeys,fr=ei.treeExpandedKeys,Gr=ei.treeDefaultExpandAll,Pr=ei.treeDefaultExpandedKeys,hr=ei.onTreeExpand,An=ei.treeIcon,br=ei.showTreeIcon,pn=ei.switcherIcon,Kn=ei.treeLine,Wn=ei.treeNodeFilterProp,Ln=ei.loadData,$n=ei.treeLoadedKeys,Un=ei.treeMotion,ti=ei.onTreeLoad,Gn=e.useRef(),wi=Vr(function(){return Jr},[pi,Jr],function(fa,ro){return ro[0]&&fa[1]!==ro[1]}),Ei=Hi(fn),Zi=Object(m.a)(Ei,2),ua=Zi[0],Xi=Zi[1],Gi=ca(ua,Xi),wa=Object(m.a)(Gi,2),na=wa[0],mo=wa[1],Ca=e.useMemo(function(){return Gt.map(function(fa){var ro=mo(fa);return ro?ro.key:null})},[Gt]),qi=e.useMemo(function(){return Je?{checked:Ca,halfChecked:vr}:null},[Ca,vr,Je]);e.useEffect(function(){if(pi&&!Cn&&Ca.length){var fa;(fa=Gn.current)===null||fa===void 0||fa.scrollTo({key:Ca[0]})}},[pi]);var aa=String(Nn).toLowerCase(),$i=function(ro){return aa?String(ro[Wn]).toLowerCase().includes(aa):!1},Aa=e.useState(Pr),ya=Object(m.a)(Aa,2),Ha=ya[0],ta=ya[1],ra=e.useState(null),_a=Object(m.a)(ra,2),Ka=_a[0],bo=_a[1],ga=e.useMemo(function(){return fr?Object(h.a)(fr):Nn?Ka:Ha},[Ha,Ka,aa,fr]);e.useEffect(function(){Nn&&bo(fn.map(function(fa){return fa.key}))},[Nn]);var go=function(ro){ta(ro),bo(ro),hr&&hr(ro)},Sa=function(ro){ro.preventDefault()},Va=function(ro,Wa){var Ea=Wa.node.key,Qr=na(Ea,Je?"checkbox":"select");Qr!==null&&Zn(Qr.data.value,{selected:!Gt.includes(Qr.data.value)}),Cn||ii(!1)},uo=e.useState(null),No=Object(m.a)(uo,2),Po=No[0],to=No[1],Uo=na(Po);if(e.useImperativeHandle(yr,function(){return{onKeyDown:function(ro){var Wa,Ea=ro.which;switch(Ea){case wr.UP:case wr.DOWN:case wr.LEFT:case wr.RIGHT:(Wa=Gn.current)===null||Wa===void 0||Wa.onKeyDown(ro);break;case wr.ENTER:{Uo!==null&&Va(null,{node:{key:Po},selected:!Gt.includes(Uo.data.value)});break}case wr.ESC:ii(!1)}},onKeyUp:function(){}}}),wi.length===0)return e.createElement("div",{role:"listbox",className:"".concat(ct,"-empty"),onMouseDown:Sa},ri);var co={};return $n&&(co.loadedKeys=$n),ga&&(co.expandedKeys=ga),e.createElement("div",{onMouseDown:Sa,onMouseEnter:ji},Uo&&pi&&e.createElement("span",{style:Ia,"aria-live":"assertive"},Uo.data.value),e.createElement(zi,Object.assign({ref:Gn,focusable:!1,prefixCls:"".concat(ct,"-tree"),treeData:wi,height:Zt,itemHeight:dr,virtual:Lr,multiple:Cn,icon:An,showIcon:br,switcherIcon:pn,showLine:Kn,loadData:Nn?null:Ln,motion:Un,checkable:Je,checkStrictly:!0,checkedKeys:qi,selectedKeys:Je?[]:Ca,defaultExpandAll:Gr},co,{onActiveChange:to,onSelect:Va,onCheck:Va,onExpand:go,onLoad:ti,filterTreeNode:$i})))},Qa=e.forwardRef(Da);Qa.displayName="OptionList";var Wo=Qa,po=function(){return null},Mo=po;function Fo(Yt){return yt(Yt).map(function(Et){if(!e.isValidElement(Et)||!Et.type)return null;var yr=Et.key,ct=Et.props,Zt=ct.children,dr=ct.value,Lr=Object(E.a)(ct,["children","value"]),Jr=Object(v.a)({key:yr,value:dr},Lr),fn=Fo(Zt);return fn.length&&(Jr.children=fn),Jr}).filter(function(Et){return Et})}function yo(Yt){if(!Yt)return Yt;var Et=Object(v.a)({},Yt);return"props"in Et||Object.defineProperty(Et,"props",{get:function(){return tt(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Et}}),Et}function Oo(Yt,Et,yr,ct,Zt){var dr=null,Lr=null;function Jr(){function fn(Cn){var Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Cn.map(function(ii,pi){var ri="".concat(Nn,"-").concat(pi),ji=yr.includes(ii.value),ei=fn(ii.children||[],ri,ji),Je=e.createElement(Mo,Object.assign({},ii),ei.map(function(vr){return vr.node}));if(Et===ii.value&&(dr=Je),ji){var Gt={pos:ri,node:Je,children:ei};return Zn||Lr.push(Gt),Gt}return null}).filter(function(ii){return ii})}Lr||(Lr=[],fn(ct),Lr.sort(function(Cn,Nn){var Zn=Cn.node.props.value,ii=Nn.node.props.value,pi=yr.indexOf(Zn),ri=yr.indexOf(ii);return pi-ri}))}Object.defineProperty(Yt,"triggerNode",{get:function(){return tt(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Jr(),dr}}),Object.defineProperty(Yt,"allCheckedNodes",{get:function(){return tt(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Jr(),Zt?Lr:Lr.map(function(Cn){var Nn=Cn.node;return Nn})}})}function sa(Yt){return Array.isArray(Yt)?Yt:Yt!==void 0?[Yt]:[]}function hs(Yt,Et){var yr=new Map;return Et.forEach(function(ct){var Zt=ct.data;yr.set(Zt.value,Zt)}),Yt.map(function(ct){return yo(yr.get(ct))})}function Jo(Yt,Et){var yr=hs([Yt],Et)[0];return yr?yr.disabled:!1}function wo(Yt){return Yt.disabled||Yt.disableCheckbox||Yt.checkable===!1}function _o(Yt){for(var Et=Yt.parent,yr=0,ct=Et;ct;)ct=ct.parent,yr+=1;return yr}function Bo(Yt){function Et(ct){return(ct||[]).map(function(Zt){var dr=Zt.value,Lr=Zt.key,Jr=Zt.children,fn=Object(v.a)(Object(v.a)({},Zt),{},{key:"key"in Zt?Lr:dr});return Jr&&(fn.children=Et(Jr)),fn})}var yr=Sr(Et(Yt),!0);return yr.map(function(ct){return{key:ct.data.key,data:ct.data,level:_o(ct)}})}function Ds(Yt){return function(Et,yr){var ct=yr[Yt];return String(ct).toLowerCase().includes(String(Et).toLowerCase())}}function Nr(Yt,Et,yr){var ct=yr.optionFilterProp,Zt=yr.filterOption;if(Zt===!1)return Et;var dr;typeof Zt=="function"?dr=Zt:dr=Ds(ct);function Lr(Jr){var fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Jr.map(function(Cn){var Nn=Cn.children,Zn=fn||dr(Yt,yo(Cn)),ii=Lr(Nn||[],Zn);return Zn||ii.length?Object(v.a)(Object(v.a)({},Cn),{},{children:ii}):null}).filter(function(Cn){return Cn})}return Lr(Et)}function rn(Yt,Et,yr,ct){var Zt=new Map;return sa(Et).forEach(function(dr){dr&&Object(p.a)(dr)==="object"&&"value"in dr&&Zt.set(dr.value,dr)}),Yt.map(function(dr){var Lr={value:dr},Jr=yr(dr,"select",!0),fn=Jr?ct(Jr.data):dr;if(Zt.has(dr)){var Cn=Zt.get(dr);Lr.label="label"in Cn?Cn.label:fn,"halfChecked"in Cn&&(Lr.halfChecked=Cn.halfChecked)}else Lr.label=fn;return Lr})}function En(Yt,Et){var yr=new Set(Yt);return yr.add(Et),Array.from(yr)}function en(Yt,Et){var yr=new Set(Yt);return yr.delete(Et),Array.from(yr)}function ur(Yt){var Et=Yt.searchPlaceholder,yr=Yt.treeCheckStrictly,ct=Yt.treeCheckable,Zt=Yt.labelInValue,dr=Yt.value,Lr=Yt.multiple;tt(!Et,"`searchPlaceholder` has been removed."),yr&&Zt===!1&&tt(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Zt||yr)&&tt(sa(dr).every(function(Jr){return Jr&&Object(p.a)(Jr)==="object"&&"value"in Jr}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),yr||Lr||ct?tt(!dr||Array.isArray(dr),"`value` should be an array when `TreeSelect` is checkable or multiple."):tt(!Array.isArray(dr),"`value` should not be array when `TreeSelect` is single mode.")}var on=ur,Bn=10;function Hn(Yt,Et){var yr=Et.id,ct=Et.pId,Zt=Et.rootPId,dr={},Lr=[],Jr=Yt.map(function(fn){var Cn=Object(v.a)({},fn),Nn=Cn[yr];return dr[Nn]=Cn,Cn.key=Cn.key||Nn,Cn});return Jr.forEach(function(fn){var Cn=fn[ct],Nn=dr[Cn];Nn&&(Nn.children=Nn.children||[],Nn.children.push(fn)),(Cn===Zt||!Nn&&Zt===null)&&Lr.push(fn)}),Lr}function Ii(Yt,Et){var yr=0,ct=new Set;function Zt(dr){return(dr||[]).map(function(Lr){var Jr=Lr.key,fn=Lr.value,Cn=Lr.children,Nn=Object(E.a)(Lr,["key","value","children"]),Zn="value"in Lr?fn:Jr,ii=Object(v.a)(Object(v.a)({},Nn),{},{key:Jr!=null?Jr:Zn,value:Zn,title:Et(Lr)});return"children"in Lr&&(ii.children=Zt(Cn)),ii})}return Zt(Yt)}function Ci(Yt,Et,yr){var ct=yr.getLabelProp,Zt=yr.simpleMode,dr=e.useRef({});return Yt?(dr.current.formatTreeData=dr.current.treeData===Yt?dr.current.formatTreeData:Ii(Zt?Hn(Yt,Object(v.a)({id:"id",pId:"pId",rootPId:null},Zt!==!0?Zt:{})):Yt,ct),dr.current.treeData=Yt):dr.current.formatTreeData=dr.current.children===Et?dr.current.formatTreeData:Ii(Fo(Et),ct),dr.current.formatTreeData}var Jn="SHOW_ALL",mi="SHOW_PARENT",yi="SHOW_CHILD";function da(Yt,Et,yr){var ct=new Set(Yt);return Et===yi?Yt.filter(function(Zt){var dr=yr[Zt];return!(dr&&dr.children&&dr.children.every(function(Lr){var Jr=Lr.node;return wo(Jr)||ct.has(Jr.key)}))}):Et===mi?Yt.filter(function(Zt){var dr=yr[Zt],Lr=dr?dr.parent:null;return!(Lr&&!wo(Lr.node)&&ct.has(Lr.node.key))}):Yt}function ha(Yt,Et){var yr=Et.value,ct=Et.getEntityByValue,Zt=Et.getEntityByKey,dr=Et.treeConduction,Lr=Et.showCheckedStrategy,Jr=Et.conductKeyEntities,fn=Et.getLabelProp;return e.useMemo(function(){var Cn=Yt;if(dr){var Nn=da(Yt.map(function(Zn){var ii=ct(Zn);return ii?ii.key:Zn}),Lr,Jr);Cn=Nn.map(function(Zn){var ii=Zt(Zn);return ii?ii.data.value:Zn})}return rn(Cn,yr,ct,fn)},[Yt,yr,dr,Lr,ct])}var Pa=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],Ra=nt({prefixCls:"rc-tree-select",components:{optionList:Wo},convertChildrenToData:function(){return null},flattenOptions:Bo,getLabeledValue:mn,filterOptions:Nr,isValueDisabled:Jo,findValueOption:hs,omitDOMProps:function(Et){var yr=Object(v.a)({},Et);return Pa.forEach(function(ct){delete yr[ct]}),yr}});Ra.displayName="Select";var so=e.forwardRef(function(Yt,Et){var yr=Yt.multiple,ct=Yt.treeCheckable,Zt=Yt.treeCheckStrictly,dr=Yt.showCheckedStrategy,Lr=dr===void 0?"SHOW_CHILD":dr,Jr=Yt.labelInValue,fn=Yt.loadData,Cn=Yt.treeLoadedKeys,Nn=Yt.treeNodeFilterProp,Zn=Nn===void 0?"value":Nn,ii=Yt.treeNodeLabelProp,pi=Yt.treeDataSimpleMode,ri=Yt.treeData,ji=Yt.treeExpandedKeys,ei=Yt.treeDefaultExpandedKeys,Je=Yt.treeDefaultExpandAll,Gt=Yt.children,vr=Yt.treeIcon,fr=Yt.showTreeIcon,Gr=Yt.switcherIcon,Pr=Yt.treeLine,hr=Yt.treeMotion,An=Yt.filterTreeNode,br=Yt.dropdownPopupAlign,pn=Yt.onChange,Kn=Yt.onTreeExpand,Wn=Yt.onTreeLoad,Ln=Yt.onDropdownVisibleChange,$n=Yt.onSelect,Un=Yt.onDeselect,ti=ct||Zt,Gn=yr||ti,wi=ct&&!Zt,Ei=Zt||Jr,Zi=e.useRef(null);e.useImperativeHandle(Et,function(){return{focus:Zi.current.focus,blur:Zi.current.blur}});var ua=function(Ea){return ri&&Ea.label||Ea.title},Xi=function(Ea){return ii?Ea[ii]:ua(Ea)},Gi=Ci(ri,Gt,{getLabelProp:ua,simpleMode:pi}),wa=Object(e.useMemo)(function(){return Bo(Gi)},[Gi]),na=Hi(wa),mo=Object(m.a)(na,2),Ca=mo[0],qi=mo[1],aa=ca(Ca,qi),$i=Object(m.a)(aa,2),Aa=$i[0],ya=$i[1],Ha=Object(e.useMemo)(function(){return wi?$t(Gi):{keyEntities:null}},[Gi,ct,Zt]),ta=Ha.keyEntities,ra=Cr(Yt.defaultValue,{value:Yt.value}),_a=Object(m.a)(ra,2),Ka=_a[0],bo=_a[1],ga=function(Ea){var Qr=[],za=[];return Ea.forEach(function(rs){ya(rs)?za.push(rs):Qr.push(rs)}),{missingRawValues:Qr,existRawValues:za}},go=Object(e.useMemo)(function(){var Wa=[],Ea=[];if(sa(Ka).forEach(function(vo){if(vo&&Object(p.a)(vo)==="object"&&"value"in vo)if(vo.halfChecked&&Zt){var Io=ya(vo.value);Wa.push(Io?Io.key:vo.value)}else Ea.push(vo.value);else Ea.push(vo)}),wi){var Qr=ga(Ea),za=Qr.missingRawValues,rs=Qr.existRawValues,Vo=rs.map(function(vo){return ya(vo).key}),Go=ci(Vo,!0,ta),Qo=Go.checkedKeys,Yo=Go.halfCheckedKeys;return[[].concat(Object(h.a)(za),Object(h.a)(Qo.map(function(vo){return Aa(vo).data.value}))),Yo]}return[Ea,Wa]},[Ka,Gn,Ei,ct,Zt]),Sa=Object(m.a)(go,2),Va=Sa[0],uo=Sa[1],No=ha(Va,{treeConduction:wi,value:Ka,showCheckedStrategy:Lr,conductKeyEntities:ta,getEntityByValue:ya,getEntityByKey:Aa,getLabelProp:Xi}),Po=function(Ea,Qr,za){if(bo(Gn?Ea:Ea[0]),pn){var rs=Ea;if(wi&&Lr!=="SHOW_ALL"){var Vo=Ea.map(function(ho){var Ao=ya(ho);return Ao?Ao.key:ho}),Go=da(Vo,Lr,ta);rs=Go.map(function(ho){var Ao=Aa(ho);return Ao?Ao.data.value:ho})}var Qo=Qr||{triggerValue:void 0,selected:void 0},Yo=Qo.triggerValue,vo=Qo.selected,Io=Ei?rn(rs,Ka,ya,Xi):rs;if(Zt){var zo=uo.map(function(ho){var Ao=Aa(ho);return Ao?Ao.data.value:ho}).filter(function(ho){return!rs.includes(ho)});Io=[].concat(Object(h.a)(Io),Object(h.a)(rn(zo,Ka,ya,Xi)))}var Fa={preValue:No,triggerValue:Yo},Ja=!0;(Zt||za==="selection"&&!vo)&&(Ja=!1),Oo(Fa,Yo,Ea,Gi,Ja),ti?Fa.checked=vo:Fa.selected=vo,pn(Gn?Io:Io[0],Ei?null:rs.map(function(ho){var Ao=ya(ho);return Ao?Xi(Ao.data):null}),Fa)}},to=function(Ea,Qr,za){var rs=Ea;if(!Gn)Po([Ea],{selected:!0,triggerValue:Ea},za);else{var Vo=En(Va,Ea);if(wi){var Go=ga(Vo),Qo=Go.missingRawValues,Yo=Go.existRawValues,vo=Yo.map(function(Fa){return ya(Fa).key}),Io=ci(vo,!0,ta),zo=Io.checkedKeys;Vo=[].concat(Object(h.a)(Qo),Object(h.a)(zo.map(function(Fa){return Aa(Fa).data.value})))}Po(Vo,{selected:!0,triggerValue:Ea},za)}$n&&$n(rs,Qr)},Uo=function(Ea,Qr,za){var rs=Ea,Vo=en(Va,Ea);if(wi){var Go=ga(Vo),Qo=Go.missingRawValues,Yo=Go.existRawValues,vo=Yo.map(function(Fa){return ya(Fa).key}),Io=ci(vo,{checked:!1,halfCheckedKeys:uo},ta),zo=Io.checkedKeys;Vo=[].concat(Object(h.a)(Qo),Object(h.a)(zo.map(function(Fa){return Aa(Fa).data.value})))}Po(Vo,{selected:!1,triggerValue:Ea},za),Un&&Un(rs,Qr)},co=function(){Po([],null,"clear")},fa=e.useCallback(function(Wa){if(Ln){var Ea={};Object.defineProperty(Ea,"documentClickClose",{get:function(){return tt(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Ln(Wa,Ea)}},[Ln]),ro={optionLabelProp:null,optionFilterProp:Zn,dropdownAlign:br,internalProps:{mark:Be,onClear:co,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:to,onRawDeselect:Uo}};return"filterTreeNode"in Yt&&(ro.filterOption=An),e.createElement(oa.Provider,{value:{checkable:ti,loadData:fn,treeLoadedKeys:Cn,onTreeLoad:Wn,checkedKeys:Va,halfCheckedKeys:uo,treeDefaultExpandAll:Je,treeExpandedKeys:ji,treeDefaultExpandedKeys:ei,onTreeExpand:Kn,treeIcon:vr,treeMotion:hr,showTreeIcon:fr,switcherIcon:Gr,treeLine:Pr,treeNodeFilterProp:Zn}},e.createElement(Ra,Object.assign({ref:Zi,mode:Gn?"multiple":null},Yt,ro,{value:No,labelInValue:!0,options:Gi,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:fa})))}),La=function(Yt){Object(s.a)(yr,Yt);var Et=Object(u.a)(yr);function yr(){var ct;return Object(t.a)(this,yr),ct=Et.apply(this,arguments),ct.selectRef=e.createRef(),ct.focus=function(){ct.selectRef.current.focus()},ct.blur=function(){ct.selectRef.current.blur()},ct}return Object(a.a)(yr,[{key:"render",value:function(){return e.createElement(so,Object.assign({ref:this.selectRef},this.props))}}]),yr}(e.Component);La.TreeNode=Mo,La.SHOW_ALL=Jn,La.SHOW_PARENT=mi,La.SHOW_CHILD=yi;var lo=La,So=lo,Xt=d("BGR+"),zr=d("H84U"),un=d("uaoM"),vn=d("1vzs"),ni=d("2jpz"),li=d("3Nzz"),fi=function(Yt){r()(yr,Yt);var Et=n()(yr);function yr(ct){var Zt;return g()(this,yr),Zt=Et.call(this,ct),Zt.selectRef=e.createRef(),Zt.renderTreeSelect=function(dr){var Lr=dr.getPopupContainer,Jr=dr.getPrefixCls,fn=dr.renderEmpty,Cn=dr.direction,Nn=dr.virtual,Zn=dr.dropdownMatchSelectWidth,ii=Zt.props,pi=ii.prefixCls,ri=ii.size,ji=ii.className,ei=ii.treeCheckable,Je=ii.multiple,Gt=ii.listHeight,vr=Gt===void 0?256:Gt,fr=ii.listItemHeight,Gr=fr===void 0?26:fr,Pr=ii.notFoundContent,hr=ii.switcherIcon,An=ii.treeLine,br=ii.getPopupContainer,pn=ii.dropdownClassName,Kn=ii.bordered,Wn=ii.treeIcon,Ln=Wn===void 0?!1:Wn,$n=Jr("select",pi),Un=Jr("select-tree",pi),ti=Jr("tree-select",pi),Gn=_()(pn,"".concat(ti,"-dropdown"),A()({},"".concat(ti,"-dropdown-rtl"),Cn==="rtl")),wi=!!(ei||Je),Ei=Object(vn.a)(x()(x()({},Zt.props),{multiple:wi,prefixCls:$n})),Zi=Ei.suffixIcon,ua=Ei.itemIcon,Xi=Ei.removeIcon,Gi=Ei.clearIcon,wa;Pr!==void 0?wa=Pr:wa=fn("Select");var na=Object(Xt.default)(Zt.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","size","bordered"]);return e.createElement(li.b.Consumer,null,function(mo){var Ca,qi=ri||mo,aa=_()(!pi&&ti,(Ca={},A()(Ca,"".concat($n,"-lg"),qi==="large"),A()(Ca,"".concat($n,"-sm"),qi==="small"),A()(Ca,"".concat($n,"-rtl"),Cn==="rtl"),A()(Ca,"".concat($n,"-borderless"),!Kn),Ca),ji);return e.createElement(So,x()({virtual:Nn,dropdownMatchSelectWidth:Zn},na,{ref:Zt.selectRef,prefixCls:$n,className:aa,listHeight:vr,listItemHeight:Gr,treeCheckable:ei&&e.createElement("span",{className:"".concat($n,"-tree-checkbox-inner")}),inputIcon:Zi,menuItemSelectedIcon:ua,removeIcon:Xi,clearIcon:Gi,switcherIcon:function(Aa){return Object(ni.a)(Un,hr,An,Aa)},showTreeIcon:Ln,notFoundContent:wa,getPopupContainer:br||Lr,treeMotion:null,dropdownClassName:Gn}))})},Object(un.a)(ct.multiple!==!1||!ct.treeCheckable,"TreeSelect","`multiple` will alway be `true` when `treeCheckable` is true"),Zt}return c()(yr,[{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(zr.a,null,this.renderTreeSelect)}}]),yr}(e.Component);fi.TreeNode=Mo,fi.SHOW_ALL=Jn,fi.SHOW_PARENT=mi,fi.SHOW_CHILD=yi,fi.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var di=F.a=fi},"5Uyt":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("KmBX"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},"5YOS":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("xb2K"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},"5YgA":function(H,F,d){},"5bA4":function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="LeftOutlined";var f=F.a=x.forwardRef(g)},"5hvy":function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("MlIO"))})(this,function(O){return function(x){var C=O,A=C.lib,S=A.WordArray,g=A.Hasher,f=C.x64,c=f.Word,o=C.algo,r=[],i=[],n=[];(function(){for(var t=1,a=0,s=0;s<24;s++){r[t+5*a]=(s+1)*(s+2)/2%64;var u=a%5,h=(2*t+3*a)%5;t=u,a=h}for(var t=0;t<5;t++)for(var a=0;a<5;a++)i[t+5*a]=a+(2*t+3*a)%5*5;for(var p=1,m=0;m<24;m++){for(var v=0,y=0,E=0;E<7;E++){if(p&1){var T=(1<<E)-1;T<32?y^=1<<T:v^=1<<T-32}p&128?p=p<<1^113:p<<=1}n[m]=c.create(v,y)}})();var e=[];(function(){for(var t=0;t<25;t++)e[t]=c.create()})();var l=o.SHA3=g.extend({cfg:g.cfg.extend({outputLength:512}),_doReset:function(){for(var a=this._state=[],s=0;s<25;s++)a[s]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(a,s){for(var u=this._state,h=this.blockSize/2,p=0;p<h;p++){var m=a[s+2*p],v=a[s+2*p+1];m=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,v=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360;var y=u[p];y.high^=v,y.low^=m}for(var E=0;E<24;E++){for(var T=0;T<5;T++){for(var b=0,w=0,_=0;_<5;_++){var y=u[T+5*_];b^=y.high,w^=y.low}var I=e[T];I.high=b,I.low=w}for(var T=0;T<5;T++)for(var L=e[(T+4)%5],N=e[(T+1)%5],D=N.high,R=N.low,b=L.high^(D<<1|R>>>31),w=L.low^(R<<1|D>>>31),_=0;_<5;_++){var y=u[T+5*_];y.high^=b,y.low^=w}for(var k=1;k<25;k++){var b,w,y=u[k],M=y.high,U=y.low,B=r[k];B<32?(b=M<<B|U>>>32-B,w=U<<B|M>>>32-B):(b=U<<B-32|M>>>64-B,w=M<<B-32|U>>>64-B);var j=e[i[k]];j.high=b,j.low=w}var W=e[0],V=u[0];W.high=V.high,W.low=V.low;for(var T=0;T<5;T++)for(var _=0;_<5;_++){var k=T+5*_,y=u[k],z=e[k],J=e[(T+1)%5+5*_],Z=e[(T+2)%5+5*_];y.high=z.high^~J.high&Z.high,y.low=z.low^~J.low&Z.low}var y=u[0],de=n[E];y.high^=de.high,y.low^=de.low}},_doFinalize:function(){var a=this._data,s=a.words,u=this._nDataBytes*8,h=a.sigBytes*8,p=this.blockSize*32;s[h>>>5]|=1<<24-h%32,s[(x.ceil((h+1)/p)*p>>>5)-1]|=128,a.sigBytes=s.length*4,this._process();for(var m=this._state,v=this.cfg.outputLength/8,y=v/8,E=[],T=0;T<y;T++){var b=m[T],w=b.high,_=b.low;w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,E.push(_),E.push(w)}return new S.init(E,v)},clone:function(){for(var a=g.clone.call(this),s=a._state=this._state.slice(0),u=0;u<25;u++)s[u]=s[u].clone();return a}});C.SHA3=g._createHelper(l),C.HmacSHA3=g._createHmacHelper(l)}(Math),O.SHA3})},"5nXd":function(H,F,d){var O=d("MFOe"),x=O.slice,C=O.pluck,A=O.each,S=O.bind,g=O.create,f=O.isList,c=O.isFunction,o=O.isObject;H.exports={createStore:n};var r={version:"2.0.12",enabled:!1,get:function(l,t){var a=this.storage.read(this._namespacePrefix+l);return this._deserialize(a,t)},set:function(l,t){return t===void 0?this.remove(l):(this.storage.write(this._namespacePrefix+l,this._serialize(t)),t)},remove:function(l){this.storage.remove(this._namespacePrefix+l)},each:function(l){var t=this;this.storage.each(function(a,s){l.call(t,t._deserialize(a),(s||"").replace(t._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(l){return this._namespacePrefix=="__storejs_"+l+"_"},createStore:function(){return n.apply(this,arguments)},addPlugin:function(l){this._addPlugin(l)},namespace:function(l){return n(this.storage,this.plugins,l)}};function i(){var e=typeof console=="undefined"?null:console;if(!e)return;var l=e.warn?e.warn:e.log;l.apply(e,arguments)}function n(e,l,t){t||(t=""),e&&!f(e)&&(e=[e]),l&&!f(l)&&(l=[l]);var a=t?"__storejs_"+t+"_":"",s=t?new RegExp("^"+a):null,u=/^[a-zA-Z0-9_\-]*$/;if(!u.test(t))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var h={_namespacePrefix:a,_namespaceRegexp:s,_testStorage:function(v){try{var y="__storejs__test__";v.write(y,y);var E=v.read(y)===y;return v.remove(y),E}catch(T){return!1}},_assignPluginFnProp:function(v,y){var E=this[y];this[y]=function(){var b=x(arguments,0),w=this;function _(){return E?(A(arguments,function(L,N){b[N]=L}),E.apply(w,b)):void 0}var I=[_].concat(b);return v.apply(w,I)}},_serialize:function(v){return JSON.stringify(v)},_deserialize:function(v,y){if(!v)return y;var E="";try{E=JSON.parse(v)}catch(T){E=v}return E!==void 0?E:y},_addStorage:function(v){if(this.enabled)return;this._testStorage(v)&&(this.storage=v,this.enabled=!0)},_addPlugin:function(v){var y=this;if(f(v)){A(v,function(b){y._addPlugin(b)});return}var E=C(this.plugins,function(b){return v===b});if(E)return;if(this.plugins.push(v),!c(v))throw new Error("Plugins must be function values that return objects");var T=v.call(this);if(!o(T))throw new Error("Plugins must return an object of function properties");A(T,function(b,w){if(!c(b))throw new Error("Bad plugin property: "+w+" from plugin "+v.name+". Plugins should only return functions.");y._assignPluginFnProp(b,w)})},addStorage:function(v){i("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(v)}},p=g(h,r,{plugins:[]});return p.raw={},A(p,function(m,v){c(m)&&(p.raw[v]=S(p,m))}),A(e,function(m){p._addStorage(m)}),A(l,function(m){p._addPlugin(m)}),p}},"5rEg":function(H,F,d){"use strict";var O=d("mh/l"),x=d("lSNA"),C=d.n(x),A=d("q1tI"),S=d("TSYQ"),g=d.n(S),f=d("H84U"),c=function(B){return A.createElement(f.a,null,function(j){var W,V=j.getPrefixCls,z=j.direction,J=B.prefixCls,Z=B.className,de=Z===void 0?"":Z,ie=V("input-group",J),ve=g()(ie,(W={},C()(W,"".concat(ie,"-lg"),B.size==="large"),C()(W,"".concat(ie,"-sm"),B.size==="small"),C()(W,"".concat(ie,"-compact"),B.compact),C()(W,"".concat(ie,"-rtl"),z==="rtl"),W),de);return A.createElement("span",{className:ve,style:B.style,onMouseEnter:B.onMouseEnter,onMouseLeave:B.onMouseLeave,onFocus:B.onFocus,onBlur:B.onBlur},B.children)})},o=c,r=d("pVnL"),i=d.n(r),n=d("c+Xe"),e=d("w6Tc"),l=d.n(e),t=d("gZBC"),a=d.n(t),s=d("2/Rp"),u=d("3Nzz"),h=d("0n0R"),p=function(U,B){var j={};for(var W in U)Object.prototype.hasOwnProperty.call(U,W)&&B.indexOf(W)<0&&(j[W]=U[W]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,W=Object.getOwnPropertySymbols(U);V<W.length;V++)B.indexOf(W[V])<0&&Object.prototype.propertyIsEnumerable.call(U,W[V])&&(j[W[V]]=U[W[V]]);return j},m=A.forwardRef(function(U,B){var j=A.useRef(null),W=function(xe){var _e=U.onChange,Ue=U.onSearch;xe&&xe.target&&xe.type==="click"&&Ue&&Ue(xe.target.value,xe),_e&&_e(xe)},V=function(xe){var _e;document.activeElement===((_e=j.current)===null||_e===void 0?void 0:_e.input)&&xe.preventDefault()},z=function(xe){var _e,Ue=U.onSearch,fe=U.loading,ke=U.disabled;if(fe||ke)return;Ue&&Ue((_e=j.current)===null||_e===void 0?void 0:_e.input.value,xe)},J=function(xe){var _e=U.enterButton,Ue=U.size;return _e?A.createElement(u.b.Consumer,{key:"enterButton"},function(fe){return A.createElement(s.a,{className:"".concat(xe,"-button"),type:"primary",size:Ue||fe},A.createElement(a.a,null))}):A.createElement(a.a,{className:"".concat(xe,"-icon"),key:"loadingIcon"})},Z=function(xe){var _e=U.suffix,Ue=U.enterButton,fe=U.loading;if(fe&&!Ue)return[_e,J(xe)];if(Ue)return _e;var ke=A.createElement(l.a,{className:"".concat(xe,"-icon"),key:"searchIcon",onClick:z});return _e?[Object(h.c)(_e,null,{key:"suffix"}),ke]:ke},de=function(xe,_e){var Ue=U.enterButton,fe=U.disabled,ke=U.addonAfter,se=U.loading,te="".concat(xe,"-button");if(se&&Ue)return[J(xe),ke];if(!Ue)return ke;var Ve,ae=Ue,Q=ae.type&&ae.type.__ANT_BUTTON===!0;return Q||ae.type==="button"?Ve=Object(h.a)(ae,i()({onMouseDown:V,onClick:z,key:"enterButton"},Q?{className:te,size:_e}:{})):Ve=A.createElement(s.a,{className:te,type:"primary",size:_e,disabled:fe,key:"enterButton",onMouseDown:V,onClick:z},Ue===!0?A.createElement(l.a,null):Ue),ke?[Ve,Object(h.c)(ke,null,{key:"addonAfter"})]:Ve},ie=function(xe){var _e=xe.getPrefixCls,Ue=xe.direction,fe=U.prefixCls,ke=U.inputPrefixCls,se=U.enterButton,te=U.className,Ve=U.size,ae=p(U,["prefixCls","inputPrefixCls","enterButton","className","size"]);delete ae.onSearch,delete ae.loading;var Q=_e("input-search",fe),G=_e("input",ke),Y=function(ue){var Ce;if(se){var Ie;Ce=g()(Q,te,(Ie={},C()(Ie,"".concat(Q,"-rtl"),Ue==="rtl"),C()(Ie,"".concat(Q,"-enter-button"),!!se),C()(Ie,"".concat(Q,"-").concat(ue),!!ue),Ie))}else Ce=g()(Q,te,C()({},"".concat(Q,"-rtl"),Ue==="rtl"));return Ce};return A.createElement(u.b.Consumer,null,function(me){return A.createElement(O.a,i()({ref:Object(n.a)(j,B),onPressEnter:z},ae,{size:Ve||me,prefixCls:G,addonAfter:de(Q,Ve||me),suffix:Z(Q),onChange:W,className:Y(Ve||me)}))})};return A.createElement(f.a,null,ie)});m.defaultProps={enterButton:!1},m.displayName="Search";var v=m,y=d("whJP"),E=d("J4zp"),T=d.n(E),b=d("BGR+"),w=d("qPY4"),_=d.n(w),I=d("fUL4"),L=d.n(I),N=function(U,B){var j={};for(var W in U)Object.prototype.hasOwnProperty.call(U,W)&&B.indexOf(W)<0&&(j[W]=U[W]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,W=Object.getOwnPropertySymbols(U);V<W.length;V++)B.indexOf(W[V])<0&&Object.prototype.propertyIsEnumerable.call(U,W[V])&&(j[W[V]]=U[W[V]]);return j},D={click:"onClick",hover:"onMouseOver"},R=A.forwardRef(function(U,B){var j=Object(A.useState)(!1),W=T()(j,2),V=W[0],z=W[1],J=function(){var ve=U.disabled;if(ve)return;z(!V)},Z=function(ve){var xe,_e=U.action,Ue=U.iconRender,fe=Ue===void 0?function(){return null}:Ue,ke=D[_e]||"",se=fe(V),te=(xe={},C()(xe,ke,J),C()(xe,"className","".concat(ve,"-icon")),C()(xe,"key","passwordIcon"),C()(xe,"onMouseDown",function(ae){ae.preventDefault()}),C()(xe,"onMouseUp",function(ae){ae.preventDefault()}),xe);return A.cloneElement(A.isValidElement(se)?se:A.createElement("span",null,se),te)},de=function(ve){var xe=ve.getPrefixCls,_e=U.className,Ue=U.prefixCls,fe=U.inputPrefixCls,ke=U.size,se=U.visibilityToggle,te=N(U,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),Ve=xe("input",fe),ae=xe("input-password",Ue),Q=se&&Z(ae),G=g()(ae,_e,C()({},"".concat(ae,"-").concat(ke),!!ke)),Y=i()(i()({},Object(b.default)(te,["suffix","iconRender"])),{type:V?"text":"password",className:G,prefixCls:Ve,suffix:Q});return ke&&(Y.size=ke),A.createElement(O.a,i()({ref:B},Y))};return A.createElement(f.a,null,de)});R.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(B){return B?A.createElement(_.a,null):A.createElement(L.a,null)}},R.displayName="Password";var k=R;O.a.Group=o,O.a.Search=v,O.a.TextArea=y.a,O.a.Password=k;var M=F.a=O.a},"5s0K":function(H,F,d){var O=d("bYtY");function x(){var C=[],A={},S;return{add:function(g,f,c,o,r){return O.isString(o)&&(r=o,o=0),A[g.id]?!1:(A[g.id]=1,C.push({el:g,target:f,time:c,delay:o,easing:r}),!0)},done:function(g){return S=g,this},start:function(){for(var g=C.length,f=0,c=C.length;f<c;f++){var o=C[f];o.el.animateTo(o.target,o.time,o.delay,o.easing,r)}return this;function r(){g--,g||(C.length=0,A={},S&&S())}}}}F.createWrap=x},"5yev":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},"6/nd":function(H,F,d){var O=d("ProS");O.registerAction("legendScroll","legendscroll",function(x,C){var A=x.scrollDataIndex;A!=null&&C.eachComponent({mainType:"legend",subType:"scroll",query:x},function(S){S.setScrollDataIndex(A)})})},"62sa":function(H,F,d){var O=d("bYtY"),x=d("4NO4"),C=x.makeInner,A=d("zTMp"),S=d("Ez2D"),g=O.each,f=O.curry,c=C();function o(p,m,v){var y=p.currTrigger,E=[p.x,p.y],T=p,b=p.dispatchAction||O.bind(v.dispatchAction,v),w=m.getComponent("axisPointer").coordSysAxesInfo;if(!w)return;h(E)&&(E=S({seriesIndex:T.seriesIndex,dataIndex:T.dataIndex},m).point);var _=h(E),I=T.axesInfo,L=w.axesInfo,N=y==="leave"||h(E),D={},R={},k={list:[],map:{}},M={showPointer:f(n,R),showTooltip:f(e,k)};g(w.coordSysMap,function(B,j){var W=_||B.containPoint(E);g(w.coordSysAxesInfo[j],function(V,z){var J=V.axis,Z=s(I,V);if(!N&&W&&(!I||Z)){var de=Z&&Z.value;de==null&&!_&&(de=J.pointToData(E)),de!=null&&r(V,de,M,!1,D)}})});var U={};return g(L,function(B,j){var W=B.linkGroup;W&&!R[j]&&g(W.axesInfo,function(V,z){var J=R[z];if(V!==B&&J){var Z=J.value;W.mapper&&(Z=B.axis.scale.parse(W.mapper(Z,u(V),u(B)))),U[B.key]=Z}})}),g(U,function(B,j){r(L[j],B,M,!0,D)}),l(R,L,D),t(k,E,p,b),a(L,b,v),D}function r(p,m,v,y,E){var T=p.axis;if(T.scale.isBlank()||!T.containData(m))return;if(!p.involveSeries){v.showPointer(p,m);return}var b=i(m,p),w=b.payloadBatch,_=b.snapToValue;w[0]&&E.seriesIndex==null&&O.extend(E,w[0]),!y&&p.snap&&(T.containData(_)&&_!=null&&(m=_)),v.showPointer(p,m,w,E),v.showTooltip(p,b,_)}function i(p,m){var v=m.axis,y=v.dim,E=p,T=[],b=Number.MAX_VALUE,w=-1;return g(m.seriesModels,function(_,I){var L=_.getData().mapDimension(y,!0),N,D;if(_.getAxisTooltipData){var R=_.getAxisTooltipData(L,p,v);D=R.dataIndices,N=R.nestestValue}else{if(D=_.getData().indicesOfNearest(L[0],p,v.type==="category"?.5:null),!D.length)return;N=_.getData().get(L[0],D[0])}if(N==null||!isFinite(N))return;var k=p-N,M=Math.abs(k);M<=b&&((M<b||k>=0&&w<0)&&(b=M,w=k,E=N,T.length=0),g(D,function(U){T.push({seriesIndex:_.seriesIndex,dataIndexInside:U,dataIndex:_.getData().getRawIndex(U)})}))}),{payloadBatch:T,snapToValue:E}}function n(p,m,v,y){p[m.key]={value:v,payloadBatch:y}}function e(p,m,v,y){var E=v.payloadBatch,T=m.axis,b=T.model,w=m.axisPointerModel;if(!m.triggerTooltip||!E.length)return;var _=m.coordSys.model,I=A.makeKey(_),L=p.map[I];L||(L=p.map[I]={coordSysId:_.id,coordSysIndex:_.componentIndex,coordSysType:_.type,coordSysMainType:_.mainType,dataByAxis:[]},p.list.push(L)),L.dataByAxis.push({axisDim:T.dim,axisIndex:b.componentIndex,axisType:b.type,axisId:b.id,value:y,valueLabelOpt:{precision:w.get("label.precision"),formatter:w.get("label.formatter")},seriesDataIndices:E.slice()})}function l(p,m,v){var y=v.axesInfo=[];g(m,function(E,T){var b=E.axisPointerModel.option,w=p[T];w?(!E.useHandle&&(b.status="show"),b.value=w.value,b.seriesDataIndices=(w.payloadBatch||[]).slice()):!E.useHandle&&(b.status="hide"),b.status==="show"&&y.push({axisDim:E.axis.dim,axisIndex:E.axis.model.componentIndex,value:b.value})})}function t(p,m,v,y){if(h(m)||!p.list.length){y({type:"hideTip"});return}var E=((p.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};y({type:"showTip",escapeConnect:!0,x:m[0],y:m[1],tooltipOption:v.tooltipOption,position:v.position,dataIndexInside:E.dataIndexInside,dataIndex:E.dataIndex,seriesIndex:E.seriesIndex,dataByCoordSys:p.list})}function a(p,m,v){var y=v.getZr(),E="axisPointerLastHighlights",T=c(y)[E]||{},b=c(y)[E]={};g(p,function(I,L){var N=I.axisPointerModel.option;N.status==="show"&&g(N.seriesDataIndices,function(D){var R=D.seriesIndex+" | "+D.dataIndex;b[R]=D})});var w=[],_=[];O.each(T,function(I,L){!b[L]&&_.push(I)}),O.each(b,function(I,L){!T[L]&&w.push(I)}),_.length&&v.dispatchAction({type:"downplay",escapeConnect:!0,batch:_}),w.length&&v.dispatchAction({type:"highlight",escapeConnect:!0,batch:w})}function s(p,m){for(var v=0;v<(p||[]).length;v++){var y=p[v];if(m.axis.dim===y.axisDim&&m.axis.model.componentIndex===y.axisIndex)return y}}function u(p){var m=p.axis.model,v={},y=v.axisDim=p.axis.dim;return v.axisIndex=v[y+"AxisIndex"]=m.componentIndex,v.axisName=v[y+"AxisName"]=m.name,v.axisId=v[y+"AxisId"]=m.id,v}function h(p){return!p||p[0]==null||isNaN(p[0])||p[1]==null||isNaN(p[1])}H.exports=o},"6BzB":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.shrinkBuf=O,F.arraySet=x,F.flattenChunks=C,F.Buf32=F.Buf16=F.Buf8=void 0;function O(f,c){return f.length===c?f:f.subarray?f.subarray(0,c):(f.length=c,f)}function x(f,c,o,r,i){if(c.subarray&&f.subarray){f.set(c.subarray(o,o+r),i);return}for(var n=0;n<r;n++)f[i+n]=c[o+n]}function C(f){var c,o,r,i,n,e;for(r=0,c=0,o=f.length;c<o;c++)r+=f[c].length;for(e=new Uint8Array(r),i=0,c=0,o=f.length;c<o;c++)n=f[c],e.set(n,i),i+=n.length;return e}var A=Uint8Array;F.Buf8=A;var S=Uint16Array;F.Buf16=S;var g=Int32Array;F.Buf32=g},"6D9b":function(H,F,d){},"6GrX":function(H,F,d){var O=d("mFDi"),x=d("Xnb7"),C=d("bYtY"),A=C.getContext,S=C.extend,g=C.retrieve2,f=C.retrieve3,c=C.trim,o={},r=0,i=5e3,n=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,e="12px sans-serif",l={};function t(k,M){l[k]=M}function a(k,M){M=M||e;var U=k+":"+M;if(o[U])return o[U];for(var B=(k+"").split(`
|
|
|
`),j=0,W=0,V=B.length;W<V;W++)j=Math.max(I(B[W],M).width,j);return r>i&&(r=0,o={}),r++,o[U]=j,j}function s(k,M,U,B,j,W,V,z){return V?h(k,M,U,B,j,W,V,z):u(k,M,U,B,j,W,z)}function u(k,M,U,B,j,W,V){var z=L(k,M,j,W,V),J=a(k,M);j&&(J+=j[1]+j[3]);var Z=z.outerHeight,de=p(0,J,U),ie=m(0,Z,B),ve=new O(de,ie,J,Z);return ve.lineHeight=z.lineHeight,ve}function h(k,M,U,B,j,W,V,z){var J=N(k,{rich:V,truncate:z,font:M,textAlign:U,textPadding:j,textLineHeight:W}),Z=J.outerWidth,de=J.outerHeight,ie=p(0,Z,U),ve=m(0,de,B);return new O(ie,ve,Z,de)}function p(k,M,U){return U==="right"?k-=M:U==="center"&&(k-=M/2),k}function m(k,M,U){return U==="middle"?k-=M/2:U==="bottom"&&(k-=M),k}function v(k,M,U){var B=M.textPosition,j=M.textDistance,W=U.x,V=U.y;j=j||0;var z=U.height,J=U.width,Z=z/2,de="left",ie="top";switch(B){case"left":W-=j,V+=Z,de="right",ie="middle";break;case"right":W+=j+J,V+=Z,ie="middle";break;case"top":W+=J/2,V-=j,de="center",ie="bottom";break;case"bottom":W+=J/2,V+=z+j,de="center";break;case"inside":W+=J/2,V+=Z,de="center",ie="middle";break;case"insideLeft":W+=j,V+=Z,ie="middle";break;case"insideRight":W+=J-j,V+=Z,de="right",ie="middle";break;case"insideTop":W+=J/2,V+=j,de="center";break;case"insideBottom":W+=J/2,V+=z-j,de="center",ie="bottom";break;case"insideTopLeft":W+=j,V+=j;break;case"insideTopRight":W+=J-j,V+=j,de="right";break;case"insideBottomLeft":W+=j,V+=z-j,ie="bottom";break;case"insideBottomRight":W+=J-j,V+=z-j,de="right",ie="bottom";break}return k=k||{},k.x=W,k.y=V,k.textAlign=de,k.textVerticalAlign=ie,k}function y(k,M,U){var B={textPosition:k,textDistance:U};return v({},B,M)}function E(k,M,U,B,j){if(!M)return"";var W=(k+"").split(`
|
|
|
`);j=T(M,U,B,j);for(var V=0,z=W.length;V<z;V++)W[V]=b(W[V],j);return W.join(`
|
|
|
`)}function T(k,M,U,B){B=S({},B),B.font=M;var U=g(U,"...");B.maxIterations=g(B.maxIterations,2);var j=B.minChar=g(B.minChar,0);B.cnCharWidth=a("\u56FD",M);var W=B.ascCharWidth=a("a",M);B.placeholder=g(B.placeholder,"");for(var V=k=Math.max(0,k-1),z=0;z<j&&V>=W;z++)V-=W;var J=a(U,M);return J>V&&(U="",J=0),V=k-J,B.ellipsis=U,B.ellipsisWidth=J,B.contentWidth=V,B.containerWidth=k,B}function b(k,M){var U=M.containerWidth,B=M.font,j=M.contentWidth;if(!U)return"";var W=a(k,B);if(W<=U)return k;for(var V=0;;V++){if(W<=j||V>=M.maxIterations){k+=M.ellipsis;break}var z=V===0?w(k,j,M.ascCharWidth,M.cnCharWidth):W>0?Math.floor(k.length*j/W):0;k=k.substr(0,z),W=a(k,B)}return k===""&&(k=M.placeholder),k}function w(k,M,U,B){for(var j=0,W=0,V=k.length;W<V&&j<M;W++){var z=k.charCodeAt(W);j+=0<=z&&z<=127?U:B}return W}function _(k){return a("\u56FD",k)}function I(k,M){return l.measureText(k,M)}l.measureText=function(k,M){var U=A();return U.font=M||e,U.measureText(k)};function L(k,M,U,B,j){k!=null&&(k+="");var W=g(B,_(M)),V=k?k.split(`
|
|
|
`):[],z=V.length*W,J=z,Z=!0;if(U&&(J+=U[0]+U[2]),k&&j){Z=!1;var de=j.outerHeight,ie=j.outerWidth;if(de!=null&&J>de)k="",V=[];else if(ie!=null)for(var ve=T(ie-(U?U[1]+U[3]:0),M,j.ellipsis,{minChar:j.minChar,placeholder:j.placeholder}),xe=0,_e=V.length;xe<_e;xe++)V[xe]=b(V[xe],ve)}return{lines:V,height:z,outerHeight:J,lineHeight:W,canCacheByTextString:Z}}function N(k,M){var U={lines:[],width:0,height:0};if(k!=null&&(k+=""),!k)return U;for(var B=n.lastIndex=0,j;(j=n.exec(k))!=null;){var W=j.index;W>B&&D(U,k.substring(B,W)),D(U,j[2],j[1]),B=n.lastIndex}B<k.length&&D(U,k.substring(B,k.length));var V=U.lines,z=0,J=0,Z=[],de=M.textPadding,ie=M.truncate,ve=ie&&ie.outerWidth,xe=ie&&ie.outerHeight;de&&(ve!=null&&(ve-=de[1]+de[3]),xe!=null&&(xe-=de[0]+de[2]));for(var _e=0;_e<V.length;_e++){for(var Ue=V[_e],fe=0,ke=0,se=0;se<Ue.tokens.length;se++){var te=Ue.tokens[se],Ve=te.styleName&&M.rich[te.styleName]||{},ae=te.textPadding=Ve.textPadding,Q=te.font=Ve.font||M.font,G=te.textHeight=g(Ve.textHeight,_(Q));if(ae&&(G+=ae[0]+ae[2]),te.height=G,te.lineHeight=f(Ve.textLineHeight,M.textLineHeight,G),te.textAlign=Ve&&Ve.textAlign||M.textAlign,te.textVerticalAlign=Ve&&Ve.textVerticalAlign||"middle",xe!=null&&z+te.lineHeight>xe)return{lines:[],width:0,height:0};te.textWidth=a(te.text,Q);var Y=Ve.textWidth,me=Y==null||Y==="auto";if(typeof Y=="string"&&Y.charAt(Y.length-1)==="%")te.percentWidth=Y,Z.push(te),Y=0;else{if(me){Y=te.textWidth;var ue=Ve.textBackgroundColor,Ce=ue&&ue.image;Ce&&(Ce=x.findExistImage(Ce),x.isImageReady(Ce)&&(Y=Math.max(Y,Ce.width*G/Ce.height)))}var Ie=ae?ae[1]+ae[3]:0;Y+=Ie;var ce=ve!=null?ve-ke:null;ce!=null&&ce<Y&&(!me||ce<Ie?(te.text="",te.textWidth=Y=0):(te.text=E(te.text,ce-Ie,Q,ie.ellipsis,{minChar:ie.minChar}),te.textWidth=a(te.text,Q),Y=te.textWidth+Ie))}ke+=te.width=Y,Ve&&(fe=Math.max(fe,te.lineHeight))}Ue.width=ke,Ue.lineHeight=fe,z+=fe,J=Math.max(J,ke)}U.outerWidth=U.width=g(M.textWidth,J),U.outerHeight=U.height=g(M.textHeight,z),de&&(U.outerWidth+=de[1]+de[3],U.outerHeight+=de[0]+de[2]);for(var _e=0;_e<Z.length;_e++){var te=Z[_e],Ae=te.percentWidth;te.width=parseInt(Ae,10)/100*J}return U}function D(k,M,U){for(var B=M==="",j=M.split(`
|
|
|
`),W=k.lines,V=0;V<j.length;V++){var z=j[V],J={styleName:U,text:z,isLineHolder:!z&&!B};if(V)W.push({tokens:[J]});else{var Z=(W[W.length-1]||(W[0]={tokens:[]})).tokens,de=Z.length;de===1&&Z[0].isLineHolder?Z[0]=J:(z||!de||B)&&Z.push(J)}}}function R(k){var M=(k.fontSize||k.fontFamily)&&[k.fontStyle,k.fontWeight,(k.fontSize||12)+"px",k.fontFamily||"sans-serif"].join(" ");return M&&c(M)||k.textFont||k.font}F.DEFAULT_FONT=e,F.$override=t,F.getWidth=a,F.getBoundingRect=s,F.adjustTextX=p,F.adjustTextY=m,F.calculateTextPosition=v,F.adjustTextPositionOnRect=y,F.truncateText=E,F.getLineHeight=_,F.measureText=I,F.parsePlainText=L,F.parseRichText=N,F.makeFont=R},"6Hfg":function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("FhB9")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="SwapRightOutlined";var c=A.forwardRef(f);F.default=c},"6Ic6":function(H,F,d){var O=d("bYtY"),x=O.each,C=d("4fz+"),A=d("iRjW"),S=d("Yl7c"),g=d("4NO4"),f=d("IwbS"),c=d("9H2F"),o=c.createTask,r=d("zM3Q"),i=g.makeInner(),n=r();function e(){this.group=new C,this.uid=A.getUID("viewChart"),this.renderTask=o({plan:s,reset:u}),this.renderTask.context={view:this}}e.prototype={type:"chart",init:function(m,v){},render:function(m,v,y,E){},highlight:function(m,v,y,E){a(m.getData(),E,"emphasis")},downplay:function(m,v,y,E){a(m.getData(),E,"normal")},remove:function(m,v){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var l=e.prototype;l.updateView=l.updateLayout=l.updateVisual=function(m,v,y,E){this.render(m,v,y,E)};function t(m,v,y){if(m&&(m.trigger(v,y),m.isGroup&&!f.isHighDownDispatcher(m)))for(var E=0,T=m.childCount();E<T;E++)t(m.childAt(E),v,y)}function a(m,v,y){var E=g.queryDataIndex(m,v),T=v&&v.highlightKey!=null?f.getHighlightDigit(v.highlightKey):null;E!=null?x(g.normalizeToArray(E),function(b){t(m.getItemGraphicEl(b),y,T)}):m.eachItemGraphicEl(function(b){t(b,y,T)})}S.enableClassExtend(e,["dispose"]),S.enableClassManagement(e,{registerWhenExtend:!0}),e.markUpdateMethod=function(m,v){i(m).updateMethod=v};function s(m){return n(m.model)}function u(m){var v=m.model,y=m.ecModel,E=m.api,T=m.payload,b=v.pipelineContext.progressiveRender,w=m.view,_=T&&i(T).updateMethod,I=b?"incrementalPrepareRender":_&&w[_]?_:"render";return I!=="render"&&w[I](v,y,E,T),h[I]}var h={incrementalPrepareRender:{progress:function(m,v){v.view.incrementalRender(m,v.model,v.ecModel,v.api,v.payload)}},render:{forceFirstProgress:!0,progress:function(m,v){v.view.render(v.model,v.ecModel,v.api,v.payload)}}},p=e;H.exports=p},"6MrE":function(H,F,d){},"6Qwc":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O={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"};F.default=O},"6SEX":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("qWUW"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},"6UJt":function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("v56E"),A=d.n(C),S=d("R9oj"),g=d("5NDa")},"6VBw":function(H,F,d){"use strict";var O=d("VTBJ"),x=d("ODXe"),C=d("rePB"),A=d("Ff2n"),S=d("q1tI"),g=d("TSYQ"),f=d.n(g),c=d("Pw59"),o=d("Qi1f"),r=["icon","className","onClick","style","primaryColor","secondaryColor"],i={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function n(m){var v=m.primaryColor,y=m.secondaryColor;i.primaryColor=v,i.secondaryColor=y||Object(o.b)(v),i.calculated=!!y}function e(){return Object(O.a)({},i)}var l=function(v){var y=v.icon,E=v.className,T=v.onClick,b=v.style,w=v.primaryColor,_=v.secondaryColor,I=Object(A.a)(v,r),L=i;if(w&&(L={primaryColor:w,secondaryColor:_||Object(o.b)(w)}),Object(o.f)(),Object(o.g)(Object(o.c)(y),"icon should be icon definiton, but got ".concat(y)),!Object(o.c)(y))return null;var N=y;return N&&typeof N.icon=="function"&&(N=Object(O.a)(Object(O.a)({},N),{},{icon:N.icon(L.primaryColor,L.secondaryColor)})),Object(o.a)(N.icon,"svg-".concat(N.name),Object(O.a)({className:E,onClick:T,style:b,"data-icon":N.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},I))};l.displayName="IconReact",l.getTwoToneColors=e,l.setTwoToneColors=n;var t=l;function a(m){var v=Object(o.d)(m),y=Object(x.a)(v,2),E=y[0],T=y[1];return t.setTwoToneColors({primaryColor:E,secondaryColor:T})}function s(){var m=t.getTwoToneColors();return m.calculated?[m.primaryColor,m.secondaryColor]:m.primaryColor}var u=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];a("#1890ff");var h=S.forwardRef(function(m,v){var y,E=m.className,T=m.icon,b=m.spin,w=m.rotate,_=m.tabIndex,I=m.onClick,L=m.twoToneColor,N=Object(A.a)(m,u),D=S.useContext(c.a),R=D.prefixCls,k=R===void 0?"anticon":R,M=f()(k,(y={},Object(C.a)(y,"".concat(k,"-").concat(T.name),!!T.name),Object(C.a)(y,"".concat(k,"-spin"),!!b||T.name==="loading"),y),E),U=_;U===void 0&&I&&(U=-1);var B=w?{msTransform:"rotate(".concat(w,"deg)"),transform:"rotate(".concat(w,"deg)")}:void 0,j=Object(o.d)(L),W=Object(x.a)(j,2),V=W[0],z=W[1];return S.createElement("span",Object(O.a)(Object(O.a)({role:"img","aria-label":T.name},N),{},{ref:v,tabIndex:U,onClick:I,className:M}),S.createElement(t,{icon:T,primaryColor:V,secondaryColor:z,style:B}))});h.displayName="AntdIcon",h.getTwoToneColor=s,h.setTwoToneColor=a;var p=F.a=h},"6cGi":function(H,F,d){"use strict";d.d(F,"a",function(){return o});var O=d("ODXe"),x=d("q1tI");function C(r){var i=x.useRef();i.current=r;var n=x.useCallback(function(){for(var e,l=arguments.length,t=new Array(l),a=0;a<l;a++)t[a]=arguments[a];return(e=i.current)===null||e===void 0?void 0:e.call.apply(e,[i].concat(t))},[]);return n}var A=d("TNol"),S=d("dm2S"),g;(function(r){r[r.INNER=0]="INNER",r[r.PROP=1]="PROP"})(g||(g={}));var f=function(i,n){var e=x.useRef(!0);Object(A.a)(function(){if(!e.current)return i()},n),Object(A.a)(function(){return e.current=!1,function(){e.current=!0}},[])};function c(r){return r!==void 0}function o(r,i){var n=i||{},e=n.defaultValue,l=n.value,t=n.onChange,a=n.postState,s=Object(S.a)(function(){var b=void 0,w;return c(l)?(b=l,w=g.PROP):c(e)?(b=typeof e=="function"?e():e,w=g.PROP):(b=typeof r=="function"?r():r,w=g.INNER),[b,w,b]}),u=Object(O.a)(s,2),h=u[0],p=u[1],m=c(l)?l:h[0],v=a?a(m):m;f(function(){p(function(b){var w=Object(O.a)(b,1),_=w[0];return[l,g.PROP,_]})},[l]);var y=x.useRef(),E=C(function(b,w){p(function(_){var I=Object(O.a)(_,3),L=I[0],N=I[1],D=I[2],R=typeof b=="function"?b(L):b;if(R===L)return _;var k=N===g.INNER&&y.current!==D?D:L;return[R,g.INNER,k]},w)}),T=C(t);return Object(A.a)(function(){var b=Object(O.a)(h,3),w=b[0],_=b[1],I=b[2];w!==I&&_===g.INNER&&(T(w,I),y.current=I)},[h]),[v,E]}},"6fms":function(H,F,d){var O=d("SUKs"),x=d("06Qe"),C=d("bYtY"),A=C.each;function S(o){return parseInt(o,10)}function g(o,r){x.initVML(),this.root=o,this.storage=r;var i=document.createElement("div"),n=document.createElement("div");i.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.cssText="position:absolute;left:0;top:0;",o.appendChild(i),this._vmlRoot=n,this._vmlViewport=i,this.resize();var e=r.delFromStorage,l=r.addToStorage;r.delFromStorage=function(t){e.call(r,t),t&&(t.onRemove&&t.onRemove(n))},r.addToStorage=function(t){t.onAdd&&t.onAdd(n),l.call(r,t)},this._firstPaint=!0}g.prototype={constructor:g,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var r=this.getViewportRoot();if(r)return{offsetLeft:r.offsetLeft||0,offsetTop:r.offsetTop||0}},refresh:function(){var r=this.storage.getDisplayList(!0,!0);this._paintList(r)},_paintList:function(r){for(var i=this._vmlRoot,n=0;n<r.length;n++){var e=r[n];e.invisible||e.ignore?(e.__alreadyNotVisible||e.onRemove(i),e.__alreadyNotVisible=!0):(e.__alreadyNotVisible&&e.onAdd(i),e.__alreadyNotVisible=!1,e.__dirty&&(e.beforeBrush&&e.beforeBrush(),(e.brushVML||e.brush).call(e,i),e.afterBrush&&e.afterBrush())),e.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(i),this._firstPaint=!1)},resize:function(r,i){var r=r==null?this._getWidth():r,i=i==null?this._getHeight():i;if(this._width!==r||this._height!==i){this._width=r,this._height=i;var n=this._vmlViewport.style;n.width=r+"px",n.height=i+"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 r=this.root,i=r.currentStyle;return(r.clientWidth||S(i.width))-S(i.paddingLeft)-S(i.paddingRight)|0},_getHeight:function(){var r=this.root,i=r.currentStyle;return(r.clientHeight||S(i.height))-S(i.paddingTop)-S(i.paddingBottom)|0}};function f(o){return function(){O('In IE8.0 VML mode painter not support method "'+o+'"')}}A(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(o){g.prototype[o]=f(o)});var c=g;H.exports=c},"6ner":function(H,F,d){"use strict";var O=d("VTBJ"),x=d("1OyB"),C=d("vuIU"),A=d("Ji7U"),S=d("LK+K"),g=d("q1tI"),f=d.n(g),c=d("i8i4"),o=d.n(c);function r(N){return N instanceof HTMLElement?N:o.a.findDOMNode(N)}var i=d("TOwV");function n(N){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=[];return f.a.Children.forEach(N,function(k){if(k==null&&!D.keepEmpty)return;Array.isArray(k)?R=R.concat(n(k)):Object(i.isFragment)(k)&&k.props?R=R.concat(n(k.props.children,D)):R.push(k)}),R}var e={};function l(N,D){}function t(N,D){}function a(){e={}}function s(N,D,R){!D&&!e[R]&&(N(!1,R),e[R]=!0)}function u(N,D){s(l,N,D)}function h(N,D){s(t,N,D)}var p=u,m=d("U8pU");function v(N,D,R){var k=g.useRef({});return(!("value"in k.current)||R(k.current.condition,D))&&(k.current.value=N(),k.current.condition=D),k.current.value}function y(N,D){typeof N=="function"?N(D):Object(m.a)(N)==="object"&&N&&"current"in N&&(N.current=D)}function E(){for(var N=arguments.length,D=new Array(N),R=0;R<N;R++)D[R]=arguments[R];var k=D.filter(function(M){return M});return k.length<=1?k[0]:function(M){D.forEach(function(U){y(U,M)})}}function T(){for(var N=arguments.length,D=new Array(N),R=0;R<N;R++)D[R]=arguments[R];return v(function(){return E.apply(void 0,D)},D,function(k,M){return k.length===M.length&&k.every(function(U,B){return U===M[B]})})}function b(N){var D,R,k=Object(i.isMemo)(N)?N.type.type:N.type;return typeof k=="function"&&!((D=k.prototype)===null||D===void 0?void 0:D.render)?!1:!(typeof N=="function"&&!((R=N.prototype)===null||R===void 0?void 0:R.render))}var w=d("bdgK"),_="rc-observer-key",I=function(N){Object(A.a)(R,N);var D=Object(S.a)(R);function R(){var k;return Object(x.a)(this,R),k=D.apply(this,arguments),k.resizeObserver=null,k.childNode=null,k.currentElement=null,k.state={width:0,height:0,offsetHeight:0,offsetWidth:0},k.onResize=function(M){var U=k.props.onResize,B=M[0].target,j=B.getBoundingClientRect(),W=j.width,V=j.height,z=B.offsetWidth,J=B.offsetHeight,Z=Math.floor(W),de=Math.floor(V);if(k.state.width!==Z||k.state.height!==de||k.state.offsetWidth!==z||k.state.offsetHeight!==J){var ie={width:Z,height:de,offsetWidth:z,offsetHeight:J};k.setState(ie),U&&Promise.resolve().then(function(){U(Object(O.a)(Object(O.a)({},ie),{},{offsetWidth:z,offsetHeight:J}))})}},k.setChildNode=function(M){k.childNode=M},k}return Object(C.a)(R,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var M=this.props.disabled;if(M){this.destroyObserver();return}var U=r(this.childNode||this),B=U!==this.currentElement;B&&(this.destroyObserver(),this.currentElement=U),!this.resizeObserver&&U&&(this.resizeObserver=new w.default(this.onResize),this.resizeObserver.observe(U))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var M=this.props.children,U=n(M);if(U.length>1)p(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(U.length===0)return p(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var B=U[0];if(g.isValidElement(B)&&b(B)){var j=B.ref;U[0]=g.cloneElement(B,{ref:E(j,this.setChildNode)})}return U.length===1?U[0]:U.map(function(W,V){return!g.isValidElement(W)||"key"in W&&W.key!==null?W:g.cloneElement(W,{key:"".concat(_,"-").concat(V)})})}}]),R}(g.Component);I.displayName="ResizeObserver";var L=F.a=I},"6r85":function(H,F,d){var O=d("bYtY");function x(C){if(!C||!O.isArray(C.series))return;O.each(C.series,function(A){O.isObject(A)&&A.type==="k"&&(A.type="candlestick")})}H.exports=x},"6uqw":function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("ItGF"),A=d("YOMW"),S=d("XxSj"),g=d("K4ya"),f=d("4NO4"),c=d("OELB"),o=S.mapVisual,r=S.eachVisual,i=x.isArray,n=x.each,e=c.asc,l=c.linearMap,t=x.noop,a=O.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(u,h,p){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(u,p)},optionUpdated:function(u,h){var p=this.option;C.canvasSupported||(p.realtime=!1),!h&&g.replaceVisualOption(p,u,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(u){var h=this.stateList;u=x.bind(u,this),this.controllerVisuals=g.createVisualMappings(this.option.controller,h,u),this.targetVisuals=g.createVisualMappings(this.option.target,h,u)},getTargetSeriesIndices:function(){var u=this.option.seriesIndex,h=[];return u==null||u==="all"?this.ecModel.eachSeries(function(p,m){h.push(m)}):h=f.normalizeToArray(u),h},eachTargetSeries:function(u,h){x.each(this.getTargetSeriesIndices(),function(p){u.call(h,this.ecModel.getSeriesByIndex(p))},this)},isTargetSeries:function(u){var h=!1;return this.eachTargetSeries(function(p){p===u&&(h=!0)}),h},formatValueText:function(u,h,p){var m=this.option,v=m.precision,y=this.dataBound,E=m.formatter,T,b;if(p=p||["<",">"],x.isArray(u)&&(u=u.slice(),T=!0),b=h?u:T?[w(u[0]),w(u[1])]:w(u),x.isString(E))return E.replace("{value}",T?b[0]:b).replace("{value2}",T?b[1]:b);if(x.isFunction(E))return T?E(u[0],u[1]):E(u);if(T)return u[0]===y[0]?p[0]+" "+b[1]:u[1]===y[1]?p[1]+" "+b[0]:b[0]+" - "+b[1];return b;function w(_){return _===y[0]?"min":_===y[1]?"max":(+_).toFixed(Math.min(v,20))}},resetExtent:function(){var u=this.option,h=e([u.min,u.max]);this._dataExtent=h},getDataDimension:function(u){var h=this.option.dimension,p=u.dimensions;if(h==null&&!p.length)return;if(h!=null)return u.getDimension(h);for(var m=u.dimensions,v=m.length-1;v>=0;v--){var y=m[v],E=u.getDimensionInfo(y);if(!E.isCalculationCoord)return y}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var u=this.ecModel,h=this.option,p={inRange:h.inRange,outOfRange:h.outOfRange},m=h.target||(h.target={}),v=h.controller||(h.controller={});x.merge(m,p),x.merge(v,p);var y=this.isCategory();E.call(this,m),E.call(this,v),T.call(this,m,"inRange","outOfRange"),b.call(this,v);function E(w){i(h.color)&&!w.inRange&&(w.inRange={color:h.color.slice().reverse()}),w.inRange=w.inRange||{color:u.get("gradientColor")},n(this.stateList,function(_){var I=w[_];if(x.isString(I)){var L=A.get(I,"active",y);L?(w[_]={},w[_][I]=L):delete w[_]}},this)}function T(w,_,I){var L=w[_],N=w[I];L&&!N&&(N=w[I]={},n(L,function(D,R){if(!S.isValidType(R))return;var k=A.get(R,"inactive",y);k!=null&&(N[R]=k,R==="color"&&!N.hasOwnProperty("opacity")&&!N.hasOwnProperty("colorAlpha")&&(N.opacity=[0,0]))}))}function b(w){var _=(w.inRange||{}).symbol||(w.outOfRange||{}).symbol,I=(w.inRange||{}).symbolSize||(w.outOfRange||{}).symbolSize,L=this.get("inactiveColor");n(this.stateList,function(N){var D=this.itemSize,R=w[N];R||(R=w[N]={color:y?L:[L]}),R.symbol==null&&(R.symbol=_&&x.clone(_)||(y?"roundRect":["roundRect"])),R.symbolSize==null&&(R.symbolSize=I&&x.clone(I)||(y?D[0]:[D[0],D[0]])),R.symbol=o(R.symbol,function(U){return U==="none"||U==="square"?"roundRect":U});var k=R.symbolSize;if(k!=null){var M=-Infinity;r(k,function(U){U>M&&(M=U)}),R.symbolSize=o(k,function(U){return l(U,[0,M],[0,D[0]],!0)})}},this)}},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:t,getValueState:t,getVisualMeta:t}),s=a;H.exports=s},"6usn":function(H,F,d){var O=d("bYtY");function x(A,S){return O.map(["Radius","Angle"],function(g,f){var c=this["get"+g+"Axis"](),o=S[f],r=A[f]/2,i="dataTo"+g,n=c.type==="category"?c.getBandWidth():Math.abs(c[i](o-r)-c[i](o+r));return g==="Angle"&&(n=n*Math.PI/180),n},this)}function C(A){var S=A.getRadiusAxis(),g=A.getAngleAxis(),f=S.getExtent();return f[0]>f[1]&&f.reverse(),{coordSys:{type:"polar",cx:A.cx,cy:A.cy,r:f[1],r0:f[0]},api:{coord:O.bind(function(c){var o=S.dataToRadius(c[0]),r=g.dataToAngle(c[1]),i=A.coordToPoint([o,r]);return i.push(o,r*Math.PI/180),i}),size:O.bind(x,A)}}}H.exports=C},"6xvX":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("V7ic"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},"711d":function(H,F){function d(O){return function(x){return x==null?void 0:x[O]}}H.exports=d},"72pK":function(H,F){function d(C,A,S,g,f,c){C=C||0;var o=S[1]-S[0];if(f!=null&&(f=x(f,[0,o])),c!=null&&(c=Math.max(c,f!=null?f:0)),g==="all"){var r=Math.abs(A[1]-A[0]);r=x(r,[0,o]),f=c=x(r,[f,c]),g=0}A[0]=x(A[0],S),A[1]=x(A[1],S);var i=O(A,g);A[g]+=C;var n=f||0,e=S.slice();i.sign<0?e[0]+=n:e[1]-=n,A[g]=x(A[g],e);var l=O(A,g);f!=null&&(l.sign!==i.sign||l.span<f)&&(A[1-g]=A[g]+i.sign*f);var l=O(A,g);return c!=null&&l.span>c&&(A[1-g]=A[g]+l.sign*c),A}function O(C,A){var S=C[A]-C[1-A];return{span:Math.abs(S),sign:S>0?-1:S<0?1:A?-1:1}}function x(C,A){return Math.min(A[1]!=null?A[1]:Infinity,Math.max(A[0]!=null?A[0]:-Infinity,C))}H.exports=d},"75ce":function(H,F,d){var O=d("ProS");d("IXuL"),d("8X+K");var x=d("f5Yq"),C=d("h8O9"),A=d("/d5a");d("Ae16"),O.registerVisual(x("line","circle","line")),O.registerLayout(C("line")),O.registerProcessor(O.PRIORITY.PROCESSOR.STATISTIC,A("line"))},"75ev":function(H,F,d){var O=d("ProS");d("IWNH"),d("bNin"),d("v5uJ");var x=d("f5Yq"),C=d("yik8");O.registerVisual(x("tree","circle")),O.registerLayout(C)},"7AJT":function(H,F,d){var O=d("bYtY"),x=d("hM6l"),C=function(S,g,f,c,o){x.call(this,S,g,f),this.type=c||"value",this.position=o||"bottom"};C.prototype={constructor:C,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var S=this.position;return S==="top"||S==="bottom"},getGlobalExtent:function(S){var g=this.getExtent();return g[0]=this.toGlobalCoord(g[0]),g[1]=this.toGlobalCoord(g[1]),S&&g[0]>g[1]&&g.reverse(),g},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(S,g){return this.coordToData(this.toLocalCoord(S[this.dim==="x"?0:1]),g)},toLocalCoord:null,toGlobalCoord:null},O.inherits(C,x);var A=C;H.exports=A},"7Cbv":function(H,F,d){"use strict";var O=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),x=new Uint8Array(16);function C(){if(!O)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return O(x)}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 S(e){return typeof e=="string"&&A.test(e)}for(var g=S,f=[],c=0;c<256;++c)f.push((c+256).toString(16).substr(1));function o(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(f[e[l+0]]+f[e[l+1]]+f[e[l+2]]+f[e[l+3]]+"-"+f[e[l+4]]+f[e[l+5]]+"-"+f[e[l+6]]+f[e[l+7]]+"-"+f[e[l+8]]+f[e[l+9]]+"-"+f[e[l+10]]+f[e[l+11]]+f[e[l+12]]+f[e[l+13]]+f[e[l+14]]+f[e[l+15]]).toLowerCase();if(!g(t))throw TypeError("Stringified UUID is invalid");return t}var r=o;function i(e,l,t){e=e||{};var a=e.random||(e.rng||C)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,l){t=t||0;for(var s=0;s<16;++s)l[t+s]=a[s];return l}return r(a)}var n=F.a=i},"7DRL":function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=C.createHashMap,S=C.isString,g=C.isArray,f=C.each,c=C.assert,o=d("MEGo"),r=o.parseXML,i=A(),n={registerMap:function(l,t,a){var s;return g(t)?s=t:t.svg?s=[{type:"svg",source:t.svg,specialAreas:t.specialAreas}]:(t.geoJson&&!t.features&&(a=t.specialAreas,t=t.geoJson),s=[{type:"geoJSON",source:t,specialAreas:a}]),f(s,function(u){var h=u.type;h==="geoJson"&&(h=u.type="geoJSON");var p=e[h];p(u)}),i.set(l,s)},retrieveMap:function(l){return i.get(l)}},e={geoJSON:function(l){var t=l.source;l.geoJSON=S(t)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t},svg:function(l){l.svgXML=r(l.source)}};H.exports=n},"7G+c":function(H,F,d){var O=d("bYtY"),x=O.createHashMap,C=O.isTypedArray,A=d("Yl7c"),S=A.enableClassCheck,g=d("k9D9"),f=g.SOURCE_FORMAT_ORIGINAL,c=g.SERIES_LAYOUT_BY_COLUMN,o=g.SOURCE_FORMAT_UNKNOWN,r=g.SOURCE_FORMAT_TYPED_ARRAY,i=g.SOURCE_FORMAT_KEYED_COLUMNS;function n(l){this.fromDataset=l.fromDataset,this.data=l.data||(l.sourceFormat===i?{}:[]),this.sourceFormat=l.sourceFormat||o,this.seriesLayoutBy=l.seriesLayoutBy||c,this.dimensionsDefine=l.dimensionsDefine,this.encodeDefine=l.encodeDefine&&x(l.encodeDefine),this.startIndex=l.startIndex||0,this.dimensionsDetectCount=l.dimensionsDetectCount}n.seriesDataToSource=function(l){return new n({data:l,sourceFormat:C(l)?r:f,fromDataset:!1})},S(n);var e=n;H.exports=e},"7Kak":function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("KPFz"),A=d.n(C)},"7Phj":function(H,F,d){var O=d("bYtY"),x=d("OELB"),C=x.parsePercent,A=O.each;function S(o){var r=g(o);A(r,function(i){var n=i.seriesModels;if(!n.length)return;f(i),A(n,function(e,l){c(e,i.boxOffsetList[l],i.boxWidthList[l])})})}function g(o){var r=[],i=[];return o.eachSeriesByType("boxplot",function(n){var e=n.getBaseAxis(),l=O.indexOf(i,e);l<0&&(l=i.length,i[l]=e,r[l]={axis:e,seriesModels:[]}),r[l].seriesModels.push(n)}),r}function f(o){var r,i=o.axis,n=o.seriesModels,e=n.length,l=o.boxWidthList=[],t=o.boxOffsetList=[],a=[],s;if(i.type==="category")s=i.getBandWidth();else{var u=0;A(n,function(y){u=Math.max(u,y.getData().count())}),r=i.getExtent(),Math.abs(r[1]-r[0])/u}A(n,function(y){var E=y.get("boxWidth");O.isArray(E)||(E=[E,E]),a.push([C(E[0],s)||0,C(E[1],s)||0])});var h=s*.8-2,p=h/e*.3,m=(h-p*(e-1))/e,v=m/2-h/2;A(n,function(y,E){t.push(v),v+=p+m,l.push(Math.min(Math.max(m,a[E][0]),a[E][1]))})}function c(o,r,i){var n=o.coordinateSystem,e=o.getData(),l=i/2,t=o.get("layout")==="horizontal"?0:1,a=1-t,s=["x","y"],u=e.mapDimension(s[t]),h=e.mapDimension(s[a],!0);if(u==null||h.length<5)return;for(var p=0;p<e.count();p++){var m=e.get(u,p),v=_(m,h[2],p),y=_(m,h[0],p),E=_(m,h[1],p),T=_(m,h[3],p),b=_(m,h[4],p),w=[];I(w,E,0),I(w,T,1),w.push(y,E,b,T),L(w,y),L(w,b),L(w,v),e.setItemLayout(p,{initBaseline:v[a],ends:w})}function _(N,D,R){var k=e.get(D,R),M=[];M[t]=N,M[a]=k;var U;return isNaN(N)||isNaN(k)?U=[NaN,NaN]:(U=n.dataToPoint(M),U[t]+=r),U}function I(N,D,R){var k=D.slice(),M=D.slice();k[t]+=l,M[t]-=l,R?N.push(k,M):N.push(M,k)}function L(N,D){var R=D.slice(),k=D.slice();R[t]-=l,k[t]+=l,N.push(R,k)}}H.exports=S},"7SHv":function(H,F,d){var O=d("LPTA"),x=O.devicePixelRatio,C=d("bYtY"),A=d("SUKs"),S=d("mFDi"),g=d("BPZU"),f=d("Xmg4"),c=d("mLcG"),o=d("Dagg"),r=d("ItGF"),i=1e5,n=314159,e=.01,l=.001;function t(T){return parseInt(T,10)}function a(T){return T?T.__builtin__?!0:!(typeof T.resize!="function"||typeof T.refresh!="function"):!1}var s=new S(0,0,0,0),u=new S(0,0,0,0);function h(T,b,w){return s.copy(T.getBoundingRect()),T.transform&&s.applyTransform(T.transform),u.width=b,u.height=w,!s.intersect(u)}function p(T,b){if(T===b)return!1;if(!T||!b||T.length!==b.length)return!0;for(var w=0;w<T.length;w++)if(T[w]!==b[w])return!0;return!1}function m(T,b){for(var w=0;w<T.length;w++){var _=T[w];_.setTransform(b),b.beginPath(),_.buildPath(b,_.shape),b.clip(),_.restoreTransform(b)}}function v(T,b){var w=document.createElement("div");return w.style.cssText=["position:relative","width:"+T+"px","height:"+b+"px","padding:0","margin:0","border-width:0"].join(";")+";",w}var y=function(b,w,_){this.type="canvas";var I=!b.nodeName||b.nodeName.toUpperCase()==="CANVAS";this._opts=_=C.extend({},_||{}),this.dpr=_.devicePixelRatio||x,this._singleCanvas=I,this.root=b;var L=b.style;L&&(L["-webkit-tap-highlight-color"]="transparent",L["-webkit-user-select"]=L["user-select"]=L["-webkit-touch-callout"]="none",b.innerHTML=""),this.storage=w;var N=this._zlevelList=[],D=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,I){var k=b.width,M=b.height;_.width!=null&&(k=_.width),_.height!=null&&(M=_.height),this.dpr=_.devicePixelRatio||1,b.width=k*this.dpr,b.height=M*this.dpr,this._width=k,this._height=M;var U=new f(b,this,this.dpr);U.__builtin__=!0,U.initContext(),D[n]=U,U.zlevel=n,N.push(n),this._domRoot=b}else{this._width=this._getSize(0),this._height=this._getSize(1);var R=this._domRoot=v(this._width,this._height);b.appendChild(R)}this._hoverlayer=null,this._hoverElements=[]};y.prototype={constructor:y,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var b=this.getViewportRoot();if(b)return{offsetLeft:b.offsetLeft||0,offsetTop:b.offsetTop||0}},refresh:function(b){var w=this.storage.getDisplayList(!0),_=this._zlevelList;this._redrawId=Math.random(),this._paintList(w,b,this._redrawId);for(var I=0;I<_.length;I++){var L=_[I],N=this._layers[L];if(!N.__builtin__&&N.refresh){var D=I===0?this._backgroundColor:null;N.refresh(D)}}return this.refreshHover(),this},addHover:function(b,w){if(b.__hoverMir)return;var _=new b.constructor({style:b.style,shape:b.shape,z:b.z,z2:b.z2,silent:b.silent});return _.__from=b,b.__hoverMir=_,w&&_.setStyle(w),this._hoverElements.push(_),_},removeHover:function(b){var w=b.__hoverMir,_=this._hoverElements,I=C.indexOf(_,w);I>=0&&_.splice(I,1),b.__hoverMir=null},clearHover:function(b){for(var w=this._hoverElements,_=0;_<w.length;_++){var I=w[_].__from;I&&(I.__hoverMir=null)}w.length=0},refreshHover:function(){var b=this._hoverElements,w=b.length,_=this._hoverlayer;if(_&&_.clear(),!w)return;g(b,this.storage.displayableSortFunc),_||(_=this._hoverlayer=this.getLayer(i));var I={};_.ctx.save();for(var L=0;L<w;){var N=b[L],D=N.__from;if(!(D&&D.__zr)){b.splice(L,1),D.__hoverMir=null,w--;continue}L++,D.invisible||(N.transform=D.transform,N.invTransform=D.invTransform,N.__clipPaths=D.__clipPaths,this._doPaintEl(N,_,!0,I))}_.ctx.restore()},getHoverLayer:function(){return this.getLayer(i)},_paintList:function(b,w,_){if(this._redrawId!==_)return;w=w||!1,this._updateLayerStatus(b);var I=this._doPaintList(b,w);if(this._needsManuallyCompositing&&this._compositeManually(),!I){var L=this;c(function(){L._paintList(b,w,_)})}},_compositeManually:function(){var b=this.getLayer(n).ctx,w=this._domRoot.width,_=this._domRoot.height;b.clearRect(0,0,w,_),this.eachBuiltinLayer(function(I){I.virtual&&b.drawImage(I.dom,0,0,w,_)})},_doPaintList:function(b,w){for(var _=[],I=0;I<this._zlevelList.length;I++){var L=this._zlevelList[I],N=this._layers[L];N.__builtin__&&N!==this._hoverlayer&&(N.__dirty||w)&&_.push(N)}for(var D=!0,R=0;R<_.length;R++){var N=_[R],k=N.ctx,M={};k.save();var U=w?N.__startIndex:N.__drawIndex,B=!w&&N.incremental&&Date.now,j=B&&Date.now(),W=N.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(N.__startIndex===N.__endIndex)N.clear(!1,W);else if(U===N.__startIndex){var V=b[U];(!V.incremental||!V.notClear||w)&&N.clear(!1,W)}U===-1&&(console.error("For some unknown reason. drawIndex is -1"),U=N.__startIndex);for(var z=U;z<N.__endIndex;z++){var J=b[z];if(this._doPaintEl(J,N,w,M),J.__dirty=J.__dirtyText=!1,B){var Z=Date.now()-j;if(Z>15)break}}N.__drawIndex=z,N.__drawIndex<N.__endIndex&&(D=!1),M.prevElClipPaths&&k.restore(),k.restore()}return r.wxa&&C.each(this._layers,function(de){de&&de.ctx&&de.ctx.draw&&de.ctx.draw()}),D},_doPaintEl:function(b,w,_,I){var L=w.ctx,N=b.transform;if((w.__dirty||_)&&!b.invisible&&b.style.opacity!==0&&!(N&&!N[0]&&!N[3])&&!(b.culling&&h(b,this._width,this._height))){var D=b.__clipPaths,R=I.prevElClipPaths;(!R||p(D,R))&&(R&&(L.restore(),I.prevElClipPaths=null,I.prevEl=null),D&&(L.save(),m(D,L),I.prevElClipPaths=D)),b.beforeBrush&&b.beforeBrush(L),b.brush(L,I.prevEl||null),I.prevEl=b,b.afterBrush&&b.afterBrush(L)}},getLayer:function(b,w){this._singleCanvas&&!this._needsManuallyCompositing&&(b=n);var _=this._layers[b];return _||(_=new f("zr_"+b,this,this.dpr),_.zlevel=b,_.__builtin__=!0,this._layerConfig[b]?C.merge(_,this._layerConfig[b],!0):this._layerConfig[b-e]&&C.merge(_,this._layerConfig[b-e],!0),w&&(_.virtual=w),this.insertLayer(b,_),_.initContext()),_},insertLayer:function(b,w){var _=this._layers,I=this._zlevelList,L=I.length,N=null,D=-1,R=this._domRoot;if(_[b]){A("ZLevel "+b+" has been used already");return}if(!a(w)){A("Layer of zlevel "+b+" is not valid");return}if(L>0&&b>I[0]){for(D=0;D<L-1&&!(I[D]<b&&I[D+1]>b);D++);N=_[I[D]]}if(I.splice(D+1,0,b),_[b]=w,!w.virtual)if(N){var k=N.dom;k.nextSibling?R.insertBefore(w.dom,k.nextSibling):R.appendChild(w.dom)}else R.firstChild?R.insertBefore(w.dom,R.firstChild):R.appendChild(w.dom)},eachLayer:function(b,w){var _=this._zlevelList,I,L;for(L=0;L<_.length;L++)I=_[L],b.call(w,this._layers[I],I)},eachBuiltinLayer:function(b,w){var _=this._zlevelList,I,L,N;for(N=0;N<_.length;N++)L=_[N],I=this._layers[L],I.__builtin__&&b.call(w,I,L)},eachOtherLayer:function(b,w){var _=this._zlevelList,I,L,N;for(N=0;N<_.length;N++)L=_[N],I=this._layers[L],I.__builtin__||b.call(w,I,L)},getLayers:function(){return this._layers},_updateLayerStatus:function(b){this.eachBuiltinLayer(function(M,U){M.__dirty=M.__used=!1});function w(M){L&&(L.__endIndex!==M&&(L.__dirty=!0),L.__endIndex=M)}if(this._singleCanvas)for(var _=1;_<b.length;_++){var I=b[_];if(I.zlevel!==b[_-1].zlevel||I.incremental){this._needsManuallyCompositing=!0;break}}for(var L=null,N=0,D,_=0;_<b.length;_++){var I=b[_],R=I.zlevel,k;D!==R&&(D=R,N=0),I.incremental?(k=this.getLayer(R+l,this._needsManuallyCompositing),k.incremental=!0,N=1):k=this.getLayer(R+(N>0?e:0),this._needsManuallyCompositing),k.__builtin__||A("ZLevel "+R+" has been used by unkown layer "+k.id),k!==L&&(k.__used=!0,k.__startIndex!==_&&(k.__dirty=!0),k.__startIndex=_,k.incremental?k.__drawIndex=-1:k.__drawIndex=_,w(_),L=k),I.__dirty&&(k.__dirty=!0,k.incremental&&k.__drawIndex<0&&(k.__drawIndex=_))}w(_),this.eachBuiltinLayer(function(M,U){!M.__used&&M.getElementCount()>0&&(M.__dirty=!0,M.__startIndex=M.__endIndex=M.__drawIndex=0),M.__dirty&&M.__drawIndex<0&&(M.__drawIndex=M.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(b){b.clear()},setBackgroundColor:function(b){this._backgroundColor=b},configLayer:function(b,w){if(w){var _=this._layerConfig;_[b]?C.merge(_[b],w,!0):_[b]=w;for(var I=0;I<this._zlevelList.length;I++){var L=this._zlevelList[I];if(L===b||L===b+e){var N=this._layers[L];C.merge(N,_[b],!0)}}}},delLayer:function(b){var w=this._layers,_=this._zlevelList,I=w[b];if(!I)return;I.dom.parentNode.removeChild(I.dom),delete w[b],_.splice(C.indexOf(_,b),1)},resize:function(b,w){if(this._domRoot.style){var _=this._domRoot;_.style.display="none";var I=this._opts;if(b!=null&&(I.width=b),w!=null&&(I.height=w),b=this._getSize(0),w=this._getSize(1),_.style.display="",this._width!==b||w!==this._height){_.style.width=b+"px",_.style.height=w+"px";for(var L in this._layers)this._layers.hasOwnProperty(L)&&this._layers[L].resize(b,w);C.each(this._progressiveLayers,function(N){N.resize(b,w)}),this.refresh(!0)}this._width=b,this._height=w}else{if(b==null||w==null)return;this._width=b,this._height=w,this.getLayer(n).resize(b,w)}return this},clearLayer:function(b){var w=this._layers[b];w&&w.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(b){if(b=b||{},this._singleCanvas&&!this._compositeManually)return this._layers[n].dom;var w=new f("image",this,b.pixelRatio||this.dpr);if(w.initContext(),w.clear(!1,b.backgroundColor||this._backgroundColor),b.pixelRatio<=this.dpr){this.refresh();var _=w.dom.width,I=w.dom.height,L=w.ctx;this.eachLayer(function(M){M.__builtin__?L.drawImage(M.dom,0,0,_,I):M.renderToCanvas&&(w.ctx.save(),M.renderToCanvas(w.ctx),w.ctx.restore())})}else for(var N={},D=this.storage.getDisplayList(!0),R=0;R<D.length;R++){var k=D[R];this._doPaintEl(k,w,!0,N)}return w.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(b){var w=this._opts,_=["width","height"][b],I=["clientWidth","clientHeight"][b],L=["paddingLeft","paddingTop"][b],N=["paddingRight","paddingBottom"][b];if(w[_]!=null&&w[_]!=="auto")return parseFloat(w[_]);var D=this.root,R=document.defaultView.getComputedStyle(D);return(D[I]||t(R[_])||t(D.style[_]))-(t(R[L])||0)-(t(R[N])||0)|0},pathToImage:function(b,w){w=w||this.dpr;var _=document.createElement("canvas"),I=_.getContext("2d"),L=b.getBoundingRect(),N=b.style,D=N.shadowBlur*w,R=N.shadowOffsetX*w,k=N.shadowOffsetY*w,M=N.hasStroke()?N.lineWidth:0,U=Math.max(M/2,-R+D),B=Math.max(M/2,R+D),j=Math.max(M/2,-k+D),W=Math.max(M/2,k+D),V=L.width+U+B,z=L.height+j+W;_.width=V*w,_.height=z*w,I.scale(w,w),I.clearRect(0,0,V,z),I.dpr=w;var J={position:b.position,rotation:b.rotation,scale:b.scale};b.position=[U-L.x,j-L.y],b.rotation=0,b.scale=[1,1],b.updateTransform(),b&&b.brush(I);var Z=o,de=new Z({style:{x:0,y:0,image:_}});return J.position!=null&&(de.position=b.position=J.position),J.rotation!=null&&(de.rotation=b.rotation=J.rotation),J.scale!=null&&(de.scale=b.scale=J.scale),de}};var E=y;H.exports=E},"7a+S":function(H,F,d){var O=d("bYtY"),x=d("bLfw"),C=d("YXkt"),A=d("4NO4"),S=x.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(f,c,o){this._data,this._names,this.mergeDefaultAndTheme(f,o),this._initData()},mergeOption:function(f){S.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(f){f==null&&(f=this.option.currentIndex);var c=this._data.count();this.option.loop?f=(f%c+c)%c:(f>=c&&(f=c-1),f<0&&(f=0)),this.option.currentIndex=f},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(f){this.option.autoPlay=!!f},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var f=this.option,c=f.data||[],o=f.axisType,r=this._names=[];if(o==="category"){var i=[];O.each(c,function(l,t){var a=A.getDataItemValue(l),s;O.isObject(l)?(s=O.clone(l),s.value=t):s=t,i.push(s),!O.isString(a)&&(a==null||isNaN(a))&&(a=""),r.push(a+"")}),c=i}var n={category:"ordinal",time:"time"}[o]||"number",e=this._data=new C([{name:"value",type:n}],this);e.initData(c,r)},getData:function(){return this._data},getCategories:function(){if(this.get("axisType")==="category")return this._names.slice()}}),g=S;H.exports=g},"7aKB":function(H,F,d){var O=d("bYtY"),x=d("6GrX"),C=d("OELB");function A(v){return isNaN(v)?"-":(v=(v+"").split("."),v[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(v.length>1?"."+v[1]:""))}function S(v,y){return v=(v||"").toLowerCase().replace(/-(.)/g,function(E,T){return T.toUpperCase()}),y&&v&&(v=v.charAt(0).toUpperCase()+v.slice(1)),v}var g=O.normalizeCssArray,f=/([&<>"'])/g,c={"&":"&","<":"<",">":">",'"':""","'":"'"};function o(v){return v==null?"":(v+"").replace(f,function(y,E){return c[E]})}var r=["a","b","c","d","e","f","g"],i=function(v,y){return"{"+v+(y==null?"":y)+"}"};function n(v,y,E){O.isArray(y)||(y=[y]);var T=y.length;if(!T)return"";for(var b=y[0].$vars||[],w=0;w<b.length;w++){var _=r[w];v=v.replace(i(_),i(_,0))}for(var I=0;I<T;I++)for(var L=0;L<b.length;L++){var N=y[I][b[L]];v=v.replace(i(r[L],I),E?o(N):N)}return v}function e(v,y,E){return O.each(y,function(T,b){v=v.replace("{"+b+"}",E?o(T):T)}),v}function l(v,y){v=O.isString(v)?{color:v,extraCssText:y}:v||{};var E=v.color,T=v.type,y=v.extraCssText,b=v.renderMode||"html",w=v.markerId||"X";return E?b==="html"?T==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+o(E)+";"+(y||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+o(E)+";"+(y||"")+'"></span>':{renderMode:b,content:"{marker"+w+"|} ",style:{color:E}}:""}function t(v,y){return v+="","0000".substr(0,y-v.length)+v}function a(v,y,E){(v==="week"||v==="month"||v==="quarter"||v==="half-year"||v==="year")&&(v=`MM-dd
|
|
|
yyyy`);var T=C.parseDate(y),b=E?"UTC":"",w=T["get"+b+"FullYear"](),_=T["get"+b+"Month"]()+1,I=T["get"+b+"Date"](),L=T["get"+b+"Hours"](),N=T["get"+b+"Minutes"](),D=T["get"+b+"Seconds"](),R=T["get"+b+"Milliseconds"]();return v=v.replace("MM",t(_,2)).replace("M",_).replace("yyyy",w).replace("yy",w%100).replace("dd",t(I,2)).replace("d",I).replace("hh",t(L,2)).replace("h",L).replace("mm",t(N,2)).replace("m",N).replace("ss",t(D,2)).replace("s",D).replace("SSS",t(R,3)),v}function s(v){return v&&v.charAt(0).toUpperCase()+v.substr(1)}var u=x.truncateText;function h(v){return x.getBoundingRect(v.text,v.font,v.textAlign,v.textVerticalAlign,v.textPadding,v.textLineHeight,v.rich,v.truncate)}function p(v,y,E,T,b,w,_,I){return x.getBoundingRect(v,y,E,T,b,I,w,_)}function m(v,y){if(y==="_blank"||y==="blank"){var E=window.open();E.opener=null,E.location=v}else window.open(v,y)}F.addCommas=A,F.toCamelCase=S,F.normalizeCssArray=g,F.encodeHTML=o,F.formatTpl=n,F.formatTplSimple=e,F.getTooltipMarker=l,F.formatTime=a,F.capitalFirst=s,F.truncateText=u,F.getTextBoundingRect=h,F.getTextRect=p,F.windowOpen=m},"7bkD":function(H,F,d){var O=d("bYtY");function x(C,A){A=A||{};var S=C.coordinateSystem,g=C.axis,f={},c=g.position,o=g.orient,r=S.getRect(),i=[r.x,r.x+r.width,r.y,r.y+r.height],n={horizontal:{top:i[2],bottom:i[3]},vertical:{left:i[0],right:i[1]}};f.position=[o==="vertical"?n.vertical[c]:i[0],o==="horizontal"?n.horizontal[c]:i[3]];var e={horizontal:0,vertical:1};f.rotation=Math.PI/2*e[o];var l={top:-1,bottom:1,right:1,left:-1};f.labelDirection=f.tickDirection=f.nameDirection=l[c],C.get("axisTick.inside")&&(f.tickDirection=-f.tickDirection),O.retrieve(A.labelInside,C.get("axisLabel.inside"))&&(f.labelDirection=-f.labelDirection);var t=A.rotate;return t==null&&(t=C.get("axisLabel.rotate")),f.labelRotation=c==="top"?-t:t,f.z2=1,f}F.layout=x},"7hqr":function(H,F,d){var O=d("bYtY"),x=O.each,C=O.isString;function A(f,c,o){o=o||{};var r=o.byIndex,i=o.stackedCoordDimension,n=!!(f&&f.get("stack")),e,l,t,a;if(x(c,function(p,m){C(p)&&(c[m]=p={name:p}),n&&!p.isExtraCoord&&(!r&&!e&&p.ordinalMeta&&(e=p),!l&&p.type!=="ordinal"&&p.type!=="time"&&(!i||i===p.coordDim)&&(l=p))}),l&&!r&&!e&&(r=!0),l){t="__\0ecstackresult",a="__\0ecstackedover",e&&(e.createInvertedIndices=!0);var s=l.coordDim,u=l.type,h=0;x(c,function(p){p.coordDim===s&&h++}),c.push({name:t,coordDim:s,coordDimIndex:h,type:u,isExtraCoord:!0,isCalculationCoord:!0}),h++,c.push({name:a,coordDim:a,coordDimIndex:h,type:u,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:l&&l.name,stackedByDimension:e&&e.name,isStackedByIndex:r,stackedOverDimension:a,stackResultDimension:t}}function S(f,c){return!!c&&c===f.getCalculationInfo("stackedDimension")}function g(f,c){return S(f,c)?f.getCalculationInfo("stackResultDimension"):c}F.enableDataStack=A,F.isDimensionStacked=S,F.getStackedDimension=g},"7mYs":function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("IwbS"),A=d("7aKB"),S=d("OELB"),g={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"]},f={EN:["S","M","T","W","T","F","S"],CN:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},c=O.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(o,r,i){var n=this.group;n.removeAll();var e=o.coordinateSystem,l=e.getRangeInfo(),t=e.getOrient();this._renderDayRect(o,l,n),this._renderLines(o,l,t,n),this._renderYearText(o,l,t,n),this._renderMonthText(o,t,n),this._renderWeekText(o,l,t,n)},_renderDayRect:function(o,r,i){for(var n=o.coordinateSystem,e=o.getModel("itemStyle").getItemStyle(),l=n.getCellWidth(),t=n.getCellHeight(),a=r.start.time;a<=r.end.time;a=n.getNextNDay(a,1).time){var s=n.dataToRect([a],!1).tl,u=new C.Rect({shape:{x:s[0],y:s[1],width:l,height:t},cursor:"default",style:e});i.add(u)}},_renderLines:function(o,r,i,n){var e=this,l=o.coordinateSystem,t=o.getModel("splitLine.lineStyle").getLineStyle(),a=o.get("splitLine.show"),s=t.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=r.start,h=0;u.time<=r.end.time;h++){m(u.formatedDate),h===0&&(u=l.getDateInfo(r.start.y+"-"+r.start.m));var p=u.date;p.setMonth(p.getMonth()+1),u=l.getDateInfo(p)}m(l.getNextNDay(r.end.time,1).formatedDate);function m(v){e._firstDayOfMonth.push(l.getDateInfo(v)),e._firstDayPoints.push(l.dataToRect([v],!1).tl);var y=e._getLinePointsOfOneWeek(o,v,i);e._tlpoints.push(y[0]),e._blpoints.push(y[y.length-1]),a&&e._drawSplitline(y,t,n)}a&&this._drawSplitline(e._getEdgesPoints(e._tlpoints,s,i),t,n),a&&this._drawSplitline(e._getEdgesPoints(e._blpoints,s,i),t,n)},_getEdgesPoints:function(o,r,i){var n=[o[0].slice(),o[o.length-1].slice()],e=i==="horizontal"?0:1;return n[0][e]=n[0][e]-r/2,n[1][e]=n[1][e]+r/2,n},_drawSplitline:function(o,r,i){var n=new C.Polyline({z2:20,shape:{points:o},style:r});i.add(n)},_getLinePointsOfOneWeek:function(o,r,i){var n=o.coordinateSystem;r=n.getDateInfo(r);for(var e=[],l=0;l<7;l++){var t=n.getNextNDay(r.time,l),a=n.dataToRect([t.time],!1);e[2*t.day]=a.tl,e[2*t.day+1]=a[i==="horizontal"?"bl":"tr"]}return e},_formatterLabel:function(o,r){return typeof o=="string"&&o?A.formatTplSimple(o,r):typeof o=="function"?o(r):r.nameMap},_yearTextPositionControl:function(o,r,i,n,e){r=r.slice();var l=["center","bottom"];n==="bottom"?(r[1]+=e,l=["center","top"]):n==="left"?r[0]-=e:n==="right"?(r[0]+=e,l=["center","top"]):r[1]-=e;var t=0;return(n==="left"||n==="right")&&(t=Math.PI/2),{rotation:t,position:r,style:{textAlign:l[0],textVerticalAlign:l[1]}}},_renderYearText:function(o,r,i,n){var e=o.getModel("yearLabel");if(!e.get("show"))return;var l=e.get("margin"),t=e.get("position");t||(t=i!=="horizontal"?"top":"left");var a=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],s=(a[0][0]+a[1][0])/2,u=(a[0][1]+a[1][1])/2,h=i==="horizontal"?0:1,p={top:[s,a[h][1]],bottom:[s,a[1-h][1]],left:[a[1-h][0],u],right:[a[h][0],u]},m=r.start.y;+r.end.y>+r.start.y&&(m=m+"-"+r.end.y);var v=e.get("formatter"),y={start:r.start.y,end:r.end.y,nameMap:m},E=this._formatterLabel(v,y),T=new C.Text({z2:30});C.setTextStyle(T.style,e,{text:E}),T.attr(this._yearTextPositionControl(T,p[t],i,t,l)),n.add(T)},_monthTextPositionControl:function(o,r,i,n,e){var l="left",t="top",a=o[0],s=o[1];return i==="horizontal"?(s=s+e,r&&(l="center"),n==="start"&&(t="bottom")):(a=a+e,r&&(t="middle"),n==="start"&&(l="right")),{x:a,y:s,textAlign:l,textVerticalAlign:t}},_renderMonthText:function(o,r,i){var n=o.getModel("monthLabel");if(!n.get("show"))return;var e=n.get("nameMap"),l=n.get("margin"),t=n.get("position"),a=n.get("align"),s=[this._tlpoints,this._blpoints];x.isString(e)&&(e=g[e.toUpperCase()]||[]);var u=t==="start"?0:1,h=r==="horizontal"?0:1;l=t==="start"?-l:l;for(var p=a==="center",m=0;m<s[u].length-1;m++){var v=s[u][m].slice(),y=this._firstDayOfMonth[m];if(p){var E=this._firstDayPoints[m];v[h]=(E[h]+s[0][m+1][h])/2}var T=n.get("formatter"),b=e[+y.m-1],w={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:b},_=this._formatterLabel(T,w),I=new C.Text({z2:30});x.extend(C.setTextStyle(I.style,n,{text:_}),this._monthTextPositionControl(v,p,r,t,l)),i.add(I)}},_weekTextPositionControl:function(o,r,i,n,e){var l="center",t="middle",a=o[0],s=o[1],u=i==="start";return r==="horizontal"?(a=a+n+(u?1:-1)*e[0]/2,l=u?"right":"left"):(s=s+n+(u?1:-1)*e[1]/2,t=u?"bottom":"top"),{x:a,y:s,textAlign:l,textVerticalAlign:t}},_renderWeekText:function(o,r,i,n){var e=o.getModel("dayLabel");if(!e.get("show"))return;var l=o.coordinateSystem,t=e.get("position"),a=e.get("nameMap"),s=e.get("margin"),u=l.getFirstDayOfWeek();x.isString(a)&&(a=f[a.toUpperCase()]||[]);var h=l.getNextNDay(r.end.time,7-r.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];s=S.parsePercent(s,p[i==="horizontal"?0:1]),t==="start"&&(h=l.getNextNDay(r.start.time,-(7+r.fweek)).time,s=-s);for(var m=0;m<7;m++){var v=l.getNextNDay(h,m),y=l.dataToRect([v.time],!1).center,E=m;E=Math.abs((m+u)%7);var T=new C.Text({z2:30});x.extend(C.setTextStyle(T.style,e,{text:a[E]}),this._weekTextPositionControl(y,i,t,s,p)),n.add(T)}}});H.exports=c},"7oTu":function(H,F,d){var O=d("IMiH"),x=d("QBsz"),C=x.applyTransform,A=O.CMD,S=[[],[],[]],g=Math.sqrt,f=Math.atan2;function c(o,r){var i=o.data,n,e,l,t,a,s,u=A.M,h=A.C,p=A.L,m=A.R,v=A.A,y=A.Q;for(l=0,t=0;l<i.length;){n=i[l++],t=l,e=0;switch(n){case u:e=1;break;case p:e=1;break;case h:e=3;break;case y:e=2;break;case v:var E=r[4],T=r[5],b=g(r[0]*r[0]+r[1]*r[1]),w=g(r[2]*r[2]+r[3]*r[3]),_=f(-r[1]/w,r[0]/b);i[l]*=b,i[l++]+=E,i[l]*=w,i[l++]+=T,i[l++]*=b,i[l++]*=w,i[l++]+=_,i[l++]+=_,l+=2,t=l;break;case m:s[0]=i[l++],s[1]=i[l++],C(s,s,r),i[t++]=s[0],i[t++]=s[1],s[0]+=i[l++],s[1]+=i[l++],C(s,s,r),i[t++]=s[0],i[t++]=s[1]}for(a=0;a<e;a++){var s=S[a];s[0]=i[l++],s[1]=i[l++],C(s,s,r),i[t++]=s[0],i[t++]=s[1]}}}H.exports=c},"7pVf":function(H,F,d){var O=d("ProS"),x=d("ZqQs");d("oE7X"),d("OUJF"),d("3X6L"),d("NH9N"),O.registerPreprocessor(x)},"7ph2":function(H,F){function d(C){return C instanceof Array||(C=[C,C]),C}var O="lineStyle.opacity".split("."),x={seriesType:"lines",reset:function(C,A,S){var g=d(C.get("symbol")),f=d(C.get("symbolSize")),c=C.getData();c.setVisual("fromSymbol",g&&g[0]),c.setVisual("toSymbol",g&&g[1]),c.setVisual("fromSymbolSize",f&&f[0]),c.setVisual("toSymbolSize",f&&f[1]),c.setVisual("opacity",C.get(O));function o(r,i){var n=r.getItemModel(i),e=d(n.getShallow("symbol",!0)),l=d(n.getShallow("symbolSize",!0)),t=n.get(O);e[0]&&r.setItemVisual(i,"fromSymbol",e[0]),e[1]&&r.setItemVisual(i,"toSymbol",e[1]),l[0]&&r.setItemVisual(i,"fromSymbolSize",l[0]),l[1]&&r.setItemVisual(i,"toSymbolSize",l[1]),r.setItemVisual(i,"opacity",t)}return{dataEach:c.hasItemOption?o:null}}};H.exports=x},"7uqq":function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("bYtY"),S=d("AUH6"),g=d("+TT/"),f=d("OELB"),c=d("W4dC"),o=d("7DRL");function r(l,t){var a=l.get("boundingCoords");if(a!=null){var s=a[0],u=a[1];isNaN(s[0])||isNaN(s[1])||isNaN(u[0])||isNaN(u[1])||this.setBoundingRect(s[0],s[1],u[0]-s[0],u[1]-s[1])}var h=this.getBoundingRect(),p,m=l.get("layoutCenter"),v=l.get("layoutSize"),y=t.getWidth(),E=t.getHeight(),T=h.width/h.height*this.aspectScale,b=!1;m&&v&&(m=[f.parsePercent(m[0],y),f.parsePercent(m[1],E)],v=f.parsePercent(v,Math.min(y,E)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(v)&&(b=!0));var w;if(b){var w={};T>1?(w.width=v,w.height=v/T):(w.height=v,w.width=v*T),w.y=m[1]-w.height/2,w.x=m[0]-w.width/2}else p=l.getBoxLayoutParams(),p.aspect=T,w=g.getLayoutRect(p,{width:y,height:E});this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(l.get("center")),this.setZoom(l.get("zoom"))}function i(l,t){A.each(t.get("geoCoord"),function(a,s){l.addGeoCoord(s,a)})}var n={dimensions:S.prototype.dimensions,create:function(l,t){var a=[];l.eachComponent("geo",function(u,h){var p=u.get("map"),m=u.get("aspectScale"),v=!0,y=o.retrieveMap(p);y&&y[0]&&y[0].type==="svg"?(m==null&&(m=1),v=!1):m==null&&(m=.75);var E=new S(p+h,p,u.get("nameMap"),v);E.aspectScale=m,E.zoomLimit=u.get("scaleLimit"),a.push(E),i(E,u),u.coordinateSystem=E,E.model=u,E.resize=r,E.resize(u,t)}),l.eachSeries(function(u){var h=u.get("coordinateSystem");if(h==="geo"){var p=u.get("geoIndex")||0;u.coordinateSystem=a[p]}});var s={};return l.eachSeriesByType("map",function(u){if(!u.getHostGeoModel()){var h=u.getMapType();s[h]=s[h]||[],s[h].push(u)}}),A.each(s,function(u,h){var p=A.map(u,function(v){return v.get("nameMap")}),m=new S(h,h,A.mergeAll(p));m.zoomLimit=A.retrieve.apply(null,A.map(u,function(v){return v.get("scaleLimit")})),a.push(m),m.resize=r,m.aspectScale=u[0].get("aspectScale"),m.resize(u[0],t),A.each(u,function(v){v.coordinateSystem=m,i(m,v)})}),a},getFilledRegions:function(l,t,a){for(var s=(l||[]).slice(),u=A.createHashMap(),h=0;h<s.length;h++)u.set(s[h].name,s[h]);var p=c.load(t,a);return A.each(p.regions,function(m){var v=m.name;!u.get(v)&&s.push({name:v})}),s}};C.registerCoordinateSystem("geo",n);var e=n;H.exports=e},"7yuC":function(H,F,d){var O=d("QBsz"),x=O.scaleAndAdd;function C(A,S,g){for(var f=g.rect,c=f.width,o=f.height,r=[f.x+c/2,f.y+o/2],i=g.gravity==null?.1:g.gravity,n=0;n<A.length;n++){var e=A[n];e.p||(e.p=O.create(c*(Math.random()-.5)+r[0],o*(Math.random()-.5)+r[1])),e.pp=O.clone(e.p),e.edges=null}var l=g.friction==null?.6:g.friction,t=l;return{warmUp:function(){t=l*.8},setFixed:function(a){A[a].fixed=!0},setUnfixed:function(a){A[a].fixed=!1},step:function(a){for(var s=[],u=A.length,h=0;h<S.length;h++){var p=S[h];if(p.ignoreForceLayout)continue;var m=p.n1,v=p.n2;O.sub(s,v.p,m.p);var y=O.len(s)-p.d,E=v.w/(m.w+v.w);isNaN(E)&&(E=0),O.normalize(s,s),!m.fixed&&x(m.p,m.p,s,E*y*t),!v.fixed&&x(v.p,v.p,s,-(1-E)*y*t)}for(var h=0;h<u;h++){var T=A[h];T.fixed||(O.sub(s,r,T.p),x(T.p,T.p,s,i*t))}for(var h=0;h<u;h++)for(var m=A[h],b=h+1;b<u;b++){var v=A[b];O.sub(s,v.p,m.p);var y=O.len(s);y===0&&(O.set(s,Math.random()-.5,Math.random()-.5),y=1);var w=(m.rep+v.rep)/y/y;!m.fixed&&x(m.pp,m.pp,s,w),!v.fixed&&x(v.pp,v.pp,s,-w)}for(var _=[],h=0;h<u;h++){var T=A[h];T.fixed||(O.sub(_,T.p,T.pp),x(T.p,T.p,_,t),O.copy(T.pp,T.p))}t=t*.992,a&&a(A,S,t<.01)}}}F.forceLayout=C},"8+yF":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O={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},x={lookup:function(A){if(A>=32&&A<=255)return A;var S=O[A];return S!==void 0?S:16777216|A}};F.default=x},"8CQX":function(H,F,d){"use strict";function O(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(a){return typeof a}:O=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},O(l)}Object.defineProperty(F,"__esModule",{value:!0}),F.getKeycode=i,F.getKey=n,F.getKeysym=e;var x=r(d("mHUz")),C=r(d("8+yF")),A=r(d("6Qwc")),S=r(d("gIYZ")),g=r(d("mTgk")),f=o(d("GdRQ"));function c(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return c=function(){return l},l}function o(l){if(l&&l.__esModule)return l;if(l===null||O(l)!=="object"&&typeof l!="function")return{default:l};var t=c();if(t&&t.has(l))return t.get(l);var a={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in l)if(Object.prototype.hasOwnProperty.call(l,u)){var h=s?Object.getOwnPropertyDescriptor(l,u):null;h&&(h.get||h.set)?Object.defineProperty(a,u,h):a[u]=l[u]}return a.default=l,t&&t.set(l,a),a}function r(l){return l&&l.__esModule?l:{default:l}}function i(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 t=A.default[l.keyCode];if(f.isMac()&&t==="ContextMenu"&&(t="MetaRight"),l.location===2)switch(t){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(l.location===3)switch(t){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 t}return"Unidentified"}function n(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(!f.isIE()&&!f.isEdge())return l.key;if(l.key.length!==1&&l.key!=="Unidentified")return l.key}var t=i(l);return t in S.default?S.default[t]:l.charCode?String.fromCharCode(l.charCode):"Unidentified"}function e(l){var t=n(l);if(t==="Unidentified")return null;if(t in g.default){var a=l.location;if(t==="Meta"&&a===0&&(a=2),t==="Clear"&&a===3){var s=i(l);s==="NumLock"&&(a=0)}if((a===void 0||a>3)&&(a=0),t==="Meta"){var u=i(l);if(u==="AltLeft")return x.default.XK_Meta_L;if(u==="AltRight")return x.default.XK_Meta_R}if(t==="Clear"){var h=i(l);if(h==="NumLock")return x.default.XK_Num_Lock}return g.default[t][a]}if(t.length!==1)return null;var p=t.charCodeAt();return p?C.default.lookup(p):null}},"8EBN":function(H,F,d){(function(O){O(d("VrN/"))})(function(O){"use strict";O.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 x=0;x<O.modeInfo.length;x++){var C=O.modeInfo[x];C.mimes&&(C.mime=C.mimes[0])}O.findModeByMIME=function(A){A=A.toLowerCase();for(var S=0;S<O.modeInfo.length;S++){var g=O.modeInfo[S];if(g.mime==A)return g;if(g.mimes){for(var f=0;f<g.mimes.length;f++)if(g.mimes[f]==A)return g}}if(/\+xml$/.test(A))return O.findModeByMIME("application/xml");if(/\+json$/.test(A))return O.findModeByMIME("application/json")},O.findModeByExtension=function(A){A=A.toLowerCase();for(var S=0;S<O.modeInfo.length;S++){var g=O.modeInfo[S];if(g.ext){for(var f=0;f<g.ext.length;f++)if(g.ext[f]==A)return g}}},O.findModeByFileName=function(A){for(var S=0;S<O.modeInfo.length;S++){var g=O.modeInfo[S];if(g.file&&g.file.test(A))return g}var f=A.lastIndexOf("."),c=f>-1&&A.substring(f+1,A.length);if(c)return O.findModeByExtension(c)},O.findModeByName=function(A){A=A.toLowerCase();for(var S=0;S<O.modeInfo.length;S++){var g=O.modeInfo[S];if(g.name.toLowerCase()==A)return g;if(g.alias){for(var f=0;f<g.alias.length;f++)if(g.alias[f].toLowerCase()==A)return g}}}})},"8IMR":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},"8ISB":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("6Hfg"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},"8K/p":function(H,F,d){"use strict";function O(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(e){return typeof e}:O=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(i)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var x=g(d("Lo0S")),C=A(d("ItS6"));function A(i){return i&&i.__esModule?i:{default:i}}function S(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return S=function(){return i},i}function g(i){if(i&&i.__esModule)return i;if(i===null||O(i)!=="object"&&typeof i!="function")return{default:i};var n=S();if(n&&n.has(i))return n.get(i);var e={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in i)if(Object.prototype.hasOwnProperty.call(i,t)){var a=l?Object.getOwnPropertyDescriptor(i,t):null;a&&(a.get||a.set)?Object.defineProperty(e,t,a):e[t]=i[t]}return e.default=i,n&&n.set(i,e),e}function f(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function c(i,n){for(var e=0;e<n.length;e++){var l=n[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(i,l.key,l)}}function o(i,n,e){return n&&c(i.prototype,n),e&&c(i,e),i}var r=function(){function i(){f(this,i),this._ctl=null,this._filter=null,this._numColors=0,this._palette=new Uint8Array(1024),this._len=0,this._zlibs=[];for(var n=0;n<4;n++)this._zlibs[n]=new C.default}return o(i,[{key:"decodeRect",value:function(e,l,t,a,s,u,h){if(this._ctl===null){if(s.rQwait("TIGHT compression-control",1))return!1;this._ctl=s.rQshift8();for(var p=0;p<4;p++)this._ctl>>p&1&&(this._zlibs[p].reset(),x.Info("Reset zlib stream "+p));this._ctl=this._ctl>>4}var m;if(this._ctl===8)m=this._fillRect(e,l,t,a,s,u,h);else if(this._ctl===9)m=this._jpegRect(e,l,t,a,s,u,h);else if(this._ctl===10)m=this._pngRect(e,l,t,a,s,u,h);else if((this._ctl&128)==0)m=this._basicRect(this._ctl,e,l,t,a,s,u,h);else throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");return m&&(this._ctl=null),m}},{key:"_fillRect",value:function(e,l,t,a,s,u,h){if(s.rQwait("TIGHT",3))return!1;var p=s.rQi,m=s.rQ;return u.fillRect(e,l,t,a,[m[p+2],m[p+1],m[p]],!1),s.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(e,l,t,a,s,u,h){var p=this._readData(s);return p===null?!1:(u.imageRect(e,l,t,a,"image/jpeg",p),!0)}},{key:"_pngRect",value:function(e,l,t,a,s,u,h){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(e,l,t,a,s,u,h,p){if(this._filter===null)if(e&4){if(u.rQwait("TIGHT",1))return!1;this._filter=u.rQshift8()}else this._filter=0;var m=e&3,v;switch(this._filter){case 0:v=this._copyFilter(m,l,t,a,s,u,h,p);break;case 1:v=this._paletteFilter(m,l,t,a,s,u,h,p);break;case 2:v=this._gradientFilter(m,l,t,a,s,u,h,p);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return v&&(this._filter=null),v}},{key:"_copyFilter",value:function(e,l,t,a,s,u,h,p){var m=a*s*3,v;if(m<12){if(u.rQwait("TIGHT",m))return!1;v=u.rQshiftBytes(m)}else{if(v=this._readData(u),v===null)return!1;this._zlibs[e].setInput(v),v=this._zlibs[e].inflate(m),this._zlibs[e].setInput(null)}return h.blitRgbImage(l,t,a,s,v,0,!1),!0}},{key:"_paletteFilter",value:function(e,l,t,a,s,u,h,p){if(this._numColors===0){if(u.rQwait("TIGHT palette",1))return!1;var m=u.rQpeek8()+1,v=m*3;if(u.rQwait("TIGHT palette",1+v))return!1;this._numColors=m,u.rQskipBytes(1),u.rQshiftTo(this._palette,v)}var y=this._numColors<=2?1:8,E=Math.floor((a*y+7)/8),T=E*s,b;if(T<12){if(u.rQwait("TIGHT",T))return!1;b=u.rQshiftBytes(T)}else{if(b=this._readData(u),b===null)return!1;this._zlibs[e].setInput(b),b=this._zlibs[e].inflate(T),this._zlibs[e].setInput(null)}return this._numColors==2?this._monoRect(l,t,a,s,b,this._palette,h):this._paletteRect(l,t,a,s,b,this._palette,h),this._numColors=0,!0}},{key:"_monoRect",value:function(e,l,t,a,s,u,h){for(var p=this._getScratchBuffer(t*a*4),m=Math.floor((t+7)/8),v=Math.floor(t/8),y=0;y<a;y++){var E=void 0,T=void 0,b=void 0;for(b=0;b<v;b++)for(var w=7;w>=0;w--)E=(y*t+b*8+7-w)*4,T=(s[y*m+b]>>w&1)*3,p[E]=u[T],p[E+1]=u[T+1],p[E+2]=u[T+2],p[E+3]=255;for(var _=7;_>=8-t%8;_--)E=(y*t+b*8+7-_)*4,T=(s[y*m+b]>>_&1)*3,p[E]=u[T],p[E+1]=u[T+1],p[E+2]=u[T+2],p[E+3]=255}h.blitRgbxImage(e,l,t,a,p,0,!1)}},{key:"_paletteRect",value:function(e,l,t,a,s,u,h){for(var p=this._getScratchBuffer(t*a*4),m=t*a*4,v=0,y=0;v<m;v+=4,y++){var E=s[y]*3;p[v]=u[E],p[v+1]=u[E+1],p[v+2]=u[E+2],p[v+3]=255}h.blitRgbxImage(e,l,t,a,p,0,!1)}},{key:"_gradientFilter",value:function(e,l,t,a,s,u,h,p){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 t=e.rQshiftBytes(this._len);return this._len=0,t}},{key:"_getScratchBuffer",value:function(e){return(!this._scratchBuffer||this._scratchBuffer.length<e)&&(this._scratchBuffer=new Uint8Array(e)),this._scratchBuffer}}]),i}();F.default=r},"8SMY":function(H,F,d){var O=d("n4Lv"),x=O.prepareDataCoordInfo,C=O.getStackedOnPoint;function A(g,f){var c=[];return f.diff(g).add(function(o){c.push({cmd:"+",idx:o})}).update(function(o,r){c.push({cmd:"=",idx:r,idx1:o})}).remove(function(o){c.push({cmd:"-",idx:o})}).execute(),c}function S(g,f,c,o,r,i,n,e){for(var l=A(g,f),t=[],a=[],s=[],u=[],h=[],p=[],m=[],v=x(r,f,n),y=x(i,g,e),E=0;E<l.length;E++){var T=l[E],b=!0;switch(T.cmd){case"=":var w=g.getItemLayout(T.idx),_=f.getItemLayout(T.idx1);(isNaN(w[0])||isNaN(w[1]))&&(w=_.slice()),t.push(w),a.push(_),s.push(c[T.idx]),u.push(o[T.idx1]),m.push(f.getRawIndex(T.idx1));break;case"+":var I=T.idx;t.push(r.dataToPoint([f.get(v.dataDimsForPoint[0],I),f.get(v.dataDimsForPoint[1],I)])),a.push(f.getItemLayout(I).slice()),s.push(C(v,r,f,I)),u.push(o[I]),m.push(f.getRawIndex(I));break;case"-":var I=T.idx,L=g.getRawIndex(I);L!==I?(t.push(g.getItemLayout(I)),a.push(i.dataToPoint([g.get(y.dataDimsForPoint[0],I),g.get(y.dataDimsForPoint[1],I)])),s.push(c[I]),u.push(C(y,i,g,I)),m.push(L)):b=!1}b&&(h.push(T),p.push(p.length))}p.sort(function(U,B){return m[U]-m[B]});for(var N=[],D=[],R=[],k=[],M=[],E=0;E<p.length;E++){var I=p[E];N[E]=t[I],D[E]=a[I],R[E]=s[I],k[E]=u[I],M[E]=h[I]}return{current:N,next:D,stackedOnCurrent:R,stackedOnNext:k,status:M}}H.exports=S},"8Skl":function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="DownOutlined";var f=F.a=x.forwardRef(g)},"8Th4":function(H,F,d){var O=d("3LNs"),x=d("/y7N"),C=d("7bkD"),A=d("Znkb"),S=["x","y"],g=["width","height"],f=O.extend({makeElOption:function(n,e,l,t,a){var s=l.axis,u=s.coordinateSystem,h=r(u,1-o(s)),p=u.dataToPoint(e)[0],m=t.get("type");if(m&&m!=="none"){var v=x.buildElStyle(t),y=c[m](s,p,h);y.style=v,n.graphicKey=y.type,n.pointer=y}var E=C.layout(l);x.buildCartesianSingleLabelElOption(e,n,E,l,t,a)},getHandleTransform:function(n,e,l){var t=C.layout(e,{labelInside:!1});return t.labelMargin=l.get("handle.margin"),{position:x.getTransformedPosition(e.axis,n,t),rotation:t.rotation+(t.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(n,e,l,t){var a=l.axis,s=a.coordinateSystem,u=o(a),h=r(s,u),p=n.position;p[u]+=e[u],p[u]=Math.min(h[1],p[u]),p[u]=Math.max(h[0],p[u]);var m=r(s,1-u),v=(m[1]+m[0])/2,y=[v,v];return y[u]=p[u],{position:p,rotation:n.rotation,cursorPoint:y,tooltipOption:{verticalAlign:"middle"}}}}),c={line:function(n,e,l){var t=x.makeLineShape([e,l[0]],[e,l[1]],o(n));return{type:"Line",subPixelOptimize:!0,shape:t}},shadow:function(n,e,l){var t=n.getBandWidth(),a=l[1]-l[0];return{type:"Rect",shape:x.makeRectShape([e-t/2,l[0]],[t,a],o(n))}}};function o(n){return n.isHorizontal()?0:1}function r(n,e){var l=n.getRect();return[l[S[e]],l[S[e]]+l[g[e]]]}A.registerAxisPointerClass("SingleAxisPointer",f);var i=f;H.exports=i},"8Uz6":function(H,F,d){var O=d("hNWo"),x=d("+TT/"),C=x.mergeLayoutParam,A=x.getLayoutParams,S=O.extend({type:"legend.scroll",setScrollDataIndex:function(c){this.option.scrollDataIndex=c},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(c,o,r,i){var n=A(c);S.superCall(this,"init",c,o,r,i),g(this,c,n)},mergeOption:function(c,o){S.superCall(this,"mergeOption",c,o),g(this,this.option,c)}});function g(c,o,r){var i=c.getOrient(),n=[1,1];n[i.index]=0,C(o,r,{type:"box",ignoreSize:n})}var f=S;H.exports=f},"8X+K":function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=d("4mN7"),S=A.fromPoints,g=d("9wZj"),f=d("FBjb"),c=d("8SMY"),o=d("IwbS"),r=d("4NO4"),i=d("1NG9"),n=i.Polyline,e=i.Polygon,l=d("6Ic6"),t=d("n4Lv"),a=t.prepareDataCoordInfo,s=t.getStackedOnPoint,u=d("sK/D"),h=u.createGridClipPath,p=u.createPolarClipPath;function m(N,D){if(N.length!==D.length)return;for(var R=0;R<N.length;R++){var k=N[R],M=D[R];if(k[0]!==M[0]||k[1]!==M[1])return}return!0}function v(N,D){var R=[],k=[],M=[],U=[];return S(N,R,k),S(D,M,U),Math.max(Math.abs(R[0]-M[0]),Math.abs(R[1]-M[1]),Math.abs(k[0]-U[0]),Math.abs(k[1]-U[1]))}function y(N){return typeof N=="number"?N:N?.5:0}function E(N,D,R){if(!R.valueDim)return[];for(var k=[],M=0,U=D.count();M<U;M++)k.push(s(R,N,D,M));return k}function T(N,D,R){for(var k=D.getBaseAxis(),M=k.dim==="x"||k.dim==="radius"?0:1,U=[],B=0;B<N.length-1;B++){var j=N[B+1],W=N[B];U.push(W);var V=[];switch(R){case"end":V[M]=j[M],V[1-M]=W[1-M],U.push(V);break;case"middle":var z=(W[M]+j[M])/2,J=[];V[M]=J[M]=z,V[1-M]=W[1-M],J[1-M]=j[1-M],U.push(V),U.push(J);break;default:V[M]=W[M],V[1-M]=j[1-M],U.push(V)}}return N[B]&&U.push(N[B]),U}function b(N,D){var R=N.getVisual("visualMeta");if(!R||!R.length||!N.count())return;if(D.type!=="cartesian2d")return;for(var k,M,U=R.length-1;U>=0;U--){var B=R[U].dimension,j=N.dimensions[B],W=N.getDimensionInfo(j);if(k=W&&W.coordDim,k==="x"||k==="y"){M=R[U];break}}if(!M)return;var V=D.getAxis(k),z=C.map(M.stops,function(Ue){return{coord:V.toGlobalCoord(V.dataToCoord(Ue.value)),color:Ue.color}}),J=z.length,Z=M.outerColors.slice();J&&z[0].coord>z[J-1].coord&&(z.reverse(),Z.reverse());var de=10,ie=z[0].coord-de,ve=z[J-1].coord+de,xe=ve-ie;if(xe<.001)return"transparent";C.each(z,function(Ue){Ue.offset=(Ue.coord-ie)/xe}),z.push({offset:J?z[J-1].offset:.5,color:Z[1]||"transparent"}),z.unshift({offset:J?z[0].offset:.5,color:Z[0]||"transparent"});var _e=new o.LinearGradient(0,0,0,0,z,!0);return _e[k]=ie,_e[k+"2"]=ve,_e}function w(N,D,R){var k=N.get("showAllSymbol"),M=k==="auto";if(k&&!M)return;var U=R.getAxesByScale("ordinal")[0];if(!U)return;if(M&&_(U,D))return;var B=D.mapDimension(U.dim),j={};return C.each(U.getViewLabels(),function(W){j[W.tickValue]=1}),function(W){return!j.hasOwnProperty(D.get(B,W))}}function _(N,D){var R=N.getExtent(),k=Math.abs(R[1]-R[0])/N.scale.count();isNaN(k)&&(k=0);for(var M=D.count(),U=Math.max(1,Math.round(M/5)),B=0;B<M;B+=U)if(f.getSymbolSize(D,B)[N.isHorizontal()?1:0]*1.5>k)return!1;return!0}function I(N,D,R){if(N.type==="cartesian2d"){var k=N.getBaseAxis().isHorizontal(),M=h(N,D,R);if(!R.get("clip",!0)){var U=M.shape,B=Math.max(U.width,U.height);k?(U.y-=B,U.height+=B*2):(U.x-=B,U.width+=B*2)}return M}else return p(N,D,R)}var L=l.extend({type:"line",init:function(){var N=new o.Group,D=new g;this.group.add(D.group),this._symbolDraw=D,this._lineGroup=N},render:function(N,D,R){var k=N.coordinateSystem,M=this.group,U=N.getData(),B=N.getModel("lineStyle"),j=N.getModel("areaStyle"),W=U.mapArray(U.getItemLayout),V=k.type==="polar",z=this._coordSys,J=this._symbolDraw,Z=this._polyline,de=this._polygon,ie=this._lineGroup,ve=N.get("animation"),xe=!j.isEmpty(),_e=j.get("origin"),Ue=a(k,U,_e),fe=E(k,U,Ue),ke=N.get("showSymbol"),se=ke&&!V&&w(N,U,k),te=this._data;te&&te.eachItemGraphicEl(function(ue,Ce){ue.__temp&&(M.remove(ue),te.setItemGraphicEl(Ce,null))}),ke||J.remove(),M.add(ie);var Ve=!V&&N.get("step"),ae;k&&k.getArea&&N.get("clip",!0)&&(ae=k.getArea(),ae.width!=null?(ae.x-=.1,ae.y-=.1,ae.width+=.2,ae.height+=.2):ae.r0&&(ae.r0-=.5,ae.r1+=.5)),this._clipShapeForSymbol=ae,Z&&z.type===k.type&&Ve===this._step?(xe&&!de?de=this._newPolygon(W,fe,k,ve):de&&!xe&&(ie.remove(de),de=this._polygon=null),ie.setClipPath(I(k,!1,N)),ke&&J.updateData(U,{isIgnore:se,clipShape:ae}),U.eachItemGraphicEl(function(ue){ue.stopAnimation(!0)}),(!m(this._stackedOnPoints,fe)||!m(this._points,W))&&(ve?this._updateAnimation(U,fe,k,R,Ve,_e):(Ve&&(W=T(W,k,Ve),fe=T(fe,k,Ve)),Z.setShape({points:W}),de&&de.setShape({points:W,stackedOnPoints:fe})))):(ke&&J.updateData(U,{isIgnore:se,clipShape:ae}),Ve&&(W=T(W,k,Ve),fe=T(fe,k,Ve)),Z=this._newPolyline(W,k,ve),xe&&(de=this._newPolygon(W,fe,k,ve)),ie.setClipPath(I(k,!0,N)));var Q=b(U,k)||U.getVisual("color");Z.useStyle(C.defaults(B.getLineStyle(),{fill:"none",stroke:Q,lineJoin:"bevel"}));var G=N.get("smooth");if(G=y(N.get("smooth")),Z.setShape({smooth:G,smoothMonotone:N.get("smoothMonotone"),connectNulls:N.get("connectNulls")}),de){var Y=U.getCalculationInfo("stackedOnSeries"),me=0;de.useStyle(C.defaults(j.getAreaStyle(),{fill:Q,opacity:.7,lineJoin:"bevel"})),Y&&(me=y(Y.get("smooth"))),de.setShape({smooth:G,stackedOnSmooth:me,smoothMonotone:N.get("smoothMonotone"),connectNulls:N.get("connectNulls")})}this._data=U,this._coordSys=k,this._stackedOnPoints=fe,this._points=W,this._step=Ve,this._valueOrigin=_e},dispose:function(){},highlight:function(N,D,R,k){var M=N.getData(),U=r.queryDataIndex(M,k);if(!(U instanceof Array)&&U!=null&&U>=0){var B=M.getItemGraphicEl(U);if(!B){var j=M.getItemLayout(U);if(!j)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(j[0],j[1]))return;B=new f(M,U),B.position=j,B.setZ(N.get("zlevel"),N.get("z")),B.ignore=isNaN(j[0])||isNaN(j[1]),B.__temp=!0,M.setItemGraphicEl(U,B),B.stopSymbolAnimation(!0),this.group.add(B)}B.highlight()}else l.prototype.highlight.call(this,N,D,R,k)},downplay:function(N,D,R,k){var M=N.getData(),U=r.queryDataIndex(M,k);if(U!=null&&U>=0){var B=M.getItemGraphicEl(U);B&&(B.__temp?(M.setItemGraphicEl(U,null),this.group.remove(B)):B.downplay())}else l.prototype.downplay.call(this,N,D,R,k)},_newPolyline:function(N){var D=this._polyline;return D&&this._lineGroup.remove(D),D=new n({shape:{points:N},silent:!0,z2:10}),this._lineGroup.add(D),this._polyline=D,D},_newPolygon:function(N,D){var R=this._polygon;return R&&this._lineGroup.remove(R),R=new e({shape:{points:N,stackedOnPoints:D},silent:!0}),this._lineGroup.add(R),this._polygon=R,R},_updateAnimation:function(N,D,R,k,M,U){var B=this._polyline,j=this._polygon,W=N.hostModel,V=c(this._data,N,this._stackedOnPoints,D,this._coordSys,R,this._valueOrigin,U),z=V.current,J=V.stackedOnCurrent,Z=V.next,de=V.stackedOnNext;if(M&&(z=T(V.current,R,M),J=T(V.stackedOnCurrent,R,M),Z=T(V.next,R,M),de=T(V.stackedOnNext,R,M)),v(z,Z)>3e3||j&&v(J,de)>3e3){B.setShape({points:Z}),j&&j.setShape({points:Z,stackedOnPoints:de});return}B.shape.__points=V.current,B.shape.points=z,o.updateProps(B,{shape:{points:Z}},W),j&&(j.setShape({points:z,stackedOnPoints:J}),o.updateProps(j,{shape:{points:Z,stackedOnPoints:de}},W));for(var ie=[],ve=V.status,xe=0;xe<ve.length;xe++){var _e=ve[xe].cmd;if(_e==="="){var Ue=N.getItemGraphicEl(ve[xe].idx1);Ue&&ie.push({el:Ue,ptIdx:xe})}}B.animators&&B.animators.length&&B.animators[0].during(function(){for(var fe=0;fe<ie.length;fe++){var ke=ie[fe].el;ke.attr("position",B.shape.__points[ie[fe].ptIdx])}})},remove:function(N){var D=this.group,R=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),R&&R.eachItemGraphicEl(function(k,M){k.__temp&&(D.remove(k),R.setItemGraphicEl(M,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});H.exports=L},"8XDt":function(H,F,d){d("qH13");var O=d("aX58"),x=O.registerPainter,C=d("6fms");x("vml",C)},"8XRh":function(H,F,d){"use strict";d.d(F,"a",function(){return Ge});var O=d("rePB"),x=d("VTBJ"),C=d("ODXe"),A=d("U8pU"),S=d("q1tI"),g=d("m+aA"),f=d("c+Xe"),c=d("TSYQ"),o=d.n(c),r=d("MNnm");function i(qe,Le){var Ot={};return Ot[qe.toLowerCase()]=Le.toLowerCase(),Ot["Webkit".concat(qe)]="webkit".concat(Le),Ot["Moz".concat(qe)]="moz".concat(Le),Ot["ms".concat(qe)]="MS".concat(Le),Ot["O".concat(qe)]="o".concat(Le.toLowerCase()),Ot}function n(qe,Le){var Ot={animationend:i("Animation","AnimationEnd"),transitionend:i("Transition","TransitionEnd")};return qe&&("AnimationEvent"in Le||delete Ot.animationend.animation,"TransitionEvent"in Le||delete Ot.transitionend.transition),Ot}var e=n(Object(r.a)(),typeof window!="undefined"?window:{}),l={};if(Object(r.a)()){var t=document.createElement("div");l=t.style}var a={};function s(qe){if(a[qe])return a[qe];var Le=e[qe];if(Le)for(var Ot=Object.keys(Le),$e=Ot.length,xt=0;xt<$e;xt+=1){var Ht=Ot[xt];if(Object.prototype.hasOwnProperty.call(Le,Ht)&&Ht in l)return a[qe]=Le[Ht],a[qe]}return""}var u=s("animationend"),h=s("transitionend"),p=!!(u&&h),m=u||"animationend",v=h||"transitionend";function y(qe,Le){if(!qe)return null;if(Object(A.a)(qe)==="object"){var Ot=Le.replace(/-\w/g,function($e){return $e[1].toUpperCase()});return qe[Ot]}return"".concat(qe,"-").concat(Le)}var E="none",T="appear",b="enter",w="leave",_="none",I="prepare",L="start",N="active",D="end",R=d("dm2S"),k=d("wgJM"),M=function(){var qe=S.useRef(null);function Le(){k.a.cancel(qe.current)}function Ot($e){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Le();var Ht=Object(k.a)(function(){xt<=1?$e({isCanceled:function(){return Ht!==qe.current}}):Ot($e,xt-1)});qe.current=Ht}return S.useEffect(function(){return function(){Le()}},[]),[Ot,Le]},U=Object(r.a)()?S.useLayoutEffect:S.useEffect,B=U,j=[I,L,N,D],W=!1,V=!0;function z(qe){return qe===N||qe===D}var J=function(qe,Le){var Ot=Object(R.a)(_),$e=Object(C.a)(Ot,2),xt=$e[0],Ht=$e[1],tr=M(),Mt=Object(C.a)(tr,2),Tt=Mt[0],Xe=Mt[1];function oe(){Ht(I,!0)}return B(function(){if(xt!==_&&xt!==D){var X=j.indexOf(xt),Be=j[X+1],Ee=Le(xt);Ee===W?Ht(Be,!0):Tt(function(ee){function lt(){if(ee.isCanceled())return;Ht(Be,!0)}Ee===!0?lt():Promise.resolve(Ee).then(lt)})}},[qe,xt]),S.useEffect(function(){return function(){Xe()}},[]),[oe,xt]},Z=function(qe){var Le=Object(S.useRef)(),Ot=Object(S.useRef)(qe);Ot.current=qe;var $e=S.useCallback(function(tr){Ot.current(tr)},[]);function xt(tr){tr&&(tr.removeEventListener(v,$e),tr.removeEventListener(m,$e))}function Ht(tr){Le.current&&Le.current!==tr&&xt(Le.current),tr&&tr!==Le.current&&(tr.addEventListener(v,$e),tr.addEventListener(m,$e),Le.current=tr)}return S.useEffect(function(){return function(){xt(Le.current)}},[]),[Ht,xt]};function de(qe,Le,Ot,$e){var xt=$e.motionEnter,Ht=xt===void 0?!0:xt,tr=$e.motionAppear,Mt=tr===void 0?!0:tr,Tt=$e.motionLeave,Xe=Tt===void 0?!0:Tt,oe=$e.motionDeadline,X=$e.motionLeaveImmediately,Be=$e.onAppearPrepare,Ee=$e.onEnterPrepare,ee=$e.onLeavePrepare,lt=$e.onAppearStart,Ct=$e.onEnterStart,dt=$e.onLeaveStart,_t=$e.onAppearActive,ir=$e.onEnterActive,$r=$e.onLeaveActive,nr=$e.onAppearEnd,lr=$e.onEnterEnd,zt=$e.onLeaveEnd,Ut=$e.onVisibleChanged,st=Object(R.a)(),Hr=Object(C.a)(st,2),mn=Hr[0],In=Hr[1],Yn=Object(R.a)(E),Mi=Object(C.a)(Yn,2),wn=Mi[0],Rn=Mi[1],kt=Object(R.a)(null),vt=Object(C.a)(kt,2),Re=vt[0],Ke=vt[1],Pe=Object(S.useRef)(!1),nt=Object(S.useRef)(null);function yt(){return Ot()}var Dt=Object(S.useRef)(!1);function bt(ot){var Bt=yt();if(ot&&!ot.deadline&&ot.target!==Bt)return;var Ar=Dt.current,rr;wn===T&&Ar?rr=nr==null?void 0:nr(Bt,ot):wn===b&&Ar?rr=lr==null?void 0:lr(Bt,ot):wn===w&&Ar&&(rr=zt==null?void 0:zt(Bt,ot)),wn!==E&&Ar&&rr!==!1&&(Rn(E,!0),Ke(null,!0))}var It=Z(bt),gr=Object(C.a)(It,1),kr=gr[0],wt=S.useMemo(function(){var ot,Bt,Ar;switch(wn){case T:return ot={},Object(O.a)(ot,I,Be),Object(O.a)(ot,L,lt),Object(O.a)(ot,N,_t),ot;case b:return Bt={},Object(O.a)(Bt,I,Ee),Object(O.a)(Bt,L,Ct),Object(O.a)(Bt,N,ir),Bt;case w:return Ar={},Object(O.a)(Ar,I,ee),Object(O.a)(Ar,L,dt),Object(O.a)(Ar,N,$r),Ar;default:return{}}},[wn]),rt=J(wn,function(ot){if(ot===I){var Bt=wt[I];return Bt?Bt(yt()):W}if(Ft in wt){var Ar;Ke(((Ar=wt[Ft])===null||Ar===void 0?void 0:Ar.call(wt,yt(),null))||null)}return Ft===N&&(kr(yt()),oe>0&&(clearTimeout(nt.current),nt.current=setTimeout(function(){bt({deadline:!0})},oe))),V}),tt=Object(C.a)(rt,2),Rt=tt[0],Ft=tt[1],At=z(Ft);Dt.current=At,B(function(){In(Le);var ot=Pe.current;if(Pe.current=!0,!qe)return;var Bt;!ot&&Le&&Mt&&(Bt=T),ot&&Le&&Ht&&(Bt=b),(ot&&!Le&&Xe||!ot&&X&&!Le&&Xe)&&(Bt=w),Bt&&(Rn(Bt),Rt())},[Le]),Object(S.useEffect)(function(){(wn===T&&!Mt||wn===b&&!Ht||wn===w&&!Xe)&&Rn(E)},[Mt,Ht,Xe]),Object(S.useEffect)(function(){return function(){Pe.current=!1,clearTimeout(nt.current)}},[]),Object(S.useEffect)(function(){mn!==void 0&&wn===E&&(Ut==null||Ut(mn))},[mn,wn]);var Wt=Re;return wt[I]&&Ft===L&&(Wt=Object(x.a)({transition:"none"},Wt)),[wn,Ft,Wt,mn!=null?mn:Le]}var ie=d("1OyB"),ve=d("vuIU"),xe=d("Ji7U"),_e=d("LK+K"),Ue=function(qe){Object(xe.a)(Ot,qe);var Le=Object(_e.a)(Ot);function Ot(){return Object(ie.a)(this,Ot),Le.apply(this,arguments)}return Object(ve.a)(Ot,[{key:"render",value:function(){return this.props.children}}]),Ot}(S.Component),fe=Ue;function ke(qe){var Le=qe;Object(A.a)(qe)==="object"&&(Le=qe.transitionSupport);function Ot(xt){return!!(xt.motionName&&Le)}var $e=S.forwardRef(function(xt,Ht){var tr=xt.visible,Mt=tr===void 0?!0:tr,Tt=xt.removeOnLeave,Xe=Tt===void 0?!0:Tt,oe=xt.forceRender,X=xt.children,Be=xt.motionName,Ee=xt.leavedClassName,ee=xt.eventProps,lt=Ot(xt),Ct=Object(S.useRef)(),dt=Object(S.useRef)();function _t(){try{return Ct.current instanceof HTMLElement?Ct.current:Object(g.a)(dt.current)}catch(kt){return null}}var ir=de(lt,Mt,_t,xt),$r=Object(C.a)(ir,4),nr=$r[0],lr=$r[1],zt=$r[2],Ut=$r[3],st=S.useRef(Ut);Ut&&(st.current=!0);var Hr=S.useCallback(function(kt){Ct.current=kt,Object(f.b)(Ht,kt)},[Ht]),mn,In=Object(x.a)(Object(x.a)({},ee),{},{visible:Mt});if(!X)mn=null;else if(nr===E||!Ot(xt))Ut?mn=X(Object(x.a)({},In),Hr):!Xe&&st.current?mn=X(Object(x.a)(Object(x.a)({},In),{},{className:Ee}),Hr):oe?mn=X(Object(x.a)(Object(x.a)({},In),{},{style:{display:"none"}}),Hr):mn=null;else{var Yn,Mi;lr===I?Mi="prepare":z(lr)?Mi="active":lr===L&&(Mi="start"),mn=X(Object(x.a)(Object(x.a)({},In),{},{className:o()(y(Be,nr),(Yn={},Object(O.a)(Yn,y(Be,"".concat(nr,"-").concat(Mi)),Mi),Object(O.a)(Yn,Be,typeof Be=="string"),Yn)),style:zt}),Hr)}if(S.isValidElement(mn)&&Object(f.c)(mn)){var wn=mn,Rn=wn.ref;Rn||(mn=S.cloneElement(mn,{ref:Hr}))}return S.createElement(fe,{ref:dt},mn)});return $e.displayName="CSSMotion",$e}var se=ke(p),te=d("wx14"),Ve=d("Ff2n"),ae="add",Q="keep",G="remove",Y="removed";function me(qe){var Le;return qe&&Object(A.a)(qe)==="object"&&"key"in qe?Le=qe:Le={key:qe},Object(x.a)(Object(x.a)({},Le),{},{key:String(Le.key)})}function ue(){var qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return qe.map(me)}function Ce(){var qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ot=[],$e=0,xt=Le.length,Ht=ue(qe),tr=ue(Le);Ht.forEach(function(Xe){for(var oe=!1,X=$e;X<xt;X+=1){var Be=tr[X];if(Be.key===Xe.key){$e<X&&(Ot=Ot.concat(tr.slice($e,X).map(function(Ee){return Object(x.a)(Object(x.a)({},Ee),{},{status:ae})})),$e=X),Ot.push(Object(x.a)(Object(x.a)({},Be),{},{status:Q})),$e+=1,oe=!0;break}}oe||Ot.push(Object(x.a)(Object(x.a)({},Xe),{},{status:G}))}),$e<xt&&(Ot=Ot.concat(tr.slice($e).map(function(Xe){return Object(x.a)(Object(x.a)({},Xe),{},{status:ae})})));var Mt={};Ot.forEach(function(Xe){var oe=Xe.key;Mt[oe]=(Mt[oe]||0)+1});var Tt=Object.keys(Mt).filter(function(Xe){return Mt[Xe]>1});return Tt.forEach(function(Xe){Ot=Ot.filter(function(oe){var X=oe.key,Be=oe.status;return X!==Xe||Be!==G}),Ot.forEach(function(oe){oe.key===Xe&&(oe.status=Q)})}),Ot}var Ie=["component","children","onVisibleChanged","onAllRemoved"],ce=["status"],Ae=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Te(qe){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:se,Ot=function($e){Object(xe.a)(Ht,$e);var xt=Object(_e.a)(Ht);function Ht(){var tr;Object(ie.a)(this,Ht);for(var Mt=arguments.length,Tt=new Array(Mt),Xe=0;Xe<Mt;Xe++)Tt[Xe]=arguments[Xe];return tr=xt.call.apply(xt,[this].concat(Tt)),tr.state={keyEntities:[]},tr.removeKey=function(oe){var X=tr.state.keyEntities,Be=X.map(function(Ee){return Ee.key!==oe?Ee:Object(x.a)(Object(x.a)({},Ee),{},{status:Y})});return tr.setState({keyEntities:Be}),Be.filter(function(Ee){var ee=Ee.status;return ee!==Y}).length},tr}return Object(ve.a)(Ht,[{key:"render",value:function(){var Mt=this,Tt=this.state.keyEntities,Xe=this.props,oe=Xe.component,X=Xe.children,Be=Xe.onVisibleChanged,Ee=Xe.onAllRemoved,ee=Object(Ve.a)(Xe,Ie),lt=oe||S.Fragment,Ct={};return Ae.forEach(function(dt){Ct[dt]=ee[dt],delete ee[dt]}),delete ee.keys,S.createElement(lt,ee,Tt.map(function(dt){var _t=dt.status,ir=Object(Ve.a)(dt,ce),$r=_t===ae||_t===Q;return S.createElement(Le,Object(te.a)({},Ct,{key:ir.key,visible:$r,eventProps:ir,onVisibleChanged:function(lr){if(Be==null||Be(lr,{key:ir.key}),!lr){var zt=Mt.removeKey(ir.key);zt===0&&Ee&&Ee()}}}),X)}))}}],[{key:"getDerivedStateFromProps",value:function(Mt,Tt){var Xe=Mt.keys,oe=Tt.keyEntities,X=ue(Xe),Be=Ce(oe,X);return{keyEntities:Be.filter(function(Ee){var ee=oe.find(function(lt){var Ct=lt.key;return Ee.key===Ct});return!(ee&&ee.status===Y&&Ee.status===G)})}}}]),Ht}(S.Component);return Ot.defaultProps={component:"div"},Ot}var Ge=Te(p),gt=F.b=se},"8hn6":function(H,F){var d="#eee",O=function(){return{axisLine:{lineStyle:{color:d}},axisTick:{lineStyle:{color:d}},axisLabel:{textStyle:{color:d}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:d}}}},x=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],C={color:x,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:d},crossStyle:{color:d},label:{color:"#000"}}},legend:{textStyle:{color:d}},textStyle:{color:d},title:{textStyle:{color:d}},toolbox:{iconStyle:{normal:{borderColor:d}}},dataZoom:{textStyle:{color:d}},visualMap:{textStyle:{color:d}},timeline:{lineStyle:{color:d},itemStyle:{normal:{color:x[1]}},label:{normal:{textStyle:{color:d}}},controlStyle:{normal:{color:d,borderColor:d}}},timeAxis:O(),logAxis:O(),valueAxis:O(),categoryAxis:O(),line:{symbol:"circle"},graph:{color:x},gauge:{title:{textStyle:{color:d}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};C.categoryAxis.splitLine.show=!1;var A=C;H.exports=A},"8nMs":function(H,F,d){var O=d("bYtY"),x=d("IwbS"),C=d("+rIm"),A=d("Znkb"),S=d("AVZG"),g=d("WN+l"),f=g.rectCoordAxisBuildSplitArea,c=g.rectCoordAxisHandleRemove,o=["axisLine","axisTickLabel","axisName"],r=["splitArea","splitLine","minorSplitLine"],i=A.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(n,e,l,t){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new x.Group,this.group.add(this._axisGroup),!n.get("show"))return;var s=n.getCoordSysModel(),u=S.layout(s,n),h=new C(n,u);O.each(o,h.add,h),this._axisGroup.add(h.getGroup()),O.each(r,function(p){n.get(p+".show")&&this["_"+p](n,s)},this),x.groupTransition(a,this._axisGroup,n),i.superCall(this,"render",n,e,l,t)},remove:function(){c(this)},_splitLine:function(n,e){var l=n.axis;if(l.scale.isBlank())return;var t=n.getModel("splitLine"),a=t.getModel("lineStyle"),s=a.get("color");s=O.isArray(s)?s:[s];for(var u=e.coordinateSystem.getRect(),h=l.isHorizontal(),p=0,m=l.getTicksCoords({tickModel:t}),v=[],y=[],E=a.getLineStyle(),T=0;T<m.length;T++){var b=l.toGlobalCoord(m[T].coord);h?(v[0]=b,v[1]=u.y,y[0]=b,y[1]=u.y+u.height):(v[0]=u.x,v[1]=b,y[0]=u.x+u.width,y[1]=b);var w=p++%s.length,_=m[T].tickValue;this._axisGroup.add(new x.Line({anid:_!=null?"line_"+m[T].tickValue:null,subPixelOptimize:!0,shape:{x1:v[0],y1:v[1],x2:y[0],y2:y[1]},style:O.defaults({stroke:s[w]},E),silent:!0}))}},_minorSplitLine:function(n,e){var l=n.axis,t=n.getModel("minorSplitLine"),a=t.getModel("lineStyle"),s=e.coordinateSystem.getRect(),u=l.isHorizontal(),h=l.getMinorTicksCoords();if(!h.length)return;for(var p=[],m=[],v=a.getLineStyle(),y=0;y<h.length;y++)for(var E=0;E<h[y].length;E++){var T=l.toGlobalCoord(h[y][E].coord);u?(p[0]=T,p[1]=s.y,m[0]=T,m[1]=s.y+s.height):(p[0]=s.x,p[1]=T,m[0]=s.x+s.width,m[1]=T),this._axisGroup.add(new x.Line({anid:"minor_line_"+h[y][E].tickValue,subPixelOptimize:!0,shape:{x1:p[0],y1:p[1],x2:m[0],y2:m[1]},style:v,silent:!0}))}},_splitArea:function(n,e){f(this,this._axisGroup,n,e)}});i.extend({type:"xAxis"}),i.extend({type:"yAxis"})},"8nly":function(H,F,d){var O=d("mFDi"),x=d("4mN7"),C=d("QBsz"),A=d("BlVb");function S(f,c,o){if(this.name=f,this.geometries=c,o)o=[o[0],o[1]];else{var r=this.getBoundingRect();o=[r.x+r.width/2,r.y+r.height/2]}this.center=o}S.prototype={constructor:S,properties:null,getBoundingRect:function(){var f=this._rect;if(f)return f;for(var c=Number.MAX_VALUE,o=[c,c],r=[-c,-c],i=[],n=[],e=this.geometries,l=0;l<e.length;l++){if(e[l].type!=="polygon")continue;var t=e[l].exterior;x.fromPoints(t,i,n),C.min(o,o,i),C.max(r,r,n)}return l===0&&(o[0]=o[1]=r[0]=r[1]=0),this._rect=new O(o[0],o[1],r[0]-o[0],r[1]-o[1])},contain:function(f){var c=this.getBoundingRect(),o=this.geometries;if(!c.contain(f[0],f[1]))return!1;e:for(var r=0,i=o.length;r<i;r++){if(o[r].type!=="polygon")continue;var n=o[r].exterior,e=o[r].interiors;if(A.contain(n,f[0],f[1])){for(var l=0;l<(e?e.length:0);l++)if(A.contain(e[l]))continue e;return!0}}return!1},transformTo:function(f,c,o,r){var i=this.getBoundingRect(),n=i.width/i.height;o?r||(r=o/n):o=n*r;for(var e=new O(f,c,o,r),l=i.calculateTransform(e),t=this.geometries,a=0;a<t.length;a++){if(t[a].type!=="polygon")continue;for(var s=t[a].exterior,u=t[a].interiors,h=0;h<s.length;h++)C.applyTransform(s[h],s[h],l);for(var p=0;p<(u?u.length:0);p++)for(var h=0;h<u[p].length;h++)C.applyTransform(u[p][h],u[p][h],l)}i=this._rect,i.copy(e),this.center=[i.x+i.width/2,i.y+i.height/2]},cloneShallow:function(f){f==null&&(f=this.name);var c=new S(f,this.geometries,this.center);return c._rect=this._rect,c.transformTo=null,c}};var g=S;H.exports=g},"8txm":function(H,F,d){},"8waO":function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("iLNv"),A=d("ZWlE");d("hJvP"),d("IXyC"),d("xRUu");var S=5;O.extendComponentView({type:"parallel",render:function(c,o,r){this._model=c,this._api=r,this._handlers||(this._handlers={},x.each(g,function(i,n){r.getZr().on(n,this._handlers[n]=x.bind(i,this))},this)),C.createOrUpdate(this,"_throttledDispatchExpand",c.get("axisExpandRate"),"fixRate")},dispose:function(c,o){x.each(this._handlers,function(r,i){o.getZr().off(i,r)}),this._handlers=null},_throttledDispatchExpand:function(c){this._dispatchExpand(c)},_dispatchExpand:function(c){c&&this._api.dispatchAction(x.extend({type:"parallelAxisExpand"},c))}});var g={mousedown:function(c){f(this,"click")&&(this._mouseDownPoint=[c.offsetX,c.offsetY])},mouseup:function(c){var o=this._mouseDownPoint;if(f(this,"click")&&o){var r=[c.offsetX,c.offsetY],i=Math.pow(o[0]-r[0],2)+Math.pow(o[1]-r[1],2);if(i>S)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([c.offsetX,c.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(c){if(this._mouseDownPoint||!f(this,"mousemove"))return;var o=this._model,r=o.coordinateSystem.getSlidedAxisExpandWindow([c.offsetX,c.offsetY]),i=r.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(o.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:i==="jump"?null:!1})}};function f(c,o){var r=c._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===o}O.registerPreprocessor(A)},"8x+h":function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("bYtY"),S=d("K4ya"),g=d("Qxkt"),f=["#ddd"],c=C.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(i,n){var e=this.option;!n&&S.replaceVisualOption(e,i,["inBrush","outOfBrush"]);var l=e.inBrush=e.inBrush||{};e.outOfBrush=e.outOfBrush||{color:f},l.hasOwnProperty("liftZ")||(l.liftZ=5)},setAreas:function(i){if(!i)return;this.areas=A.map(i,function(n){return o(this.option,n)},this)},setBrushOption:function(i){this.brushOption=o(this.option,i),this.brushType=this.brushOption.brushType}});function o(i,n){return A.merge({brushType:i.brushType,brushMode:i.brushMode,transformable:i.transformable,brushStyle:new g(i.brushStyle).getItemStyle(),removeOnClick:i.removeOnClick,z:i.z},n,!0)}var r=c;H.exports=r},"8z0m":function(H,F,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("RIqP"),A=d.n(C),S=d("pVnL"),g=d.n(S),f=d("J4zp"),c=d.n(f),o=d("q1tI"),r=d.n(o),i=d("TSYQ"),n=d.n(i);function e(nr,lr){var zt="cannot "+nr.method+" "+nr.action+" "+lr.status+"'",Ut=new Error(zt);return Ut.status=lr.status,Ut.method=nr.method,Ut.url=nr.action,Ut}function l(nr){var lr=nr.responseText||nr.response;if(!lr)return lr;try{return JSON.parse(lr)}catch(zt){return lr}}function t(nr){var lr=new XMLHttpRequest;nr.onProgress&&lr.upload&&(lr.upload.onprogress=function(Hr){Hr.total>0&&(Hr.percent=Hr.loaded/Hr.total*100),nr.onProgress(Hr)});var zt=new FormData;nr.data&&Object.keys(nr.data).forEach(function(st){var Hr=nr.data[st];if(Array.isArray(Hr)){Hr.forEach(function(mn){zt.append(st+"[]",mn)});return}zt.append(st,nr.data[st])}),nr.file instanceof Blob?zt.append(nr.filename,nr.file,nr.file.name):zt.append(nr.filename,nr.file),lr.onerror=function(Hr){nr.onError(Hr)},lr.onload=function(){return lr.status<200||lr.status>=300?nr.onError(e(nr,lr),l(lr)):nr.onSuccess(l(lr),lr)},lr.open(nr.method,nr.action,!0),nr.withCredentials&&"withCredentials"in lr&&(lr.withCredentials=!0);var Ut=nr.headers||{};return Ut["X-Requested-With"]!==null&&lr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ut).forEach(function(st){Ut[st]!==null&&lr.setRequestHeader(st,Ut[st])}),lr.send(zt),{abort:function(){lr.abort()}}}var a=+new Date,s=0;function u(){return"rc-upload-"+a+"-"+ ++s}function h(nr,lr){return nr.indexOf(lr,nr.length-lr.length)!==-1}var p=function(nr,lr){if(nr&&lr){var zt=Array.isArray(lr)?lr:lr.split(","),Ut=nr.name||"",st=nr.type||"",Hr=st.replace(/\/.*$/,"");return zt.some(function(mn){var In=mn.trim();return In.charAt(0)==="."?h(Ut.toLowerCase(),In.toLowerCase()):/\/\*$/.test(In)?Hr===In.replace(/\/.*$/,""):st===In})}return!0};function m(nr,lr){var zt=nr.createReader(),Ut=[];function st(){zt.readEntries(function(Hr){var mn=Array.prototype.slice.apply(Hr);Ut=Ut.concat(mn);var In=!mn.length;In?lr(Ut):st()})}st()}var v=function(lr,zt,Ut){var st=function Hr(mn,In){In=In||"",mn.isFile?mn.file(function(Yn){Ut(Yn)&&(mn.fullPath&&!Yn.webkitRelativePath&&(Object.defineProperties(Yn,{webkitRelativePath:{writable:!0}}),Yn.webkitRelativePath=mn.fullPath.replace(/^\//,""),Object.defineProperties(Yn,{webkitRelativePath:{writable:!1}})),zt([Yn]))}):mn.isDirectory&&m(mn,function(Yn){Yn.forEach(function(Mi){Hr(Mi,""+In+mn.name+"/")})})};lr.forEach(function(Hr){st(Hr.webkitGetAsEntry())})},y=v,E=Object.assign||function(nr){for(var lr=1;lr<arguments.length;lr++){var zt=arguments[lr];for(var Ut in zt)Object.prototype.hasOwnProperty.call(zt,Ut)&&(nr[Ut]=zt[Ut])}return nr},T=function(){function nr(lr,zt){var Ut=[],st=!0,Hr=!1,mn=void 0;try{for(var In=lr[Symbol.iterator](),Yn;!(st=(Yn=In.next()).done)&&!(Ut.push(Yn.value),zt&&Ut.length===zt);st=!0);}catch(Mi){Hr=!0,mn=Mi}finally{try{!st&&In.return&&In.return()}finally{if(Hr)throw mn}}return Ut}return function(lr,zt){if(Array.isArray(lr))return lr;if(Symbol.iterator in Object(lr))return nr(lr,zt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b=function(){function nr(lr,zt){for(var Ut=0;Ut<zt.length;Ut++){var st=zt[Ut];st.enumerable=st.enumerable||!1,st.configurable=!0,"value"in st&&(st.writable=!0),Object.defineProperty(lr,st.key,st)}}return function(lr,zt,Ut){return zt&&nr(lr.prototype,zt),Ut&&nr(lr,Ut),lr}}();function w(nr,lr,zt){return lr in nr?Object.defineProperty(nr,lr,{value:zt,enumerable:!0,configurable:!0,writable:!0}):nr[lr]=zt,nr}function _(nr,lr){var zt={};for(var Ut in nr){if(lr.indexOf(Ut)>=0)continue;if(!Object.prototype.hasOwnProperty.call(nr,Ut))continue;zt[Ut]=nr[Ut]}return zt}function I(nr,lr){if(!(nr instanceof lr))throw new TypeError("Cannot call a class as a function")}function L(nr,lr){if(!nr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return lr&&(typeof lr=="object"||typeof lr=="function")?lr:nr}function N(nr,lr){if(typeof lr!="function"&&lr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof lr);nr.prototype=Object.create(lr&&lr.prototype,{constructor:{value:nr,enumerable:!1,writable:!0,configurable:!0}}),lr&&(Object.setPrototypeOf?Object.setPrototypeOf(nr,lr):nr.__proto__=lr)}var D=function(lr){return Object.keys(lr).reduce(function(zt,Ut){return(Ut.substr(0,5)==="data-"||Ut.substr(0,5)==="aria-"||Ut==="role")&&(zt[Ut]=lr[Ut]),zt},{})},R=function(nr){N(lr,nr);function lr(){var zt,Ut,st,Hr;I(this,lr);for(var mn=arguments.length,In=Array(mn),Yn=0;Yn<mn;Yn++)In[Yn]=arguments[Yn];return Hr=(Ut=(st=L(this,(zt=lr.__proto__||Object.getPrototypeOf(lr)).call.apply(zt,[this].concat(In))),st),st.state={uid:u()},st.reqs={},st.onChange=function(Mi){var wn=Mi.target.files;st.uploadFiles(wn),st.reset()},st.onClick=function(Mi){var wn=st.fileInput;if(!wn)return;var Rn=st.props,kt=Rn.children,vt=Rn.onClick;kt&&kt.type==="button"&&(wn.parentNode.focus(),wn.parentNode.querySelector("button").blur()),wn.click(),vt&&vt(Mi)},st.onKeyDown=function(Mi){Mi.key==="Enter"&&st.onClick()},st.onFileDrop=function(Mi){var wn=st.props.multiple;if(Mi.preventDefault(),Mi.type==="dragover")return;if(st.props.directory)y(Array.prototype.slice.call(Mi.dataTransfer.items),st.uploadFiles,function(kt){return p(kt,st.props.accept)});else{var Rn=Array.prototype.slice.call(Mi.dataTransfer.files).filter(function(kt){return p(kt,st.props.accept)});wn===!1&&(Rn=Rn.slice(0,1)),st.uploadFiles(Rn)}},st.uploadFiles=function(Mi){var wn=Array.prototype.slice.call(Mi);wn.map(function(Rn){return Rn.uid=u(),Rn}).forEach(function(Rn){st.upload(Rn,wn)})},st.saveFileInput=function(Mi){st.fileInput=Mi},Ut),L(st,Hr)}return b(lr,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(Ut,st){var Hr=this,mn=this.props;if(!mn.beforeUpload)return setTimeout(function(){return Hr.post(Ut)},0);var In=mn.beforeUpload(Ut,st);In&&In.then?In.then(function(Yn){var Mi=Object.prototype.toString.call(Yn);return Mi==="[object File]"||Mi==="[object Blob]"?Hr.post(Yn):Hr.post(Ut)}).catch(function(Yn){console.log(Yn)}):In!==!1&&setTimeout(function(){return Hr.post(Ut)},0);return}},{key:"post",value:function(Ut){var st=this;if(!this._isMounted)return;var Hr=this.props,mn=Hr.onStart,In=Hr.onProgress,Yn=Hr.transformFile,Mi=Yn===void 0?function(wn){return wn}:Yn;new Promise(function(wn){var Rn=Hr.action;return typeof Rn=="function"&&(Rn=Rn(Ut)),wn(Rn)}).then(function(wn){var Rn=Ut.uid,kt=Hr.customRequest||t,vt=Promise.resolve(Mi(Ut)).then(function(Re){var Ke=Hr.data;return typeof Ke=="function"&&(Ke=Ke(Re)),Promise.all([Re,Ke])}).catch(function(Re){console.error(Re)});vt.then(function(Re){var Ke=T(Re,2),Pe=Ke[0],nt=Ke[1],yt={action:wn,filename:Hr.name,data:nt,file:Pe,headers:Hr.headers,withCredentials:Hr.withCredentials,method:Hr.method||"post",onProgress:In?function(Dt){In(Dt,Ut)}:null,onSuccess:function(bt,It){delete st.reqs[Rn],Hr.onSuccess(bt,Ut,It)},onError:function(bt,It){delete st.reqs[Rn],Hr.onError(bt,It,Ut)}};mn(Ut),st.reqs[Rn]=kt(yt)})})}},{key:"reset",value:function(){this.setState({uid:u()})}},{key:"abort",value:function(Ut){var st=this.reqs;if(Ut){var Hr=Ut;Ut&&Ut.uid&&(Hr=Ut.uid),st[Hr]&&st[Hr].abort&&st[Hr].abort(),delete st[Hr]}else Object.keys(st).forEach(function(mn){st[mn]&&st[mn].abort&&st[mn].abort(),delete st[mn]})}},{key:"render",value:function(){var Ut,st=this.props,Hr=st.component,mn=st.prefixCls,In=st.className,Yn=st.disabled,Mi=st.id,wn=st.style,Rn=st.multiple,kt=st.accept,vt=st.children,Re=st.directory,Ke=st.openFileDialogOnClick,Pe=st.onMouseEnter,nt=st.onMouseLeave,yt=_(st,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),Dt=n()((Ut={},w(Ut,mn,!0),w(Ut,mn+"-disabled",Yn),w(Ut,In,In),Ut)),bt=Yn?{}:{onClick:Ke?this.onClick:function(){},onKeyDown:Ke?this.onKeyDown:function(){},onMouseEnter:Pe,onMouseLeave:nt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return r.a.createElement(Hr,E({},bt,{className:Dt,role:"button",style:wn}),r.a.createElement("input",E({},D(yt),{id:Mi,type:"file",ref:this.saveFileInput,onClick:function(gr){return gr.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:kt,directory:Re?"directory":null,webkitdirectory:Re?"webkitdirectory":null,multiple:Rn,onChange:this.onChange})),vt)}}]),lr}(o.Component),k=R,M=Object.assign||function(nr){for(var lr=1;lr<arguments.length;lr++){var zt=arguments[lr];for(var Ut in zt)Object.prototype.hasOwnProperty.call(zt,Ut)&&(nr[Ut]=zt[Ut])}return nr},U=function(){function nr(lr,zt){for(var Ut=0;Ut<zt.length;Ut++){var st=zt[Ut];st.enumerable=st.enumerable||!1,st.configurable=!0,"value"in st&&(st.writable=!0),Object.defineProperty(lr,st.key,st)}}return function(lr,zt,Ut){return zt&&nr(lr.prototype,zt),Ut&&nr(lr,Ut),lr}}();function B(nr,lr){if(!(nr instanceof lr))throw new TypeError("Cannot call a class as a function")}function j(nr,lr){if(!nr)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return lr&&(typeof lr=="object"||typeof lr=="function")?lr:nr}function W(nr,lr){if(typeof lr!="function"&&lr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof lr);nr.prototype=Object.create(lr&&lr.prototype,{constructor:{value:nr,enumerable:!1,writable:!0,configurable:!0}}),lr&&(Object.setPrototypeOf?Object.setPrototypeOf(nr,lr):nr.__proto__=lr)}function V(){}var z=function(nr){W(lr,nr);function lr(){var zt,Ut,st,Hr;B(this,lr);for(var mn=arguments.length,In=Array(mn),Yn=0;Yn<mn;Yn++)In[Yn]=arguments[Yn];return Hr=(Ut=(st=j(this,(zt=lr.__proto__||Object.getPrototypeOf(lr)).call.apply(zt,[this].concat(In))),st),st.saveUploader=function(Mi){st.uploader=Mi},Ut),j(st,Hr)}return U(lr,[{key:"abort",value:function(Ut){this.uploader.abort(Ut)}},{key:"render",value:function(){return r.a.createElement(k,M({},this.props,{ref:this.saveUploader}))}}]),lr}(o.Component);z.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:V,onError:V,onSuccess:V,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var J=z,Z=J,de=function(nr,lr){var zt={};for(var Ut in nr)Object.prototype.hasOwnProperty.call(nr,Ut)&&lr.indexOf(Ut)<0&&(zt[Ut]=nr[Ut]);if(nr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Ut=Object.getOwnPropertySymbols(nr);st<Ut.length;st++)lr.indexOf(Ut[st])<0&&Object.prototype.propertyIsEnumerable.call(nr,Ut[st])&&(zt[Ut[st]]=nr[Ut[st]]);return zt},ie=function(lr,zt){var Ut=lr.style,st=lr.height,Hr=de(lr,["style","height"]);return o.createElement(ir,g()({ref:zt},Hr,{type:"drag",style:g()(g()({},Ut),{height:st})}))},ve=o.forwardRef(ie);ve.displayName="Dragger";var xe=ve,_e=d("UmKh"),Ue=d("gZBC"),fe=d.n(Ue),ke=d("+d4F"),se=d.n(ke),te=d("XAae"),Ve=d.n(te),ae=d("6xvX"),Q=d.n(ae),G=d("qPY4"),Y=d.n(G),me=d("QB+1"),ue=d.n(me),Ce=d("Qs3X"),Ie=d.n(Ce),ce=d("0n0R");function Ae(){return!0}function Te(nr){return g()(g()({},nr),{lastModified:nr.lastModified,lastModifiedDate:nr.lastModifiedDate,name:nr.name,size:nr.size,type:nr.type,uid:nr.uid,percent:0,originFileObj:nr})}function Ge(nr,lr){var zt=nr.uid!==void 0?"uid":"name";return lr.filter(function(Ut){return Ut[zt]===nr[zt]})[0]}function gt(nr,lr){var zt=nr.uid!==void 0?"uid":"name",Ut=lr.filter(function(st){return st[zt]!==nr[zt]});return Ut.length===lr.length?null:Ut}var qe=function(){var lr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",zt=lr.split("/"),Ut=zt[zt.length-1],st=Ut.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(st)||[""])[0]},Le=function(lr){return lr.indexOf("image/")===0},Ot=function(lr){if(lr.type&&!lr.thumbUrl)return Le(lr.type);var zt=lr.thumbUrl||lr.url,Ut=qe(zt);return/^data:image\//.test(zt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(Ut)?!0:/^data:/.test(zt)?!1:!Ut},$e=200;function xt(nr){return new Promise(function(lr){if(!nr.type||!Le(nr.type)){lr("");return}var zt=document.createElement("canvas");zt.width=$e,zt.height=$e,zt.style.cssText="position: fixed; left: 0; top: 0; width: ".concat($e,"px; height: ").concat($e,"px; z-index: 9999; display: none;"),document.body.appendChild(zt);var Ut=zt.getContext("2d"),st=new Image;st.onload=function(){var Hr=st.width,mn=st.height,In=$e,Yn=$e,Mi=0,wn=0;Hr<mn?(Yn=mn*($e/Hr),wn=-(Yn-In)/2):(In=Hr*($e/mn),Mi=-(In-Yn)/2),Ut.drawImage(st,Mi,wn,In,Yn);var Rn=zt.toDataURL();document.body.removeChild(zt),lr(Rn)},st.src=window.URL.createObjectURL(nr)})}var Ht=d("3S7+"),tr=d("CFYs"),Mt=d("H84U"),Tt=d("2/Rp"),Xe=d("hkKa"),oe=function(lr,zt){var Ut,st=lr.listType,Hr=lr.previewFile,mn=lr.onPreview,In=lr.onDownload,Yn=lr.onRemove,Mi=lr.locale,wn=lr.iconRender,Rn=lr.isImageUrl,kt=lr.prefixCls,vt=lr.items,Re=vt===void 0?[]:vt,Ke=lr.showPreviewIcon,Pe=lr.showRemoveIcon,nt=lr.showDownloadIcon,yt=lr.removeIcon,Dt=lr.downloadIcon,bt=lr.progress,It=Object(Xe.a)();o.useEffect(function(){if(st!=="picture"&&st!=="picture-card")return;(Re||[]).forEach(function(rr){if(typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(rr.originFileObj instanceof File||rr.originFileObj instanceof Blob)||rr.thumbUrl!==void 0)return;rr.thumbUrl="",Hr&&Hr(rr.originFileObj).then(function(pr){rr.thumbUrl=pr||"",It()})})},[st,Re,Hr]);var gr=function(pr,tn){return mn?(tn.preventDefault(),mn(pr)):void 0},kr=function(pr){typeof In=="function"?In(pr):pr.url&&window.open(pr.url)},wt=function(pr){Yn&&Yn(pr)},rt=function(pr){if(wn)return wn(pr,st);var tn=pr.status==="uploading",hn=Rn&&Rn(pr)?o.createElement(Ve.a,null):o.createElement(Q.a,null),Mn=tn?o.createElement(fe.a,null):o.createElement(se.a,null);return st==="picture"?Mn=tn?o.createElement(fe.a,null):hn:st==="picture-card"&&(Mn=tn?Mi.uploading:hn),Mn},tt=function(pr,tn,hn,Mn){var Xn={type:"text",size:"small",title:Mn,onClick:function(xi){tn(),Object(ce.b)(pr)&&pr.props.onClick&&pr.props.onClick(xi)},className:"".concat(hn,"-list-item-card-actions-btn")};if(Object(ce.b)(pr)){var si=Object(ce.a)(pr,g()(g()({},pr.props),{onClick:function(){}}));return o.createElement(Tt.a,g()({},Xn,{icon:si}))}return o.createElement(Tt.a,Xn,o.createElement("span",null,pr))};o.useImperativeHandle(zt,function(){return{handlePreview:gr,handleDownload:kr}});var Rt=o.useContext(Mt.b),Ft=Rt.getPrefixCls,At=Rt.direction,Wt=Ft("upload",kt),ot=Re.map(function(rr){var pr,tn,hn,Mn=rt(rr),Xn=o.createElement("div",{className:"".concat(Wt,"-text-icon")},Mn);if(st==="picture"||st==="picture-card")if(rr.status==="uploading"||!rr.thumbUrl&&!rr.url){var si,vi=n()((si={},x()(si,"".concat(Wt,"-list-item-thumbnail"),!0),x()(si,"".concat(Wt,"-list-item-file"),rr.status!=="uploading"),si));Xn=o.createElement("div",{className:vi},Mn)}else{var xi,_i=Rn&&Rn(rr)?o.createElement("img",{src:rr.thumbUrl||rr.url,alt:rr.name,className:"".concat(Wt,"-list-item-image")}):Mn,Qe=n()((xi={},x()(xi,"".concat(Wt,"-list-item-thumbnail"),!0),x()(xi,"".concat(Wt,"-list-item-file"),Rn&&!Rn(rr)),xi));Xn=o.createElement("a",{className:Qe,onClick:function(an){return gr(rr,an)},href:rr.url||rr.thumbUrl,target:"_blank",rel:"noopener noreferrer"},_i)}if(rr.status==="uploading"){var we="percent"in rr?o.createElement(tr.a,g()({},bt,{type:"line",percent:rr.percent})):null;hn=o.createElement("div",{className:"".concat(Wt,"-list-item-progress"),key:"progress"},we)}var Ne=n()((pr={},x()(pr,"".concat(Wt,"-list-item"),!0),x()(pr,"".concat(Wt,"-list-item-").concat(rr.status),!0),x()(pr,"".concat(Wt,"-list-item-list-type-").concat(st),!0),pr)),Fe=typeof rr.linkProps=="string"?JSON.parse(rr.linkProps):rr.linkProps,Ye=Pe?tt(yt||o.createElement(ue.a,null),function(){return wt(rr)},Wt,Mi.removeFile):null,We=nt&&rr.status==="done"?tt(Dt||o.createElement(Ie.a,null),function(){return kr(rr)},Wt,Mi.downloadFile):null,Ze=st!=="picture-card"&&o.createElement("span",{key:"download-delete",className:"".concat(Wt,"-list-item-card-actions ").concat(st==="picture"?"picture":"")},We,Ye),mt=n()((tn={},x()(tn,"".concat(Wt,"-list-item-name"),!0),x()(tn,"".concat(Wt,"-list-item-name-icon-count-").concat([We,Ye].filter(function(ln){return ln}).length),!0),tn)),it=rr.url?[o.createElement("a",g()({key:"view",target:"_blank",rel:"noopener noreferrer",className:mt,title:rr.name},Fe,{href:rr.url,onClick:function(an){return gr(rr,an)}}),rr.name),Ze]:[o.createElement("span",{key:"view",className:mt,onClick:function(an){return gr(rr,an)},title:rr.name},rr.name),Ze],Jt={pointerEvents:"none",opacity:.5},Dr=Ke?o.createElement("a",{href:rr.url||rr.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:rr.url||rr.thumbUrl?void 0:Jt,onClick:function(an){return gr(rr,an)},title:Mi.previewFile},o.createElement(Y.a,null)):null,Sr=st==="picture-card"&&rr.status!=="uploading"&&o.createElement("span",{className:"".concat(Wt,"-list-item-actions")},Dr,rr.status==="done"&&We,Ye),Br;rr.response&&typeof rr.response=="string"?Br=rr.response:Br=rr.error&&rr.error.statusText||Mi.uploadError;var $t=o.createElement("span",null,Xn,it),gn=o.createElement("div",{className:Ne},o.createElement("div",{className:"".concat(Wt,"-list-item-info")},$t),Sr,o.createElement(_e.a,{transitionName:"fade",component:""},hn)),or=n()(x()({},"".concat(Wt,"-list-picture-card-container"),st==="picture-card"));return o.createElement("div",{key:rr.uid,className:or},rr.status==="error"?o.createElement(Ht.a,{title:Br,getPopupContainer:function(an){return an.parentNode}},gn):o.createElement("span",null,gn))}),Bt=n()((Ut={},x()(Ut,"".concat(Wt,"-list"),!0),x()(Ut,"".concat(Wt,"-list-").concat(st),!0),x()(Ut,"".concat(Wt,"-list-rtl"),At==="rtl"),Ut)),Ar=st==="picture-card"?"animate-inline":"animate";return o.createElement(_e.a,{transitionName:"".concat(Wt,"-").concat(Ar),component:"div",className:Bt},ot)},X=o.forwardRef(oe);X.displayName="UploadList",X.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:xt,isImageUrl:Ot};var Be=X,Ee=d("YMnH"),ee=d("ZvpZ"),lt=d("uaoM"),Ct=d("sPtV"),dt=function(lr,zt){var Ut,st=lr.fileList,Hr=lr.defaultFileList,mn=lr.onRemove,In=lr.showUploadList,Yn=lr.listType,Mi=lr.onPreview,wn=lr.onDownload,Rn=lr.previewFile,kt=lr.disabled,vt=lr.locale,Re=lr.iconRender,Ke=lr.isImageUrl,Pe=lr.progress,nt=lr.prefixCls,yt=lr.className,Dt=lr.type,bt=lr.children,It=lr.style,gr=Object(Ct.a)(st||Hr||[]),kr=c()(gr,2),wt=kr[0],rt=kr[1],tt=o.useState("drop"),Rt=c()(tt,2),Ft=Rt[0],At=Rt[1],Wt=o.useRef();o.useEffect(function(){rt(st||Hr||[]),Object(lt.a)("fileList"in lr||!("value"in lr),"Upload","`value` is not a valid prop, do you mean `fileList`?")},[]),o.useEffect(function(){"fileList"in lr&&rt(st||[])},[st]);var ot=function(it){"fileList"in lr||rt(it.fileList);var Jt=lr.onChange;Jt&&Jt(g()(g()({},it),{fileList:A()(it.fileList)}))},Bt=function(it){var Jt=Te(it);Jt.status="uploading";var Dr=wt().concat(),Sr=Dr.findIndex(function(Br){var $t=Br.uid;return $t===Jt.uid});Sr===-1?Dr.push(Jt):Dr[Sr]=Jt,ot({file:Jt,fileList:Dr})},Ar=function(it,Jt,Dr){try{typeof it=="string"&&(it=JSON.parse(it))}catch(Br){}var Sr=Ge(Jt,wt());if(!Sr)return;Sr.status="done",Sr.response=it,Sr.xhr=Dr,ot({file:g()({},Sr),fileList:wt().concat()})},rr=function(it,Jt){var Dr=Ge(Jt,wt());if(!Dr)return;Dr.percent=it.percent,ot({event:it,file:g()({},Dr),fileList:wt().concat()})},pr=function(it,Jt,Dr){var Sr=Ge(Dr,wt());if(!Sr)return;Sr.error=it,Sr.response=Jt,Sr.status="error",ot({file:g()({},Sr),fileList:wt().concat()})},tn=function(it){Promise.resolve(typeof mn=="function"?mn(it):mn).then(function(Jt){if(Jt===!1)return;var Dr=gt(it,wt());Dr&&(it.status="removed",Wt.current&&Wt.current.abort(it),ot({file:it,fileList:Dr}))})},hn=function(it){At(it.type)},Mn=function(it,Jt){var Dr=lr.beforeUpload;if(!Dr)return!0;var Sr=Dr(it,Jt);if(Sr===!1){var Br=[];return wt().concat(Jt.map(Te)).forEach(function($t){Br.every(function(gn){return gn.uid!==$t.uid})&&Br.push($t)}),ot({file:it,fileList:Br}),!1}return Sr&&Sr.then?Sr:!0},Xn=Object(Xe.a)();o.useImperativeHandle(zt,function(){return{onStart:Bt,onSuccess:Ar,onProgress:rr,onError:pr,fileList:wt(),upload:Wt.current,forceUpdate:Xn}});var si=function(it){var Jt=In.showRemoveIcon,Dr=In.showPreviewIcon,Sr=In.showDownloadIcon,Br=In.removeIcon,$t=In.downloadIcon;return o.createElement(Be,{listType:Yn,items:wt(),previewFile:Rn,onPreview:Mi,onDownload:wn,onRemove:tn,showRemoveIcon:!kt&&Jt,showPreviewIcon:Dr,showDownloadIcon:Sr,removeIcon:Br,downloadIcon:$t,iconRender:Re,locale:g()(g()({},it),vt),isImageUrl:Ke,progress:Pe})},vi=o.useContext(Mt.b),xi=vi.getPrefixCls,_i=vi.direction,Qe=xi("upload",nt),we=g()(g()({onStart:Bt,onError:pr,onProgress:rr,onSuccess:Ar},lr),{prefixCls:Qe,beforeUpload:Mn});delete we.className,delete we.style,(!bt||kt)&&delete we.id;var Ne=In?o.createElement(Ee.a,{componentName:"Upload",defaultLocale:ee.a.Upload},si):null;if(Dt==="drag"){var Fe,Ye=n()(Qe,(Fe={},x()(Fe,"".concat(Qe,"-drag"),!0),x()(Fe,"".concat(Qe,"-drag-uploading"),wt().some(function(mt){return mt.status==="uploading"})),x()(Fe,"".concat(Qe,"-drag-hover"),Ft==="dragover"),x()(Fe,"".concat(Qe,"-disabled"),kt),x()(Fe,"".concat(Qe,"-rtl"),_i==="rtl"),Fe),yt);return o.createElement("span",null,o.createElement("div",{className:Ye,onDrop:hn,onDragOver:hn,onDragLeave:hn,style:It},o.createElement(Z,g()({},we,{ref:Wt,className:"".concat(Qe,"-btn")}),o.createElement("div",{className:"".concat(Qe,"-drag-container")},bt))),Ne)}var We=n()(Qe,(Ut={},x()(Ut,"".concat(Qe,"-select"),!0),x()(Ut,"".concat(Qe,"-select-").concat(Yn),!0),x()(Ut,"".concat(Qe,"-disabled"),kt),x()(Ut,"".concat(Qe,"-rtl"),_i==="rtl"),Ut)),Ze=o.createElement("div",{className:We,style:bt?void 0:{display:"none"}},o.createElement(Z,g()({},we,{ref:Wt})));return Yn==="picture-card"?o.createElement("span",{className:n()(yt,"".concat(Qe,"-picture-card-wrapper"))},Ne,Ze):o.createElement("span",{className:yt},Ze,Ne)},_t=o.forwardRef(dt);_t.Dragger=xe,_t.displayName="Upload",_t.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:Ae,showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var ir=_t;ir.Dragger=xe;var $r=F.a=ir},"98bh":function(H,F,d){var O=d("ProS"),x=d("5GtS"),C=d("bYtY"),A=d("4NO4"),S=d("OELB"),g=S.getPercentWithPrecision,f=d("cCMj"),c=d("KxfA"),o=c.retrieveRawAttr,r=d("D5nY"),i=r.makeSeriesEncodeForNameBased,n=d("xKMd"),e=O.extendSeriesModel({type:"series.pie",init:function(t){e.superApply(this,"init",arguments),this.legendVisualProvider=new n(C.bind(this.getData,this),C.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(t)},mergeOption:function(t){e.superCall(this,"mergeOption",t),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(t,a){return x(this,{coordDimensions:["value"],encodeDefaulter:C.curry(i,this)})},_createSelectableList:function(){for(var t=this.getRawData(),a=t.mapDimension("value"),s=[],u=0,h=t.count();u<h;u++)s.push({name:t.getName(u),value:t.get(a,u),selected:o(t,u,"selected")});return s},getDataParams:function(t){var a=this.getData(),s=e.superCall(this,"getDataParams",t),u=[];return a.each(a.mapDimension("value"),function(h){u.push(h)}),s.percent=g(u,t,a.hostModel.get("percentPrecision")),s.$vars.push("percent"),s},_defaultLabelLine:function(t){A.defaultEmphasis(t,"labelLine",["show"]);var a=t.labelLine,s=t.emphasis.labelLine;a.show=a.show&&t.label.show,s.show=s.show&&t.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"}});C.mixin(e,f);var l=e;H.exports=l},"9H2F":function(H,F,d){var O=d("bYtY"),x=O.assert,C=O.isArray,A=d("Tghj"),S=A.__DEV__;function g(n){return new f(n)}function f(n){n=n||{},this._reset=n.reset,this._plan=n.plan,this._count=n.count,this._onDirty=n.onDirty,this._dirty=!0,this.context}var c=f.prototype;c.perform=function(n){var e=this._upstream,l=n&&n.skip;if(this._dirty&&e){var t=this.context;t.data=t.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!l&&(a=this._plan(this.context));var s=m(this._modBy),u=this._modDataCount||0,h=m(n&&n.modBy),p=n&&n.modDataCount||0;(s!==h||u!==p)&&(a="reset");function m(I){return!(I>=1)&&(I=1),I}var v;(this._dirty||a==="reset")&&(this._dirty=!1,v=i(this,l)),this._modBy=h,this._modDataCount=p;var y=n&&n.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):Infinity,this._progress){var E=this._dueIndex,T=Math.min(y!=null?this._dueIndex+y:Infinity,this._dueEnd);if(!l&&(v||E<T)){var b=this._progress;if(C(b))for(var w=0;w<b.length;w++)r(this,b[w],E,T,h,p);else r(this,b,E,T,h,p)}this._dueIndex=T;var _=this._settedOutputEnd!=null?this._settedOutputEnd:T;this._outputDueEnd=_}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var o=function(){var n,e,l,t,a,s={reset:function(p,m,v,y){e=p,n=m,l=v,t=y,a=Math.ceil(t/l),s.next=l>1&&t>0?h:u}};return s;function u(){return e<n?e++:null}function h(){var p=e%a*l+Math.ceil(e/a),m=e>=n?null:p<t?p:e;return e++,m}}();c.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)};function r(n,e,l,t,a,s){o.reset(l,t,a,s),n._callingProgress=e,n._callingProgress({start:l,end:t,count:t-l,next:o.next},n.context)}function i(n,e){n._dueIndex=n._outputDueEnd=n._dueEnd=0,n._settedOutputEnd=null;var l,t;!e&&n._reset&&(l=n._reset(n.context),l&&l.progress&&(t=l.forceFirstProgress,l=l.progress),C(l)&&!l.length&&(l=null)),n._progress=l,n._modBy=n._modDataCount=null;var a=n._downstream;return a&&a.dirty(),t}c.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},c.pipe=function(n){(this._downstream!==n||this._dirty)&&(this._downstream=n,n._upstream=this,n.dirty())},c.dispose=function(){if(this._disposed)return;this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0},c.getUpstream=function(){return this._upstream},c.getDownstream=function(){return this._downstream},c.setOutputEnd=function(n){this._outputDueEnd=this._settedOutputEnd=n},F.createTask=g},"9KIM":function(H,F,d){var O=d("mFDi"),x=d("xSat"),C=x.onIrrelevantElement,A=d("IwbS");function S(o){return o=c(o),function(r,i){return A.clipPointsByRect(r,o)}}function g(o,r){return o=c(o),function(i){var n=r!=null?r:i,e=n?o.width:o.height,l=n?o.x:o.y;return[l,l+(e||0)]}}function f(o,r,i){return o=c(o),function(n,e,l){return o.contain(e[0],e[1])&&!C(n,r,i)}}function c(o){return O.create(o)}F.makeRectPanelClipPath=S,F.makeLinearBrushOtherExtent=g,F.makeRectIsTargetByCursor=f},"9OqN":function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.mode.CTR=function(){var x=O.lib.BlockCipherMode.extend(),C=x.Encryptor=x.extend({processBlock:function(S,g){var f=this._cipher,c=f.blockSize,o=this._iv,r=this._counter;o&&(r=this._counter=o.slice(0),this._iv=void 0);var i=r.slice(0);f.encryptBlock(i,0),r[c-1]=r[c-1]+1|0;for(var n=0;n<c;n++)S[g+n]^=i[n]}});return x.Decryptor=C,x}(),O.mode.CTR})},"9ama":function(H,F,d){},"9eas":function(H,F,d){d("HM/N"),d("tBnm")},"9hCq":function(H,F,d){var O=d("IwbS"),x=d("+TT/"),C=d("bYtY"),A=d("VaxA"),S=A.wrapTreePathInfo,g=8,f=8,c=5;function o(e){this.group=new O.Group,e.add(this.group)}o.prototype={constructor:o,render:function(e,l,t,a){var s=e.getModel("breadcrumb"),u=this.group;if(u.removeAll(),!s.get("show")||!t)return;var h=s.getModel("itemStyle"),p=h.getModel("textStyle"),m={pos:{left:s.get("left"),right:s.get("right"),top:s.get("top"),bottom:s.get("bottom")},box:{width:l.getWidth(),height:l.getHeight()},emptyItemWidth:s.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(t,m,p),this._renderContent(e,m,h,p,a),x.positionElement(u,m.pos,m.box)},_prepare:function(e,l,t){for(var a=e;a;a=a.parentNode){var s=a.getModel().get("name"),u=t.getTextRect(s),h=Math.max(u.width+g*2,l.emptyItemWidth);l.totalWidth+=h+f,l.renderList.push({node:a,text:s,width:h})}},_renderContent:function(e,l,t,a,s){for(var u=0,h=l.emptyItemWidth,p=e.get("breadcrumb.height"),m=x.getAvailableSize(l.pos,l.box),v=l.totalWidth,y=l.renderList,E=y.length-1;E>=0;E--){var T=y[E],b=T.node,w=T.width,_=T.text;v>m.width&&(v-=w-h,w=h,_=null);var I=new O.Polygon({shape:{points:r(u,0,w,p,E===y.length-1,E===0)},style:C.defaults(t.getItemStyle(),{lineJoin:"bevel",text:_,textFill:a.getTextColor(),textFont:a.getFont()}),z:10,onclick:C.curry(s,b)});this.group.add(I),i(I,e,b),u+=w+f}},remove:function(){this.group.removeAll()}};function r(e,l,t,a,s,u){var h=[[s?e:e-c,l],[e+t,l],[e+t,l+a],[s?e:e-c,l+a]];return!u&&h.splice(2,0,[e+t+c,l+a/2]),!s&&h.push([e,l+a/2]),h}function i(e,l,t){e.eventData={componentType:"series",componentSubType:"treemap",componentIndex:l.componentIndex,seriesIndex:l.componentIndex,seriesName:l.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&S(t,l)}}var n=o;H.exports=n},"9u0u":function(H,F,d){var O=d("bYtY");function x(A,S){var g={};return O.each(A,function(f){f.each(f.mapDimension("value"),function(c,o){var r="ec-"+f.getName(o);g[r]=g[r]||[],isNaN(c)||g[r].push(c)})}),A[0].map(A[0].mapDimension("value"),function(f,c){for(var o="ec-"+A[0].getName(c),r=0,i=Infinity,n=-Infinity,e=g[o].length,l=0;l<e;l++)i=Math.min(i,g[o][l]),n=Math.max(n,g[o][l]),r+=g[o][l];var t;return S==="min"?t=i:S==="max"?t=n:S==="average"?t=r/e:t=r,e===0?NaN:t})}function C(A){var S={};A.eachSeriesByType("map",function(g){var f=g.getHostGeoModel(),c=f?"o"+f.id:"i"+g.getMapType();(S[c]=S[c]||[]).push(g)}),O.each(S,function(g,f){for(var c=x(O.map(g,function(r){return r.getData()}),g[0].get("mapValueCalculation")),o=0;o<g.length;o++)g[o].originalData=g[o].getData();for(var o=0;o<g.length;o++)g[o].seriesGroup=g,g[o].needsDrawMap=o===0&&!g[o].getHostGeoModel(),g[o].setData(c.cloneShallow()),g[o].mainSeries=g[0]})}H.exports=C},"9wZj":function(H,F,d){var O=d("IwbS"),x=d("FBjb"),C=d("bYtY"),A=C.isObject;function S(i){this.group=new O.Group,this._symbolCtor=i||x}var g=S.prototype;function f(i,n,e,l){return n&&!isNaN(n[0])&&!isNaN(n[1])&&!(l.isIgnore&&l.isIgnore(e))&&!(l.clipShape&&!l.clipShape.contain(n[0],n[1]))&&i.getItemVisual(e,"symbol")!=="none"}g.updateData=function(i,n){n=c(n);var e=this.group,l=i.hostModel,t=this._data,a=this._symbolCtor,s=o(i);t||e.removeAll(),i.diff(t).add(function(u){var h=i.getItemLayout(u);if(f(i,h,u,n)){var p=new a(i,u,s);p.attr("position",h),i.setItemGraphicEl(u,p),e.add(p)}}).update(function(u,h){var p=t.getItemGraphicEl(h),m=i.getItemLayout(u);if(!f(i,m,u,n)){e.remove(p);return}p?(p.updateData(i,u,s),O.updateProps(p,{position:m},l)):(p=new a(i,u),p.attr("position",m)),e.add(p),i.setItemGraphicEl(u,p)}).remove(function(u){var h=t.getItemGraphicEl(u);h&&h.fadeOut(function(){e.remove(h)})}).execute(),this._data=i},g.isPersistent=function(){return!0},g.updateLayout=function(){var i=this._data;i&&i.eachItemGraphicEl(function(n,e){var l=i.getItemLayout(e);n.attr("position",l)})},g.incrementalPrepareUpdate=function(i){this._seriesScope=o(i),this._data=null,this.group.removeAll()},g.incrementalUpdate=function(i,n,e){e=c(e);function l(u){u.isGroup||(u.incremental=u.useHoverLayer=!0)}for(var t=i.start;t<i.end;t++){var a=n.getItemLayout(t);if(f(n,a,t,e)){var s=new this._symbolCtor(n,t,this._seriesScope);s.traverse(l),s.attr("position",a),this.group.add(s),n.setItemGraphicEl(t,s)}}};function c(i){return i!=null&&!A(i)&&(i={isIgnore:i}),i||{}}g.remove=function(i){var n=this.group,e=this._data;e&&i?e.eachItemGraphicEl(function(l){l.fadeOut(function(){n.remove(l)})}):n.removeAll()};function o(i){var n=i.hostModel;return{itemStyle:n.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:n.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:n.get("symbolRotate"),symbolOffset:n.get("symbolOffset"),hoverAnimation:n.get("hoverAnimation"),labelModel:n.getModel("label"),hoverLabelModel:n.getModel("emphasis.label"),cursorStyle:n.get("cursor")}}var r=S;H.exports=r},"9yH6":function(H,F,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),S=d("q1tI"),g=d("x1Ya"),f=d("TSYQ"),c=d.n(f),o=d("H84U"),r=S.createContext(null),i=r.Provider,n=r,e=d("ID/q"),l=d("uaoM"),t=function(L,N){var D={};for(var R in L)Object.prototype.hasOwnProperty.call(L,R)&&N.indexOf(R)<0&&(D[R]=L[R]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,R=Object.getOwnPropertySymbols(L);k<R.length;k++)N.indexOf(R[k])<0&&Object.prototype.propertyIsEnumerable.call(L,R[k])&&(D[R[k]]=L[R[k]]);return D},a=function(N,D){var R,k=S.useContext(n),M=S.useContext(o.b),U=M.getPrefixCls,B=M.direction,j=S.useRef(),W=Object(e.a)(D,j);S.useEffect(function(){Object(l.a)(!("optionType"in N),"Radio","`optionType` is only support in Radio.Group.")},[]);var V=function(fe){N.onChange&&N.onChange(fe),(k==null?void 0:k.onChange)&&k.onChange(fe)},z=N.prefixCls,J=N.className,Z=N.children,de=N.style,ie=t(N,["prefixCls","className","children","style"]),ve=U("radio",z),xe=A()({},ie);k&&(xe.name=k.name,xe.onChange=V,xe.checked=N.value===k.value,xe.disabled=N.disabled||k.disabled);var _e=c()(J,(R={},x()(R,"".concat(ve,"-wrapper"),!0),x()(R,"".concat(ve,"-wrapper-checked"),xe.checked),x()(R,"".concat(ve,"-wrapper-disabled"),xe.disabled),x()(R,"".concat(ve,"-wrapper-rtl"),B==="rtl"),R));return S.createElement("label",{className:_e,style:de,onMouseEnter:N.onMouseEnter,onMouseLeave:N.onMouseLeave},S.createElement(g.a,A()({},xe,{prefixCls:ve,ref:W})),Z!==void 0?S.createElement("span",null,Z):null)},s=S.forwardRef(a);s.displayName="Radio",s.defaultProps={type:"radio"};var u=s,h=d("J4zp"),p=d.n(h),m=d("6cGi"),v=d("3Nzz"),y=S.forwardRef(function(L,N){var D=S.useContext(o.b),R=D.getPrefixCls,k=D.direction,M=S.useContext(v.b),U=Object(m.a)(L.defaultValue,{value:L.value}),B=p()(U,2),j=B[0],W=B[1],V=function(Z){var de=j,ie=Z.target.value;"value"in L||W(ie);var ve=L.onChange;ve&&ie!==de&&ve(Z)},z=function(){var Z,de=L.prefixCls,ie=L.className,ve=ie===void 0?"":ie,xe=L.options,_e=L.optionType,Ue=L.buttonStyle,fe=L.disabled,ke=L.children,se=L.size,te=L.style,Ve=L.id,ae=L.onMouseEnter,Q=L.onMouseLeave,G=R("radio",de),Y="".concat(G,"-group"),me=ke;if(xe&&xe.length>0){var ue=_e==="button"?"".concat(G,"-button"):G;me=xe.map(function(ce){return typeof ce=="string"?S.createElement(u,{ref:N,key:ce,prefixCls:ue,disabled:fe,value:ce,checked:j===ce},ce):S.createElement(u,{ref:N,key:"radio-group-value-options-".concat(ce.value),prefixCls:ue,disabled:ce.disabled||fe,value:ce.value,checked:j===ce.value,style:ce.style},ce.label)})}var Ce=se||M,Ie=c()(Y,"".concat(Y,"-").concat(Ue),(Z={},x()(Z,"".concat(Y,"-").concat(Ce),Ce),x()(Z,"".concat(Y,"-rtl"),k==="rtl"),Z),ve);return S.createElement("div",{className:Ie,style:te,onMouseEnter:ae,onMouseLeave:Q,id:Ve},me)};return S.createElement(i,{value:{onChange:V,value:j,disabled:L.disabled,name:L.name}},z())});y.defaultProps={buttonStyle:"outline"};var E=S.memo(y),T=function(L,N){var D={};for(var R in L)Object.prototype.hasOwnProperty.call(L,R)&&N.indexOf(R)<0&&(D[R]=L[R]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,R=Object.getOwnPropertySymbols(L);k<R.length;k++)N.indexOf(R[k])<0&&Object.prototype.propertyIsEnumerable.call(L,R[k])&&(D[R[k]]=L[R[k]]);return D},b=function(N,D){var R=S.useContext(n),k=S.useContext(o.b),M=k.getPrefixCls,U=N.prefixCls,B=T(N,["prefixCls"]),j=M("radio-button",U);return R&&(B.checked=N.value===R.value,B.disabled=N.disabled||R.disabled),S.createElement(u,A()({prefixCls:j},B,{type:"radio",ref:D}))},w=S.forwardRef(b),_=u;_.Button=w,_.Group=E;var I=F.a=_},A1Ka:function(H,F,d){var O=d("bLfw"),x=d("sS/r"),C=d("D5nY"),A=C.detectSourceFormat,S=d("k9D9"),g=S.SERIES_LAYOUT_BY_COLUMN;O.extend({type:"dataset",defaultOption:{seriesLayoutBy:g,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){A(this)}}),x.extend({type:"dataset"})},ABKa:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("Qs9O")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="FolderOutlined";var c=A.forwardRef(f);F.default=c},AE9C:function(H,F,d){var O=d("bYtY"),x=d("crZl"),C=d("IwbS"),A=d("oVpE"),S=A.createSymbol,g=d("+TT/"),f=d("y7Aq"),c=x.extend({type:"visualMap.piecewise",doRender:function(){var r=this.group;r.removeAll();var i=this.visualMapModel,n=i.get("textGap"),e=i.textStyleModel,l=e.getFont(),t=e.getTextColor(),a=this._getItemAlign(),s=i.itemSize,u=this._getViewData(),h=u.endsText,p=O.retrieve(i.get("showLabel",!0),!h);h&&this._renderEndsText(r,h[0],s,p,a),O.each(u.viewPieceList,m,this),h&&this._renderEndsText(r,h[1],s,p,a),g.box(i.get("orient"),r,i.get("itemGap")),this.renderBackground(r),this.positionGroup(r);function m(v){var y=v.piece,E=new C.Group;E.onclick=O.bind(this._onItemClick,this,y),this._enableHoverLink(E,v.indexInModelPieceList);var T=i.getRepresentValue(y);if(this._createItemSymbol(E,T,[0,0,s[0],s[1]]),p){var b=this.visualMapModel.getValueState(T);E.add(new C.Text({style:{x:a==="right"?-n:s[0]+n,y:s[1]/2,text:y.text,textVerticalAlign:"middle",textAlign:a,textFont:l,textFill:t,opacity:b==="outOfRange"?.5:1}}))}r.add(E)}},_enableHoverLink:function(r,i){r.on("mouseover",O.bind(n,this,"highlight")).on("mouseout",O.bind(n,this,"downplay"));function n(e){var l=this.visualMapModel;l.option.hoverLink&&this.api.dispatchAction({type:e,batch:f.makeHighDownBatch(l.findTargetDataIndices(i),l)})}},_getItemAlign:function(){var r=this.visualMapModel,i=r.option;if(i.orient==="vertical")return f.getItemAlign(r,this.api,r.itemSize);var n=i.align;return(!n||n==="auto")&&(n="left"),n},_renderEndsText:function(r,i,n,e,l){if(!i)return;var t=new C.Group,a=this.visualMapModel.textStyleModel;t.add(new C.Text({style:{x:e?l==="right"?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:e?l:"center",text:i,textFont:a.getFont(),textFill:a.getTextColor()}})),r.add(t)},_getViewData:function(){var r=this.visualMapModel,i=O.map(r.getPieceList(),function(t,a){return{piece:t,indexInModelPieceList:a}}),n=r.get("text"),e=r.get("orient"),l=r.get("inverse");return(e==="horizontal"?l:!l)?i.reverse():n&&(n=n.slice().reverse()),{viewPieceList:i,endsText:n}},_createItemSymbol:function(r,i,n){r.add(S(this.getControllerVisual(i,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(i,"color")))},_onItemClick:function(r){var i=this.visualMapModel,n=i.option,e=O.clone(n.selected),l=i.getSelectedMapKey(r);n.selectedMode==="single"?(e[l]=!0,O.each(e,function(t,a){e[a]=a===l})):e[l]=!e[l],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:e})}}),o=c;H.exports=o},AEZ6:function(H,F,d){var O=d("bYtY"),x=O.each,C=O.createHashMap,A=d("T4UG"),S=d("MwEJ"),g=A.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(o,r){var i=this.getSource();return f(i,this),S(i,this)},getRawIndicesByActiveState:function(o){var r=this.coordinateSystem,i=this.getData(),n=[];return r.eachActiveState(i,function(e,l){o===e&&n.push(i.getRawIndex(l))}),n},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 f(o,r){if(o.encodeDefine)return;var i=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(!i)return;var n=o.encodeDefine=C();x(i.dimensions,function(e){var l=c(e);n.set(e,l)})}function c(o){return+o.replace("dim","")}H.exports=g},AH3D:function(H,F,d){var O=d("ProS");d("y4/Y"),d("qWt2"),d("Qvb6"),O.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),O.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},ALo7:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("5GtS"),A=d("4NO4"),S=A.defaultEmphasis,g=d("D5nY"),f=g.makeSeriesEncodeForNameBased,c=d("xKMd"),o=O.extendSeriesModel({type:"series.funnel",init:function(i){o.superApply(this,"init",arguments),this.legendVisualProvider=new c(x.bind(this.getData,this),x.bind(this.getRawData,this)),this._defaultLabelLine(i)},getInitialData:function(i,n){return C(this,{coordDimensions:["value"],encodeDefaulter:x.curry(f,this)})},_defaultLabelLine:function(i){S(i,"labelLine",["show"]);var n=i.labelLine,e=i.emphasis.labelLine;n.show=n.show&&i.label.show,e.show=e.show&&i.emphasis.label.show},getDataParams:function(i){var n=this.getData(),e=o.superCall(this,"getDataParams",i),l=n.mapDimension("value"),t=n.getSum(l);return e.percent=t?+(n.get(l,i)/t*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}}}}),r=o;H.exports=r},ALsQ:function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.mode.CFB=function(){var x=O.lib.BlockCipherMode.extend();x.Encryptor=x.extend({processBlock:function(S,g){var f=this._cipher,c=f.blockSize;C.call(this,S,g,c,f),this._prevBlock=S.slice(g,g+c)}}),x.Decryptor=x.extend({processBlock:function(S,g){var f=this._cipher,c=f.blockSize,o=S.slice(g,g+c);C.call(this,S,g,c,f),this._prevBlock=o}});function C(A,S,g,f){var c,o=this._iv;o?(c=o.slice(0),this._iv=void 0):c=this._prevBlock,f.encryptBlock(c,0);for(var r=0;r<g;r++)A[S+r]^=c[r]}return x}(),O.mode.CFB})},ANjR:function(H,F,d){var O=d("bYtY");function x(A,S){return S=S||[0,0],O.map([0,1],function(g){var f=S[g],c=A[g]/2,o=[],r=[];return o[g]=f-c,r[g]=f+c,o[1-g]=r[1-g]=S[1-g],Math.abs(this.dataToPoint(o)[g]-this.dataToPoint(r)[g])},this)}function C(A){var S=A.getBoundingRect();return{coordSys:{type:"geo",x:S.x,y:S.y,width:S.width,height:S.height,zoom:A.getZoom()},api:{coord:function(g){return A.dataToPoint(g)},size:O.bind(x,A)}}}H.exports=C},AOa7:function(H,F,d){},AUH6:function(H,F,d){var O=d("bYtY"),x=d("mFDi"),C=d("bMXI"),A=d("W4dC");function S(c,o,r,i){C.call(this,c),this.map=o;var n=A.load(o,r);this._nameCoordMap=n.nameCoordMap,this._regionsMap=n.regionsMap,this._invertLongitute=i==null?!0:i,this.regions=n.regions,this._rect=n.boundingRect}S.prototype={constructor:S,type:"geo",dimensions:["lng","lat"],containCoord:function(c){for(var o=this.regions,r=0;r<o.length;r++)if(o[r].contain(c))return!0;return!1},transformTo:function(c,o,r,i){var n=this.getBoundingRect(),e=this._invertLongitute;n=n.clone(),e&&(n.y=-n.y-n.height);var l=this._rawTransformable;if(l.transform=n.calculateTransform(new x(c,o,r,i)),l.decomposeTransform(),e){var t=l.scale;t[1]=-t[1]}l.updateTransform(),this._updateTransform()},getRegion:function(c){return this._regionsMap.get(c)},getRegionByCoord:function(c){for(var o=this.regions,r=0;r<o.length;r++)if(o[r].contain(c))return o[r]},addGeoCoord:function(c,o){this._nameCoordMap.set(c,o)},getGeoCoord:function(c){return this._nameCoordMap.get(c)},getBoundingRect:function(){return this._rect},dataToPoint:function(c,o,r){if(typeof c=="string"&&(c=this.getGeoCoord(c)),c)return C.prototype.dataToPoint.call(this,c,o,r)},convertToPixel:O.curry(g,"dataToPoint"),convertFromPixel:O.curry(g,"pointToData")},O.mixin(S,C);function g(c,o,r,i){var n=r.geoModel,e=r.seriesModel,l=n?n.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return l===this?l[c](i):null}var f=S;H.exports=f},AVZG:function(H,F,d){var O=d("bYtY");function x(C,A,S){S=S||{};var g=C.coordinateSystem,f=A.axis,c={},o=f.getAxesOnZeroOf()[0],r=f.position,i=o?"onZero":r,n=f.dim,e=g.getRect(),l=[e.x,e.x+e.width,e.y,e.y+e.height],t={left:0,right:1,top:0,bottom:1,onZero:2},a=A.get("offset")||0,s=n==="x"?[l[2]-a,l[3]+a]:[l[0]-a,l[1]+a];if(o){var u=o.toGlobalCoord(o.dataToCoord(0));s[t.onZero]=Math.max(Math.min(u,s[1]),s[0])}c.position=[n==="y"?s[t[i]]:l[0],n==="x"?s[t[i]]:l[3]],c.rotation=Math.PI/2*(n==="x"?0:1);var h={top:-1,bottom:1,left:-1,right:1};c.labelDirection=c.tickDirection=c.nameDirection=h[r],c.labelOffset=o?s[t[r]]-s[t.onZero]:0,A.get("axisTick.inside")&&(c.tickDirection=-c.tickDirection),O.retrieve(S.labelInside,A.get("axisLabel.inside"))&&(c.labelDirection=-c.labelDirection);var p=A.get("axisLabel.rotate");return c.labelRotate=i==="top"?-p:p,c.z2=1,c}F.layout=x},"Ae+d":function(H,F){function d(x,C,A){var S=x.target,g=S.position;g[0]+=C,g[1]+=A,S.dirty()}function O(x,C,A,S){var g=x.target,f=x.zoomLimit,c=g.position,o=g.scale,r=x.zoom=x.zoom||1;if(r*=C,f){var i=f.min||0,n=f.max||Infinity;r=Math.max(Math.min(n,r),i)}var e=r/x.zoom;x.zoom=r,c[0]-=(A-c[0])*(e-1),c[1]-=(S-c[1])*(e-1),o[0]*=e,o[1]*=e,g.dirty()}F.updateViewOnPan=d,F.updateViewOnZoom=O},Ae16:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("IwbS");d("Wqna"),d("rySg"),O.extendComponentView({type:"grid",render:function(A,S){this.group.removeAll(),A.get("show")&&this.group.add(new C.Rect({shape:A.coordinateSystem.getRect(),style:x.defaults({fill:A.get("backgroundColor")},A.getItemStyle()),silent:!0,z2:-1}))}}),O.registerPreprocessor(function(A){A.xAxis&&A.yAxis&&!A.grid&&(A.grid={})})},Awhp:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("PQMj"),A=d.n(C)},"B+YJ":function(H,F,d){d("TYVI"),d("p1MT")},"B6l+":function(H,F,d){var O=d("Sq3C"),x=d("Z1HP"),C=d("Sxd8"),A=d("dt0z");function S(g,f,c){g=A(g),f=C(f);var o=f?x(g):0;return f&&o<f?g+O(f-o,c):g}H.exports=S},B9cy:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("0XgM"),A=d.n(C)},B9fm:function(H,F,d){var O=d("bYtY"),x=d("Qe9p"),C=d("YH21"),A=d("Ze12"),S=d("ItGF"),g=d("7aKB"),f=O.each,c=g.toCamelCase,o=["","-webkit-","-moz-","-o-"],r="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function i(s){var u="cubic-bezier(0.23, 1, 0.32, 1)",h="left "+s+"s "+u+",top "+s+"s "+u;return O.map(o,function(p){return p+"transition:"+h}).join(";")}function n(s){var u=[],h=s.get("fontSize"),p=s.getTextColor();return p&&u.push("color:"+p),u.push("font:"+s.getFont()),h&&u.push("line-height:"+Math.round(h*3/2)+"px"),f(["decoration","align"],function(m){var v=s.get(m);v&&u.push("text-"+m+":"+v)}),u.join(";")}function e(s){var u=[],h=s.get("transitionDuration"),p=s.get("backgroundColor"),m=s.getModel("textStyle"),v=s.get("padding");return h&&u.push(i(h)),p&&(S.canvasSupported?u.push("background-Color:"+p):(u.push("background-Color:#"+x.toHex(p)),u.push("filter:alpha(opacity=70)"))),f(["width","color","radius"],function(y){var E="border-"+y,T=c(E),b=s.get(T);b!=null&&u.push(E+":"+b+(y==="color"?"":"px"))}),u.push(n(m)),v!=null&&u.push("padding:"+g.normalizeCssArray(v).join("px ")+"px"),u.join(";")+";"}function l(s,u,h,p,m){var v=u&&u.painter;if(h){var y=v&&v.getViewportRoot();y&&A.transformLocalCoord(s,y,document.body,p,m)}else{s[0]=p,s[1]=m;var E=v&&v.getViewportRootOffset();E&&(s[0]+=E.offsetLeft,s[1]+=E.offsetTop)}}function t(s,u,h){if(S.wxa)return null;var p=document.createElement("div");p.domBelongToZr=!0,this.el=p;var m=this._zr=u.getZr(),v=this._appendToBody=h&&h.appendToBody;this._styleCoord=[0,0],l(this._styleCoord,m,v,u.getWidth()/2,u.getHeight()/2),v?document.body.appendChild(p):s.appendChild(p),this._container=s,this._show=!1,this._hideTimeout;var y=this;p.onmouseenter=function(){y._enterable&&(clearTimeout(y._hideTimeout),y._show=!0),y._inContent=!0},p.onmousemove=function(E){if(E=E||window.event,!y._enterable){var T=m.handler,b=m.painter.getViewportRoot();C.normalizeEvent(b,E,!0),T.dispatch("mousemove",E)}},p.onmouseleave=function(){y._enterable&&(y._show&&y.hideLater(y._hideDelay)),y._inContent=!1}}t.prototype={constructor:t,_enterable:!0,update:function(){var s=this._container,u=s.currentStyle||document.defaultView.getComputedStyle(s),h=s.style;h.position!=="absolute"&&u.position!=="absolute"&&(h.position="relative")},show:function(s){clearTimeout(this._hideTimeout);var u=this.el,h=this._styleCoord;u.style.cssText=r+e(s)+";left:"+h[0]+"px;top:"+h[1]+"px;"+(s.get("extraCssText")||""),u.style.display=u.innerHTML?"block":"none",u.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(s){this.el.innerHTML=s==null?"":s},setEnterable:function(s){this._enterable=s},getSize:function(){var s=this.el;return[s.clientWidth,s.clientHeight]},moveTo:function(s,u){var h=this._styleCoord;l(h,this._zr,this._appendToBody,s,u);var p=this.el.style;p.left=h[0]+"px",p.top=h[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(s){this._show&&!(this._inContent&&this._enterable)&&(s?(this._hideDelay=s,this._show=!1,this._hideTimeout=setTimeout(O.bind(this.hide,this),s)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var s=this.el.clientWidth,u=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var h=document.defaultView.getComputedStyle(this.el);h&&(s+=parseInt(h.borderLeftWidth,10)+parseInt(h.borderRightWidth,10),u+=parseInt(h.borderTopWidth,10)+parseInt(h.borderBottomWidth,10))}return{width:s,height:u}}};var a=t;H.exports=a},BPZU:function(H,F){var d=32,O=7,x=256;function C(i){for(var n=0;i>=d;)n|=i&1,i>>=1;return i+n}function A(i,n,e,l){var t=n+1;if(t===e)return 1;if(l(i[t++],i[n])<0){for(;t<e&&l(i[t],i[t-1])<0;)t++;S(i,n,t)}else for(;t<e&&l(i[t],i[t-1])>=0;)t++;return t-n}function S(i,n,e){for(e--;n<e;){var l=i[n];i[n++]=i[e],i[e--]=l}}function g(i,n,e,l,t){for(l===n&&l++;l<e;l++){for(var a=i[l],s=n,u=l,h;s<u;)h=s+u>>>1,t(a,i[h])<0?u=h:s=h+1;var p=l-s;switch(p){case 3:i[s+3]=i[s+2];case 2:i[s+2]=i[s+1];case 1:i[s+1]=i[s];break;default:for(;p>0;)i[s+p]=i[s+p-1],p--}i[s]=a}}function f(i,n,e,l,t,a){var s=0,u=0,h=1;if(a(i,n[e+t])>0){for(u=l-t;h<u&&a(i,n[e+t+h])>0;)s=h,h=(h<<1)+1,h<=0&&(h=u);h>u&&(h=u),s+=t,h+=t}else{for(u=t+1;h<u&&a(i,n[e+t-h])<=0;)s=h,h=(h<<1)+1,h<=0&&(h=u);h>u&&(h=u);var p=s;s=t-h,h=t-p}for(s++;s<h;){var m=s+(h-s>>>1);a(i,n[e+m])>0?s=m+1:h=m}return h}function c(i,n,e,l,t,a){var s=0,u=0,h=1;if(a(i,n[e+t])<0){for(u=t+1;h<u&&a(i,n[e+t-h])<0;)s=h,h=(h<<1)+1,h<=0&&(h=u);h>u&&(h=u);var p=s;s=t-h,h=t-p}else{for(u=l-t;h<u&&a(i,n[e+t+h])>=0;)s=h,h=(h<<1)+1,h<=0&&(h=u);h>u&&(h=u),s+=t,h+=t}for(s++;s<h;){var m=s+(h-s>>>1);a(i,n[e+m])<0?h=m:s=m+1}return h}function o(i,n){var e=O,l=0,t=x,a=0,s,u,h=0;l=i.length,l<2*x&&(t=l>>>1);var p=[];a=l<120?5:l<1542?10:l<119151?19:40,s=[],u=[];function m(w,_){s[h]=w,u[h]=_,h+=1}function v(){for(;h>1;){var w=h-2;if(w>=1&&u[w-1]<=u[w]+u[w+1]||w>=2&&u[w-2]<=u[w]+u[w-1])u[w-1]<u[w+1]&&w--;else if(u[w]>u[w+1])break;E(w)}}function y(){for(;h>1;){var w=h-2;w>0&&u[w-1]<u[w+1]&&w--,E(w)}}function E(w){var _=s[w],I=u[w],L=s[w+1],N=u[w+1];u[w]=I+N,w===h-3&&(s[w+1]=s[w+2],u[w+1]=u[w+2]),h--;var D=c(i[L],i,_,I,0,n);if(_+=D,I-=D,I===0)return;if(N=f(i[_+I-1],i,L,N,N-1,n),N===0)return;I<=N?T(_,I,L,N):b(_,I,L,N)}function T(w,_,I,L){var N=0;for(N=0;N<_;N++)p[N]=i[w+N];var D=0,R=I,k=w;if(i[k++]=i[R++],--L===0){for(N=0;N<_;N++)i[k+N]=p[D+N];return}if(_===1){for(N=0;N<L;N++)i[k+N]=i[R+N];i[k+L]=p[D];return}for(var M=e,U,B,j;;){U=0,B=0,j=!1;do if(n(i[R],p[D])<0){if(i[k++]=i[R++],B++,U=0,--L===0){j=!0;break}}else if(i[k++]=p[D++],U++,B=0,--_===1){j=!0;break}while((U|B)<M);if(j)break;do{if(U=c(i[R],p,D,_,0,n),U!==0){for(N=0;N<U;N++)i[k+N]=p[D+N];if(k+=U,D+=U,_-=U,_<=1){j=!0;break}}if(i[k++]=i[R++],--L===0){j=!0;break}if(B=f(p[D],i,R,L,0,n),B!==0){for(N=0;N<B;N++)i[k+N]=i[R+N];if(k+=B,R+=B,L-=B,L===0){j=!0;break}}if(i[k++]=p[D++],--_===1){j=!0;break}M--}while(U>=O||B>=O);if(j)break;M<0&&(M=0),M+=2}if(e=M,e<1&&(e=1),_===1){for(N=0;N<L;N++)i[k+N]=i[R+N];i[k+L]=p[D]}else{if(_===0)throw new Error;for(N=0;N<_;N++)i[k+N]=p[D+N]}}function b(w,_,I,L){var N=0;for(N=0;N<L;N++)p[N]=i[I+N];var D=w+_-1,R=L-1,k=I+L-1,M=0,U=0;if(i[k--]=i[D--],--_===0){for(M=k-(L-1),N=0;N<L;N++)i[M+N]=p[N];return}if(L===1){for(k-=_,D-=_,U=k+1,M=D+1,N=_-1;N>=0;N--)i[U+N]=i[M+N];i[k]=p[R];return}for(var B=e;;){var j=0,W=0,V=!1;do if(n(p[R],i[D])<0){if(i[k--]=i[D--],j++,W=0,--_===0){V=!0;break}}else if(i[k--]=p[R--],W++,j=0,--L===1){V=!0;break}while((j|W)<B);if(V)break;do{if(j=_-c(p[R],i,w,_,_-1,n),j!==0){for(k-=j,D-=j,_-=j,U=k+1,M=D+1,N=j-1;N>=0;N--)i[U+N]=i[M+N];if(_===0){V=!0;break}}if(i[k--]=p[R--],--L===1){V=!0;break}if(W=L-f(i[D],p,0,L,L-1,n),W!==0){for(k-=W,R-=W,L-=W,U=k+1,M=R+1,N=0;N<W;N++)i[U+N]=p[M+N];if(L<=1){V=!0;break}}if(i[k--]=i[D--],--_===0){V=!0;break}B--}while(j>=O||W>=O);if(V)break;B<0&&(B=0),B+=2}if(e=B,e<1&&(e=1),L===1){for(k-=_,D-=_,U=k+1,M=D+1,N=_-1;N>=0;N--)i[U+N]=i[M+N];i[k]=p[R]}else{if(L===0)throw new Error;for(M=k-(L-1),N=0;N<L;N++)i[M+N]=p[N]}}this.mergeRuns=v,this.forceMergeRuns=y,this.pushRun=m}function r(i,n,e,l){e||(e=0),l||(l=i.length);var t=l-e;if(t<2)return;var a=0;if(t<d){a=A(i,e,l,n),g(i,e,l,e+a,n);return}var s=new o(i,n),u=C(t);do{if(a=A(i,e,l,n),a<u){var h=t;h>u&&(h=u),g(i,e,e+h,e+a,n),a=h}s.pushRun(e,a),s.mergeRuns(),t-=a,e+=a}while(t!==0);s.forceMergeRuns()}H.exports=r},Bd2K:function(H,F,d){(function(O){O(d("VrN/"),d("osHv"))})(function(O){O.defineOption("autoCloseTags",!1,function(o,r,i){if(i!=O.Init&&i&&o.removeKeyMap("autoCloseTags"),!r)return;var n={name:"autoCloseTags"};(typeof r!="object"||r.whenClosing!==!1)&&(n["'/'"]=function(e){return g(e)}),(typeof r!="object"||r.whenOpening!==!1)&&(n["'>'"]=function(e){return A(e)}),o.addKeyMap(n)});var x=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],C=["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(o){if(o.getOption("disableInput"))return O.Pass;for(var r=o.listSelections(),i=[],n=o.getOption("autoCloseTags"),e=0;e<r.length;e++){if(!r[e].empty())return O.Pass;var l=r[e].head,t=o.getTokenAt(l),a=O.innerMode(o.getMode(),t.state),s=a.state,u=a.mode.xmlCurrentTag&&a.mode.xmlCurrentTag(s),h=u&&u.name;if(!h)return O.Pass;var p=a.mode.configuration=="html",m=typeof n=="object"&&n.dontCloseTags||p&&x,v=typeof n=="object"&&n.indentTags||p&&C;t.end>l.ch&&(h=h.slice(0,h.length-t.end+l.ch));var y=h.toLowerCase();if(!h||t.type=="string"&&(t.end!=l.ch||!/[\"\']/.test(t.string.charAt(t.string.length-1))||t.string.length==1)||t.type=="tag"&&u.close||t.string.indexOf("/")==l.ch-t.start-1||m&&f(m,y)>-1||c(o,a.mode.xmlCurrentContext&&a.mode.xmlCurrentContext(s)||[],h,l,!0))return O.Pass;var E=typeof n=="object"&&n.emptyTags;if(E&&f(E,h)>-1){i[e]={text:"/>",newPos:O.Pos(l.line,l.ch+2)};continue}var T=v&&f(v,y)>-1;i[e]={indent:T,text:">"+(T?`
|
|
|
|
|
|
`:"")+"</"+h+">",newPos:T?O.Pos(l.line+1,0):O.Pos(l.line,l.ch+1)}}for(var b=typeof n=="object"&&n.dontIndentOnAutoClose,e=r.length-1;e>=0;e--){var w=i[e];o.replaceRange(w.text,r[e].head,r[e].anchor,"+insert");var _=o.listSelections().slice(0);_[e]={head:w.newPos,anchor:w.newPos},o.setSelections(_),!b&&w.indent&&(o.indentLine(w.newPos.line,null,!0),o.indentLine(w.newPos.line+1,null,!0))}}function S(o,r){for(var i=o.listSelections(),n=[],e=r?"/":"</",l=o.getOption("autoCloseTags"),t=typeof l=="object"&&l.dontIndentOnSlash,a=0;a<i.length;a++){if(!i[a].empty())return O.Pass;var s=i[a].head,u=o.getTokenAt(s),h=O.innerMode(o.getMode(),u.state),p=h.state;if(r&&(u.type=="string"||u.string.charAt(0)!="<"||u.start!=s.ch-1))return O.Pass;var m,v=h.mode.name!="xml"&&o.getMode().name=="htmlmixed";if(v&&h.mode.name=="javascript")m=e+"script";else if(v&&h.mode.name=="css")m=e+"style";else{var y=h.mode.xmlCurrentContext&&h.mode.xmlCurrentContext(p);if(!y||y.length&&c(o,y,y[y.length-1],s))return O.Pass;m=e+y[y.length-1]}o.getLine(s.line).charAt(u.end)!=">"&&(m+=">"),n[a]=m}if(o.replaceSelections(n),i=o.listSelections(),!t)for(var a=0;a<i.length;a++)(a==i.length-1||i[a].head.line<i[a+1].head.line)&&o.indentLine(i[a].head.line)}function g(o){return o.getOption("disableInput")?O.Pass:S(o,!0)}O.commands.closeTag=function(o){return S(o)};function f(o,r){if(o.indexOf)return o.indexOf(r);for(var i=0,n=o.length;i<n;++i)if(o[i]==r)return i;return-1}function c(o,r,i,n,e){if(!O.scanForClosingTag)return!1;var l=Math.min(o.lastLine()+1,n.line+500),t=O.scanForClosingTag(o,n,null,l);if(!t||t.tag!=i)return!1;for(var a=e?1:0,s=r.length-1;s>=0&&r[s]==i;s--)++a;n=t.to;for(var s=1;s<a;s++){var u=O.scanForClosingTag(o,n,null,l);if(!u||u.tag!=i)return!1;n=u.to}return!0}})},BlVb:function(H,F,d){var O=d("hyiK"),x=1e-8;function C(S,g){return Math.abs(S-g)<x}function A(S,g,f){var c=0,o=S[0];if(!o)return!1;for(var r=1;r<S.length;r++){var i=S[r];c+=O(o[0],o[1],i[0],i[1],g,f),o=i}var n=S[0];return(!C(o[0],n[0])||!C(o[1],n[1]))&&(c+=O(o[0],o[1],n[0],n[1],g,f)),c!==0}F.contain=A},BoS7:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("czTT"),A=d.n(C)},Bq2U:function(H,F,d){var O=d("RDYZ"),x=d("Qe9p"),C=d("bYtY"),A=C.isArrayLike,S=Array.prototype.slice;function g(m,v){return m[v]}function f(m,v,y){m[v]=y}function c(m,v,y){return(v-m)*y+m}function o(m,v,y){return y>.5?v:m}function r(m,v,y,E,T){var b=m.length;if(T===1)for(var w=0;w<b;w++)E[w]=c(m[w],v[w],y);else for(var _=b&&m[0].length,w=0;w<b;w++)for(var I=0;I<_;I++)E[w][I]=c(m[w][I],v[w][I],y)}function i(m,v,y){var E=m.length,T=v.length;if(E!==T){var b=E>T;if(b)m.length=T;else for(var w=E;w<T;w++)m.push(y===1?v[w]:S.call(v[w]))}for(var _=m[0]&&m[0].length,w=0;w<m.length;w++)if(y===1)isNaN(m[w])&&(m[w]=v[w]);else for(var I=0;I<_;I++)isNaN(m[w][I])&&(m[w][I]=v[w][I])}function n(m,v,y){if(m===v)return!0;var E=m.length;if(E!==v.length)return!1;if(y===1){for(var T=0;T<E;T++)if(m[T]!==v[T])return!1}else for(var b=m[0].length,T=0;T<E;T++)for(var w=0;w<b;w++)if(m[T][w]!==v[T][w])return!1;return!0}function e(m,v,y,E,T,b,w,_,I){var L=m.length;if(I===1)for(var N=0;N<L;N++)_[N]=l(m[N],v[N],y[N],E[N],T,b,w);else for(var D=m[0].length,N=0;N<L;N++)for(var R=0;R<D;R++)_[N][R]=l(m[N][R],v[N][R],y[N][R],E[N][R],T,b,w)}function l(m,v,y,E,T,b,w){var _=(y-m)*.5,I=(E-v)*.5;return(2*(v-y)+_+I)*w+(-3*(v-y)-2*_-I)*b+_*T+v}function t(m){if(A(m)){var v=m.length;if(A(m[0])){for(var y=[],E=0;E<v;E++)y.push(S.call(m[E]));return y}return S.call(m)}return m}function a(m){return m[0]=Math.floor(m[0]),m[1]=Math.floor(m[1]),m[2]=Math.floor(m[2]),"rgba("+m.join(",")+")"}function s(m){var v=m[m.length-1].value;return A(v&&v[0])?2:1}function u(m,v,y,E,T,b){var w=m._getter,_=m._setter,I=v==="spline",L=E.length;if(!L)return;var N=E[0].value,D=A(N),R=!1,k=!1,M=D?s(E):0,U;E.sort(function(Q,G){return Q.time-G.time}),U=E[L-1].time;for(var B=[],j=[],W=E[0].value,V=!0,z=0;z<L;z++){B.push(E[z].time/U);var J=E[z].value;if(D&&n(J,W,M)||!D&&J===W||(V=!1),W=J,typeof J=="string"){var Z=x.parse(J);Z?(J=Z,R=!0):k=!0}j.push(J)}if(!b&&V)return;for(var de=j[L-1],z=0;z<L-1;z++)D?i(j[z],de,M):isNaN(j[z])&&!isNaN(de)&&!k&&!R&&(j[z]=de);D&&i(w(m._target,T),de,M);var ie=0,ve=0,xe,_e,Ue,fe,ke,se;if(R)var te=[0,0,0,0];var Ve=function(G,Y){var me;if(Y<0)me=0;else if(Y<ve){for(xe=Math.min(ie+1,L-1),me=xe;me>=0&&!(B[me]<=Y);me--);me=Math.min(me,L-2)}else{for(me=ie;me<L&&!(B[me]>Y);me++);me=Math.min(me-1,L-2)}ie=me,ve=Y;var ue=B[me+1]-B[me];if(ue===0)return;if(_e=(Y-B[me])/ue,I)if(fe=j[me],Ue=j[me===0?me:me-1],ke=j[me>L-2?L-1:me+1],se=j[me>L-3?L-1:me+2],D)e(Ue,fe,ke,se,_e,_e*_e,_e*_e*_e,w(G,T),M);else{var Ce;if(R)Ce=e(Ue,fe,ke,se,_e,_e*_e,_e*_e*_e,te,1),Ce=a(te);else{if(k)return o(fe,ke,_e);Ce=l(Ue,fe,ke,se,_e,_e*_e,_e*_e*_e)}_(G,T,Ce)}else if(D)r(j[me],j[me+1],_e,w(G,T),M);else{var Ce;if(R)r(j[me],j[me+1],_e,te,1),Ce=a(te);else{if(k)return o(j[me],j[me+1],_e);Ce=c(j[me],j[me+1],_e)}_(G,T,Ce)}},ae=new O({target:m._target,life:U,loop:m._loop,delay:m._delay,onframe:Ve,ondestroy:y});return v&&v!=="spline"&&(ae.easing=v),ae}var h=function(v,y,E,T){this._tracks={},this._target=v,this._loop=y||!1,this._getter=E||g,this._setter=T||f,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};h.prototype={when:function(v,y){var E=this._tracks;for(var T in y){if(!y.hasOwnProperty(T))continue;if(!E[T]){E[T]=[];var b=this._getter(this._target,T);if(b==null)continue;v!==0&&E[T].push({time:0,value:t(b)})}E[T].push({time:v,value:y[T]})}return this},during:function(v){return this._onframeList.push(v),this},pause:function(){for(var v=0;v<this._clipList.length;v++)this._clipList[v].pause();this._paused=!0},resume:function(){for(var v=0;v<this._clipList.length;v++)this._clipList[v].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var v=this._doneList,y=v.length,E=0;E<y;E++)v[E].call(this)},start:function(v,y){var E=this,T=0,b=function(){T--,T||E._doneCallback()},w;for(var _ in this._tracks){if(!this._tracks.hasOwnProperty(_))continue;var I=u(this,v,b,this._tracks[_],_,y);I&&(this._clipList.push(I),T++,this.animation&&this.animation.addClip(I),w=I)}if(w){var L=w.onframe;w.onframe=function(N,D){L(N,D);for(var R=0;R<E._onframeList.length;R++)E._onframeList[R](N,D)}}return T||this._doneCallback(),this},stop:function(v){for(var y=this._clipList,E=this.animation,T=0;T<y.length;T++){var b=y[T];v&&b.onframe(this._target,1),E&&E.removeClip(b)}y.length=0},delay:function(v){return this._delay=v,this},done:function(v){return v&&this._doneList.push(v),this},getClips:function(){return this._clipList}};var p=h;H.exports=p},Bqw1:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},Bsck:function(H,F,d){var O=d("bYtY"),x=d("Qxkt"),C=d("Mdki"),A=d("YXkt"),S=d("sdST"),g=function(r,i){this.name=r||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=i};g.prototype={constructor:g,isRemoved:function(){return this.dataIndex<0},eachNode:function(r,i,n){typeof r=="function"&&(n=i,i=r,r=null),r=r||{},O.isString(r)&&(r={order:r});var e=r.order||"preorder",l=this[r.attr||"children"],t;e==="preorder"&&(t=i.call(n,this));for(var a=0;!t&&a<l.length;a++)l[a].eachNode(r,i,n);e==="postorder"&&i.call(n,this)},updateDepthAndHeight:function(r){var i=0;this.depth=r;for(var n=0;n<this.children.length;n++){var e=this.children[n];e.updateDepthAndHeight(r+1),e.height>i&&(i=e.height)}this.height=i+1},getNodeById:function(r){if(this.getId()===r)return this;for(var i=0,n=this.children,e=n.length;i<e;i++){var l=n[i].getNodeById(r);if(l)return l}},contains:function(r){if(r===this)return!0;for(var i=0,n=this.children,e=n.length;i<e;i++){var l=n[i].contains(r);if(l)return l}},getAncestors:function(r){for(var i=[],n=r?this:this.parentNode;n;)i.push(n),n=n.parentNode;return i.reverse(),i},getValue:function(r){var i=this.hostTree.data;return i.get(i.getDimension(r||"value"),this.dataIndex)},setLayout:function(r,i){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,r,i)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(r){if(this.dataIndex<0)return;var i=this.hostTree,n=i.data.getItemModel(this.dataIndex),e=this.getLevelModel();return e?n.getModel(r,e.getModel(r)):n.getModel(r)},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(r,i){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,r,i)},getVisual:function(r,i){return this.hostTree.data.getItemVisual(this.dataIndex,r,i)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(r){for(var i=r.parentNode;i;){if(i===this)return!0;i=i.parentNode}return!1},isDescendantOf:function(r){return r!==this&&r.isAncestorOf(this)}};function f(r,i){this.root,this.data,this._nodes=[],this.hostModel=r,this.levelModels=O.map(i||[],function(n){return new x(n,r,r.ecModel)})}f.prototype={constructor:f,type:"tree",eachNode:function(r,i,n){this.root.eachNode(r,i,n)},getNodeByDataIndex:function(r){var i=this.data.getRawIndex(r);return this._nodes[i]},getNodeByName:function(r){return this.root.getNodeByName(r)},update:function(){for(var r=this.data,i=this._nodes,n=0,e=i.length;n<e;n++)i[n].dataIndex=-1;for(var n=0,e=r.count();n<e;n++)i[r.getRawIndex(n)].dataIndex=n},clearLayouts:function(){this.data.clearItemLayouts()}},f.createTree=function(r,i,n,e){var l=new f(i,n&&n.levels),t=[],a=1;s(r);function s(p,m){var v=p.value;a=Math.max(a,O.isArray(v)?v.length:1),t.push(p);var y=new g(p.name,l);m?c(y,m):l.root=y,l._nodes.push(y);var E=p.children;if(E)for(var T=0;T<E.length;T++)s(E[T],y)}l.root.updateDepthAndHeight(0);var u=S(t,{coordDimensions:["value"],dimensionsCount:a}),h=new A(u,i);return h.initData(t),e&&e(h),C({mainData:h,struct:l,structAttr:"tree"}),l.update(),l};function c(r,i){var n=i.children;if(r.parentNode===i)return;n.push(r),r.parentNode=i}var o=f;H.exports=o},BtR2:function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="LikeOutlined";var f=F.a=x.forwardRef(g)},BuqR:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=d("6uqw"),S=d("XxSj"),g=d("YOMW"),f=d("OELB"),c=f.reformIntervals,o=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){o.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var t=this._mode=this._determineMode();r[this._mode].call(this),this._resetSelected(e,l);var a=this.option.categories;this.resetVisual(function(s,u){t==="categories"?(s.mappingMethod="category",s.categories=C.clone(a)):(s.dataExtent=this.getExtent(),s.mappingMethod="piecewise",s.pieceList=C.map(this._pieceList,function(h){var h=C.clone(h);return u!=="inRange"&&(h.visual=null),h}))})},completeVisualOption:function(){var e=this.option,l={},t=S.listVisualTypes(),a=this.isCategory();C.each(e.pieces,function(u){C.each(t,function(h){u.hasOwnProperty(h)&&(l[h]=1)})}),C.each(l,function(u,h){var p=0;C.each(this.stateList,function(m){p|=s(e,m,h)||s(e.target,m,h)},this),!p&&C.each(this.stateList,function(m){(e[m]||(e[m]={}))[h]=g.get(h,m==="inRange"?"active":"inactive",a)})},this);function s(u,h,p){return u&&u[h]&&(C.isObject(u[h])?u[h].hasOwnProperty(p):u[h]===p)}A.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,l){var t=this.option,a=this._pieceList,s=(l?t:e).selected||{};if(t.selected=s,C.each(a,function(h,p){var m=this.getSelectedMapKey(h);s.hasOwnProperty(m)||(s[m]=!0)},this),t.selectedMode==="single"){var u=!1;C.each(a,function(h,p){var m=this.getSelectedMapKey(h);s[m]&&(u?s[m]=!1:u=!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=C.clone(e)},getValueState:function(e){var l=S.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(t){var a=[],s=t.getData();s.each(this.getDataDimension(s),function(u,h){var p=S.findPieceIndex(u,this._pieceList);p===e&&a.push(h)},this),l.push({seriesId:t.id,dataIndex:a})},this),l},getRepresentValue:function(e){var l;if(this.isCategory())l=e.value;else if(e.value!=null)l=e.value;else{var t=e.interval||[];l=t[0]===-Infinity&&t[1]===Infinity?0:(t[0]+t[1])/2}return l},getVisualMeta:function(e){if(this.isCategory())return;var l=[],t=[],a=this;function s(m,v){var y=a.getRepresentValue({interval:m});v||(v=a.getValueState(y));var E=e(y,v);m[0]===-Infinity?t[0]=E:m[1]===Infinity?t[1]=E:l.push({value:m[0],color:E},{value:m[1],color:E})}var u=this._pieceList.slice();if(!u.length)u.push({interval:[-Infinity,Infinity]});else{var h=u[0].interval[0];h!==-Infinity&&u.unshift({interval:[-Infinity,h]}),h=u[u.length-1].interval[1],h!==Infinity&&u.push({interval:[h,Infinity]})}var p=-Infinity;return C.each(u,function(m){var v=m.interval;v&&(v[0]>p&&s([p,v[0]],"outOfRange"),s(v.slice()),p=v[1])},this),{stops:l,outerColors:t}}}),r={splitNumber:function(){var e=this.option,l=this._pieceList,t=Math.min(e.precision,20),a=this.getExtent(),s=e.splitNumber;s=Math.max(parseInt(s,10),1),e.splitNumber=s;for(var u=(a[1]-a[0])/s;+u.toFixed(t)!==u&&t<5;)t++;e.precision=t,u=+u.toFixed(t),e.minOpen&&l.push({interval:[-Infinity,a[0]],close:[0,0]});for(var h=0,p=a[0];h<s;p+=u,h++){var m=h===s-1?a[1]:p+u;l.push({interval:[p,m],close:[1,1]})}e.maxOpen&&l.push({interval:[a[1],Infinity],close:[0,0]}),c(l),C.each(l,function(v,y){v.index=y,v.text=this.formatValueText(v.interval)},this)},categories:function(){var e=this.option;C.each(e.categories,function(l){this._pieceList.push({text:this.formatValueText(l,!0),value:l})},this),i(e,this._pieceList)},pieces:function(){var e=this.option,l=this._pieceList;C.each(e.pieces,function(t,a){C.isObject(t)||(t={value:t});var s={text:"",index:a};if(t.label!=null&&(s.text=t.label),t.hasOwnProperty("value")){var u=s.value=t.value;s.interval=[u,u],s.close=[1,1]}else{for(var h=s.interval=[],p=s.close=[0,0],m=[1,0,1],v=[-Infinity,Infinity],y=[],E=0;E<2;E++){for(var T=[["gte","gt","min"],["lte","lt","max"]][E],b=0;b<3&&h[E]==null;b++)h[E]=t[T[b]],p[E]=m[b],y[E]=b===2;h[E]==null&&(h[E]=v[E])}y[0]&&h[1]===Infinity&&(p[0]=0),y[1]&&h[0]===-Infinity&&(p[1]=0),h[0]===h[1]&&p[0]&&p[1]&&(s.value=h[0])}s.visual=S.retrieveVisuals(t),l.push(s)},this),i(e,l),c(l),C.each(l,function(t){var a=t.close,s=[["<","\u2264"][a[1]],[">","\u2265"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,s)},this)}};function i(e,l){var t=e.inverse;(e.orient==="vertical"?!t:t)&&l.reverse()}var n=o;H.exports=n},BvKs:function(H,F,d){"use strict";d.d(F,"a",function(){return wt});var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),S=d("lwsE"),g=d.n(S),f=d("W8MJ"),c=d.n(f),o=d("7W2i"),r=d.n(o),i=d("LQ03"),n=d.n(i),e=d("q1tI"),l=d("VTBJ"),t=d("1OyB"),a=d("vuIU"),s=d("JX7q"),u=d("Ji7U"),h=d("LK+K"),p=d("I8Z2"),m=d("BGR+"),v=d("wx14"),y=d("rePB"),E=d("4IlW"),T=d("2GS6"),b=d("Gytx"),w=d.n(b),_=d("TSYQ"),I=d.n(_),L=d("U8pU"),N=d("ODXe"),D=/iPhone/i,R=/iPod/i,k=/iPad/i,M=/\bAndroid(?:.+)Mobile\b/i,U=/Android/i,B=/\bAndroid(?:.+)SD4930UR\b/i,j=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,W=/Windows Phone/i,V=/\bWindows(?:.+)ARM\b/i,z=/BlackBerry/i,J=/BB10/i,Z=/Opera Mini/i,de=/\b(CriOS|Chrome)(?:.+)Mobile/i,ie=/Mobile(?:.+)Firefox\b/i;function ve(rt,tt){return rt.test(tt)}function xe(rt){var tt=rt||(typeof navigator!="undefined"?navigator.userAgent:""),Rt=tt.split("[FBAN");if(typeof Rt[1]!="undefined"){var Ft=Rt,At=Object(N.a)(Ft,1);tt=At[0]}if(Rt=tt.split("Twitter"),typeof Rt[1]!="undefined"){var Wt=Rt,ot=Object(N.a)(Wt,1);tt=ot[0]}var Bt={apple:{phone:ve(D,tt)&&!ve(W,tt),ipod:ve(R,tt),tablet:!ve(D,tt)&&ve(k,tt)&&!ve(W,tt),device:(ve(D,tt)||ve(R,tt)||ve(k,tt))&&!ve(W,tt)},amazon:{phone:ve(B,tt),tablet:!ve(B,tt)&&ve(j,tt),device:ve(B,tt)||ve(j,tt)},android:{phone:!ve(W,tt)&&ve(B,tt)||!ve(W,tt)&&ve(M,tt),tablet:!ve(W,tt)&&!ve(B,tt)&&!ve(M,tt)&&(ve(j,tt)||ve(U,tt)),device:!ve(W,tt)&&(ve(B,tt)||ve(j,tt)||ve(M,tt)||ve(U,tt))||ve(/\bokhttp\b/i,tt)},windows:{phone:ve(W,tt),tablet:ve(V,tt),device:ve(W,tt)||ve(V,tt)},other:{blackberry:ve(z,tt),blackberry10:ve(J,tt),opera:ve(Z,tt),firefox:ve(ie,tt),chrome:ve(de,tt),device:ve(z,tt)||ve(J,tt)||ve(Z,tt)||ve(ie,tt)||ve(de,tt)},any:null,phone:null,tablet:null};return Bt.any=Bt.apple.device||Bt.android.device||Bt.windows.device||Bt.other.device,Bt.phone=Bt.apple.phone||Bt.android.phone||Bt.windows.phone,Bt.tablet=Bt.apple.tablet||Bt.android.tablet||Bt.windows.tablet,Bt}var _e=Object(l.a)(Object(l.a)({},xe()),{},{isMobile:xe}),Ue=_e;function fe(){}function ke(rt,tt,Rt){var Ft=tt||"";return rt.key||"".concat(Ft,"item_").concat(Rt)}function se(rt){return"".concat(rt,"-menu-")}function te(rt,tt){var Rt=-1;e.Children.forEach(rt,function(Ft){Rt+=1,Ft&&Ft.type&&Ft.type.isMenuItemGroup?e.Children.forEach(Ft.props.children,function(At){Rt+=1,tt(At,Rt)}):tt(Ft,Rt)})}function Ve(rt,tt,Rt){if(!rt||Rt.find)return;e.Children.forEach(rt,function(Ft){if(Ft){var At=Ft.type;if(!At||!(At.isSubMenu||At.isMenuItem||At.isMenuItemGroup))return;tt.indexOf(Ft.key)!==-1?Rt.find=!0:Ft.props.children&&Ve(Ft.props.children,tt,Rt)}})}var ae=["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"],Q=function(tt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ft=tt&&typeof tt.getBoundingClientRect=="function"&&tt.getBoundingClientRect().width;if(Ft){if(Rt){var At=getComputedStyle(tt),Wt=At.marginLeft,ot=At.marginRight;Ft+=+Wt.replace("px","")+ +ot.replace("px","")}Ft=+Ft.toFixed(6)}return Ft||0},G=function(tt,Rt,Ft){tt&&Object(L.a)(tt.style)==="object"&&(tt.style[Rt]=Ft)},Y=function(){return Ue.any},me=d("KQm4"),ue=d("Ff2n"),Ce=d("i8i4"),Ie=d("bdgK"),ce=d("Uaa1"),Ae=d("HTfv"),Te={adjustX:1,adjustY:1},Ge={topLeft:{points:["bl","tl"],overflow:Te,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Te,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Te,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Te,offset:[4,0]}},gt={topLeft:{points:["bl","tl"],overflow:Te,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Te,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Te,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Te,offset:[4,0]}},qe=Ge,Le=0,Ot={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},$e=function(tt,Rt,Ft){var At=se(Rt),Wt=tt.getState();tt.setState({defaultActiveFirst:Object(l.a)(Object(l.a)({},Wt.defaultActiveFirst),{},Object(y.a)({},At,Ft))})},xt=function(rt){Object(u.a)(Rt,rt);var tt=Object(h.a)(Rt);function Rt(Ft){var At;Object(t.a)(this,Rt),At=tt.call(this,Ft),At.onDestroy=function(pr){At.props.onDestroy(pr)},At.onKeyDown=function(pr){var tn=pr.keyCode,hn=At.menuInstance,Mn=At.props,Xn=Mn.isOpen,si=Mn.store;if(tn===E.a.ENTER)return At.onTitleClick(pr),$e(si,At.props.eventKey,!0),!0;if(tn===E.a.RIGHT)return Xn?hn.onKeyDown(pr):(At.triggerOpenChange(!0),$e(si,At.props.eventKey,!0)),!0;if(tn===E.a.LEFT){var vi;if(Xn)vi=hn.onKeyDown(pr);else return;return vi||(At.triggerOpenChange(!1),vi=!0),vi}return Xn&&(tn===E.a.UP||tn===E.a.DOWN)?hn.onKeyDown(pr):void 0},At.onOpenChange=function(pr){At.props.onOpenChange(pr)},At.onPopupVisibleChange=function(pr){At.triggerOpenChange(pr,pr?"mouseenter":"mouseleave")},At.onMouseEnter=function(pr){var tn=At.props,hn=tn.eventKey,Mn=tn.onMouseEnter,Xn=tn.store;$e(Xn,At.props.eventKey,!1),Mn({key:hn,domEvent:pr})},At.onMouseLeave=function(pr){var tn=At.props,hn=tn.parentMenu,Mn=tn.eventKey,Xn=tn.onMouseLeave;hn.subMenuInstance=Object(s.a)(At),Xn({key:Mn,domEvent:pr})},At.onTitleMouseEnter=function(pr){var tn=At.props,hn=tn.eventKey,Mn=tn.onItemHover,Xn=tn.onTitleMouseEnter;Mn({key:hn,hover:!0}),Xn({key:hn,domEvent:pr})},At.onTitleMouseLeave=function(pr){var tn=At.props,hn=tn.parentMenu,Mn=tn.eventKey,Xn=tn.onItemHover,si=tn.onTitleMouseLeave;hn.subMenuInstance=Object(s.a)(At),Xn({key:Mn,hover:!1}),si({key:Mn,domEvent:pr})},At.onTitleClick=function(pr){var tn=Object(s.a)(At),hn=tn.props;if(hn.onTitleClick({key:hn.eventKey,domEvent:pr}),hn.triggerSubMenuAction==="hover")return;At.triggerOpenChange(!hn.isOpen,"click"),$e(hn.store,At.props.eventKey,!1)},At.onSubMenuClick=function(pr){typeof At.props.onClick=="function"&&At.props.onClick(At.addKeyPath(pr))},At.onSelect=function(pr){At.props.onSelect(pr)},At.onDeselect=function(pr){At.props.onDeselect(pr)},At.getPrefixCls=function(){return"".concat(At.props.rootPrefixCls,"-submenu")},At.getActiveClassName=function(){return"".concat(At.getPrefixCls(),"-active")},At.getDisabledClassName=function(){return"".concat(At.getPrefixCls(),"-disabled")},At.getSelectedClassName=function(){return"".concat(At.getPrefixCls(),"-selected")},At.getOpenClassName=function(){return"".concat(At.props.rootPrefixCls,"-submenu-open")},At.saveMenuInstance=function(pr){At.menuInstance=pr},At.addKeyPath=function(pr){return Object(l.a)(Object(l.a)({},pr),{},{keyPath:(pr.keyPath||[]).concat(At.props.eventKey)})},At.triggerOpenChange=function(pr,tn){var hn=At.props.eventKey,Mn=function(){At.onOpenChange({key:hn,item:Object(s.a)(At),trigger:tn,open:pr})};tn==="mouseenter"?At.mouseenterTimeout=setTimeout(function(){Mn()},0):Mn()},At.isChildrenSelected=function(){var pr={find:!1};return Ve(At.props.children,At.props.selectedKeys,pr),pr.find},At.isOpen=function(){return At.props.openKeys.indexOf(At.props.eventKey)!==-1},At.adjustWidth=function(){if(!At.subMenuTitle||!At.menuInstance)return;var pr=Ce.findDOMNode(At.menuInstance);if(pr.offsetWidth>=At.subMenuTitle.offsetWidth)return;pr.style.minWidth="".concat(At.subMenuTitle.offsetWidth,"px")},At.saveSubMenuTitle=function(pr){At.subMenuTitle=pr},At.getBaseProps=function(){var pr=Object(s.a)(At),tn=pr.props;return{mode:tn.mode==="horizontal"?"vertical":tn.mode,visible:At.props.isOpen,level:tn.level+1,inlineIndent:tn.inlineIndent,focusable:!1,onClick:At.onSubMenuClick,onSelect:At.onSelect,onDeselect:At.onDeselect,onDestroy:At.onDestroy,selectedKeys:tn.selectedKeys,eventKey:"".concat(tn.eventKey,"-menu-"),openKeys:tn.openKeys,motion:tn.motion,onOpenChange:At.onOpenChange,subMenuOpenDelay:tn.subMenuOpenDelay,parentMenu:Object(s.a)(At),subMenuCloseDelay:tn.subMenuCloseDelay,forceSubMenuRender:tn.forceSubMenuRender,triggerSubMenuAction:tn.triggerSubMenuAction,builtinPlacements:tn.builtinPlacements,defaultActiveFirst:tn.store.getState().defaultActiveFirst[se(tn.eventKey)],multiple:tn.multiple,prefixCls:tn.rootPrefixCls,id:At.internalMenuId,manualRef:At.saveMenuInstance,itemIcon:tn.itemIcon,expandIcon:tn.expandIcon,direction:tn.direction}},At.getMotion=function(pr,tn){var hn=Object(s.a)(At),Mn=hn.haveRendered,Xn=At.props,si=Xn.motion,vi=Xn.rootPrefixCls,xi=Object(l.a)(Object(l.a)({},si),{},{leavedClassName:"".concat(vi,"-hidden"),removeOnLeave:!1,motionAppear:Mn||!tn||pr!=="inline"});return xi};var Wt=Ft.store,ot=Ft.eventKey,Bt=Wt.getState(),Ar=Bt.defaultActiveFirst;At.isRootMenu=!1;var rr=!1;return Ar&&(rr=Ar[ot]),$e(Wt,ot,rr),At}return Object(a.a)(Rt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var At=this,Wt=this.props,ot=Wt.mode,Bt=Wt.parentMenu,Ar=Wt.manualRef;if(Ar&&Ar(this),ot!=="horizontal"||!Bt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return At.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var At=this.props,Wt=At.onDestroy,ot=At.eventKey;Wt&&Wt(ot),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(At){var Wt=this,ot=this.getBaseProps(),Bt=this.getMotion(ot.mode,ot.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||ot.visible||ot.forceSubMenuRender,!this.haveOpened)return e.createElement("div",null);var Ar=ot.direction;return e.createElement(Ae.default,Object.assign({visible:ot.visible},Bt),function(rr){var pr=rr.className,tn=rr.style,hn=I()("".concat(ot.prefixCls,"-sub"),pr,Object(y.a)({},"".concat(ot.prefixCls,"-rtl"),Ar==="rtl"));return e.createElement(_t,Object.assign({},ot,{id:Wt.internalMenuId,className:hn,style:tn}),At)})}},{key:"render",value:function(){var At,Wt=Object(l.a)({},this.props),ot=Wt.isOpen,Bt=this.getPrefixCls(),Ar=Wt.mode==="inline",rr=I()(Bt,"".concat(Bt,"-").concat(Wt.mode),(At={},Object(y.a)(At,Wt.className,!!Wt.className),Object(y.a)(At,this.getOpenClassName(),ot),Object(y.a)(At,this.getActiveClassName(),Wt.active||ot&&!Ar),Object(y.a)(At,this.getDisabledClassName(),Wt.disabled),Object(y.a)(At,this.getSelectedClassName(),this.isChildrenSelected()),At));this.internalMenuId||(Wt.eventKey?this.internalMenuId="".concat(Wt.eventKey,"$Menu"):(Le+=1,this.internalMenuId="$__$".concat(Le,"$Menu")));var pr={},tn={},hn={};Wt.disabled||(pr={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},tn={onClick:this.onTitleClick},hn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Mn={},Xn=Wt.direction;Ar&&(Xn==="rtl"?Mn.paddingRight=Wt.inlineIndent*Wt.level:Mn.paddingLeft=Wt.inlineIndent*Wt.level);var si={};this.props.isOpen&&(si={"aria-owns":this.internalMenuId});var vi=null;Wt.mode!=="horizontal"&&(vi=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(vi=e.createElement(this.props.expandIcon,Object(l.a)({},this.props))));var xi=e.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Mn,className:"".concat(Bt,"-title"),role:"button"},hn,tn,{"aria-expanded":ot},si,{"aria-haspopup":"true",title:typeof Wt.title=="string"?Wt.title:void 0}),Wt.title,vi||e.createElement("i",{className:"".concat(Bt,"-arrow")})),_i=this.renderChildren(Wt.children),Qe=Wt.parentMenu.isRootMenu?Wt.parentMenu.props.getPopupContainer:function(Sr){return Sr.parentNode},we=Ot[Wt.mode],Ne=Wt.popupOffset?{offset:Wt.popupOffset}:{},Fe=Wt.mode==="inline"?"":Wt.popupClassName;Fe+=Xn==="rtl"?" ".concat(Bt,"-rtl"):"";var Ye=Wt.disabled,We=Wt.triggerSubMenuAction,Ze=Wt.subMenuOpenDelay,mt=Wt.forceSubMenuRender,it=Wt.subMenuCloseDelay,Jt=Wt.builtinPlacements;ae.forEach(function(Sr){return delete Wt[Sr]}),delete Wt.onClick;var Dr=Xn==="rtl"?Object.assign({},gt,Jt):Object.assign({},Ge,Jt);return delete Wt.direction,e.createElement("li",Object.assign({},Wt,pr,{className:rr,role:"menuitem"}),Ar&&xi,Ar&&_i,!Ar&&e.createElement(ce.a,{prefixCls:Bt,popupClassName:I()("".concat(Bt,"-popup"),Fe),getPopupContainer:Qe,builtinPlacements:Dr,popupPlacement:we,popupVisible:ot,popupAlign:Ne,popup:_i,action:Ye?[]:[We],mouseEnterDelay:Ze,mouseLeaveDelay:it,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:mt},xi))}}]),Rt}(e.Component);xt.defaultProps={onMouseEnter:fe,onMouseLeave:fe,onTitleMouseEnter:fe,onTitleMouseLeave:fe,onTitleClick:fe,manualRef:fe,mode:"vertical",title:""};var Ht=Object(p.b)(function(rt,tt){var Rt=rt.openKeys,Ft=rt.activeKey,At=rt.selectedKeys,Wt=tt.eventKey,ot=tt.subMenuKey;return{isOpen:Rt.indexOf(Wt)>-1,active:Ft[ot]===Wt,selectedKeys:At}})(xt);Ht.isSubMenu=!0;var tr=Ht,Mt="menuitem-overflowed",Tt=.5,Xe=function(rt){Object(u.a)(Rt,rt);var tt=Object(h.a)(Rt);function Rt(){var Ft;return Object(t.a)(this,Rt),Ft=tt.apply(this,arguments),Ft.resizeObserver=null,Ft.mutationObserver=null,Ft.originalTotalWidth=0,Ft.overflowedItems=[],Ft.menuItemSizes=[],Ft.cancelFrameId=null,Ft.state={lastVisibleIndex:void 0},Ft.getMenuItemNodes=function(){var At=Ft.props.prefixCls,Wt=Ce.findDOMNode(Object(s.a)(Ft));return Wt?[].slice.call(Wt.children).filter(function(ot){return ot.className.split(" ").indexOf("".concat(At,"-overflowed-submenu"))<0}):[]},Ft.getOverflowedSubMenuItem=function(At,Wt,ot){var Bt=Ft.props,Ar=Bt.overflowedIndicator,rr=Bt.level,pr=Bt.mode,tn=Bt.prefixCls,hn=Bt.theme;if(rr!==1||pr!=="horizontal")return null;var Mn=Ft.props.children[0],Xn=Mn.props,si=Xn.children,vi=Xn.title,xi=Xn.style,_i=Object(ue.a)(Xn,["children","title","style"]),Qe=Object(l.a)({},xi),we="".concat(At,"-overflowed-indicator"),Ne="".concat(At,"-overflowed-indicator");Wt.length===0&&ot!==!0?Qe=Object(l.a)(Object(l.a)({},Qe),{},{display:"none"}):ot&&(Qe=Object(l.a)(Object(l.a)({},Qe),{},{visibility:"hidden",position:"absolute"}),we="".concat(we,"-placeholder"),Ne="".concat(Ne,"-placeholder"));var Fe=hn?"".concat(tn,"-").concat(hn):"",Ye={};return ae.forEach(function(We){_i[We]!==void 0&&(Ye[We]=_i[We])}),e.createElement(tr,Object.assign({title:Ar,className:"".concat(tn,"-overflowed-submenu"),popupClassName:Fe},Ye,{key:we,eventKey:Ne,disabled:!1,style:Qe}),Wt)},Ft.setChildrenWidthAndResize=function(){if(Ft.props.mode!=="horizontal")return;var At=Ce.findDOMNode(Object(s.a)(Ft));if(!At)return;var Wt=At.children;if(!Wt||Wt.length===0)return;var ot=At.children[Wt.length-1];G(ot,"display","inline-block");var Bt=Ft.getMenuItemNodes(),Ar=Bt.filter(function(rr){return rr.className.split(" ").indexOf(Mt)>=0});Ar.forEach(function(rr){G(rr,"display","inline-block")}),Ft.menuItemSizes=Bt.map(function(rr){return Q(rr,!0)}),Ar.forEach(function(rr){G(rr,"display","none")}),Ft.overflowedIndicatorWidth=Q(At.children[At.children.length-1],!0),Ft.originalTotalWidth=Ft.menuItemSizes.reduce(function(rr,pr){return rr+pr},0),Ft.handleResize(),G(ot,"display","none")},Ft.handleResize=function(){if(Ft.props.mode!=="horizontal")return;var At=Ce.findDOMNode(Object(s.a)(Ft));if(!At)return;var Wt=Q(At);Ft.overflowedItems=[];var ot=0,Bt;Ft.originalTotalWidth>Wt+Tt&&(Bt=-1,Ft.menuItemSizes.forEach(function(Ar){ot+=Ar,ot+Ft.overflowedIndicatorWidth<=Wt&&(Bt+=1)})),Ft.setState({lastVisibleIndex:Bt})},Ft}return Object(a.a)(Rt,[{key:"componentDidMount",value:function(){var At=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Wt=Ce.findDOMNode(this);if(!Wt)return;this.resizeObserver=new Ie.default(function(ot){ot.forEach(function(){var Bt=At.cancelFrameId;cancelAnimationFrame(Bt),At.cancelFrameId=requestAnimationFrame(At.setChildrenWidthAndResize)})}),[].slice.call(Wt.children).concat(Wt).forEach(function(ot){At.resizeObserver.observe(ot)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){At.resizeObserver.disconnect(),[].slice.call(Wt.children).concat(Wt).forEach(function(ot){At.resizeObserver.observe(ot)}),At.setChildrenWidthAndResize()}),this.mutationObserver.observe(Wt,{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(At){var Wt=this,ot=this.state.lastVisibleIndex;return(At||[]).reduce(function(Bt,Ar,rr){var pr=Ar;if(Wt.props.mode==="horizontal"){var tn=Wt.getOverflowedSubMenuItem(Ar.props.eventKey,[]);ot!==void 0&&Wt.props.className.indexOf("".concat(Wt.props.prefixCls,"-root"))!==-1&&(rr>ot&&(pr=e.cloneElement(Ar,{style:{display:"none"},eventKey:"".concat(Ar.props.eventKey,"-hidden"),className:"".concat(Mt)})),rr===ot+1&&(Wt.overflowedItems=At.slice(ot+1).map(function(Mn){return e.cloneElement(Mn,{key:Mn.props.eventKey,mode:"vertical-left"})}),tn=Wt.getOverflowedSubMenuItem(Ar.props.eventKey,Wt.overflowedItems)));var hn=[].concat(Object(me.a)(Bt),[tn,pr]);return rr===At.length-1&&hn.push(Wt.getOverflowedSubMenuItem(Ar.props.eventKey,[],!0)),hn}return[].concat(Object(me.a)(Bt),[pr])},[])}},{key:"render",value:function(){var At=this.props,Wt=At.visible,ot=At.prefixCls,Bt=At.overflowedIndicator,Ar=At.mode,rr=At.level,pr=At.tag,tn=At.children,hn=At.theme,Mn=Object(ue.a)(At,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Xn=pr;return e.createElement(Xn,Object.assign({},Mn),this.renderChildren(tn))}}]),Rt}(e.Component);Xe.defaultProps={tag:"div",className:""};var oe=Xe;function X(rt){return rt.length?rt.every(function(tt){return!!tt.props.disabled}):!0}function Be(rt,tt,Rt){var Ft=rt.getState();rt.setState({activeKey:Object(l.a)(Object(l.a)({},Ft.activeKey),{},Object(y.a)({},tt,Rt))})}function Ee(rt){return rt.eventKey||"0-menu-"}function ee(rt,tt){var Rt=tt,Ft=rt.children,At=rt.eventKey;if(Rt){var Wt;if(te(Ft,function(ot,Bt){ot&&ot.props&&!ot.props.disabled&&Rt===ke(ot,At,Bt)&&(Wt=!0)}),Wt)return Rt}return Rt=null,rt.defaultActiveFirst&&te(Ft,function(ot,Bt){!Rt&&ot&&!ot.props.disabled&&(Rt=ke(ot,At,Bt))}),Rt}function lt(rt){if(rt){var tt=this.instanceArray.indexOf(rt);tt!==-1?this.instanceArray[tt]=rt:this.instanceArray.push(rt)}}var Ct=function(rt){Object(u.a)(Rt,rt);var tt=Object(h.a)(Rt);function Rt(Ft){var At;return Object(t.a)(this,Rt),At=tt.call(this,Ft),At.onKeyDown=function(Wt,ot){var Bt=Wt.keyCode,Ar;if(At.getFlatInstanceArray().forEach(function(pr){pr&&pr.props.active&&pr.onKeyDown&&(Ar=pr.onKeyDown(Wt))}),Ar)return 1;var rr=null;return(Bt===E.a.UP||Bt===E.a.DOWN)&&(rr=At.step(Bt===E.a.UP?-1:1)),rr?(Wt.preventDefault(),Be(At.props.store,Ee(At.props),rr.props.eventKey),typeof ot=="function"&&ot(rr),1):void 0},At.onItemHover=function(Wt){var ot=Wt.key,Bt=Wt.hover;Be(At.props.store,Ee(At.props),Bt?ot:null)},At.onDeselect=function(Wt){At.props.onDeselect(Wt)},At.onSelect=function(Wt){At.props.onSelect(Wt)},At.onClick=function(Wt){At.props.onClick(Wt)},At.onOpenChange=function(Wt){At.props.onOpenChange(Wt)},At.onDestroy=function(Wt){At.props.onDestroy(Wt)},At.getFlatInstanceArray=function(){return At.instanceArray},At.step=function(Wt){var ot=At.getFlatInstanceArray(),Bt=At.props.store.getState().activeKey[Ee(At.props)],Ar=ot.length;if(!Ar)return null;Wt<0&&(ot=ot.concat().reverse());var rr=-1;if(ot.every(function(Mn,Xn){return Mn&&Mn.props.eventKey===Bt?(rr=Xn,!1):!0}),!At.props.defaultActiveFirst&&rr!==-1&&X(ot.slice(rr,Ar-1)))return;var pr=(rr+1)%Ar,tn=pr;do{var hn=ot[tn];if(!hn||hn.props.disabled)tn=(tn+1)%Ar;else return hn}while(tn!==pr);return null},At.renderCommonMenuItem=function(Wt,ot,Bt){var Ar=At.props.store.getState(),rr=Object(s.a)(At),pr=rr.props,tn=ke(Wt,pr.eventKey,ot),hn=Wt.props;if(!hn||typeof Wt.type=="string")return Wt;var Mn=tn===Ar.activeKey,Xn=Object(l.a)(Object(l.a)({mode:hn.mode||pr.mode,level:pr.level,inlineIndent:pr.inlineIndent,renderMenuItem:At.renderMenuItem,rootPrefixCls:pr.prefixCls,index:ot,parentMenu:pr.parentMenu,manualRef:hn.disabled?void 0:Object(T.a)(Wt.ref,lt.bind(Object(s.a)(At))),eventKey:tn,active:!hn.disabled&&Mn,multiple:pr.multiple,onClick:function(vi){(hn.onClick||fe)(vi),At.onClick(vi)},onItemHover:At.onItemHover,motion:pr.motion,subMenuOpenDelay:pr.subMenuOpenDelay,subMenuCloseDelay:pr.subMenuCloseDelay,forceSubMenuRender:pr.forceSubMenuRender,onOpenChange:At.onOpenChange,onDeselect:At.onDeselect,onSelect:At.onSelect,builtinPlacements:pr.builtinPlacements,itemIcon:hn.itemIcon||At.props.itemIcon,expandIcon:hn.expandIcon||At.props.expandIcon},Bt),{},{direction:pr.direction});return(pr.mode==="inline"||Y())&&(Xn.triggerSubMenuAction="click"),e.cloneElement(Wt,Xn)},At.renderMenuItem=function(Wt,ot,Bt){if(!Wt)return null;var Ar=At.props.store.getState(),rr={openKeys:Ar.openKeys,selectedKeys:Ar.selectedKeys,triggerSubMenuAction:At.props.triggerSubMenuAction,subMenuKey:Bt};return At.renderCommonMenuItem(Wt,ot,rr)},Ft.store.setState({activeKey:Object(l.a)(Object(l.a)({},Ft.store.getState().activeKey),{},Object(y.a)({},Ft.eventKey,ee(Ft,Ft.activeKey)))}),At.instanceArray=[],At}return Object(a.a)(Rt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(At){return this.props.visible||At.visible||this.props.className!==At.className||!w()(this.props.style,At.style)}},{key:"componentDidUpdate",value:function(At){var Wt=this.props,ot="activeKey"in Wt?Wt.activeKey:Wt.store.getState().activeKey[Ee(Wt)],Bt=ee(Wt,ot);if(Bt!==ot)Be(Wt.store,Ee(Wt),Bt);else if("activeKey"in At){var Ar=ee(At,At.activeKey);Bt!==Ar&&Be(Wt.store,Ee(Wt),Bt)}}},{key:"render",value:function(){var At=this,Wt=Object(v.a)({},this.props);this.instanceArray=[];var ot=I()(Wt.prefixCls,Wt.className,"".concat(Wt.prefixCls,"-").concat(Wt.mode)),Bt={className:ot,role:Wt.role||"menu"};Wt.id&&(Bt.id=Wt.id),Wt.focusable&&(Bt.tabIndex=0,Bt.onKeyDown=this.onKeyDown);var Ar=Wt.prefixCls,rr=Wt.eventKey,pr=Wt.visible,tn=Wt.level,hn=Wt.mode,Mn=Wt.overflowedIndicator,Xn=Wt.theme;return ae.forEach(function(si){return delete Wt[si]}),delete Wt.onClick,e.createElement(oe,Object.assign({},Wt,{prefixCls:Ar,mode:hn,tag:"ul",level:tn,theme:Xn,visible:pr,overflowedIndicator:Mn},Bt),e.Children.map(Wt.children,function(si,vi){return At.renderMenuItem(si,vi,rr||"0-menu-")}))}}]),Rt}(e.Component);Ct.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:fe};var dt=Object(p.b)()(Ct),_t=dt,ir=d("Kwbf");function $r(rt,tt,Rt){var Ft=rt.prefixCls,At=rt.motion,Wt=rt.defaultMotions,ot=Wt===void 0?{}:Wt,Bt=rt.openAnimation,Ar=rt.openTransitionName,rr=tt.switchingModeFromInline;if(At)return At;if(Object(L.a)(Bt)==="object"&&Bt)Object(ir.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Bt=="string")return{motionName:"".concat(Ft,"-open-").concat(Bt)};if(Ar)return{motionName:Ar};var pr=ot[Rt];return pr||(rr?null:ot.other)}var nr=function(rt){Object(u.a)(Rt,rt);var tt=Object(h.a)(Rt);function Rt(Ft){var At;Object(t.a)(this,Rt),At=tt.call(this,Ft),At.inlineOpenKeys=[],At.onSelect=function(Bt){var Ar=Object(s.a)(At),rr=Ar.props;if(rr.selectable){var pr=At.store.getState(),tn=pr.selectedKeys,hn=Bt.key;rr.multiple?tn=tn.concat([hn]):tn=[hn],"selectedKeys"in rr||At.store.setState({selectedKeys:tn}),rr.onSelect(Object(l.a)(Object(l.a)({},Bt),{},{selectedKeys:tn}))}},At.onClick=function(Bt){var Ar=At.getRealMenuMode(),rr=Object(s.a)(At),pr=rr.store,tn=rr.props.onOpenChange;Ar!=="inline"&&!("openKeys"in At.props)&&(pr.setState({openKeys:[]}),tn([])),At.props.onClick(Bt)},At.onKeyDown=function(Bt,Ar){At.innerMenu.getWrappedInstance().onKeyDown(Bt,Ar)},At.onOpenChange=function(Bt){var Ar=Object(s.a)(At),rr=Ar.props,pr=At.store.getState().openKeys.concat(),tn=!1,hn=function(Xn){var si=!1;if(Xn.open)si=pr.indexOf(Xn.key)===-1,si&&pr.push(Xn.key);else{var vi=pr.indexOf(Xn.key);si=vi!==-1,si&&pr.splice(vi,1)}tn=tn||si};Array.isArray(Bt)?Bt.forEach(hn):hn(Bt),tn&&("openKeys"in At.props||At.store.setState({openKeys:pr}),rr.onOpenChange(pr))},At.onDeselect=function(Bt){var Ar=Object(s.a)(At),rr=Ar.props;if(rr.selectable){var pr=At.store.getState().selectedKeys.concat(),tn=Bt.key,hn=pr.indexOf(tn);hn!==-1&&pr.splice(hn,1),"selectedKeys"in rr||At.store.setState({selectedKeys:pr}),rr.onDeselect(Object(l.a)(Object(l.a)({},Bt),{},{selectedKeys:pr}))}},At.onMouseEnter=function(Bt){At.restoreModeVerticalFromInline();var Ar=At.props.onMouseEnter;Ar&&Ar(Bt)},At.onTransitionEnd=function(Bt){var Ar=Bt.propertyName==="width"&&Bt.target===Bt.currentTarget,rr=Bt.target.className,pr=Object.prototype.toString.call(rr)==="[object SVGAnimatedString]"?rr.animVal:rr,tn=Bt.propertyName==="font-size"&&pr.indexOf("anticon")>=0;(Ar||tn)&&At.restoreModeVerticalFromInline()},At.setInnerMenu=function(Bt){At.innerMenu=Bt},At.isRootMenu=!0;var Wt=Ft.defaultSelectedKeys,ot=Ft.defaultOpenKeys;return"selectedKeys"in Ft&&(Wt=Ft.selectedKeys||[]),"openKeys"in Ft&&(ot=Ft.openKeys||[]),At.store=Object(p.c)({selectedKeys:Wt,openKeys:ot,activeKey:{"0-menu-":ee(Ft,Ft.activeKey)}}),At.state={switchingModeFromInline:!1},At}return Object(a.a)(Rt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(At){this.updateOpentKeysWhenSwitchMode(At),this.updateMiniStore();var Wt=this.props,ot=Wt.siderCollapsed,Bt=Wt.inlineCollapsed,Ar=Wt.onOpenChange;(!At.inlineCollapsed&&Bt||!At.siderCollapsed&&ot)&&Ar([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(At){var Wt=this.props,ot=this.store,Bt=this.inlineOpenKeys,Ar=ot.getState(),rr={};At.mode==="inline"&&Wt.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Wt||((Wt.inlineCollapsed&&!At.inlineCollapsed||Wt.siderCollapsed&&!At.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Ar.openKeys.concat(),rr.openKeys=[]),(!Wt.inlineCollapsed&&At.inlineCollapsed||!Wt.siderCollapsed&&At.siderCollapsed)&&(rr.openKeys=Bt,this.inlineOpenKeys=[])),Object.keys(rr).length&&ot.setState(rr)}},{key:"updateMenuDisplay",value:function(){var At=this.props.collapsedWidth,Wt=this.store,ot=this.prevOpenKeys,Bt=this.getInlineCollapsed()&&(At===0||At==="0"||At==="0px");Bt?(this.prevOpenKeys=Wt.getState().openKeys.concat(),this.store.setState({openKeys:[]})):ot&&(this.store.setState({openKeys:ot}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var At=this.props.mode,Wt=this.state.switchingModeFromInline,ot=this.getInlineCollapsed();return Wt&&ot?"inline":ot?"vertical":At}},{key:"getInlineCollapsed",value:function(){var At=this.props,Wt=At.inlineCollapsed,ot=At.siderCollapsed;return ot!==void 0?ot:Wt}},{key:"restoreModeVerticalFromInline",value:function(){var At=this.state.switchingModeFromInline;At&&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 At=Object(l.a)({},Object(m.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Wt=this.getRealMenuMode();return At.className+=" ".concat(At.prefixCls,"-root"),At.direction==="rtl"&&(At.className+=" ".concat(At.prefixCls,"-rtl")),At=Object(l.a)(Object(l.a)({},At),{},{mode:Wt,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:$r(this.props,this.state,Wt)}),delete At.openAnimation,delete At.openTransitionName,e.createElement(p.a,{store:this.store},e.createElement(_t,Object.assign({},At,{ref:this.setInnerMenu}),this.props.children))}}]),Rt}(e.Component);nr.defaultProps={selectable:!0,onClick:fe,onSelect:fe,onOpenChange:fe,onDeselect:fe,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 lr=nr,zt=function(rt){Object(u.a)(Rt,rt);var tt=Object(h.a)(Rt);function Rt(){var Ft;return Object(t.a)(this,Rt),Ft=tt.apply(this,arguments),Ft.onKeyDown=function(At){var Wt=At.keyCode;return Wt===E.a.ENTER?(Ft.onClick(At),!0):void 0},Ft.onMouseLeave=function(At){var Wt=Ft.props,ot=Wt.eventKey,Bt=Wt.onItemHover,Ar=Wt.onMouseLeave;Bt({key:ot,hover:!1}),Ar({key:ot,domEvent:At})},Ft.onMouseEnter=function(At){var Wt=Ft.props,ot=Wt.eventKey,Bt=Wt.onItemHover,Ar=Wt.onMouseEnter;Bt({key:ot,hover:!0}),Ar({key:ot,domEvent:At})},Ft.onClick=function(At){var Wt=Ft.props,ot=Wt.eventKey,Bt=Wt.multiple,Ar=Wt.onClick,rr=Wt.onSelect,pr=Wt.onDeselect,tn=Wt.isSelected,hn={key:ot,keyPath:[ot],item:Object(s.a)(Ft),domEvent:At};Ar(hn),Bt?tn?pr(hn):rr(hn):tn||rr(hn)},Ft.saveNode=function(At){Ft.node=At},Ft}return Object(a.a)(Rt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var At=this.props;At.onDestroy&&At.onDestroy(At.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 At,Wt=Object(l.a)({},this.props),ot=I()(this.getPrefixCls(),Wt.className,(At={},Object(y.a)(At,this.getActiveClassName(),!Wt.disabled&&Wt.active),Object(y.a)(At,this.getSelectedClassName(),Wt.isSelected),Object(y.a)(At,this.getDisabledClassName(),Wt.disabled),At)),Bt=Object(l.a)(Object(l.a)({},Wt.attribute),{},{title:typeof Wt.title=="string"?Wt.title:void 0,className:ot,role:Wt.role||"menuitem","aria-disabled":Wt.disabled});Wt.role==="option"?Bt=Object(l.a)(Object(l.a)({},Bt),{},{role:"option","aria-selected":Wt.isSelected}):(Wt.role===null||Wt.role==="none")&&(Bt.role="none");var Ar={onClick:Wt.disabled?null:this.onClick,onMouseLeave:Wt.disabled?null:this.onMouseLeave,onMouseEnter:Wt.disabled?null:this.onMouseEnter},rr=Object(l.a)({},Wt.style);Wt.mode==="inline"&&(Wt.direction==="rtl"?rr.paddingRight=Wt.inlineIndent*Wt.level:rr.paddingLeft=Wt.inlineIndent*Wt.level),ae.forEach(function(tn){return delete Wt[tn]}),delete Wt.direction;var pr=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(pr=e.createElement(this.props.itemIcon,this.props)),e.createElement("li",Object.assign({},Object(m.default)(Wt,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Bt,Ar,{style:rr,ref:this.saveNode}),Wt.children,pr)}}]),Rt}(e.Component);zt.isMenuItem=!0,zt.defaultProps={onSelect:fe,onMouseEnter:fe,onMouseLeave:fe,manualRef:fe};var Ut=Object(p.b)(function(rt,tt){var Rt=rt.activeKey,Ft=rt.selectedKeys,At=tt.eventKey,Wt=tt.subMenuKey;return{active:Rt[Wt]===At,isSelected:Ft.indexOf(At)!==-1}})(zt),st=Ut,Hr=function(rt){Object(u.a)(Rt,rt);var tt=Object(h.a)(Rt);function Rt(){var Ft;return Object(t.a)(this,Rt),Ft=tt.apply(this,arguments),Ft.renderInnerMenuItem=function(At){var Wt=Ft.props,ot=Wt.renderMenuItem,Bt=Wt.index;return ot(At,Bt,Ft.props.subMenuKey)},Ft}return Object(a.a)(Rt,[{key:"render",value:function(){var At=Object(v.a)({},this.props),Wt=At.className,ot=Wt===void 0?"":Wt,Bt=At.rootPrefixCls,Ar="".concat(Bt,"-item-group-title"),rr="".concat(Bt,"-item-group-list"),pr=At.title,tn=At.children;return ae.forEach(function(hn){return delete At[hn]}),delete At.onClick,delete At.direction,e.createElement("li",Object.assign({},At,{className:"".concat(ot," ").concat(Bt,"-item-group")}),e.createElement("div",{className:Ar,title:typeof pr=="string"?pr:void 0},pr),e.createElement("ul",{className:rr},e.Children.map(tn,this.renderInnerMenuItem)))}}]),Rt}(e.Component);Hr.isMenuItemGroup=!0,Hr.defaultProps={disabled:!0};var mn=Hr,In=function(tt){var Rt=tt.className,Ft=tt.rootPrefixCls,At=tt.style;return e.createElement("li",{className:"".concat(Rt," ").concat(Ft,"-item-divider"),style:At})};In.defaultProps={disabled:!0,className:"",style:{}};var Yn=In,Mi=lr,wn=Object(e.createContext)({inlineCollapsed:!1}),Rn=wn,kt=d("0n0R"),vt=function(rt){r()(Rt,rt);var tt=n()(Rt);function Rt(){return g()(this,Rt),tt.apply(this,arguments)}return c()(Rt,[{key:"renderTitle",value:function(At){var Wt=this.props,ot=Wt.icon,Bt=Wt.title,Ar=Wt.level,rr=Wt.rootPrefixCls;if(!ot)return At&&Ar===1&&Bt&&typeof Bt=="string"?e.createElement("div",{className:"".concat(rr,"-inline-collapsed-noicon")},Bt.charAt(0)):Bt;var pr=Object(kt.b)(Bt)&&Bt.type==="span";return e.createElement(e.Fragment,null,ot,pr?Bt:e.createElement("span",null,Bt))}},{key:"render",value:function(){var At=this,Wt=this.props,ot=Wt.rootPrefixCls,Bt=Wt.popupClassName;return e.createElement(Rn.Consumer,null,function(Ar){var rr=Ar.inlineCollapsed,pr=Ar.antdMenuTheme;return e.createElement(tr,x()({},Object(m.default)(At.props,["icon"]),{title:At.renderTitle(rr),popupClassName:I()(ot,"".concat(ot,"-").concat(pr),Bt)}))})}}]),Rt}(e.Component);vt.contextType=Rn,vt.isSubMenu=1;var Re=vt,Ke=d("Zm9Q"),Pe=d("3S7+"),nt=d("ZX9x"),yt=function(rt,tt){var Rt={};for(var Ft in rt)Object.prototype.hasOwnProperty.call(rt,Ft)&&tt.indexOf(Ft)<0&&(Rt[Ft]=rt[Ft]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,Ft=Object.getOwnPropertySymbols(rt);At<Ft.length;At++)tt.indexOf(Ft[At])<0&&Object.prototype.propertyIsEnumerable.call(rt,Ft[At])&&(Rt[Ft[At]]=rt[Ft[At]]);return Rt},Dt=function(rt){r()(Rt,rt);var tt=n()(Rt);function Rt(){var Ft;return g()(this,Rt),Ft=tt.apply(this,arguments),Ft.renderItem=function(At){var Wt=At.siderCollapsed,ot=Ft.props,Bt=ot.level,Ar=ot.className,rr=ot.children,pr=ot.rootPrefixCls,tn=Ft.props,hn=tn.title,Mn=tn.icon,Xn=tn.danger,si=yt(tn,["title","icon","danger"]);return e.createElement(Rn.Consumer,null,function(vi){var xi,_i=vi.inlineCollapsed,Qe=vi.direction,we=hn;typeof hn=="undefined"?we=Bt===1?rr:"":hn===!1&&(we="");var Ne={title:we};!Wt&&!_i&&(Ne.title=null,Ne.visible=!1);var Fe=Object(Ke.a)(rr).length;return e.createElement(Pe.a,x()({},Ne,{placement:Qe==="rtl"?"left":"right",overlayClassName:"".concat(pr,"-inline-collapsed-tooltip")}),e.createElement(st,x()({},si,{className:I()(Ar,(xi={},A()(xi,"".concat(pr,"-item-danger"),Xn),A()(xi,"".concat(pr,"-item-only-child"),(Mn?Fe+1:Fe)===1),xi)),title:hn}),Mn,Ft.renderItemChildren(_i)))})},Ft}return c()(Rt,[{key:"renderItemChildren",value:function(At){var Wt=this.props,ot=Wt.icon,Bt=Wt.children,Ar=Wt.level,rr=Wt.rootPrefixCls;return!ot||Object(kt.b)(Bt)&&Bt.type==="span"?Bt&&At&&Ar===1&&typeof Bt=="string"?e.createElement("div",{className:"".concat(rr,"-inline-collapsed-noicon")},Bt.charAt(0)):Bt:e.createElement("span",null,Bt)}},{key:"render",value:function(){return e.createElement(nt.a.Consumer,null,this.renderItem)}}]),Rt}(e.Component);Dt.isMenuItem=!0;var bt=d("H84U"),It=d("uaoM"),gr=d("EXcs"),kr=function(rt){r()(Rt,rt);var tt=n()(Rt);function Rt(Ft){var At;return g()(this,Rt),At=tt.call(this,Ft),At.renderMenu=function(Wt){var ot=Wt.getPopupContainer,Bt=Wt.getPrefixCls,Ar=Wt.direction,rr=At.props,pr=rr.prefixCls,tn=rr.className,hn=rr.theme,Mn={horizontal:{motionName:"slide-up"},inline:gr.a,other:{motionName:"zoom-big"}},Xn=Bt("menu",pr),si=I()(tn,"".concat(Xn,"-").concat(hn),A()({},"".concat(Xn,"-inline-collapsed"),At.getInlineCollapsed()));return e.createElement(Rn.Provider,{value:{inlineCollapsed:At.getInlineCollapsed()||!1,antdMenuTheme:hn,direction:Ar}},e.createElement(Mi,x()({getPopupContainer:ot},At.props,{className:si,prefixCls:Xn,direction:Ar,defaultMotions:Mn})))},Object(It.a)(!("inlineCollapsed"in Ft&&Ft.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(It.a)(!(Ft.siderCollapsed!==void 0&&"inlineCollapsed"in Ft),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),At}return c()(Rt,[{key:"getInlineCollapsed",value:function(){var At=this.props,Wt=At.inlineCollapsed,ot=At.siderCollapsed;return ot!==void 0?ot:Wt}},{key:"render",value:function(){return e.createElement(bt.a,null,this.renderMenu)}}]),Rt}(e.Component);kr.defaultProps={className:"",theme:"light",focusable:!1};var wt=function(rt){r()(Rt,rt);var tt=n()(Rt);function Rt(){return g()(this,Rt),tt.apply(this,arguments)}return c()(Rt,[{key:"render",value:function(){var At=this;return e.createElement(nt.a.Consumer,null,function(Wt){return e.createElement(kr,x()({},At.props,Wt))})}}]),Rt}(e.Component);wt.Divider=Yn,wt.Item=Dt,wt.SubMenu=Re,wt.ItemGroup=mn},C0SR:function(H,F,d){var O=d("YH21"),x=function(){this._track=[]};x.prototype={constructor:x,recognize:function(c,o,r){return this._doTrack(c,o,r),this._recognize(c)},clear:function(){return this._track.length=0,this},_doTrack:function(c,o,r){var i=c.touches;if(!i)return;for(var n={points:[],touches:[],target:o,event:c},e=0,l=i.length;e<l;e++){var t=i[e],a=O.clientToLocal(r,t,{});n.points.push([a.zrX,a.zrY]),n.touches.push(t)}this._track.push(n)},_recognize:function(c){for(var o in S)if(S.hasOwnProperty(o)){var r=S[o](this._track,c);if(r)return r}}};function C(f){var c=f[1][0]-f[0][0],o=f[1][1]-f[0][1];return Math.sqrt(c*c+o*o)}function A(f){return[(f[0][0]+f[1][0])/2,(f[0][1]+f[1][1])/2]}var S={pinch:function(c,o){var r=c.length;if(!r)return;var i=(c[r-1]||{}).points,n=(c[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var e=C(i)/C(n);!isFinite(e)&&(e=1),o.pinchScale=e;var l=A(i);return o.pinchX=l[0],o.pinchY=l[1],{type:"pinch",target:c[0].target,event:o}}}},g=x;H.exports=g},C0tN:function(H,F,d){d("0o9m"),d("8Uz6"),d("Ducp"),d("6/nd")},CBdT:function(H,F,d){var O=d("ProS");d("8waO"),d("AEZ6"),d("YNf1");var x=d("q3GZ");O.registerVisual(x)},CF2D:function(H,F,d){var O=d("ProS");d("vZI5"),d("GeKi");var x=d("6r85"),C=d("TJmX"),A=d("CbHG");O.registerPreprocessor(x),O.registerVisual(C),O.registerLayout(A)},CFYs:function(H,F,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),S=d("lwsE"),g=d.n(S),f=d("W8MJ"),c=d.n(f),o=d("PJYZ"),r=d.n(o),i=d("7W2i"),n=d.n(i),e=d("LQ03"),l=d.n(e),t=d("q1tI"),a=d.n(t),s=d("TSYQ"),u=d.n(s),h=d("BGR+"),p=d("V/uB"),m=d.n(p),v=d("NAnI"),y=d.n(v),E=d("J84W"),T=d.n(E),b=d("kbBi"),w=d.n(b),_=d("H84U"),I=d("CWQg"),L=d("uaoM"),N=d("Zss7"),D=d.n(N),R=2,k=.16,M=.05,U=.05,B=.15,j=5,W=4,V=[{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 z(Dt,bt,It){var gr;return Math.round(Dt.h)>=60&&Math.round(Dt.h)<=240?gr=It?Math.round(Dt.h)-R*bt:Math.round(Dt.h)+R*bt:gr=It?Math.round(Dt.h)+R*bt:Math.round(Dt.h)-R*bt,gr<0?gr+=360:gr>=360&&(gr-=360),gr}function J(Dt,bt,It){if(Dt.h===0&&Dt.s===0)return Dt.s;var gr;return It?gr=Dt.s-k*bt:bt===W?gr=Dt.s+k:gr=Dt.s+M*bt,gr>1&&(gr=1),It&&bt===j&&gr>.1&&(gr=.1),gr<.06&&(gr=.06),Number(gr.toFixed(2))}function Z(Dt,bt,It){var gr;return It?gr=Dt.v+U*bt:gr=Dt.v-B*bt,gr>1&&(gr=1),Number(gr.toFixed(2))}function de(Dt){for(var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},It=[],gr=D()(Dt),kr=j;kr>0;kr-=1){var wt=gr.toHsv(),rt=D()({h:z(wt,kr,!0),s:J(wt,kr,!0),v:Z(wt,kr,!0)}).toHexString();It.push(rt)}It.push(gr.toHexString());for(var tt=1;tt<=W;tt+=1){var Rt=gr.toHsv(),Ft=D()({h:z(Rt,tt),s:J(Rt,tt),v:Z(Rt,tt)}).toHexString();It.push(Ft)}return bt.theme==="dark"?V.map(function(At){var Wt=At.index,ot=At.opacity,Bt=D.a.mix(bt.backgroundColor||"#141414",It[Wt],ot*100).toHexString();return Bt}):It}var ie={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"},ve={},xe={};Object.keys(ie).forEach(function(Dt){ve[Dt]=de(ie[Dt]),ve[Dt].primary=ve[Dt][5],xe[Dt]=de(ie[Dt],{theme:"dark",backgroundColor:"#141414"}),xe[Dt].primary=xe[Dt][5]});var _e=ve.red,Ue=ve.volcano,fe=ve.gold,ke=ve.orange,se=ve.yellow,te=ve.lime,Ve=ve.green,ae=ve.cyan,Q=ve.blue,G=ve.geekblue,Y=ve.purple,me=ve.magenta,ue=ve.grey;function Ce(Dt){return!Dt||Dt<0?0:Dt>100?100:Dt}function Ie(Dt){var bt=Dt.success,It=Dt.successPercent,gr=It;return bt&&"progress"in bt&&(Object(L.a)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),gr=bt.progress),bt&&"percent"in bt&&(gr=bt.percent),gr}var ce=function(Dt,bt){var It={};for(var gr in Dt)Object.prototype.hasOwnProperty.call(Dt,gr)&&bt.indexOf(gr)<0&&(It[gr]=Dt[gr]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kr=0,gr=Object.getOwnPropertySymbols(Dt);kr<gr.length;kr++)bt.indexOf(gr[kr])<0&&Object.prototype.propertyIsEnumerable.call(Dt,gr[kr])&&(It[gr[kr]]=Dt[gr[kr]]);return It},Ae=function(bt){var It=[];return Object.keys(bt).forEach(function(gr){var kr=parseFloat(gr.replace(/%/g,""));isNaN(kr)||It.push({key:kr,value:bt[gr]})}),It=It.sort(function(gr,kr){return gr.key-kr.key}),It.map(function(gr){var kr=gr.key,wt=gr.value;return"".concat(wt," ").concat(kr,"%")}).join(", ")},Te=function(bt){var It=bt.from,gr=It===void 0?ie.blue:It,kr=bt.to,wt=kr===void 0?ie.blue:kr,rt=bt.direction,tt=rt===void 0?"to right":rt,Rt=ce(bt,["from","to","direction"]);if(Object.keys(Rt).length!==0){var Ft=Ae(Rt);return{backgroundImage:"linear-gradient(".concat(tt,", ").concat(Ft,")")}}return{backgroundImage:"linear-gradient(".concat(tt,", ").concat(gr,", ").concat(wt,")")}},Ge=function(bt){var It=bt.prefixCls,gr=bt.percent,kr=bt.strokeWidth,wt=bt.size,rt=bt.strokeColor,tt=bt.strokeLinecap,Rt=bt.children,Ft=bt.trailColor,At=bt.success,Wt=rt&&typeof rt!="string"?Te(rt):{background:rt},ot=Ft?{backgroundColor:Ft}:void 0,Bt=A()({width:"".concat(Ce(gr),"%"),height:kr||(wt==="small"?6:8),borderRadius:tt==="square"?0:""},Wt),Ar=Ie(bt),rr={width:"".concat(Ce(Ar),"%"),height:kr||(wt==="small"?6:8),borderRadius:tt==="square"?0:"",backgroundColor:At==null?void 0:At.strokeColor},pr=Ar!==void 0?t.createElement("div",{className:"".concat(It,"-success-bg"),style:rr}):null;return t.createElement(t.Fragment,null,t.createElement("div",{className:"".concat(It,"-outer")},t.createElement("div",{className:"".concat(It,"-inner"),style:ot},t.createElement("div",{className:"".concat(It,"-bg"),style:Bt}),pr)),Rt)},gt=Ge,qe={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},Le=function(bt){var It=bt.map(function(){return Object(t.useRef)()}),gr=Object(t.useRef)();return Object(t.useEffect)(function(){var kr=Date.now(),wt=!1;Object.keys(It).forEach(function(rt){var tt=It[rt].current;if(!tt)return;wt=!0;var Rt=tt.style;Rt.transitionDuration=".3s, .3s, .3s, .06s",gr.current&&kr-gr.current<100&&(Rt.transitionDuration="0s, 0s")}),wt&&(gr.current=Date.now())}),[It]};function Ot(){return Ot=Object.assign||function(Dt){for(var bt=1;bt<arguments.length;bt++){var It=arguments[bt];for(var gr in It)Object.prototype.hasOwnProperty.call(It,gr)&&(Dt[gr]=It[gr])}return Dt},Ot.apply(this,arguments)}function $e(Dt,bt){return Tt(Dt)||Mt(Dt,bt)||Ht(Dt,bt)||xt()}function xt(){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 Ht(Dt,bt){if(!Dt)return;if(typeof Dt=="string")return tr(Dt,bt);var It=Object.prototype.toString.call(Dt).slice(8,-1);if(It==="Object"&&Dt.constructor&&(It=Dt.constructor.name),It==="Map"||It==="Set")return Array.from(Dt);if(It==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(It))return tr(Dt,bt)}function tr(Dt,bt){(bt==null||bt>Dt.length)&&(bt=Dt.length);for(var It=0,gr=new Array(bt);It<bt;It++)gr[It]=Dt[It];return gr}function Mt(Dt,bt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(Dt)))return;var It=[],gr=!0,kr=!1,wt=void 0;try{for(var rt=Dt[Symbol.iterator](),tt;!(gr=(tt=rt.next()).done)&&!(It.push(tt.value),bt&&It.length===bt);gr=!0);}catch(Rt){kr=!0,wt=Rt}finally{try{!gr&&rt.return!=null&&rt.return()}finally{if(kr)throw wt}}return It}function Tt(Dt){if(Array.isArray(Dt))return Dt}function Xe(Dt,bt){if(Dt==null)return{};var It=oe(Dt,bt),gr,kr;if(Object.getOwnPropertySymbols){var wt=Object.getOwnPropertySymbols(Dt);for(kr=0;kr<wt.length;kr++){if(gr=wt[kr],bt.indexOf(gr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Dt,gr))continue;It[gr]=Dt[gr]}}return It}function oe(Dt,bt){if(Dt==null)return{};var It={},gr=Object.keys(Dt),kr,wt;for(wt=0;wt<gr.length;wt++){if(kr=gr[wt],bt.indexOf(kr)>=0)continue;It[kr]=Dt[kr]}return It}var X=function(bt){var It=bt.className,gr=bt.percent,kr=bt.prefixCls,wt=bt.strokeColor,rt=bt.strokeLinecap,tt=bt.strokeWidth,Rt=bt.style,Ft=bt.trailColor,At=bt.trailWidth,Wt=bt.transition,ot=Xe(bt,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ot.gapPosition;var Bt=Array.isArray(gr)?gr:[gr],Ar=Array.isArray(wt)?wt:[wt],rr=Le(Bt),pr=$e(rr,1),tn=pr[0],hn=tt/2,Mn=100-tt/2,Xn="M ".concat(rt==="round"?hn:0,",").concat(hn,`
|
|
|
L `).concat(rt==="round"?Mn:100,",").concat(hn),si="0 0 100 ".concat(tt),vi=0;return a.a.createElement("svg",Ot({className:u()("".concat(kr,"-line"),It),viewBox:si,preserveAspectRatio:"none",style:Rt},ot),a.a.createElement("path",{className:"".concat(kr,"-line-trail"),d:Xn,strokeLinecap:rt,stroke:Ft,strokeWidth:At||tt,fillOpacity:"0"}),Bt.map(function(xi,_i){var Qe={strokeDasharray:"".concat(xi,"px, 100px"),strokeDashoffset:"-".concat(vi,"px"),transition:Wt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},we=Ar[_i]||Ar[Ar.length-1];return vi+=xi,a.a.createElement("path",{key:_i,className:"".concat(kr,"-line-path"),d:Xn,strokeLinecap:rt,stroke:we,strokeWidth:tt,fillOpacity:"0",ref:tn[_i],style:Qe})}))};X.defaultProps=qe;var Be=X;function Ee(){return Ee=Object.assign||function(Dt){for(var bt=1;bt<arguments.length;bt++){var It=arguments[bt];for(var gr in It)Object.prototype.hasOwnProperty.call(It,gr)&&(Dt[gr]=It[gr])}return Dt},Ee.apply(this,arguments)}function ee(Dt,bt){return ir(Dt)||_t(Dt,bt)||Ct(Dt,bt)||lt()}function lt(){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 Ct(Dt,bt){if(!Dt)return;if(typeof Dt=="string")return dt(Dt,bt);var It=Object.prototype.toString.call(Dt).slice(8,-1);if(It==="Object"&&Dt.constructor&&(It=Dt.constructor.name),It==="Map"||It==="Set")return Array.from(Dt);if(It==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(It))return dt(Dt,bt)}function dt(Dt,bt){(bt==null||bt>Dt.length)&&(bt=Dt.length);for(var It=0,gr=new Array(bt);It<bt;It++)gr[It]=Dt[It];return gr}function _t(Dt,bt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(Dt)))return;var It=[],gr=!0,kr=!1,wt=void 0;try{for(var rt=Dt[Symbol.iterator](),tt;!(gr=(tt=rt.next()).done)&&!(It.push(tt.value),bt&&It.length===bt);gr=!0);}catch(Rt){kr=!0,wt=Rt}finally{try{!gr&&rt.return!=null&&rt.return()}finally{if(kr)throw wt}}return It}function ir(Dt){if(Array.isArray(Dt))return Dt}function $r(Dt,bt){if(Dt==null)return{};var It=nr(Dt,bt),gr,kr;if(Object.getOwnPropertySymbols){var wt=Object.getOwnPropertySymbols(Dt);for(kr=0;kr<wt.length;kr++){if(gr=wt[kr],bt.indexOf(gr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Dt,gr))continue;It[gr]=Dt[gr]}}return It}function nr(Dt,bt){if(Dt==null)return{};var It={},gr=Object.keys(Dt),kr,wt;for(wt=0;wt<gr.length;wt++){if(kr=gr[wt],bt.indexOf(kr)>=0)continue;It[kr]=Dt[kr]}return It}var lr=0;function zt(Dt){return+Dt.replace("%","")}function Ut(Dt){return Array.isArray(Dt)?Dt:[Dt]}function st(Dt,bt,It,gr){var kr=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,wt=arguments.length>5?arguments[5]:void 0,rt=50-gr/2,tt=0,Rt=-rt,Ft=0,At=-2*rt;switch(wt){case"left":tt=-rt,Rt=0,Ft=2*rt,At=0;break;case"right":tt=rt,Rt=0,Ft=-2*rt,At=0;break;case"bottom":Rt=rt,At=2*rt;break;default:}var Wt="M 50,50 m ".concat(tt,",").concat(Rt,`
|
|
|
a `).concat(rt,",").concat(rt," 0 1 1 ").concat(Ft,",").concat(-At,`
|
|
|
a `).concat(rt,",").concat(rt," 0 1 1 ").concat(-Ft,",").concat(At),ot=Math.PI*2*rt,Bt={stroke:It,strokeDasharray:"".concat(bt/100*(ot-kr),"px ").concat(ot,"px"),strokeDashoffset:"-".concat(kr/2+Dt/100*(ot-kr),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:Wt,pathStyle:Bt}}var Hr=function(bt){var It=bt.prefixCls,gr=bt.strokeWidth,kr=bt.trailWidth,wt=bt.gapDegree,rt=bt.gapPosition,tt=bt.trailColor,Rt=bt.strokeLinecap,Ft=bt.style,At=bt.className,Wt=bt.strokeColor,ot=bt.percent,Bt=$r(bt,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),Ar=Object(t.useMemo)(function(){return lr+=1,lr},[]),rr=st(0,100,tt,gr,wt,rt),pr=rr.pathString,tn=rr.pathStyle,hn=Ut(ot),Mn=Ut(Wt),Xn=Mn.find(function(Qe){return Object.prototype.toString.call(Qe)==="[object Object]"}),si=Le(hn),vi=ee(si,1),xi=vi[0],_i=function(){var we=0;return hn.map(function(Ne,Fe){var Ye=Mn[Fe]||Mn[Mn.length-1],We=Object.prototype.toString.call(Ye)==="[object Object]"?"url(#".concat(It,"-gradient-").concat(Ar,")"):"",Ze=st(we,Ne,Ye,gr,wt,rt);return we+=Ne,a.a.createElement("path",{key:Fe,className:"".concat(It,"-circle-path"),d:Ze.pathString,stroke:We,strokeLinecap:Rt,strokeWidth:gr,opacity:Ne===0?0:1,fillOpacity:"0",style:Ze.pathStyle,ref:xi[Fe]})})};return a.a.createElement("svg",Ee({className:u()("".concat(It,"-circle"),At),viewBox:"0 0 100 100",style:Ft},Bt),Xn&&a.a.createElement("defs",null,a.a.createElement("linearGradient",{id:"".concat(It,"-gradient-").concat(Ar),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Xn).sort(function(Qe,we){return zt(Qe)-zt(we)}).map(function(Qe,we){return a.a.createElement("stop",{key:we,offset:Qe,stopColor:Xn[Qe]})}))),a.a.createElement("path",{className:"".concat(It,"-circle-trail"),d:pr,stroke:tt,strokeLinecap:Rt,strokeWidth:kr||gr,fillOpacity:"0",style:tn}),_i().reverse())};Hr.defaultProps=qe;var mn=Hr,In={Line:Be,Circle:mn};function Yn(Dt){var bt=Dt.percent,It=Dt.success,gr=Dt.successPercent,kr=Ce(bt),wt=Ie({success:It,successPercent:gr});return wt?[Ce(wt),Ce(kr-Ce(wt))]:kr}function Mi(Dt){var bt=Dt.success,It=Dt.strokeColor,gr=Dt.successPercent,kr=It||null,wt=Ie({success:bt,successPercent:gr});return wt?[ie.green,kr]:kr}var wn=function(bt){var It=bt.prefixCls,gr=bt.width,kr=bt.strokeWidth,wt=bt.trailColor,rt=bt.strokeLinecap,tt=bt.gapPosition,Rt=bt.gapDegree,Ft=bt.type,At=bt.children,Wt=gr||120,ot={width:Wt,height:Wt,fontSize:Wt*.15+6},Bt=kr||6,Ar=tt||Ft==="dashboard"&&"bottom"||"top",rr=function(){return Rt||Rt===0?Rt:Ft==="dashboard"?75:void 0},pr=Mi(bt),tn=Object.prototype.toString.call(pr)==="[object Object]",hn=u()("".concat(It,"-inner"),x()({},"".concat(It,"-circle-gradient"),tn));return t.createElement("div",{className:hn,style:ot},t.createElement(mn,{percent:Yn(bt),strokeWidth:Bt,trailWidth:Bt,strokeColor:pr,strokeLinecap:rt,trailColor:wt,prefixCls:It,gapDegree:rr(),gapPosition:Ar}),At)},Rn=wn,kt=function(bt){for(var It=bt.size,gr=bt.steps,kr=bt.percent,wt=kr===void 0?0:kr,rt=bt.strokeWidth,tt=rt===void 0?8:rt,Rt=bt.strokeColor,Ft=bt.trailColor,At=bt.prefixCls,Wt=bt.children,ot=Math.floor(gr*(wt/100)),Bt=It==="small"?2:14,Ar=[],rr=0;rr<gr;rr+=1)Ar.push(t.createElement("div",{key:rr,className:u()("".concat(At,"-steps-item"),x()({},"".concat(At,"-steps-item-active"),rr<=ot-1)),style:{backgroundColor:rr<=ot-1?Rt:Ft,width:Bt,height:tt}}));return t.createElement("div",{className:"".concat(At,"-steps-outer")},Ar,Wt)},vt=kt,Re=function(Dt,bt){var It={};for(var gr in Dt)Object.prototype.hasOwnProperty.call(Dt,gr)&&bt.indexOf(gr)<0&&(It[gr]=Dt[gr]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kr=0,gr=Object.getOwnPropertySymbols(Dt);kr<gr.length;kr++)bt.indexOf(gr[kr])<0&&Object.prototype.propertyIsEnumerable.call(Dt,gr[kr])&&(It[gr[kr]]=Dt[gr[kr]]);return It},Ke=Object(I.a)("line","circle","dashboard"),Pe=Object(I.a)("normal","exception","active","success"),nt=function(Dt){n()(It,Dt);var bt=l()(It);function It(){var gr;return g()(this,It),gr=bt.apply(this,arguments),gr.renderProgress=function(kr){var wt,rt=kr.getPrefixCls,tt=kr.direction,Rt=r()(gr),Ft=Rt.props,At=Ft.prefixCls,Wt=Ft.className,ot=Ft.size,Bt=Ft.type,Ar=Ft.steps,rr=Ft.showInfo,pr=Ft.strokeColor,tn=Re(Ft,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),hn=rt("progress",At),Mn=gr.getProgressStatus(),Xn=gr.renderProcessInfo(hn,Mn);Object(L.a)(!("successPercent"in Ft),"Progress","`successPercent` is deprecated. Please use `success.percent` instead.");var si;Bt==="line"?si=Ar?t.createElement(vt,A()({},gr.props,{strokeColor:typeof pr=="string"?pr:void 0,prefixCls:hn,steps:Ar}),Xn):t.createElement(gt,A()({},gr.props,{prefixCls:hn}),Xn):(Bt==="circle"||Bt==="dashboard")&&(si=t.createElement(Rn,A()({},gr.props,{prefixCls:hn,progressStatus:Mn}),Xn));var vi=u()(hn,(wt={},x()(wt,"".concat(hn,"-").concat(Bt==="dashboard"&&"circle"||Ar&&"steps"||Bt),!0),x()(wt,"".concat(hn,"-status-").concat(Mn),!0),x()(wt,"".concat(hn,"-show-info"),rr),x()(wt,"".concat(hn,"-").concat(ot),ot),x()(wt,"".concat(hn,"-rtl"),tt==="rtl"),wt),Wt);return t.createElement("div",A()({},Object(h.default)(tn,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeColor","strokeLinecap","percent","steps","success","successPercent"]),{className:vi}),si)},gr}return c()(It,[{key:"getPercentNumber",value:function(){var kr=this.props.percent,wt=kr===void 0?0:kr,rt=Ie(this.props);return parseInt(rt!==void 0?rt.toString():wt.toString(),10)}},{key:"getProgressStatus",value:function(){var kr=this.props.status;return Pe.indexOf(kr)<0&&this.getPercentNumber()>=100?"success":kr||"normal"}},{key:"renderProcessInfo",value:function(kr,wt){var rt=this.props,tt=rt.showInfo,Rt=rt.format,Ft=rt.type,At=rt.percent,Wt=Ie(this.props);if(!tt)return null;var ot,Bt=Rt||function(rr){return"".concat(rr,"%")},Ar=Ft==="line";return Rt||wt!=="exception"&&wt!=="success"?ot=Bt(Ce(At),Ce(Wt)):wt==="exception"?ot=Ar?t.createElement(w.a,null):t.createElement(m.a,null):wt==="success"&&(ot=Ar?t.createElement(T.a,null):t.createElement(y.a,null)),t.createElement("span",{className:"".concat(kr,"-text"),title:typeof ot=="string"?ot:void 0},ot)}},{key:"render",value:function(){return t.createElement(_.a,null,this.renderProgress)}}]),It}(t.Component);nt.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var yt=F.a=nt},"CMP+":function(H,F,d){var O=d("bYtY"),x=d("hM6l"),C=function(S,g,f,c){x.call(this,S,g,f),this.type=c||"value",this.model=null};C.prototype={constructor:C,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return this.model.get("orient")==="horizontal"}},O.inherits(C,x);var A=C;H.exports=A},CP8R:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},"CWI+":function(H,F,d){},CbHG:function(H,F,d){var O=d("IwbS"),x=O.subPixelOptimize,C=d("zM3Q"),A=d("OELB"),S=A.parsePercent,g=d("bYtY"),f=g.retrieve2,c=typeof Float32Array!="undefined"?Float32Array:Array,o={seriesType:"candlestick",plan:C(),reset:function(n){var e=n.coordinateSystem,l=n.getData(),t=i(n,l),a=0,s=1,u=["x","y"],h=l.mapDimension(u[a]),p=l.mapDimension(u[s],!0),m=p[0],v=p[1],y=p[2],E=p[3];if(l.setLayout({candleWidth:t,isSimpleBox:t<=1.3}),h==null||p.length<4)return;return{progress:n.pipelineContext.large?b:T};function T(w,_){for(var I;(I=w.next())!=null;){var L=_.get(h,I),N=_.get(m,I),D=_.get(v,I),R=_.get(y,I),k=_.get(E,I),M=Math.min(N,D),U=Math.max(N,D),B=J(M,L),j=J(U,L),W=J(R,L),V=J(k,L),z=[];Z(z,j,0),Z(z,B,1),z.push(ie(V),ie(j),ie(W),ie(B)),_.setItemLayout(I,{sign:r(_,I,N,D,v),initBaseline:N>D?j[s]:B[s],ends:z,brushRect:de(R,k,L)})}function J(ve,xe){var _e=[];return _e[a]=xe,_e[s]=ve,isNaN(xe)||isNaN(ve)?[NaN,NaN]:e.dataToPoint(_e)}function Z(ve,xe,_e){var Ue=xe.slice(),fe=xe.slice();Ue[a]=x(Ue[a]+t/2,1,!1),fe[a]=x(fe[a]-t/2,1,!0),_e?ve.push(Ue,fe):ve.push(fe,Ue)}function de(ve,xe,_e){var Ue=J(ve,_e),fe=J(xe,_e);return Ue[a]-=t/2,fe[a]-=t/2,{x:Ue[0],y:Ue[1],width:s?t:fe[0]-Ue[0],height:s?fe[1]-Ue[1]:t}}function ie(ve){return ve[a]=x(ve[a],1),ve}}function b(w,_){for(var I=new c(w.count*4),L=0,N,D=[],R=[],k;(k=w.next())!=null;){var M=_.get(h,k),U=_.get(m,k),B=_.get(v,k),j=_.get(y,k),W=_.get(E,k);if(isNaN(M)||isNaN(j)||isNaN(W)){I[L++]=NaN,L+=3;continue}I[L++]=r(_,k,U,B,v),D[a]=M,D[s]=j,N=e.dataToPoint(D,null,R),I[L++]=N?N[0]:NaN,I[L++]=N?N[1]:NaN,D[s]=W,N=e.dataToPoint(D,null,R),I[L++]=N?N[1]:NaN}_.setLayout("largePoints",I)}}};function r(n,e,l,t,a){var s;return l>t?s=-1:l<t?s=1:s=e>0?n.get(a,e-1)<=t?1:-1:1,s}function i(n,e){var l=n.getBaseAxis(),t,a=l.type==="category"?l.getBandWidth():(t=l.getExtent(),Math.abs(t[1]-t[0])/e.count()),s=S(f(n.get("barMaxWidth"),a),a),u=S(f(n.get("barMinWidth"),1),a),h=n.get("barWidth");return h!=null?S(h,a):Math.max(Math.min(a/2,s),u)}H.exports=o},CiB2:function(H,F,d){"use strict";d.d(F,"a",function(){return O});function O(x){if(x==null)throw new TypeError("Cannot destructure undefined")}},Cm0C:function(H,F,d){d("5NHt"),d("f3JH")},CrYA:function(H,F,d){var O=d("MFOe"),x=O.Global;H.exports={name:"sessionStorage",read:A,write:S,each:g,remove:f,clearAll:c};function C(){return x.sessionStorage}function A(o){return C().getItem(o)}function S(o,r){return C().setItem(o,r)}function g(o){for(var r=C().length-1;r>=0;r--){var i=C().key(r);o(A(i),i)}}function f(o){return C().removeItem(o)}function c(){return C().clear()}},Csr3:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("4vCz"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},D1WM:function(H,F,d){var O=d("bYtY"),x=d("hM6l"),C=function(S,g,f,c,o){x.call(this,S,g,f),this.type=c||"value",this.axisIndex=o};C.prototype={constructor:C,model:null,isHorizontal:function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"}},O.inherits(C,x);var A=C;H.exports=A},D5nY:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("4NO4"),A=C.makeInner,S=C.getDataItemValue,g=d("bYtY"),f=g.createHashMap,c=g.each,o=g.map,r=g.isArray,i=g.isString,n=g.isObject,e=g.isTypedArray,l=g.isArrayLike,t=g.extend,a=g.assert,s=d("7G+c"),u=d("k9D9"),h=u.SOURCE_FORMAT_ORIGINAL,p=u.SOURCE_FORMAT_ARRAY_ROWS,m=u.SOURCE_FORMAT_OBJECT_ROWS,v=u.SOURCE_FORMAT_KEYED_COLUMNS,y=u.SOURCE_FORMAT_UNKNOWN,E=u.SOURCE_FORMAT_TYPED_ARRAY,T=u.SERIES_LAYOUT_BY_ROW,b={Must:1,Might:2,Not:3},w=A();function _(z){var J=z.option.source,Z=y;if(e(J))Z=E;else if(r(J)){J.length===0&&(Z=p);for(var de=0,ie=J.length;de<ie;de++){var ve=J[de];if(ve==null)continue;if(r(ve)){Z=p;break}else if(n(ve)){Z=m;break}}}else if(n(J)){for(var xe in J)if(J.hasOwnProperty(xe)&&l(J[xe])){Z=v;break}}else if(J!=null)throw new Error("Invalid data");w(z).sourceFormat=Z}function I(z){return w(z).source}function L(z){w(z).datasetMap=f()}function N(z){var J=z.option,Z=J.data,de=e(Z)?E:h,ie=!1,ve=J.seriesLayoutBy,xe=J.sourceHeader,_e=J.dimensions,Ue=j(z);if(Ue){var fe=Ue.option;Z=fe.source,de=w(Ue).sourceFormat,ie=!0,ve=ve||fe.seriesLayoutBy,xe==null&&(xe=fe.sourceHeader),_e=_e||fe.dimensions}var ke=D(Z,de,ve,xe,_e);w(z).source=new s({data:Z,fromDataset:ie,seriesLayoutBy:ve,sourceFormat:de,dimensionsDefine:ke.dimensionsDefine,startIndex:ke.startIndex,dimensionsDetectCount:ke.dimensionsDetectCount,encodeDefine:J.encode})}function D(z,J,Z,de,ie){if(!z)return{dimensionsDefine:R(ie)};var ve,xe;if(J===p)de==="auto"||de==null?k(function(Ue){Ue!=null&&Ue!=="-"&&(i(Ue)?xe==null&&(xe=1):xe=0)},Z,z,10):xe=de?1:0,!ie&&xe===1&&(ie=[],k(function(Ue,fe){ie[fe]=Ue!=null?Ue:""},Z,z)),ve=ie?ie.length:Z===T?z.length:z[0]?z[0].length:null;else if(J===m)ie||(ie=M(z));else if(J===v)ie||(ie=[],c(z,function(Ue,fe){ie.push(fe)}));else if(J===h){var _e=S(z[0]);ve=r(_e)&&_e.length||1}else J===E;return{startIndex:xe,dimensionsDefine:R(ie),dimensionsDetectCount:ve}}function R(z){if(!z)return;var J=f();return o(z,function(Z,de){if(Z=t({},n(Z)?Z:{name:Z}),Z.name==null)return Z;Z.name+="",Z.displayName==null&&(Z.displayName=Z.name);var ie=J.get(Z.name);return ie?Z.name+="-"+ie.count++:J.set(Z.name,{count:1}),Z})}function k(z,J,Z,de){if(de==null&&(de=Infinity),J===T)for(var ie=0;ie<Z.length&&ie<de;ie++)z(Z[ie]?Z[ie][0]:null,ie);else for(var ve=Z[0]||[],ie=0;ie<ve.length&&ie<de;ie++)z(ve[ie],ie)}function M(z){for(var J=0,Z;J<z.length&&!(Z=z[J++]););if(Z){var de=[];return c(Z,function(ie,ve){de.push(ve)}),de}}function U(z,J,Z){var de={},ie=j(J);if(!ie||!z)return de;var ve=[],xe=[],_e=J.ecModel,Ue=w(_e).datasetMap,fe=ie.uid+"_"+Z.seriesLayoutBy,ke,se;z=z.slice(),c(z,function(Q,G){!n(Q)&&(z[G]={name:Q}),Q.type==="ordinal"&&ke==null&&(ke=G,se=ae(z[G])),de[Q.name]=[]});var te=Ue.get(fe)||Ue.set(fe,{categoryWayDim:se,valueWayDim:0});c(z,function(Q,G){var Y=Q.name,me=ae(Q);if(ke==null){var ue=te.valueWayDim;Ve(de[Y],ue,me),Ve(xe,ue,me),te.valueWayDim+=me}else if(ke===G)Ve(de[Y],0,me),Ve(ve,0,me);else{var ue=te.categoryWayDim;Ve(de[Y],ue,me),Ve(xe,ue,me),te.categoryWayDim+=me}});function Ve(Q,G,Y){for(var me=0;me<Y;me++)Q.push(G+me)}function ae(Q){var G=Q.dimsDef;return G?G.length:1}return ve.length&&(de.itemName=ve),xe.length&&(de.seriesName=xe),de}function B(z,J,Z){var de={},ie=j(z);if(!ie)return de;var ve=J.sourceFormat,xe=J.dimensionsDefine,_e;(ve===m||ve===v)&&c(xe,function(ke,se){(n(ke)?ke.name:ke)==="name"&&(_e=se)});var Ue=function(){for(var ke={},se={},te=[],Ve=0,ae=Math.min(5,Z);Ve<ae;Ve++){var Q=V(J.data,ve,J.seriesLayoutBy,xe,J.startIndex,Ve);te.push(Q);var G=Q===b.Not;if(G&&ke.v==null&&Ve!==_e&&(ke.v=Ve),(ke.n==null||ke.n===ke.v||!G&&te[ke.n]===b.Not)&&(ke.n=Ve),Y(ke)&&te[ke.n]!==b.Not)return ke;G||(Q===b.Might&&se.v==null&&Ve!==_e&&(se.v=Ve),(se.n==null||se.n===se.v)&&(se.n=Ve))}function Y(me){return me.v!=null&&me.n!=null}return Y(ke)?ke:Y(se)?se:null}();if(Ue){de.value=Ue.v;var fe=_e!=null?_e:Ue.n;de.itemName=[fe],de.seriesName=[fe]}return de}function j(z){var J=z.option,Z=J.data;if(!Z)return z.ecModel.getComponent("dataset",J.datasetIndex||0)}function W(z,J){return V(z.data,z.sourceFormat,z.seriesLayoutBy,z.dimensionsDefine,z.startIndex,J)}function V(z,J,Z,de,ie,ve){var xe,_e=5;if(e(z))return b.Not;var Ue,fe;if(de){var ke=de[ve];n(ke)?(Ue=ke.name,fe=ke.type):i(ke)&&(Ue=ke)}if(fe!=null)return fe==="ordinal"?b.Must:b.Not;if(J===p)if(Z===T){for(var se=z[ve],te=0;te<(se||[]).length&&te<_e;te++)if((xe=G(se[ie+te]))!=null)return xe}else for(var te=0;te<z.length&&te<_e;te++){var Ve=z[ie+te];if(Ve&&(xe=G(Ve[ve]))!=null)return xe}else if(J===m){if(!Ue)return b.Not;for(var te=0;te<z.length&&te<_e;te++){var ae=z[te];if(ae&&(xe=G(ae[Ue]))!=null)return xe}}else if(J===v){if(!Ue)return b.Not;var se=z[Ue];if(!se||e(se))return b.Not;for(var te=0;te<se.length&&te<_e;te++)if((xe=G(se[te]))!=null)return xe}else if(J===h)for(var te=0;te<z.length&&te<_e;te++){var ae=z[te],Q=S(ae);if(!r(Q))return b.Not;if((xe=G(Q[ve]))!=null)return xe}function G(Y){var me=i(Y);if(Y!=null&&isFinite(Y)&&Y!=="")return me?b.Might:b.Not;if(me&&Y!=="-")return b.Must}return b.Not}F.BE_ORDINAL=b,F.detectSourceFormat=_,F.getSource=I,F.resetSourceDefaulter=L,F.prepareSource=N,F.makeSeriesEncodeForAxisCoordSys=U,F.makeSeriesEncodeForNameBased=B,F.guessOrdinal=W},D9ME:function(H,F,d){var O=d("IwbS"),x=d("fls0"),C=d("bYtY"),A=d("oVpE"),S=A.createSymbol,g=d("QBsz"),f=d("Sj9i");function c(i,n,e){O.Group.call(this),this.add(this.createLine(i,n,e)),this._updateEffectSymbol(i,n)}var o=c.prototype;o.createLine=function(i,n,e){return new x(i,n,e)},o._updateEffectSymbol=function(i,n){var e=i.getItemModel(n),l=e.getModel("effect"),t=l.get("symbolSize"),a=l.get("symbol");C.isArray(t)||(t=[t,t]);var s=l.get("color")||i.getItemVisual(n,"color"),u=this.childAt(1);if(this._symbolType!==a&&(this.remove(u),u=S(a,-.5,-.5,1,1,s),u.z2=100,u.culling=!0,this.add(u)),!u)return;u.setStyle("shadowColor",s),u.setStyle(l.getItemStyle(["color"])),u.attr("scale",t),u.setColor(s),u.attr("scale",t),this._symbolType=a,this._symbolScale=t,this._updateEffectAnimation(i,l,n)},o._updateEffectAnimation=function(i,n,e){var l=this.childAt(1);if(!l)return;var t=this,a=i.getItemLayout(e),s=n.get("period")*1e3,u=n.get("loop"),h=n.get("constantSpeed"),p=C.retrieve(n.get("delay"),function(E){return E/i.count()*s/3}),m=typeof p=="function";if(l.ignore=!0,this.updateAnimationPoints(l,a),h>0&&(s=this.getLineLength(l)/h*1e3),s!==this._period||u!==this._loop){l.stopAnimation();var v=p;m&&(v=p(e)),l.__t>0&&(v=-s*l.__t),l.__t=0;var y=l.animate("",u).when(s,{__t:1}).delay(v).during(function(){t.updateSymbolPosition(l)});u||y.done(function(){t.remove(l)}),y.start()}this._period=s,this._loop=u},o.getLineLength=function(i){return g.dist(i.__p1,i.__cp1)+g.dist(i.__cp1,i.__p2)},o.updateAnimationPoints=function(i,n){i.__p1=n[0],i.__p2=n[1],i.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},o.updateData=function(i,n,e){this.childAt(0).updateData(i,n,e),this._updateEffectSymbol(i,n)},o.updateSymbolPosition=function(i){var n=i.__p1,e=i.__p2,l=i.__cp1,t=i.__t,a=i.position,s=[a[0],a[1]],u=f.quadraticAt,h=f.quadraticDerivativeAt;a[0]=u(n[0],l[0],e[0],t),a[1]=u(n[1],l[1],e[1],t);var p=h(n[0],l[0],e[0],t),m=h(n[1],l[1],e[1],t);if(i.rotation=-Math.atan2(m,p)-Math.PI/2,this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")if(i.__lastT!==void 0&&i.__lastT<i.__t){var v=g.dist(s,a)*1.05;i.attr("scale",[i.scale[0],v]),t===1&&(a[0]=s[0]+(a[0]-s[0])/2,a[1]=s[1]+(a[1]-s[1])/2)}else if(i.__lastT===1){var v=2*g.dist(n,a);i.attr("scale",[i.scale[0],v])}else i.attr("scale",this._symbolScale);i.__lastT=i.__t,i.ignore=!1},o.updateLayout=function(i,n){this.childAt(0).updateLayout(i,n);var e=i.getItemModel(n).getModel("effect");this._updateEffectAnimation(i,e,n)},C.inherits(c,O.Group);var r=c;H.exports=r},DBLp:function(H,F){function d(){}d.prototype={diff:function(g,f,c){c||(c=function(m,v){return m===v}),this.equals=c;var o=this;g=g.slice(),f=f.slice();var r=f.length,i=g.length,n=1,e=r+i,l=[{newPos:-1,components:[]}],t=this.extractCommon(l[0],f,g,0);if(l[0].newPos+1>=r&&t+1>=i){for(var a=[],s=0;s<f.length;s++)a.push(s);return[{indices:a,count:f.length}]}function u(){for(var p=-1*n;p<=n;p+=2){var m,v=l[p-1],y=l[p+1],E=(y?y.newPos:0)-p;v&&(l[p-1]=void 0);var T=v&&v.newPos+1<r,b=y&&0<=E&&E<i;if(!T&&!b){l[p]=void 0;continue}if(!T||b&&v.newPos<y.newPos?(m=x(y),o.pushComponent(m.components,void 0,!0)):(m=v,m.newPos++,o.pushComponent(m.components,!0,void 0)),E=o.extractCommon(m,f,g,p),m.newPos+1>=r&&E+1>=i)return O(o,m.components,f,g);l[p]=m}n++}for(;n<=e;){var h=u();if(h)return h}},pushComponent:function(g,f,c){var o=g[g.length-1];o&&o.added===f&&o.removed===c?g[g.length-1]={count:o.count+1,added:f,removed:c}:g.push({count:1,added:f,removed:c})},extractCommon:function(g,f,c,o){for(var r=f.length,i=c.length,n=g.newPos,e=n-o,l=0;n+1<r&&e+1<i&&this.equals(f[n+1],c[e+1]);)n++,e++,l++;return l&&g.components.push({count:l}),g.newPos=n,e},tokenize:function(g){return g.slice()},join:function(g){return g.slice()}};function O(S,g,f,c){for(var o=0,r=g.length,i=0,n=0;o<r;o++){var e=g[o];if(e.removed){for(var l=[],t=n;t<n+e.count;t++)l.push(t);e.indices=l,n+=e.count}else{for(var l=[],t=i;t<i+e.count;t++)l.push(t);e.indices=l,i+=e.count,e.added||(n+=e.count)}}return g}function x(S){return{newPos:S.newPos,components:S.components.slice(0)}}var C=new d;function A(S,g,f){return C.diff(S,g,f)}H.exports=A},DEFe:function(H,F,d){var O=d("bYtY"),x=d("SgGq"),C=d("Ae+d"),A=d("xSat"),S=A.onIrrelevantElement,g=d("IwbS"),f=d("W4dC"),c=d("iRjW"),o=c.getUID,r=d("DN4a");function i(a){var s=a.getItemStyle(),u=a.get("areaColor");return u!=null&&(s.fill=u),s}function n(a,s,u,h,p){u.off("click"),u.off("mousedown"),s.get("selectedMode")&&(u.on("mousedown",function(){a._mouseDownFlag=!0}),u.on("click",function(m){if(!a._mouseDownFlag)return;a._mouseDownFlag=!1;for(var v=m.target;!v.__regions;)v=v.parent;if(!v)return;var y={type:(s.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:O.map(v.__regions,function(E){return{name:E.name,from:p.uid}})};y[s.mainType+"Id"]=s.id,h.dispatchAction(y),e(s,u)}))}function e(a,s){s.eachChild(function(u){O.each(u.__regions,function(h){u.trigger(a.isSelected(h.name)?"emphasis":"normal")})})}function l(a,s){var u=new g.Group;this.uid=o("ec_map_draw"),this._controller=new x(a.getZr()),this._controllerHost={target:s?u:null},this.group=u,this._updateGroup=s,this._mouseDownFlag,this._mapName,this._initialized,u.add(this._regionsGroup=new g.Group),u.add(this._backgroundGroup=new g.Group)}l.prototype={constructor:l,draw:function(a,s,u,h,p){var m=a.mainType==="geo",v=a.getData&&a.getData();m&&s.eachComponent({mainType:"series",subType:"map"},function(j){!v&&j.getHostGeoModel()===a&&(v=j.getData())});var y=a.coordinateSystem;this._updateBackground(y);var E=this._regionsGroup,T=this.group,b=y.getTransformInfo(),w=!E.childAt(0)||p,_;if(w)T.transform=b.roamTransform,T.decomposeTransform(),T.dirty();else{var I=new r;I.transform=b.roamTransform,I.decomposeTransform();var L={scale:I.scale,position:I.position};_=I.scale,g.updateProps(T,L,a)}var N=b.rawScale,D=b.rawPosition;E.removeAll();var R=["itemStyle"],k=["emphasis","itemStyle"],M=["label"],U=["emphasis","label"],B=O.createHashMap();O.each(y.regions,function(j){var W=B.get(j.name)||B.set(j.name,new g.Group),V=new g.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});W.add(V);var z=a.getRegionModel(j.name)||a,J=z.getModel(R),Z=z.getModel(k),de=i(J),ie=i(Z),ve=z.getModel(M),xe=z.getModel(U),_e;if(v){_e=v.indexOfName(j.name);var Ue=v.getItemVisual(_e,"color",!0);Ue&&(de.fill=Ue)}var fe=function(ue){return[ue[0]*N[0]+D[0],ue[1]*N[1]+D[1]]};O.each(j.geometries,function(ue){if(ue.type!=="polygon")return;for(var Ce=[],Ie=0;Ie<ue.exterior.length;++Ie)Ce.push(fe(ue.exterior[Ie]));V.shape.paths.push(new g.Polygon({segmentIgnoreThreshold:1,shape:{points:Ce}}));for(var Ie=0;Ie<(ue.interiors?ue.interiors.length:0);++Ie){for(var ce=ue.interiors[Ie],Ce=[],Ae=0;Ae<ce.length;++Ae)Ce.push(fe(ce[Ae]));V.shape.paths.push(new g.Polygon({segmentIgnoreThreshold:1,shape:{points:Ce}}))}}),V.setStyle(de),V.style.strokeNoScale=!0,V.culling=!0;var ke=ve.get("show"),se=xe.get("show"),te=v&&isNaN(v.get(v.mapDimension("value"),_e)),Ve=v&&v.getItemLayout(_e);if(m||te&&(ke||se)||Ve&&Ve.showLabel){var ae=m?j.name:_e,Q;(!v||_e>=0)&&(Q=a);var G=new g.Text({position:fe(j.center.slice()),scale:[1/T.scale[0],1/T.scale[1]],z2:10,silent:!0});if(g.setLabelStyle(G.style,G.hoverStyle={},ve,xe,{labelFetcher:Q,labelDataIndex:ae,defaultText:j.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!w){var Y=[1/_[0],1/_[1]];g.updateProps(G,{scale:Y},a)}W.add(G)}if(v)v.setItemGraphicEl(_e,W);else{var z=a.getRegionModel(j.name);V.eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:j.name,region:z&&z.option||{}}}var me=W.__regions||(W.__regions=[]);me.push(j),W.highDownSilentOnTouch=!!a.get("selectedMode"),g.setHoverStyle(W,ie),E.add(W)}),this._updateController(a,s,u),n(this,a,E,u,h),e(a,E)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&f.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(a){var s=a.map;this._mapName!==s&&O.each(f.makeGraphic(s,this.uid),function(u){this._backgroundGroup.add(u)},this),this._mapName=s},_updateController:function(a,s,u){var h=a.coordinateSystem,p=this._controller,m=this._controllerHost;m.zoomLimit=a.get("scaleLimit"),m.zoom=h.getZoom(),p.enable(a.get("roam")||!1);var v=a.mainType;function y(){var E={type:"geoRoam",componentType:v};return E[v+"Id"]=a.id,E}p.off("pan").on("pan",function(E){this._mouseDownFlag=!1,C.updateViewOnPan(m,E.dx,E.dy),u.dispatchAction(O.extend(y(),{dx:E.dx,dy:E.dy}))},this),p.off("zoom").on("zoom",function(E){if(this._mouseDownFlag=!1,C.updateViewOnZoom(m,E.scale,E.originX,E.originY),u.dispatchAction(O.extend(y(),{zoom:E.scale,originX:E.originX,originY:E.originY})),this._updateGroup){var T=this.group.scale;this._regionsGroup.traverse(function(b){b.type==="text"&&b.attr("scale",[1/T[0],1/T[1]])})}},this),p.setPointerChecker(function(E,T,b){return h.getViewRectAfterRoam().contain(T,b)&&!S(E,u,a)})}};var t=l;H.exports=t},DFOY:function(H,F,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),S=d("lwsE"),g=d.n(S),f=d("W8MJ"),c=d.n(f),o=d("PJYZ"),r=d.n(o),i=d("7W2i"),n=d.n(i),e=d("LQ03"),l=d.n(e),t=d("q1tI"),a=d.n(t),s=d("VTBJ"),u=d("1OyB"),h=d("vuIU"),p=d("JX7q"),m=d("Ji7U"),v=d("LK+K"),y=d("i8i4"),E=d.n(y),T=d("l4aY"),b=d("m+aA"),w=d("c+Xe"),_=d("zT1h"),I=d("QC+M"),L=d("TSYQ"),N=d.n(L);function D(Ur,Tn,Mr){return Mr?Ur[0]===Tn[0]:Ur[0]===Tn[0]&&Ur[1]===Tn[1]}function R(Ur,Tn,Mr){var mr=Ur[Tn]||{};return Object(s.a)(Object(s.a)({},mr),Mr)}function k(Ur,Tn,Mr,mr){for(var Cr=Mr.points,Lt=Object.keys(Ur),wr=0;wr<Lt.length;wr+=1){var Vr=Lt[wr];if(D(Ur[Vr].points,Cr,mr))return"".concat(Tn,"-placement-").concat(Vr)}return""}var M=d("Ff2n"),U=d("xEkU"),B=d.n(U),j=d("9mu1"),W=d("rePB"),V=d("U8pU"),z=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function J(Ur,Tn){var Mr={};return Mr[Ur.toLowerCase()]=Tn.toLowerCase(),Mr["Webkit".concat(Ur)]="webkit".concat(Tn),Mr["Moz".concat(Ur)]="moz".concat(Tn),Mr["ms".concat(Ur)]="MS".concat(Tn),Mr["O".concat(Ur)]="o".concat(Tn.toLowerCase()),Mr}function Z(Ur,Tn){var Mr={animationend:J("Animation","AnimationEnd"),transitionend:J("Transition","TransitionEnd")};return Ur&&("AnimationEvent"in Tn||delete Mr.animationend.animation,"TransitionEvent"in Tn||delete Mr.transitionend.transition),Mr}var de=Z(z,typeof window!="undefined"?window:{}),ie={};if(z){var ve=document.createElement("div");ie=ve.style}var xe={};function _e(Ur){if(xe[Ur])return xe[Ur];var Tn=de[Ur];if(Tn)for(var Mr=Object.keys(Tn),mr=Mr.length,Cr=0;Cr<mr;Cr+=1){var Lt=Mr[Cr];if(Object.prototype.hasOwnProperty.call(Tn,Lt)&&Lt in ie)return xe[Ur]=Tn[Lt],xe[Ur]}return""}var Ue=_e("animationend"),fe=_e("transitionend"),ke=!!(Ue&&fe);function se(Ur,Tn){if(!Ur)return null;if(Object(V.a)(Ur)==="object"){var Mr=Tn.replace(/-\w/g,function(mr){return mr[1].toUpperCase()});return Ur[Mr]}return"".concat(Ur,"-").concat(Tn)}var te="none",Ve="appear",ae="enter",Q="leave";function G(Ur){var Tn=Ur,Mr=!!t.forwardRef;Object(V.a)(Ur)==="object"&&(Tn=Ur.transitionSupport,Mr="forwardRef"in Ur?Ur.forwardRef:Mr);function mr(Lt){return!!(Lt.motionName&&Tn)}var Cr=function(Lt){Object(m.a)(Vr,Lt);var wr=Object(v.a)(Vr);function Vr(){var jr;return Object(u.a)(this,Vr),jr=wr.apply(this,arguments),jr.$cacheEle=null,jr.node=null,jr.raf=null,jr.destroyed=!1,jr.deadlineId=null,jr.state={status:te,statusActive:!1,newStatus:!1,statusStyle:null},jr.onDomUpdate=function(){var qr=jr.state,oi=qr.status,Vn=qr.newStatus,Ti=jr.props,dn=Ti.onAppearStart,_r=Ti.onEnterStart,xn=Ti.onLeaveStart,Fn=Ti.onAppearActive,zn=Ti.onEnterActive,qn=Ti.onLeaveActive,Oi=Ti.motionAppear,Li=Ti.motionEnter,Ri=Ti.motionLeave;if(!mr(jr.props))return;var Ji=jr.getElement();jr.$cacheEle!==Ji&&(jr.removeEventListener(jr.$cacheEle),jr.addEventListener(Ji),jr.$cacheEle=Ji),Vn&&oi===Ve&&Oi?jr.updateStatus(dn,null,null,function(){jr.updateActiveStatus(Fn,Ve)}):Vn&&oi===ae&&Li?jr.updateStatus(_r,null,null,function(){jr.updateActiveStatus(zn,ae)}):Vn&&oi===Q&&Ri&&jr.updateStatus(xn,null,null,function(){jr.updateActiveStatus(qn,Q)})},jr.onMotionEnd=function(qr){if(qr&&!qr.deadline&&qr.target!==jr.getElement())return;var oi=jr.state,Vn=oi.status,Ti=oi.statusActive,dn=jr.props,_r=dn.onAppearEnd,xn=dn.onEnterEnd,Fn=dn.onLeaveEnd;Vn===Ve&&Ti?jr.updateStatus(_r,{status:te},qr):Vn===ae&&Ti?jr.updateStatus(xn,{status:te},qr):Vn===Q&&Ti&&jr.updateStatus(Fn,{status:te},qr)},jr.setNodeRef=function(qr){var oi=jr.props.internalRef;jr.node=qr,Object(w.b)(oi,qr)},jr.getElement=function(){try{return Object(b.a)(jr.node||Object(p.a)(jr))}catch(qr){return jr.$cacheEle}},jr.addEventListener=function(qr){if(!qr)return;qr.addEventListener(fe,jr.onMotionEnd),qr.addEventListener(Ue,jr.onMotionEnd)},jr.removeEventListener=function(qr){if(!qr)return;qr.removeEventListener(fe,jr.onMotionEnd),qr.removeEventListener(Ue,jr.onMotionEnd)},jr.updateStatus=function(qr,oi,Vn,Ti){var dn=qr?qr(jr.getElement(),Vn):null;if(dn===!1||jr.destroyed)return;var _r;Ti&&(_r=function(){jr.nextFrame(Ti)}),jr.setState(Object(s.a)({statusStyle:Object(V.a)(dn)==="object"?dn:null,newStatus:!1},oi),_r)},jr.updateActiveStatus=function(qr,oi){jr.nextFrame(function(){var Vn=jr.state.status;if(Vn!==oi)return;var Ti=jr.props.motionDeadline;jr.updateStatus(qr,{statusActive:!0}),Ti>0&&(jr.deadlineId=setTimeout(function(){jr.onMotionEnd({deadline:!0})},Ti))})},jr.nextFrame=function(qr){jr.cancelNextFrame(),jr.raf=B()(qr)},jr.cancelNextFrame=function(){jr.raf&&(B.a.cancel(jr.raf),jr.raf=null)},jr}return Object(h.a)(Vr,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var qr,oi=this.state,Vn=oi.status,Ti=oi.statusActive,dn=oi.statusStyle,_r=this.props,xn=_r.children,Fn=_r.motionName,zn=_r.visible,qn=_r.removeOnLeave,Oi=_r.leavedClassName,Li=_r.eventProps;return xn?Vn===te||!mr(this.props)?zn?xn(Object(s.a)({},Li),this.setNodeRef):qn?null:xn(Object(s.a)(Object(s.a)({},Li),{},{className:Oi}),this.setNodeRef):xn(Object(s.a)(Object(s.a)({},Li),{},{className:N()(se(Fn,Vn),(qr={},Object(W.a)(qr,se(Fn,"".concat(Vn,"-active")),Ti),Object(W.a)(qr,Fn,typeof Fn=="string"),qr)),style:dn}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(qr,oi){var Vn=oi.prevProps,Ti=oi.status;if(!mr(qr))return{};var dn=qr.visible,_r=qr.motionAppear,xn=qr.motionEnter,Fn=qr.motionLeave,zn=qr.motionLeaveImmediately,qn={prevProps:qr};return(Ti===Ve&&!_r||Ti===ae&&!xn||Ti===Q&&!Fn)&&(qn.status=te,qn.statusActive=!1,qn.newStatus=!1),!Vn&&dn&&_r&&(qn.status=Ve,qn.statusActive=!1,qn.newStatus=!0),Vn&&!Vn.visible&&dn&&xn&&(qn.status=ae,qn.statusActive=!1,qn.newStatus=!0),(Vn&&Vn.visible&&!dn&&Fn||!Vn&&zn&&!dn&&Fn)&&(qn.status=Q,qn.statusActive=!1,qn.newStatus=!0),qn}}]),Vr}(t.Component);return Cr.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Mr?t.forwardRef(function(Lt,wr){return t.createElement(Cr,Object.assign({internalRef:wr},Lt))}):Cr}var Y=G(ke),me="add",ue="keep",Ce="remove",Ie="removed";function ce(Ur){var Tn;return Ur&&Object(V.a)(Ur)==="object"&&"key"in Ur?Tn=Ur:Tn={key:Ur},Object(s.a)(Object(s.a)({},Tn),{},{key:String(Tn.key)})}function Ae(){var Ur=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Ur.map(ce)}function Te(){var Ur=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Mr=[],mr=0,Cr=Tn.length,Lt=Ae(Ur),wr=Ae(Tn);Lt.forEach(function(qr){for(var oi=!1,Vn=mr;Vn<Cr;Vn+=1){var Ti=wr[Vn];if(Ti.key===qr.key){mr<Vn&&(Mr=Mr.concat(wr.slice(mr,Vn).map(function(dn){return Object(s.a)(Object(s.a)({},dn),{},{status:me})})),mr=Vn),Mr.push(Object(s.a)(Object(s.a)({},Ti),{},{status:ue})),mr+=1,oi=!0;break}}oi||Mr.push(Object(s.a)(Object(s.a)({},qr),{},{status:Ce}))}),mr<Cr&&(Mr=Mr.concat(wr.slice(mr).map(function(qr){return Object(s.a)(Object(s.a)({},qr),{},{status:me})})));var Vr={};Mr.forEach(function(qr){var oi=qr.key;Vr[oi]=(Vr[oi]||0)+1});var jr=Object.keys(Vr).filter(function(qr){return Vr[qr]>1});return jr.forEach(function(qr){Mr=Mr.filter(function(oi){var Vn=oi.key,Ti=oi.status;return Vn!==qr||Ti!==Ce}),Mr.forEach(function(oi){oi.key===qr&&(oi.status=ue)})}),Mr}var Ge=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function gt(Ur){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Y,Mr=function(mr){Object(m.a)(Lt,mr);var Cr=Object(v.a)(Lt);function Lt(){var wr;return Object(u.a)(this,Lt),wr=Cr.apply(this,arguments),wr.state={keyEntities:[]},wr.removeKey=function(Vr){wr.setState(function(jr){var qr=jr.keyEntities;return{keyEntities:qr.map(function(oi){return oi.key!==Vr?oi:Object(s.a)(Object(s.a)({},oi),{},{status:Ie})})}})},wr}return Object(h.a)(Lt,[{key:"render",value:function(){var Vr=this,jr=this.state.keyEntities,qr=this.props,oi=qr.component,Vn=qr.children,Ti=Object(M.a)(qr,["component","children"]),dn=oi||t.Fragment,_r={};return Ge.forEach(function(xn){_r[xn]=Ti[xn],delete Ti[xn]}),delete Ti.keys,t.createElement(dn,Object.assign({},Ti),jr.map(function(xn){var Fn=xn.status,zn=Object(M.a)(xn,["status"]),qn=Fn===me||Fn===ue;return t.createElement(Tn,Object.assign({},_r,{key:zn.key,visible:qn,eventProps:zn,onLeaveEnd:function(){_r.onLeaveEnd&&_r.onLeaveEnd.apply(_r,arguments),Vr.removeKey(zn.key)}}),Vn)}))}}],[{key:"getDerivedStateFromProps",value:function(Vr,jr){var qr=Vr.keys,oi=jr.keyEntities,Vn=Ae(qr);if(!Ur)return{keyEntities:Vn.map(function(_r){return Object(s.a)(Object(s.a)({},_r),{},{status:ue})})};var Ti=Te(oi,Vn),dn=oi.length;return{keyEntities:Ti.filter(function(_r){for(var xn=null,Fn=0;Fn<dn;Fn+=1){var zn=oi[Fn];if(zn.key===_r.key){xn=zn;break}}return!(xn&&xn.status===Ie&&_r.status===Ce)})}}}]),Lt}(t.Component);return Mr.defaultProps={component:"div"},Mr}var qe=gt(ke),Le=Y,Ot=function(Tn,Mr){var mr=Tn.prefixCls,Cr=Tn.className,Lt=Tn.style,wr=Tn.children,Vr=Tn.onMouseEnter,jr=Tn.onMouseLeave,qr=Tn.onMouseDown,oi=Tn.onTouchStart,Vn=wr;return t.Children.count(wr)>1&&(Vn=t.createElement("div",{className:"".concat(mr,"-content")},wr)),t.createElement("div",{ref:Mr,className:Cr,onMouseEnter:Vr,onMouseLeave:jr,onMouseDown:qr,onTouchStart:oi,style:Lt},Vn)},$e=t.forwardRef(Ot);$e.displayName="PopupInner";var xt=$e;function Ht(Ur){var Tn=Ur.prefixCls,Mr=Ur.motion,mr=Ur.animation,Cr=Ur.transitionName;return Mr||(mr?{motionName:"".concat(Tn,"-").concat(mr)}:Cr?{motionName:Cr}:null)}function tr(Ur){return Ur&&Ur.motionName}var Mt=function(Ur){Object(m.a)(Mr,Ur);var Tn=Object(v.a)(Mr);function Mr(){var mr;return Object(u.a)(this,Mr),mr=Tn.apply(this,arguments),mr.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},mr.popupRef=a.a.createRef(),mr.alignRef=a.a.createRef(),mr.nextFrameState=null,mr.nextFrameId=null,mr.onAlign=function(Cr,Lt){var wr=mr.state.status,Vr=mr.props,jr=Vr.getClassNameFromAlign,qr=Vr.onAlign,oi=jr(Lt);wr==="align"?mr.setState({alignClassName:oi,status:"aligned"},function(){mr.alignRef.current.forceAlign()}):wr==="aligned"?(mr.setState({alignClassName:oi,status:"afterAlign"}),qr(Cr,Lt)):mr.setState({alignClassName:oi})},mr.onMotionEnd=function(){var Cr=mr.props.visible;mr.setState({status:Cr?"AfterMotion":"stable",inMotion:!1})},mr.setStateOnNextFrame=function(Cr){mr.cancelFrameState(),mr.nextFrameState=Object(s.a)(Object(s.a)({},mr.nextFrameState),Cr),mr.nextFrameId=B()(function(){var Lt=Object(s.a)({},mr.nextFrameState);mr.nextFrameState=null,mr.setState(Lt)})},mr.getMotion=function(){return Object(s.a)({},Ht(mr.props))},mr.getAlignTarget=function(){var Cr=mr.props,Lt=Cr.point,wr=Cr.getRootDomNode;return Lt||wr},mr.cancelFrameState=function(){B.a.cancel(mr.nextFrameId)},mr.renderPopupElement=function(){var Cr=mr.state,Lt=Cr.status,wr=Cr.targetHeight,Vr=Cr.targetWidth,jr=Cr.alignClassName,qr=mr.props,oi=qr.prefixCls,Vn=qr.className,Ti=qr.style,dn=qr.stretch,_r=qr.visible,xn=qr.align,Fn=qr.destroyPopupOnHide,zn=qr.onMouseEnter,qn=qr.onMouseLeave,Oi=qr.onMouseDown,Li=qr.onTouchStart,Ri=qr.children,Ji=N()(oi,Vn,jr),ma="".concat(oi,"-hidden"),la={};dn&&(dn.indexOf("height")!==-1?la.height=wr:dn.indexOf("minHeight")!==-1&&(la.minHeight=wr),dn.indexOf("width")!==-1?la.width=Vr:dn.indexOf("minWidth")!==-1&&(la.minWidth=Vr));var qa=Object(s.a)(Object(s.a)(Object(s.a)(Object(s.a)({},la),mr.getZIndexStyle()),Ti),{},{opacity:Lt==="stable"||!_r?void 0:0,pointerEvents:Lt==="stable"||!_r?void 0:"none"}),bi=mr.getMotion(),Sn=_r;_r&&Lt!=="beforeMotion"&&Lt!=="motion"&&Lt!=="stable"&&(bi.motionAppear=!1,bi.motionEnter=!1,bi.motionLeave=!1),(Lt==="afterAlign"||Lt==="beforeMotion")&&(Sn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(Yi){var ca=bi==null?void 0:bi[Yi];bi[Yi]=function(){for(var Hi=arguments.length,Ia=new Array(Hi),Da=0;Da<Hi;Da++)Ia[Da]=arguments[Da];ca==null||ca.apply(void 0,Ia),mr.setState({inMotion:!0})}});var zi=!_r||Lt!=="align"&&Lt!=="aligned"&&Lt!=="stable",oa=!0;return Lt==="stable"&&(oa=_r),Fn&&!oa?null:a.a.createElement(Le,Object.assign({visible:Sn},bi,{removeOnLeave:!1,onEnterEnd:mr.onMotionEnd,onLeaveEnd:mr.onMotionEnd,leavedClassName:ma}),function(Yi,ca){var Hi=Yi.style,Ia=Yi.className;return a.a.createElement(j.a,{target:mr.getAlignTarget(),key:"popup",ref:mr.alignRef,monitorWindowResize:!0,disabled:zi,align:xn,onAlign:mr.onAlign},a.a.createElement(xt,{prefixCls:oi,className:N()(Ji,Ia),ref:Object(w.a)(ca,mr.popupRef),onMouseEnter:zn,onMouseLeave:qn,onMouseDown:Oi,onTouchStart:Li,style:Object(s.a)(Object(s.a)({},qa),Hi)},Ri))})},mr.renderMaskElement=function(){var Cr=mr.props,Lt=Cr.mask,wr=Cr.maskMotion,Vr=Cr.maskTransitionName,jr=Cr.maskAnimation,qr=Cr.prefixCls,oi=Cr.visible;if(!Lt)return null;var Vn={};return wr&&wr.motionName&&(Vn=Object(s.a)({motionAppear:!0},Ht({motion:wr,prefixCls:qr,transitionName:Vr,animation:jr}))),a.a.createElement(Le,Object.assign({},Vn,{visible:oi,removeOnLeave:!0}),function(Ti){var dn=Ti.className;return a.a.createElement("div",{style:mr.getZIndexStyle(),key:"mask",className:N()("".concat(qr,"-mask"),dn)})})},mr}return Object(h.a)(Mr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Cr=this.state.status,Lt=this.props,wr=Lt.getRootDomNode,Vr=Lt.visible,jr=Lt.stretch;if(this.cancelFrameState(),Vr&&Cr!=="stable")switch(Cr){case null:{this.setStateOnNextFrame({status:jr?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:tr(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var qr=["measure","align",null,"beforeMotion","motion"],oi=qr.indexOf(Cr),Vn=qr[oi+1];oi!==-1&&Vn&&this.setStateOnNextFrame({status:Vn})}}if(Cr==="measure"){var Ti=wr();Ti&&this.setStateOnNextFrame({targetHeight:Ti.offsetHeight,targetWidth:Ti.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Cr=this.props.zIndex;return{zIndex:Cr}}},{key:"render",value:function(){return a.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Cr,Lt){var wr=Cr.visible,Vr=Object(M.a)(Cr,["visible"]),jr=Lt.prevVisible,qr=Lt.status,oi=Lt.inMotion,Vn={prevVisible:wr,status:qr},Ti=Ht(Vr);return jr===null&&wr===!1?(Vn.status="stable",Vn.inMotion=!1):wr!==jr&&(Vn.inMotion=!1,wr||tr(Ti)&&oi?Vn.status=null:Vn.status="stable",wr&&(Vn.alignClassName=null)),Vn}}]),Mr}(t.Component),Tt=Mt,Xe=t.createContext(null),oe=Xe;function X(){}function Be(){return""}function Ee(){return window.document}var ee=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function lt(Ur){var Tn=function(Mr){Object(m.a)(Cr,Mr);var mr=Object(v.a)(Cr);function Cr(Lt){var wr;Object(u.a)(this,Cr),wr=mr.call(this,Lt),wr.popupRef=a.a.createRef(),wr.triggerRef=a.a.createRef(),wr.onMouseEnter=function(jr){var qr=wr.props.mouseEnterDelay;wr.fireEvents("onMouseEnter",jr),wr.delaySetPopupVisible(!0,qr,qr?null:jr)},wr.onMouseMove=function(jr){wr.fireEvents("onMouseMove",jr),wr.setPoint(jr)},wr.onMouseLeave=function(jr){wr.fireEvents("onMouseLeave",jr),wr.delaySetPopupVisible(!1,wr.props.mouseLeaveDelay)},wr.onPopupMouseEnter=function(){wr.clearDelayTimer()},wr.onPopupMouseLeave=function(jr){if(jr.relatedTarget&&!jr.relatedTarget.setTimeout&&wr.popupRef.current&&wr.popupRef.current.popupRef.current&&Object(T.a)(wr.popupRef.current.popupRef.current,jr.relatedTarget))return;wr.delaySetPopupVisible(!1,wr.props.mouseLeaveDelay)},wr.onFocus=function(jr){wr.fireEvents("onFocus",jr),wr.clearDelayTimer(),wr.isFocusToShow()&&(wr.focusTime=Date.now(),wr.delaySetPopupVisible(!0,wr.props.focusDelay))},wr.onMouseDown=function(jr){wr.fireEvents("onMouseDown",jr),wr.preClickTime=Date.now()},wr.onTouchStart=function(jr){wr.fireEvents("onTouchStart",jr),wr.preTouchTime=Date.now()},wr.onBlur=function(jr){wr.fireEvents("onBlur",jr),wr.clearDelayTimer(),wr.isBlurToHide()&&wr.delaySetPopupVisible(!1,wr.props.blurDelay)},wr.onContextMenu=function(jr){jr.preventDefault(),wr.fireEvents("onContextMenu",jr),wr.setPopupVisible(!0,jr)},wr.onContextMenuClose=function(){wr.isContextMenuToShow()&&wr.close()},wr.onClick=function(jr){if(wr.fireEvents("onClick",jr),wr.focusTime){var qr;if(wr.preClickTime&&wr.preTouchTime?qr=Math.min(wr.preClickTime,wr.preTouchTime):wr.preClickTime?qr=wr.preClickTime:wr.preTouchTime&&(qr=wr.preTouchTime),Math.abs(qr-wr.focusTime)<20)return;wr.focusTime=0}wr.preClickTime=0,wr.preTouchTime=0,wr.isClickToShow()&&(wr.isClickToHide()||wr.isBlurToHide())&&jr&&jr.preventDefault&&jr.preventDefault();var oi=!wr.state.popupVisible;(wr.isClickToHide()&&!oi||oi&&wr.isClickToShow())&&wr.setPopupVisible(!wr.state.popupVisible,jr)},wr.onPopupMouseDown=function(){if(wr.hasPopupMouseDown=!0,clearTimeout(wr.mouseDownTimeout),wr.mouseDownTimeout=window.setTimeout(function(){wr.hasPopupMouseDown=!1},0),wr.context){var jr;(jr=wr.context).onPopupMouseDown.apply(jr,arguments)}},wr.onDocumentClick=function(jr){if(wr.props.mask&&!wr.props.maskClosable)return;var qr=jr.target,oi=wr.getRootDomNode(),Vn=wr.getPopupDomNode();!Object(T.a)(oi,qr)&&!Object(T.a)(Vn,qr)&&!wr.hasPopupMouseDown&&wr.close()},wr.getRootDomNode=function(){var jr=wr.props.getTriggerDOMNode;if(jr)return jr(wr.triggerRef.current);try{var qr=Object(b.a)(wr.triggerRef.current);if(qr)return qr}catch(oi){}return E.a.findDOMNode(Object(p.a)(wr))},wr.getPopupClassNameFromAlign=function(jr){var qr=[],oi=wr.props,Vn=oi.popupPlacement,Ti=oi.builtinPlacements,dn=oi.prefixCls,_r=oi.alignPoint,xn=oi.getPopupClassNameFromAlign;return Vn&&Ti&&qr.push(k(Ti,dn,jr,_r)),xn&&qr.push(xn(jr)),qr.join(" ")},wr.getComponent=function(){var jr=wr.props,qr=jr.prefixCls,oi=jr.destroyPopupOnHide,Vn=jr.popupClassName,Ti=jr.onPopupAlign,dn=jr.popupMotion,_r=jr.popupAnimation,xn=jr.popupTransitionName,Fn=jr.popupStyle,zn=jr.mask,qn=jr.maskAnimation,Oi=jr.maskTransitionName,Li=jr.maskMotion,Ri=jr.zIndex,Ji=jr.popup,ma=jr.stretch,la=jr.alignPoint,qa=wr.state,bi=qa.popupVisible,Sn=qa.point,zi=wr.getPopupAlign(),oa={};return wr.isMouseEnterToShow()&&(oa.onMouseEnter=wr.onPopupMouseEnter),wr.isMouseLeaveToHide()&&(oa.onMouseLeave=wr.onPopupMouseLeave),oa.onMouseDown=wr.onPopupMouseDown,oa.onTouchStart=wr.onPopupMouseDown,a.a.createElement(Tt,Object.assign({prefixCls:qr,destroyPopupOnHide:oi,visible:bi,point:la&&Sn,className:Vn,align:zi,onAlign:Ti,animation:_r,getClassNameFromAlign:wr.getPopupClassNameFromAlign},oa,{stretch:ma,getRootDomNode:wr.getRootDomNode,style:Fn,mask:zn,zIndex:Ri,transitionName:xn,maskAnimation:qn,maskTransitionName:Oi,maskMotion:Li,ref:wr.popupRef,motion:dn}),typeof Ji=="function"?Ji():Ji)},wr.getContainer=function(){var jr=Object(p.a)(wr),qr=jr.props,oi=document.createElement("div");oi.style.position="absolute",oi.style.top="0",oi.style.left="0",oi.style.width="100%";var Vn=qr.getPopupContainer?qr.getPopupContainer(wr.getRootDomNode()):qr.getDocument().body;return Vn.appendChild(oi),oi},wr.setPoint=function(jr){var qr=wr.props.alignPoint;if(!qr||!jr)return;wr.setState({point:{pageX:jr.pageX,pageY:jr.pageY}})},wr.handlePortalUpdate=function(){wr.state.prevPopupVisible!==wr.state.popupVisible&&wr.props.afterPopupVisibleChange(wr.state.popupVisible)};var Vr;return"popupVisible"in Lt?Vr=!!Lt.popupVisible:Vr=!!Lt.defaultPopupVisible,wr.state={prevPopupVisible:Vr,popupVisible:Vr},ee.forEach(function(jr){wr["fire".concat(jr)]=function(qr){wr.fireEvents(jr,qr)}}),wr}return Object(h.a)(Cr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var wr=this.props,Vr=this.state;if(Vr.popupVisible){var jr;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(jr=wr.getDocument(),this.clickOutsideHandler=Object(_.a)(jr,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(jr=jr||wr.getDocument(),this.touchOutsideHandler=Object(_.a)(jr,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(jr=jr||wr.getDocument(),this.contextMenuOutsideHandler1=Object(_.a)(jr,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(_.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 wr=this.props,Vr=wr.popupPlacement,jr=wr.popupAlign,qr=wr.builtinPlacements;return Vr&&qr?R(qr,Vr,jr):jr}},{key:"setPopupVisible",value:function(wr,Vr){var jr=this.props.alignPoint,qr=this.state.popupVisible;this.clearDelayTimer(),qr!==wr&&("popupVisible"in this.props||this.setState({popupVisible:wr,prevPopupVisible:qr}),this.props.onPopupVisibleChange(wr)),jr&&Vr&&this.setPoint(Vr)}},{key:"delaySetPopupVisible",value:function(wr,Vr,jr){var qr=this,oi=Vr*1e3;if(this.clearDelayTimer(),oi){var Vn=jr?{pageX:jr.pageX,pageY:jr.pageY}:null;this.delayTimer=window.setTimeout(function(){qr.setPopupVisible(wr,Vn),qr.clearDelayTimer()},oi)}else this.setPopupVisible(wr,jr)}},{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(wr){var Vr=this.props.children.props,jr=this.props;return Vr[wr]&&jr[wr]?this["fire".concat(wr)]:Vr[wr]||jr[wr]}},{key:"isClickToShow",value:function(){var wr=this.props,Vr=wr.action,jr=wr.showAction;return Vr.indexOf("click")!==-1||jr.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var wr=this.props,Vr=wr.action,jr=wr.showAction;return Vr.indexOf("contextMenu")!==-1||jr.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var wr=this.props,Vr=wr.action,jr=wr.hideAction;return Vr.indexOf("click")!==-1||jr.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var wr=this.props,Vr=wr.action,jr=wr.showAction;return Vr.indexOf("hover")!==-1||jr.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var wr=this.props,Vr=wr.action,jr=wr.hideAction;return Vr.indexOf("hover")!==-1||jr.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var wr=this.props,Vr=wr.action,jr=wr.showAction;return Vr.indexOf("focus")!==-1||jr.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var wr=this.props,Vr=wr.action,jr=wr.hideAction;return Vr.indexOf("focus")!==-1||jr.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(wr,Vr){var jr=this.props.children.props[wr];jr&&jr(Vr);var qr=this.props[wr];qr&&qr(Vr)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var wr=this.state.popupVisible,Vr=this.props,jr=Vr.children,qr=Vr.forceRender,oi=Vr.alignPoint,Vn=Vr.className,Ti=Vr.autoDestroy,dn=a.a.Children.only(jr),_r={key:"trigger"};this.isContextMenuToShow()?_r.onContextMenu=this.onContextMenu:_r.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(_r.onClick=this.onClick,_r.onMouseDown=this.onMouseDown,_r.onTouchStart=this.onTouchStart):(_r.onClick=this.createTwoChains("onClick"),_r.onMouseDown=this.createTwoChains("onMouseDown"),_r.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(_r.onMouseEnter=this.onMouseEnter,oi&&(_r.onMouseMove=this.onMouseMove)):_r.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?_r.onMouseLeave=this.onMouseLeave:_r.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(_r.onFocus=this.onFocus,_r.onBlur=this.onBlur):(_r.onFocus=this.createTwoChains("onFocus"),_r.onBlur=this.createTwoChains("onBlur"));var xn=N()(dn&&dn.props&&dn.props.className,Vn);xn&&(_r.className=xn);var Fn=Object(s.a)({},_r);Object(w.c)(dn)&&(Fn.ref=Object(w.a)(this.triggerRef,dn.ref));var zn=a.a.cloneElement(dn,Fn),qn;return(wr||this.popupRef.current||qr)&&(qn=a.a.createElement(Ur,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!wr&&Ti&&(qn=null),a.a.createElement(oe.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},zn,qn)}}],[{key:"getDerivedStateFromProps",value:function(wr,Vr){var jr=wr.popupVisible,qr={};return jr!==void 0&&Vr.popupVisible!==jr&&(qr.popupVisible=jr,qr.prevPopupVisible=Vr.popupVisible),qr}}]),Cr}(a.a.Component);return Tn.contextType=oe,Tn.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Be,getDocument:Ee,onPopupVisibleChange:X,afterPopupVisibleChange:X,onPopupAlign:X,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Tn}var Ct=lt(I.a),dt=d("2W6z"),_t=d.n(dt),ir=d("4IlW"),$r=d("uK0f"),nr=d.n($r);function lr(Ur,Tn){if(Ur===Tn)return!0;if(!Ur||!Tn)return!1;var Mr=Ur.length;if(Tn.length!==Mr)return!1;for(var mr=0;mr<Mr;mr++)if(Ur[mr]!==Tn[mr])return!1;return!0}function zt(Ur){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zt=function(Mr){return typeof Mr}:zt=function(Mr){return Mr&&typeof Symbol=="function"&&Mr.constructor===Symbol&&Mr!==Symbol.prototype?"symbol":typeof Mr},zt(Ur)}function Ut(Ur,Tn){if(!(Ur instanceof Tn))throw new TypeError("Cannot call a class as a function")}function st(Ur,Tn){for(var Mr=0;Mr<Tn.length;Mr++){var mr=Tn[Mr];mr.enumerable=mr.enumerable||!1,mr.configurable=!0,"value"in mr&&(mr.writable=!0),Object.defineProperty(Ur,mr.key,mr)}}function Hr(Ur,Tn,Mr){return Tn&&st(Ur.prototype,Tn),Mr&&st(Ur,Mr),Ur}function mn(Ur,Tn){if(typeof Tn!="function"&&Tn!==null)throw new TypeError("Super expression must either be null or a function");Ur.prototype=Object.create(Tn&&Tn.prototype,{constructor:{value:Ur,writable:!0,configurable:!0}}),Tn&&In(Ur,Tn)}function In(Ur,Tn){return In=Object.setPrototypeOf||function(mr,Cr){return mr.__proto__=Cr,mr},In(Ur,Tn)}function Yn(Ur){var Tn=Rn();return function(){var Mr=kt(Ur),mr;if(Tn){var Cr=kt(this).constructor;mr=Reflect.construct(Mr,arguments,Cr)}else mr=Mr.apply(this,arguments);return Mi(this,mr)}}function Mi(Ur,Tn){return Tn&&(zt(Tn)==="object"||typeof Tn=="function")?Tn:wn(Ur)}function wn(Ur){if(Ur===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ur}function Rn(){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(Ur){return!1}}function kt(Ur){return kt=Object.setPrototypeOf?Object.getPrototypeOf:function(Mr){return Mr.__proto__||Object.getPrototypeOf(Mr)},kt(Ur)}var vt=function(){var Ur=function(Tn){mn(mr,Tn);var Mr=Yn(mr);function mr(){var Cr;return Ut(this,mr),Cr=Mr.apply(this,arguments),Cr.menuItems={},Cr.saveMenuItem=function(Lt){return function(wr){Cr.menuItems[Lt]=wr}},Cr}return Hr(mr,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(Lt){!Lt.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(Lt){var wr=this.props,Vr=wr.fieldNames,jr=wr.defaultFieldNames;return Vr[Lt]||jr[Lt]}},{key:"getOption",value:function(Lt,wr){var Vr=this.props,jr=Vr.prefixCls,qr=Vr.expandTrigger,oi=Vr.expandIcon,Vn=Vr.loadingIcon,Ti=this.props.onSelect.bind(this,Lt,wr),dn=this.props.onItemDoubleClick.bind(this,Lt,wr),_r={onClick:Ti,onDoubleClick:dn},xn="".concat(jr,"-menu-item"),Fn=null,zn=Lt[this.getFieldName("children")]&&Lt[this.getFieldName("children")].length>0;(zn||Lt.isLeaf===!1)&&(xn+=" ".concat(jr,"-menu-item-expand"),Lt.loading||(Fn=t.createElement("span",{className:"".concat(jr,"-menu-item-expand-icon")},oi))),qr==="hover"&&(zn||Lt.isLeaf===!1)&&(_r={onMouseEnter:this.delayOnSelect.bind(this,Ti),onMouseLeave:this.delayOnSelect.bind(this),onClick:Ti}),this.isActiveOption(Lt,wr)&&(xn+=" ".concat(jr,"-menu-item-active"),_r.ref=this.saveMenuItem(wr)),Lt.disabled&&(xn+=" ".concat(jr,"-menu-item-disabled"));var qn=null;Lt.loading&&(xn+=" ".concat(jr,"-menu-item-loading"),qn=Vn||null);var Oi="";return"title"in Lt?Oi=Lt.title:typeof Lt[this.getFieldName("label")]=="string"&&(Oi=Lt[this.getFieldName("label")]),t.createElement("li",Object.assign({key:Lt[this.getFieldName("value")],className:xn,title:Oi},_r,{role:"menuitem",onMouseDown:function(Ri){return Ri.preventDefault()}}),Lt[this.getFieldName("label")],Fn,qn)}},{key:"getActiveOptions",value:function(Lt){var wr=this,Vr=this.props.options,jr=Lt||this.props.activeValue;return nr()(Vr,function(qr,oi){return qr[wr.getFieldName("value")]===jr[oi]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var Lt=this,wr=this.props.options,Vr=this.getActiveOptions().map(function(jr){return jr[Lt.getFieldName("children")]}).filter(function(jr){return!!jr});return Vr.unshift(wr),Vr}},{key:"delayOnSelect",value:function(Lt){for(var wr=this,Vr=arguments.length,jr=new Array(Vr>1?Vr-1:0),qr=1;qr<Vr;qr++)jr[qr-1]=arguments[qr];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof Lt=="function"&&(this.delayTimer=window.setTimeout(function(){Lt(jr),wr.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var Lt=this.getShowOptions().length,wr=0;wr<Lt;wr++){var Vr=this.menuItems[wr];Vr&&Vr.parentElement&&(Vr.parentElement.scrollTop=Vr.offsetTop)}}},{key:"isActiveOption",value:function(Lt,wr){var Vr=this.props.activeValue,jr=Vr===void 0?[]:Vr;return jr[wr]===Lt[this.getFieldName("value")]}},{key:"render",value:function(){var Lt=this,wr=this.props,Vr=wr.prefixCls,jr=wr.dropdownMenuColumnStyle;return t.createElement("div",null,this.getShowOptions().map(function(qr,oi){return t.createElement("ul",{className:"".concat(Vr,"-menu"),key:oi,style:jr},qr.map(function(Vn){return Lt.getOption(Vn,oi)}))}))}}]),mr}(t.Component);return Ur.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},Ur}(),Re=vt,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 nt(Ur){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nt=function(Mr){return typeof Mr}:nt=function(Mr){return Mr&&typeof Symbol=="function"&&Mr.constructor===Symbol&&Mr!==Symbol.prototype?"symbol":typeof Mr},nt(Ur)}function yt(Ur,Tn){if(Ur==null)return{};var Mr=Dt(Ur,Tn),mr,Cr;if(Object.getOwnPropertySymbols){var Lt=Object.getOwnPropertySymbols(Ur);for(Cr=0;Cr<Lt.length;Cr++){if(mr=Lt[Cr],Tn.indexOf(mr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Ur,mr))continue;Mr[mr]=Ur[mr]}}return Mr}function Dt(Ur,Tn){if(Ur==null)return{};var Mr={},mr=Object.keys(Ur),Cr,Lt;for(Lt=0;Lt<mr.length;Lt++){if(Cr=mr[Lt],Tn.indexOf(Cr)>=0)continue;Mr[Cr]=Ur[Cr]}return Mr}function bt(Ur){return wt(Ur)||kr(Ur)||gr(Ur)||It()}function It(){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 gr(Ur,Tn){if(!Ur)return;if(typeof Ur=="string")return rt(Ur,Tn);var Mr=Object.prototype.toString.call(Ur).slice(8,-1);if(Mr==="Object"&&Ur.constructor&&(Mr=Ur.constructor.name),Mr==="Map"||Mr==="Set")return Array.from(Ur);if(Mr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Mr))return rt(Ur,Tn)}function kr(Ur){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(Ur))return Array.from(Ur)}function wt(Ur){if(Array.isArray(Ur))return rt(Ur)}function rt(Ur,Tn){(Tn==null||Tn>Ur.length)&&(Tn=Ur.length);for(var Mr=0,mr=new Array(Tn);Mr<Tn;Mr++)mr[Mr]=Ur[Mr];return mr}function tt(Ur,Tn){if(!(Ur instanceof Tn))throw new TypeError("Cannot call a class as a function")}function Rt(Ur,Tn){for(var Mr=0;Mr<Tn.length;Mr++){var mr=Tn[Mr];mr.enumerable=mr.enumerable||!1,mr.configurable=!0,"value"in mr&&(mr.writable=!0),Object.defineProperty(Ur,mr.key,mr)}}function Ft(Ur,Tn,Mr){return Tn&&Rt(Ur.prototype,Tn),Mr&&Rt(Ur,Mr),Ur}function At(Ur,Tn){if(typeof Tn!="function"&&Tn!==null)throw new TypeError("Super expression must either be null or a function");Ur.prototype=Object.create(Tn&&Tn.prototype,{constructor:{value:Ur,writable:!0,configurable:!0}}),Tn&&Wt(Ur,Tn)}function Wt(Ur,Tn){return Wt=Object.setPrototypeOf||function(mr,Cr){return mr.__proto__=Cr,mr},Wt(Ur,Tn)}function ot(Ur){var Tn=rr();return function(){var Mr=pr(Ur),mr;if(Tn){var Cr=pr(this).constructor;mr=Reflect.construct(Mr,arguments,Cr)}else mr=Mr.apply(this,arguments);return Bt(this,mr)}}function Bt(Ur,Tn){return Tn&&(nt(Tn)==="object"||typeof Tn=="function")?Tn:Ar(Ur)}function Ar(Ur){if(Ur===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ur}function rr(){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(Ur){return!1}}function pr(Ur){return pr=Object.setPrototypeOf?Object.getPrototypeOf:function(Mr){return Mr.__proto__||Object.getPrototypeOf(Mr)},pr(Ur)}var tn=function(){var Ur=function(Tn){At(mr,Tn);var Mr=ot(mr);function mr(Cr){var Lt;tt(this,mr),Lt=Mr.call(this,Cr),Lt.setPopupVisible=function(Vr){var jr=Lt.state.value;"popupVisible"in Lt.props||Lt.setState({popupVisible:Vr}),Vr&&!Lt.state.popupVisible&&Lt.setState({activeValue:jr}),Lt.props.onPopupVisibleChange(Vr)},Lt.handleChange=function(Vr,jr,qr){var oi=jr.visible;(qr.type!=="keydown"||qr.keyCode===ir.a.ENTER)&&(Lt.props.onChange(Vr.map(function(Vn){return Vn[Lt.getFieldName("value")]}),Vr),Lt.setPopupVisible(oi))},Lt.handlePopupVisibleChange=function(Vr){Lt.setPopupVisible(Vr)},Lt.handleMenuSelect=function(Vr,jr,qr){var oi=Lt.trigger.getRootDomNode();oi&&oi.focus&&oi.focus();var Vn=Lt.props,Ti=Vn.changeOnSelect,dn=Vn.loadData,_r=Vn.expandTrigger;if(!Vr||Vr.disabled)return;var xn=Lt.state.activeValue;xn=xn.slice(0,jr+1),xn[jr]=Vr[Lt.getFieldName("value")];var Fn=Lt.getActiveOptions(xn);if(Vr.isLeaf===!1&&!Vr[Lt.getFieldName("children")]&&dn){Ti&&Lt.handleChange(Fn,{visible:!0},qr),Lt.setState({activeValue:xn}),dn(Fn);return}var zn={};!Vr[Lt.getFieldName("children")]||!Vr[Lt.getFieldName("children")].length?(Lt.handleChange(Fn,{visible:!1},qr),zn.value=xn):Ti&&(qr.type==="click"||qr.type==="keydown")&&(_r==="hover"?Lt.handleChange(Fn,{visible:!1},qr):Lt.handleChange(Fn,{visible:!0},qr),zn.value=xn),zn.activeValue=xn,("value"in Lt.props||qr.type==="keydown"&&qr.keyCode!==ir.a.ENTER)&&delete zn.value,Lt.setState(zn)},Lt.handleItemDoubleClick=function(){var Vr=Lt.props.changeOnSelect;Vr&&Lt.setPopupVisible(!1)},Lt.handleKeyDown=function(Vr){var jr=Lt.props.children;if(jr&&jr.props.onKeyDown){jr.props.onKeyDown(Vr);return}var qr=bt(Lt.state.activeValue),oi=qr.length-1<0?0:qr.length-1,Vn=Lt.getCurrentLevelOptions(),Ti=Vn.map(function(Fn){return Fn[Lt.getFieldName("value")]}).indexOf(qr[oi]);if(Vr.keyCode!==ir.a.DOWN&&Vr.keyCode!==ir.a.UP&&Vr.keyCode!==ir.a.LEFT&&Vr.keyCode!==ir.a.RIGHT&&Vr.keyCode!==ir.a.ENTER&&Vr.keyCode!==ir.a.SPACE&&Vr.keyCode!==ir.a.BACKSPACE&&Vr.keyCode!==ir.a.ESC&&Vr.keyCode!==ir.a.TAB)return;if(!Lt.state.popupVisible&&Vr.keyCode!==ir.a.BACKSPACE&&Vr.keyCode!==ir.a.LEFT&&Vr.keyCode!==ir.a.RIGHT&&Vr.keyCode!==ir.a.ESC&&Vr.keyCode!==ir.a.TAB){Lt.setPopupVisible(!0);return}if(Vr.keyCode===ir.a.DOWN||Vr.keyCode===ir.a.UP){Vr.preventDefault();var dn=Ti;dn!==-1?Vr.keyCode===ir.a.DOWN?(dn+=1,dn=dn>=Vn.length?0:dn):(dn-=1,dn=dn<0?Vn.length-1:dn):dn=0,qr[oi]=Vn[dn][Lt.getFieldName("value")]}else if(Vr.keyCode===ir.a.LEFT||Vr.keyCode===ir.a.BACKSPACE)Vr.preventDefault(),qr.splice(qr.length-1,1);else if(Vr.keyCode===ir.a.RIGHT)Vr.preventDefault(),Vn[Ti]&&Vn[Ti][Lt.getFieldName("children")]&&qr.push(Vn[Ti][Lt.getFieldName("children")][0][Lt.getFieldName("value")]);else if(Vr.keyCode===ir.a.ESC||Vr.keyCode===ir.a.TAB){Lt.setPopupVisible(!1);return}(!qr||qr.length===0)&&Lt.setPopupVisible(!1);var _r=Lt.getActiveOptions(qr),xn=_r[_r.length-1];Lt.handleMenuSelect(xn,_r.length-1,Vr),Lt.props.onKeyDown&&Lt.props.onKeyDown(Vr)},Lt.saveTrigger=function(Vr){Lt.trigger=Vr};var wr=[];return"value"in Cr?wr=Cr.value||[]:"defaultValue"in Cr&&(wr=Cr.defaultValue||[]),_t()(!("filedNames"in Cr),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),Lt.state={popupVisible:Cr.popupVisible,activeValue:wr,value:wr,prevProps:Cr},Lt.defaultFieldNames={label:"label",value:"value",children:"children"},Lt}return Ft(mr,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(Lt){var wr=this.defaultFieldNames,Vr=this.props,jr=Vr.fieldNames,qr=Vr.filedNames;return"filedNames"in this.props?qr[Lt]||wr[Lt]:jr[Lt]||wr[Lt]}},{key:"getFieldNames",value:function(){var Lt=this.props,wr=Lt.fieldNames,Vr=Lt.filedNames;return"filedNames"in this.props?Vr:wr}},{key:"getCurrentLevelOptions",value:function(){var Lt=this,wr=this.props.options,Vr=wr===void 0?[]:wr,jr=this.state.activeValue,qr=jr===void 0?[]:jr,oi=nr()(Vr,function(Vn,Ti){return Vn[Lt.getFieldName("value")]===qr[Ti]},{childrenKeyName:this.getFieldName("children")});return oi[oi.length-2]?oi[oi.length-2][this.getFieldName("children")]:bt(Vr).filter(function(Vn){return!Vn.disabled})}},{key:"getActiveOptions",value:function(Lt){var wr=this;return nr()(this.props.options||[],function(Vr,jr){return Vr[wr.getFieldName("value")]===Lt[jr]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var Lt=this.props,wr=Lt.prefixCls,Vr=Lt.transitionName,jr=Lt.popupClassName,qr=Lt.options,oi=qr===void 0?[]:qr,Vn=Lt.disabled,Ti=Lt.builtinPlacements,dn=Lt.popupPlacement,_r=Lt.children,xn=Lt.dropdownRender,Fn=yt(Lt,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),zn=t.createElement("div",null),qn="";oi&&oi.length>0?zn=t.createElement(Re,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):qn=" ".concat(wr,"-menus-empty");var Oi=zn;return xn&&(Oi=xn(zn)),t.createElement(Ct,Object.assign({ref:this.saveTrigger},Fn,{popupPlacement:dn,builtinPlacements:Ti,popupTransitionName:Vr,action:Vn?[]:["click"],popupVisible:Vn?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(wr,"-menus"),popupClassName:jr+qn,popup:Oi}),t.cloneElement(_r,{onKeyDown:this.handleKeyDown,tabIndex:Vn?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(Lt,wr){var Vr=wr.prevProps,jr=Vr===void 0?{}:Vr,qr={prevProps:Lt};return"value"in Lt&&!lr(jr.value,Lt.value)&&(qr.value=Lt.value||[],"loadData"in Lt||(qr.activeValue=Lt.value||[])),"popupVisible"in Lt&&(qr.popupVisible=Lt.popupVisible),qr}}]),mr}(t.Component);return Ur.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:">"},Ur}(),hn=tn,Mn=hn,Xn=d("BGR+"),si=d("kbBi"),vi=d.n(si),xi=d("HQEm"),_i=d.n(xi),Qe=d("fEPi"),we=d.n(Qe),Ne=d("5YOS"),Fe=d.n(Ne),Ye=d("DFhj"),We=d.n(Ye),Ze=d("5rEg"),mt=d("H84U"),it=d("YMnH"),Jt=d("uaoM"),Dr=d("3Nzz"),Sr=d("0n0R"),Br=function(Ur,Tn){var Mr={};for(var mr in Ur)Object.prototype.hasOwnProperty.call(Ur,mr)&&Tn.indexOf(mr)<0&&(Mr[mr]=Ur[mr]);if(Ur!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Cr=0,mr=Object.getOwnPropertySymbols(Ur);Cr<mr.length;Cr++)Tn.indexOf(mr[Cr])<0&&Object.prototype.propertyIsEnumerable.call(Ur,mr[Cr])&&(Mr[mr[Cr]]=Ur[mr[Cr]]);return Mr},$t=50;function gn(Ur,Tn,Mr){return Ur.split(Tn).map(function(mr,Cr){return Cr===0?mr:[t.createElement("span",{className:"".concat(Mr,"-menu-item-keyword"),key:"seperator"},Tn),mr]})}function or(Ur,Tn,Mr){return Tn.some(function(mr){return mr[Mr.label].indexOf(Ur)>-1})}function ln(Ur,Tn,Mr,mr){return Tn.map(function(Cr,Lt){var wr=Cr[mr.label],Vr=wr.indexOf(Ur)>-1?gn(wr,Ur,Mr):wr;return Lt===0?Vr:[" / ",Vr]})}function an(Ur,Tn,Mr,mr){function Cr(Lt){return Lt[mr.label].indexOf(Mr)>-1}return Ur.findIndex(Cr)-Tn.findIndex(Cr)}function Rr(Ur){var Tn=Ur.fieldNames;return Tn}function On(Ur){var Tn=Rr(Ur)||{},Mr={children:Tn.children||"children",label:Tn.label||"label",value:Tn.value||"value"};return Mr}function ci(Ur,Tn){var Mr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],mr=On(Tn),Cr=[],Lt=mr.children;return Ur.forEach(function(wr){var Vr=Mr.concat(wr);(Tn.changeOnSelect||!wr[Lt]||!wr[Lt].length)&&Cr.push(Vr),wr[Lt]&&(Cr=Cr.concat(ci(wr[Lt],Tn,Vr)))}),Cr}var Ui=function(Tn){return Tn.join(" / ")};function ki(Ur){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(Ur||[]).forEach(function(Mr){var mr=Tn.value||"value";Object(Jt.a)(mr in Mr,"Cascader","Not found `value` in `options`."),ki(Mr[Tn.children||"children"],Tn)})}var Di=function(Ur){n()(Mr,Ur);var Tn=l()(Mr);function Mr(mr){var Cr;return g()(this,Mr),Cr=Tn.call(this,mr),Cr.cachedOptions=[],Cr.setValue=function(Lt){var wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];"value"in Cr.props||Cr.setState({value:Lt});var Vr=Cr.props.onChange;Vr&&Vr(Lt,wr)},Cr.saveInput=function(Lt){Cr.input=Lt},Cr.handleChange=function(Lt,wr){if(Cr.setState({inputValue:""}),wr[0].__IS_FILTERED_OPTION){var Vr=Lt[0],jr=wr[0].path;Cr.setValue(Vr,jr);return}Cr.setValue(Lt,wr)},Cr.handlePopupVisibleChange=function(Lt){"popupVisible"in Cr.props||Cr.setState(function(Vr){return{popupVisible:Lt,inputFocused:Lt,inputValue:Lt?Vr.inputValue:""}});var wr=Cr.props.onPopupVisibleChange;wr&&wr(Lt)},Cr.handleInputBlur=function(){Cr.setState({inputFocused:!1})},Cr.handleInputClick=function(Lt){var wr=Cr.state,Vr=wr.inputFocused,jr=wr.popupVisible;(Vr||jr)&&Lt.stopPropagation()},Cr.handleKeyDown=function(Lt){(Lt.keyCode===ir.a.BACKSPACE||Lt.keyCode===ir.a.SPACE)&&Lt.stopPropagation()},Cr.handleInputChange=function(Lt){var wr=Cr.state.popupVisible,Vr=Lt.target.value;wr||Cr.handlePopupVisibleChange(!0),Cr.setState({inputValue:Vr})},Cr.clearSelection=function(Lt){var wr=Cr.state.inputValue;Lt.preventDefault(),Lt.stopPropagation(),wr?Cr.setState({inputValue:""}):(Cr.handlePopupVisibleChange(!1),Cr.clearSelectionTimeout=setTimeout(function(){Cr.setValue([])},200))},Cr.renderCascader=function(Lt,wr){var Vr=Lt.getPopupContainer,jr=Lt.getPrefixCls,qr=Lt.renderEmpty,oi=Lt.direction;return t.createElement(Dr.b.Consumer,null,function(Vn){var Ti,dn,_r,xn,Fn=r()(Cr),zn=Fn.props,qn=Fn.state,Oi=zn.prefixCls,Li=zn.inputPrefixCls,Ri=zn.children,Ji=zn.placeholder,ma=Ji===void 0?wr.placeholder||"Please select":Ji,la=zn.size,qa=zn.disabled,bi=zn.className,Sn=zn.style,zi=zn.allowClear,oa=zn.showSearch,Yi=oa===void 0?!1:oa,ca=zn.suffixIcon,Hi=zn.expandIcon,Ia=zn.notFoundContent,Da=zn.popupClassName,Qa=zn.bordered,Wo=zn.dropdownRender,po=Br(zn,["prefixCls","inputPrefixCls","children","placeholder","size","disabled","className","style","allowClear","showSearch","suffixIcon","expandIcon","notFoundContent","popupClassName","bordered","dropdownRender"]),Mo=la||Vn,Fo=qn.value,yo=qn.inputFocused,Oo=oi==="rtl",sa=jr("cascader",Oi),hs=jr("input",Li),Jo=N()((Ti={},A()(Ti,"".concat(hs,"-lg"),Mo==="large"),A()(Ti,"".concat(hs,"-sm"),Mo==="small"),Ti)),wo=zi&&!qa&&Fo.length>0||qn.inputValue?t.createElement(vi.a,{className:"".concat(sa,"-picker-clear"),onClick:Cr.clearSelection}):null,_o=N()((dn={},A()(dn,"".concat(sa,"-picker-arrow"),!0),A()(dn,"".concat(sa,"-picker-arrow-expand"),qn.popupVisible),dn)),Bo=N()(bi,"".concat(sa,"-picker"),(_r={},A()(_r,"".concat(sa,"-picker-rtl"),Oo),A()(_r,"".concat(sa,"-picker-with-value"),qn.inputValue),A()(_r,"".concat(sa,"-picker-disabled"),qa),A()(_r,"".concat(sa,"-picker-").concat(Mo),!!Mo),A()(_r,"".concat(sa,"-picker-show-search"),!!Yi),A()(_r,"".concat(sa,"-picker-focused"),yo),A()(_r,"".concat(sa,"-picker-borderless"),!Qa),_r)),Ds=Object(Xn.default)(po,["onChange","options","popupPlacement","transitionName","displayRender","onPopupVisibleChange","changeOnSelect","expandTrigger","popupVisible","getPopupContainer","loadData","popupClassName","filterOption","renderFilteredOption","sortFilteredOption","notFoundContent","fieldNames","bordered"]),Nr=zn.options,rn=On(Cr.props);if(Nr&&Nr.length>0)qn.inputValue&&(Nr=Cr.generateFilteredOptions(sa,qr));else{var En;Nr=[(En={},A()(En,rn.label,Ia||qr("Cascader")),A()(En,rn.value,"ANT_CASCADER_NOT_FOUND"),En)]}qn.popupVisible?Cr.cachedOptions=Nr:Nr=Cr.cachedOptions;var en={},ur=(Nr||[]).length===1&&Nr[0].isEmptyNode;ur&&(en.height="auto");var on=Yi.matchInputWidth!==!1;on&&(qn.inputValue||ur)&&Cr.input&&(en.width=Cr.input.input.offsetWidth);var Bn;ca?Bn=Object(Sr.c)(ca,t.createElement("span",{className:"".concat(sa,"-picker-arrow")},ca),function(){var da;return{className:N()((da={},A()(da,ca.props.className,ca.props.className),A()(da,"".concat(sa,"-picker-arrow"),!0),da))}}):Bn=t.createElement(_i.a,{className:_o});var Hn=Ri||t.createElement("span",{style:Sn,className:Bo},t.createElement("span",{className:"".concat(sa,"-picker-label")},Cr.getLabel()),t.createElement(Ze.a,x()({},Ds,{tabIndex:"-1",ref:Cr.saveInput,prefixCls:hs,placeholder:Fo&&Fo.length>0?void 0:ma,className:"".concat(sa,"-input ").concat(Jo),value:qn.inputValue,disabled:qa,readOnly:!Yi,autoComplete:Ds.autoComplete||"off",onClick:Yi?Cr.handleInputClick:void 0,onBlur:Yi?Cr.handleInputBlur:void 0,onKeyDown:Cr.handleKeyDown,onChange:Yi?Cr.handleInputChange:void 0})),wo,Bn),Ii;Hi?Ii=Hi:Ii=Oo?t.createElement(We.a,null):t.createElement(we.a,null);var Ci=t.createElement("span",{className:"".concat(sa,"-menu-item-loading-icon")},t.createElement(Fe.a,{spin:!0})),Jn=zn.getPopupContainer||Vr,mi=Object(Xn.default)(zn,["inputIcon","expandIcon","loadingIcon","bordered"]),yi=N()(Da,(xn={},A()(xn,"".concat(sa,"-menu-").concat(oi),oi==="rtl"),A()(xn,"".concat(sa,"-menu-empty"),Nr.length===1&&Nr[0].value==="ANT_CASCADER_NOT_FOUND"),xn));return t.createElement(Mn,x()({},mi,{prefixCls:sa,getPopupContainer:Jn,options:Nr,value:Fo,popupVisible:qn.popupVisible,onPopupVisibleChange:Cr.handlePopupVisibleChange,onChange:Cr.handleChange,dropdownMenuColumnStyle:en,expandIcon:Ii,loadingIcon:Ci,popupClassName:yi,popupPlacement:Cr.getPopupPlacement(oi),dropdownRender:Wo}),Hn)})},Cr.state={value:mr.value||mr.defaultValue||[],inputValue:"",inputFocused:!1,popupVisible:mr.popupVisible,flattenOptions:mr.showSearch?ci(mr.options,mr):void 0,prevProps:mr},Cr}return c()(Mr,[{key:"componentWillUnmount",value:function(){this.clearSelectionTimeout&&clearTimeout(this.clearSelectionTimeout)}},{key:"getLabel",value:function(){var Cr=this.props,Lt=Cr.options,wr=Cr.displayRender,Vr=wr===void 0?Ui:wr,jr=On(this.props),qr=this.state.value,oi=Array.isArray(qr[0])?qr[0]:qr,Vn=nr()(Lt,function(dn,_r){return dn[jr.value]===oi[_r]},{childrenKeyName:jr.children}),Ti=Vn.length?Vn.map(function(dn){return dn[jr.label]}):qr;return Vr(Ti,Vn)}},{key:"generateFilteredOptions",value:function(Cr,Lt){var wr=this,Vr,jr=this.props,qr=jr.showSearch,oi=jr.notFoundContent,Vn=On(this.props),Ti=qr.filter,dn=Ti===void 0?or:Ti,_r=qr.render,xn=_r===void 0?ln:_r,Fn=qr.sort,zn=Fn===void 0?an:Fn,qn=qr.limit,Oi=qn===void 0?$t:qn,Li=this.state,Ri=Li.flattenOptions,Ji=Ri===void 0?[]:Ri,ma=Li.inputValue,la;if(Oi>0){la=[];var qa=0;Ji.some(function(bi){var Sn=dn(wr.state.inputValue,bi,Vn);return Sn&&(la.push(bi),qa+=1),qa>=Oi})}else Object(Jt.a)(typeof Oi!="number","Cascader","'limit' of showSearch should be positive number or false."),la=Ji.filter(function(bi){return dn(wr.state.inputValue,bi,Vn)});return la=la.sort(function(bi,Sn){return zn(bi,Sn,ma,Vn)}),la.length>0?la.map(function(bi){var Sn;return Sn={__IS_FILTERED_OPTION:!0,path:bi},A()(Sn,Vn.value,bi.map(function(zi){return zi[Vn.value]})),A()(Sn,Vn.label,xn(ma,bi,Cr,Vn)),A()(Sn,"disabled",bi.some(function(zi){return!!zi.disabled})),A()(Sn,"isEmptyNode",!0),Sn}):[(Vr={},A()(Vr,Vn.value,"ANT_CASCADER_NOT_FOUND"),A()(Vr,Vn.label,oi||Lt("Cascader")),A()(Vr,"disabled",!0),A()(Vr,"isEmptyNode",!0),Vr)]}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"getPopupPlacement",value:function(){var Cr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ltr",Lt=this.props.popupPlacement;return Lt!==void 0?Lt:Cr==="rtl"?"bottomRight":"bottomLeft"}},{key:"render",value:function(){var Cr=this;return t.createElement(mt.a,null,function(Lt){return t.createElement(it.a,null,function(wr){return Cr.renderCascader(Lt,wr)})})}}],[{key:"getDerivedStateFromProps",value:function(Cr,Lt){var wr=Lt.prevProps,Vr={prevProps:Cr};return"value"in Cr&&(Vr.value=Cr.value||[]),"popupVisible"in Cr&&(Vr.popupVisible=Cr.popupVisible),Cr.showSearch&&wr.options!==Cr.options&&(Vr.flattenOptions=ci(Cr.options,Cr)),Vr}}]),Mr}(t.Component);Di.defaultProps={transitionName:"slide-up",options:[],disabled:!1,allowClear:!0,bordered:!0};var Ki=F.a=Di},DFhj:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("GGyF"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},DL4k:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},DN4a:function(H,F,d){var O=d("Fofx"),x=d("QBsz"),C=O.identity,A=5e-5;function S(n){return n>A||n<-A}var g=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},f=g.prototype;f.transform=null,f.needLocalTransform=function(){return S(this.rotation)||S(this.position[0])||S(this.position[1])||S(this.scale[0]-1)||S(this.scale[1]-1)};var c=[];f.updateTransform=function(){var n=this.parent,e=n&&n.transform,l=this.needLocalTransform(),t=this.transform;if(!(l||e)){t&&C(t);return}t=t||O.create(),l?this.getLocalTransform(t):C(t),e&&(l?O.mul(t,n.transform,t):O.copy(t,n.transform)),this.transform=t;var a=this.globalScaleRatio;if(a!=null&&a!==1){this.getGlobalScale(c);var s=c[0]<0?-1:1,u=c[1]<0?-1:1,h=((c[0]-s)*a+s)/c[0]||0,p=((c[1]-u)*a+u)/c[1]||0;t[0]*=h,t[1]*=h,t[2]*=p,t[3]*=p}this.invTransform=this.invTransform||O.create(),O.invert(this.invTransform,t)},f.getLocalTransform=function(n){return g.getLocalTransform(this,n)},f.setTransform=function(n){var e=this.transform,l=n.dpr||1;e?n.setTransform(l*e[0],l*e[1],l*e[2],l*e[3],l*e[4],l*e[5]):n.setTransform(l,0,0,l,0,0)},f.restoreTransform=function(n){var e=n.dpr||1;n.setTransform(e,0,0,e,0,0)};var o=[],r=O.create();f.setLocalTransform=function(n){if(!n)return;var e=n[0]*n[0]+n[1]*n[1],l=n[2]*n[2]+n[3]*n[3],t=this.position,a=this.scale;S(e-1)&&(e=Math.sqrt(e)),S(l-1)&&(l=Math.sqrt(l)),n[0]<0&&(e=-e),n[3]<0&&(l=-l),t[0]=n[4],t[1]=n[5],a[0]=e,a[1]=l,this.rotation=Math.atan2(-n[1]/l,n[0]/e)},f.decomposeTransform=function(){if(!this.transform)return;var n=this.parent,e=this.transform;n&&n.transform&&(O.mul(o,n.invTransform,e),e=o);var l=this.origin;l&&(l[0]||l[1])&&(r[4]=l[0],r[5]=l[1],O.mul(o,e,r),o[4]-=l[0],o[5]-=l[1],e=o),this.setLocalTransform(e)},f.getGlobalScale=function(n){var e=this.transform;return n=n||[],e?(n[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),n[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(n[0]=-n[0]),e[3]<0&&(n[1]=-n[1]),n):(n[0]=1,n[1]=1,n)},f.transformCoordToLocal=function(n,e){var l=[n,e],t=this.invTransform;return t&&x.applyTransform(l,l,t),l},f.transformCoordToGlobal=function(n,e){var l=[n,e],t=this.transform;return t&&x.applyTransform(l,l,t),l},g.getLocalTransform=function(n,e){e=e||[],C(e);var l=n.origin,t=n.scale||[1,1],a=n.rotation||0,s=n.position||[0,0];return l&&(e[4]-=l[0],e[5]-=l[1]),O.scale(e,e,t),a&&O.rotate(e,e,a),l&&(e[4]+=l[0],e[5]+=l[1]),e[4]+=s[0],e[5]+=s[1],e};var i=g;H.exports=i},DO2E:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},DYRE:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("OPEp"),A=d.n(C)},DZo9:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("JGo8"),A=d.n(C),S=d("+L6B"),g=d("MXD1"),f=d("5Dmo")},Dagg:function(H,F,d){var O=d("Gev7"),x=d("mFDi"),C=d("bYtY"),A=d("Xnb7");function S(f){O.call(this,f)}S.prototype={constructor:S,type:"image",brush:function(c,o){var r=this.style,i=r.image;r.bind(c,this,o);var n=this._image=A.createOrUpdateImage(i,this._image,this,this.onload);if(!n||!A.isImageReady(n))return;var e=r.x||0,l=r.y||0,t=r.width,a=r.height,s=n.width/n.height;if(t==null&&a!=null?t=a*s:a==null&&t!=null?a=t/s:t==null&&a==null&&(t=n.width,a=n.height),this.setTransform(c),r.sWidth&&r.sHeight){var u=r.sx||0,h=r.sy||0;c.drawImage(n,u,h,r.sWidth,r.sHeight,e,l,t,a)}else if(r.sx&&r.sy){var u=r.sx,h=r.sy,p=t-u,m=a-h;c.drawImage(n,u,h,p,m,e,l,t,a)}else c.drawImage(n,e,l,t,a);r.text!=null&&(this.restoreTransform(c),this.drawRectText(c,this.getBoundingRect()))},getBoundingRect:function(){var c=this.style;return this._rect||(this._rect=new x(c.x||0,c.y||0,c.width||0,c.height||0)),this._rect}},C.inherits(S,O);var g=S;H.exports=g},Dg8C:function(H,F,d){var O=d("XxSj"),x=d("bYtY");function C(A,S){A.eachSeriesByType("sankey",function(g){var f=g.getGraph(),c=f.nodes;if(c.length){var o=Infinity,r=-Infinity;x.each(c,function(i){var n=i.getLayout().value;n<o&&(o=n),n>r&&(r=n)}),x.each(c,function(i){var n=new O({type:"color",mappingMethod:"linear",dataExtent:[o,r],visual:g.get("color")}),e=n.mapValueToVisual(i.getLayout().value),l=i.getModel().get("itemStyle.color");l!=null?i.setVisual("color",l):i.setVisual("color",e)})}})}H.exports=C},DjyN:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("Urep"),A=d.n(C),S=d("OaEy")},DlQD:function(H,F,d){(function(O,x){H.exports=x()})(this,function(){"use strict";function O(tr,Mt){for(var Tt=0;Tt<Mt.length;Tt++){var Xe=Mt[Tt];Xe.enumerable=Xe.enumerable||!1,Xe.configurable=!0,"value"in Xe&&(Xe.writable=!0),Object.defineProperty(tr,Xe.key,Xe)}}function x(tr,Mt,Tt){return Mt&&O(tr.prototype,Mt),Tt&&O(tr,Tt),tr}function C(tr,Mt){if(!tr)return;if(typeof tr=="string")return A(tr,Mt);var Tt=Object.prototype.toString.call(tr).slice(8,-1);if(Tt==="Object"&&tr.constructor&&(Tt=tr.constructor.name),Tt==="Map"||Tt==="Set")return Array.from(tr);if(Tt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Tt))return A(tr,Mt)}function A(tr,Mt){(Mt==null||Mt>tr.length)&&(Mt=tr.length);for(var Tt=0,Xe=new Array(Mt);Tt<Mt;Tt++)Xe[Tt]=tr[Tt];return Xe}function S(tr,Mt){var Tt;if(typeof Symbol=="undefined"||tr[Symbol.iterator]==null){if(Array.isArray(tr)||(Tt=C(tr))||Mt&&tr&&typeof tr.length=="number"){Tt&&(tr=Tt);var Xe=0;return function(){return Xe>=tr.length?{done:!0}:{done:!1,value:tr[Xe++]}}}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 Tt=tr[Symbol.iterator](),Tt.next.bind(Tt)}function g(tr,Mt){return Mt={exports:{}},tr(Mt,Mt.exports),Mt.exports}var f=g(function(tr){function Mt(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Tt(Xe){tr.exports.defaults=Xe}tr.exports={defaults:Mt(),getDefaults:Mt,changeDefaults:Tt}}),c=f.defaults,o=f.getDefaults,r=f.changeDefaults,i=/[&<>"']/,n=/[&<>"']/g,e=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,t={"&":"&","<":"<",">":">",'"':""","'":"'"},a=function(Mt){return t[Mt]};function s(tr,Mt){if(Mt){if(i.test(tr))return tr.replace(n,a)}else if(e.test(tr))return tr.replace(l,a);return tr}var u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function h(tr){return tr.replace(u,function(Mt,Tt){return Tt=Tt.toLowerCase(),Tt==="colon"?":":Tt.charAt(0)==="#"?Tt.charAt(1)==="x"?String.fromCharCode(parseInt(Tt.substring(2),16)):String.fromCharCode(+Tt.substring(1)):""})}var p=/(^|[^\[])\^/g;function m(tr,Mt){tr=tr.source||tr,Mt=Mt||"";var Tt={replace:function(oe,X){return X=X.source||X,X=X.replace(p,"$1"),tr=tr.replace(oe,X),Tt},getRegex:function(){return new RegExp(tr,Mt)}};return Tt}var v=/[^\w:]/g,y=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function E(tr,Mt,Tt){if(tr){var Xe;try{Xe=decodeURIComponent(h(Tt)).replace(v,"").toLowerCase()}catch(oe){return null}if(Xe.indexOf("javascript:")===0||Xe.indexOf("vbscript:")===0||Xe.indexOf("data:")===0)return null}Mt&&!y.test(Tt)&&(Tt=I(Mt,Tt));try{Tt=encodeURI(Tt).replace(/%25/g,"%")}catch(oe){return null}return Tt}var T={},b=/^[^:]+:\/*[^/]*$/,w=/^([^:]+:)[\s\S]*$/,_=/^([^:]+:\/*[^/]*)[\s\S]*$/;function I(tr,Mt){T[" "+tr]||(b.test(tr)?T[" "+tr]=tr+"/":T[" "+tr]=R(tr,"/",!0)),tr=T[" "+tr];var Tt=tr.indexOf(":")===-1;return Mt.substring(0,2)==="//"?Tt?Mt:tr.replace(w,"$1")+Mt:Mt.charAt(0)==="/"?Tt?Mt:tr.replace(_,"$1")+Mt:tr+Mt}var L={exec:function(){}};function N(tr){for(var Mt=1,Tt,Xe;Mt<arguments.length;Mt++){Tt=arguments[Mt];for(Xe in Tt)Object.prototype.hasOwnProperty.call(Tt,Xe)&&(tr[Xe]=Tt[Xe])}return tr}function D(tr,Mt){var Tt=tr.replace(/\|/g,function(X,Be,Ee){for(var ee=!1,lt=Be;--lt>=0&&Ee[lt]==="\\";)ee=!ee;return ee?"|":" |"}),Xe=Tt.split(/ \|/),oe=0;if(Xe.length>Mt)Xe.splice(Mt);else for(;Xe.length<Mt;)Xe.push("");for(;oe<Xe.length;oe++)Xe[oe]=Xe[oe].trim().replace(/\\\|/g,"|");return Xe}function R(tr,Mt,Tt){var Xe=tr.length;if(Xe===0)return"";for(var oe=0;oe<Xe;){var X=tr.charAt(Xe-oe-1);if(X===Mt&&!Tt)oe++;else if(X!==Mt&&Tt)oe++;else break}return tr.substr(0,Xe-oe)}function k(tr,Mt){if(tr.indexOf(Mt[1])===-1)return-1;for(var Tt=tr.length,Xe=0,oe=0;oe<Tt;oe++)if(tr[oe]==="\\")oe++;else if(tr[oe]===Mt[0])Xe++;else if(tr[oe]===Mt[1]&&(Xe--,Xe<0))return oe;return-1}function M(tr){tr&&tr.sanitize&&!tr.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 U={escape:s,unescape:h,edit:m,cleanUrl:E,resolveUrl:I,noopTest:L,merge:N,splitCells:D,rtrim:R,findClosingBracket:k,checkSanitizeDeprecation:M},B=f.defaults,j=U.rtrim,W=U.splitCells,V=U.escape,z=U.findClosingBracket;function J(tr,Mt,Tt){var Xe=Mt.href,oe=Mt.title?V(Mt.title):null,X=tr[1].replace(/\\([\[\]])/g,"$1");return tr[0].charAt(0)!=="!"?{type:"link",raw:Tt,href:Xe,title:oe,text:X}:{type:"image",raw:Tt,href:Xe,title:oe,text:V(X)}}function Z(tr,Mt){var Tt=tr.match(/^(\s+)(?:```)/);if(Tt===null)return Mt;var Xe=Tt[1];return Mt.split(`
|
|
|
`).map(function(oe){var X=oe.match(/^\s+/);if(X===null)return oe;var Be=X[0];return Be.length>=Xe.length?oe.slice(Xe.length):oe}).join(`
|
|
|
`)}var de=function(){function tr(Tt){this.options=Tt||B}var Mt=tr.prototype;return Mt.space=function(Xe){var oe=this.rules.block.newline.exec(Xe);if(oe)return oe[0].length>1?{type:"space",raw:oe[0]}:{raw:`
|
|
|
`}},Mt.code=function(Xe,oe){var X=this.rules.block.code.exec(Xe);if(X){var Be=oe[oe.length-1];if(Be&&Be.type==="paragraph")return{raw:X[0],text:X[0].trimRight()};var Ee=X[0].replace(/^ {4}/gm,"");return{type:"code",raw:X[0],codeBlockStyle:"indented",text:this.options.pedantic?Ee:j(Ee,`
|
|
|
`)}}},Mt.fences=function(Xe){var oe=this.rules.block.fences.exec(Xe);if(oe){var X=oe[0],Be=Z(X,oe[3]||"");return{type:"code",raw:X,lang:oe[2]?oe[2].trim():oe[2],text:Be}}},Mt.heading=function(Xe){var oe=this.rules.block.heading.exec(Xe);if(oe)return{type:"heading",raw:oe[0],depth:oe[1].length,text:oe[2]}},Mt.nptable=function(Xe){var oe=this.rules.block.nptable.exec(Xe);if(oe){var X={type:"table",header:W(oe[1].replace(/^ *| *\| *$/g,"")),align:oe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:oe[3]?oe[3].replace(/\n$/,"").split(`
|
|
|
`):[],raw:oe[0]};if(X.header.length===X.align.length){var Be=X.align.length,Ee;for(Ee=0;Ee<Be;Ee++)/^ *-+: *$/.test(X.align[Ee])?X.align[Ee]="right":/^ *:-+: *$/.test(X.align[Ee])?X.align[Ee]="center":/^ *:-+ *$/.test(X.align[Ee])?X.align[Ee]="left":X.align[Ee]=null;for(Be=X.cells.length,Ee=0;Ee<Be;Ee++)X.cells[Ee]=W(X.cells[Ee],X.header.length);return X}}},Mt.hr=function(Xe){var oe=this.rules.block.hr.exec(Xe);if(oe)return{type:"hr",raw:oe[0]}},Mt.blockquote=function(Xe){var oe=this.rules.block.blockquote.exec(Xe);if(oe){var X=oe[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:oe[0],text:X}}},Mt.list=function(Xe){var oe=this.rules.block.list.exec(Xe);if(oe){for(var X=oe[0],Be=oe[2],Ee=Be.length>1,ee=Be[Be.length-1]===")",lt={type:"list",raw:X,ordered:Ee,start:Ee?+Be.slice(0,-1):"",loose:!1,items:[]},Ct=oe[0].match(this.rules.block.item),dt=!1,_t,ir,$r,nr,lr,zt,Ut,st=Ct.length,Hr=0;Hr<st;Hr++)_t=Ct[Hr],X=_t,ir=_t.length,_t=_t.replace(/^ *([*+-]|\d+[.)]) */,""),~_t.indexOf(`
|
|
|
`)&&(ir-=_t.length,_t=this.options.pedantic?_t.replace(/^ {1,4}/gm,""):_t.replace(new RegExp("^ {1,"+ir+"}","gm"),"")),Hr!==st-1&&($r=this.rules.block.bullet.exec(Ct[Hr+1])[0],(Ee?$r.length===1||!ee&&$r[$r.length-1]===")":$r.length>1||this.options.smartLists&&$r!==Be)&&(nr=Ct.slice(Hr+1).join(`
|
|
|
`),lt.raw=lt.raw.substring(0,lt.raw.length-nr.length),Hr=st-1)),lr=dt||/\n\n(?!\s*$)/.test(_t),Hr!==st-1&&(dt=_t.charAt(_t.length-1)===`
|
|
|
`,lr||(lr=dt)),lr&&(lt.loose=!0),zt=/^\[[ xX]\] /.test(_t),Ut=void 0,zt&&(Ut=_t[1]!==" ",_t=_t.replace(/^\[[ xX]\] +/,"")),lt.items.push({type:"list_item",raw:X,task:zt,checked:Ut,loose:lr,text:_t});return lt}},Mt.html=function(Xe){var oe=this.rules.block.html.exec(Xe);if(oe)return{type:this.options.sanitize?"paragraph":"html",raw:oe[0],pre:!this.options.sanitizer&&(oe[1]==="pre"||oe[1]==="script"||oe[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(oe[0]):V(oe[0]):oe[0]}},Mt.def=function(Xe){var oe=this.rules.block.def.exec(Xe);if(oe){oe[3]&&(oe[3]=oe[3].substring(1,oe[3].length-1));var X=oe[1].toLowerCase().replace(/\s+/g," ");return{tag:X,raw:oe[0],href:oe[2],title:oe[3]}}},Mt.table=function(Xe){var oe=this.rules.block.table.exec(Xe);if(oe){var X={type:"table",header:W(oe[1].replace(/^ *| *\| *$/g,"")),align:oe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:oe[3]?oe[3].replace(/\n$/,"").split(`
|
|
|
`):[]};if(X.header.length===X.align.length){X.raw=oe[0];var Be=X.align.length,Ee;for(Ee=0;Ee<Be;Ee++)/^ *-+: *$/.test(X.align[Ee])?X.align[Ee]="right":/^ *:-+: *$/.test(X.align[Ee])?X.align[Ee]="center":/^ *:-+ *$/.test(X.align[Ee])?X.align[Ee]="left":X.align[Ee]=null;for(Be=X.cells.length,Ee=0;Ee<Be;Ee++)X.cells[Ee]=W(X.cells[Ee].replace(/^ *\| *| *\| *$/g,""),X.header.length);return X}}},Mt.lheading=function(Xe){var oe=this.rules.block.lheading.exec(Xe);if(oe)return{type:"heading",raw:oe[0],depth:oe[2].charAt(0)==="="?1:2,text:oe[1]}},Mt.paragraph=function(Xe){var oe=this.rules.block.paragraph.exec(Xe);if(oe)return{type:"paragraph",raw:oe[0],text:oe[1].charAt(oe[1].length-1)===`
|
|
|
`?oe[1].slice(0,-1):oe[1]}},Mt.text=function(Xe,oe){var X=this.rules.block.text.exec(Xe);if(X){var Be=oe[oe.length-1];return Be&&Be.type==="text"?{raw:X[0],text:X[0]}:{type:"text",raw:X[0],text:X[0]}}},Mt.escape=function(Xe){var oe=this.rules.inline.escape.exec(Xe);if(oe)return{type:"escape",raw:oe[0],text:V(oe[1])}},Mt.tag=function(Xe,oe,X){var Be=this.rules.inline.tag.exec(Xe);if(Be)return!oe&&/^<a /i.test(Be[0])?oe=!0:oe&&/^<\/a>/i.test(Be[0])&&(oe=!1),!X&&/^<(pre|code|kbd|script)(\s|>)/i.test(Be[0])?X=!0:X&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Be[0])&&(X=!1),{type:this.options.sanitize?"text":"html",raw:Be[0],inLink:oe,inRawBlock:X,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Be[0]):V(Be[0]):Be[0]}},Mt.link=function(Xe){var oe=this.rules.inline.link.exec(Xe);if(oe){var X=z(oe[2],"()");if(X>-1){var Be=oe[0].indexOf("!")===0?5:4,Ee=Be+oe[1].length+X;oe[2]=oe[2].substring(0,X),oe[0]=oe[0].substring(0,Ee).trim(),oe[3]=""}var ee=oe[2],lt="";if(this.options.pedantic){var Ct=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ee);Ct?(ee=Ct[1],lt=Ct[3]):lt=""}else lt=oe[3]?oe[3].slice(1,-1):"";ee=ee.trim().replace(/^<([\s\S]*)>$/,"$1");var dt=J(oe,{href:ee&&ee.replace(this.rules.inline._escapes,"$1"),title:lt&<.replace(this.rules.inline._escapes,"$1")},oe[0]);return dt}},Mt.reflink=function(Xe,oe){var X;if((X=this.rules.inline.reflink.exec(Xe))||(X=this.rules.inline.nolink.exec(Xe))){var Be=(X[2]||X[1]).replace(/\s+/g," ");if(Be=oe[Be.toLowerCase()],!Be||!Be.href){var Ee=X[0].charAt(0);return{type:"text",raw:Ee,text:Ee}}var ee=J(X,Be,X[0]);return ee}},Mt.strong=function(Xe,oe,X){X===void 0&&(X="");var Be=this.rules.inline.strong.start.exec(Xe);if(Be&&(!Be[1]||Be[1]&&(X===""||this.rules.inline.punctuation.exec(X)))){oe=oe.slice(-1*Xe.length);var Ee=Be[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Ee.lastIndex=0;for(var ee;(Be=Ee.exec(oe))!=null;)if(ee=this.rules.inline.strong.middle.exec(oe.slice(0,Be.index+3)),ee)return{type:"strong",raw:Xe.slice(0,ee[0].length),text:Xe.slice(2,ee[0].length-2)}}},Mt.em=function(Xe,oe,X){X===void 0&&(X="");var Be=this.rules.inline.em.start.exec(Xe);if(Be&&(!Be[1]||Be[1]&&(X===""||this.rules.inline.punctuation.exec(X)))){oe=oe.slice(-1*Xe.length);var Ee=Be[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Ee.lastIndex=0;for(var ee;(Be=Ee.exec(oe))!=null;)if(ee=this.rules.inline.em.middle.exec(oe.slice(0,Be.index+2)),ee)return{type:"em",raw:Xe.slice(0,ee[0].length),text:Xe.slice(1,ee[0].length-1)}}},Mt.codespan=function(Xe){var oe=this.rules.inline.code.exec(Xe);if(oe){var X=oe[2].replace(/\n/g," "),Be=/[^ ]/.test(X),Ee=X.startsWith(" ")&&X.endsWith(" ");return Be&&Ee&&(X=X.substring(1,X.length-1)),X=V(X,!0),{type:"codespan",raw:oe[0],text:X}}},Mt.br=function(Xe){var oe=this.rules.inline.br.exec(Xe);if(oe)return{type:"br",raw:oe[0]}},Mt.del=function(Xe){var oe=this.rules.inline.del.exec(Xe);if(oe)return{type:"del",raw:oe[0],text:oe[1]}},Mt.autolink=function(Xe,oe){var X=this.rules.inline.autolink.exec(Xe);if(X){var Be,Ee;return X[2]==="@"?(Be=V(this.options.mangle?oe(X[1]):X[1]),Ee="mailto:"+Be):(Be=V(X[1]),Ee=Be),{type:"link",raw:X[0],text:Be,href:Ee,tokens:[{type:"text",raw:Be,text:Be}]}}},Mt.url=function(Xe,oe){var X;if(X=this.rules.inline.url.exec(Xe)){var Be,Ee;if(X[2]==="@")Be=V(this.options.mangle?oe(X[0]):X[0]),Ee="mailto:"+Be;else{var ee;do ee=X[0],X[0]=this.rules.inline._backpedal.exec(X[0])[0];while(ee!==X[0]);Be=V(X[0]),X[1]==="www."?Ee="http://"+Be:Ee=Be}return{type:"link",raw:X[0],text:Be,href:Ee,tokens:[{type:"text",raw:Be,text:Be}]}}},Mt.inlineText=function(Xe,oe,X){var Be=this.rules.inline.text.exec(Xe);if(Be){var Ee;return oe?Ee=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Be[0]):V(Be[0]):Be[0]:Ee=V(this.options.smartypants?X(Be[0]):Be[0]),{type:"text",raw:Be[0],text:Ee}}},tr}(),ie=U.noopTest,ve=U.edit,xe=U.merge,_e={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:ie,table:ie,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};_e._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_e._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,_e.def=ve(_e.def).replace("label",_e._label).replace("title",_e._title).getRegex(),_e.bullet=/(?:[*+-]|\d{1,9}[.)])/,_e.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,_e.item=ve(_e.item,"gm").replace(/bull/g,_e.bullet).getRegex(),_e.list=ve(_e.list).replace(/bull/g,_e.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+_e.def.source+")").getRegex(),_e._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",_e._comment=/<!--(?!-?>)[\s\S]*?-->/,_e.html=ve(_e.html,"i").replace("comment",_e._comment).replace("tag",_e._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_e.paragraph=ve(_e._paragraph).replace("hr",_e.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",_e._tag).getRegex(),_e.blockquote=ve(_e.blockquote).replace("paragraph",_e.paragraph).getRegex(),_e.normal=xe({},_e),_e.gfm=xe({},_e.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*|$)"}),_e.gfm.nptable=ve(_e.gfm.nptable).replace("hr",_e.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",_e._tag).getRegex(),_e.gfm.table=ve(_e.gfm.table).replace("hr",_e.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",_e._tag).getRegex(),_e.pedantic=xe({},_e.normal,{html:ve(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",_e._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:ie,paragraph:ve(_e.normal._paragraph).replace("hr",_e.hr).replace("heading",` *#{1,6} *[^
|
|
|
]`).replace("lheading",_e.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Ue={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ie,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:ie,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/};Ue._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ue.punctuation=ve(Ue.punctuation).replace(/punctuation/g,Ue._punctuation).getRegex(),Ue._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",Ue._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",Ue.em.start=ve(Ue.em.start).replace(/punctuation/g,Ue._punctuation).getRegex(),Ue.em.middle=ve(Ue.em.middle).replace(/punctuation/g,Ue._punctuation).replace(/overlapSkip/g,Ue._overlapSkip).getRegex(),Ue.em.endAst=ve(Ue.em.endAst,"g").replace(/punctuation/g,Ue._punctuation).getRegex(),Ue.em.endUnd=ve(Ue.em.endUnd,"g").replace(/punctuation/g,Ue._punctuation).getRegex(),Ue.strong.start=ve(Ue.strong.start).replace(/punctuation/g,Ue._punctuation).getRegex(),Ue.strong.middle=ve(Ue.strong.middle).replace(/punctuation/g,Ue._punctuation).replace(/blockSkip/g,Ue._blockSkip).getRegex(),Ue.strong.endAst=ve(Ue.strong.endAst,"g").replace(/punctuation/g,Ue._punctuation).getRegex(),Ue.strong.endUnd=ve(Ue.strong.endUnd,"g").replace(/punctuation/g,Ue._punctuation).getRegex(),Ue.blockSkip=ve(Ue._blockSkip,"g").getRegex(),Ue.overlapSkip=ve(Ue._overlapSkip,"g").getRegex(),Ue._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ue._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ue._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])?)+(?![-_])/,Ue.autolink=ve(Ue.autolink).replace("scheme",Ue._scheme).replace("email",Ue._email).getRegex(),Ue._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ue.tag=ve(Ue.tag).replace("comment",_e._comment).replace("attribute",Ue._attribute).getRegex(),Ue._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ue._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,Ue._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ue.link=ve(Ue.link).replace("label",Ue._label).replace("href",Ue._href).replace("title",Ue._title).getRegex(),Ue.reflink=ve(Ue.reflink).replace("label",Ue._label).getRegex(),Ue.reflinkSearch=ve(Ue.reflinkSearch,"g").replace("reflink",Ue.reflink).replace("nolink",Ue.nolink).getRegex(),Ue.normal=xe({},Ue),Ue.pedantic=xe({},Ue.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:ve(/^!?\[(label)\]\((.*?)\)/).replace("label",Ue._label).getRegex(),reflink:ve(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ue._label).getRegex()}),Ue.gfm=xe({},Ue.normal,{escape:ve(Ue.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),Ue.gfm.url=ve(Ue.gfm.url,"i").replace("email",Ue.gfm._extended_email).getRegex(),Ue.breaks=xe({},Ue.gfm,{br:ve(Ue.br).replace("{2,}","*").getRegex(),text:ve(Ue.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var fe={block:_e,inline:Ue},ke=f.defaults,se=fe.block,te=fe.inline;function Ve(tr){return tr.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 ae(tr){var Mt="",Tt,Xe,oe=tr.length;for(Tt=0;Tt<oe;Tt++)Xe=tr.charCodeAt(Tt),Math.random()>.5&&(Xe="x"+Xe.toString(16)),Mt+="&#"+Xe+";";return Mt}var Q=function(){function tr(Tt){this.tokens=[],this.tokens.links=Object.create(null),this.options=Tt||ke,this.options.tokenizer=this.options.tokenizer||new de,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Xe={block:se.normal,inline:te.normal};this.options.pedantic?(Xe.block=se.pedantic,Xe.inline=te.pedantic):this.options.gfm&&(Xe.block=se.gfm,this.options.breaks?Xe.inline=te.breaks:Xe.inline=te.gfm),this.tokenizer.rules=Xe}tr.lex=function(Xe,oe){var X=new tr(oe);return X.lex(Xe)};var Mt=tr.prototype;return Mt.lex=function(Xe){return Xe=Xe.replace(/\r\n|\r/g,`
|
|
|
`).replace(/\t/g," "),this.blockTokens(Xe,this.tokens,!0),this.inline(this.tokens),this.tokens},Mt.blockTokens=function(Xe,oe,X){oe===void 0&&(oe=[]),X===void 0&&(X=!0),Xe=Xe.replace(/^ +$/gm,"");for(var Be,Ee,ee,lt;Xe;){if(Be=this.tokenizer.space(Xe)){Xe=Xe.substring(Be.raw.length),Be.type&&oe.push(Be);continue}if(Be=this.tokenizer.code(Xe,oe)){Xe=Xe.substring(Be.raw.length),Be.type?oe.push(Be):(lt=oe[oe.length-1],lt.raw+=`
|
|
|
`+Be.raw,lt.text+=`
|
|
|
`+Be.text);continue}if(Be=this.tokenizer.fences(Xe)){Xe=Xe.substring(Be.raw.length),oe.push(Be);continue}if(Be=this.tokenizer.heading(Xe)){Xe=Xe.substring(Be.raw.length),oe.push(Be);continue}if(Be=this.tokenizer.nptable(Xe)){Xe=Xe.substring(Be.raw.length),oe.push(Be);continue}if(Be=this.tokenizer.hr(Xe)){Xe=Xe.substring(Be.raw.length),oe.push(Be);continue}if(Be=this.tokenizer.blockquote(Xe)){Xe=Xe.substring(Be.raw.length),Be.tokens=this.blockTokens(Be.text,[],X),oe.push(Be);continue}if(Be=this.tokenizer.list(Xe)){for(Xe=Xe.substring(Be.raw.length),ee=Be.items.length,Ee=0;Ee<ee;Ee++)Be.items[Ee].tokens=this.blockTokens(Be.items[Ee].text,[],!1);oe.push(Be);continue}if(Be=this.tokenizer.html(Xe)){Xe=Xe.substring(Be.raw.length),oe.push(Be);continue}if(X&&(Be=this.tokenizer.def(Xe))){Xe=Xe.substring(Be.raw.length),this.tokens.links[Be.tag]||(this.tokens.links[Be.tag]={href:Be.href,title:Be.title});continue}if(Be=this.tokenizer.table(Xe)){Xe=Xe.substring(Be.raw.length),oe.push(Be);continue}if(Be=this.tokenizer.lheading(Xe)){Xe=Xe.substring(Be.raw.length),oe.push(Be);continue}if(X&&(Be=this.tokenizer.paragraph(Xe))){Xe=Xe.substring(Be.raw.length),oe.push(Be);continue}if(Be=this.tokenizer.text(Xe,oe)){Xe=Xe.substring(Be.raw.length),Be.type?oe.push(Be):(lt=oe[oe.length-1],lt.raw+=`
|
|
|
`+Be.raw,lt.text+=`
|
|
|
`+Be.text);continue}if(Xe){var Ct="Infinite loop on byte: "+Xe.charCodeAt(0);if(this.options.silent){console.error(Ct);break}else throw new Error(Ct)}}return oe},Mt.inline=function(Xe){var oe,X,Be,Ee,ee,lt,Ct=Xe.length;for(oe=0;oe<Ct;oe++){lt=Xe[oe];switch(lt.type){case"paragraph":case"text":case"heading":{lt.tokens=[],this.inlineTokens(lt.text,lt.tokens);break}case"table":{for(lt.tokens={header:[],cells:[]},Ee=lt.header.length,X=0;X<Ee;X++)lt.tokens.header[X]=[],this.inlineTokens(lt.header[X],lt.tokens.header[X]);for(Ee=lt.cells.length,X=0;X<Ee;X++)for(ee=lt.cells[X],lt.tokens.cells[X]=[],Be=0;Be<ee.length;Be++)lt.tokens.cells[X][Be]=[],this.inlineTokens(ee[Be],lt.tokens.cells[X][Be]);break}case"blockquote":{this.inline(lt.tokens);break}case"list":{for(Ee=lt.items.length,X=0;X<Ee;X++)this.inline(lt.items[X].tokens);break}}}return Xe},Mt.inlineTokens=function(Xe,oe,X,Be,Ee){oe===void 0&&(oe=[]),X===void 0&&(X=!1),Be===void 0&&(Be=!1),Ee===void 0&&(Ee="");var ee,lt=Xe,Ct;if(this.tokens.links){var dt=Object.keys(this.tokens.links);if(dt.length>0)for(;(Ct=this.tokenizer.rules.inline.reflinkSearch.exec(lt))!=null;)dt.includes(Ct[0].slice(Ct[0].lastIndexOf("[")+1,-1))&&(lt=lt.slice(0,Ct.index)+"["+"a".repeat(Ct[0].length-2)+"]"+lt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Ct=this.tokenizer.rules.inline.blockSkip.exec(lt))!=null;)lt=lt.slice(0,Ct.index)+"["+"a".repeat(Ct[0].length-2)+"]"+lt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Xe;){if(ee=this.tokenizer.escape(Xe)){Xe=Xe.substring(ee.raw.length),oe.push(ee);continue}if(ee=this.tokenizer.tag(Xe,X,Be)){Xe=Xe.substring(ee.raw.length),X=ee.inLink,Be=ee.inRawBlock,oe.push(ee);continue}if(ee=this.tokenizer.link(Xe)){Xe=Xe.substring(ee.raw.length),ee.type==="link"&&(ee.tokens=this.inlineTokens(ee.text,[],!0,Be)),oe.push(ee);continue}if(ee=this.tokenizer.reflink(Xe,this.tokens.links)){Xe=Xe.substring(ee.raw.length),ee.type==="link"&&(ee.tokens=this.inlineTokens(ee.text,[],!0,Be)),oe.push(ee);continue}if(ee=this.tokenizer.strong(Xe,lt,Ee)){Xe=Xe.substring(ee.raw.length),ee.tokens=this.inlineTokens(ee.text,[],X,Be),oe.push(ee);continue}if(ee=this.tokenizer.em(Xe,lt,Ee)){Xe=Xe.substring(ee.raw.length),ee.tokens=this.inlineTokens(ee.text,[],X,Be),oe.push(ee);continue}if(ee=this.tokenizer.codespan(Xe)){Xe=Xe.substring(ee.raw.length),oe.push(ee);continue}if(ee=this.tokenizer.br(Xe)){Xe=Xe.substring(ee.raw.length),oe.push(ee);continue}if(ee=this.tokenizer.del(Xe)){Xe=Xe.substring(ee.raw.length),ee.tokens=this.inlineTokens(ee.text,[],X,Be),oe.push(ee);continue}if(ee=this.tokenizer.autolink(Xe,ae)){Xe=Xe.substring(ee.raw.length),oe.push(ee);continue}if(!X&&(ee=this.tokenizer.url(Xe,ae))){Xe=Xe.substring(ee.raw.length),oe.push(ee);continue}if(ee=this.tokenizer.inlineText(Xe,Be,Ve)){Xe=Xe.substring(ee.raw.length),Ee=ee.raw.slice(-1),oe.push(ee);continue}if(Xe){var _t="Infinite loop on byte: "+Xe.charCodeAt(0);if(this.options.silent){console.error(_t);break}else throw new Error(_t)}}return oe},x(tr,null,[{key:"rules",get:function(){return{block:se,inline:te}}}]),tr}(),G=f.defaults,Y=U.cleanUrl,me=U.escape,ue=function(){function tr(Tt){this.options=Tt||G}var Mt=tr.prototype;return Mt.code=function(Xe,oe,X){var Be=(oe||"").match(/\S*/)[0];if(this.options.highlight){var Ee=this.options.highlight(Xe,Be);Ee!=null&&Ee!==Xe&&(X=!0,Xe=Ee)}return Be?'<pre><code class="'+this.options.langPrefix+me(Be,!0)+'">'+(X?Xe:me(Xe,!0))+`</code></pre>
|
|
|
`:"<pre><code>"+(X?Xe:me(Xe,!0))+`</code></pre>
|
|
|
`},Mt.blockquote=function(Xe){return`<blockquote>
|
|
|
`+Xe+`</blockquote>
|
|
|
`},Mt.html=function(Xe){return Xe},Mt.heading=function(Xe,oe,X,Be){return this.options.headerIds?"<h"+oe+' id="'+this.options.headerPrefix+Be.slug(X)+'">'+Xe+"</h"+oe+`>
|
|
|
`:"<h"+oe+">"+Xe+"</h"+oe+`>
|
|
|
`},Mt.hr=function(){return this.options.xhtml?`<hr/>
|
|
|
`:`<hr>
|
|
|
`},Mt.list=function(Xe,oe,X){var Be=oe?"ol":"ul",Ee=oe&&X!==1?' start="'+X+'"':"";return"<"+Be+Ee+`>
|
|
|
`+Xe+"</"+Be+`>
|
|
|
`},Mt.listitem=function(Xe){return"<li>"+Xe+`</li>
|
|
|
`},Mt.checkbox=function(Xe){return"<input "+(Xe?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Mt.paragraph=function(Xe){return"<p>"+Xe+`</p>
|
|
|
`},Mt.table=function(Xe,oe){return oe&&(oe="<tbody>"+oe+"</tbody>"),`<table>
|
|
|
<thead>
|
|
|
`+Xe+`</thead>
|
|
|
`+oe+`</table>
|
|
|
`},Mt.tablerow=function(Xe){return`<tr>
|
|
|
`+Xe+`</tr>
|
|
|
`},Mt.tablecell=function(Xe,oe){var X=oe.header?"th":"td",Be=oe.align?"<"+X+' align="'+oe.align+'">':"<"+X+">";return Be+Xe+"</"+X+`>
|
|
|
`},Mt.strong=function(Xe){return"<strong>"+Xe+"</strong>"},Mt.em=function(Xe){return"<em>"+Xe+"</em>"},Mt.codespan=function(Xe){return"<code>"+Xe+"</code>"},Mt.br=function(){return this.options.xhtml?"<br/>":"<br>"},Mt.del=function(Xe){return"<del>"+Xe+"</del>"},Mt.link=function(Xe,oe,X){if(Xe=Y(this.options.sanitize,this.options.baseUrl,Xe),Xe===null)return X;var Be='<a href="'+me(Xe)+'"';return oe&&(Be+=' title="'+oe+'"'),Be+=">"+X+"</a>",Be},Mt.image=function(Xe,oe,X){if(Xe=Y(this.options.sanitize,this.options.baseUrl,Xe),Xe===null)return X;var Be='<img src="'+Xe+'" alt="'+X+'"';return oe&&(Be+=' title="'+oe+'"'),Be+=this.options.xhtml?"/>":">",Be},Mt.text=function(Xe){return Xe},tr}(),Ce=function(){function tr(){}var Mt=tr.prototype;return Mt.strong=function(Xe){return Xe},Mt.em=function(Xe){return Xe},Mt.codespan=function(Xe){return Xe},Mt.del=function(Xe){return Xe},Mt.html=function(Xe){return Xe},Mt.text=function(Xe){return Xe},Mt.link=function(Xe,oe,X){return""+X},Mt.image=function(Xe,oe,X){return""+X},Mt.br=function(){return""},tr}(),Ie=function(){function tr(){this.seen={}}var Mt=tr.prototype;return Mt.slug=function(Xe){var oe=Xe.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(oe)){var X=oe;do this.seen[X]++,oe=X+"-"+this.seen[X];while(this.seen.hasOwnProperty(oe))}return this.seen[oe]=0,oe},tr}(),ce=f.defaults,Ae=U.unescape,Te=function(){function tr(Tt){this.options=Tt||ce,this.options.renderer=this.options.renderer||new ue,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ce,this.slugger=new Ie}tr.parse=function(Xe,oe){var X=new tr(oe);return X.parse(Xe)};var Mt=tr.prototype;return Mt.parse=function(Xe,oe){oe===void 0&&(oe=!0);var X="",Be,Ee,ee,lt,Ct,dt,_t,ir,$r,nr,lr,zt,Ut,st,Hr,mn,In,Yn,Mi=Xe.length;for(Be=0;Be<Mi;Be++){nr=Xe[Be];switch(nr.type){case"space":continue;case"hr":{X+=this.renderer.hr();continue}case"heading":{X+=this.renderer.heading(this.parseInline(nr.tokens),nr.depth,Ae(this.parseInline(nr.tokens,this.textRenderer)),this.slugger);continue}case"code":{X+=this.renderer.code(nr.text,nr.lang,nr.escaped);continue}case"table":{for(ir="",_t="",lt=nr.header.length,Ee=0;Ee<lt;Ee++)_t+=this.renderer.tablecell(this.parseInline(nr.tokens.header[Ee]),{header:!0,align:nr.align[Ee]});for(ir+=this.renderer.tablerow(_t),$r="",lt=nr.cells.length,Ee=0;Ee<lt;Ee++){for(dt=nr.tokens.cells[Ee],_t="",Ct=dt.length,ee=0;ee<Ct;ee++)_t+=this.renderer.tablecell(this.parseInline(dt[ee]),{header:!1,align:nr.align[ee]});$r+=this.renderer.tablerow(_t)}X+=this.renderer.table(ir,$r);continue}case"blockquote":{$r=this.parse(nr.tokens),X+=this.renderer.blockquote($r);continue}case"list":{for(lr=nr.ordered,zt=nr.start,Ut=nr.loose,lt=nr.items.length,$r="",Ee=0;Ee<lt;Ee++)Hr=nr.items[Ee],mn=Hr.checked,In=Hr.task,st="",Hr.task&&(Yn=this.renderer.checkbox(mn),Ut?Hr.tokens.length>0&&Hr.tokens[0].type==="text"?(Hr.tokens[0].text=Yn+" "+Hr.tokens[0].text,Hr.tokens[0].tokens&&Hr.tokens[0].tokens.length>0&&Hr.tokens[0].tokens[0].type==="text"&&(Hr.tokens[0].tokens[0].text=Yn+" "+Hr.tokens[0].tokens[0].text)):Hr.tokens.unshift({type:"text",text:Yn}):st+=Yn),st+=this.parse(Hr.tokens,Ut),$r+=this.renderer.listitem(st,In,mn);X+=this.renderer.list($r,lr,zt);continue}case"html":{X+=this.renderer.html(nr.text);continue}case"paragraph":{X+=this.renderer.paragraph(this.parseInline(nr.tokens));continue}case"text":{for($r=nr.tokens?this.parseInline(nr.tokens):nr.text;Be+1<Mi&&Xe[Be+1].type==="text";)nr=Xe[++Be],$r+=`
|
|
|
`+(nr.tokens?this.parseInline(nr.tokens):nr.text);X+=oe?this.renderer.paragraph($r):$r;continue}default:{var wn='Token with "'+nr.type+'" type was not found.';if(this.options.silent){console.error(wn);return}else throw new Error(wn)}}}return X},Mt.parseInline=function(Xe,oe){oe=oe||this.renderer;var X="",Be,Ee,ee=Xe.length;for(Be=0;Be<ee;Be++){Ee=Xe[Be];switch(Ee.type){case"escape":{X+=oe.text(Ee.text);break}case"html":{X+=oe.html(Ee.text);break}case"link":{X+=oe.link(Ee.href,Ee.title,this.parseInline(Ee.tokens,oe));break}case"image":{X+=oe.image(Ee.href,Ee.title,Ee.text);break}case"strong":{X+=oe.strong(this.parseInline(Ee.tokens,oe));break}case"em":{X+=oe.em(this.parseInline(Ee.tokens,oe));break}case"codespan":{X+=oe.codespan(Ee.text);break}case"br":{X+=oe.br();break}case"del":{X+=oe.del(this.parseInline(Ee.tokens,oe));break}case"text":{X+=oe.text(Ee.text);break}default:{var lt='Token with "'+Ee.type+'" type was not found.';if(this.options.silent){console.error(lt);return}else throw new Error(lt)}}}return X},tr}(),Ge=U.merge,gt=U.checkSanitizeDeprecation,qe=U.escape,Le=f.getDefaults,Ot=f.changeDefaults,$e=f.defaults;function xt(tr,Mt,Tt){if(typeof tr=="undefined"||tr===null)throw new Error("marked(): input parameter is undefined or null");if(typeof tr!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(tr)+", string expected");if(typeof Mt=="function"&&(Tt=Mt,Mt=null),Mt=Ge({},xt.defaults,Mt||{}),gt(Mt),Tt){var Xe=Mt.highlight,oe;try{oe=Q.lex(tr,Mt)}catch(ee){return Tt(ee)}var X=function(lt){var Ct;if(!lt)try{Ct=Te.parse(oe,Mt)}catch(dt){lt=dt}return Mt.highlight=Xe,lt?Tt(lt):Tt(null,Ct)};if(!Xe||Xe.length<3)return X();if(delete Mt.highlight,!oe.length)return X();var Be=0;xt.walkTokens(oe,function(ee){ee.type==="code"&&(Be++,setTimeout(function(){Xe(ee.text,ee.lang,function(lt,Ct){if(lt)return X(lt);Ct!=null&&Ct!==ee.text&&(ee.text=Ct,ee.escaped=!0),Be--,Be===0&&X()})},0))}),Be===0&&X();return}try{var Ee=Q.lex(tr,Mt);return Mt.walkTokens&&xt.walkTokens(Ee,Mt.walkTokens),Te.parse(Ee,Mt)}catch(ee){if(ee.message+=`
|
|
|
Please report this to https://github.com/markedjs/marked.`,Mt.silent)return"<p>An error occurred:</p><pre>"+qe(ee.message+"",!0)+"</pre>";throw ee}}xt.options=xt.setOptions=function(tr){return Ge(xt.defaults,tr),Ot(xt.defaults),xt},xt.getDefaults=Le,xt.defaults=$e,xt.use=function(tr){var Mt=Ge({},tr);if(tr.renderer&&function(){var Xe=xt.defaults.renderer||new ue,oe=function(Ee){var ee=Xe[Ee];Xe[Ee]=function(){for(var lt=arguments.length,Ct=new Array(lt),dt=0;dt<lt;dt++)Ct[dt]=arguments[dt];var _t=tr.renderer[Ee].apply(Xe,Ct);return _t===!1&&(_t=ee.apply(Xe,Ct)),_t}};for(var X in tr.renderer)oe(X);Mt.renderer=Xe}(),tr.tokenizer&&function(){var Xe=xt.defaults.tokenizer||new de,oe=function(Ee){var ee=Xe[Ee];Xe[Ee]=function(){for(var lt=arguments.length,Ct=new Array(lt),dt=0;dt<lt;dt++)Ct[dt]=arguments[dt];var _t=tr.tokenizer[Ee].apply(Xe,Ct);return _t===!1&&(_t=ee.apply(Xe,Ct)),_t}};for(var X in tr.tokenizer)oe(X);Mt.tokenizer=Xe}(),tr.walkTokens){var Tt=xt.defaults.walkTokens;Mt.walkTokens=function(Xe){tr.walkTokens(Xe),Tt&&Tt(Xe)}}xt.setOptions(Mt)},xt.walkTokens=function(tr,Mt){for(var Tt=S(tr),Xe;!(Xe=Tt()).done;){var oe=Xe.value;Mt(oe);switch(oe.type){case"table":{for(var X=S(oe.tokens.header),Be;!(Be=X()).done;){var Ee=Be.value;xt.walkTokens(Ee,Mt)}for(var ee=S(oe.tokens.cells),lt;!(lt=ee()).done;)for(var Ct=lt.value,dt=S(Ct),_t;!(_t=dt()).done;){var ir=_t.value;xt.walkTokens(ir,Mt)}break}case"list":{xt.walkTokens(oe.items,Mt);break}default:oe.tokens&&xt.walkTokens(oe.tokens,Mt)}}},xt.Parser=Te,xt.parser=Te.parse,xt.Renderer=ue,xt.TextRenderer=Ce,xt.Lexer=Q,xt.lexer=Q.lex,xt.Tokenizer=de,xt.Slugger=Ie,xt.parse=xt;var Ht=xt;return Ht})},"DlR+":function(H,F,d){var O=d("MFOe"),x=O.Global,C=O.trim;H.exports={name:"cookieStorage",read:S,write:f,each:g,remove:c,clearAll:o};var A=x.document;function S(i){if(!i||!r(i))return null;var n="(?:^|.*;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(A.cookie.replace(new RegExp(n),"$1"))}function g(i){for(var n=A.cookie.split(/; ?/g),e=n.length-1;e>=0;e--){if(!C(n[e]))continue;var l=n[e].split("="),t=unescape(l[0]),a=unescape(l[1]);i(a,t)}}function f(i,n){if(!i)return;A.cookie=escape(i)+"="+escape(n)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function c(i){if(!i||!r(i))return;A.cookie=escape(i)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function o(){g(function(i,n){c(n)})}function r(i){return new RegExp("(?:^|;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(A.cookie)}},Ducp:function(H,F,d){var O=d("bYtY"),x=d("IwbS"),C=d("+TT/"),A=d("XpcN"),S=x.Group,g=["width","height"],f=["x","y"],c=A.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){c.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new S),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new S),this._showController},resetInner:function(){c.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(r,i,n,e,l,t,a){var s=this;c.superCall(this,"renderInner",r,i,n,e,l,t,a);var u=this._controllerGroup,h=i.get("pageIconSize",!0);O.isArray(h)||(h=[h,h]),m("pagePrev",0);var p=i.getModel("pageTextStyle");u.add(new x.Text({name:"pageText",style:{textFill:p.getTextColor(),font:p.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),m("pageNext",1);function m(v,y){var E=v+"DataIndex",T=x.createIcon(i.get("pageIcons",!0)[i.getOrient().name][y],{onclick:O.bind(s._pageGo,s,E,i,e)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});T.name=v,u.add(T)}},layoutInner:function(r,i,n,e,l,t){var a=this.getSelectorGroup(),s=r.getOrient().index,u=g[s],h=f[s],p=g[1-s],m=f[1-s];l&&C.box("horizontal",a,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),y=a.getBoundingRect(),E=[-y.x,-y.y],T=O.clone(n);l&&(T[u]=n[u]-y[u]-v);var b=this._layoutContentAndController(r,e,T,s,u,p,m);if(l){if(t==="end")E[s]+=b[u]+v;else{var w=y[u]+v;E[s]-=w,b[h]-=w}b[u]+=y[u]+v,E[1-s]+=b[m]+b[p]/2-y[p]/2,b[p]=Math.max(b[p],y[p]),b[m]=Math.min(b[m],y[m]+E[1-s]),a.attr("position",E)}return b},_layoutContentAndController:function(r,i,n,e,l,t,a){var s=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup;C.box(r.get("orient"),s,r.get("itemGap"),e?n.width:null,e?null:n.height),C.box("horizontal",h,r.get("pageButtonItemGap",!0));var p=s.getBoundingRect(),m=h.getBoundingRect(),v=this._showController=p[l]>n[l],y=[-p.x,-p.y];i||(y[e]=s.position[e]);var E=[0,0],T=[-m.x,-m.y],b=O.retrieve2(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var w=r.get("pageButtonPosition",!0);w==="end"?T[e]+=n[l]-m[l]:E[e]+=m[l]+b}T[1-e]+=p[t]/2-m[t]/2,s.attr("position",y),u.attr("position",E),h.attr("position",T);var _={x:0,y:0};if(_[l]=v?n[l]:p[l],_[t]=Math.max(p[t],m[t]),_[a]=Math.min(0,m[a]+T[1-e]),u.__rectSize=n[l],v){var I={x:0,y:0};I[l]=Math.max(n[l]-m[l]-b,0),I[t]=_[t],u.setClipPath(new x.Rect({shape:I})),u.__rectSize=I[l]}else h.eachChild(function(N){N.attr({invisible:!0,silent:!0})});var L=this._getPageInfo(r);return L.pageIndex!=null&&x.updateProps(s,{position:L.contentPosition},v?r:!1),this._updatePageInfoView(r,L),_},_pageGo:function(r,i,n){var e=this._getPageInfo(i)[r];e!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:e,legendId:i.id})},_updatePageInfoView:function(r,i){var n=this._controllerGroup;O.each(["pagePrev","pageNext"],function(u){var h=i[u+"DataIndex"]!=null,p=n.childOfName(u);p&&(p.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),p.cursor=h?"pointer":"default")});var e=n.childOfName("pageText"),l=r.get("pageFormatter"),t=i.pageIndex,a=t!=null?t+1:0,s=i.pageCount;e&&l&&e.setStyle("text",O.isString(l)?l.replace("{current}",a).replace("{total}",s):l({current:a,total:s}))},_getPageInfo:function(r){var i=r.get("scrollDataIndex",!0),n=this.getContentGroup(),e=this._containerGroup.__rectSize,l=r.getOrient().index,t=g[l],a=f[l],s=this._findTargetItemIndex(i),u=n.children(),h=u[s],p=u.length,m=p?1:0,v={contentPosition:n.position.slice(),pageCount:m,pageIndex:m-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return v;var y=_(h);v.contentPosition[l]=-y.s;for(var E=s+1,T=y,b=y,w=null;E<=p;++E)w=_(u[E]),(!w&&b.e>T.s+e||w&&!I(w,T.s))&&(b.i>T.i?T=b:T=w,T&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=T.i),++v.pageCount)),b=w;for(var E=s-1,T=y,b=y,w=null;E>=-1;--E)w=_(u[E]),(!w||!I(b,w.s))&&T.i<b.i&&(b=T,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=T.i),++v.pageCount,++v.pageIndex),T=w;return v;function _(L){if(L){var N=L.getBoundingRect(),D=N[a]+L.position[l];return{s:D,e:D+N[t],i:L.__legendDataIndex}}}function I(L,N){return L.e>=N&&L.s<=N+e}},_findTargetItemIndex:function(r){if(!this._showController)return 0;var i,n=this.getContentGroup(),e;return n.eachChild(function(l,t){var a=l.__legendDataIndex;e==null&&a!=null&&(e=t),a===r&&(i=t)}),i!=null?i:e}}),o=c;H.exports=o},"E/ki":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},E2g8:function(H,F,d){(function(O,x){/*!
|
|
|
* @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(C,A){H.exports=A()})(this,function(){"use strict";function C(ue){var Ce=typeof ue;return ue!==null&&(Ce==="object"||Ce==="function")}function A(ue){return typeof ue=="function"}var S=void 0;Array.isArray?S=Array.isArray:S=function(Ce){return Object.prototype.toString.call(Ce)==="[object Array]"};var g=S,f=0,c=void 0,o=void 0,r=function(Ce,Ie){y[f]=Ce,y[f+1]=Ie,f+=2,f===2&&(o?o(E):b())};function i(ue){o=ue}function n(ue){r=ue}var e=typeof window!="undefined"?window:void 0,l=e||{},t=l.MutationObserver||l.WebKitMutationObserver,a=typeof self=="undefined"&&typeof O!="undefined"&&{}.toString.call(O)==="[object process]",s=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function u(){return function(){return O.nextTick(E)}}function h(){return typeof c!="undefined"?function(){c(E)}:v()}function p(){var ue=0,Ce=new t(E),Ie=document.createTextNode("");return Ce.observe(Ie,{characterData:!0}),function(){Ie.data=ue=++ue%2}}function m(){var ue=new MessageChannel;return ue.port1.onmessage=E,function(){return ue.port2.postMessage(0)}}function v(){var ue=setTimeout;return function(){return ue(E,1)}}var y=new Array(1e3);function E(){for(var ue=0;ue<f;ue+=2){var Ce=y[ue],Ie=y[ue+1];Ce(Ie),y[ue]=void 0,y[ue+1]=void 0}f=0}function T(){try{var ue=Function("return this")().require("vertx");return c=ue.runOnLoop||ue.runOnContext,h()}catch(Ce){return v()}}var b=void 0;a?b=u():t?b=p():s?b=m():e===void 0&&!0?b=T():b=v();function w(ue,Ce){var Ie=this,ce=new this.constructor(L);ce[I]===void 0&&fe(ce);var Ae=Ie._state;if(Ae){var Te=arguments[Ae-1];r(function(){return ve(Ae,ce,Te,Ie._result)})}else de(Ie,ce,ue,Ce);return ce}function _(ue){var Ce=this;if(ue&&typeof ue=="object"&&ue.constructor===Ce)return ue;var Ie=new Ce(L);return V(Ie,ue),Ie}var I=Math.random().toString(36).substring(2);function L(){}var N=void 0,D=1,R=2;function k(){return new TypeError("You cannot resolve a promise with itself")}function M(){return new TypeError("A promises callback cannot return that same promise.")}function U(ue,Ce,Ie,ce){try{ue.call(Ce,Ie,ce)}catch(Ae){return Ae}}function B(ue,Ce,Ie){r(function(ce){var Ae=!1,Te=U(Ie,Ce,function(Ge){if(Ae)return;Ae=!0,Ce!==Ge?V(ce,Ge):J(ce,Ge)},function(Ge){if(Ae)return;Ae=!0,Z(ce,Ge)},"Settle: "+(ce._label||" unknown promise"));!Ae&&Te&&(Ae=!0,Z(ce,Te))},ue)}function j(ue,Ce){Ce._state===D?J(ue,Ce._result):Ce._state===R?Z(ue,Ce._result):de(Ce,void 0,function(Ie){return V(ue,Ie)},function(Ie){return Z(ue,Ie)})}function W(ue,Ce,Ie){Ce.constructor===ue.constructor&&Ie===w&&Ce.constructor.resolve===_?j(ue,Ce):Ie===void 0?J(ue,Ce):A(Ie)?B(ue,Ce,Ie):J(ue,Ce)}function V(ue,Ce){if(ue===Ce)Z(ue,k());else if(C(Ce)){var Ie=void 0;try{Ie=Ce.then}catch(ce){Z(ue,ce);return}W(ue,Ce,Ie)}else J(ue,Ce)}function z(ue){ue._onerror&&ue._onerror(ue._result),ie(ue)}function J(ue,Ce){if(ue._state!==N)return;ue._result=Ce,ue._state=D,ue._subscribers.length!==0&&r(ie,ue)}function Z(ue,Ce){if(ue._state!==N)return;ue._state=R,ue._result=Ce,r(z,ue)}function de(ue,Ce,Ie,ce){var Ae=ue._subscribers,Te=Ae.length;ue._onerror=null,Ae[Te]=Ce,Ae[Te+D]=Ie,Ae[Te+R]=ce,Te===0&&ue._state&&r(ie,ue)}function ie(ue){var Ce=ue._subscribers,Ie=ue._state;if(Ce.length===0)return;for(var ce=void 0,Ae=void 0,Te=ue._result,Ge=0;Ge<Ce.length;Ge+=3)ce=Ce[Ge],Ae=Ce[Ge+Ie],ce?ve(Ie,ce,Ae,Te):Ae(Te);ue._subscribers.length=0}function ve(ue,Ce,Ie,ce){var Ae=A(Ie),Te=void 0,Ge=void 0,gt=!0;if(Ae){try{Te=Ie(ce)}catch(qe){gt=!1,Ge=qe}if(Ce===Te){Z(Ce,M());return}}else Te=ce;Ce._state!==N||(Ae&>?V(Ce,Te):gt===!1?Z(Ce,Ge):ue===D?J(Ce,Te):ue===R&&Z(Ce,Te))}function xe(ue,Ce){try{Ce(function(ce){V(ue,ce)},function(ce){Z(ue,ce)})}catch(Ie){Z(ue,Ie)}}var _e=0;function Ue(){return _e++}function fe(ue){ue[I]=_e++,ue._state=void 0,ue._result=void 0,ue._subscribers=[]}function ke(){return new Error("Array Methods must be provided an Array")}var se=function(){function ue(Ce,Ie){this._instanceConstructor=Ce,this.promise=new Ce(L),this.promise[I]||fe(this.promise),g(Ie)?(this.length=Ie.length,this._remaining=Ie.length,this._result=new Array(this.length),this.length===0?J(this.promise,this._result):(this.length=this.length||0,this._enumerate(Ie),this._remaining===0&&J(this.promise,this._result))):Z(this.promise,ke())}return ue.prototype._enumerate=function(Ie){for(var ce=0;this._state===N&&ce<Ie.length;ce++)this._eachEntry(Ie[ce],ce)},ue.prototype._eachEntry=function(Ie,ce){var Ae=this._instanceConstructor,Te=Ae.resolve;if(Te===_){var Ge=void 0,gt=void 0,qe=!1;try{Ge=Ie.then}catch(Ot){qe=!0,gt=Ot}if(Ge===w&&Ie._state!==N)this._settledAt(Ie._state,ce,Ie._result);else if(typeof Ge!="function")this._remaining--,this._result[ce]=Ie;else if(Ae===Y){var Le=new Ae(L);qe?Z(Le,gt):W(Le,Ie,Ge),this._willSettleAt(Le,ce)}else this._willSettleAt(new Ae(function(Ot){return Ot(Ie)}),ce)}else this._willSettleAt(Te(Ie),ce)},ue.prototype._settledAt=function(Ie,ce,Ae){var Te=this.promise;Te._state===N&&(this._remaining--,Ie===R?Z(Te,Ae):this._result[ce]=Ae),this._remaining===0&&J(Te,this._result)},ue.prototype._willSettleAt=function(Ie,ce){var Ae=this;de(Ie,void 0,function(Te){return Ae._settledAt(D,ce,Te)},function(Te){return Ae._settledAt(R,ce,Te)})},ue}();function te(ue){return new se(this,ue).promise}function Ve(ue){var Ce=this;return g(ue)?new Ce(function(Ie,ce){for(var Ae=ue.length,Te=0;Te<Ae;Te++)Ce.resolve(ue[Te]).then(Ie,ce)}):new Ce(function(Ie,ce){return ce(new TypeError("You must pass an array to race."))})}function ae(ue){var Ce=this,Ie=new Ce(L);return Z(Ie,ue),Ie}function Q(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function G(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Y=function(){function ue(Ce){this[I]=Ue(),this._result=this._state=void 0,this._subscribers=[],L!==Ce&&(typeof Ce!="function"&&Q(),this instanceof ue?xe(this,Ce):G())}return ue.prototype.catch=function(Ie){return this.then(null,Ie)},ue.prototype.finally=function(Ie){var ce=this,Ae=ce.constructor;return A(Ie)?ce.then(function(Te){return Ae.resolve(Ie()).then(function(){return Te})},function(Te){return Ae.resolve(Ie()).then(function(){throw Te})}):ce.then(Ie,Ie)},ue}();Y.prototype.then=w,Y.all=te,Y.race=Ve,Y.resolve=_,Y.reject=ae,Y._setScheduler=i,Y._setAsap=n,Y._asap=r;function me(){var ue=void 0;if(typeof x!="undefined")ue=x;else if(typeof self!="undefined")ue=self;else try{ue=Function("return this")()}catch(ce){throw new Error("polyfill failed because global object is unavailable in this environment")}var Ce=ue.Promise;if(Ce){var Ie=null;try{Ie=Object.prototype.toString.call(Ce.resolve())}catch(ce){}if(Ie==="[object Promise]"&&!Ce.cast)return}ue.Promise=Y}return Y.polyfill=me,Y.Promise=Y,Y})}).call(this,d("Q2Ig"),d("yLpj"))},E4JC:function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.StreamCipher,S=x.algo,g=[],f=[],c=[],o=S.Rabbit=A.extend({_doReset:function(){for(var n=this._key.words,e=this.cfg.iv,l=0;l<4;l++)n[l]=(n[l]<<8|n[l]>>>24)&16711935|(n[l]<<24|n[l]>>>8)&4278255360;var t=this._X=[n[0],n[3]<<16|n[2]>>>16,n[1],n[0]<<16|n[3]>>>16,n[2],n[1]<<16|n[0]>>>16,n[3],n[2]<<16|n[1]>>>16],a=this._C=[n[2]<<16|n[2]>>>16,n[0]&4294901760|n[1]&65535,n[3]<<16|n[3]>>>16,n[1]&4294901760|n[2]&65535,n[0]<<16|n[0]>>>16,n[2]&4294901760|n[3]&65535,n[1]<<16|n[1]>>>16,n[3]&4294901760|n[0]&65535];this._b=0;for(var l=0;l<4;l++)r.call(this);for(var l=0;l<8;l++)a[l]^=t[l+4&7];if(e){var s=e.words,u=s[0],h=s[1],p=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,m=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,v=p>>>16|m&4294901760,y=m<<16|p&65535;a[0]^=p,a[1]^=v,a[2]^=m,a[3]^=y,a[4]^=p,a[5]^=v,a[6]^=m,a[7]^=y;for(var l=0;l<4;l++)r.call(this)}},_doProcessBlock:function(n,e){var l=this._X;r.call(this),g[0]=l[0]^l[5]>>>16^l[3]<<16,g[1]=l[2]^l[7]>>>16^l[5]<<16,g[2]=l[4]^l[1]>>>16^l[7]<<16,g[3]=l[6]^l[3]>>>16^l[1]<<16;for(var t=0;t<4;t++)g[t]=(g[t]<<8|g[t]>>>24)&16711935|(g[t]<<24|g[t]>>>8)&4278255360,n[e+t]^=g[t]},blockSize:128/32,ivSize:64/32});function r(){for(var i=this._X,n=this._C,e=0;e<8;e++)f[e]=n[e];n[0]=n[0]+1295307597+this._b|0,n[1]=n[1]+3545052371+(n[0]>>>0<f[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<f[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<f[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<f[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<f[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<f[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<f[6]>>>0?1:0)|0,this._b=n[7]>>>0<f[7]>>>0?1:0;for(var e=0;e<8;e++){var l=i[e]+n[e],t=l&65535,a=l>>>16,s=((t*t>>>17)+t*a>>>15)+a*a,u=((l&4294901760)*l|0)+((l&65535)*l|0);c[e]=s^u}i[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,i[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,i[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,i[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,i[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,i[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,i[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,i[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}x.Rabbit=A._createHelper(o)}(),O.Rabbit})},E9nw:function(H,F){H.exports=function(){var d=document.getSelection();if(!d.rangeCount)return function(){};for(var O=document.activeElement,x=[],C=0;C<d.rangeCount;C++)x.push(d.getRangeAt(C));switch(O.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":O.blur();break;default:O=null;break}return d.removeAllRanges(),function(){d.type==="Caret"&&d.removeAllRanges(),d.rangeCount||x.forEach(function(A){d.addRange(A)}),O&&O.focus()}}},ELLl:function(H,F,d){(function(O){O(d("VrN/"))})(function(O){var x={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},C=O.Pos;O.defineOption("autoCloseBrackets",!1,function(t,a,s){s&&s!=O.Init&&(t.removeKeyMap(S),t.state.closeBrackets=null),a&&(g(A(a,"pairs")),t.state.closeBrackets=a,t.addKeyMap(S))});function A(t,a){return a=="pairs"&&typeof t=="string"?t:typeof t=="object"&&t[a]!=null?t[a]:x[a]}var S={Backspace:o,Enter:r};function g(t){for(var a=0;a<t.length;a++){var s=t.charAt(a),u="'"+s+"'";S[u]||(S[u]=f(s))}}g(x.pairs+"`");function f(t){return function(a){return n(a,t)}}function c(t){var a=t.state.closeBrackets;if(!a||a.override)return a;var s=t.getModeAt(t.getCursor());return s.closeBrackets||a}function o(t){var a=c(t);if(!a||t.getOption("disableInput"))return O.Pass;for(var s=A(a,"pairs"),u=t.listSelections(),h=0;h<u.length;h++){if(!u[h].empty())return O.Pass;var p=e(t,u[h].head);if(!p||s.indexOf(p)%2!=0)return O.Pass}for(var h=u.length-1;h>=0;h--){var m=u[h].head;t.replaceRange("",C(m.line,m.ch-1),C(m.line,m.ch+1),"+delete")}}function r(t){var a=c(t),s=a&&A(a,"explode");if(!s||t.getOption("disableInput"))return O.Pass;for(var u=t.listSelections(),h=0;h<u.length;h++){if(!u[h].empty())return O.Pass;var p=e(t,u[h].head);if(!p||s.indexOf(p)%2!=0)return O.Pass}t.operation(function(){var m=t.lineSeparator()||`
|
|
|
`;t.replaceSelection(m+m,null),t.execCommand("goCharLeft"),u=t.listSelections();for(var v=0;v<u.length;v++){var y=u[v].head.line;t.indentLine(y,null,!0),t.indentLine(y+1,null,!0)}})}function i(t){var a=O.cmpPos(t.anchor,t.head)>0;return{anchor:new C(t.anchor.line,t.anchor.ch+(a?-1:1)),head:new C(t.head.line,t.head.ch+(a?1:-1))}}function n(t,a){var s=c(t);if(!s||t.getOption("disableInput"))return O.Pass;var u=A(s,"pairs"),h=u.indexOf(a);if(h==-1)return O.Pass;for(var p=A(s,"closeBefore"),m=A(s,"triples"),v=u.charAt(h+1)==a,y=t.listSelections(),E=h%2==0,T,b=0;b<y.length;b++){var w=y[b],_=w.head,I,L=t.getRange(_,C(_.line,_.ch+1));if(E&&!w.empty())I="surround";else if((v||!E)&&L==a)v&&l(t,_)?I="both":m.indexOf(a)>=0&&t.getRange(_,C(_.line,_.ch+3))==a+a+a?I="skipThree":I="skip";else if(v&&_.ch>1&&m.indexOf(a)>=0&&t.getRange(C(_.line,_.ch-2),_)==a+a){if(_.ch>2&&/\bstring/.test(t.getTokenTypeAt(C(_.line,_.ch-2))))return O.Pass;I="addFour"}else if(v){var N=_.ch==0?" ":t.getRange(C(_.line,_.ch-1),_);if(!O.isWordChar(L)&&N!=a&&!O.isWordChar(N))I="both";else return O.Pass}else if(E&&(L.length===0||/\s/.test(L)||p.indexOf(L)>-1))I="both";else return O.Pass;if(!T)T=I;else if(T!=I)return O.Pass}var D=h%2?u.charAt(h-1):a,R=h%2?a:u.charAt(h+1);t.operation(function(){if(T=="skip")t.execCommand("goCharRight");else if(T=="skipThree")for(var k=0;k<3;k++)t.execCommand("goCharRight");else if(T=="surround"){for(var M=t.getSelections(),k=0;k<M.length;k++)M[k]=D+M[k]+R;t.replaceSelections(M,"around"),M=t.listSelections().slice();for(var k=0;k<M.length;k++)M[k]=i(M[k]);t.setSelections(M)}else T=="both"?(t.replaceSelection(D+R,null),t.triggerElectric(D+R),t.execCommand("goCharLeft")):T=="addFour"&&(t.replaceSelection(D+D+D+D,"before"),t.execCommand("goCharRight"))})}function e(t,a){var s=t.getRange(C(a.line,a.ch-1),C(a.line,a.ch+1));return s.length==2?s:null}function l(t,a){var s=t.getTokenAt(C(a.line,a.ch+1));return/\bstring/.test(s.type)&&s.start==a.ch&&(a.ch==0||!/\bstring/.test(t.getTokenTypeAt(a)))}})},ELcG:function(H,F,d){(function(O,x){H.exports=F=x(d("Ib8C"))})(this,function(O){/** @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(x){var C=O,A=C.lib,S=A.WordArray,g=A.Hasher,f=C.algo,c=S.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),o=S.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]),r=S.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]),i=S.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]),n=S.create([0,1518500249,1859775393,2400959708,2840853838]),e=S.create([1352829926,1548603684,1836072691,2053994217,0]),l=f.RIPEMD160=g.extend({_doReset:function(){this._hash=S.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(v,y){for(var E=0;E<16;E++){var T=y+E,b=v[T];v[T]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}var w=this._hash.words,_=n.words,I=e.words,L=c.words,N=o.words,D=r.words,R=i.words,k,M,U,B,j,W,V,z,J,Z;W=k=w[0],V=M=w[1],z=U=w[2],J=B=w[3],Z=j=w[4];for(var de,E=0;E<80;E+=1)de=k+v[y+L[E]]|0,E<16?de+=t(M,U,B)+_[0]:E<32?de+=a(M,U,B)+_[1]:E<48?de+=s(M,U,B)+_[2]:E<64?de+=u(M,U,B)+_[3]:de+=h(M,U,B)+_[4],de=de|0,de=p(de,D[E]),de=de+j|0,k=j,j=B,B=p(U,10),U=M,M=de,de=W+v[y+N[E]]|0,E<16?de+=h(V,z,J)+I[0]:E<32?de+=u(V,z,J)+I[1]:E<48?de+=s(V,z,J)+I[2]:E<64?de+=a(V,z,J)+I[3]:de+=t(V,z,J)+I[4],de=de|0,de=p(de,R[E]),de=de+Z|0,W=Z,Z=J,J=p(z,10),z=V,V=de;de=w[1]+U+J|0,w[1]=w[2]+B+Z|0,w[2]=w[3]+j+W|0,w[3]=w[4]+k+V|0,w[4]=w[0]+M+z|0,w[0]=de},_doFinalize:function(){var v=this._data,y=v.words,E=this._nDataBytes*8,T=v.sigBytes*8;y[T>>>5]|=128<<24-T%32,y[(T+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,v.sigBytes=(y.length+1)*4,this._process();for(var b=this._hash,w=b.words,_=0;_<5;_++){var I=w[_];w[_]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return b},clone:function(){var v=g.clone.call(this);return v._hash=this._hash.clone(),v}});function t(m,v,y){return m^v^y}function a(m,v,y){return m&v|~m&y}function s(m,v,y){return(m|~v)^y}function u(m,v,y){return m&y|v&~y}function h(m,v,y){return m^(v|~y)}function p(m,v){return m<<v|m>>>32-v}C.RIPEMD160=g._createHelper(l),C.HmacRIPEMD160=g._createHmacHelper(l)}(Math),O.RIPEMD160})},EMyp:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("mFDi"),A=d("K4ya"),S=d("qJCg"),g=d("iLNv"),f=d("vZ6x"),c=["inBrush","outOfBrush"],o="__ecBrushSelect",r="__ecInBrushSelectEvent",i=O.PRIORITY.VISUAL.BRUSH;O.registerLayout(i,function(m,v,y){m.eachComponent({mainType:"brush"},function(E){y&&y.type==="takeGlobalCursor"&&E.setBrushOption(y.key==="brush"?y.brushOption:{brushType:!1})}),n(m)});function n(m){m.eachComponent({mainType:"brush"},function(v){var y=v.brushTargetManager=new f(v.option,m);y.setInputRanges(v.areas,m)})}O.registerVisual(i,function(m,v,y){var E=[],T,b;m.eachComponent({mainType:"brush"},function(w,_){var I={brushId:w.id,brushIndex:_,brushName:w.name,areas:x.clone(w.areas),selected:[]};E.push(I);var L=w.option,N=L.brushLink,D=[],R=[],k=[],M=0;_||(T=L.throttleType,b=L.throttleDelay);var U=x.map(w.areas,function(J){return u(x.defaults({boundingRect:h[J.brushType](J)},J))}),B=A.createVisualMappings(w.option,c,function(J){J.mappingMethod="fixed"});x.isArray(N)&&x.each(N,function(J){D[J]=1});function j(J){return N==="all"||D[J]}function W(J){return!!J.length}m.eachSeries(function(J,Z){var de=k[Z]=[];J.subType==="parallel"?V(J,Z,de):z(J,Z,de)});function V(J,Z){var de=J.coordinateSystem;M|=de.hasAxisBrushed(),j(Z)&&de.eachActiveState(J.getData(),function(ie,ve){ie==="active"&&(R[ve]=1)})}function z(J,Z,de){var ie=a(J);if(!ie||s(w,Z))return;if(x.each(U,function(xe){ie[xe.brushType]&&w.brushTargetManager.controlSeries(xe,J,m)&&de.push(xe),M|=W(de)}),j(Z)&&W(de)){var ve=J.getData();ve.each(function(xe){t(ie,de,ve,xe)&&(R[xe]=1)})}}m.eachSeries(function(J,Z){var de={seriesId:J.id,seriesIndex:Z,seriesName:J.name,dataIndex:[]};I.selected.push(de);var ie=a(J),ve=k[Z],xe=J.getData(),_e=j(Z)?function(Ue){return R[Ue]?(de.dataIndex.push(xe.getRawIndex(Ue)),"inBrush"):"outOfBrush"}:function(Ue){return t(ie,ve,xe,Ue)?(de.dataIndex.push(xe.getRawIndex(Ue)),"inBrush"):"outOfBrush"};(j(Z)?M:W(ve))&&A.applyVisual(c,B,xe,_e)})}),e(v,T,b,E,y)});function e(m,v,y,E,T){if(!T)return;var b=m.getZr();if(b[r])return;b[o]||(b[o]=l);var w=g.createOrUpdate(b,o,y,v);w(m,E)}function l(m,v){if(!m.isDisposed()){var y=m.getZr();y[r]=!0,m.dispatchAction({type:"brushSelect",batch:v}),y[r]=!1}}function t(m,v,y,E){for(var T=0,b=v.length;T<b;T++){var w=v[T];if(m[w.brushType](E,y,w.selectors,w))return!0}}function a(m){var v=m.brushSelector;if(x.isString(v)){var y=[];return x.each(S,function(T,b){y[b]=function(w,_,I,L){var N=_.getItemLayout(w);return T[v](N,I,L)}}),y}else if(x.isFunction(v)){var E={};return x.each(S,function(T,b){E[b]=v}),E}return v}function s(m,v){var y=m.option.seriesIndex;return y!=null&&y!=="all"&&(x.isArray(y)?x.indexOf(y,v)<0:v!==y)}function u(m){var v=m.selectors={};return x.each(S[m.brushType],function(y,E){v[E]=function(T){return y(T,v,m)}}),m}var h={lineX:x.noop,lineY:x.noop,rect:function(m){return p(m.range)},polygon:function(m){for(var v,y=m.range,E=0,T=y.length;E<T;E++){v=v||[[Infinity,-Infinity],[Infinity,-Infinity]];var b=y[E];b[0]<v[0][0]&&(v[0][0]=b[0]),b[0]>v[0][1]&&(v[0][1]=b[0]),b[1]<v[1][0]&&(v[1][0]=b[1]),b[1]>v[1][1]&&(v[1][1]=b[1])}return v&&p(v)}};function p(m){return new C(m[0][0],m[1][0],m[0][1]-m[0][0],m[1][1]-m[1][0])}F.layoutCovers=n},ERHi:function(H,F,d){var O=d("ProS");d("Z6js"),d("R4Th");var x=d("f5Yq"),C=d("h8O9");O.registerVisual(x("effectScatter","circle")),O.registerLayout(C("effectScatter"))},ETIr:function(H,F,d){(function(O,x){H.exports=F=x(d("Ib8C"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.WordArray,S=x.enc,g=S.Base64={stringify:function(o){var r=o.words,i=o.sigBytes,n=this._map;o.clamp();for(var e=[],l=0;l<i;l+=3)for(var t=r[l>>>2]>>>24-l%4*8&255,a=r[l+1>>>2]>>>24-(l+1)%4*8&255,s=r[l+2>>>2]>>>24-(l+2)%4*8&255,u=t<<16|a<<8|s,h=0;h<4&&l+h*.75<i;h++)e.push(n.charAt(u>>>6*(3-h)&63));var p=n.charAt(64);if(p)for(;e.length%4;)e.push(p);return e.join("")},parse:function(o){var r=o.length,i=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var e=0;e<i.length;e++)n[i.charCodeAt(e)]=e}var l=i.charAt(64);if(l){var t=o.indexOf(l);t!==-1&&(r=t)}return f(o,r,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function f(c,o,r){for(var i=[],n=0,e=0;e<o;e++)if(e%4){var l=r[c.charCodeAt(e-1)]<<e%4*2,t=r[c.charCodeAt(e)]>>>6-e%4*2,a=l|t;i[n>>>2]|=a<<24-n%4*8,n++}return A.create(i,n)}}(),O.enc.Base64})},EXcs:function(H,F,d){"use strict";var O=function(){return{height:0,opacity:0}},x=function(f){return{height:f.scrollHeight,opacity:1}},C=function(f){return{height:f.offsetHeight}},A=function(f,c){return c.propertyName==="height"},S={motionName:"ant-motion-collapse",onAppearStart:O,onEnterStart:O,onAppearActive:x,onEnterActive:x,onLeaveStart:C,onLeaveActive:O,onAppearEnd:A,onEnterEnd:A,onLeaveEnd:A,motionDeadline:500};F.a=S},Em2t:function(H,F,d){var O=d("bahg"),x=d("quyA"),C=d("0JQy");function A(S){return x(S)?C(S):O(S)}H.exports=A},Ez2D:function(H,F,d){var O=d("bYtY"),x=d("4NO4");function C(A,S){var g=[],f=A.seriesIndex,c;if(f==null||!(c=S.getSeriesByIndex(f)))return{point:[]};var o=c.getData(),r=x.queryDataIndex(o,A);if(r==null||r<0||O.isArray(r))return{point:[]};var i=o.getItemGraphicEl(r),n=c.coordinateSystem;if(c.getTooltipPosition)g=c.getTooltipPosition(r)||[];else if(n&&n.dataToPoint)g=n.dataToPoint(o.getValues(O.map(n.dimensions,function(l){return o.mapDimension(l)}),r,!0))||[];else if(i){var e=i.getBoundingRect().clone();e.applyTransform(i.transform),g=[e.x+e.width/2,e.y+e.height/2]}return{point:g,el:i}}H.exports=C},"F+F2":function(H,F,d){(function(O,x){H.exports=F=x(d("Ib8C"))})(this,function(O){return function(){if(typeof ArrayBuffer!="function")return;var x=O,C=x.lib,A=C.WordArray,S=A.init,g=A.init=function(f){if(f instanceof ArrayBuffer&&(f=new Uint8Array(f)),(f instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&f instanceof Uint8ClampedArray||f instanceof Int16Array||f instanceof Uint16Array||f instanceof Int32Array||f instanceof Uint32Array||f instanceof Float32Array||f instanceof Float64Array)&&(f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength)),f instanceof Uint8Array){for(var c=f.byteLength,o=[],r=0;r<c;r++)o[r>>>2]|=f[r]<<24-r%4*8;S.call(this,o,c)}else S.apply(this,arguments)};g.prototype=A}(),O.lib.WordArray})},F0hE:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("ca2m"),A=d("Qxkt"),S=d("ICMv"),g=C.valueAxis;function f(r,i){return x.defaults({show:i},r)}var c=O.extendComponentModel({type:"radar",optionUpdated:function(){var r=this.get("boundaryGap"),i=this.get("splitNumber"),n=this.get("scale"),e=this.get("axisLine"),l=this.get("axisTick"),t=this.get("axisType"),a=this.get("axisLabel"),s=this.get("name"),u=this.get("name.show"),h=this.get("name.formatter"),p=this.get("nameGap"),m=this.get("triggerEvent"),v=x.map(this.get("indicator")||[],function(y){y.max!=null&&y.max>0&&!y.min?y.min=0:y.min!=null&&y.min<0&&!y.max&&(y.max=0);var E=s;if(y.color!=null&&(E=x.defaults({color:y.color},s)),y=x.merge(x.clone(y),{boundaryGap:r,splitNumber:i,scale:n,axisLine:e,axisTick:l,axisType:t,axisLabel:a,name:y.text,nameLocation:"end",nameGap:p,nameTextStyle:E,triggerEvent:m},!1),u||(y.name=""),typeof h=="string"){var T=y.name;y.name=h.replace("{value}",T!=null?T:"")}else typeof h=="function"&&(y.name=h(y.name,y));var b=x.extend(new A(y,null,this.ecModel),S);return b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this.getIndicatorModels=function(){return v}},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:x.merge({lineStyle:{color:"#bbb"}},g.axisLine),axisLabel:f(g.axisLabel,!1),axisTick:f(g.axisTick,!1),axisType:"interval",splitLine:f(g.splitLine,!0),splitArea:f(g.splitArea,!0),indicator:[]}}),o=c;H.exports=o},F5Ls:function(H,F){var d={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function O(x,C){if(x==="china"){var A=d[C.name];if(A){var S=C.center;S[0]+=A[0]/10.5,S[1]+=-A[1]/(10.5/.75)}}}H.exports=O},F7hV:function(H,F,d){var O=d("MBQ8"),x=O.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return this.get("large")?this.get("progressive"):!1},getProgressiveThreshold:function(){var C=this.get("progressiveThreshold"),A=this.get("largeThreshold");return A>C&&(C=A),C},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}}});H.exports=x},F9bG:function(H,F,d){var O=d("bYtY"),x=d("ItGF"),C=d("4NO4"),A=C.makeInner,S=A(),g=O.each;function f(l,t,a){if(x.node)return;var s=t.getZr();S(s).records||(S(s).records={}),c(s,t);var u=S(s).records[l]||(S(s).records[l]={});u.handler=a}function c(l,t){if(S(l).initialized)return;S(l).initialized=!0,a("click",O.curry(i,"click")),a("mousemove",O.curry(i,"mousemove")),a("globalout",r);function a(s,u){l.on(s,function(h){var p=n(t);g(S(l).records,function(m){m&&u(m,h,p.dispatchAction)}),o(p.pendings,t)})}}function o(l,t){var a=l.showTip.length,s=l.hideTip.length,u;a?u=l.showTip[a-1]:s&&(u=l.hideTip[s-1]),u&&(u.dispatchAction=null,t.dispatchAction(u))}function r(l,t,a){l.handler("leave",null,a)}function i(l,t,a,s){t.handler(l,a,s)}function n(l){var t={showTip:[],hideTip:[]},a=function(s){var u=t[s.type];u?u.push(s):(s.dispatchAction=a,l.dispatchAction(s))};return{dispatchAction:a,pendings:t}}function e(l,t){if(x.node)return;var a=t.getZr(),s=(S(a).records||{})[l];s&&(S(a).records[l]=null)}F.register=f,F.unregister=e},FBjb:function(H,F,d){var O=d("bYtY"),x=d("oVpE"),C=x.createSymbol,A=d("IwbS"),S=d("OELB"),g=S.parsePercent,f=d("x3X8"),c=f.getDefaultLabel;function o(p,m,v){A.Group.call(this),this.updateData(p,m,v)}var r=o.prototype,i=o.getSymbolSize=function(p,m){var v=p.getItemVisual(m,"symbolSize");return v instanceof Array?v.slice():[+v,+v]};function n(p){return[p[0]/2,p[1]/2]}function e(p,m){this.parent.drift(p,m)}r._createSymbol=function(p,m,v,y,E){this.removeAll();var T=m.getItemVisual(v,"color"),b=C(p,-1,-1,2,2,T,E);b.attr({z2:100,culling:!0,scale:n(y)}),b.drift=e,this._symbolType=p,this.add(b)},r.stopSymbolAnimation=function(p){this.childAt(0).stopAnimation(p)},r.getSymbolPath=function(){return this.childAt(0)},r.getScale=function(){return this.childAt(0).scale},r.highlight=function(){this.childAt(0).trigger("emphasis")},r.downplay=function(){this.childAt(0).trigger("normal")},r.setZ=function(p,m){var v=this.childAt(0);v.zlevel=p,v.z=m},r.setDraggable=function(p){var m=this.childAt(0);m.draggable=p,m.cursor=p?"move":m.cursor},r.updateData=function(p,m,v){this.silent=!1;var y=p.getItemVisual(m,"symbol")||"circle",E=p.hostModel,T=i(p,m),b=y!==this._symbolType;if(b){var w=p.getItemVisual(m,"symbolKeepAspect");this._createSymbol(y,p,m,T,w)}else{var _=this.childAt(0);_.silent=!1,A.updateProps(_,{scale:n(T)},E,m)}if(this._updateCommon(p,m,T,v),b){var _=this.childAt(0),I=v&&v.fadeIn,L={scale:_.scale.slice()};I&&(L.style={opacity:_.style.opacity}),_.scale=[0,0],I&&(_.style.opacity=0),A.initProps(_,L,E,m)}this._seriesModel=E};var l=["itemStyle"],t=["emphasis","itemStyle"],a=["label"],s=["emphasis","label"];r._updateCommon=function(p,m,v,y){var E=this.childAt(0),T=p.hostModel,b=p.getItemVisual(m,"color");E.type!=="image"?E.useStyle({strokeNoScale:!0}):E.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var w=y&&y.itemStyle,_=y&&y.hoverItemStyle,I=y&&y.symbolOffset,L=y&&y.labelModel,N=y&&y.hoverLabelModel,D=y&&y.hoverAnimation,R=y&&y.cursorStyle;if(!y||p.hasItemOption){var k=y&&y.itemModel?y.itemModel:p.getItemModel(m);w=k.getModel(l).getItemStyle(["color"]),_=k.getModel(t).getItemStyle(),I=k.getShallow("symbolOffset"),L=k.getModel(a),N=k.getModel(s),D=k.getShallow("hoverAnimation"),R=k.getShallow("cursor")}else _=O.extend({},_);var M=E.style,U=p.getItemVisual(m,"symbolRotate");E.attr("rotation",(U||0)*Math.PI/180||0),I&&E.attr("position",[g(I[0],v[0]),g(I[1],v[1])]),R&&E.attr("cursor",R),E.setColor(b,y&&y.symbolInnerColor),E.setStyle(w);var B=p.getItemVisual(m,"opacity");B!=null&&(M.opacity=B);var j=p.getItemVisual(m,"liftZ"),W=E.__z2Origin;j!=null?W==null&&(E.__z2Origin=E.z2,E.z2+=j):W!=null&&(E.z2=W,E.__z2Origin=null);var V=y&&y.useNameLabel;A.setLabelStyle(M,_,L,N,{labelFetcher:T,labelDataIndex:m,defaultText:z,isRectText:!0,autoColor:b});function z(J,Z){return V?p.getName(J):c(p,J)}E.__symbolOriginalScale=n(v),E.hoverStyle=_,E.highDownOnUpdate=D&&T.isAnimationEnabled()?u:null,A.setHoverStyle(E)};function u(p,m){if(this.incremental||this.useHoverLayer)return;if(m==="emphasis"){var v=this.__symbolOriginalScale,y=v[1]/v[0],E={scale:[Math.max(v[0]*1.1,v[0]+3),Math.max(v[1]*1.1,v[1]+3*y)]};this.animateTo(E,400,"elasticOut")}else m==="normal"&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}r.fadeOut=function(p,m){var v=this.childAt(0);this.silent=v.silent=!0,!(m&&m.keepLabel)&&(v.style.text=null),A.updateProps(v,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,p)},O.inherits(o,A.Group);var h=o;H.exports=h},FGaS:function(H,F,d){var O=d("ProS"),x=d("IwbS"),C=d("bYtY"),A=d("oVpE");function S(f){return C.isArray(f)||(f=[+f,+f]),f}var g=O.extendChartView({type:"radar",render:function(f,c,o){var r=f.coordinateSystem,i=this.group,n=f.getData(),e=this._data;function l(s,u){var h=s.getItemVisual(u,"symbol")||"circle",p=s.getItemVisual(u,"color");if(h==="none")return;var m=S(s.getItemVisual(u,"symbolSize")),v=A.createSymbol(h,-1,-1,2,2,p);return v.attr({style:{strokeNoScale:!0},z2:100,scale:[m[0]/2,m[1]/2]}),v}function t(s,u,h,p,m,v){h.removeAll();for(var y=0;y<u.length-1;y++){var E=l(p,m);E&&(E.__dimIdx=y,s[y]?(E.attr("position",s[y]),x[v?"initProps":"updateProps"](E,{position:u[y]},f,m)):E.attr("position",u[y]),h.add(E))}}function a(s){return C.map(s,function(u){return[r.cx,r.cy]})}n.diff(e).add(function(s){var u=n.getItemLayout(s);if(!u)return;var h=new x.Polygon,p=new x.Polyline,m={shape:{points:u}};h.shape.points=a(u),p.shape.points=a(u),x.initProps(h,m,f,s),x.initProps(p,m,f,s);var v=new x.Group,y=new x.Group;v.add(p),v.add(h),v.add(y),t(p.shape.points,u,y,n,s,!0),n.setItemGraphicEl(s,v)}).update(function(s,u){var h=e.getItemGraphicEl(u),p=h.childAt(0),m=h.childAt(1),v=h.childAt(2),y={shape:{points:n.getItemLayout(s)}};if(!y.shape.points)return;t(p.shape.points,y.shape.points,v,n,s,!1),x.updateProps(p,y,f),x.updateProps(m,y,f),n.setItemGraphicEl(s,h)}).remove(function(s){i.remove(e.getItemGraphicEl(s))}).execute(),n.eachItemGraphicEl(function(s,u){var h=n.getItemModel(u),p=s.childAt(0),m=s.childAt(1),v=s.childAt(2),y=n.getItemVisual(u,"color");i.add(s),p.useStyle(C.defaults(h.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:y})),p.hoverStyle=h.getModel("emphasis.lineStyle").getLineStyle();var E=h.getModel("areaStyle"),T=h.getModel("emphasis.areaStyle"),b=E.isEmpty()&&E.parentModel.isEmpty(),w=T.isEmpty()&&T.parentModel.isEmpty();w=w&&b,m.ignore=b,m.useStyle(C.defaults(E.getAreaStyle(),{fill:y,opacity:.7})),m.hoverStyle=T.getAreaStyle();var _=h.getModel("itemStyle").getItemStyle(["color"]),I=h.getModel("emphasis.itemStyle").getItemStyle(),L=h.getModel("label"),N=h.getModel("emphasis.label");v.eachChild(function(D){D.setStyle(_),D.hoverStyle=C.clone(I);var R=n.get(n.dimensions[D.__dimIdx],u);(R==null||isNaN(R))&&(R=""),x.setLabelStyle(D.style,D.hoverStyle,L,N,{labelFetcher:n.hostModel,labelDataIndex:u,labelDimIndex:D.__dimIdx,defaultText:R,autoColor:y,isRectText:!0})}),s.highDownOnUpdate=function(D,R){m.attr("ignore",R==="emphasis"?w:b)},x.setHoverStyle(s)}),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});H.exports=g},FH2Y:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("ZMnZ"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},FJo9:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("8txm"),A=d.n(C),S=d("MXD1")},FNN5:function(H,F,d){var O=d("bYtY"),x=d("IwbS"),C=d("+rIm"),A=d("Znkb"),S=["axisLine","axisTickLabel","axisName"],g=["splitLine","splitArea","minorSplitLine"],f=A.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(o,r){if(this.group.removeAll(),!o.get("show"))return;var i=o.axis,n=i.polar,e=n.getAngleAxis(),l=i.getTicksCoords(),t=i.getMinorTicksCoords(),a=e.getExtent()[0],s=i.getExtent(),u=c(n,o,a),h=new C(o,u);O.each(S,h.add,h),this.group.add(h.getGroup()),O.each(g,function(p){o.get(p+".show")&&!i.scale.isBlank()&&this["_"+p](o,n,a,s,l,t)},this)},_splitLine:function(o,r,i,n,e){var l=o.getModel("splitLine"),t=l.getModel("lineStyle"),a=t.get("color"),s=0;a=a instanceof Array?a:[a];for(var u=[],h=0;h<e.length;h++){var p=s++%a.length;u[p]=u[p]||[],u[p].push(new x.Circle({shape:{cx:r.cx,cy:r.cy,r:e[h].coord}}))}for(var h=0;h<u.length;h++)this.group.add(x.mergePath(u[h],{style:O.defaults({stroke:a[h%a.length],fill:null},t.getLineStyle()),silent:!0}))},_minorSplitLine:function(o,r,i,n,e,l){if(!l.length)return;for(var t=o.getModel("minorSplitLine"),a=t.getModel("lineStyle"),s=[],u=0;u<l.length;u++)for(var h=0;h<l[u].length;h++)s.push(new x.Circle({shape:{cx:r.cx,cy:r.cy,r:l[u][h].coord}}));this.group.add(x.mergePath(s,{style:O.defaults({fill:null},a.getLineStyle()),silent:!0}))},_splitArea:function(o,r,i,n,e){if(!e.length)return;var l=o.getModel("splitArea"),t=l.getModel("areaStyle"),a=t.get("color"),s=0;a=a instanceof Array?a:[a];for(var u=[],h=e[0].coord,p=1;p<e.length;p++){var m=s++%a.length;u[m]=u[m]||[],u[m].push(new x.Sector({shape:{cx:r.cx,cy:r.cy,r0:h,r:e[p].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=e[p].coord}for(var p=0;p<u.length;p++)this.group.add(x.mergePath(u[p],{style:O.defaults({fill:a[p%a.length]},t.getAreaStyle()),silent:!0}))}});function c(o,r,i){return{position:[o.cx,o.cy],rotation:i/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:r.getModel("axisLabel").get("rotate"),z2:1}}H.exports=f},FTAc:function(H,F,d){"use strict";d.d(F,"a",function(){return C});var O=d("q1tI"),x=d.n(O),C=O.createContext(null)},FUi9:function(H,F,d){var O=d("bYtY"),x=d("MwEJ"),C=d("aX7z"),A=d("ICMv"),S=d("Qxkt"),g=d("+TT/"),f=g.getLayoutRect;F.getLayoutRect=g.getLayoutRect;var c=d("7hqr"),o=c.enableDataStack,r=c.isDimensionStacked,i=c.getStackedDimension,n=d("hi0g");F.completeDimensions=n;var e=d("sdST");F.createDimensions=e;var l=d("oVpE");F.createSymbol=l.createSymbol;function t(h){return x(h.getSource(),h)}var a={isDimensionStacked:r,enableDataStack:o,getStackedDimension:i};function s(h,p){var m=p;S.isInstance(p)||(m=new S(p),O.mixin(m,A));var v=C.createScaleByModel(m);return v.setExtent(h[0],h[1]),C.niceScaleExtent(v,m),v}function u(h){O.mixin(h,A)}F.createList=t,F.dataStack=a,F.createScale=s,F.mixinAxisModelCommonMethods=u},"Fa/5":function(H,F,d){var O=d("ProS");d("y2l5"),d("q/+u");var x=d("f5Yq"),C=d("h8O9");d("Ae16"),O.registerVisual(x("scatter","circle")),O.registerLayout(C("scatter"))},FhB9:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},"Fm1+":function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("a7Wl")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="CaretUpOutlined";var c=A.forwardRef(f);F.default=c},Fofx:function(H,F){var d=typeof Float32Array=="undefined"?Array:Float32Array;function O(){var r=new d(6);return x(r),r}function x(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function C(r,i){return r[0]=i[0],r[1]=i[1],r[2]=i[2],r[3]=i[3],r[4]=i[4],r[5]=i[5],r}function A(r,i,n){var e=i[0]*n[0]+i[2]*n[1],l=i[1]*n[0]+i[3]*n[1],t=i[0]*n[2]+i[2]*n[3],a=i[1]*n[2]+i[3]*n[3],s=i[0]*n[4]+i[2]*n[5]+i[4],u=i[1]*n[4]+i[3]*n[5]+i[5];return r[0]=e,r[1]=l,r[2]=t,r[3]=a,r[4]=s,r[5]=u,r}function S(r,i,n){return r[0]=i[0],r[1]=i[1],r[2]=i[2],r[3]=i[3],r[4]=i[4]+n[0],r[5]=i[5]+n[1],r}function g(r,i,n){var e=i[0],l=i[2],t=i[4],a=i[1],s=i[3],u=i[5],h=Math.sin(n),p=Math.cos(n);return r[0]=e*p+a*h,r[1]=-e*h+a*p,r[2]=l*p+s*h,r[3]=-l*h+p*s,r[4]=p*t+h*u,r[5]=p*u-h*t,r}function f(r,i,n){var e=n[0],l=n[1];return r[0]=i[0]*e,r[1]=i[1]*l,r[2]=i[2]*e,r[3]=i[3]*l,r[4]=i[4]*e,r[5]=i[5]*l,r}function c(r,i){var n=i[0],e=i[2],l=i[4],t=i[1],a=i[3],s=i[5],u=n*a-t*e;return u?(u=1/u,r[0]=a*u,r[1]=-t*u,r[2]=-e*u,r[3]=n*u,r[4]=(e*s-a*l)*u,r[5]=(t*l-n*s)*u,r):null}function o(r){var i=O();return C(i,r),i}F.create=O,F.identity=x,F.copy=C,F.mul=A,F.translate=S,F.rotate=g,F.scale=f,F.invert=c,F.clone=o},Fv0C:function(H,F,d){"use strict";function O(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(a){return typeof a}:O=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},O(l)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var x=o(d("Lo0S")),C=d("vewr"),A=o(d("8CQX")),S=f(d("mHUz")),g=o(d("GdRQ"));function f(l){return l&&l.__esModule?l:{default:l}}function c(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return c=function(){return l},l}function o(l){if(l&&l.__esModule)return l;if(l===null||O(l)!=="object"&&typeof l!="function")return{default:l};var t=c();if(t&&t.has(l))return t.get(l);var a={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in l)if(Object.prototype.hasOwnProperty.call(l,u)){var h=s?Object.getOwnPropertyDescriptor(l,u):null;h&&(h.get||h.set)?Object.defineProperty(a,u,h):a[u]=l[u]}return a.default=l,t&&t.set(l,a),a}function r(l,t){if(!(l instanceof t))throw new TypeError("Cannot call a class as a function")}function i(l,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(l,s.key,s)}}function n(l,t,a){return t&&i(l.prototype,t),a&&i(l,a),l}var e=function(){function l(t){r(this,l),this._target=t||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 n(l,[{key:"_sendKeyEvent",value:function(a,s,u){if(u)this._keyDownList[s]=a;else{if(!(s in this._keyDownList))return;delete this._keyDownList[s]}x.Debug("onkeyevent "+(u?"down":"up")+", keysym: "+a,", code: "+s),this.onkeyevent(a,s,u)}},{key:"_getKeyCode",value:function(a){var s=A.getKeycode(a);if(s!=="Unidentified")return s;if(a.keyCode&&a.type!=="keypress"&&a.keyCode!==229)return"Platform"+a.keyCode;if(a.keyIdentifier){if(a.keyIdentifier.substr(0,2)!=="U+")return a.keyIdentifier;var u=parseInt(a.keyIdentifier.substr(2),16),h=String.fromCharCode(u).toUpperCase();return"Platform"+h.charCodeAt()}return"Unidentified"}},{key:"_handleKeyDown",value:function(a){var s=this._getKeyCode(a),u=A.getKeysym(a);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),s==="AltRight"&&a.timeStamp-this._altGrCtrlTime<50?u=S.default.XK_ISO_Level3_Shift:this._sendKeyEvent(S.default.XK_Control_L,"ControlLeft",!0)),s==="Unidentified"){u&&(this._sendKeyEvent(u,s,!0),this._sendKeyEvent(u,s,!1)),(0,C.stopEvent)(a);return}if(g.isMac()||g.isIOS())switch(u){case S.default.XK_Super_L:u=S.default.XK_Alt_L;break;case S.default.XK_Super_R:u=S.default.XK_Super_L;break;case S.default.XK_Alt_L:u=S.default.XK_Mode_switch;break;case S.default.XK_Alt_R:u=S.default.XK_ISO_Level3_Shift;break}if(s in this._keyDownList&&(u=this._keyDownList[s]),(g.isMac()||g.isIOS())&&s==="CapsLock"){this._sendKeyEvent(S.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(S.default.XK_Caps_Lock,"CapsLock",!1),(0,C.stopEvent)(a);return}if(!u&&(!a.key||g.isIE()||g.isEdge())){this._pendingKey=s,setTimeout(this._handleKeyPressTimeout.bind(this),10,a);return}if(this._pendingKey=null,(0,C.stopEvent)(a),s==="ControlLeft"&&g.isWindows()&&!("ControlLeft"in this._keyDownList)){this._altGrArmed=!0,this._altGrTimeout=setTimeout(this._handleAltGrTimeout.bind(this),100),this._altGrCtrlTime=a.timeStamp;return}this._sendKeyEvent(u,s,!0)}},{key:"_handleKeyPress",value:function(a){if((0,C.stopEvent)(a),this._pendingKey===null)return;var s=this._getKeyCode(a),u=A.getKeysym(a);if(s!=="Unidentified"&&s!=this._pendingKey)return;if(s=this._pendingKey,this._pendingKey=null,!u){x.Info("keypress with no keysym:",a);return}this._sendKeyEvent(u,s,!0)}},{key:"_handleKeyPressTimeout",value:function(a){if(this._pendingKey===null)return;var s,u=this._pendingKey;if(this._pendingKey=null,a.keyCode>=48&&a.keyCode<=57)s=a.keyCode;else if(a.keyCode>=65&&a.keyCode<=90){var h=String.fromCharCode(a.keyCode);a.shiftKey?h=h.toUpperCase():h=h.toLowerCase(),s=h.charCodeAt()}else s=0;this._sendKeyEvent(s,u,!0)}},{key:"_handleKeyUp",value:function(a){(0,C.stopEvent)(a);var s=this._getKeyCode(a);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(S.default.XK_Control_L,"ControlLeft",!0)),(g.isMac()||g.isIOS())&&s==="CapsLock"){this._sendKeyEvent(S.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(S.default.XK_Caps_Lock,"CapsLock",!1);return}this._sendKeyEvent(this._keyDownList[s],s,!1),g.isWindows()&&(s==="ShiftLeft"||s==="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(S.default.XK_Control_L,"ControlLeft",!0)}},{key:"_allKeysUp",value:function(){x.Debug(">> Keyboard.allKeysUp");for(var a in this._keyDownList)this._sendKeyEvent(this._keyDownList[a],a,!1);x.Debug("<< Keyboard.allKeysUp")}},{key:"_checkAlt",value:function(a){if(a.skipCheckAlt)return;if(a.altKey)return;var s=this._target,u=this._keyDownList;["AltLeft","AltRight"].forEach(function(h){if(!(h in u))return;var p=new KeyboardEvent("keyup",{key:u[h],code:h});p.skipCheckAlt=!0,s.dispatchEvent(p)})}},{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),g.isWindows()&&g.isFirefox()){var a=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(s){return document.addEventListener(s,a,{capture:!0,passive:!0})})}}},{key:"ungrab",value:function(){if(g.isWindows()&&g.isFirefox()){var a=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(s){return document.removeEventListener(s,a)})}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}();F.default=e},FxDU:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.createSensor=void 0;var O=d("QO+J"),x=d("j5sG"),C=typeof ResizeObserver!="undefined"?x.createSensor:O.createSensor;F.createSensor=C},GGyF:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("wgjA")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="LeftOutlined";var c=A.forwardRef(f);F.default=c},GIiI:function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="PoweroffOutlined";var f=F.a=x.forwardRef(g)},GMDS:function(H,F,d){var O=d("bYtY"),x=d("4NgU"),C=d("jkPA"),A=x.prototype,S=x.extend({type:"ordinal",init:function(f,c){(!f||O.isArray(f))&&(f=new C({categories:f})),this._ordinalMeta=f,this._extent=c||[0,f.categories.length-1]},parse:function(f){return typeof f=="string"?this._ordinalMeta.getOrdinal(f):Math.round(f)},contain:function(f){return f=this.parse(f),A.contain.call(this,f)&&this._ordinalMeta.categories[f]!=null},normalize:function(f){return A.normalize.call(this,this.parse(f))},scale:function(f){return Math.round(A.scale.call(this,f))},getTicks:function(){for(var f=[],c=this._extent,o=c[0];o<=c[1];)f.push(o),o++;return f},getLabel:function(f){if(!this.isBlank())return this._ordinalMeta.categories[f]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(f,c){this.unionExtent(f.getApproximateExtent(c))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:O.noop,niceExtent:O.noop});S.create=function(){return new S};var g=S;H.exports=g},GQ8N:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.toUnsigned32bit=O,F.toSigned32bit=x;function O(C){return C>>>0}function x(C){return C|0}},GRuw:function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("lPiR"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.WordArray,S=x.algo,g=S.SHA256,f=S.SHA224=g.extend({_doReset:function(){this._hash=new A.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var o=g._doFinalize.call(this);return o.sigBytes-=4,o}});x.SHA224=g._createHelper(f),x.HmacSHA224=g._createHmacHelper(f)}(),O.SHA224})},GUcZ:function(H,F,d){"use strict";var O=d("fWQN"),x=d("mtLc"),C=function(){function kt(){Object(O.a)(this,kt)}return Object(x.a)(kt,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(Re,Ke){return Re.__proto__=Ke,Re},Object.assign=Object.assign||function(Re){if(Re==null)throw new TypeError("Cannot convert undefined or null to object");for(var Ke=Object(Re),Pe=1;Pe<arguments.length;Pe++){var nt=arguments[Pe];if(nt!=null)for(var yt in nt)nt.hasOwnProperty(yt)&&(Ke[yt]=nt[yt])}return Ke},typeof self.Promise!="function"&&d("E2g8").polyfill()}}]),kt}();C.install();var A=C,S=d("+qE3"),g=d.n(S),f=function(){function kt(){Object(O.a)(this,kt)}return Object(x.a)(kt,null,[{key:"e",value:function(Re,Ke){(!Re||kt.FORCE_GLOBAL_TAG)&&(Re=kt.GLOBAL_TAG);var Pe="[".concat(Re,"] > ").concat(Ke);if(kt.ENABLE_CALLBACK&&kt.emitter.emit("log","error",Pe),!kt.ENABLE_ERROR)return;console.error?console.error(Pe):console.warn?console.warn(Pe):console.log(Pe)}},{key:"i",value:function(Re,Ke){(!Re||kt.FORCE_GLOBAL_TAG)&&(Re=kt.GLOBAL_TAG);var Pe="[".concat(Re,"] > ").concat(Ke);if(kt.ENABLE_CALLBACK&&kt.emitter.emit("log","info",Pe),!kt.ENABLE_INFO)return;console.info?console.info(Pe):console.log(Pe)}},{key:"w",value:function(Re,Ke){(!Re||kt.FORCE_GLOBAL_TAG)&&(Re=kt.GLOBAL_TAG);var Pe="[".concat(Re,"] > ").concat(Ke);if(kt.ENABLE_CALLBACK&&kt.emitter.emit("log","warn",Pe),!kt.ENABLE_WARN)return;console.warn?console.warn(Pe):console.log(Pe)}},{key:"d",value:function(Re,Ke){(!Re||kt.FORCE_GLOBAL_TAG)&&(Re=kt.GLOBAL_TAG);var Pe="[".concat(Re,"] > ").concat(Ke);if(kt.ENABLE_CALLBACK&&kt.emitter.emit("log","debug",Pe),!kt.ENABLE_DEBUG)return;console.debug?console.debug(Pe):console.log(Pe)}},{key:"v",value:function(Re,Ke){(!Re||kt.FORCE_GLOBAL_TAG)&&(Re=kt.GLOBAL_TAG);var Pe="[".concat(Re,"] > ").concat(Ke);if(kt.ENABLE_CALLBACK&&kt.emitter.emit("log","verbose",Pe),!kt.ENABLE_VERBOSE)return;console.log(Pe)}}]),kt}();f.GLOBAL_TAG="flv.js",f.FORCE_GLOBAL_TAG=!1,f.ENABLE_ERROR=!0,f.ENABLE_INFO=!0,f.ENABLE_WARN=!0,f.ENABLE_DEBUG=!0,f.ENABLE_VERBOSE=!0,f.ENABLE_CALLBACK=!1,f.emitter=new g.a;var c=f,o=function(){function kt(){Object(O.a)(this,kt),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(x.a)(kt,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(Re){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=Re,this._totalBytes+=Re):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=Re,this._totalBytes+=Re):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=Re,this._totalBytes+=Re,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var Re=(this._now()-this._lastCheckpoint)/1e3;return Re==0&&(Re=1),this._intervalBytes/Re/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 Re=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/Re/1024}}]),kt}(),r=o,i=d("yKVA"),n=d("879j"),e=function(){function kt(vt){Object(O.a)(this,kt),this._message=vt}return Object(x.a)(kt,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),kt}(),l=function(kt){Object(i.a)(Re,kt);var vt=Object(n.a)(Re);function Re(Ke){return Object(O.a)(this,Re),vt.call(this,Ke)}return Object(x.a)(Re,[{key:"name",get:function(){return"IllegalStateException"}}]),Re}(e),t=function(kt){Object(i.a)(Re,kt);var vt=Object(n.a)(Re);function Re(Ke){return Object(O.a)(this,Re),vt.call(this,Ke)}return Object(x.a)(Re,[{key:"name",get:function(){return"InvalidArgumentException"}}]),Re}(e),a=function(kt){Object(i.a)(Re,kt);var vt=Object(n.a)(Re);function Re(Ke){return Object(O.a)(this,Re),vt.call(this,Ke)}return Object(x.a)(Re,[{key:"name",get:function(){return"NotImplementedException"}}]),Re}(e),s={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},u={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},h=function(){function kt(vt){Object(O.a)(this,kt),this._type=vt||"undefined",this._status=s.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(x.a)(kt,[{key:"destroy",value:function(){this._status=s.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===s.kConnecting||this._status===s.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(Re){this._onContentLengthKnown=Re}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(Re){this._onURLRedirect=Re}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Re){this._onDataArrival=Re}},{key:"onError",get:function(){return this._onError},set:function(Re){this._onError=Re}},{key:"onComplete",get:function(){return this._onComplete},set:function(Re){this._onComplete=Re}},{key:"open",value:function(Re,Ke){throw new a("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new a("Unimplemented abstract function!")}}]),kt}(),p=d("w4Tj"),m=d("oZsa"),v={};function y(){var kt=self.navigator.userAgent.toLowerCase(),vt=/(edge)\/([\w.]+)/.exec(kt)||/(opr)[\/]([\w.]+)/.exec(kt)||/(chrome)[ \/]([\w.]+)/.exec(kt)||/(iemobile)[\/]([\w.]+)/.exec(kt)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(kt)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(kt)||/(webkit)[ \/]([\w.]+)/.exec(kt)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(kt)||/(msie) ([\w.]+)/.exec(kt)||kt.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(kt)||kt.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(kt)||[],Re=/(ipad)/.exec(kt)||/(ipod)/.exec(kt)||/(windows phone)/.exec(kt)||/(iphone)/.exec(kt)||/(kindle)/.exec(kt)||/(android)/.exec(kt)||/(windows)/.exec(kt)||/(mac)/.exec(kt)||/(linux)/.exec(kt)||/(cros)/.exec(kt)||[],Ke={browser:vt[5]||vt[3]||vt[1]||"",version:vt[2]||vt[4]||"0",majorVersion:vt[4]||vt[2]||"0",platform:Re[0]||""},Pe={};if(Ke.browser){Pe[Ke.browser]=!0;var nt=Ke.majorVersion.split(".");Pe.version={major:parseInt(Ke.majorVersion,10),string:Ke.version},nt.length>1&&(Pe.version.minor=parseInt(nt[1],10)),nt.length>2&&(Pe.version.build=parseInt(nt[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 yt="msie";Ke.browser=yt,Pe[yt]=!0}if(Pe.edge){delete Pe.edge;var Dt="msedge";Ke.browser=Dt,Pe[Dt]=!0}if(Pe.opr){var bt="opera";Ke.browser=bt,Pe[bt]=!0}if(Pe.safari&&Pe.android){var It="android";Ke.browser=It,Pe[It]=!0}Pe.name=Ke.browser,Pe.platform=Ke.platform;for(var gr in v)v.hasOwnProperty(gr)&&delete v[gr];Object.assign(v,Pe)}y();var E=v,T=function(kt){Object(i.a)(Re,kt);var vt=Object(n.a)(Re);function Re(Ke,Pe){var nt;return Object(O.a)(this,Re),nt=vt.call(this,"fetch-stream-loader"),nt.TAG="FetchStreamLoader",nt._seekHandler=Ke,nt._config=Pe,nt._needStash=!0,nt._requestAbort=!1,nt._contentLength=null,nt._receivedLength=0,nt}return Object(x.a)(Re,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),Object(p.a)(Object(m.a)(Re.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe,nt){var yt=this;this._dataSource=Pe,this._range=nt;var Dt=Pe.url;this._config.reuseRedirectedURL&&Pe.redirectedURL!=null&&(Dt=Pe.redirectedURL);var bt=this._seekHandler.getConfig(Dt,nt),It=new self.Headers;if(typeof bt.headers=="object"){var gr=bt.headers;for(var kr in gr)gr.hasOwnProperty(kr)&&It.append(kr,gr[kr])}var wt={method:"GET",headers:It,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var rt in this._config.headers)It.append(rt,this._config.headers[rt]);Pe.cors===!1&&(wt.mode="same-origin"),Pe.withCredentials&&(wt.credentials="include"),Pe.referrerPolicy&&(wt.referrerPolicy=Pe.referrerPolicy),this._status=s.kConnecting,self.fetch(bt.url,wt).then(function(tt){if(yt._requestAbort){yt._requestAbort=!1,yt._status=s.kIdle;return}if(tt.ok&&tt.status>=200&&tt.status<=299){if(tt.url!==bt.url&&yt._onURLRedirect){var Rt=yt._seekHandler.removeURLParameters(tt.url);yt._onURLRedirect(Rt)}var Ft=tt.headers.get("Content-Length");return Ft!=null&&(yt._contentLength=parseInt(Ft),yt._contentLength!==0&&(yt._onContentLengthKnown&&yt._onContentLengthKnown(yt._contentLength))),yt._pump.call(yt,tt.body.getReader())}else if(yt._status=s.kError,yt._onError)yt._onError(u.HTTP_STATUS_CODE_INVALID,{code:tt.status,msg:tt.statusText});else throw new e("FetchStreamLoader: Http code invalid, "+tt.status+" "+tt.statusText)}).catch(function(tt){if(yt._status=s.kError,yt._onError)yt._onError(u.EXCEPTION,{code:-1,msg:tt.message});else throw tt})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(Pe){var nt=this;return Pe.read().then(function(yt){if(yt.done)if(nt._contentLength!==null&&nt._receivedLength<nt._contentLength){nt._status=s.kError;var Dt=u.EARLY_EOF,bt={code:-1,msg:"Fetch stream meet Early-EOF"};if(nt._onError)nt._onError(Dt,bt);else throw new e(bt.msg)}else nt._status=s.kComplete,nt._onComplete&&nt._onComplete(nt._range.from,nt._range.from+nt._receivedLength-1);else{if(nt._requestAbort===!0)return nt._requestAbort=!1,nt._status=s.kComplete,Pe.cancel();nt._status=s.kBuffering;var It=yt.value.buffer,gr=nt._range.from+nt._receivedLength;nt._receivedLength+=It.byteLength,nt._onDataArrival&&nt._onDataArrival(It,gr,nt._receivedLength),nt._pump(Pe)}}).catch(function(yt){if(yt.code===11&&E.msedge)return;nt._status=s.kError;var Dt=0,bt=null;if((yt.code===19||yt.message==="network error")&&(nt._contentLength===null||nt._contentLength!==null&&nt._receivedLength<nt._contentLength)?(Dt=u.EARLY_EOF,bt={code:yt.code,msg:"Fetch stream meet Early-EOF"}):(Dt=u.EXCEPTION,bt={code:yt.code,msg:yt.message}),nt._onError)nt._onError(Dt,bt);else throw new e(bt.msg)})}}],[{key:"isSupported",value:function(){try{var Pe=E.msedge&&E.version.minor>=15048,nt=E.msedge?Pe:!0;return self.fetch&&self.ReadableStream&&nt}catch(yt){return!1}}}]),Re}(h),b=T,w=function(kt){Object(i.a)(Re,kt);var vt=Object(n.a)(Re);function Re(Ke,Pe){var nt;return Object(O.a)(this,Re),nt=vt.call(this,"xhr-moz-chunked-loader"),nt.TAG="MozChunkedLoader",nt._seekHandler=Ke,nt._config=Pe,nt._needStash=!0,nt._xhr=null,nt._requestAbort=!1,nt._contentLength=null,nt._receivedLength=0,nt}return Object(x.a)(Re,[{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(p.a)(Object(m.a)(Re.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe,nt){this._dataSource=Pe,this._range=nt;var yt=Pe.url;this._config.reuseRedirectedURL&&Pe.redirectedURL!=null&&(yt=Pe.redirectedURL);var Dt=this._seekHandler.getConfig(yt,nt);this._requestURL=Dt.url;var bt=this._xhr=new XMLHttpRequest;if(bt.open("GET",Dt.url,!0),bt.responseType="moz-chunked-arraybuffer",bt.onreadystatechange=this._onReadyStateChange.bind(this),bt.onprogress=this._onProgress.bind(this),bt.onloadend=this._onLoadEnd.bind(this),bt.onerror=this._onXhrError.bind(this),Pe.withCredentials&&(bt.withCredentials=!0),typeof Dt.headers=="object"){var It=Dt.headers;for(var gr in It)It.hasOwnProperty(gr)&&bt.setRequestHeader(gr,It[gr])}if(typeof this._config.headers=="object"){var kr=this._config.headers;for(var wt in kr)kr.hasOwnProperty(wt)&&bt.setRequestHeader(wt,kr[wt])}this._status=s.kConnecting,bt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=s.kComplete}},{key:"_onReadyStateChange",value:function(Pe){var nt=Pe.target;if(nt.readyState===2){if(nt.responseURL!=null&&nt.responseURL!==this._requestURL&&this._onURLRedirect){var yt=this._seekHandler.removeURLParameters(nt.responseURL);this._onURLRedirect(yt)}if(nt.status!==0&&(nt.status<200||nt.status>299))if(this._status=s.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:nt.status,msg:nt.statusText});else throw new e("MozChunkedLoader: Http code invalid, "+nt.status+" "+nt.statusText);else this._status=s.kBuffering}}},{key:"_onProgress",value:function(Pe){if(this._status===s.kError)return;this._contentLength===null&&(Pe.total!==null&&Pe.total!==0&&(this._contentLength=Pe.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var nt=Pe.target.response,yt=this._range.from+this._receivedLength;this._receivedLength+=nt.byteLength,this._onDataArrival&&this._onDataArrival(nt,yt,this._receivedLength)}},{key:"_onLoadEnd",value:function(Pe){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===s.kError)return;this._status=s.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function(Pe){this._status=s.kError;var nt=0,yt=null;if(this._contentLength&&Pe.loaded<this._contentLength?(nt=u.EARLY_EOF,yt={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(nt=u.EXCEPTION,yt={code:-1,msg:Pe.constructor.name+" "+Pe.type}),this._onError)this._onError(nt,yt);else throw new e(yt.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(nt){return c.w("MozChunkedLoader",nt.message),!1}}}]),Re}(h),_=w,I=function(kt){Object(i.a)(Re,kt);var vt=Object(n.a)(Re);function Re(Ke,Pe){var nt;return Object(O.a)(this,Re),nt=vt.call(this,"xhr-msstream-loader"),nt.TAG="MSStreamLoader",nt._seekHandler=Ke,nt._config=Pe,nt._needStash=!0,nt._xhr=null,nt._reader=null,nt._totalRange=null,nt._currentRange=null,nt._currentRequestURL=null,nt._currentRedirectedURL=null,nt._contentLength=null,nt._receivedLength=0,nt._bufferLimit=16*1024*1024,nt._lastTimeBufferSize=0,nt._isReconnecting=!1,nt}return Object(x.a)(Re,[{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(p.a)(Object(m.a)(Re.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe,nt){this._internalOpen(Pe,nt,!1)}},{key:"_internalOpen",value:function(Pe,nt,yt){this._dataSource=Pe,yt?this._currentRange=nt:this._totalRange=nt;var Dt=Pe.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Dt=this._currentRedirectedURL:Pe.redirectedURL!=null&&(Dt=Pe.redirectedURL));var bt=this._seekHandler.getConfig(Dt,nt);this._currentRequestURL=bt.url;var It=this._reader=new self.MSStreamReader;It.onprogress=this._msrOnProgress.bind(this),It.onload=this._msrOnLoad.bind(this),It.onerror=this._msrOnError.bind(this);var gr=this._xhr=new XMLHttpRequest;if(gr.open("GET",bt.url,!0),gr.responseType="ms-stream",gr.onreadystatechange=this._xhrOnReadyStateChange.bind(this),gr.onerror=this._xhrOnError.bind(this),Pe.withCredentials&&(gr.withCredentials=!0),typeof bt.headers=="object"){var kr=bt.headers;for(var wt in kr)kr.hasOwnProperty(wt)&&gr.setRequestHeader(wt,kr[wt])}if(typeof this._config.headers=="object"){var rt=this._config.headers;for(var tt in rt)rt.hasOwnProperty(tt)&&gr.setRequestHeader(tt,rt[tt])}this._isReconnecting?this._isReconnecting=!1:this._status=s.kConnecting,gr.send()}},{key:"abort",value:function(){this._internalAbort(),this._status=s.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 nt=Pe.target;if(nt.readyState===2)if(nt.status>=200&&nt.status<=299){if(this._status=s.kBuffering,nt.responseURL!=null){var yt=this._seekHandler.removeURLParameters(nt.responseURL);nt.responseURL!==this._currentRequestURL&&yt!==this._currentRedirectedURL&&(this._currentRedirectedURL=yt,this._onURLRedirect&&this._onURLRedirect(yt))}var Dt=nt.getResponseHeader("Content-Length");if(Dt!=null&&this._contentLength==null){var bt=parseInt(Dt);bt>0&&(this._contentLength=bt,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=s.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:nt.status,msg:nt.statusText});else throw new e("MSStreamLoader: Http code invalid, "+nt.status+" "+nt.statusText);else if(nt.readyState===3&&(nt.status>=200&&nt.status<=299)){this._status=s.kBuffering;var It=nt.response;this._reader.readAsArrayBuffer(It)}}},{key:"_xhrOnError",value:function(Pe){this._status=s.kError;var nt=u.EXCEPTION,yt={code:-1,msg:Pe.constructor.name+" "+Pe.type};if(this._onError)this._onError(nt,yt);else throw new e(yt.msg)}},{key:"_msrOnProgress",value:function(Pe){var nt=Pe.target,yt=nt.result;if(yt==null){this._doReconnectIfNeeded();return}var Dt=yt.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=yt.byteLength;var bt=this._totalRange.from+this._receivedLength;this._receivedLength+=Dt.byteLength,this._onDataArrival&&this._onDataArrival(Dt,bt,this._receivedLength),yt.byteLength>=this._bufferLimit&&(c.v(this.TAG,"MSStream buffer exceeded max size near ".concat(bt+Dt.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=s.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}},{key:"_msrOnError",value:function(Pe){this._status=s.kError;var nt=0,yt=null;if(this._contentLength&&this._receivedLength<this._contentLength?(nt=u.EARLY_EOF,yt={code:-1,msg:"MSStream meet Early-Eof"}):(nt=u.EARLY_EOF,yt={code:-1,msg:Pe.constructor.name+" "+Pe.type}),this._onError)this._onError(nt,yt);else throw new e(yt.msg)}}],[{key:"isSupported",value:function(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;var Pe=new XMLHttpRequest;return Pe.open("GET","https://example.com",!0),Pe.responseType="ms-stream",Pe.responseType==="ms-stream"}catch(nt){return c.w("MSStreamLoader",nt.message),!1}}}]),Re}(h),L=I,N=function(kt){Object(i.a)(Re,kt);var vt=Object(n.a)(Re);function Re(Ke,Pe){var nt;return Object(O.a)(this,Re),nt=vt.call(this,"xhr-range-loader"),nt.TAG="RangeLoader",nt._seekHandler=Ke,nt._config=Pe,nt._needStash=!1,nt._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],nt._currentChunkSizeKB=384,nt._currentSpeedNormalized=0,nt._zeroSpeedChunkCount=0,nt._xhr=null,nt._speedSampler=new r,nt._requestAbort=!1,nt._waitForTotalLength=!1,nt._totalLengthReceived=!1,nt._currentRequestURL=null,nt._currentRedirectedURL=null,nt._currentRequestRange=null,nt._totalLength=null,nt._contentLength=null,nt._receivedLength=0,nt._lastTimeLoaded=0,nt}return Object(x.a)(Re,[{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(p.a)(Object(m.a)(Re.prototype),"destroy",this).call(this)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(Pe,nt){this._dataSource=Pe,this._range=nt,this._status=s.kConnecting;var yt=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(yt=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!yt?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}},{key:"_openSubRange",value:function(){var Pe=this._currentChunkSizeKB*1024,nt=this._range.from+this._receivedLength,yt=nt+Pe;this._contentLength!=null&&(yt-this._range.from>=this._contentLength&&(yt=this._range.from+this._contentLength-1)),this._currentRequestRange={from:nt,to:yt},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(Pe,nt){this._lastTimeLoaded=0;var yt=Pe.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?yt=this._currentRedirectedURL:Pe.redirectedURL!=null&&(yt=Pe.redirectedURL));var Dt=this._seekHandler.getConfig(yt,nt);this._currentRequestURL=Dt.url;var bt=this._xhr=new XMLHttpRequest;if(bt.open("GET",Dt.url,!0),bt.responseType="arraybuffer",bt.onreadystatechange=this._onReadyStateChange.bind(this),bt.onprogress=this._onProgress.bind(this),bt.onload=this._onLoad.bind(this),bt.onerror=this._onXhrError.bind(this),Pe.withCredentials&&(bt.withCredentials=!0),typeof Dt.headers=="object"){var It=Dt.headers;for(var gr in It)It.hasOwnProperty(gr)&&bt.setRequestHeader(gr,It[gr])}if(typeof this._config.headers=="object"){var kr=this._config.headers;for(var wt in kr)kr.hasOwnProperty(wt)&&bt.setRequestHeader(wt,kr[wt])}bt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=s.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 nt=Pe.target;if(nt.readyState===2){if(nt.responseURL!=null){var yt=this._seekHandler.removeURLParameters(nt.responseURL);nt.responseURL!==this._currentRequestURL&&yt!==this._currentRedirectedURL&&(this._currentRedirectedURL=yt,this._onURLRedirect&&this._onURLRedirect(yt))}if(nt.status>=200&&nt.status<=299){if(this._waitForTotalLength)return;this._status=s.kBuffering}else if(this._status=s.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:nt.status,msg:nt.statusText});else throw new e("RangeLoader: Http code invalid, "+nt.status+" "+nt.statusText)}}},{key:"_onProgress",value:function(Pe){if(this._status===s.kError)return;if(this._contentLength===null){var nt=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,nt=!0;var yt=Pe.total;this._internalAbort(),yt!=null&yt!==0&&(this._totalLength=yt)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,nt){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var Dt=Pe.loaded-this._lastTimeLoaded;this._lastTimeLoaded=Pe.loaded,this._speedSampler.addBytes(Dt)}},{key:"_normalizeSpeed",value:function(Pe){var nt=this._chunkSizeKBList,yt=nt.length-1,Dt=0,bt=0,It=yt;if(Pe<nt[0])return nt[0];for(;bt<=It;){if(Dt=bt+Math.floor((It-bt)/2),Dt===yt||Pe>=nt[Dt]&&Pe<nt[Dt+1])return nt[Dt];nt[Dt]<Pe?bt=Dt+1:It=Dt-1}}},{key:"_onLoad",value:function(Pe){if(this._status===s.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;var nt=this._speedSampler.lastSecondKBps;if(nt===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(nt=this._speedSampler.currentKBps)),nt!==0){var yt=this._normalizeSpeed(nt);this._currentSpeedNormalized!==yt&&(this._currentSpeedNormalized=yt,this._currentChunkSizeKB=yt)}var Dt=Pe.target.response,bt=this._range.from+this._receivedLength;this._receivedLength+=Dt.byteLength;var It=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():It=!0,this._onDataArrival&&this._onDataArrival(Dt,bt,this._receivedLength),It&&(this._status=s.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},{key:"_onXhrError",value:function(Pe){this._status=s.kError;var nt=0,yt=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(nt=u.EARLY_EOF,yt={code:-1,msg:"RangeLoader meet Early-Eof"}):(nt=u.EXCEPTION,yt={code:-1,msg:Pe.constructor.name+" "+Pe.type}),this._onError)this._onError(nt,yt);else throw new e(yt.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(nt){return c.w("RangeLoader",nt.message),!1}}}]),Re}(h),D=N,R=function(kt){Object(i.a)(Re,kt);var vt=Object(n.a)(Re);function Re(){var Ke;return Object(O.a)(this,Re),Ke=vt.call(this,"websocket-loader"),Ke.TAG="WebSocketLoader",Ke._needStash=!0,Ke._ws=null,Ke._requestAbort=!1,Ke._receivedLength=0,Ke}return Object(x.a)(Re,[{key:"destroy",value:function(){this._ws&&this.abort(),Object(p.a)(Object(m.a)(Re.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe){try{var nt=this._ws=new self.WebSocket(Pe.url);nt.binaryType="arraybuffer",nt.onopen=this._onWebSocketOpen.bind(this),nt.onclose=this._onWebSocketClose.bind(this),nt.onmessage=this._onWebSocketMessage.bind(this),nt.onerror=this._onWebSocketError.bind(this),this._status=s.kConnecting}catch(Dt){this._status=s.kError;var yt={code:Dt.code,msg:Dt.message};if(this._onError)this._onError(u.EXCEPTION,yt);else throw new e(yt.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=s.kComplete}},{key:"_onWebSocketOpen",value:function(Pe){this._status=s.kBuffering}},{key:"_onWebSocketClose",value:function(Pe){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=s.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}},{key:"_onWebSocketMessage",value:function(Pe){var nt=this;if(Pe.data instanceof ArrayBuffer)this._dispatchArrayBuffer(Pe.data);else if(Pe.data instanceof Blob){var yt=new FileReader;yt.onload=function(){nt._dispatchArrayBuffer(yt.result)},yt.readAsArrayBuffer(Pe.data)}else{this._status=s.kError;var Dt={code:-1,msg:"Unsupported WebSocket message type: "+Pe.data.constructor.name};if(this._onError)this._onError(u.EXCEPTION,Dt);else throw new e(Dt.msg)}}},{key:"_dispatchArrayBuffer",value:function(Pe){var nt=Pe,yt=this._receivedLength;this._receivedLength+=nt.byteLength,this._onDataArrival&&this._onDataArrival(nt,yt,this._receivedLength)}},{key:"_onWebSocketError",value:function(Pe){this._status=s.kError;var nt={code:Pe.code,msg:Pe.message};if(this._onError)this._onError(u.EXCEPTION,nt);else throw new e(nt.msg)}}],[{key:"isSupported",value:function(){try{return typeof self.WebSocket!="undefined"}catch(Pe){return!1}}}]),Re}(h),k=R,M=function(){function kt(vt){Object(O.a)(this,kt),this._zeroStart=vt||!1}return Object(x.a)(kt,[{key:"getConfig",value:function(Re,Ke){var Pe={};if(Ke.from!==0||Ke.to!==-1){var nt;Ke.to!==-1?nt="bytes=".concat(Ke.from.toString(),"-").concat(Ke.to.toString()):nt="bytes=".concat(Ke.from.toString(),"-"),Pe.Range=nt}else this._zeroStart&&(Pe.Range="bytes=0-");return{url:Re,headers:Pe}}},{key:"removeURLParameters",value:function(Re){return Re}}]),kt}(),U=M,B=function(){function kt(vt,Re){Object(O.a)(this,kt),this._startName=vt,this._endName=Re}return Object(x.a)(kt,[{key:"getConfig",value:function(Re,Ke){var Pe=Re;if(Ke.from!==0||Ke.to!==-1){var nt=!0;Pe.indexOf("?")===-1&&(Pe+="?",nt=!1),nt&&(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(Re){var Ke=Re.split("?")[0],Pe=void 0,nt=Re.indexOf("?");nt!==-1&&(Pe=Re.substring(nt+1));var yt="";if(Pe!=null&&Pe.length>0)for(var Dt=Pe.split("&"),bt=0;bt<Dt.length;bt++){var It=Dt[bt].split("="),gr=bt>0;It[0]!==this._startName&&It[0]!==this._endName&&(gr&&(yt+="&"),yt+=Dt[bt])}return yt.length===0?Ke:Ke+"?"+yt}}]),kt}(),j=B,W=function(){function kt(vt,Re,Ke){Object(O.a)(this,kt),this.TAG="IOController",this._config=Re,this._extraData=Ke,this._stashInitialSize=1024*384,Re.stashInitialSize!=null&&Re.stashInitialSize>0&&(this._stashInitialSize=Re.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,Re.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=vt,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(vt.url),this._refTotalLength=vt.filesize?vt.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new r,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(x.a)(kt,[{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(Re){this._extraData=Re}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Re){this._onDataArrival=Re}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(Re){this._onSeeked=Re}},{key:"onError",get:function(){return this._onError},set:function(Re){this._onError=Re}},{key:"onComplete",get:function(){return this._onComplete},set:function(Re){this._onComplete=Re}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(Re){this._onRedirect=Re}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(Re){this._onRecoveredEarlyEof=Re}},{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===D?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var Re=this._config;if(Re.seekType==="range")this._seekHandler=new U(this._config.rangeLoadZeroStart);else if(Re.seekType==="param"){var Ke=Re.seekParamStart||"bstart",Pe=Re.seekParamEnd||"bend";this._seekHandler=new j(Ke,Pe)}else if(Re.seekType==="custom"){if(typeof Re.customSeekHandler!="function")throw new t("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new Re.customSeekHandler}else throw new t("Invalid seekType in config: ".concat(Re.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=k;else if(b.isSupported())this._loaderClass=b;else if(_.isSupported())this._loaderClass=_;else if(D.isSupported())this._loaderClass=D;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(Re){this._currentRange={from:0,to:-1},Re&&(this._currentRange.from=Re),this._speedSampler.reset(),Re||(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 Re=this._resumeFrom;this._resumeFrom=0,this._internalSeek(Re,!0)}}},{key:"seek",value:function(Re){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(Re,!0)}},{key:"_internalSeek",value:function(Re,Ke){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(Ke),this._loader.destroy(),this._loader=null;var Pe={from:Re,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(Re){if(!Re||typeof Re!="string"||Re.length===0)throw new t("Url must be a non-empty string!");this._dataSource.url=Re}},{key:"_expandBuffer",value:function(Re){for(var Ke=this._stashSize;Ke+1024*1024*1<Re;)Ke*=2;if(Ke+=1024*1024*1,Ke===this._bufferSize)return;var Pe=new ArrayBuffer(Ke);if(this._stashUsed>0){var nt=new Uint8Array(this._stashBuffer,0,this._stashUsed),yt=new Uint8Array(Pe,0,Ke);yt.set(nt,0)}this._stashBuffer=Pe,this._bufferSize=Ke}},{key:"_normalizeSpeed",value:function(Re){var Ke=this._speedNormalizeList,Pe=Ke.length-1,nt=0,yt=0,Dt=Pe;if(Re<Ke[0])return Ke[0];for(;yt<=Dt;){if(nt=yt+Math.floor((Dt-yt)/2),nt===Pe||Re>=Ke[nt]&&Re<Ke[nt+1])return Ke[nt];Ke[nt]<Re?yt=nt+1:Dt=nt-1}}},{key:"_adjustStashSize",value:function(Re){var Ke=0;this._config.isLive||Re<512?Ke=Re:Re>=512&&Re<=1024?Ke=Math.floor(Re*1.5):Ke=Re*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(Re,Ke){return this._currentRange.to=Ke+Re.byteLength-1,this._onDataArrival(Re,Ke)}},{key:"_onURLRedirect",value:function(Re){this._redirectedURL=Re,this._onRedirect&&this._onRedirect(Re)}},{key:"_onContentLengthKnown",value:function(Re){Re&&this._fullRequestFlag&&(this._totalLength=Re,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(Re,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(Re.byteLength);var nt=this._speedSampler.lastSecondKBps;if(nt!==0){var yt=this._normalizeSpeed(nt);this._speedNormalized!==yt&&(this._speedNormalized=yt,this._adjustStashSize(yt))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=Ke),this._stashUsed+Re.byteLength<=this._stashSize){var rt=new Uint8Array(this._stashBuffer,0,this._stashSize);rt.set(new Uint8Array(Re),this._stashUsed),this._stashUsed+=Re.byteLength}else{var tt=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var Rt=this._stashBuffer.slice(0,this._stashUsed),Ft=this._dispatchChunks(Rt,this._stashByteStart);if(Ft<Rt.byteLength){if(Ft>0){var At=new Uint8Array(Rt,Ft);tt.set(At,0),this._stashUsed=At.byteLength,this._stashByteStart+=Ft}}else this._stashUsed=0,this._stashByteStart+=Ft;this._stashUsed+Re.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+Re.byteLength),tt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),tt.set(new Uint8Array(Re),this._stashUsed),this._stashUsed+=Re.byteLength}else{var Wt=this._dispatchChunks(Re,Ke);if(Wt<Re.byteLength){var ot=Re.byteLength-Wt;ot>this._bufferSize&&(this._expandBuffer(ot),tt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),tt.set(new Uint8Array(Re,Wt),0),this._stashUsed+=ot,this._stashByteStart=Ke+Wt}}}else if(this._stashUsed===0){var Dt=this._dispatchChunks(Re,Ke);if(Dt<Re.byteLength){var bt=Re.byteLength-Dt;bt>this._bufferSize&&this._expandBuffer(bt);var It=new Uint8Array(this._stashBuffer,0,this._bufferSize);It.set(new Uint8Array(Re,Dt),0),this._stashUsed+=bt,this._stashByteStart=Ke+Dt}}else{this._stashUsed+Re.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+Re.byteLength);var gr=new Uint8Array(this._stashBuffer,0,this._bufferSize);gr.set(new Uint8Array(Re),this._stashUsed),this._stashUsed+=Re.byteLength;var kr=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(kr<this._stashUsed&&kr>0){var wt=new Uint8Array(this._stashBuffer,kr);gr.set(wt,0)}this._stashUsed-=kr,this._stashByteStart+=kr}}},{key:"_flushStashBuffer",value:function(Re){if(this._stashUsed>0){var Ke=this._stashBuffer.slice(0,this._stashUsed),Pe=this._dispatchChunks(Ke,this._stashByteStart),nt=Ke.byteLength-Pe;if(Pe<Ke.byteLength)if(Re)c.w(this.TAG,"".concat(nt," bytes unconsumed data remain when flush buffer, dropped"));else{if(Pe>0){var yt=new Uint8Array(this._stashBuffer,0,this._bufferSize),Dt=new Uint8Array(Ke,Pe);yt.set(Dt,0),this._stashUsed=Dt.byteLength,this._stashByteStart+=Pe}return 0}return this._stashUsed=0,this._stashByteStart=0,nt}return 0}},{key:"_onLoaderComplete",value:function(Re,Ke){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(Re,Ke){c.e(this.TAG,"Loader error, code = ".concat(Ke.code,", msg = ").concat(Ke.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,Re=u.UNRECOVERABLE_EARLY_EOF);switch(Re){case u.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var Pe=this._currentRange.to+1;Pe<this._totalLength&&(c.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Pe,!1));return}Re=u.UNRECOVERABLE_EARLY_EOF;break}case u.UNRECOVERABLE_EARLY_EOF:case u.CONNECTING_TIMEOUT:case u.HTTP_STATUS_CODE_INVALID:case u.EXCEPTION:break}if(this._onError)this._onError(Re,Ke);else throw new e("IOException: "+Ke.msg)}}]),kt}(),V=W,z={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 J(){return Object.assign({},z)}var Z=function(){function kt(){Object(O.a)(this,kt)}return Object(x.a)(kt,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var Re=new V({},J()),Ke=Re.loaderType;return Re.destroy(),Ke=="fetch-stream-loader"||Ke=="xhr-moz-chunked-loader"}},{key:"getNetworkLoaderTypeName",value:function(){var Re=new V({},J()),Ke=Re.loaderType;return Re.destroy(),Ke}},{key:"supportNativeMediaPlayback",value:function(Re){kt.videoElement==null&&(kt.videoElement=window.document.createElement("video"));var Ke=kt.videoElement.canPlayType(Re);return Ke==="probably"||Ke=="maybe"}},{key:"getFeatureList",value:function(){var Re={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return Re.mseFlvPlayback=kt.supportMSEH264Playback(),Re.networkStreamIO=kt.supportNetworkStreamIO(),Re.networkLoaderName=kt.getNetworkLoaderTypeName(),Re.mseLiveFlvPlayback=Re.mseFlvPlayback&&Re.networkStreamIO,Re.nativeMP4H264Playback=kt.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),Re.nativeWebmVP8Playback=kt.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),Re.nativeWebmVP9Playback=kt.supportNativeMediaPlayback('video/webm; codecs="vp9"'),Re}}]),kt}(),de=Z,ie={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"},ve=ie,xe=function(){function kt(){Object(O.a)(this,kt)}return Object(x.a)(kt,null,[{key:"forceGlobalTag",get:function(){return c.FORCE_GLOBAL_TAG},set:function(Re){c.FORCE_GLOBAL_TAG=Re,kt._notifyChange()}},{key:"globalTag",get:function(){return c.GLOBAL_TAG},set:function(Re){c.GLOBAL_TAG=Re,kt._notifyChange()}},{key:"enableAll",get:function(){return c.ENABLE_VERBOSE&&c.ENABLE_DEBUG&&c.ENABLE_INFO&&c.ENABLE_WARN&&c.ENABLE_ERROR},set:function(Re){c.ENABLE_VERBOSE=Re,c.ENABLE_DEBUG=Re,c.ENABLE_INFO=Re,c.ENABLE_WARN=Re,c.ENABLE_ERROR=Re,kt._notifyChange()}},{key:"enableDebug",get:function(){return c.ENABLE_DEBUG},set:function(Re){c.ENABLE_DEBUG=Re,kt._notifyChange()}},{key:"enableVerbose",get:function(){return c.ENABLE_VERBOSE},set:function(Re){c.ENABLE_VERBOSE=Re,kt._notifyChange()}},{key:"enableInfo",get:function(){return c.ENABLE_INFO},set:function(Re){c.ENABLE_INFO=Re,kt._notifyChange()}},{key:"enableWarn",get:function(){return c.ENABLE_WARN},set:function(Re){c.ENABLE_WARN=Re,kt._notifyChange()}},{key:"enableError",get:function(){return c.ENABLE_ERROR},set:function(Re){c.ENABLE_ERROR=Re,kt._notifyChange()}},{key:"getConfig",value:function(){return{globalTag:c.GLOBAL_TAG,forceGlobalTag:c.FORCE_GLOBAL_TAG,enableVerbose:c.ENABLE_VERBOSE,enableDebug:c.ENABLE_DEBUG,enableInfo:c.ENABLE_INFO,enableWarn:c.ENABLE_WARN,enableError:c.ENABLE_ERROR,enableCallback:c.ENABLE_CALLBACK}}},{key:"applyConfig",value:function(Re){c.GLOBAL_TAG=Re.globalTag,c.FORCE_GLOBAL_TAG=Re.forceGlobalTag,c.ENABLE_VERBOSE=Re.enableVerbose,c.ENABLE_DEBUG=Re.enableDebug,c.ENABLE_INFO=Re.enableInfo,c.ENABLE_WARN=Re.enableWarn,c.ENABLE_ERROR=Re.enableError,c.ENABLE_CALLBACK=Re.enableCallback}},{key:"_notifyChange",value:function(){var Re=kt.emitter;if(Re.listenerCount("change")>0){var Ke=kt.getConfig();Re.emit("change",Ke)}}},{key:"registerListener",value:function(Re){kt.emitter.addListener("change",Re)}},{key:"removeListener",value:function(Re){kt.emitter.removeListener("change",Re)}},{key:"addLogListener",value:function(Re){c.emitter.addListener("log",Re),c.emitter.listenerCount("log")>0&&(c.ENABLE_CALLBACK=!0,kt._notifyChange())}},{key:"removeLogListener",value:function(Re){c.emitter.removeListener("log",Re),c.emitter.listenerCount("log")===0&&(c.ENABLE_CALLBACK=!1,kt._notifyChange())}}]),kt}();xe.emitter=new g.a;var _e=xe,Ue=function(){function kt(){Object(O.a)(this,kt),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(x.a)(kt,[{key:"isComplete",value:function(){var Re=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&&Re&&Ke}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(Re){if(this.keyframesIndex==null)return null;var Ke=this.keyframesIndex,Pe=this._search(Ke.times,Re);return{index:Pe,milliseconds:Ke.times[Pe],fileposition:Ke.filepositions[Pe]}}},{key:"_search",value:function(Re,Ke){var Pe=0,nt=Re.length-1,yt=0,Dt=0,bt=nt;for(Ke<Re[0]&&(Pe=0,Dt=bt+1);Dt<=bt;)if(yt=Dt+Math.floor((bt-Dt)/2),yt===nt||Ke>=Re[yt]&&Ke<Re[yt+1]){Pe=yt;break}else Re[yt]<Ke?Dt=yt+1:bt=yt-1;return Pe}}]),kt}(),fe=Ue;function ke(kt,vt,Re){var Ke=kt;if(vt+Re<Ke.length){for(;Re--;)if((Ke[++vt]&192)!==128)return!1;return!0}else return!1}function se(kt){for(var vt=[],Re=kt,Ke=0,Pe=kt.length;Ke<Pe;){if(Re[Ke]<128){vt.push(String.fromCharCode(Re[Ke])),++Ke;continue}else if(!(Re[Ke]<192)){if(Re[Ke]<224){if(ke(Re,Ke,1)){var nt=(Re[Ke]&31)<<6|Re[Ke+1]&63;if(nt>=128){vt.push(String.fromCharCode(nt&65535)),Ke+=2;continue}}}else if(Re[Ke]<240){if(ke(Re,Ke,2)){var yt=(Re[Ke]&15)<<12|(Re[Ke+1]&63)<<6|Re[Ke+2]&63;if(yt>=2048&&(yt&63488)!==55296){vt.push(String.fromCharCode(yt&65535)),Ke+=3;continue}}}else if(Re[Ke]<248&&ke(Re,Ke,3)){var Dt=(Re[Ke]&7)<<18|(Re[Ke+1]&63)<<12|(Re[Ke+2]&63)<<6|Re[Ke+3]&63;if(Dt>65536&&Dt<1114112){Dt-=65536,vt.push(String.fromCharCode(Dt>>>10|55296)),vt.push(String.fromCharCode(Dt&1023|56320)),Ke+=4;continue}}}vt.push(String.fromCharCode(65533)),++Ke}return vt.join("")}var te=se,Ve=function(){var kt=new ArrayBuffer(2);return new DataView(kt).setInt16(0,256,!0),new Int16Array(kt)[0]===256}(),ae=function(){function kt(){Object(O.a)(this,kt)}return Object(x.a)(kt,null,[{key:"parseScriptData",value:function(Re,Ke,Pe){var nt={};try{var yt=kt.parseValue(Re,Ke,Pe),Dt=kt.parseValue(Re,Ke+yt.size,Pe-yt.size);nt[yt.data]=Dt.data}catch(bt){c.e("AMF",bt.toString())}return nt}},{key:"parseObject",value:function(Re,Ke,Pe){if(Pe<3)throw new l("Data not enough when parse ScriptDataObject");var nt=kt.parseString(Re,Ke,Pe),yt=kt.parseValue(Re,Ke+nt.size,Pe-nt.size),Dt=yt.objectEnd;return{data:{name:nt.data,value:yt.data},size:nt.size+yt.size,objectEnd:Dt}}},{key:"parseVariable",value:function(Re,Ke,Pe){return kt.parseObject(Re,Ke,Pe)}},{key:"parseString",value:function(Re,Ke,Pe){if(Pe<2)throw new l("Data not enough when parse String");var nt=new DataView(Re,Ke,Pe),yt=nt.getUint16(0,!Ve),Dt;return yt>0?Dt=te(new Uint8Array(Re,Ke+2,yt)):Dt="",{data:Dt,size:2+yt}}},{key:"parseLongString",value:function(Re,Ke,Pe){if(Pe<4)throw new l("Data not enough when parse LongString");var nt=new DataView(Re,Ke,Pe),yt=nt.getUint32(0,!Ve),Dt;return yt>0?Dt=te(new Uint8Array(Re,Ke+4,yt)):Dt="",{data:Dt,size:4+yt}}},{key:"parseDate",value:function(Re,Ke,Pe){if(Pe<10)throw new l("Data size invalid when parse Date");var nt=new DataView(Re,Ke,Pe),yt=nt.getFloat64(0,!Ve),Dt=nt.getInt16(8,!Ve);return yt+=Dt*60*1e3,{data:new Date(yt),size:8+2}}},{key:"parseValue",value:function(Re,Ke,Pe){if(Pe<1)throw new l("Data not enough when parse Value");var nt=new DataView(Re,Ke,Pe),yt=1,Dt=nt.getUint8(0),bt,It=!1;try{switch(Dt){case 0:bt=nt.getFloat64(1,!Ve),yt+=8;break;case 1:{var gr=nt.getUint8(1);bt=!!gr,yt+=1;break}case 2:{var kr=kt.parseString(Re,Ke+1,Pe-1);bt=kr.data,yt+=kr.size;break}case 3:{bt={};var wt=0;for((nt.getUint32(Pe-4,!Ve)&16777215)===9&&(wt=3);yt<Pe-4;){var rt=kt.parseObject(Re,Ke+yt,Pe-yt-wt);if(rt.objectEnd)break;bt[rt.data.name]=rt.data.value,yt+=rt.size}if(yt<=Pe-3){var tt=nt.getUint32(yt-1,!Ve)&16777215;tt===9&&(yt+=3)}break}case 8:{bt={},yt+=4;var Rt=0;for((nt.getUint32(Pe-4,!Ve)&16777215)===9&&(Rt=3);yt<Pe-8;){var Ft=kt.parseVariable(Re,Ke+yt,Pe-yt-Rt);if(Ft.objectEnd)break;bt[Ft.data.name]=Ft.data.value,yt+=Ft.size}if(yt<=Pe-3){var At=nt.getUint32(yt-1,!Ve)&16777215;At===9&&(yt+=3)}break}case 9:bt=void 0,yt=1,It=!0;break;case 10:{bt=[];var Wt=nt.getUint32(1,!Ve);yt+=4;for(var ot=0;ot<Wt;ot++){var Bt=kt.parseValue(Re,Ke+yt,Pe-yt);bt.push(Bt.data),yt+=Bt.size}break}case 11:{var Ar=kt.parseDate(Re,Ke+1,Pe-1);bt=Ar.data,yt+=Ar.size;break}case 12:{var rr=kt.parseString(Re,Ke+1,Pe-1);bt=rr.data,yt+=rr.size;break}default:yt=Pe,c.w("AMF","Unsupported AMF value type "+Dt)}}catch(pr){c.e("AMF",pr.toString())}return{data:bt,size:yt,objectEnd:It}}}]),kt}(),Q=ae,G=function(){function kt(vt){Object(O.a)(this,kt),this.TAG="ExpGolomb",this._buffer=vt,this._buffer_index=0,this._total_bytes=vt.byteLength,this._total_bits=vt.byteLength*8,this._current_word=0,this._current_word_bits_left=0}return Object(x.a)(kt,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var Re=this._total_bytes-this._buffer_index;if(Re<=0)throw new l("ExpGolomb: _fillCurrentWord() but no bytes available");var Ke=Math.min(4,Re),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(Re){if(Re>32)throw new t("ExpGolomb: readBits() bits exceeded max 32bits!");if(Re<=this._current_word_bits_left){var Ke=this._current_word>>>32-Re;return this._current_word<<=Re,this._current_word_bits_left-=Re,Ke}var Pe=this._current_word_bits_left?this._current_word:0;Pe=Pe>>>32-this._current_word_bits_left;var nt=Re-this._current_word_bits_left;this._fillCurrentWord();var yt=Math.min(nt,this._current_word_bits_left),Dt=this._current_word>>>32-yt;return this._current_word<<=yt,this._current_word_bits_left-=yt,Pe=Pe<<yt|Dt,Pe}},{key:"readBool",value:function(){return this.readBits(1)===1}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var Re;for(Re=0;Re<this._current_word_bits_left;Re++)if((this._current_word&2147483648>>>Re)!==0)return this._current_word<<=Re,this._current_word_bits_left-=Re,Re;return this._fillCurrentWord(),Re+this._skipLeadingZero()}},{key:"readUEG",value:function(){var Re=this._skipLeadingZero();return this.readBits(Re+1)-1}},{key:"readSEG",value:function(){var Re=this.readUEG();return Re&1?Re+1>>>1:-1*(Re>>>1)}}]),kt}(),Y=G,me=function(){function kt(){Object(O.a)(this,kt)}return Object(x.a)(kt,null,[{key:"_ebsp2rbsp",value:function(Re){for(var Ke=Re,Pe=Ke.byteLength,nt=new Uint8Array(Pe),yt=0,Dt=0;Dt<Pe;Dt++){if(Dt>=2&&(Ke[Dt]===3&&Ke[Dt-1]===0&&Ke[Dt-2]===0))continue;nt[yt]=Ke[Dt],yt++}return new Uint8Array(nt.buffer,0,yt)}},{key:"parseSPS",value:function(Re){var Ke=kt._ebsp2rbsp(Re),Pe=new Y(Ke);Pe.readByte();var nt=Pe.readByte();Pe.readByte();var yt=Pe.readByte();Pe.readUEG();var Dt=kt.getProfileString(nt),bt=kt.getLevelString(yt),It=1,gr=420,kr=[0,420,422,444],wt=8;if((nt===100||nt===110||nt===122||nt===244||nt===44||nt===83||nt===86||nt===118||nt===128||nt===138||nt===144)&&(It=Pe.readUEG(),It===3&&Pe.readBits(1),It<=3&&(gr=kr[It]),wt=Pe.readUEG()+8,Pe.readUEG(),Pe.readBits(1),Pe.readBool()))for(var rt=It!==3?8:12,tt=0;tt<rt;tt++)Pe.readBool()&&(tt<6?kt._skipScalingList(Pe,16):kt._skipScalingList(Pe,64));Pe.readUEG();var Rt=Pe.readUEG();if(Rt===0)Pe.readUEG();else if(Rt===1){Pe.readBits(1),Pe.readSEG(),Pe.readSEG();for(var Ft=Pe.readUEG(),At=0;At<Ft;At++)Pe.readSEG()}var Wt=Pe.readUEG();Pe.readBits(1);var ot=Pe.readUEG(),Bt=Pe.readUEG(),Ar=Pe.readBits(1);Ar===0&&Pe.readBits(1),Pe.readBits(1);var rr=0,pr=0,tn=0,hn=0,Mn=Pe.readBool();Mn&&(rr=Pe.readUEG(),pr=Pe.readUEG(),tn=Pe.readUEG(),hn=Pe.readUEG());var Xn=1,si=1,vi=0,xi=!0,_i=0,Qe=0,we=Pe.readBool();if(we){if(Pe.readBool()){var Ne=Pe.readByte(),Fe=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],Ye=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Ne>0&&Ne<16?(Xn=Fe[Ne-1],si=Ye[Ne-1]):Ne===255&&(Xn=Pe.readByte()<<8|Pe.readByte(),si=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 We=Pe.readBits(32),Ze=Pe.readBits(32);xi=Pe.readBool(),_i=Ze,Qe=We*2,vi=_i/Qe}}var mt=1;(Xn!==1||si!==1)&&(mt=Xn/si);var it=0,Jt=0;if(It===0)it=1,Jt=2-Ar;else{var Dr=It===3?1:2,Sr=It===1?2:1;it=Dr,Jt=Sr*(2-Ar)}var Br=(ot+1)*16,$t=(2-Ar)*((Bt+1)*16);Br-=(rr+pr)*it,$t-=(tn+hn)*Jt;var gn=Math.ceil(Br*mt);return Pe.destroy(),Pe=null,{profile_string:Dt,level_string:bt,bit_depth:wt,ref_frames:Wt,chroma_format:gr,chroma_format_string:kt.getChromaFormatString(gr),frame_rate:{fixed:xi,fps:vi,fps_den:Qe,fps_num:_i},sar_ratio:{width:Xn,height:si},codec_size:{width:Br,height:$t},present_size:{width:gn,height:$t}}}},{key:"_skipScalingList",value:function(Re,Ke){for(var Pe=8,nt=8,yt=0,Dt=0;Dt<Ke;Dt++)nt!==0&&(yt=Re.readSEG(),nt=(Pe+yt+256)%256),Pe=nt===0?Pe:nt}},{key:"getProfileString",value:function(Re){switch(Re){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(Re){return(Re/10).toFixed(1)}},{key:"getChromaFormatString",value:function(Re){switch(Re){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),kt}(),ue=me,Ce={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},Ie=Ce;function ce(kt){return kt>>>8&255|(kt&255)<<8}function Ae(kt){return(kt&4278190080)>>>24|(kt&16711680)>>>8|(kt&65280)<<8|(kt&255)<<24}function Te(kt,vt){return kt[vt]<<24|kt[vt+1]<<16|kt[vt+2]<<8|kt[vt+3]}var Ge=function(){function kt(vt,Re){Object(O.a)(this,kt),this.TAG="FLVDemuxer",this._config=Re,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=vt.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=vt.hasAudioTrack,this._hasVideo=vt.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new fe,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(x.a)(kt,[{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(Re){return Re.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(Re){this._onTrackMetadata=Re}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(Re){this._onMediaInfo=Re}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(Re){this._onMetaDataArrived=Re}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(Re){this._onScriptDataArrived=Re}},{key:"onError",get:function(){return this._onError},set:function(Re){this._onError=Re}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(Re){this._onDataAvailable=Re}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(Re){this._timestampBase=Re}},{key:"overridedDuration",get:function(){return this._duration},set:function(Re){this._durationOverrided=!0,this._duration=Re,this._mediaInfo.duration=Re}},{key:"overridedHasAudio",set:function(Re){this._hasAudioFlagOverrided=!0,this._hasAudio=Re,this._mediaInfo.hasAudio=Re}},{key:"overridedHasVideo",set:function(Re){this._hasVideoFlagOverrided=!0,this._hasVideo=Re,this._mediaInfo.hasVideo=Re}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new fe}},{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(Re,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,nt=this._littleEndian;if(Ke===0)if(Re.byteLength>13){var yt=kt.probe(Re);Pe=yt.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,Ke+Pe!==this._dataOffset&&c.w(this.TAG,"First time parsing but chunk byteStart invalid!");var Dt=new DataView(Re,Pe),bt=Dt.getUint32(0,!nt);bt!==0&&c.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Pe+=4}for(;Pe<Re.byteLength;){this._dispatch=!0;var It=new DataView(Re,Pe);if(Pe+11+4>Re.byteLength)break;var gr=It.getUint8(0),kr=It.getUint32(0,!nt)&16777215;if(Pe+11+kr+4>Re.byteLength)break;if(gr!==8&&gr!==9&&gr!==18){c.w(this.TAG,"Unsupported tag type ".concat(gr,", skipped")),Pe+=11+kr+4;continue}var wt=It.getUint8(4),rt=It.getUint8(5),tt=It.getUint8(6),Rt=It.getUint8(7),Ft=tt|rt<<8|wt<<16|Rt<<24,At=It.getUint32(7,!nt)&16777215;At!==0&&c.w(this.TAG,"Meet tag which has StreamID != 0!");var Wt=Pe+11;switch(gr){case 8:this._parseAudioData(Re,Wt,kr,Ft);break;case 9:this._parseVideoData(Re,Wt,kr,Ft,Ke+Pe);break;case 18:this._parseScriptData(Re,Wt,kr);break}var ot=It.getUint32(11+kr,!nt);ot!==11+kr&&c.w(this.TAG,"Invalid PrevTagSize ".concat(ot)),Pe+=11+kr+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),Pe}},{key:"_parseScriptData",value:function(Re,Ke,Pe){var nt=Q.parseScriptData(Re,Ke,Pe);if(nt.hasOwnProperty("onMetaData")){if(nt.onMetaData==null||typeof nt.onMetaData!="object"){c.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&c.w(this.TAG,"Found another onMetaData tag!"),this._metadata=nt;var yt=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},yt)),typeof yt.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=yt.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof yt.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=yt.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof yt.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=yt.audiodatarate),typeof yt.videodatarate=="number"&&(this._mediaInfo.videoDataRate=yt.videodatarate),typeof yt.width=="number"&&(this._mediaInfo.width=yt.width),typeof yt.height=="number"&&(this._mediaInfo.height=yt.height),typeof yt.duration=="number"){if(!this._durationOverrided){var Dt=Math.floor(yt.duration*this._timescale);this._duration=Dt,this._mediaInfo.duration=Dt}}else this._mediaInfo.duration=0;if(typeof yt.framerate=="number"){var bt=Math.floor(yt.framerate*1e3);if(bt>0){var It=bt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=It,this._referenceFrameRate.fps_num=bt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=It}}if(typeof yt.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var gr=yt.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(gr),yt.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=yt,c.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(nt).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},nt)))}},{key:"_parseKeyframesIndex",value:function(Re){for(var Ke=[],Pe=[],nt=1;nt<Re.times.length;nt++){var yt=this._timestampBase+Math.floor(Re.times[nt]*1e3);Ke.push(yt),Pe.push(Re.filepositions[nt])}return{times:Ke,filepositions:Pe}}},{key:"_parseAudioData",value:function(Re,Ke,Pe,nt){if(Pe<=1){c.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;var yt=this._littleEndian,Dt=new DataView(Re,Ke,Pe),bt=Dt.getUint8(0),It=bt>>>4;if(It!==2&&It!==10){this._onError(Ie.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+It);return}var gr=0,kr=(bt&12)>>>2;if(kr>=0&&kr<=4)gr=this._flvSoundRateTable[kr];else{this._onError(Ie.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+kr);return}var wt=(bt&2)>>>1,rt=bt&1,tt=this._audioMetadata,Rt=this._audioTrack;if(tt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),tt=this._audioMetadata={},tt.type="audio",tt.id=Rt.id,tt.timescale=this._timescale,tt.duration=this._duration,tt.audioSampleRate=gr,tt.channelCount=rt===0?1:2),It===10){var Ft=this._parseAACAudioData(Re,Ke+1,Pe-1);if(Ft==null)return;if(Ft.packetType===0){tt.config&&c.w(this.TAG,"Found another AudioSpecificConfig!");var At=Ft.data;tt.audioSampleRate=At.samplingRate,tt.channelCount=At.channelCount,tt.codec=At.codec,tt.originalCodec=At.originalCodec,tt.config=At.config,tt.refSampleDuration=1024/tt.audioSampleRate*tt.timescale,c.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",tt);var Wt=this._mediaInfo;Wt.audioCodec=tt.originalCodec,Wt.audioSampleRate=tt.audioSampleRate,Wt.audioChannelCount=tt.channelCount,Wt.hasVideo?Wt.videoCodec!=null&&(Wt.mimeType='video/x-flv; codecs="'+Wt.videoCodec+","+Wt.audioCodec+'"'):Wt.mimeType='video/x-flv; codecs="'+Wt.audioCodec+'"',Wt.isComplete()&&this._onMediaInfo(Wt)}else if(Ft.packetType===1){var ot=this._timestampBase+nt,Bt={unit:Ft.data,length:Ft.data.byteLength,dts:ot,pts:ot};Rt.samples.push(Bt),Rt.length+=Ft.data.length}else c.e(this.TAG,"Flv: Unsupported AAC data type ".concat(Ft.packetType))}else if(It===2){if(!tt.codec){var Ar=this._parseMP3AudioData(Re,Ke+1,Pe-1,!0);if(Ar==null)return;tt.audioSampleRate=Ar.samplingRate,tt.channelCount=Ar.channelCount,tt.codec=Ar.codec,tt.originalCodec=Ar.originalCodec,tt.refSampleDuration=1152/tt.audioSampleRate*tt.timescale,c.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",tt);var rr=this._mediaInfo;rr.audioCodec=tt.codec,rr.audioSampleRate=tt.audioSampleRate,rr.audioChannelCount=tt.channelCount,rr.audioDataRate=Ar.bitRate,rr.hasVideo?rr.videoCodec!=null&&(rr.mimeType='video/x-flv; codecs="'+rr.videoCodec+","+rr.audioCodec+'"'):rr.mimeType='video/x-flv; codecs="'+rr.audioCodec+'"',rr.isComplete()&&this._onMediaInfo(rr)}var pr=this._parseMP3AudioData(Re,Ke+1,Pe-1,!1);if(pr==null)return;var tn=this._timestampBase+nt,hn={unit:pr,length:pr.byteLength,dts:tn,pts:tn};Rt.samples.push(hn),Rt.length+=pr.length}}},{key:"_parseAACAudioData",value:function(Re,Ke,Pe){if(Pe<=1){c.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var nt={},yt=new Uint8Array(Re,Ke,Pe);return nt.packetType=yt[0],yt[0]===0?nt.data=this._parseAACAudioSpecificConfig(Re,Ke+1,Pe-1):nt.data=yt.subarray(1),nt}},{key:"_parseAACAudioSpecificConfig",value:function(Re,Ke,Pe){var nt=new Uint8Array(Re,Ke,Pe),yt=null,Dt=0,bt=0,It=null,gr=0,kr=null;if(Dt=bt=nt[0]>>>3,gr=(nt[0]&7)<<1|nt[1]>>>7,gr<0||gr>=this._mpegSamplingRates.length){this._onError(Ie.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var wt=this._mpegSamplingRates[gr],rt=(nt[1]&120)>>>3;if(rt<0||rt>=8){this._onError(Ie.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}Dt===5&&(kr=(nt[1]&7)<<1|nt[2]>>>7,It=(nt[2]&124)>>>2);var tt=self.navigator.userAgent.toLowerCase();return tt.indexOf("firefox")!==-1?gr>=6?(Dt=5,yt=new Array(4),kr=gr-3):(Dt=2,yt=new Array(2),kr=gr):tt.indexOf("android")!==-1?(Dt=2,yt=new Array(2),kr=gr):(Dt=5,kr=gr,yt=new Array(4),gr>=6?kr=gr-3:rt===1&&(Dt=2,yt=new Array(2),kr=gr)),yt[0]=Dt<<3,yt[0]|=(gr&15)>>>1,yt[1]=(gr&15)<<7,yt[1]|=(rt&15)<<3,Dt===5&&(yt[1]|=(kr&15)>>>1,yt[2]=(kr&1)<<7,yt[2]|=2<<2,yt[3]=0),{config:yt,samplingRate:wt,channelCount:rt,codec:"mp4a.40."+Dt,originalCodec:"mp4a.40."+bt}}},{key:"_parseMP3AudioData",value:function(Re,Ke,Pe,nt){if(Pe<4){c.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var yt=this._littleEndian,Dt=new Uint8Array(Re,Ke,Pe),bt=null;if(nt){if(Dt[0]!==255)return;var It=Dt[1]>>>3&3,gr=(Dt[1]&6)>>1,kr=(Dt[2]&240)>>>4,wt=(Dt[2]&12)>>>2,rt=Dt[3]>>>6&3,tt=rt!==3?2:1,Rt=0,Ft=0,At=34,Wt="mp3";switch(It){case 0:Rt=this._mpegAudioV25SampleRateTable[wt];break;case 2:Rt=this._mpegAudioV20SampleRateTable[wt];break;case 3:Rt=this._mpegAudioV10SampleRateTable[wt];break}switch(gr){case 1:At=34,kr<this._mpegAudioL3BitRateTable.length&&(Ft=this._mpegAudioL3BitRateTable[kr]);break;case 2:At=33,kr<this._mpegAudioL2BitRateTable.length&&(Ft=this._mpegAudioL2BitRateTable[kr]);break;case 3:At=32,kr<this._mpegAudioL1BitRateTable.length&&(Ft=this._mpegAudioL1BitRateTable[kr]);break}bt={bitRate:Ft,samplingRate:Rt,channelCount:tt,codec:Wt,originalCodec:Wt}}else bt=Dt;return bt}},{key:"_parseVideoData",value:function(Re,Ke,Pe,nt,yt){if(Pe<=1){c.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;var Dt=new Uint8Array(Re,Ke,Pe)[0],bt=(Dt&240)>>>4,It=Dt&15;if(It!==7){this._onError(Ie.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(It));return}this._parseAVCVideoPacket(Re,Ke+1,Pe-1,nt,yt,bt)}},{key:"_parseAVCVideoPacket",value:function(Re,Ke,Pe,nt,yt,Dt){if(Pe<4){c.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var bt=this._littleEndian,It=new DataView(Re,Ke,Pe),gr=It.getUint8(0),kr=It.getUint32(0,!bt)&16777215,wt=kr<<8>>8;if(gr===0)this._parseAVCDecoderConfigurationRecord(Re,Ke+4,Pe-4);else if(gr===1)this._parseAVCVideoData(Re,Ke+4,Pe-4,nt,yt,Dt,wt);else if(!(gr===2)){this._onError(Ie.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(gr));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(Re,Ke,Pe){if(Pe<7){c.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var nt=this._videoMetadata,yt=this._videoTrack,Dt=this._littleEndian,bt=new DataView(Re,Ke,Pe);nt?typeof nt.avcc!="undefined"&&c.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),nt=this._videoMetadata={},nt.type="video",nt.id=yt.id,nt.timescale=this._timescale,nt.duration=this._duration);var It=bt.getUint8(0),gr=bt.getUint8(1),kr=bt.getUint8(2),wt=bt.getUint8(3);if(It!==1||gr===0){this._onError(Ie.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(bt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Ie.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var rt=bt.getUint8(5)&31;if(rt===0){this._onError(Ie.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else rt>1&&c.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(rt));for(var tt=6,Rt=0;Rt<rt;Rt++){var Ft=bt.getUint16(tt,!Dt);if(tt+=2,Ft===0)continue;var At=new Uint8Array(Re,Ke+tt,Ft);tt+=Ft;var Wt=ue.parseSPS(At);if(Rt!==0)continue;nt.codecWidth=Wt.codec_size.width,nt.codecHeight=Wt.codec_size.height,nt.presentWidth=Wt.present_size.width,nt.presentHeight=Wt.present_size.height,nt.profile=Wt.profile_string,nt.level=Wt.level_string,nt.bitDepth=Wt.bit_depth,nt.chromaFormat=Wt.chroma_format,nt.sarRatio=Wt.sar_ratio,nt.frameRate=Wt.frame_rate,(Wt.frame_rate.fixed===!1||Wt.frame_rate.fps_num===0||Wt.frame_rate.fps_den===0)&&(nt.frameRate=this._referenceFrameRate);var ot=nt.frameRate.fps_den,Bt=nt.frameRate.fps_num;nt.refSampleDuration=nt.timescale*(ot/Bt);for(var Ar=At.subarray(1,4),rr="avc1.",pr=0;pr<3;pr++){var tn=Ar[pr].toString(16);tn.length<2&&(tn="0"+tn),rr+=tn}nt.codec=rr;var hn=this._mediaInfo;hn.width=nt.codecWidth,hn.height=nt.codecHeight,hn.fps=nt.frameRate.fps,hn.profile=nt.profile,hn.level=nt.level,hn.refFrames=Wt.ref_frames,hn.chromaFormat=Wt.chroma_format_string,hn.sarNum=nt.sarRatio.width,hn.sarDen=nt.sarRatio.height,hn.videoCodec=rr,hn.hasAudio?hn.audioCodec!=null&&(hn.mimeType='video/x-flv; codecs="'+hn.videoCodec+","+hn.audioCodec+'"'):hn.mimeType='video/x-flv; codecs="'+hn.videoCodec+'"',hn.isComplete()&&this._onMediaInfo(hn)}var Mn=bt.getUint8(tt);if(Mn===0){this._onError(Ie.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else Mn>1&&c.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(Mn));tt++;for(var Xn=0;Xn<Mn;Xn++){var si=bt.getUint16(tt,!Dt);if(tt+=2,si===0)continue;tt+=si}nt.avcc=new Uint8Array(Pe),nt.avcc.set(new Uint8Array(Re,Ke,Pe),0),c.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",nt)}},{key:"_parseAVCVideoData",value:function(Re,Ke,Pe,nt,yt,Dt,bt){for(var It=this._littleEndian,gr=new DataView(Re,Ke,Pe),kr=[],wt=0,rt=0,tt=this._naluLengthSize,Rt=this._timestampBase+nt,Ft=Dt===1;rt<Pe;){if(rt+4>=Pe){c.w(this.TAG,"Malformed Nalu near timestamp ".concat(Rt,", offset = ").concat(rt,", dataSize = ").concat(Pe));break}var At=gr.getUint32(rt,!It);if(tt===3&&(At>>>=8),At>Pe-tt){c.w(this.TAG,"Malformed Nalus near timestamp ".concat(Rt,", NaluSize > DataSize!"));return}var Wt=gr.getUint8(rt+tt)&31;Wt===5&&(Ft=!0);var ot=new Uint8Array(Re,Ke+rt,tt+At),Bt={type:Wt,data:ot};kr.push(Bt),wt+=ot.byteLength,rt+=tt+At}if(kr.length){var Ar=this._videoTrack,rr={units:kr,length:wt,isKeyframe:Ft,dts:Rt,cts:bt,pts:Rt+bt};Ft&&(rr.fileposition=yt),Ar.samples.push(rr),Ar.length+=wt}}}],[{key:"probe",value:function(Re){var Ke=new Uint8Array(Re),Pe={match:!1};if(Ke[0]!==70||Ke[1]!==76||Ke[2]!==86||Ke[3]!==1)return Pe;var nt=(Ke[4]&4)>>>2!==0,yt=(Ke[4]&1)!==0,Dt=Te(Ke,5);return Dt<9?Pe:{match:!0,consumed:Dt,dataOffset:Dt,hasAudioTrack:nt,hasVideoTrack:yt}}}]),kt}(),gt=Ge,qe=function(){function kt(){Object(O.a)(this,kt)}return Object(x.a)(kt,null,[{key:"init",value:function(){kt.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 Re in kt.types)kt.types.hasOwnProperty(Re)&&(kt.types[Re]=[Re.charCodeAt(0),Re.charCodeAt(1),Re.charCodeAt(2),Re.charCodeAt(3)]);var Ke=kt.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(Re){for(var Ke=8,Pe=null,nt=Array.prototype.slice.call(arguments,1),yt=nt.length,Dt=0;Dt<yt;Dt++)Ke+=nt[Dt].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(Re,4);for(var bt=8,It=0;It<yt;It++)Pe.set(nt[It],bt),bt+=nt[It].byteLength;return Pe}},{key:"generateInitSegment",value:function(Re){var Ke=kt.box(kt.types.ftyp,kt.constants.FTYP),Pe=kt.moov(Re),nt=new Uint8Array(Ke.byteLength+Pe.byteLength);return nt.set(Ke,0),nt.set(Pe,Ke.byteLength),nt}},{key:"moov",value:function(Re){var Ke=kt.mvhd(Re.timescale,Re.duration),Pe=kt.trak(Re),nt=kt.mvex(Re);return kt.box(kt.types.moov,Ke,Pe,nt)}},{key:"mvhd",value:function(Re,Ke){return kt.box(kt.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255,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(Re){return kt.box(kt.types.trak,kt.tkhd(Re),kt.mdia(Re))}},{key:"tkhd",value:function(Re){var Ke=Re.id,Pe=Re.duration,nt=Re.presentWidth,yt=Re.presentHeight;return kt.box(kt.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,nt>>>8&255,nt&255,0,0,yt>>>8&255,yt&255,0,0]))}},{key:"mdia",value:function(Re){return kt.box(kt.types.mdia,kt.mdhd(Re),kt.hdlr(Re),kt.minf(Re))}},{key:"mdhd",value:function(Re){var Ke=Re.timescale,Pe=Re.duration;return kt.box(kt.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(Re){var Ke=null;return Re.type==="audio"?Ke=kt.constants.HDLR_AUDIO:Ke=kt.constants.HDLR_VIDEO,kt.box(kt.types.hdlr,Ke)}},{key:"minf",value:function(Re){var Ke=null;return Re.type==="audio"?Ke=kt.box(kt.types.smhd,kt.constants.SMHD):Ke=kt.box(kt.types.vmhd,kt.constants.VMHD),kt.box(kt.types.minf,Ke,kt.dinf(),kt.stbl(Re))}},{key:"dinf",value:function(){var Re=kt.box(kt.types.dinf,kt.box(kt.types.dref,kt.constants.DREF));return Re}},{key:"stbl",value:function(Re){var Ke=kt.box(kt.types.stbl,kt.stsd(Re),kt.box(kt.types.stts,kt.constants.STTS),kt.box(kt.types.stsc,kt.constants.STSC),kt.box(kt.types.stsz,kt.constants.STSZ),kt.box(kt.types.stco,kt.constants.STCO));return Ke}},{key:"stsd",value:function(Re){return Re.type==="audio"?Re.codec==="mp3"?kt.box(kt.types.stsd,kt.constants.STSD_PREFIX,kt.mp3(Re)):kt.box(kt.types.stsd,kt.constants.STSD_PREFIX,kt.mp4a(Re)):kt.box(kt.types.stsd,kt.constants.STSD_PREFIX,kt.avc1(Re))}},{key:"mp3",value:function(Re){var Ke=Re.channelCount,Pe=Re.audioSampleRate,nt=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 kt.box(kt.types[".mp3"],nt)}},{key:"mp4a",value:function(Re){var Ke=Re.channelCount,Pe=Re.audioSampleRate,nt=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 kt.box(kt.types.mp4a,nt,kt.esds(Re))}},{key:"esds",value:function(Re){var Ke=Re.config||[],Pe=Ke.length,nt=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 kt.box(kt.types.esds,nt)}},{key:"avc1",value:function(Re){var Ke=Re.avcc,Pe=Re.codecWidth,nt=Re.codecHeight,yt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,Pe>>>8&255,Pe&255,nt>>>8&255,nt&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return kt.box(kt.types.avc1,yt,kt.box(kt.types.avcC,Ke))}},{key:"mvex",value:function(Re){return kt.box(kt.types.mvex,kt.trex(Re))}},{key:"trex",value:function(Re){var Ke=Re.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 kt.box(kt.types.trex,Pe)}},{key:"moof",value:function(Re,Ke){return kt.box(kt.types.moof,kt.mfhd(Re.sequenceNumber),kt.traf(Re,Ke))}},{key:"mfhd",value:function(Re){var Ke=new Uint8Array([0,0,0,0,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255]);return kt.box(kt.types.mfhd,Ke)}},{key:"traf",value:function(Re,Ke){var Pe=Re.id,nt=kt.box(kt.types.tfhd,new Uint8Array([0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255])),yt=kt.box(kt.types.tfdt,new Uint8Array([0,0,0,0,Ke>>>24&255,Ke>>>16&255,Ke>>>8&255,Ke&255])),Dt=kt.sdtp(Re),bt=kt.trun(Re,Dt.byteLength+16+16+8+16+8+8);return kt.box(kt.types.traf,nt,yt,bt,Dt)}},{key:"sdtp",value:function(Re){for(var Ke=Re.samples||[],Pe=Ke.length,nt=new Uint8Array(4+Pe),yt=0;yt<Pe;yt++){var Dt=Ke[yt].flags;nt[yt+4]=Dt.isLeading<<6|Dt.dependsOn<<4|Dt.isDependedOn<<2|Dt.hasRedundancy}return kt.box(kt.types.sdtp,nt)}},{key:"trun",value:function(Re,Ke){var Pe=Re.samples||[],nt=Pe.length,yt=12+16*nt,Dt=new Uint8Array(yt);Ke+=8+yt,Dt.set([0,0,15,1,nt>>>24&255,nt>>>16&255,nt>>>8&255,nt&255,Ke>>>24&255,Ke>>>16&255,Ke>>>8&255,Ke&255],0);for(var bt=0;bt<nt;bt++){var It=Pe[bt].duration,gr=Pe[bt].size,kr=Pe[bt].flags,wt=Pe[bt].cts;Dt.set([It>>>24&255,It>>>16&255,It>>>8&255,It&255,gr>>>24&255,gr>>>16&255,gr>>>8&255,gr&255,kr.isLeading<<2|kr.dependsOn,kr.isDependedOn<<6|kr.hasRedundancy<<4|kr.isNonSync,0,0,wt>>>24&255,wt>>>16&255,wt>>>8&255,wt&255],12+16*bt)}return kt.box(kt.types.trun,Dt)}},{key:"mdat",value:function(Re){return kt.box(kt.types.mdat,Re)}}]),kt}();qe.init();var Le=qe,Ot=function(){function kt(){Object(O.a)(this,kt)}return Object(x.a)(kt,null,[{key:"getSilentFrame",value:function(Re,Ke){if(Re==="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}}]),kt}(),$e=Ot,xt=Object(x.a)(function kt(vt,Re,Ke,Pe,nt){Object(O.a)(this,kt),this.dts=vt,this.pts=Re,this.duration=Ke,this.originalDts=Pe,this.isSyncPoint=nt,this.fileposition=null}),Ht=function(){function kt(){Object(O.a)(this,kt),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(x.a)(kt,[{key:"appendSyncPoint",value:function(Re){Re.isSyncPoint=!0,this.syncPoints.push(Re)}}]),kt}(),tr=function(){function kt(){Object(O.a)(this,kt),this._list=[]}return Object(x.a)(kt,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(Re){var Ke=this._list;if(Re.length===0)return;Ke.length>0&&Re[0].originalDts<Ke[Ke.length-1].originalDts&&this.clear(),Array.prototype.push.apply(Ke,Re)}},{key:"getLastSyncPointBeforeDts",value:function(Re){if(this._list.length==0)return null;var Ke=this._list,Pe=0,nt=Ke.length-1,yt=0,Dt=0,bt=nt;for(Re<Ke[0].dts&&(Pe=0,Dt=bt+1);Dt<=bt;)if(yt=Dt+Math.floor((bt-Dt)/2),yt===nt||Re>=Ke[yt].dts&&Re<Ke[yt+1].dts){Pe=yt;break}else Ke[yt].dts<Re?Dt=yt+1:bt=yt-1;return this._list[Pe]}}]),kt}(),Mt=function(){function kt(vt){Object(O.a)(this,kt),this._type=vt,this._list=[],this._lastAppendLocation=-1}return Object(x.a)(kt,[{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(Re){var Ke=this._list;if(Ke.length===0)return-2;var Pe=Ke.length-1,nt=0,yt=0,Dt=Pe,bt=0;if(Re<Ke[0].originalBeginDts)return bt=-1,bt;for(;yt<=Dt;)if(nt=yt+Math.floor((Dt-yt)/2),nt===Pe||Re>Ke[nt].lastSample.originalDts&&Re<Ke[nt+1].originalBeginDts){bt=nt;break}else Ke[nt].originalBeginDts<Re?yt=nt+1:Dt=nt-1;return bt}},{key:"_searchNearestSegmentAfter",value:function(Re){return this._searchNearestSegmentBefore(Re)+1}},{key:"append",value:function(Re){var Ke=this._list,Pe=Re,nt=this._lastAppendLocation,yt=0;nt!==-1&&nt<Ke.length&&Pe.originalBeginDts>=Ke[nt].lastSample.originalDts&&(nt===Ke.length-1||nt<Ke.length-1&&Pe.originalBeginDts<Ke[nt+1].originalBeginDts)?yt=nt+1:Ke.length>0&&(yt=this._searchNearestSegmentBefore(Pe.originalBeginDts)+1),this._lastAppendLocation=yt,this._list.splice(yt,0,Pe)}},{key:"getLastSegmentBefore",value:function(Re){var Ke=this._searchNearestSegmentBefore(Re);return Ke>=0?this._list[Ke]:null}},{key:"getLastSampleBefore",value:function(Re){var Ke=this.getLastSegmentBefore(Re);return Ke!=null?Ke.lastSample:null}},{key:"getLastSyncPointBefore",value:function(Re){for(var Ke=this._searchNearestSegmentBefore(Re),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}}]),kt}(),Tt=function(){function kt(vt){Object(O.a)(this,kt),this.TAG="MP4Remuxer",this._config=vt,this._isLive=vt.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=Infinity,this._videoDtsBase=Infinity,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Mt("audio"),this._videoSegmentInfoList=new Mt("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(E.chrome&&(E.version.major<50||E.version.major===50&&E.version.build<2661)),this._fillSilentAfterSeek=E.msedge||E.msie,this._mp3UseMpegAudio=!E.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(x.a)(kt,[{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(Re){return Re.onDataAvailable=this.remux.bind(this),Re.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(Re){this._onInitSegment=Re}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(Re){this._onMediaSegment=Re}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(Re){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(Re,Ke){if(!this._onMediaSegment)throw new l("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(Re,Ke),this._remuxVideo(Ke),this._remuxAudio(Re)}},{key:"_onTrackMetadataReceived",value:function(Re,Ke){var Pe=null,nt="mp4",yt=Ke.codec;if(Re==="audio")this._audioMeta=Ke,Ke.codec==="mp3"&&this._mp3UseMpegAudio?(nt="mpeg",yt="",Pe=new Uint8Array):Pe=Le.generateInitSegment(Ke);else if(Re==="video")this._videoMeta=Ke,Pe=Le.generateInitSegment(Ke);else return;if(!this._onInitSegment)throw new l("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(Re,{type:Re,data:Pe.buffer,codec:yt,container:"".concat(Re,"/").concat(nt),mediaDuration:Ke.duration})}},{key:"_calculateDtsBase",value:function(Re,Ke){if(this._dtsBaseInited)return;Re.samples&&Re.samples.length&&(this._audioDtsBase=Re.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 Re=this._videoStashedLastSample,Ke=this._audioStashedLastSample,Pe={type:"video",id:1,sequenceNumber:0,samples:[],length:0};Re!=null&&(Pe.samples.push(Re),Pe.length=Re.length);var nt={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};Ke!=null&&(nt.samples.push(Ke),nt.length=Ke.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Pe,!0),this._remuxAudio(nt,!0)}},{key:"_remuxAudio",value:function(Re,Ke){if(this._audioMeta==null)return;var Pe=Re,nt=Pe.samples,yt=void 0,Dt=-1,bt=-1,It=-1,gr=this._audioMeta.refSampleDuration,kr=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,wt=this._dtsBaseInited&&this._audioNextDts===void 0,rt=!1;if(!nt||nt.length===0)return;if(nt.length===1&&!Ke)return;var tt=0,Rt=null,Ft=0;kr?(tt=0,Ft=Pe.length):(tt=8,Ft=8+Pe.length);var At=null;if(nt.length>1&&(At=nt.pop(),Ft-=At.length),this._audioStashedLastSample!=null){var Wt=this._audioStashedLastSample;this._audioStashedLastSample=null,nt.unshift(Wt),Ft+=Wt.length}At!=null&&(this._audioStashedLastSample=At);var ot=nt[0].dts-this._dtsBase;if(this._audioNextDts)yt=ot-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())yt=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(rt=!0));else{var Bt=this._audioSegmentInfoList.getLastSampleBefore(ot);if(Bt!=null){var Ar=ot-(Bt.originalDts+Bt.duration);Ar<=3&&(Ar=0);var rr=Bt.dts+Bt.duration+Ar;yt=ot-rr}else yt=0}if(rt){var pr=ot-yt,tn=this._videoSegmentInfoList.getLastSegmentBefore(ot);if(tn!=null&&tn.beginDts<pr){var hn=$e.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(hn){var Mn=tn.beginDts,Xn=pr-tn.beginDts;c.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(Mn,", duration: ").concat(Xn)),nt.unshift({unit:hn,dts:Mn,pts:Mn}),Ft+=hn.byteLength}}else rt=!1}for(var si=[],vi=0;vi<nt.length;vi++){var xi=nt[vi],_i=xi.unit,Qe=xi.dts-this._dtsBase,we=Qe-yt;Dt===-1&&(Dt=we);var Ne=0;if(vi!==nt.length-1){var Fe=nt[vi+1].dts-this._dtsBase-yt;Ne=Fe-we}else if(At!=null){var Ye=At.dts-this._dtsBase-yt;Ne=Ye-we}else si.length>=1?Ne=si[si.length-1].duration:Ne=Math.floor(gr);var We=!1,Ze=null;if(Ne>gr*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!E.safari){We=!0;var mt=Math.abs(Ne-gr),it=Math.ceil(mt/gr),Jt=we+gr;c.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
|
`+"dts: ".concat(we+Ne," ms, expected: ").concat(we+Math.round(gr)," ms, ")+"delta: ".concat(Math.round(mt)," ms, generate: ").concat(it," frames"));var Dr=$e.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Dr==null&&(c.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),Dr=_i),Ze=[];for(var Sr=0;Sr<it;Sr++){var Br=Math.round(Jt);if(Ze.length>0){var $t=Ze[Ze.length-1];$t.duration=Br-$t.dts}var gn={dts:Br,pts:Br,cts:0,unit:Dr,size:Dr.byteLength,duration:0,originalDts:Qe,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Ze.push(gn),Ft+=gn.size,Jt+=gr}var or=Ze[Ze.length-1];or.duration=we+Ne-or.dts,Ne=Math.round(gr)}si.push({dts:we,pts:we,cts:0,unit:xi.unit,size:xi.unit.byteLength,duration:Ne,originalDts:Qe,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),We&&si.push.apply(si,Ze)}kr?Rt=new Uint8Array(Ft):(Rt=new Uint8Array(Ft),Rt[0]=Ft>>>24&255,Rt[1]=Ft>>>16&255,Rt[2]=Ft>>>8&255,Rt[3]=Ft&255,Rt.set(Le.types.mdat,4));for(var ln=0;ln<si.length;ln++){var an=si[ln].unit;Rt.set(an,tt),tt+=an.byteLength}var Rr=si[si.length-1];bt=Rr.dts+Rr.duration,this._audioNextDts=bt;var On=new Ht;On.beginDts=Dt,On.endDts=bt,On.beginPts=Dt,On.endPts=bt,On.originalBeginDts=si[0].originalDts,On.originalEndDts=Rr.originalDts+Rr.duration,On.firstSample=new xt(si[0].dts,si[0].pts,si[0].duration,si[0].originalDts,!1),On.lastSample=new xt(Rr.dts,Rr.pts,Rr.duration,Rr.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(On),Pe.samples=si,Pe.sequenceNumber++;var ci=null;kr?ci=new Uint8Array:ci=Le.moof(Pe,Dt),Pe.samples=[],Pe.length=0;var Ui={type:"audio",data:this._mergeBoxes(ci,Rt).buffer,sampleCount:si.length,info:On};kr&&wt&&(Ui.timestampOffset=Dt),this._onMediaSegment("audio",Ui)}},{key:"_remuxVideo",value:function(Re,Ke){if(this._videoMeta==null)return;var Pe=Re,nt=Pe.samples,yt=void 0,Dt=-1,bt=-1,It=-1,gr=-1;if(!nt||nt.length===0)return;if(nt.length===1&&!Ke)return;var kr=8,wt=null,rt=8+Re.length,tt=null;if(nt.length>1&&(tt=nt.pop(),rt-=tt.length),this._videoStashedLastSample!=null){var Rt=this._videoStashedLastSample;this._videoStashedLastSample=null,nt.unshift(Rt),rt+=Rt.length}tt!=null&&(this._videoStashedLastSample=tt);var Ft=nt[0].dts-this._dtsBase;if(this._videoNextDts)yt=Ft-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())yt=0;else{var At=this._videoSegmentInfoList.getLastSampleBefore(Ft);if(At!=null){var Wt=Ft-(At.originalDts+At.duration);Wt<=3&&(Wt=0);var ot=At.dts+At.duration+Wt;yt=Ft-ot}else yt=0}for(var Bt=new Ht,Ar=[],rr=0;rr<nt.length;rr++){var pr=nt[rr],tn=pr.dts-this._dtsBase,hn=pr.isKeyframe,Mn=tn-yt,Xn=pr.cts,si=Mn+Xn;Dt===-1&&(Dt=Mn,It=si);var vi=0;if(rr!==nt.length-1){var xi=nt[rr+1].dts-this._dtsBase-yt;vi=xi-Mn}else if(tt!=null){var _i=tt.dts-this._dtsBase-yt;vi=_i-Mn}else Ar.length>=1?vi=Ar[Ar.length-1].duration:vi=Math.floor(this._videoMeta.refSampleDuration);if(hn){var Qe=new xt(Mn,si,vi,pr.dts,!0);Qe.fileposition=pr.fileposition,Bt.appendSyncPoint(Qe)}Ar.push({dts:Mn,pts:si,cts:Xn,units:pr.units,size:pr.length,isKeyframe:hn,duration:vi,originalDts:tn,flags:{isLeading:0,dependsOn:hn?2:1,isDependedOn:hn?1:0,hasRedundancy:0,isNonSync:hn?0:1}})}wt=new Uint8Array(rt),wt[0]=rt>>>24&255,wt[1]=rt>>>16&255,wt[2]=rt>>>8&255,wt[3]=rt&255,wt.set(Le.types.mdat,4);for(var we=0;we<Ar.length;we++)for(var Ne=Ar[we].units;Ne.length;){var Fe=Ne.shift(),Ye=Fe.data;wt.set(Ye,kr),kr+=Ye.byteLength}var We=Ar[Ar.length-1];if(bt=We.dts+We.duration,gr=We.pts+We.duration,this._videoNextDts=bt,Bt.beginDts=Dt,Bt.endDts=bt,Bt.beginPts=It,Bt.endPts=gr,Bt.originalBeginDts=Ar[0].originalDts,Bt.originalEndDts=We.originalDts+We.duration,Bt.firstSample=new xt(Ar[0].dts,Ar[0].pts,Ar[0].duration,Ar[0].originalDts,Ar[0].isKeyframe),Bt.lastSample=new xt(We.dts,We.pts,We.duration,We.originalDts,We.isKeyframe),this._isLive||this._videoSegmentInfoList.append(Bt),Pe.samples=Ar,Pe.sequenceNumber++,this._forceFirstIDR){var Ze=Ar[0].flags;Ze.dependsOn=2,Ze.isNonSync=0}var mt=Le.moof(Pe,Dt);Pe.samples=[],Pe.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(mt,wt).buffer,sampleCount:Ar.length,info:Bt})}},{key:"_mergeBoxes",value:function(Re,Ke){var Pe=new Uint8Array(Re.byteLength+Ke.byteLength);return Pe.set(Re,0),Pe.set(Ke,Re.byteLength),Pe}}]),kt}(),Xe=Tt,oe={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"},X=oe,Be=function(){function kt(vt,Re){Object(O.a)(this,kt),this.TAG="TransmuxingController",this._emitter=new g.a,this._config=Re,vt.segments||(vt.segments=[{duration:vt.duration,filesize:vt.filesize,url:vt.url}]),typeof vt.cors!="boolean"&&(vt.cors=!0),typeof vt.withCredentials!="boolean"&&(vt.withCredentials=!1),this._mediaDataSource=vt,this._currentSegmentIndex=0;var Ke=0;this._mediaDataSource.segments.forEach(function(Pe){Pe.timestampBase=Ke,Ke+=Pe.duration,Pe.cors=vt.cors,Pe.withCredentials=vt.withCredentials,Re.referrerPolicy&&(Pe.referrerPolicy=Re.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(x.a)(kt,[{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(Re,Ke){this._emitter.addListener(Re,Ke)}},{key:"off",value:function(Re,Ke){this._emitter.removeListener(Re,Ke)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(Re,Ke){this._currentSegmentIndex=Re;var Pe=this._mediaDataSource.segments[Re],nt=this._ioctl=new V(Pe,this._config,Re);nt.onError=this._onIOException.bind(this),nt.onSeeked=this._onIOSeeked.bind(this),nt.onComplete=this._onIOComplete.bind(this),nt.onRedirect=this._onIORedirect.bind(this),nt.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),Ke?this._demuxer.bindDataSource(this._ioctl):nt.onDataArrival=this._onInitChunkArrival.bind(this),nt.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(Re){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var Ke=this._searchSegmentIndexContains(Re);if(Ke===this._currentSegmentIndex){var Pe=this._mediaInfo.segments[Ke];if(Pe==null)this._pendingSeekTime=Re;else{var nt=Pe.getNearestKeyframe(Re);this._remuxer.seek(nt.milliseconds),this._ioctl.seek(nt.fileposition),this._pendingResolveSeekPoint=nt.milliseconds}}else{var yt=this._mediaInfo.segments[Ke];if(yt==null)this._pendingSeekTime=Re,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(Ke);else{var Dt=yt.getNearestKeyframe(Re);this._internalAbort(),this._remuxer.seek(Re),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[Ke].timestampBase,this._loadSegment(Ke,Dt.fileposition),this._pendingResolveSeekPoint=Dt.milliseconds,this._reportSegmentMediaInfo(Ke)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(Re){for(var Ke=this._mediaDataSource.segments,Pe=Ke.length-1,nt=0;nt<Ke.length;nt++)if(Re<Ke[nt].timestampBase){Pe=nt-1;break}return Pe}},{key:"_onInitChunkArrival",value:function(Re,Ke){var Pe=this,nt=null,yt=0;if(Ke>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,yt=this._demuxer.parseChunks(Re,Ke);else if((nt=gt.probe(Re)).match){this._demuxer=new gt(nt,this._config),this._remuxer||(this._remuxer=new Xe(this._config));var Dt=this._mediaDataSource;Dt.duration!=null&&!isNaN(Dt.duration)&&(this._demuxer.overridedDuration=Dt.duration),typeof Dt.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Dt.hasAudio),typeof Dt.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Dt.hasVideo),this._demuxer.timestampBase=Dt.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),yt=this._demuxer.parseChunks(Re,Ke)}else nt=null,c.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){Pe._internalAbort()}),this._emitter.emit(X.DEMUX_ERROR,Ie.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),yt=0;return yt}},{key:"_onMediaInfo",value:function(Re){var Ke=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},Re),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,fe.prototype));var Pe=Object.assign({},Re);Object.setPrototypeOf(Pe,fe.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=Pe,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var nt=Ke._pendingSeekTime;Ke._pendingSeekTime=null,Ke.seek(nt)})}},{key:"_onMetaDataArrived",value:function(Re){this._emitter.emit(X.METADATA_ARRIVED,Re)}},{key:"_onScriptDataArrived",value:function(Re){this._emitter.emit(X.SCRIPTDATA_ARRIVED,Re)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(Re){var Ke=Re,Pe=Ke+1;Pe<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Pe)):(this._remuxer.flushStashedSamples(),this._emitter.emit(X.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(Re){var Ke=this._ioctl.extraData;this._mediaDataSource.segments[Ke].redirectedURL=Re}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(X.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(Re,Ke){c.e(this.TAG,"IOException: type = ".concat(Re,", code = ").concat(Ke.code,", msg = ").concat(Ke.msg)),this._emitter.emit(X.IO_ERROR,Re,Ke),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(Re,Ke){c.e(this.TAG,"DemuxException: type = ".concat(Re,", info = ").concat(Ke)),this._emitter.emit(X.DEMUX_ERROR,Re,Ke)}},{key:"_onRemuxerInitSegmentArrival",value:function(Re,Ke){this._emitter.emit(X.INIT_SEGMENT,Re,Ke)}},{key:"_onRemuxerMediaSegmentArrival",value:function(Re,Ke){if(this._pendingSeekTime!=null)return;if(this._emitter.emit(X.MEDIA_SEGMENT,Re,Ke),this._pendingResolveSeekPoint!=null&&Re==="video"){var Pe=Ke.info.syncPoints,nt=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,E.safari&&Pe.length>0&&Pe[0].originalDts===nt&&(nt=Pe[0].pts),this._emitter.emit(X.RECOMMEND_SEEKPOINT,nt)}}},{key:"_enableStatisticsReporter",value:function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(Re){var Ke=this._mediaInfo.segments[Re],Pe=Object.assign({},Ke);Pe.duration=this._mediaInfo.duration,Pe.segmentCount=this._mediaInfo.segmentCount,delete Pe.segments,delete Pe.keyframesIndex,this._emitter.emit(X.MEDIA_INFO,Pe)}},{key:"_reportStatisticsInfo",value:function(){var Re={};Re.url=this._ioctl.currentURL,Re.hasRedirect=this._ioctl.hasRedirect,Re.hasRedirect&&(Re.redirectedURL=this._ioctl.currentRedirectedURL),Re.speed=this._ioctl.currentSpeed,Re.loaderType=this._ioctl.loaderType,Re.currentSegmentIndex=this._currentSegmentIndex,Re.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(X.STATISTICS_INFO,Re)}}]),kt}(),Ee=Be,ee=function(vt){var Re="TransmuxingWorker",Ke=null,Pe=Ft.bind(this);A.install(),vt.addEventListener("message",function(At){switch(At.data.cmd){case"init":Ke=new Ee(At.data.param[0],At.data.param[1]),Ke.on(X.IO_ERROR,rt.bind(this)),Ke.on(X.DEMUX_ERROR,tt.bind(this)),Ke.on(X.INIT_SEGMENT,nt.bind(this)),Ke.on(X.MEDIA_SEGMENT,yt.bind(this)),Ke.on(X.LOADING_COMPLETE,Dt.bind(this)),Ke.on(X.RECOVERED_EARLY_EOF,bt.bind(this)),Ke.on(X.MEDIA_INFO,It.bind(this)),Ke.on(X.METADATA_ARRIVED,gr.bind(this)),Ke.on(X.SCRIPTDATA_ARRIVED,kr.bind(this)),Ke.on(X.STATISTICS_INFO,wt.bind(this)),Ke.on(X.RECOMMEND_SEEKPOINT,Rt.bind(this));break;case"destroy":Ke&&(Ke.destroy(),Ke=null),vt.postMessage({msg:"destroyed"});break;case"start":Ke.start();break;case"stop":Ke.stop();break;case"seek":Ke.seek(At.data.param);break;case"pause":Ke.pause();break;case"resume":Ke.resume();break;case"logging_config":{var Wt=At.data.param;_e.applyConfig(Wt),Wt.enableCallback===!0?_e.addLogListener(Pe):_e.removeLogListener(Pe);break}}});function nt(At,Wt){var ot={msg:X.INIT_SEGMENT,data:{type:At,data:Wt}};vt.postMessage(ot,[Wt.data])}function yt(At,Wt){var ot={msg:X.MEDIA_SEGMENT,data:{type:At,data:Wt}};vt.postMessage(ot,[Wt.data])}function Dt(){var At={msg:X.LOADING_COMPLETE};vt.postMessage(At)}function bt(){var At={msg:X.RECOVERED_EARLY_EOF};vt.postMessage(At)}function It(At){var Wt={msg:X.MEDIA_INFO,data:At};vt.postMessage(Wt)}function gr(At){var Wt={msg:X.METADATA_ARRIVED,data:At};vt.postMessage(Wt)}function kr(At){var Wt={msg:X.SCRIPTDATA_ARRIVED,data:At};vt.postMessage(Wt)}function wt(At){var Wt={msg:X.STATISTICS_INFO,data:At};vt.postMessage(Wt)}function rt(At,Wt){vt.postMessage({msg:X.IO_ERROR,data:{type:At,info:Wt}})}function tt(At,Wt){vt.postMessage({msg:X.DEMUX_ERROR,data:{type:At,info:Wt}})}function Rt(At){vt.postMessage({msg:X.RECOMMEND_SEEKPOINT,data:At})}function Ft(At,Wt){vt.postMessage({msg:"logcat_callback",data:{type:At,logcat:Wt}})}},lt=ee,Ct=function(){function kt(vt,Re){if(Object(O.a)(this,kt),this.TAG="Transmuxer",this._emitter=new g.a,Re.enableWorker&&typeof Worker!="undefined")try{var Ke=d("0r65");this._worker=Ke(lt),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[vt,Re]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},_e.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:_e.getConfig()})}catch(nt){c.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Ee(vt,Re)}else this._controller=new Ee(vt,Re);if(this._controller){var Pe=this._controller;Pe.on(X.IO_ERROR,this._onIOError.bind(this)),Pe.on(X.DEMUX_ERROR,this._onDemuxError.bind(this)),Pe.on(X.INIT_SEGMENT,this._onInitSegment.bind(this)),Pe.on(X.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Pe.on(X.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Pe.on(X.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Pe.on(X.MEDIA_INFO,this._onMediaInfo.bind(this)),Pe.on(X.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Pe.on(X.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Pe.on(X.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Pe.on(X.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(x.a)(kt,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),_e.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Re,Ke){this._emitter.addListener(Re,Ke)}},{key:"off",value:function(Re,Ke){this._emitter.removeListener(Re,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(Re){this._worker?this._worker.postMessage({cmd:"seek",param:Re}):this._controller.seek(Re)}},{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(Re,Ke){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(X.INIT_SEGMENT,Re,Ke)})}},{key:"_onMediaSegment",value:function(Re,Ke){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(X.MEDIA_SEGMENT,Re,Ke)})}},{key:"_onLoadingComplete",value:function(){var Re=this;Promise.resolve().then(function(){Re._emitter.emit(X.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var Re=this;Promise.resolve().then(function(){Re._emitter.emit(X.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(Re){var Ke=this;Promise.resolve().then(function(){Ke._emitter.emit(X.MEDIA_INFO,Re)})}},{key:"_onMetaDataArrived",value:function(Re){var Ke=this;Promise.resolve().then(function(){Ke._emitter.emit(X.METADATA_ARRIVED,Re)})}},{key:"_onScriptDataArrived",value:function(Re){var Ke=this;Promise.resolve().then(function(){Ke._emitter.emit(X.SCRIPTDATA_ARRIVED,Re)})}},{key:"_onStatisticsInfo",value:function(Re){var Ke=this;Promise.resolve().then(function(){Ke._emitter.emit(X.STATISTICS_INFO,Re)})}},{key:"_onIOError",value:function(Re,Ke){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(X.IO_ERROR,Re,Ke)})}},{key:"_onDemuxError",value:function(Re,Ke){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(X.DEMUX_ERROR,Re,Ke)})}},{key:"_onRecommendSeekpoint",value:function(Re){var Ke=this;Promise.resolve().then(function(){Ke._emitter.emit(X.RECOMMEND_SEEKPOINT,Re)})}},{key:"_onLoggingConfigChanged",value:function(Re){this._worker&&this._worker.postMessage({cmd:"logging_config",param:Re})}},{key:"_onWorkerMessage",value:function(Re){var Ke=Re.data,Pe=Ke.data;if(Ke.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(Ke.msg){case X.INIT_SEGMENT:case X.MEDIA_SEGMENT:this._emitter.emit(Ke.msg,Pe.type,Pe.data);break;case X.LOADING_COMPLETE:case X.RECOVERED_EARLY_EOF:this._emitter.emit(Ke.msg);break;case X.MEDIA_INFO:Object.setPrototypeOf(Pe,fe.prototype),this._emitter.emit(Ke.msg,Pe);break;case X.METADATA_ARRIVED:case X.SCRIPTDATA_ARRIVED:case X.STATISTICS_INFO:this._emitter.emit(Ke.msg,Pe);break;case X.IO_ERROR:case X.DEMUX_ERROR:this._emitter.emit(Ke.msg,Pe.type,Pe.info);break;case X.RECOMMEND_SEEKPOINT:this._emitter.emit(Ke.msg,Pe);break;case"logcat_callback":c.emitter.emit("log",Pe.type,Pe.logcat);break;default:break}}}]),kt}(),dt=Ct,_t={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},ir=_t,$r=function(){function kt(vt){Object(O.a)(this,kt),this.TAG="MSEController",this._config=vt,this._emitter=new g.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 tr}return Object(x.a)(kt,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Re,Ke){this._emitter.addListener(Re,Ke)}},{key:"off",value:function(Re,Ke){this._emitter.removeListener(Re,Ke)}},{key:"attachMediaElement",value:function(Re){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=Re,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),Re.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var Re=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 nt=this._sourceBuffers[Ke];if(nt){if(Re.readyState!=="closed"){try{Re.removeSourceBuffer(nt)}catch(yt){c.e(this.TAG,yt.message)}nt.removeEventListener("error",this.e.onSourceBufferError),nt.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[Ke]=null,this._sourceBuffers[Ke]=null}}if(Re.readyState==="open")try{Re.endOfStream()}catch(yt){c.e(this.TAG,yt.message)}Re.removeEventListener("sourceopen",this.e.onSourceOpen),Re.removeEventListener("sourceended",this.e.onSourceEnded),Re.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(Re,Ke){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(Re),this._pendingSegments[Re.type].push(Re);return}var Pe=Re,nt="".concat(Pe.container);Pe.codec&&Pe.codec.length>0&&(nt+=";codecs=".concat(Pe.codec));var yt=!1;if(c.v(this.TAG,"Received Initialization Segment, mimeType: "+nt),this._lastInitSegments[Pe.type]=Pe,nt!==this._mimeTypes[Pe.type]){if(this._mimeTypes[Pe.type])c.v(this.TAG,"Notice: ".concat(Pe.type," mimeType changed, origin: ").concat(this._mimeTypes[Pe.type],", target: ").concat(nt));else{yt=!0;try{var Dt=this._sourceBuffers[Pe.type]=this._mediaSource.addSourceBuffer(nt);Dt.addEventListener("error",this.e.onSourceBufferError),Dt.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(bt){c.e(this.TAG,bt.message),this._emitter.emit(ir.ERROR,{code:bt.code,msg:bt.message});return}}this._mimeTypes[Pe.type]=nt}Ke||this._pendingSegments[Pe.type].push(Pe),yt||this._sourceBuffers[Pe.type]&&!this._sourceBuffers[Pe.type].updating&&this._doAppendSegments(),E.safari&&Pe.container==="audio/mpeg"&&Pe.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Pe.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(Re){var Ke=Re;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(Re){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(gr){c.e(this.TAG,gr.message)}this._idrList.clear();var nt=this._pendingSegments[Ke];if(nt.splice(0,nt.length),this._mediaSource.readyState==="closed")continue;for(var yt=0;yt<Pe.buffered.length;yt++){var Dt=Pe.buffered.start(yt),bt=Pe.buffered.end(yt);this._pendingRemoveRanges[Ke].push({start:Dt,end:bt})}if(Pe.updating||this._doRemoveRanges(),E.safari){var It=this._lastInitSegments[Ke];It&&(this._pendingSegments[Ke].push(It),Pe.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var Re=this._mediaSource,Ke=this._sourceBuffers;if(!Re||Re.readyState!=="open"){Re&&Re.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}Ke.video&&Ke.video.updating||Ke.audio&&Ke.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,Re.endOfStream())}},{key:"getNearestKeyframe",value:function(Re){return this._idrList.getLastSyncPointBeforeDts(Re)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var Re=this._mediaElement.currentTime;for(var Ke in this._sourceBuffers){var Pe=this._sourceBuffers[Ke];if(Pe){var nt=Pe.buffered;if(nt.length>=1&&Re-nt.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var Re=this._mediaElement.currentTime;for(var Ke in this._sourceBuffers){var Pe=this._sourceBuffers[Ke];if(Pe){for(var nt=Pe.buffered,yt=!1,Dt=0;Dt<nt.length;Dt++){var bt=nt.start(Dt),It=nt.end(Dt);if(bt<=Re&&Re<It+3){if(Re-bt>=this._config.autoCleanupMaxBackwardDuration){yt=!0;var gr=Re-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[Ke].push({start:bt,end:gr})}}else It<Re&&(yt=!0,this._pendingRemoveRanges[Ke].push({start:bt,end:It}))}yt&&!Pe.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var Re=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open")return;if(Re.video&&Re.video.updating||Re.audio&&Re.audio.updating)return;var Ke=this._mediaSource.duration,Pe=this._pendingMediaDuration;Pe>0&&(isNaN(Ke)||Pe>Ke)&&(c.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 Re in this._pendingRemoveRanges){if(!this._sourceBuffers[Re]||this._sourceBuffers[Re].updating)continue;for(var Ke=this._sourceBuffers[Re],Pe=this._pendingRemoveRanges[Re];Pe.length&&!Ke.updating;){var nt=Pe.shift();Ke.remove(nt.start,nt.end)}}}},{key:"_doAppendSegments",value:function(){var Re=this._pendingSegments;for(var Ke in Re){if(!this._sourceBuffers[Ke]||this._sourceBuffers[Ke].updating)continue;if(Re[Ke].length>0){var Pe=Re[Ke].shift();if(Pe.timestampOffset){var nt=this._sourceBuffers[Ke].timestampOffset,yt=Pe.timestampOffset/1e3,Dt=Math.abs(nt-yt);Dt>.1&&(c.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(nt," to ").concat(yt)),this._sourceBuffers[Ke].timestampOffset=yt),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(bt){this._pendingSegments[Ke].unshift(Pe),bt.code===22?(this._isBufferFull||this._emitter.emit(ir.BUFFER_FULL),this._isBufferFull=!0):(c.e(this.TAG,bt.message),this._emitter.emit(ir.ERROR,{code:bt.code,msg:bt.message}))}}}}},{key:"_onSourceOpen",value:function(){if(c.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var Re=this._pendingSourceBufferInit;Re.length;){var Ke=Re.shift();this.appendInitSegment(Ke,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(ir.SOURCE_OPEN)}},{key:"_onSourceEnded",value:function(){c.v(this.TAG,"MediaSource onSourceEnded")}},{key:"_onSourceClose",value:function(){c.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 Re=this._pendingSegments;return Re.video.length>0||Re.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var Re=this._pendingRemoveRanges;return Re.video.length>0||Re.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(ir.UPDATE_END)}},{key:"_onSourceBufferError",value:function(Re){c.e(this.TAG,"SourceBuffer Error: ".concat(Re))}}]),kt}(),nr=$r,lr={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},zt={NETWORK_EXCEPTION:u.EXCEPTION,NETWORK_STATUS_CODE_INVALID:u.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:u.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:u.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:Ie.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Ie.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Ie.CODEC_UNSUPPORTED},Ut=function(){function kt(vt,Re){if(Object(O.a)(this,kt),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new g.a,this._config=J(),typeof Re=="object"&&Object.assign(this._config,Re),vt.type.toLowerCase()!=="flv")throw new t("FlvPlayer requires an flv MediaDataSource input!");vt.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=vt,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;var Ke=E.chrome&&(E.version.major<50||E.version.major===50&&E.version.build<2661);this._alwaysSeekKeyframe=!!(Ke||E.msedge||E.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(x.a)(kt,[{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(Re,Ke){var Pe=this;Re===ve.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){Pe._emitter.emit(ve.MEDIA_INFO,Pe.mediaInfo)}):Re===ve.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){Pe._emitter.emit(ve.STATISTICS_INFO,Pe.statisticsInfo)})),this._emitter.addListener(Re,Ke)}},{key:"off",value:function(Re,Ke){this._emitter.removeListener(Re,Ke)}},{key:"attachMediaElement",value:function(Re){var Ke=this;if(this._mediaElement=Re,Re.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),Re.addEventListener("seeking",this.e.onvSeeking),Re.addEventListener("canplay",this.e.onvCanPlay),Re.addEventListener("stalled",this.e.onvStalled),Re.addEventListener("progress",this.e.onvProgress),this._msectl=new nr(this._config),this._msectl.on(ir.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(ir.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(ir.SOURCE_OPEN,function(){Ke._mseSourceOpened=!0,Ke._hasPendingLoad&&(Ke._hasPendingLoad=!1,Ke.load())}),this._msectl.on(ir.ERROR,function(Pe){Ke._emitter.emit(ve.ERROR,lr.MEDIA_ERROR,zt.MEDIA_MSE_ERROR,Pe)}),this._msectl.attachMediaElement(Re),this._pendingSeekTime!=null)try{Re.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 Re=this;if(!this._mediaElement)throw new l("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new l("FlvPlayer.load() has been called, please call unload() first!");if(this._hasPendingLoad)return;if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new dt(this._mediaDataSource,this._config),this._transmuxer.on(X.INIT_SEGMENT,function(Ke,Pe){Re._msectl.appendInitSegment(Pe)}),this._transmuxer.on(X.MEDIA_SEGMENT,function(Ke,Pe){if(Re._msectl.appendMediaSegment(Pe),Re._config.lazyLoad&&!Re._config.isLive){var nt=Re._mediaElement.currentTime;Pe.info.endDts>=(nt+Re._config.lazyLoadMaxDuration)*1e3&&(Re._progressChecker==null&&(c.v(Re.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),Re._suspendTransmuxer()))}}),this._transmuxer.on(X.LOADING_COMPLETE,function(){Re._msectl.endOfStream(),Re._emitter.emit(ve.LOADING_COMPLETE)}),this._transmuxer.on(X.RECOVERED_EARLY_EOF,function(){Re._emitter.emit(ve.RECOVERED_EARLY_EOF)}),this._transmuxer.on(X.IO_ERROR,function(Ke,Pe){Re._emitter.emit(ve.ERROR,lr.NETWORK_ERROR,Ke,Pe)}),this._transmuxer.on(X.DEMUX_ERROR,function(Ke,Pe){Re._emitter.emit(ve.ERROR,lr.MEDIA_ERROR,Ke,{code:-1,msg:Pe})}),this._transmuxer.on(X.MEDIA_INFO,function(Ke){Re._mediaInfo=Ke,Re._emitter.emit(ve.MEDIA_INFO,Object.assign({},Ke))}),this._transmuxer.on(X.METADATA_ARRIVED,function(Ke){Re._emitter.emit(ve.METADATA_ARRIVED,Ke)}),this._transmuxer.on(X.SCRIPTDATA_ARRIVED,function(Ke){Re._emitter.emit(ve.SCRIPTDATA_ARRIVED,Ke)}),this._transmuxer.on(X.STATISTICS_INFO,function(Ke){Re._statisticsInfo=Re._fillStatisticsInfo(Ke),Re._emitter.emit(ve.STATISTICS_INFO,Object.assign({},Re._statisticsInfo))}),this._transmuxer.on(X.RECOMMEND_SEEKPOINT,function(Ke){Re._mediaElement&&!Re._config.accurateSeek&&(Re._requestSetTime=!0,Re._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(Re){this._mediaElement.volume=Re}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Re){this._mediaElement.muted=Re}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Re){this._mediaElement?this._internalSeek(Re):this._pendingSeekTime=Re}},{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(Re){if(Re.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return Re;var Ke=!0,Pe=0,nt=0;if(this._mediaElement.getVideoPlaybackQuality){var yt=this._mediaElement.getVideoPlaybackQuality();Pe=yt.totalVideoFrames,nt=yt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,nt=this._mediaElement.webkitDroppedFrameCount):Ke=!1;return Ke&&(Re.decodedFrames=Pe,Re.droppedFrames=nt),Re}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var Re=this._mediaElement.buffered,Ke=this._mediaElement.currentTime,Pe=0,nt=0,yt=0;yt<Re.length;yt++){var Dt=Re.start(yt),bt=Re.end(yt);if(Dt<=Ke&&Ke<bt){Pe=Dt,nt=bt;break}}nt>=Ke+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(c.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},{key:"_onmseBufferFull",value:function(){c.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 Re=this._mediaElement.currentTime,Ke=this._mediaElement.buffered,Pe=!1,nt=0;nt<Ke.length;nt++){var yt=Ke.start(nt),Dt=Ke.end(nt);if(Re>=yt&&Re<Dt){Re>=Dt-this._config.lazyLoadRecoverDuration&&(Pe=!0);break}}Pe&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Pe&&(c.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(Re){for(var Ke=this._mediaElement.buffered,Pe=0;Pe<Ke.length;Pe++){var nt=Ke.start(Pe),yt=Ke.end(Pe);if(Re>=nt&&Re<yt)return!0}return!1}},{key:"_internalSeek",value:function(Re){var Ke=this._isTimepointBuffered(Re),Pe=!1,nt=0;if(Re<1&&this._mediaElement.buffered.length>0){var yt=this._mediaElement.buffered.start(0);(yt<1&&Re<yt||E.safari)&&(Pe=!0,nt=E.safari?.1:yt)}if(Pe)this._requestSetTime=!0,this._mediaElement.currentTime=nt;else if(Ke){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=Re;else{var Dt=this._msectl.getNearestKeyframe(Math.floor(Re*1e3));this._requestSetTime=!0,Dt!=null?this._mediaElement.currentTime=Dt.dts/1e3:this._mediaElement.currentTime=Re}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(Re),this._transmuxer.seek(Math.floor(Re*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Re)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var Re=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(Re)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(Re),this._transmuxer.seek(Math.floor(Re*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Re))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(Re){var Ke=this._mediaElement;if(Re||!this._receivedCanPlay||Ke.readyState<2){var Pe=Ke.buffered;Pe.length>0&&Ke.currentTime<Pe.start(0)&&(c.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(Re){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(Re){var Ke=this._mediaElement.currentTime,Pe=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(Ke<1&&Pe.length>0){var nt=Pe.start(0);if(nt<1&&Ke<nt||E.safari){this._requestSetTime=!0,this._mediaElement.currentTime=E.safari?.1:nt;return}}if(this._isTimepointBuffered(Ke)){if(this._alwaysSeekKeyframe){var yt=this._msectl.getNearestKeyframe(Math.floor(Ke*1e3));yt!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=yt.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(Re){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(Re){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(Re){this._checkAndResumeStuckPlayback()}}]),kt}(),st=Ut,Hr=function(){function kt(vt,Re){if(Object(O.a)(this,kt),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new g.a,this._config=J(),typeof Re=="object"&&Object.assign(this._config,Re),vt.type.toLowerCase()==="flv")throw new t("NativePlayer does't support flv MediaDataSource input!");if(vt.hasOwnProperty("segments"))throw new t("NativePlayer(".concat(vt.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=vt,this._mediaElement=null}return Object(x.a)(kt,[{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(Re,Ke){var Pe=this;Re===ve.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Pe._emitter.emit(ve.MEDIA_INFO,Pe.mediaInfo)}):Re===ve.STATISTICS_INFO&&(this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Pe._emitter.emit(ve.STATISTICS_INFO,Pe.statisticsInfo)})),this._emitter.addListener(Re,Ke)}},{key:"off",value:function(Re,Ke){this._emitter.removeListener(Re,Ke)}},{key:"attachMediaElement",value:function(Re){if(this._mediaElement=Re,Re.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{Re.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(Re){this._mediaElement.volume=Re}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Re){this._mediaElement.muted=Re}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Re){this._mediaElement?this._mediaElement.currentTime=Re:this._pendingSeekTime=Re}},{key:"mediaInfo",get:function(){var Re=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",Ke={mimeType:Re+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 Re={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return Re;var Ke=!0,Pe=0,nt=0;if(this._mediaElement.getVideoPlaybackQuality){var yt=this._mediaElement.getVideoPlaybackQuality();Pe=yt.totalVideoFrames,nt=yt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,nt=this._mediaElement.webkitDroppedFrameCount):Ke=!1;return Ke&&(Re.decodedFrames=Pe,Re.droppedFrames=nt),Re}},{key:"_onvLoadedMetadata",value:function(Re){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(ve.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(ve.STATISTICS_INFO,this.statisticsInfo)}}]),kt}(),mn=Hr;A.install();function In(kt,vt){var Re=kt;if(Re==null||typeof Re!="object")throw new t("MediaDataSource must be an javascript object!");if(!Re.hasOwnProperty("type"))throw new t("MediaDataSource must has type field to indicate video file type!");switch(Re.type){case"flv":return new st(Re,vt);default:return new mn(Re,vt)}}function Yn(){return de.supportMSEH264Playback()}function Mi(){return de.getFeatureList()}var wn={};wn.createPlayer=In,wn.isSupported=Yn,wn.getFeatureList=Mi,wn.BaseLoader=h,wn.LoaderStatus=s,wn.LoaderErrors=u,wn.Events=ve,wn.ErrorTypes=lr,wn.ErrorDetails=zt,wn.FlvPlayer=st,wn.NativePlayer=mn,wn.LoggingControl=_e,Object.defineProperty(wn,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Rn=F.a=wn},GVMX:function(H,F,d){var O=d("JEkh"),x=O.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"}});H.exports=x},GdRQ:function(H,F,d){"use strict";function O(E){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(b){return typeof b}:O=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},O(E)}Object.defineProperty(F,"__esModule",{value:!0}),F.isMac=s,F.isWindows=u,F.isIOS=h,F.isSafari=p,F.isIE=m,F.isEdge=v,F.isFirefox=y,F.hasScrollbarGutter=F.supportsImageMetadata=F.supportsCursorURIs=F.dragThreshold=F.isTouchDevice=void 0;var x=A(d("Lo0S"));function C(){if(typeof WeakMap!="function")return null;var E=new WeakMap;return C=function(){return E},E}function A(E){if(E&&E.__esModule)return E;if(E===null||O(E)!=="object"&&typeof E!="function")return{default:E};var T=C();if(T&&T.has(E))return T.get(E);var b={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in E)if(Object.prototype.hasOwnProperty.call(E,_)){var I=w?Object.getOwnPropertyDescriptor(E,_):null;I&&(I.get||I.set)?Object.defineProperty(b,_,I):b[_]=E[_]}return b.default=E,T&&T.set(E,b),b}var S="ontouchstart"in document.documentElement||document.ontouchstart!==void 0||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;F.isTouchDevice=S,window.addEventListener("touchstart",function E(){F.isTouchDevice=S=!0,window.removeEventListener("touchstart",E,!1)},!1);var g=10*(window.devicePixelRatio||1);F.dragThreshold=g;var f=!1;try{var c=document.createElement("canvas");c.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',c.style.cursor.indexOf("url")===0?(x.Info("Data URI scheme cursor supported"),f=!0):x.Warn("Data URI scheme cursor not supported")}catch(E){x.Error("Data URI scheme cursor test exception: "+E)}var o=f;F.supportsCursorURIs=o;var r=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),r=!0}catch(E){}var i=r;F.supportsImageMetadata=i;var n=!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 t=e.offsetWidth-l.offsetWidth;e.parentNode.removeChild(e),n=t!=0}catch(E){x.Error("Scrollbar test exception: "+E)}var a=n;F.hasScrollbarGutter=a;function s(){return navigator&&!!/mac/i.exec(navigator.platform)}function u(){return navigator&&!!/win/i.exec(navigator.platform)}function h(){return navigator&&(!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform))}function p(){return navigator&&navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1}function m(){return navigator&&!!/trident/i.exec(navigator.userAgent)}function v(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function y(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}},GeKi:function(H,F,d){var O=d("bYtY"),x=d("6Ic6"),C=d("IwbS"),A=d("y+Vt"),S=d("sK/D"),g=S.createClipPath,f=["itemStyle"],c=["emphasis","itemStyle"],o=["color","color0","borderColor","borderColor0"],r=x.extend({type:"candlestick",render:function(p,m,v){this.group.removeClipPath(),this._updateDrawMode(p),this._isLargeDraw?this._renderLarge(p):this._renderNormal(p)},incrementalPrepareRender:function(p,m,v){this._clear(),this._updateDrawMode(p)},incrementalRender:function(p,m,v,y){this._isLargeDraw?this._incrementalRenderLarge(p,m):this._incrementalRenderNormal(p,m)},_updateDrawMode:function(p){var m=p.pipelineContext.large;(this._isLargeDraw==null||m^this._isLargeDraw)&&(this._isLargeDraw=m,this._clear())},_renderNormal:function(p){var m=p.getData(),v=this._data,y=this.group,E=m.getLayout("isSimpleBox"),T=p.get("clip",!0),b=p.coordinateSystem,w=b.getArea&&b.getArea();this._data||y.removeAll(),m.diff(v).add(function(_){if(m.hasValue(_)){var I,L=m.getItemLayout(_);if(T&&e(w,L))return;I=n(L,_,!0),C.initProps(I,{shape:{points:L.ends}},p,_),l(I,m,_,E),y.add(I),m.setItemGraphicEl(_,I)}}).update(function(_,I){var L=v.getItemGraphicEl(I);if(!m.hasValue(_)){y.remove(L);return}var N=m.getItemLayout(_);if(T&&e(w,N)){y.remove(L);return}L?C.updateProps(L,{shape:{points:N.ends}},p,_):L=n(N,_),l(L,m,_,E),y.add(L),m.setItemGraphicEl(_,L)}).remove(function(_){var I=v.getItemGraphicEl(_);I&&y.remove(I)}).execute(),this._data=m},_renderLarge:function(p){this._clear(),s(p,this.group);var m=p.get("clip",!0)?g(p.coordinateSystem,!1,p):null;m?this.group.setClipPath(m):this.group.removeClipPath()},_incrementalRenderNormal:function(p,m){for(var v=m.getData(),y=v.getLayout("isSimpleBox"),E;(E=p.next())!=null;){var T,b=v.getItemLayout(E);T=n(b,E),l(T,v,E,y),T.incremental=!0,this.group.add(T)}},_incrementalRenderLarge:function(p,m){s(m,this.group,!0)},remove:function(p){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:O.noop}),i=A.extend({type:"normalCandlestickBox",shape:{},buildPath:function(p,m){var v=m.points;this.__simpleBox?(p.moveTo(v[4][0],v[4][1]),p.lineTo(v[6][0],v[6][1])):(p.moveTo(v[0][0],v[0][1]),p.lineTo(v[1][0],v[1][1]),p.lineTo(v[2][0],v[2][1]),p.lineTo(v[3][0],v[3][1]),p.closePath(),p.moveTo(v[4][0],v[4][1]),p.lineTo(v[5][0],v[5][1]),p.moveTo(v[6][0],v[6][1]),p.lineTo(v[7][0],v[7][1]))}});function n(p,m,v){var y=p.ends;return new i({shape:{points:v?t(y,p):y},z2:100})}function e(p,m){for(var v=!0,y=0;y<m.ends.length;y++)if(p.contain(m.ends[y][0],m.ends[y][1])){v=!1;break}return v}function l(p,m,v,y){var E=m.getItemModel(v),T=E.getModel(f),b=m.getItemVisual(v,"color"),w=m.getItemVisual(v,"borderColor")||b,_=T.getItemStyle(o);p.useStyle(_),p.style.strokeNoScale=!0,p.style.fill=b,p.style.stroke=w,p.__simpleBox=y;var I=E.getModel(c).getItemStyle();C.setHoverStyle(p,I)}function t(p,m){return O.map(p,function(v){return v=v.slice(),v[1]=m.initBaseline,v})}var a=A.extend({type:"largeCandlestickBox",shape:{},buildPath:function(p,m){for(var v=m.points,y=0;y<v.length;)if(this.__sign===v[y++]){var E=v[y++];p.moveTo(E,v[y++]),p.lineTo(E,v[y++])}else y+=3}});function s(p,m,v){var y=p.getData(),E=y.getLayout("largePoints"),T=new a({shape:{points:E},__sign:1});m.add(T);var b=new a({shape:{points:E},__sign:-1});m.add(b),u(1,T,p,y),u(-1,b,p,y),v&&(T.incremental=!0,b.incremental=!0)}function u(p,m,v,y){var E=p>0?"P":"N",T=y.getVisual("borderColor"+E)||y.getVisual("color"+E),b=v.getModel(f).getItemStyle(o);m.useStyle(b),m.style.fill=null,m.style.stroke=T}var h=r;H.exports=h},Gev7:function(H,F,d){var O=d("bYtY"),x=d("K2GJ"),C=d("1bdT"),A=d("ni6a");function S(f){f=f||{},C.call(this,f);for(var c in f)f.hasOwnProperty(c)&&c!=="style"&&(this[c]=f[c]);this.style=new x(f.style,this),this._rect=null,this.__clipPaths=null}S.prototype={constructor:S,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(c){},afterBrush:function(c){},brush:function(c,o){},getBoundingRect:function(){},contain:function(c,o){return this.rectContain(c,o)},traverse:function(c,o){c.call(o,this)},rectContain:function(c,o){var r=this.transformCoordToLocal(c,o),i=this.getBoundingRect();return i.contain(r[0],r[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(c){return this.animate("style",c)},attrKV:function(c,o){c!=="style"?C.prototype.attrKV.call(this,c,o):this.style.set(o)},setStyle:function(c,o){return this.style.set(c,o),this.dirty(!1),this},useStyle:function(c){return this.style=new x(c,this),this.dirty(!1),this},calculateTextPosition:null},O.inherits(S,C),O.mixin(S,A);var g=S;H.exports=g},GrNh:function(H,F,d){var O=d("bYtY"),x=d("IwbS"),C=d("6Ic6");function A(r,i,n,e){var l=i.getData(),t=this.dataIndex,a=l.getName(t),s=i.get("selectedOffset");e.dispatchAction({type:"pieToggleSelect",from:r,name:a,seriesId:i.id}),l.each(function(u){S(l.getItemGraphicEl(u),l.getItemLayout(u),i.isSelected(l.getName(u)),s,n)})}function S(r,i,n,e,l){var t=(i.startAngle+i.endAngle)/2,a=Math.cos(t),s=Math.sin(t),u=n?e:0,h=[a*u,s*u];l?r.animate().when(200,{position:h}).start("bounceOut"):r.attr("position",h)}function g(r,i){x.Group.call(this);var n=new x.Sector({z2:2}),e=new x.Polyline,l=new x.Text;this.add(n),this.add(e),this.add(l),this.updateData(r,i,!0)}var f=g.prototype;f.updateData=function(r,i,n){var e=this.childAt(0),l=this.childAt(1),t=this.childAt(2),a=r.hostModel,s=r.getItemModel(i),u=r.getItemLayout(i),h=O.extend({},u);h.label=null;var p=a.getShallow("animationTypeUpdate");if(n){e.setShape(h);var m=a.getShallow("animationType");m==="scale"?(e.shape.r=u.r0,x.initProps(e,{shape:{r:u.r}},a,i)):(e.shape.endAngle=u.startAngle,x.updateProps(e,{shape:{endAngle:u.endAngle}},a,i))}else p==="expansion"?e.setShape(h):x.updateProps(e,{shape:h},a,i);var v=r.getItemVisual(i,"color");e.useStyle(O.defaults({lineJoin:"bevel",fill:v},s.getModel("itemStyle").getItemStyle())),e.hoverStyle=s.getModel("emphasis.itemStyle").getItemStyle();var y=s.getShallow("cursor");y&&e.attr("cursor",y),S(this,r.getItemLayout(i),a.isSelected(r.getName(i)),a.get("selectedOffset"),a.get("animation"));var E=!n&&p==="transition";this._updateLabel(r,i,E),this.highDownOnUpdate=a.get("silent")?null:function(T,b){var w=a.isAnimationEnabled()&&s.get("hoverAnimation");b==="emphasis"?(l.ignore=l.hoverIgnore,t.ignore=t.hoverIgnore,w&&(e.stopAnimation(!0),e.animateTo({shape:{r:u.r+a.get("hoverOffset")}},300,"elasticOut"))):(l.ignore=l.normalIgnore,t.ignore=t.normalIgnore,w&&(e.stopAnimation(!0),e.animateTo({shape:{r:u.r}},300,"elasticOut")))},x.setHoverStyle(this)},f._updateLabel=function(r,i,n){var e=this.childAt(1),l=this.childAt(2),t=r.hostModel,a=r.getItemModel(i),s=r.getItemLayout(i),u=s.label,h=r.getItemVisual(i,"color");if(!u||isNaN(u.x)||isNaN(u.y)){l.ignore=l.normalIgnore=l.hoverIgnore=e.ignore=e.normalIgnore=e.hoverIgnore=!0;return}var p={points:u.linePoints||[[u.x,u.y],[u.x,u.y],[u.x,u.y]]},m={x:u.x,y:u.y};n?(x.updateProps(e,{shape:p},t,i),x.updateProps(l,{style:m},t,i)):(e.attr({shape:p}),l.attr({style:m})),l.attr({rotation:u.rotation,origin:[u.x,u.y],z2:10});var v=a.getModel("label"),y=a.getModel("emphasis.label"),E=a.getModel("labelLine"),T=a.getModel("emphasis.labelLine"),h=r.getItemVisual(i,"color");x.setLabelStyle(l.style,l.hoverStyle={},v,y,{labelFetcher:r.hostModel,labelDataIndex:i,defaultText:u.text,autoColor:h,useInsideStyle:!!u.inside},{textAlign:u.textAlign,textVerticalAlign:u.verticalAlign,opacity:r.getItemVisual(i,"opacity")}),l.ignore=l.normalIgnore=!v.get("show"),l.hoverIgnore=!y.get("show"),e.ignore=e.normalIgnore=!E.get("show"),e.hoverIgnore=!T.get("show"),e.setStyle({stroke:h,opacity:r.getItemVisual(i,"opacity")}),e.setStyle(E.getModel("lineStyle").getLineStyle()),e.hoverStyle=T.getModel("lineStyle").getLineStyle();var b=E.get("smooth");b&&b===!0&&(b=.4),e.setShape({smooth:b})},O.inherits(g,x.Group);var c=C.extend({type:"pie",init:function(){var r=new x.Group;this._sectorGroup=r},render:function(r,i,n,e){if(e&&e.from===this.uid)return;var l=r.getData(),t=this._data,a=this.group,s=i.get("animation"),u=!t,h=r.get("animationType"),p=r.get("animationTypeUpdate"),m=O.curry(A,this.uid,r,s,n),v=r.get("selectedMode");if(l.diff(t).add(function(w){var _=new g(l,w);u&&h!=="scale"&&_.eachChild(function(I){I.stopAnimation(!0)}),v&&_.on("click",m),l.setItemGraphicEl(w,_),a.add(_)}).update(function(w,_){var I=t.getItemGraphicEl(_);!u&&p!=="transition"&&I.eachChild(function(L){L.stopAnimation(!0)}),I.updateData(l,w),I.off("click"),v&&I.on("click",m),a.add(I),l.setItemGraphicEl(w,I)}).remove(function(w){var _=t.getItemGraphicEl(w);a.remove(_)}).execute(),s&&l.count()>0&&(u?h!=="scale":p!=="transition")){for(var y=l.getItemLayout(0),E=1;isNaN(y.startAngle)&&E<l.count();++E)y=l.getItemLayout(E);var T=Math.max(n.getWidth(),n.getHeight())/2,b=O.bind(a.removeClipPath,a);a.setClipPath(this._createClipPath(y.cx,y.cy,T,y.startAngle,y.clockwise,b,r,u))}else a.removeClipPath();this._data=l},dispose:function(){},_createClipPath:function(r,i,n,e,l,t,a,s){var u=new x.Sector({shape:{cx:r,cy:i,r0:0,r:n,startAngle:e,endAngle:e,clockwise:l}}),h=s?x.initProps:x.updateProps;return h(u,{shape:{endAngle:e+(l?1:-1)*Math.PI*2}},a,t),u},containPoint:function(r,i){var n=i.getData(),e=n.getItemLayout(0);if(e){var l=r[0]-e.cx,t=r[1]-e.cy,a=Math.sqrt(l*l+t*t);return a<=e.r&&a>=e.r0}}}),o=c;H.exports=o},Gytx:function(H,F){H.exports=function(O,x,C,A){var S=C?C.call(A,O,x):void 0;if(S!==void 0)return!!S;if(O===x)return!0;if(typeof O!="object"||!O||typeof x!="object"||!x)return!1;var g=Object.keys(O),f=Object.keys(x);if(g.length!==f.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(x),o=0;o<g.length;o++){var r=g[o];if(!c(r))return!1;var i=O[r],n=x[r];if(S=C?C.call(A,i,n,r):void 0,S===!1||S===void 0&&i!==n)return!1}return!0}},GzdX:function(H,F,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("q1tI"),A=d.n(C),S=d("rePB"),g=d("1OyB"),f=d("vuIU"),c=d("Ji7U"),o=d("md7G"),r=d("foSv"),i=d("m+aA"),n=d("TSYQ"),e=d.n(n),l=d("4IlW");function t(U){var B=U.pageXOffset,j="scrollLeft";if(typeof B!="number"){var W=U.document;B=W.documentElement[j],typeof B!="number"&&(B=W.body[j])}return B}function a(U){var B,j,W=U.ownerDocument,V=W.body,z=W&&W.documentElement,J=U.getBoundingClientRect();return B=J.left,j=J.top,B-=z.clientLeft||V.clientLeft||0,j-=z.clientTop||V.clientTop||0,{left:B,top:j}}function s(U){var B=a(U),j=U.ownerDocument,W=j.defaultView||j.parentWindow;return B.left+=t(W),B.left}function u(U){var B=h();return function(){var W=Object(r.a)(U),V;if(B){var z=Object(r.a)(this).constructor;V=Reflect.construct(W,arguments,z)}else V=W.apply(this,arguments);return Object(o.a)(this,V)}}function h(){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(U){return!1}}var p=function(U){Object(c.a)(j,U);var B=u(j);function j(){var W;return Object(g.a)(this,j),W=B.apply(this,arguments),W.onHover=function(V){var z=W.props,J=z.onHover,Z=z.index;J(V,Z)},W.onClick=function(V){var z=W.props,J=z.onClick,Z=z.index;J(V,Z)},W.onKeyDown=function(V){var z=W.props,J=z.onClick,Z=z.index;V.keyCode===13&&J(V,Z)},W}return Object(f.a)(j,[{key:"getClassName",value:function(){var V=this.props,z=V.prefixCls,J=V.index,Z=V.value,de=V.allowHalf,ie=V.focused,ve=J+1,xe=z;return Z===0&&J===0&&ie?xe+=" ".concat(z,"-focused"):de&&Z+.5>=ve&&Z<ve?(xe+=" ".concat(z,"-half ").concat(z,"-active"),ie&&(xe+=" ".concat(z,"-focused"))):(xe+=ve<=Z?" ".concat(z,"-full"):" ".concat(z,"-zero"),ve===Z&&ie&&(xe+=" ".concat(z,"-focused"))),xe}},{key:"render",value:function(){var V=this.onHover,z=this.onClick,J=this.onKeyDown,Z=this.props,de=Z.disabled,ie=Z.prefixCls,ve=Z.character,xe=Z.characterRender,_e=Z.index,Ue=Z.count,fe=Z.value,ke=typeof ve=="function"?ve(this.props):ve,se=A.a.createElement("li",{className:this.getClassName()},A.a.createElement("div",{onClick:de?null:z,onKeyDown:de?null:J,onMouseMove:de?null:V,role:"radio","aria-checked":fe>_e?"true":"false","aria-posinset":_e+1,"aria-setsize":Ue,tabIndex:de?-1:0},A.a.createElement("div",{className:"".concat(ie,"-first")},ke),A.a.createElement("div",{className:"".concat(ie,"-second")},ke)));return xe&&(se=xe(se,this.props)),se}}]),j}(A.a.Component);function m(U,B){var j=Object.keys(U);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(U);B&&(W=W.filter(function(V){return Object.getOwnPropertyDescriptor(U,V).enumerable})),j.push.apply(j,W)}return j}function v(U){for(var B=1;B<arguments.length;B++){var j=arguments[B]!=null?arguments[B]:{};B%2?m(Object(j),!0).forEach(function(W){Object(S.a)(U,W,j[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(j)):m(Object(j)).forEach(function(W){Object.defineProperty(U,W,Object.getOwnPropertyDescriptor(j,W))})}return U}function y(U){var B=E();return function(){var W=Object(r.a)(U),V;if(B){var z=Object(r.a)(this).constructor;V=Reflect.construct(W,arguments,z)}else V=W.apply(this,arguments);return Object(o.a)(this,V)}}function E(){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(U){return!1}}function T(){}var b=function(U){Object(c.a)(j,U);var B=y(j);function j(W){var V;Object(g.a)(this,j),V=B.call(this,W),V.onHover=function(J,Z){var de=V.props.onHoverChange,ie=V.getStarValue(Z,J.pageX),ve=V.state.cleanedValue;ie!==ve&&V.setState({hoverValue:ie,cleanedValue:null}),de(ie)},V.onMouseLeave=function(){var J=V.props.onHoverChange;V.setState({hoverValue:void 0,cleanedValue:null}),J(void 0)},V.onClick=function(J,Z){var de=V.props.allowClear,ie=V.state.value,ve=V.getStarValue(Z,J.pageX),xe=!1;de&&(xe=ve===ie),V.onMouseLeave(),V.changeValue(xe?0:ve),V.setState({cleanedValue:xe?ve:null})},V.onFocus=function(){var J=V.props.onFocus;V.setState({focused:!0}),J&&J()},V.onBlur=function(){var J=V.props.onBlur;V.setState({focused:!1}),J&&J()},V.onKeyDown=function(J){var Z=J.keyCode,de=V.props,ie=de.count,ve=de.allowHalf,xe=de.onKeyDown,_e=de.direction,Ue=_e==="rtl",fe=V.state.value;Z===l.a.RIGHT&&fe<ie&&!Ue?(ve?fe+=.5:fe+=1,V.changeValue(fe),J.preventDefault()):Z===l.a.LEFT&&fe>0&&!Ue||Z===l.a.RIGHT&&fe>0&&Ue?(ve?fe-=.5:fe-=1,V.changeValue(fe),J.preventDefault()):Z===l.a.LEFT&&fe<ie&&Ue&&(ve?fe+=.5:fe+=1,V.changeValue(fe),J.preventDefault()),xe&&xe(J)},V.saveRef=function(J){return function(Z){V.stars[J]=Z}},V.saveRate=function(J){V.rate=J};var z=W.value;return z===void 0&&(z=W.defaultValue),V.stars={},V.state={value:z,focused:!1,cleanedValue:null},V}return Object(f.a)(j,[{key:"componentDidMount",value:function(){var V=this.props,z=V.autoFocus,J=V.disabled;z&&!J&&this.focus()}},{key:"getStarDOM",value:function(V){return Object(i.a)(this.stars[V])}},{key:"getStarValue",value:function(V,z){var J=this.props,Z=J.allowHalf,de=J.direction,ie=de==="rtl",ve=V+1;if(Z){var xe=this.getStarDOM(V),_e=s(xe),Ue=xe.clientWidth;(ie&&z-_e>Ue/2||!ie&&z-_e<Ue/2)&&(ve-=.5)}return ve}},{key:"focus",value:function(){var V=this.props.disabled;V||this.rate.focus()}},{key:"blur",value:function(){var V=this.props.disabled;V||this.rate.blur()}},{key:"changeValue",value:function(V){var z=this.props.onChange;"value"in this.props||this.setState({value:V}),z(V)}},{key:"render",value:function(){for(var V=this.props,z=V.count,J=V.allowHalf,Z=V.style,de=V.prefixCls,ie=V.disabled,ve=V.className,xe=V.character,_e=V.characterRender,Ue=V.tabIndex,fe=V.direction,ke=this.state,se=ke.value,te=ke.hoverValue,Ve=ke.focused,ae=[],Q=ie?"".concat(de,"-disabled"):"",G=0;G<z;G+=1)ae.push(A.a.createElement(p,{ref:this.saveRef(G),index:G,count:z,disabled:ie,prefixCls:"".concat(de,"-star"),allowHalf:J,value:te===void 0?se:te,onClick:this.onClick,onHover:this.onHover,key:G,character:xe,characterRender:_e,focused:Ve}));var Y=e()(de,Q,ve,Object(S.a)({},"".concat(de,"-rtl"),fe==="rtl"));return A.a.createElement("ul",{className:Y,style:Z,onMouseLeave:ie?null:this.onMouseLeave,tabIndex:ie?-1:Ue,onFocus:ie?null:this.onFocus,onBlur:ie?null:this.onBlur,onKeyDown:ie?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},ae)}}],[{key:"getDerivedStateFromProps",value:function(V,z){return"value"in V&&V.value!==void 0?v(v({},z),{},{value:V.value}):z}}]),j}(A.a.Component);b.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:T,character:"\u2605",onHoverChange:T,tabIndex:0,direction:"ltr"};var w=b,_=w,I=d("Lerx"),L=d.n(I),N=d("3S7+"),D=d("H84U"),R=function(U,B){var j={};for(var W in U)Object.prototype.hasOwnProperty.call(U,W)&&B.indexOf(W)<0&&(j[W]=U[W]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,W=Object.getOwnPropertySymbols(U);V<W.length;V++)B.indexOf(W[V])<0&&Object.prototype.propertyIsEnumerable.call(U,W[V])&&(j[W[V]]=U[W[V]]);return j},k=C.forwardRef(function(U,B){var j=U.prefixCls,W=U.tooltips,V=R(U,["prefixCls","tooltips"]),z=function(xe,_e){var Ue=_e.index;return W?C.createElement(N.a,{title:W[Ue]},xe):xe},J=C.useContext(D.b),Z=J.getPrefixCls,de=J.direction,ie=Z("rate",j);return C.createElement(_,x()({ref:B,characterRender:z},V,{prefixCls:ie,direction:de}))});k.displayName="Rate",k.defaultProps={character:C.createElement(L.a,null)};var M=F.a=k},H6uX:function(H,F){var d=Array.prototype.slice,O=function(g){this._$handlers={},this._$eventProcessor=g};O.prototype={constructor:O,one:function(g,f,c,o){return C(this,g,f,c,o,!0)},on:function(g,f,c,o){return C(this,g,f,c,o,!1)},isSilent:function(g){var f=this._$handlers;return!f[g]||!f[g].length},off:function(g,f){var c=this._$handlers;if(!g)return this._$handlers={},this;if(f){if(c[g]){for(var o=[],r=0,i=c[g].length;r<i;r++)c[g][r].h!==f&&o.push(c[g][r]);c[g]=o}c[g]&&c[g].length===0&&delete c[g]}else delete c[g];return this},trigger:function(g){var f=this._$handlers[g],c=this._$eventProcessor;if(f){var o=arguments,r=o.length;r>3&&(o=d.call(o,1));for(var i=f.length,n=0;n<i;){var e=f[n];if(c&&c.filter&&e.query!=null&&!c.filter(g,e.query)){n++;continue}switch(r){case 1:e.h.call(e.ctx);break;case 2:e.h.call(e.ctx,o[1]);break;case 3:e.h.call(e.ctx,o[1],o[2]);break;default:e.h.apply(e.ctx,o);break}e.one?(f.splice(n,1),i--):n++}}return c&&c.afterTrigger&&c.afterTrigger(g),this},triggerWithContext:function(g){var f=this._$handlers[g],c=this._$eventProcessor;if(f){var o=arguments,r=o.length;r>4&&(o=d.call(o,1,o.length-1));for(var i=o[o.length-1],n=f.length,e=0;e<n;){var l=f[e];if(c&&c.filter&&l.query!=null&&!c.filter(g,l.query)){e++;continue}switch(r){case 1:l.h.call(i);break;case 2:l.h.call(i,o[1]);break;case 3:l.h.call(i,o[1],o[2]);break;default:l.h.apply(i,o);break}l.one?(f.splice(e,1),n--):e++}}return c&&c.afterTrigger&&c.afterTrigger(g),this}};function x(S,g){var f=S._$eventProcessor;return g!=null&&f&&f.normalizeQuery&&(g=f.normalizeQuery(g)),g}function C(S,g,f,c,o,r){var i=S._$handlers;if(typeof f=="function"&&(o=c,c=f,f=null),!c||!g)return S;f=x(S,f),i[g]||(i[g]=[]);for(var n=0;n<i[g].length;n++)if(i[g][n].h===c)return S;var e={h:c,one:r,query:f,ctx:o||S,callAtLast:c.zrEventfulCallAtLast},l=i[g].length-1,t=i[g][l];return t&&t.callAtLast?i[g].splice(l,0,e):i[g].push(e),S}var A=O;H.exports=A},H7XF:function(H,F,d){"use strict";F.byteLength=c,F.toByteArray=r,F.fromByteArray=e;for(var O=[],x=[],C=typeof Uint8Array!="undefined"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=0,g=A.length;S<g;++S)O[S]=A[S],x[A.charCodeAt(S)]=S;x["-".charCodeAt(0)]=62,x["_".charCodeAt(0)]=63;function f(l){var t=l.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=l.indexOf("=");a===-1&&(a=t);var s=a===t?0:4-a%4;return[a,s]}function c(l){var t=f(l),a=t[0],s=t[1];return(a+s)*3/4-s}function o(l,t,a){return(t+a)*3/4-a}function r(l){var t,a=f(l),s=a[0],u=a[1],h=new C(o(l,s,u)),p=0,m=u>0?s-4:s,v;for(v=0;v<m;v+=4)t=x[l.charCodeAt(v)]<<18|x[l.charCodeAt(v+1)]<<12|x[l.charCodeAt(v+2)]<<6|x[l.charCodeAt(v+3)],h[p++]=t>>16&255,h[p++]=t>>8&255,h[p++]=t&255;return u===2&&(t=x[l.charCodeAt(v)]<<2|x[l.charCodeAt(v+1)]>>4,h[p++]=t&255),u===1&&(t=x[l.charCodeAt(v)]<<10|x[l.charCodeAt(v+1)]<<4|x[l.charCodeAt(v+2)]>>2,h[p++]=t>>8&255,h[p++]=t&255),h}function i(l){return O[l>>18&63]+O[l>>12&63]+O[l>>6&63]+O[l&63]}function n(l,t,a){for(var s,u=[],h=t;h<a;h+=3)s=(l[h]<<16&16711680)+(l[h+1]<<8&65280)+(l[h+2]&255),u.push(i(s));return u.join("")}function e(l){for(var t,a=l.length,s=a%3,u=[],h=16383,p=0,m=a-s;p<m;p+=h)u.push(n(l,p,p+h>m?m:p+h));return s===1?(t=l[a-1],u.push(O[t>>2]+O[t<<4&63]+"==")):s===2&&(t=(l[a-2]<<8)+l[a-1],u.push(O[t>>10]+O[t>>4&63]+O[t<<2&63]+"=")),u.join("")}},HBhm:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},HDXh:function(H,F,d){"use strict";(function(O){/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/var x=d("H7XF"),C=d("kVK+"),A=d("49sm");F.Buffer=c,F.SlowBuffer=u,F.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=O.TYPED_ARRAY_SUPPORT!==void 0?O.TYPED_ARRAY_SUPPORT:S(),F.kMaxLength=g();function S(){try{var ae=new Uint8Array(1);return ae.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ae.foo()===42&&typeof ae.subarray=="function"&&ae.subarray(1,1).byteLength===0}catch(Q){return!1}}function g(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(ae,Q){if(g()<Q)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(ae=new Uint8Array(Q),ae.__proto__=c.prototype):(ae===null&&(ae=new c(Q)),ae.length=Q),ae}function c(ae,Q,G){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(ae,Q,G);if(typeof ae=="number"){if(typeof Q=="string")throw new Error("If encoding is specified then the first argument must be a string");return n(this,ae)}return o(this,ae,Q,G)}c.poolSize=8192,c._augment=function(ae){return ae.__proto__=c.prototype,ae};function o(ae,Q,G,Y){if(typeof Q=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&Q instanceof ArrayBuffer?t(ae,Q,G,Y):typeof Q=="string"?e(ae,Q,G):a(ae,Q)}c.from=function(ae,Q,G){return o(null,ae,Q,G)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0}));function r(ae){if(typeof ae!="number")throw new TypeError('"size" argument must be a number');if(ae<0)throw new RangeError('"size" argument must not be negative')}function i(ae,Q,G,Y){return r(Q),Q<=0?f(ae,Q):G!==void 0?typeof Y=="string"?f(ae,Q).fill(G,Y):f(ae,Q).fill(G):f(ae,Q)}c.alloc=function(ae,Q,G){return i(null,ae,Q,G)};function n(ae,Q){if(r(Q),ae=f(ae,Q<0?0:s(Q)|0),!c.TYPED_ARRAY_SUPPORT)for(var G=0;G<Q;++G)ae[G]=0;return ae}c.allocUnsafe=function(ae){return n(null,ae)},c.allocUnsafeSlow=function(ae){return n(null,ae)};function e(ae,Q,G){if((typeof G!="string"||G==="")&&(G="utf8"),!c.isEncoding(G))throw new TypeError('"encoding" must be a valid string encoding');var Y=h(Q,G)|0;ae=f(ae,Y);var me=ae.write(Q,G);return me!==Y&&(ae=ae.slice(0,me)),ae}function l(ae,Q){var G=Q.length<0?0:s(Q.length)|0;ae=f(ae,G);for(var Y=0;Y<G;Y+=1)ae[Y]=Q[Y]&255;return ae}function t(ae,Q,G,Y){if(Q.byteLength,G<0||Q.byteLength<G)throw new RangeError("'offset' is out of bounds");if(Q.byteLength<G+(Y||0))throw new RangeError("'length' is out of bounds");return G===void 0&&Y===void 0?Q=new Uint8Array(Q):Y===void 0?Q=new Uint8Array(Q,G):Q=new Uint8Array(Q,G,Y),c.TYPED_ARRAY_SUPPORT?(ae=Q,ae.__proto__=c.prototype):ae=l(ae,Q),ae}function a(ae,Q){if(c.isBuffer(Q)){var G=s(Q.length)|0;return ae=f(ae,G),ae.length===0||Q.copy(ae,0,0,G),ae}if(Q){if(typeof ArrayBuffer!="undefined"&&Q.buffer instanceof ArrayBuffer||"length"in Q)return typeof Q.length!="number"||Ve(Q.length)?f(ae,0):l(ae,Q);if(Q.type==="Buffer"&&A(Q.data))return l(ae,Q.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function s(ae){if(ae>=g())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g().toString(16)+" bytes");return ae|0}function u(ae){return+ae!=ae&&(ae=0),c.alloc(+ae)}c.isBuffer=function(Q){return!!(Q!=null&&Q._isBuffer)},c.compare=function(Q,G){if(!c.isBuffer(Q)||!c.isBuffer(G))throw new TypeError("Arguments must be Buffers");if(Q===G)return 0;for(var Y=Q.length,me=G.length,ue=0,Ce=Math.min(Y,me);ue<Ce;++ue)if(Q[ue]!==G[ue]){Y=Q[ue],me=G[ue];break}return Y<me?-1:me<Y?1:0},c.isEncoding=function(Q){switch(String(Q).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}},c.concat=function(Q,G){if(!A(Q))throw new TypeError('"list" argument must be an Array of Buffers');if(Q.length===0)return c.alloc(0);var Y;if(G===void 0)for(G=0,Y=0;Y<Q.length;++Y)G+=Q[Y].length;var me=c.allocUnsafe(G),ue=0;for(Y=0;Y<Q.length;++Y){var Ce=Q[Y];if(!c.isBuffer(Ce))throw new TypeError('"list" argument must be an Array of Buffers');Ce.copy(me,ue),ue+=Ce.length}return me};function h(ae,Q){if(c.isBuffer(ae))return ae.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(ae)||ae instanceof ArrayBuffer))return ae.byteLength;typeof ae!="string"&&(ae=""+ae);var G=ae.length;if(G===0)return 0;for(var Y=!1;;)switch(Q){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":case void 0:return Ue(ae).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return se(ae).length;default:if(Y)return Ue(ae).length;Q=(""+Q).toLowerCase(),Y=!0}}c.byteLength=h;function p(ae,Q,G){var Y=!1;if((Q===void 0||Q<0)&&(Q=0),Q>this.length)return"";if((G===void 0||G>this.length)&&(G=this.length),G<=0)return"";if(G>>>=0,Q>>>=0,G<=Q)return"";for(ae||(ae="utf8");;)switch(ae){case"hex":return U(this,Q,G);case"utf8":case"utf-8":return N(this,Q,G);case"ascii":return k(this,Q,G);case"latin1":case"binary":return M(this,Q,G);case"base64":return L(this,Q,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,Q,G);default:if(Y)throw new TypeError("Unknown encoding: "+ae);ae=(ae+"").toLowerCase(),Y=!0}}c.prototype._isBuffer=!0;function m(ae,Q,G){var Y=ae[Q];ae[Q]=ae[G],ae[G]=Y}c.prototype.swap16=function(){var Q=this.length;if(Q%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var G=0;G<Q;G+=2)m(this,G,G+1);return this},c.prototype.swap32=function(){var Q=this.length;if(Q%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var G=0;G<Q;G+=4)m(this,G,G+3),m(this,G+1,G+2);return this},c.prototype.swap64=function(){var Q=this.length;if(Q%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var G=0;G<Q;G+=8)m(this,G,G+7),m(this,G+1,G+6),m(this,G+2,G+5),m(this,G+3,G+4);return this},c.prototype.toString=function(){var Q=this.length|0;return Q===0?"":arguments.length===0?N(this,0,Q):p.apply(this,arguments)},c.prototype.equals=function(Q){if(!c.isBuffer(Q))throw new TypeError("Argument must be a Buffer");return this===Q?!0:c.compare(this,Q)===0},c.prototype.inspect=function(){var Q="",G=F.INSPECT_MAX_BYTES;return this.length>0&&(Q=this.toString("hex",0,G).match(/.{2}/g).join(" "),this.length>G&&(Q+=" ... ")),"<Buffer "+Q+">"},c.prototype.compare=function(Q,G,Y,me,ue){if(!c.isBuffer(Q))throw new TypeError("Argument must be a Buffer");if(G===void 0&&(G=0),Y===void 0&&(Y=Q?Q.length:0),me===void 0&&(me=0),ue===void 0&&(ue=this.length),G<0||Y>Q.length||me<0||ue>this.length)throw new RangeError("out of range index");if(me>=ue&&G>=Y)return 0;if(me>=ue)return-1;if(G>=Y)return 1;if(G>>>=0,Y>>>=0,me>>>=0,ue>>>=0,this===Q)return 0;for(var Ce=ue-me,Ie=Y-G,ce=Math.min(Ce,Ie),Ae=this.slice(me,ue),Te=Q.slice(G,Y),Ge=0;Ge<ce;++Ge)if(Ae[Ge]!==Te[Ge]){Ce=Ae[Ge],Ie=Te[Ge];break}return Ce<Ie?-1:Ie<Ce?1:0};function v(ae,Q,G,Y,me){if(ae.length===0)return-1;if(typeof G=="string"?(Y=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,isNaN(G)&&(G=me?0:ae.length-1),G<0&&(G=ae.length+G),G>=ae.length){if(me)return-1;G=ae.length-1}else if(G<0)if(me)G=0;else return-1;if(typeof Q=="string"&&(Q=c.from(Q,Y)),c.isBuffer(Q))return Q.length===0?-1:y(ae,Q,G,Y,me);if(typeof Q=="number")return Q=Q&255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?me?Uint8Array.prototype.indexOf.call(ae,Q,G):Uint8Array.prototype.lastIndexOf.call(ae,Q,G):y(ae,[Q],G,Y,me);throw new TypeError("val must be string, number or Buffer")}function y(ae,Q,G,Y,me){var ue=1,Ce=ae.length,Ie=Q.length;if(Y!==void 0&&(Y=String(Y).toLowerCase(),Y==="ucs2"||Y==="ucs-2"||Y==="utf16le"||Y==="utf-16le")){if(ae.length<2||Q.length<2)return-1;ue=2,Ce/=2,Ie/=2,G/=2}function ce(qe,Le){return ue===1?qe[Le]:qe.readUInt16BE(Le*ue)}var Ae;if(me){var Te=-1;for(Ae=G;Ae<Ce;Ae++)if(ce(ae,Ae)===ce(Q,Te===-1?0:Ae-Te)){if(Te===-1&&(Te=Ae),Ae-Te+1===Ie)return Te*ue}else Te!==-1&&(Ae-=Ae-Te),Te=-1}else for(G+Ie>Ce&&(G=Ce-Ie),Ae=G;Ae>=0;Ae--){for(var Ge=!0,gt=0;gt<Ie;gt++)if(ce(ae,Ae+gt)!==ce(Q,gt)){Ge=!1;break}if(Ge)return Ae}return-1}c.prototype.includes=function(Q,G,Y){return this.indexOf(Q,G,Y)!==-1},c.prototype.indexOf=function(Q,G,Y){return v(this,Q,G,Y,!0)},c.prototype.lastIndexOf=function(Q,G,Y){return v(this,Q,G,Y,!1)};function E(ae,Q,G,Y){G=Number(G)||0;var me=ae.length-G;Y?(Y=Number(Y),Y>me&&(Y=me)):Y=me;var ue=Q.length;if(ue%2!==0)throw new TypeError("Invalid hex string");Y>ue/2&&(Y=ue/2);for(var Ce=0;Ce<Y;++Ce){var Ie=parseInt(Q.substr(Ce*2,2),16);if(isNaN(Ie))return Ce;ae[G+Ce]=Ie}return Ce}function T(ae,Q,G,Y){return te(Ue(Q,ae.length-G),ae,G,Y)}function b(ae,Q,G,Y){return te(fe(Q),ae,G,Y)}function w(ae,Q,G,Y){return b(ae,Q,G,Y)}function _(ae,Q,G,Y){return te(se(Q),ae,G,Y)}function I(ae,Q,G,Y){return te(ke(Q,ae.length-G),ae,G,Y)}c.prototype.write=function(Q,G,Y,me){if(G===void 0)me="utf8",Y=this.length,G=0;else if(Y===void 0&&typeof G=="string")me=G,Y=this.length,G=0;else if(isFinite(G))G=G|0,isFinite(Y)?(Y=Y|0,me===void 0&&(me="utf8")):(me=Y,Y=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ue=this.length-G;if((Y===void 0||Y>ue)&&(Y=ue),Q.length>0&&(Y<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");me||(me="utf8");for(var Ce=!1;;)switch(me){case"hex":return E(this,Q,G,Y);case"utf8":case"utf-8":return T(this,Q,G,Y);case"ascii":return b(this,Q,G,Y);case"latin1":case"binary":return w(this,Q,G,Y);case"base64":return _(this,Q,G,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,Q,G,Y);default:if(Ce)throw new TypeError("Unknown encoding: "+me);me=(""+me).toLowerCase(),Ce=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(ae,Q,G){return Q===0&&G===ae.length?x.fromByteArray(ae):x.fromByteArray(ae.slice(Q,G))}function N(ae,Q,G){G=Math.min(ae.length,G);for(var Y=[],me=Q;me<G;){var ue=ae[me],Ce=null,Ie=ue>239?4:ue>223?3:ue>191?2:1;if(me+Ie<=G){var ce,Ae,Te,Ge;switch(Ie){case 1:ue<128&&(Ce=ue);break;case 2:ce=ae[me+1],(ce&192)===128&&(Ge=(ue&31)<<6|ce&63,Ge>127&&(Ce=Ge));break;case 3:ce=ae[me+1],Ae=ae[me+2],(ce&192)===128&&(Ae&192)===128&&(Ge=(ue&15)<<12|(ce&63)<<6|Ae&63,Ge>2047&&(Ge<55296||Ge>57343)&&(Ce=Ge));break;case 4:ce=ae[me+1],Ae=ae[me+2],Te=ae[me+3],(ce&192)===128&&(Ae&192)===128&&(Te&192)===128&&(Ge=(ue&15)<<18|(ce&63)<<12|(Ae&63)<<6|Te&63,Ge>65535&&Ge<1114112&&(Ce=Ge))}}Ce===null?(Ce=65533,Ie=1):Ce>65535&&(Ce-=65536,Y.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),Y.push(Ce),me+=Ie}return R(Y)}var D=4096;function R(ae){var Q=ae.length;if(Q<=D)return String.fromCharCode.apply(String,ae);for(var G="",Y=0;Y<Q;)G+=String.fromCharCode.apply(String,ae.slice(Y,Y+=D));return G}function k(ae,Q,G){var Y="";G=Math.min(ae.length,G);for(var me=Q;me<G;++me)Y+=String.fromCharCode(ae[me]&127);return Y}function M(ae,Q,G){var Y="";G=Math.min(ae.length,G);for(var me=Q;me<G;++me)Y+=String.fromCharCode(ae[me]);return Y}function U(ae,Q,G){var Y=ae.length;(!Q||Q<0)&&(Q=0),(!G||G<0||G>Y)&&(G=Y);for(var me="",ue=Q;ue<G;++ue)me+=_e(ae[ue]);return me}function B(ae,Q,G){for(var Y=ae.slice(Q,G),me="",ue=0;ue<Y.length;ue+=2)me+=String.fromCharCode(Y[ue]+Y[ue+1]*256);return me}c.prototype.slice=function(Q,G){var Y=this.length;Q=~~Q,G=G===void 0?Y:~~G,Q<0?(Q+=Y,Q<0&&(Q=0)):Q>Y&&(Q=Y),G<0?(G+=Y,G<0&&(G=0)):G>Y&&(G=Y),G<Q&&(G=Q);var me;if(c.TYPED_ARRAY_SUPPORT)me=this.subarray(Q,G),me.__proto__=c.prototype;else{var ue=G-Q;me=new c(ue,void 0);for(var Ce=0;Ce<ue;++Ce)me[Ce]=this[Ce+Q]}return me};function j(ae,Q,G){if(ae%1!==0||ae<0)throw new RangeError("offset is not uint");if(ae+Q>G)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUIntLE=function(Q,G,Y){Q=Q|0,G=G|0,Y||j(Q,G,this.length);for(var me=this[Q],ue=1,Ce=0;++Ce<G&&(ue*=256);)me+=this[Q+Ce]*ue;return me},c.prototype.readUIntBE=function(Q,G,Y){Q=Q|0,G=G|0,Y||j(Q,G,this.length);for(var me=this[Q+--G],ue=1;G>0&&(ue*=256);)me+=this[Q+--G]*ue;return me},c.prototype.readUInt8=function(Q,G){return G||j(Q,1,this.length),this[Q]},c.prototype.readUInt16LE=function(Q,G){return G||j(Q,2,this.length),this[Q]|this[Q+1]<<8},c.prototype.readUInt16BE=function(Q,G){return G||j(Q,2,this.length),this[Q]<<8|this[Q+1]},c.prototype.readUInt32LE=function(Q,G){return G||j(Q,4,this.length),(this[Q]|this[Q+1]<<8|this[Q+2]<<16)+this[Q+3]*16777216},c.prototype.readUInt32BE=function(Q,G){return G||j(Q,4,this.length),this[Q]*16777216+(this[Q+1]<<16|this[Q+2]<<8|this[Q+3])},c.prototype.readIntLE=function(Q,G,Y){Q=Q|0,G=G|0,Y||j(Q,G,this.length);for(var me=this[Q],ue=1,Ce=0;++Ce<G&&(ue*=256);)me+=this[Q+Ce]*ue;return ue*=128,me>=ue&&(me-=Math.pow(2,8*G)),me},c.prototype.readIntBE=function(Q,G,Y){Q=Q|0,G=G|0,Y||j(Q,G,this.length);for(var me=G,ue=1,Ce=this[Q+--me];me>0&&(ue*=256);)Ce+=this[Q+--me]*ue;return ue*=128,Ce>=ue&&(Ce-=Math.pow(2,8*G)),Ce},c.prototype.readInt8=function(Q,G){return G||j(Q,1,this.length),this[Q]&128?(255-this[Q]+1)*-1:this[Q]},c.prototype.readInt16LE=function(Q,G){G||j(Q,2,this.length);var Y=this[Q]|this[Q+1]<<8;return Y&32768?Y|4294901760:Y},c.prototype.readInt16BE=function(Q,G){G||j(Q,2,this.length);var Y=this[Q+1]|this[Q]<<8;return Y&32768?Y|4294901760:Y},c.prototype.readInt32LE=function(Q,G){return G||j(Q,4,this.length),this[Q]|this[Q+1]<<8|this[Q+2]<<16|this[Q+3]<<24},c.prototype.readInt32BE=function(Q,G){return G||j(Q,4,this.length),this[Q]<<24|this[Q+1]<<16|this[Q+2]<<8|this[Q+3]},c.prototype.readFloatLE=function(Q,G){return G||j(Q,4,this.length),C.read(this,Q,!0,23,4)},c.prototype.readFloatBE=function(Q,G){return G||j(Q,4,this.length),C.read(this,Q,!1,23,4)},c.prototype.readDoubleLE=function(Q,G){return G||j(Q,8,this.length),C.read(this,Q,!0,52,8)},c.prototype.readDoubleBE=function(Q,G){return G||j(Q,8,this.length),C.read(this,Q,!1,52,8)};function W(ae,Q,G,Y,me,ue){if(!c.isBuffer(ae))throw new TypeError('"buffer" argument must be a Buffer instance');if(Q>me||Q<ue)throw new RangeError('"value" argument is out of bounds');if(G+Y>ae.length)throw new RangeError("Index out of range")}c.prototype.writeUIntLE=function(Q,G,Y,me){if(Q=+Q,G=G|0,Y=Y|0,!me){var ue=Math.pow(2,8*Y)-1;W(this,Q,G,Y,ue,0)}var Ce=1,Ie=0;for(this[G]=Q&255;++Ie<Y&&(Ce*=256);)this[G+Ie]=Q/Ce&255;return G+Y},c.prototype.writeUIntBE=function(Q,G,Y,me){if(Q=+Q,G=G|0,Y=Y|0,!me){var ue=Math.pow(2,8*Y)-1;W(this,Q,G,Y,ue,0)}var Ce=Y-1,Ie=1;for(this[G+Ce]=Q&255;--Ce>=0&&(Ie*=256);)this[G+Ce]=Q/Ie&255;return G+Y},c.prototype.writeUInt8=function(Q,G,Y){return Q=+Q,G=G|0,Y||W(this,Q,G,1,255,0),c.TYPED_ARRAY_SUPPORT||(Q=Math.floor(Q)),this[G]=Q&255,G+1};function V(ae,Q,G,Y){Q<0&&(Q=65535+Q+1);for(var me=0,ue=Math.min(ae.length-G,2);me<ue;++me)ae[G+me]=(Q&255<<8*(Y?me:1-me))>>>(Y?me:1-me)*8}c.prototype.writeUInt16LE=function(Q,G,Y){return Q=+Q,G=G|0,Y||W(this,Q,G,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[G]=Q&255,this[G+1]=Q>>>8):V(this,Q,G,!0),G+2},c.prototype.writeUInt16BE=function(Q,G,Y){return Q=+Q,G=G|0,Y||W(this,Q,G,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[G]=Q>>>8,this[G+1]=Q&255):V(this,Q,G,!1),G+2};function z(ae,Q,G,Y){Q<0&&(Q=4294967295+Q+1);for(var me=0,ue=Math.min(ae.length-G,4);me<ue;++me)ae[G+me]=Q>>>(Y?me:3-me)*8&255}c.prototype.writeUInt32LE=function(Q,G,Y){return Q=+Q,G=G|0,Y||W(this,Q,G,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[G+3]=Q>>>24,this[G+2]=Q>>>16,this[G+1]=Q>>>8,this[G]=Q&255):z(this,Q,G,!0),G+4},c.prototype.writeUInt32BE=function(Q,G,Y){return Q=+Q,G=G|0,Y||W(this,Q,G,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[G]=Q>>>24,this[G+1]=Q>>>16,this[G+2]=Q>>>8,this[G+3]=Q&255):z(this,Q,G,!1),G+4},c.prototype.writeIntLE=function(Q,G,Y,me){if(Q=+Q,G=G|0,!me){var ue=Math.pow(2,8*Y-1);W(this,Q,G,Y,ue-1,-ue)}var Ce=0,Ie=1,ce=0;for(this[G]=Q&255;++Ce<Y&&(Ie*=256);)Q<0&&ce===0&&this[G+Ce-1]!==0&&(ce=1),this[G+Ce]=(Q/Ie>>0)-ce&255;return G+Y},c.prototype.writeIntBE=function(Q,G,Y,me){if(Q=+Q,G=G|0,!me){var ue=Math.pow(2,8*Y-1);W(this,Q,G,Y,ue-1,-ue)}var Ce=Y-1,Ie=1,ce=0;for(this[G+Ce]=Q&255;--Ce>=0&&(Ie*=256);)Q<0&&ce===0&&this[G+Ce+1]!==0&&(ce=1),this[G+Ce]=(Q/Ie>>0)-ce&255;return G+Y},c.prototype.writeInt8=function(Q,G,Y){return Q=+Q,G=G|0,Y||W(this,Q,G,1,127,-128),c.TYPED_ARRAY_SUPPORT||(Q=Math.floor(Q)),Q<0&&(Q=255+Q+1),this[G]=Q&255,G+1},c.prototype.writeInt16LE=function(Q,G,Y){return Q=+Q,G=G|0,Y||W(this,Q,G,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[G]=Q&255,this[G+1]=Q>>>8):V(this,Q,G,!0),G+2},c.prototype.writeInt16BE=function(Q,G,Y){return Q=+Q,G=G|0,Y||W(this,Q,G,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[G]=Q>>>8,this[G+1]=Q&255):V(this,Q,G,!1),G+2},c.prototype.writeInt32LE=function(Q,G,Y){return Q=+Q,G=G|0,Y||W(this,Q,G,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[G]=Q&255,this[G+1]=Q>>>8,this[G+2]=Q>>>16,this[G+3]=Q>>>24):z(this,Q,G,!0),G+4},c.prototype.writeInt32BE=function(Q,G,Y){return Q=+Q,G=G|0,Y||W(this,Q,G,4,2147483647,-2147483648),Q<0&&(Q=4294967295+Q+1),c.TYPED_ARRAY_SUPPORT?(this[G]=Q>>>24,this[G+1]=Q>>>16,this[G+2]=Q>>>8,this[G+3]=Q&255):z(this,Q,G,!1),G+4};function J(ae,Q,G,Y,me,ue){if(G+Y>ae.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function Z(ae,Q,G,Y,me){return me||J(ae,Q,G,4,34028234663852886e22,-34028234663852886e22),C.write(ae,Q,G,Y,23,4),G+4}c.prototype.writeFloatLE=function(Q,G,Y){return Z(this,Q,G,!0,Y)},c.prototype.writeFloatBE=function(Q,G,Y){return Z(this,Q,G,!1,Y)};function de(ae,Q,G,Y,me){return me||J(ae,Q,G,8,17976931348623157e292,-17976931348623157e292),C.write(ae,Q,G,Y,52,8),G+8}c.prototype.writeDoubleLE=function(Q,G,Y){return de(this,Q,G,!0,Y)},c.prototype.writeDoubleBE=function(Q,G,Y){return de(this,Q,G,!1,Y)},c.prototype.copy=function(Q,G,Y,me){if(Y||(Y=0),!me&&me!==0&&(me=this.length),G>=Q.length&&(G=Q.length),G||(G=0),me>0&&me<Y&&(me=Y),me===Y)return 0;if(Q.length===0||this.length===0)return 0;if(G<0)throw new RangeError("targetStart out of bounds");if(Y<0||Y>=this.length)throw new RangeError("sourceStart out of bounds");if(me<0)throw new RangeError("sourceEnd out of bounds");me>this.length&&(me=this.length),Q.length-G<me-Y&&(me=Q.length-G+Y);var ue=me-Y,Ce;if(this===Q&&Y<G&&G<me)for(Ce=ue-1;Ce>=0;--Ce)Q[Ce+G]=this[Ce+Y];else if(ue<1e3||!c.TYPED_ARRAY_SUPPORT)for(Ce=0;Ce<ue;++Ce)Q[Ce+G]=this[Ce+Y];else Uint8Array.prototype.set.call(Q,this.subarray(Y,Y+ue),G);return ue},c.prototype.fill=function(Q,G,Y,me){if(typeof Q=="string"){if(typeof G=="string"?(me=G,G=0,Y=this.length):typeof Y=="string"&&(me=Y,Y=this.length),Q.length===1){var ue=Q.charCodeAt(0);ue<256&&(Q=ue)}if(me!==void 0&&typeof me!="string")throw new TypeError("encoding must be a string");if(typeof me=="string"&&!c.isEncoding(me))throw new TypeError("Unknown encoding: "+me)}else typeof Q=="number"&&(Q=Q&255);if(G<0||this.length<G||this.length<Y)throw new RangeError("Out of range index");if(Y<=G)return this;G=G>>>0,Y=Y===void 0?this.length:Y>>>0,Q||(Q=0);var Ce;if(typeof Q=="number")for(Ce=G;Ce<Y;++Ce)this[Ce]=Q;else{var Ie=c.isBuffer(Q)?Q:Ue(new c(Q,me).toString()),ce=Ie.length;for(Ce=0;Ce<Y-G;++Ce)this[Ce+G]=Ie[Ce%ce]}return this};var ie=/[^+\/0-9A-Za-z-_]/g;function ve(ae){if(ae=xe(ae).replace(ie,""),ae.length<2)return"";for(;ae.length%4!==0;)ae=ae+"=";return ae}function xe(ae){return ae.trim?ae.trim():ae.replace(/^\s+|\s+$/g,"")}function _e(ae){return ae<16?"0"+ae.toString(16):ae.toString(16)}function Ue(ae,Q){Q=Q||Infinity;for(var G,Y=ae.length,me=null,ue=[],Ce=0;Ce<Y;++Ce){if(G=ae.charCodeAt(Ce),G>55295&&G<57344){if(!me){if(G>56319){(Q-=3)>-1&&ue.push(239,191,189);continue}else if(Ce+1===Y){(Q-=3)>-1&&ue.push(239,191,189);continue}me=G;continue}if(G<56320){(Q-=3)>-1&&ue.push(239,191,189),me=G;continue}G=(me-55296<<10|G-56320)+65536}else me&&((Q-=3)>-1&&ue.push(239,191,189));if(me=null,G<128){if((Q-=1)<0)break;ue.push(G)}else if(G<2048){if((Q-=2)<0)break;ue.push(G>>6|192,G&63|128)}else if(G<65536){if((Q-=3)<0)break;ue.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((Q-=4)<0)break;ue.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return ue}function fe(ae){for(var Q=[],G=0;G<ae.length;++G)Q.push(ae.charCodeAt(G)&255);return Q}function ke(ae,Q){for(var G,Y,me,ue=[],Ce=0;Ce<ae.length&&!((Q-=2)<0);++Ce)G=ae.charCodeAt(Ce),Y=G>>8,me=G%256,ue.push(me),ue.push(Y);return ue}function se(ae){return x.toByteArray(ve(ae))}function te(ae,Q,G,Y){for(var me=0;me<Y&&!(me+G>=Q.length||me>=ae.length);++me)Q[me+G]=ae[me];return me}function Ve(ae){return ae!==ae}}).call(this,d("yLpj"))},"HF/U":function(H,F,d){var O=d("QBsz");function x(A){var S=A.coordinateSystem;if(S&&S.type!=="view")return;var g=A.getGraph();g.eachNode(function(f){var c=f.getModel();f.setLayout([+c.get("x"),+c.get("y")])}),C(g)}function C(A){A.eachEdge(function(S){var g=S.getModel().get("lineStyle.curveness")||0,f=O.clone(S.node1.getLayout()),c=O.clone(S.node2.getLayout()),o=[f,c];+g&&o.push([(f[0]+c[0])/2-(f[1]-c[1])*g,(f[1]+c[1])/2-(c[0]-f[0])*g]),S.setLayout(o)})}F.simpleLayout=x,F.simpleLayoutEdge=C},"HM/N":function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=d("/SeX"),S=d("OELB"),g=S.parsePercent,f=d("aX7z"),c=f.createScaleByModel,o=f.niceScaleExtent,r=d("IDmD"),i=d("7hqr"),n=i.getStackedDimension;d("ePAk");function e(s,u,h){var p=u.get("center"),m=h.getWidth(),v=h.getHeight();s.cx=g(p[0],m),s.cy=g(p[1],v);var y=s.getRadiusAxis(),E=Math.min(m,v)/2,T=u.get("radius");T==null?T=[0,"100%"]:C.isArray(T)||(T=[0,T]),T=[g(T[0],E),g(T[1],E)],y.inverse?y.setExtent(T[1],T[0]):y.setExtent(T[0],T[1])}function l(s,u){var h=this,p=h.getAngleAxis(),m=h.getRadiusAxis();if(p.scale.setExtent(Infinity,-Infinity),m.scale.setExtent(Infinity,-Infinity),s.eachSeries(function(E){if(E.coordinateSystem===h){var T=E.getData();C.each(T.mapDimension("radius",!0),function(b){m.scale.unionExtentFromData(T,n(T,b))}),C.each(T.mapDimension("angle",!0),function(b){p.scale.unionExtentFromData(T,n(T,b))})}}),o(p.scale,p.model),o(m.scale,m.model),p.type==="category"&&!p.onBand){var v=p.getExtent(),y=360/p.scale.count();p.inverse?v[1]+=y:v[1]-=y,p.setExtent(v[0],v[1])}}function t(s,u){if(s.type=u.get("type"),s.scale=c(u),s.onBand=u.get("boundaryGap")&&s.type==="category",s.inverse=u.get("inverse"),u.mainType==="angleAxis"){s.inverse^=u.get("clockwise");var h=u.get("startAngle");s.setExtent(h,h+(s.inverse?-360:360))}u.axis=s,s.model=u}var a={dimensions:A.prototype.dimensions,create:function(s,u){var h=[];return s.eachComponent("polar",function(p,m){var v=new A(m);v.update=l;var y=v.getRadiusAxis(),E=v.getAngleAxis(),T=p.findAxisModel("radiusAxis"),b=p.findAxisModel("angleAxis");t(y,T),t(E,b),e(v,p,u),h.push(v),p.coordinateSystem=v,v.model=p}),s.eachSeries(function(p){if(p.get("coordinateSystem")==="polar"){var m=s.queryComponents({mainType:"polar",index:p.get("polarIndex"),id:p.get("polarId")})[0];p.coordinateSystem=m.coordinateSystem}}),h}};r.register("polar",a)},HQEm:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("Sj0X"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},HjIi:function(H,F,d){var O=d("bYtY"),x=d("OELB"),C=x.parsePercent,A=d("7hqr"),S=A.isDimensionStacked;function g(i){return i.get("stack")||"__ec_stack_"+i.seriesIndex}function f(i,n){return n.dim+i.model.componentIndex}function c(i,n,e){var l={},t=o(O.filter(n.getSeriesByType(i),function(a){return!n.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));n.eachSeriesByType(i,function(a){if(a.coordinateSystem.type!=="polar")return;var s=a.getData(),u=a.coordinateSystem,h=u.getBaseAxis(),p=f(u,h),m=g(a),v=t[p][m],y=v.offset,E=v.width,T=u.getOtherAxis(h),b=a.coordinateSystem.cx,w=a.coordinateSystem.cy,_=a.get("barMinHeight")||0,I=a.get("barMinAngle")||0;l[m]=l[m]||[];for(var L=s.mapDimension(T.dim),N=s.mapDimension(h.dim),D=S(s,L),R=h.dim!=="radius"||!a.get("roundCap",!0),k=T.getExtent()[0],M=0,U=s.count();M<U;M++){var B=s.get(L,M),j=s.get(N,M),W=B>=0?"p":"n",V=k;D&&(l[m][j]||(l[m][j]={p:k,n:k}),V=l[m][j][W]);var z,J,Z,de;if(T.dim==="radius"){var ie=T.dataToRadius(B)-k,ve=h.dataToAngle(j);Math.abs(ie)<_&&(ie=(ie<0?-1:1)*_),z=V,J=V+ie,Z=ve-y,de=Z-E,D&&(l[m][j][W]=J)}else{var xe=T.dataToAngle(B,R)-k,_e=h.dataToRadius(j);Math.abs(xe)<I&&(xe=(xe<0?-1:1)*I),z=_e+y,J=z+E,Z=V,de=V+xe,D&&(l[m][j][W]=de)}s.setItemLayout(M,{cx:b,cy:w,r0:z,r:J,startAngle:-Z*Math.PI/180,endAngle:-de*Math.PI/180})}},this)}function o(i,n){var e={};O.each(i,function(t,a){var s=t.getData(),u=t.coordinateSystem,h=u.getBaseAxis(),p=f(u,h),m=h.getExtent(),v=h.type==="category"?h.getBandWidth():Math.abs(m[1]-m[0])/s.count(),y=e[p]||{bandWidth:v,remainedWidth:v,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},E=y.stacks;e[p]=y;var T=g(t);E[T]||y.autoWidthCount++,E[T]=E[T]||{width:0,maxWidth:0};var b=C(t.get("barWidth"),v),w=C(t.get("barMaxWidth"),v),_=t.get("barGap"),I=t.get("barCategoryGap");b&&!E[T].width&&(b=Math.min(y.remainedWidth,b),E[T].width=b,y.remainedWidth-=b),w&&(E[T].maxWidth=w),_!=null&&(y.gap=_),I!=null&&(y.categoryGap=I)});var l={};return O.each(e,function(t,a){l[a]={};var s=t.stacks,u=t.bandWidth,h=C(t.categoryGap,u),p=C(t.gap,1),m=t.remainedWidth,v=t.autoWidthCount,y=(m-h)/(v+(v-1)*p);y=Math.max(y,0),O.each(s,function(w,_){var I=w.maxWidth;I&&I<y&&(I=Math.min(I,m),w.width&&(I=Math.min(I,w.width)),m-=I,w.width=I,v--)}),y=(m-h)/(v+(v-1)*p),y=Math.max(y,0);var E=0,T;O.each(s,function(w,_){w.width||(w.width=y),T=w,E+=w.width*(1+p)}),T&&(E-=T.width*p);var b=-E/2;O.each(s,function(w,_){l[a][_]=l[a][_]||{offset:b,width:w.width},b+=w.width*(1+p)})}),l}var r=c;H.exports=r},HjOm:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O={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"},x=O;F.default=x},Hw7h:function(H,F,d){var O=d("y+Vt"),x=O.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(C,A){var S=Math.cos,g=Math.sin,f=A.r,c=A.width,o=A.angle,r=A.x-S(o)*c*(c>=f/3?1:2),i=A.y-g(o)*c*(c>=f/3?1:2);o=A.angle-Math.PI/2,C.moveTo(r,i),C.lineTo(A.x+S(o)*c,A.y+g(o)*c),C.lineTo(A.x+S(A.angle)*f,A.y+g(A.angle)*f),C.lineTo(A.x-S(o)*c,A.y-g(o)*c),C.lineTo(r,i);return}});H.exports=x},Hxpc:function(H,F,d){var O=d("bYtY"),x=d("4NO4"),C=d("bLfw"),A=d("Qxkt"),S=d("cCMj"),g=d("7uqq"),f=C.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(o){C.prototype.init.apply(this,arguments),x.defaultEmphasis(o,"label",["show"])},optionUpdated:function(){var o=this.option,r=this;o.regions=g.getFilledRegions(o.regions,o.map,o.nameMap),this._optionModelMap=O.reduce(o.regions||[],function(i,n){return n.name&&i.set(n.name,new A(n,r)),i},O.createHashMap()),this.updateSelectedMap(o.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(o){return this._optionModelMap.get(o)||new A(null,this,this.ecModel)},getFormattedLabel:function(o,r){var i=this.getRegionModel(o),n=i.get("label"+(r==="normal"?".":r+".")+"formatter"),e={name:o};if(typeof n=="function")return e.status=r,n(e);if(typeof n=="string")return n.replace("{a}",o!=null?o:"")},setZoom:function(o){this.option.zoom=o},setCenter:function(o){this.option.center=o}});O.mixin(f,S);var c=f;H.exports=c},"I+77":function(H,F,d){var O=d("ProS");d("h54F"),d("lwQL"),d("10cm");var x=d("Z1r0"),C=d("f5Yq"),A=d("KUOm"),S=d("3m61"),g=d("01d+"),f=d("rdor"),c=d("WGYa"),o=d("ewwo");O.registerProcessor(x),O.registerVisual(C("graph","circle",null)),O.registerVisual(A),O.registerVisual(S),O.registerLayout(g),O.registerLayout(O.PRIORITY.VISUAL.POST_CHART_LAYOUT,f),O.registerLayout(c),O.registerCoordinateSystem("graphView",{create:o})},"I+Bx":function(H,F,d){var O=d("bYtY"),x=d("eIcI"),C=d("ieMj"),A=d("OELB"),S=d("aX7z"),g=S.getScaleExtent,f=S.niceScaleExtent,c=d("IDmD"),o=d("jCoz");function r(n,e,l){this._model=n,this.dimensions=[],this._indicatorAxes=O.map(n.getIndicatorModels(),function(t,a){var s="indicator_"+a,u=new x(s,t.get("axisType")==="log"?new o:new C);return u.name=t.get("name"),u.model=t,t.axis=u,this.dimensions.push(s),u},this),this.resize(n,l),this.cx,this.cy,this.r,this.r0,this.startAngle}r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(n,e){var l=this._indicatorAxes[e];return this.coordToPoint(l.dataToCoord(n),e)},r.prototype.coordToPoint=function(n,e){var l=this._indicatorAxes[e],t=l.angle,a=this.cx+n*Math.cos(t),s=this.cy-n*Math.sin(t);return[a,s]},r.prototype.pointToData=function(n){var e=n[0]-this.cx,l=n[1]-this.cy,t=Math.sqrt(e*e+l*l);e/=t,l/=t;for(var a=Math.atan2(-l,e),s=Infinity,u,h=-1,p=0;p<this._indicatorAxes.length;p++){var m=this._indicatorAxes[p],v=Math.abs(a-m.angle);v<s&&(u=m,h=p,s=v)}return[h,+(u&&u.coordToData(t))]},r.prototype.resize=function(n,e){var l=n.get("center"),t=e.getWidth(),a=e.getHeight(),s=Math.min(t,a)/2;this.cx=A.parsePercent(l[0],t),this.cy=A.parsePercent(l[1],a),this.startAngle=n.get("startAngle")*Math.PI/180;var u=n.get("radius");(typeof u=="string"||typeof u=="number")&&(u=[0,u]),this.r0=A.parsePercent(u[0],s),this.r=A.parsePercent(u[1],s),O.each(this._indicatorAxes,function(h,p){h.setExtent(this.r0,this.r);var m=this.startAngle+p*Math.PI*2/this._indicatorAxes.length;m=Math.atan2(Math.sin(m),Math.cos(m)),h.angle=m},this)},r.prototype.update=function(n,e){var l=this._indicatorAxes,t=this._model;O.each(l,function(u){u.scale.setExtent(Infinity,-Infinity)}),n.eachSeriesByType("radar",function(u,h){if(u.get("coordinateSystem")!=="radar"||n.getComponent("radar",u.get("radarIndex"))!==t)return;var p=u.getData();O.each(l,function(m){m.scale.unionExtentFromData(p,p.mapDimension(m.dim))})},this);var a=t.get("splitNumber");function s(u){var h=Math.pow(10,Math.floor(Math.log(u)/Math.LN10)),p=u/h;return p===2?p=5:p*=2,p*h}O.each(l,function(u,h){var p=g(u.scale,u.model).extent;f(u.scale,u.model);var m=u.model,v=u.scale,y=m.getMin(),E=m.getMax(),T=v.getInterval();if(y!=null&&E!=null)v.setExtent(+y,+E),v.setInterval((E-y)/a);else if(y!=null){var b;do b=y+T*a,v.setExtent(+y,b),v.setInterval(T),T=s(T);while(b<p[1]&&isFinite(b)&&isFinite(p[1]))}else if(E!=null){var w;do w=E-T*a,v.setExtent(w,+E),v.setInterval(T),T=s(T);while(w>p[0]&&isFinite(w)&&isFinite(p[0]))}else{var _=v.getTicks().length-1;_>a&&(T=s(T));var b=Math.ceil(p[1]/T)*T,w=A.round(b-T*a);v.setExtent(w,b),v.setInterval(T)}})},r.dimensions=[],r.create=function(n,e){var l=[];return n.eachComponent("radar",function(t){var a=new r(t,n,e);l.push(a),t.coordinateSystem=a}),n.eachSeriesByType("radar",function(t){t.get("coordinateSystem")==="radar"&&(t.coordinateSystem=l[t.get("radarIndex")||0])}),l},c.register("radar",r);var i=r;H.exports=i},"I3/A":function(H,F,d){var O=d("bYtY"),x=d("YXkt"),C=d("c2i1"),A=d("Mdki"),S=d("sdST"),g=d("IDmD"),f=d("MwEJ");function c(o,r,i,n,e){for(var l=new C(n),t=0;t<o.length;t++)l.addNode(O.retrieve(o[t].id,o[t].name,t),t);for(var a=[],s=[],u=0,t=0;t<r.length;t++){var h=r[t],p=h.source,m=h.target;l.addEdge(p,m,u)&&(s.push(h),a.push(O.retrieve(h.id,p+" > "+m)),u++)}var v=i.get("coordinateSystem"),y;if(v==="cartesian2d"||v==="polar")y=f(o,i);else{var E=g.get(v),T=E&&E.type!=="view"?E.dimensions||[]:[];O.indexOf(T,"value")<0&&T.concat(["value"]);var b=S(o,{coordDimensions:T});y=new x(b,i),y.initData(o)}var w=new x(["value"],i);return w.initData(s,a),e&&e(y,w),A({mainData:y,struct:l,structAttr:"graph",datas:{node:y,edge:w},datasAttr:{node:"data",edge:"edgeData"}}),l.update(),l}H.exports=c},I8Z2:function(H,F,d){"use strict";d.d(F,"a",function(){return A}),d.d(F,"b",function(){return e}),d.d(F,"c",function(){return t});var O=d("q1tI"),x=function(){var a=function(u,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,m){p.__proto__=m}||function(p,m){for(var v in m)m.hasOwnProperty(v)&&(p[v]=m[v])},a(u,h)};return function(s,u){a(s,u);function h(){this.constructor=s}s.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}}(),C=O.createContext(null),A=function(a){x(s,a);function s(){return a!==null&&a.apply(this,arguments)||this}return s.prototype.render=function(){return O.createElement(C.Provider,{value:this.props.store},this.props.children)},s}(O.Component),S=d("Gytx"),g=d.n(S),f=d("2mql"),c=d.n(f),o=function(){var a=function(u,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,m){p.__proto__=m}||function(p,m){for(var v in m)m.hasOwnProperty(v)&&(p[v]=m[v])},a(u,h)};return function(s,u){a(s,u);function h(){this.constructor=s}s.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}}(),r=function(){return r=Object.assign||function(a){for(var s,u=1,h=arguments.length;u<h;u++){s=arguments[u];for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&(a[p]=s[p])}return a},r.apply(this,arguments)};function i(a){return a.displayName||a.name||"Component"}var n=function(){return{}};function e(a,s){s===void 0&&(s={});var u=!!a,h=a||n;return function(m){var v=function(E){o(T,E);function T(b,w){var _=E.call(this,b,w)||this;return _.unsubscribe=null,_.handleChange=function(){if(!_.unsubscribe)return;var I=h(_.store.getState(),_.props);_.setState({subscribed:I})},_.store=_.context,_.state={subscribed:h(_.store.getState(),b),store:_.store,props:b},_}return T.getDerivedStateFromProps=function(b,w){return a&&a.length===2&&b!==w.props?{subscribed:h(w.store.getState(),b),props:b}:{props:b}},T.prototype.componentDidMount=function(){this.trySubscribe()},T.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},T.prototype.shouldComponentUpdate=function(b,w){return!g()(this.props,b)||!g()(this.state.subscribed,w.subscribed)},T.prototype.trySubscribe=function(){u&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},T.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},T.prototype.render=function(){var b=r(r(r({},this.props),this.state.subscribed),{store:this.store});return O.createElement(m,r({},b,{ref:this.props.miniStoreForwardedRef}))},T.displayName="Connect("+i(m)+")",T.contextType=C,T}(O.Component);if(s.forwardRef){var y=O.forwardRef(function(E,T){return O.createElement(v,r({},E,{miniStoreForwardedRef:T}))});return c()(y,m)}return c()(v,m)}}var l=function(){return l=Object.assign||function(a){for(var s,u=1,h=arguments.length;u<h;u++){s=arguments[u];for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&(a[p]=s[p])}return a},l.apply(this,arguments)};function t(a){var s=a,u=[];function h(v){s=l(l({},s),v);for(var y=0;y<u.length;y++)u[y]()}function p(){return s}function m(v){return u.push(v),function(){var E=u.indexOf(v);u.splice(E,1)}}return{setState:h,getState:p,subscribe:m}}},"I9Y+":function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("4xFK")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="DoubleRightOutlined";var c=A.forwardRef(f);F.default=c},ICMv:function(H,F,d){var O=d("bYtY"),x={getMin:function(C){var A=this.option,S=!C&&A.rangeStart!=null?A.rangeStart:A.min;return this.axis&&S!=null&&S!=="dataMin"&&typeof S!="function"&&!O.eqNaN(S)&&(S=this.axis.scale.parse(S)),S},getMax:function(C){var A=this.option,S=!C&&A.rangeEnd!=null?A.rangeEnd:A.max;return this.axis&&S!=null&&S!=="dataMax"&&typeof S!="function"&&!O.eqNaN(S)&&(S=this.axis.scale.parse(S)),S},getNeedCrossZero:function(){var C=this.option;return C.rangeStart!=null||C.rangeEnd!=null?!1:!C.scale},getCoordSysModel:O.noop,setRange:function(C,A){this.option.rangeStart=C,this.option.rangeEnd=A},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};H.exports=x},"ID/q":function(H,F,d){"use strict";d.d(F,"a",function(){return A});var O=d("cDf5"),x=d.n(O);function C(S,g){typeof S=="function"?S(g):x()(S)==="object"&&S&&"current"in S&&(S.current=g)}function A(){for(var S=arguments.length,g=new Array(S),f=0;f<S;f++)g[f]=arguments[f];return function(c){g.forEach(function(o){C(o,c)})}}},IDmD:function(H,F,d){var O=d("bYtY"),x={};function C(){this._coordinateSystems=[]}C.prototype={constructor:C,create:function(S,g){var f=[];O.each(x,function(c,o){var r=c.create(S,g);f=f.concat(r||[])}),this._coordinateSystems=f},update:function(S,g){O.each(this._coordinateSystems,function(f){f.update&&f.update(S,g)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},C.register=function(S,g){x[S]=g},C.get=function(S){return x[S]};var A=C;H.exports=A},IMiH:function(H,F,d){var O=d("Sj9i"),x=d("QBsz"),C=d("4mN7"),A=d("mFDi"),S=d("LPTA"),g=S.devicePixelRatio,f={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},c=[],o=[],r=[],i=[],n=Math.min,e=Math.max,l=Math.cos,t=Math.sin,a=Math.sqrt,s=Math.abs,u=typeof Float32Array!="undefined",h=function(v){this._saveData=!(v||!1),this._saveData&&(this.data=[]),this._ctx=null};h.prototype={constructor:h,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(v,y,E){E=E||0,this._ux=s(E/g/v)||0,this._uy=s(E/g/y)||0},getContext:function(){return this._ctx},beginPath:function(v){return this._ctx=v,v&&v.beginPath(),v&&(this.dpr=v.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(v,y){return this.addData(f.M,v,y),this._ctx&&this._ctx.moveTo(v,y),this._x0=v,this._y0=y,this._xi=v,this._yi=y,this},lineTo:function(v,y){var E=s(v-this._xi)>this._ux||s(y-this._yi)>this._uy||this._len<5;return this.addData(f.L,v,y),this._ctx&&E&&(this._needsDash()?this._dashedLineTo(v,y):this._ctx.lineTo(v,y)),E&&(this._xi=v,this._yi=y),this},bezierCurveTo:function(v,y,E,T,b,w){return this.addData(f.C,v,y,E,T,b,w),this._ctx&&(this._needsDash()?this._dashedBezierTo(v,y,E,T,b,w):this._ctx.bezierCurveTo(v,y,E,T,b,w)),this._xi=b,this._yi=w,this},quadraticCurveTo:function(v,y,E,T){return this.addData(f.Q,v,y,E,T),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(v,y,E,T):this._ctx.quadraticCurveTo(v,y,E,T)),this._xi=E,this._yi=T,this},arc:function(v,y,E,T,b,w){return this.addData(f.A,v,y,E,E,T,b-T,0,w?0:1),this._ctx&&this._ctx.arc(v,y,E,T,b,w),this._xi=l(b)*E+v,this._yi=t(b)*E+y,this},arcTo:function(v,y,E,T,b){return this._ctx&&this._ctx.arcTo(v,y,E,T,b),this},rect:function(v,y,E,T){return this._ctx&&this._ctx.rect(v,y,E,T),this.addData(f.R,v,y,E,T),this},closePath:function(){this.addData(f.Z);var v=this._ctx,y=this._x0,E=this._y0;return v&&(this._needsDash()&&this._dashedLineTo(y,E),v.closePath()),this._xi=y,this._yi=E,this},fill:function(v){v&&v.fill(),this.toStatic()},stroke:function(v){v&&v.stroke(),this.toStatic()},setLineDash:function(v){if(v instanceof Array){this._lineDash=v,this._dashIdx=0;for(var y=0,E=0;E<v.length;E++)y+=v[E];this._dashSum=y}return this},setLineDashOffset:function(v){return this._dashOffset=v,this},len:function(){return this._len},setData:function(v){var y=v.length;!(this.data&&this.data.length===y)&&u&&(this.data=new Float32Array(y));for(var E=0;E<y;E++)this.data[E]=v[E];this._len=y},appendPath:function(v){v instanceof Array||(v=[v]);for(var y=v.length,E=0,T=this._len,b=0;b<y;b++)E+=v[b].len();u&&this.data instanceof Float32Array&&(this.data=new Float32Array(T+E));for(var b=0;b<y;b++)for(var w=v[b].data,_=0;_<w.length;_++)this.data[T++]=w[_];this._len=T},addData:function(v){if(!this._saveData)return;var y=this.data;this._len+arguments.length>y.length&&(this._expandData(),y=this.data);for(var E=0;E<arguments.length;E++)y[this._len++]=arguments[E];this._prevCmd=v},_expandData:function(){if(!(this.data instanceof Array)){for(var v=[],y=0;y<this._len;y++)v[y]=this.data[y];this.data=v}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(v,y){var E=this._dashSum,T=this._dashOffset,b=this._lineDash,w=this._ctx,_=this._xi,I=this._yi,L=v-_,N=y-I,D=a(L*L+N*N),R=_,k=I,M,U=b.length,B;for(L/=D,N/=D,T<0&&(T=E+T),T%=E,R-=T*L,k-=T*N;L>0&&R<=v||L<0&&R>=v||L===0&&(N>0&&k<=y||N<0&&k>=y);){if(B=this._dashIdx,M=b[B],R+=L*M,k+=N*M,this._dashIdx=(B+1)%U,L>0&&R<_||L<0&&R>_||N>0&&k<I||N<0&&k>I)continue;w[B%2?"moveTo":"lineTo"](L>=0?n(R,v):e(R,v),N>=0?n(k,y):e(k,y))}L=R-v,N=k-y,this._dashOffset=-a(L*L+N*N)},_dashedBezierTo:function(v,y,E,T,b,w){var _=this._dashSum,I=this._dashOffset,L=this._lineDash,N=this._ctx,D=this._xi,R=this._yi,k,M,U,B=O.cubicAt,j=0,W=this._dashIdx,V=L.length,z,J,Z=0;for(I<0&&(I=_+I),I%=_,k=0;k<1;k+=.1)M=B(D,v,E,b,k+.1)-B(D,v,E,b,k),U=B(R,y,T,w,k+.1)-B(R,y,T,w,k),j+=a(M*M+U*U);for(;W<V&&!(Z+=L[W],Z>I);W++);for(k=(Z-I)/j;k<=1;)z=B(D,v,E,b,k),J=B(R,y,T,w,k),W%2?N.moveTo(z,J):N.lineTo(z,J),k+=L[W]/j,W=(W+1)%V;W%2!==0&&N.lineTo(b,w),M=b-z,U=w-J,this._dashOffset=-a(M*M+U*U)},_dashedQuadraticTo:function(v,y,E,T){var b=E,w=T;E=(E+2*v)/3,T=(T+2*y)/3,v=(this._xi+2*v)/3,y=(this._yi+2*y)/3,this._dashedBezierTo(v,y,E,T,b,w)},toStatic:function(){var v=this.data;v instanceof Array&&(v.length=this._len,u&&(this.data=new Float32Array(v)))},getBoundingRect:function(){c[0]=c[1]=r[0]=r[1]=Number.MAX_VALUE,o[0]=o[1]=i[0]=i[1]=-Number.MAX_VALUE;for(var v=this.data,y=0,E=0,T=0,b=0,w=0;w<v.length;){var _=v[w++];w===1&&(y=v[w],E=v[w+1],T=y,b=E);switch(_){case f.M:T=v[w++],b=v[w++],y=T,E=b,r[0]=T,r[1]=b,i[0]=T,i[1]=b;break;case f.L:C.fromLine(y,E,v[w],v[w+1],r,i),y=v[w++],E=v[w++];break;case f.C:C.fromCubic(y,E,v[w++],v[w++],v[w++],v[w++],v[w],v[w+1],r,i),y=v[w++],E=v[w++];break;case f.Q:C.fromQuadratic(y,E,v[w++],v[w++],v[w],v[w+1],r,i),y=v[w++],E=v[w++];break;case f.A:var I=v[w++],L=v[w++],N=v[w++],D=v[w++],R=v[w++],k=v[w++]+R;w+=1;var M=1-v[w++];w===1&&(T=l(R)*N+I,b=t(R)*D+L),C.fromArc(I,L,N,D,R,k,M,r,i),y=l(k)*N+I,E=t(k)*D+L;break;case f.R:T=y=v[w++],b=E=v[w++];var U=v[w++],B=v[w++];C.fromLine(T,b,T+U,b+B,r,i);break;case f.Z:y=T,E=b;break}x.min(c,c,r),x.max(o,o,i)}return w===0&&(c[0]=c[1]=o[0]=o[1]=0),new A(c[0],c[1],o[0]-c[0],o[1]-c[1])},rebuildPath:function(v){for(var y=this.data,E,T,b,w,_,I,L=this._ux,N=this._uy,D=this._len,R=0;R<D;){var k=y[R++];R===1&&(b=y[R],w=y[R+1],E=b,T=w);switch(k){case f.M:E=b=y[R++],T=w=y[R++],v.moveTo(b,w);break;case f.L:_=y[R++],I=y[R++],(s(_-b)>L||s(I-w)>N||R===D-1)&&(v.lineTo(_,I),b=_,w=I);break;case f.C:v.bezierCurveTo(y[R++],y[R++],y[R++],y[R++],y[R++],y[R++]),b=y[R-2],w=y[R-1];break;case f.Q:v.quadraticCurveTo(y[R++],y[R++],y[R++],y[R++]),b=y[R-2],w=y[R-1];break;case f.A:var M=y[R++],U=y[R++],B=y[R++],j=y[R++],W=y[R++],V=y[R++],z=y[R++],J=y[R++],Z=B>j?B:j,de=B>j?1:B/j,ie=B>j?j/B:1,ve=Math.abs(B-j)>.001,xe=W+V;ve?(v.translate(M,U),v.rotate(z),v.scale(de,ie),v.arc(0,0,Z,W,xe,1-J),v.scale(1/de,1/ie),v.rotate(-z),v.translate(-M,-U)):v.arc(M,U,Z,W,xe,1-J),R===1&&(E=l(W)*B+M,T=t(W)*j+U),b=l(xe)*B+M,w=t(xe)*j+U;break;case f.R:E=b=y[R],T=w=y[R+1],v.rect(y[R++],y[R++],y[R++],y[R++]);break;case f.Z:v.closePath(),b=E,w=T}}}},h.CMD=f;var p=h;H.exports=p},IUWy:function(H,F){var d={};function O(C,A){d[C]=A}function x(C){return d[C]}F.register=O,F.get=x},IWNH:function(H,F,d){var O=d("T4UG"),x=d("Bsck"),C=d("7aKB"),A=C.encodeHTML,S=d("Qxkt"),g=O.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(f){var c={name:f.name,children:f.data},o=f.leaves||{},r=new S(o,this,this.ecModel),i=x.createTree(c,this,{},n);function n(a){a.wrapMethod("getItemModel",function(s,u){var h=i.getNodeByDataIndex(u);return(!h.children.length||!h.isExpand)&&(s.parentModel=r),s})}var e=0;i.eachNode("preorder",function(a){a.depth>e&&(e=a.depth)});var l=f.expandAndCollapse,t=l&&f.initialTreeDepth>=0?f.initialTreeDepth:e;return i.root.eachNode("preorder",function(a){var s=a.hostTree.data.getRawDataItem(a.dataIndex);a.isExpand=s&&s.collapsed!=null?!s.collapsed:a.depth<=t}),i.data},getOrient:function(){var f=this.get("orient");return f==="horizontal"?f="LR":f==="vertical"&&(f="TB"),f},setZoom:function(f){this.option.zoom=f},setCenter:function(f){this.option.center=f},formatTooltip:function(f){for(var c=this.getData().tree,o=c.root.children[0],r=c.getNodeByDataIndex(f),i=r.getValue(),n=r.name;r&&r!==o;)n=r.parentNode.name+"."+n,r=r.parentNode;return A(n+(isNaN(i)||i==null?"":" : "+i))},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}});H.exports=g},IWp7:function(H,F,d){var O=d("bYtY"),x=d("OELB"),C=d("7aKB"),A=d("lE7J"),S=d("ieMj"),g=S.prototype,f=Math.ceil,c=Math.floor,o=1e3,r=o*60,i=r*60,n=i*24,e=function(s,u,h,p){for(;h<p;){var m=h+p>>>1;s[m][1]<u?h=m+1:p=m}return h},l=S.extend({type:"time",getLabel:function(s){var u=this._stepLvl,h=new Date(s);return C.formatTime(u[0],h,this.getSetting("useUTC"))},niceExtent:function(s){var u=this._extent;if(u[0]===u[1]&&(u[0]-=n,u[1]+=n),u[1]===-Infinity&&u[0]===Infinity){var h=new Date;u[1]=+new Date(h.getFullYear(),h.getMonth(),h.getDate()),u[0]=u[1]-n}this.niceTicks(s.splitNumber,s.minInterval,s.maxInterval);var p=this._interval;s.fixMin||(u[0]=x.round(c(u[0]/p)*p)),s.fixMax||(u[1]=x.round(f(u[1]/p)*p))},niceTicks:function(s,u,h){s=s||10;var p=this._extent,m=p[1]-p[0],v=m/s;u!=null&&v<u&&(v=u),h!=null&&v>h&&(v=h);var y=t.length,E=e(t,v,0,y),T=t[Math.min(E,y-1)],b=T[1];if(T[0]==="year"){var w=m/b,_=x.nice(w/s,!0);b*=_}var I=this.getSetting("useUTC")?0:new Date(+p[0]||+p[1]).getTimezoneOffset()*60*1e3,L=[Math.round(f((p[0]-I)/b)*b+I),Math.round(c((p[1]-I)/b)*b+I)];A.fixExtent(L,p),this._stepLvl=T,this._interval=b,this._niceExtent=L},parse:function(s){return+x.parseDate(s)}});O.each(["contain","normalize"],function(s){l.prototype[s]=function(u){return g[s].call(this,this.parse(u))}});var t=[["hh:mm:ss",o],["hh:mm:ss",o*5],["hh:mm:ss",o*10],["hh:mm:ss",o*15],["hh:mm:ss",o*30],[`hh:mm
|
|
|
MM-dd`,r],[`hh:mm
|
|
|
MM-dd`,r*5],[`hh:mm
|
|
|
MM-dd`,r*10],[`hh:mm
|
|
|
MM-dd`,r*15],[`hh:mm
|
|
|
MM-dd`,r*30],[`hh:mm
|
|
|
MM-dd`,i],[`hh:mm
|
|
|
MM-dd`,i*2],[`hh:mm
|
|
|
MM-dd`,i*6],[`hh:mm
|
|
|
MM-dd`,i*12],[`MM-dd
|
|
|
yyyy`,n],[`MM-dd
|
|
|
yyyy`,n*2],[`MM-dd
|
|
|
yyyy`,n*3],[`MM-dd
|
|
|
yyyy`,n*4],[`MM-dd
|
|
|
yyyy`,n*5],[`MM-dd
|
|
|
yyyy`,n*6],["week",n*7],[`MM-dd
|
|
|
yyyy`,n*10],["week",n*14],["week",n*21],["month",n*31],["week",n*42],["month",n*62],["week",n*70],["quarter",n*95],["month",n*31*4],["month",n*31*5],["half-year",n*380/2],["month",n*31*8],["month",n*31*10],["year",n*380]];l.create=function(s){return new l({useUTC:s.ecModel.get("useUTC")})};var a=l;H.exports=a},IXuL:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("MwEJ"),A=d("T4UG"),S=A.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(g,f){return C(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}});H.exports=S},IXyC:function(H,F,d){var O=d("bYtY"),x=d("bLfw");d("3zoK");var C=x.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(){x.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(A){var S=this.option;A&&O.merge(S,A,!0),this._initDimensions()},contains:function(A,S){var g=A.get("parallelIndex");return g!=null&&S.getComponent("parallel",g)===this},setAxisExpand:function(A){O.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(S){A.hasOwnProperty(S)&&(this.option[S]=A[S])},this)},_initDimensions:function(){var A=this.dimensions=[],S=this.parallelAxisIndex=[],g=O.filter(this.dependentModels.parallelAxis,function(f){return(f.get("parallelIndex")||0)===this.componentIndex},this);O.each(g,function(f){A.push("dim"+f.get("dim")),S.push(f.componentIndex)})}});H.exports=C},Ib8C:function(H,F,d){(function(O){(function(x,C){H.exports=F=C()})(this,function(){var x=x||function(C,A){var S;if(typeof window!="undefined"&&window.crypto&&(S=window.crypto),typeof self!="undefined"&&self.crypto&&(S=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(S=globalThis.crypto),!S&&typeof window!="undefined"&&window.msCrypto&&(S=window.msCrypto),!S&&typeof O!="undefined"&&O.crypto&&(S=O.crypto),!S&&!0)try{S=d(4)}catch(h){}var g=function(){if(S){if(typeof S.getRandomValues=="function")try{return S.getRandomValues(new Uint32Array(1))[0]}catch(p){}if(typeof S.randomBytes=="function")try{return S.randomBytes(4).readInt32LE()}catch(p){}}throw new Error("Native crypto module could not be used to get secure random number.")},f=Object.create||function(){function h(){}return function(p){var m;return h.prototype=p,m=new h,h.prototype=null,m}}(),c={},o=c.lib={},r=o.Base=function(){return{extend:function(p){var m=f(this);return p&&m.mixIn(p),(!m.hasOwnProperty("init")||this.init===m.init)&&(m.init=function(){m.$super.init.apply(this,arguments)}),m.init.prototype=m,m.$super=this,m},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var m in p)p.hasOwnProperty(m)&&(this[m]=p[m]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),i=o.WordArray=r.extend({init:function(p,m){p=this.words=p||[],m!=A?this.sigBytes=m:this.sigBytes=p.length*4},toString:function(p){return(p||e).stringify(this)},concat:function(p){var m=this.words,v=p.words,y=this.sigBytes,E=p.sigBytes;if(this.clamp(),y%4)for(var T=0;T<E;T++){var b=v[T>>>2]>>>24-T%4*8&255;m[y+T>>>2]|=b<<24-(y+T)%4*8}else for(var w=0;w<E;w+=4)m[y+w>>>2]=v[w>>>2];return this.sigBytes+=E,this},clamp:function(){var p=this.words,m=this.sigBytes;p[m>>>2]&=4294967295<<32-m%4*8,p.length=C.ceil(m/4)},clone:function(){var p=r.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var m=[],v=0;v<p;v+=4)m.push(g());return new i.init(m,p)}}),n=c.enc={},e=n.Hex={stringify:function(p){for(var m=p.words,v=p.sigBytes,y=[],E=0;E<v;E++){var T=m[E>>>2]>>>24-E%4*8&255;y.push((T>>>4).toString(16)),y.push((T&15).toString(16))}return y.join("")},parse:function(p){for(var m=p.length,v=[],y=0;y<m;y+=2)v[y>>>3]|=parseInt(p.substr(y,2),16)<<24-y%8*4;return new i.init(v,m/2)}},l=n.Latin1={stringify:function(p){for(var m=p.words,v=p.sigBytes,y=[],E=0;E<v;E++){var T=m[E>>>2]>>>24-E%4*8&255;y.push(String.fromCharCode(T))}return y.join("")},parse:function(p){for(var m=p.length,v=[],y=0;y<m;y++)v[y>>>2]|=(p.charCodeAt(y)&255)<<24-y%4*8;return new i.init(v,m)}},t=n.Utf8={stringify:function(p){try{return decodeURIComponent(escape(l.stringify(p)))}catch(m){throw new Error("Malformed UTF-8 data")}},parse:function(p){return l.parse(unescape(encodeURIComponent(p)))}},a=o.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new i.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=t.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var m,v=this._data,y=v.words,E=v.sigBytes,T=this.blockSize,b=T*4,w=E/b;p?w=C.ceil(w):w=C.max((w|0)-this._minBufferSize,0);var _=w*T,I=C.min(_*4,E);if(_){for(var L=0;L<_;L+=T)this._doProcessBlock(y,L);m=y.splice(0,_),v.sigBytes-=I}return new i.init(m,I)},clone:function(){var p=r.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0}),s=o.Hasher=a.extend({cfg:r.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){a.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){p&&this._append(p);var m=this._doFinalize();return m},blockSize:512/32,_createHelper:function(p){return function(m,v){return new p.init(v).finalize(m)}},_createHmacHelper:function(p){return function(m,v){return new u.HMAC.init(p,v).finalize(m)}}}),u=c.algo={};return c}(Math);return x})}).call(this,d("yLpj"))},ItGF:function(H,F){var d={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?d={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?d={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?d={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:d=x(navigator.userAgent);var O=d;function x(C){var A={},S={},g=C.match(/Firefox\/([\d.]+)/),f=C.match(/MSIE\s([\d.]+)/)||C.match(/Trident\/.+?rv:(([\d.]+))/),c=C.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(C);return g&&(S.firefox=!0,S.version=g[1]),f&&(S.ie=!0,S.version=f[1]),c&&(S.edge=!0,S.version=c[1]),o&&(S.weChat=!0),{browser:S,os:A,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!S.ie&&!S.edge,pointerEventsSupported:"onpointerdown"in window&&(S.edge||S.ie&&S.version>=11),domSupported:typeof document!="undefined"}}H.exports=O},ItS6:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=d("eP3c"),x=C(d("1q3G"));function C(c){return c&&c.__esModule?c:{default:c}}function A(c,o){if(!(c instanceof o))throw new TypeError("Cannot call a class as a function")}function S(c,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(c,i.key,i)}}function g(c,o,r){return o&&S(c.prototype,o),r&&S(c,r),c}var f=function(){function c(){A(this,c),this.strm=new x.default,this.chunkSize=1024*10*10,this.strm.output=new Uint8Array(this.chunkSize),this.windowBits=5,(0,O.inflateInit)(this.strm,this.windowBits)}return g(c,[{key:"setInput",value:function(r){r?(this.strm.input=r,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(r){r>this.chunkSize&&(this.chunkSize=r,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=r;var i=(0,O.inflate)(this.strm,0);if(i<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=r)throw new Error("Incomplete zlib block");return new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)}},{key:"reset",value:function(){(0,O.inflateReset)(this.strm)}}]),c}();F.default=f},Itpr:function(H,F,d){var O=d("+TT/");function x(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var a=[t],s,u;s=a.pop();)if(u=s.children,s.isExpand&&u.length)for(var h=u.length,p=h-1;p>=0;p--){var m=u[p];m.hierNode={defaultAncestor:null,ancestor:m,prelim:0,modifier:0,change:0,shift:0,i:p,thread:null},a.push(m)}}function C(t,a){var s=t.isExpand?t.children:[],u=t.parentNode.children,h=t.hierNode.i?u[t.hierNode.i-1]:null;if(s.length){c(t);var p=(s[0].hierNode.prelim+s[s.length-1].hierNode.prelim)/2;h?(t.hierNode.prelim=h.hierNode.prelim+a(t,h),t.hierNode.modifier=t.hierNode.prelim-p):t.hierNode.prelim=p}else h&&(t.hierNode.prelim=h.hierNode.prelim+a(t,h));t.parentNode.hierNode.defaultAncestor=o(t,h,t.parentNode.hierNode.defaultAncestor||u[0],a)}function A(t){var a=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:a},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function S(t){return arguments.length?t:l}function g(t,a){var s={};return t-=Math.PI/2,s.x=a*Math.cos(t),s.y=a*Math.sin(t),s}function f(t,a){return O.getLayoutRect(t.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})}function c(t){for(var a=t.children,s=a.length,u=0,h=0;--s>=0;){var p=a[s];p.hierNode.prelim+=u,p.hierNode.modifier+=u,h+=p.hierNode.change,u+=p.hierNode.shift+h}}function o(t,a,s,u){if(a){for(var h=t,p=t,m=p.parentNode.children[0],v=a,y=h.hierNode.modifier,E=p.hierNode.modifier,T=m.hierNode.modifier,b=v.hierNode.modifier;v=r(v),p=i(p),v&&p;){h=r(h),m=i(m),h.hierNode.ancestor=t;var w=v.hierNode.prelim+b-p.hierNode.prelim-E+u(v,p);w>0&&(e(n(v,t,s),t,w),E+=w,y+=w),b+=v.hierNode.modifier,E+=p.hierNode.modifier,y+=h.hierNode.modifier,T+=m.hierNode.modifier}v&&!r(h)&&(h.hierNode.thread=v,h.hierNode.modifier+=b-y),p&&!i(m)&&(m.hierNode.thread=p,m.hierNode.modifier+=E-T,s=t)}return s}function r(t){var a=t.children;return a.length&&t.isExpand?a[a.length-1]:t.hierNode.thread}function i(t){var a=t.children;return a.length&&t.isExpand?a[0]:t.hierNode.thread}function n(t,a,s){return t.hierNode.ancestor.parentNode===a.parentNode?t.hierNode.ancestor:s}function e(t,a,s){var u=s/(a.hierNode.i-t.hierNode.i);a.hierNode.change-=u,a.hierNode.shift+=s,a.hierNode.modifier+=s,a.hierNode.prelim+=s,t.hierNode.change+=u}function l(t,a){return t.parentNode===a.parentNode?1:2}F.init=x,F.firstWalk=C,F.secondWalk=A,F.separation=S,F.radialCoordinate=g,F.getViewRect=f},IwbS:function(H,F,d){var O=d("bYtY"),x=d("NC18"),C=d("Qe9p"),A=d("Fofx"),S=d("QBsz"),g=d("y+Vt"),f=d("DN4a"),c=d("Dagg");F.Image=c;var o=d("4fz+");F.Group=o;var r=d("dqUG");F.Text=r;var i=d("2fw6");F.Circle=i;var n=d("SqI9");F.Sector=n;var e=d("RXMa");F.Ring=e;var l=d("h7HQ");F.Polygon=l;var t=d("1Jh7");F.Polyline=t;var a=d("x6Kt");F.Rect=a;var s=d("yxFR");F.Line=s;var u=d("rA99");F.BezierCurve=u;var h=d("jTL6");F.Arc=h;var p=d("1MYJ");F.CompoundPath=p;var m=d("SKnc");F.LinearGradient=m;var v=d("3e3G");F.RadialGradient=v;var y=d("mFDi");F.BoundingRect=y;var E=d("OS9S");F.IncrementalDisplayable=E;var T=d("nPnh"),b=Math.max,w=Math.min,_={},I=1,L={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},N="emphasis",D="normal",R=1,k={},M={};function U(Ut){return g.extend(Ut)}function B(Ut,st){return x.extendFromString(Ut,st)}function j(Ut,st){M[Ut]=st}function W(Ut){if(M.hasOwnProperty(Ut))return M[Ut]}function V(Ut,st,Hr,mn){var In=x.createFromString(Ut,st);return Hr&&(mn==="center"&&(Hr=J(Hr,In.getBoundingRect())),de(In,Hr)),In}function z(Ut,st,Hr){var mn=new c({style:{image:Ut,x:st.x,y:st.y,width:st.width,height:st.height},onload:function(In){if(Hr==="center"){var Yn={width:In.width,height:In.height};mn.setStyle(J(st,Yn))}}});return mn}function J(Ut,st){var Hr=st.width/st.height,mn=Ut.height*Hr,In;mn<=Ut.width?In=Ut.height:(mn=Ut.width,In=mn/Hr);var Yn=Ut.x+Ut.width/2,Mi=Ut.y+Ut.height/2;return{x:Yn-mn/2,y:Mi-In/2,width:mn,height:In}}var Z=x.mergePath;function de(Ut,st){if(!Ut.applyTransform)return;var Hr=Ut.getBoundingRect(),mn=Hr.calculateTransform(st);Ut.applyTransform(mn)}function ie(Ut){return T.subPixelOptimizeLine(Ut.shape,Ut.shape,Ut.style),Ut}function ve(Ut){return T.subPixelOptimizeRect(Ut.shape,Ut.shape,Ut.style),Ut}var xe=T.subPixelOptimize;function _e(Ut){return Ut!=null&&Ut!=="none"}var Ue=O.createHashMap(),fe=0;function ke(Ut){if(typeof Ut!="string")return Ut;var st=Ue.get(Ut);return st||(st=C.lift(Ut,-.1),fe<1e4&&(Ue.set(Ut,st),fe++)),st}function se(Ut){if(!Ut.__hoverStlDirty)return;Ut.__hoverStlDirty=!1;var st=Ut.__hoverStl;if(!st){Ut.__cachedNormalStl=Ut.__cachedNormalZ2=null;return}var Hr=Ut.__cachedNormalStl={};Ut.__cachedNormalZ2=Ut.z2;var mn=Ut.style;for(var In in st)st[In]!=null&&(Hr[In]=mn[In]);Hr.fill=mn.fill,Hr.stroke=mn.stroke}function te(Ut){var st=Ut.__hoverStl;if(!st||Ut.__highlighted)return;var Hr=Ut.__zr,mn=Ut.useHoverLayer&&Hr&&Hr.painter.type==="canvas";if(Ut.__highlighted=mn?"layer":"plain",Ut.isGroup||!Hr&&Ut.useHoverLayer)return;var In=Ut,Yn=Ut.style;mn&&(In=Hr.addHover(Ut),Yn=In.style),Tt(Yn),mn||se(In),Yn.extendFrom(st),Ve(Yn,st,"fill"),Ve(Yn,st,"stroke"),Mt(Yn),mn||(Ut.dirty(!1),Ut.z2+=I)}function Ve(Ut,st,Hr){!_e(st[Hr])&&_e(Ut[Hr])&&(Ut[Hr]=ke(Ut[Hr]))}function ae(Ut){var st=Ut.__highlighted;if(!st)return;if(Ut.__highlighted=!1,Ut.isGroup)return;if(st==="layer")Ut.__zr&&Ut.__zr.removeHover(Ut);else{var Hr=Ut.style,mn=Ut.__cachedNormalStl;mn&&(Tt(Hr),Ut.setStyle(mn),Mt(Hr));var In=Ut.__cachedNormalZ2;In!=null&&Ut.z2-In===I&&(Ut.z2=In)}}function Q(Ut,st,Hr){var mn=D,In=D,Yn;Ut.__highlighted&&(mn=N,Yn=!0),st(Ut,Hr),Ut.__highlighted&&(In=N,Yn=!0),Ut.isGroup&&Ut.traverse(function(Mi){!Mi.isGroup&&st(Mi,Hr)}),Yn&&Ut.__highDownOnUpdate&&Ut.__highDownOnUpdate(mn,In)}function G(Ut,st){st=Ut.__hoverStl=st!==!1&&(Ut.hoverStyle||st||{}),Ut.__hoverStlDirty=!0,Ut.__highlighted&&(Ut.__cachedNormalStl=null,ae(Ut),te(Ut))}function Y(Ut){!Ie(this,Ut)&&!this.__highByOuter&&Q(this,te)}function me(Ut){!Ie(this,Ut)&&!this.__highByOuter&&Q(this,ae)}function ue(Ut){this.__highByOuter|=1<<(Ut||0),Q(this,te)}function Ce(Ut){!(this.__highByOuter&=~(1<<(Ut||0)))&&Q(this,ae)}function Ie(Ut,st){return Ut.__highDownSilentOnTouch&&st.zrByTouch}function ce(Ut,st){Ae(Ut,!0),Q(Ut,G,st)}function Ae(Ut,st){var Hr=st===!1;if(Ut.__highDownSilentOnTouch=Ut.highDownSilentOnTouch,Ut.__highDownOnUpdate=Ut.highDownOnUpdate,!Hr||Ut.__highDownDispatcher){var mn=Hr?"off":"on";Ut[mn]("mouseover",Y)[mn]("mouseout",me),Ut[mn]("emphasis",ue)[mn]("normal",Ce),Ut.__highByOuter=Ut.__highByOuter||0,Ut.__highDownDispatcher=!Hr}}function Te(Ut){return!!(Ut&&Ut.__highDownDispatcher)}function Ge(Ut){var st=k[Ut];return st==null&&R<=32&&(st=k[Ut]=R++),st}function gt(Ut,st,Hr,mn,In,Yn,Mi){In=In||_;var wn=In.labelFetcher,Rn=In.labelDataIndex,kt=In.labelDimIndex,vt=In.labelProp,Re=Hr.getShallow("show"),Ke=mn.getShallow("show"),Pe;(Re||Ke)&&(wn&&(Pe=wn.getFormattedLabel(Rn,"normal",null,kt,vt)),Pe==null&&(Pe=O.isFunction(In.defaultText)?In.defaultText(Rn,In):In.defaultText));var nt=Re?Pe:null,yt=Ke?O.retrieve2(wn?wn.getFormattedLabel(Rn,"emphasis",null,kt,vt):null,Pe):null;(nt!=null||yt!=null)&&(Le(Ut,Hr,Yn,In),Le(st,mn,Mi,In,!0)),Ut.text=nt,st.text=yt}function qe(Ut,st,Hr){var mn=Ut.style;st&&(Tt(mn),Ut.setStyle(st),Mt(mn)),mn=Ut.__hoverStl,Hr&&mn&&(Tt(mn),O.extend(mn,Hr),Mt(mn))}function Le(Ut,st,Hr,mn,In){return $e(Ut,st,mn,In),Hr&&O.extend(Ut,Hr),Ut}function Ot(Ut,st,Hr){var mn={isRectText:!0},In;Hr===!1?In=!0:mn.autoColor=Hr,$e(Ut,st,mn,In)}function $e(Ut,st,Hr,mn){if(Hr=Hr||_,Hr.isRectText){var In;Hr.getTextPosition?In=Hr.getTextPosition(st,mn):(In=st.getShallow("position")||(mn?null:"inside"),In==="outside"&&(In="top")),Ut.textPosition=In,Ut.textOffset=st.getShallow("offset");var Yn=st.getShallow("rotate");Yn!=null&&(Yn*=Math.PI/180),Ut.textRotation=Yn,Ut.textDistance=O.retrieve2(st.getShallow("distance"),mn?null:5)}var Mi=st.ecModel,wn=Mi&&Mi.option.textStyle,Rn=xt(st),kt;if(Rn){kt={};for(var vt in Rn)if(Rn.hasOwnProperty(vt)){var Re=st.getModel(["rich",vt]);Ht(kt[vt]={},Re,wn,Hr,mn)}}return Ut.rich=kt,Ht(Ut,st,wn,Hr,mn,!0),Hr.forceRich&&!Hr.textStyle&&(Hr.textStyle={}),Ut}function xt(Ut){for(var st;Ut&&Ut!==Ut.ecModel;){var Hr=(Ut.option||_).rich;if(Hr){st=st||{};for(var mn in Hr)Hr.hasOwnProperty(mn)&&(st[mn]=1)}Ut=Ut.parentModel}return st}function Ht(Ut,st,Hr,mn,In,Yn){Hr=!In&&Hr||_,Ut.textFill=tr(st.getShallow("color"),mn)||Hr.color,Ut.textStroke=tr(st.getShallow("textBorderColor"),mn)||Hr.textBorderColor,Ut.textStrokeWidth=O.retrieve2(st.getShallow("textBorderWidth"),Hr.textBorderWidth),In||(Yn&&(Ut.insideRollbackOpt=mn,Mt(Ut)),Ut.textFill==null&&(Ut.textFill=mn.autoColor)),Ut.fontStyle=st.getShallow("fontStyle")||Hr.fontStyle,Ut.fontWeight=st.getShallow("fontWeight")||Hr.fontWeight,Ut.fontSize=st.getShallow("fontSize")||Hr.fontSize,Ut.fontFamily=st.getShallow("fontFamily")||Hr.fontFamily,Ut.textAlign=st.getShallow("align"),Ut.textVerticalAlign=st.getShallow("verticalAlign")||st.getShallow("baseline"),Ut.textLineHeight=st.getShallow("lineHeight"),Ut.textWidth=st.getShallow("width"),Ut.textHeight=st.getShallow("height"),Ut.textTag=st.getShallow("tag"),(!Yn||!mn.disableBox)&&(Ut.textBackgroundColor=tr(st.getShallow("backgroundColor"),mn),Ut.textPadding=st.getShallow("padding"),Ut.textBorderColor=tr(st.getShallow("borderColor"),mn),Ut.textBorderWidth=st.getShallow("borderWidth"),Ut.textBorderRadius=st.getShallow("borderRadius"),Ut.textBoxShadowColor=st.getShallow("shadowColor"),Ut.textBoxShadowBlur=st.getShallow("shadowBlur"),Ut.textBoxShadowOffsetX=st.getShallow("shadowOffsetX"),Ut.textBoxShadowOffsetY=st.getShallow("shadowOffsetY")),Ut.textShadowColor=st.getShallow("textShadowColor")||Hr.textShadowColor,Ut.textShadowBlur=st.getShallow("textShadowBlur")||Hr.textShadowBlur,Ut.textShadowOffsetX=st.getShallow("textShadowOffsetX")||Hr.textShadowOffsetX,Ut.textShadowOffsetY=st.getShallow("textShadowOffsetY")||Hr.textShadowOffsetY}function tr(Ut,st){return Ut!=="auto"?Ut:st&&st.autoColor?st.autoColor:null}function Mt(Ut){var st=Ut.textPosition,Hr=Ut.insideRollbackOpt,mn;if(Hr&&Ut.textFill==null){var In=Hr.autoColor,Yn=Hr.isRectText,Mi=Hr.useInsideStyle,wn=Mi!==!1&&(Mi===!0||Yn&&st&&typeof st=="string"&&st.indexOf("inside")>=0),Rn=!wn&&In!=null;(wn||Rn)&&(mn={textFill:Ut.textFill,textStroke:Ut.textStroke,textStrokeWidth:Ut.textStrokeWidth}),wn&&(Ut.textFill="#fff",Ut.textStroke==null&&(Ut.textStroke=In,Ut.textStrokeWidth==null&&(Ut.textStrokeWidth=2))),Rn&&(Ut.textFill=In)}Ut.insideRollback=mn}function Tt(Ut){var st=Ut.insideRollback;st&&(Ut.textFill=st.textFill,Ut.textStroke=st.textStroke,Ut.textStrokeWidth=st.textStrokeWidth,Ut.insideRollback=null)}function Xe(Ut,st){var Hr=st&&st.getModel("textStyle");return O.trim([Ut.fontStyle||Hr&&Hr.getShallow("fontStyle")||"",Ut.fontWeight||Hr&&Hr.getShallow("fontWeight")||"",(Ut.fontSize||Hr&&Hr.getShallow("fontSize")||12)+"px",Ut.fontFamily||Hr&&Hr.getShallow("fontFamily")||"sans-serif"].join(" "))}function oe(Ut,st,Hr,mn,In,Yn){typeof In=="function"&&(Yn=In,In=null);var Mi=mn&&mn.isAnimationEnabled();if(Mi){var wn=Ut?"Update":"",Rn=mn.getShallow("animationDuration"+wn),kt=mn.getShallow("animationEasing"+wn),vt=mn.getShallow("animationDelay"+wn);typeof vt=="function"&&(vt=vt(In,mn.getAnimationDelayParams?mn.getAnimationDelayParams(st,In):null)),typeof Rn=="function"&&(Rn=Rn(In)),Rn>0?st.animateTo(Hr,Rn,vt||0,kt,Yn,!!Yn):(st.stopAnimation(),st.attr(Hr),Yn&&Yn())}else st.stopAnimation(),st.attr(Hr),Yn&&Yn()}function X(Ut,st,Hr,mn,In){oe(!0,Ut,st,Hr,mn,In)}function Be(Ut,st,Hr,mn,In){oe(!1,Ut,st,Hr,mn,In)}function Ee(Ut,st){for(var Hr=A.identity([]);Ut&&Ut!==st;)A.mul(Hr,Ut.getLocalTransform(),Hr),Ut=Ut.parent;return Hr}function ee(Ut,st,Hr){return st&&!O.isArrayLike(st)&&(st=f.getLocalTransform(st)),Hr&&(st=A.invert([],st)),S.applyTransform([],Ut,st)}function lt(Ut,st,Hr){var mn=st[4]===0||st[5]===0||st[0]===0?1:Math.abs(2*st[4]/st[0]),In=st[4]===0||st[5]===0||st[2]===0?1:Math.abs(2*st[4]/st[2]),Yn=[Ut==="left"?-mn:Ut==="right"?mn:0,Ut==="top"?-In:Ut==="bottom"?In:0];return Yn=ee(Yn,st,Hr),Math.abs(Yn[0])>Math.abs(Yn[1])?Yn[0]>0?"right":"left":Yn[1]>0?"bottom":"top"}function Ct(Ut,st,Hr,mn){if(!Ut||!st)return;function In(wn){var Rn={};return wn.traverse(function(kt){!kt.isGroup&&kt.anid&&(Rn[kt.anid]=kt)}),Rn}function Yn(wn){var Rn={position:S.clone(wn.position),rotation:wn.rotation};return wn.shape&&(Rn.shape=O.extend({},wn.shape)),Rn}var Mi=In(Ut);st.traverse(function(wn){if(!wn.isGroup&&wn.anid){var Rn=Mi[wn.anid];if(Rn){var kt=Yn(wn);wn.attr(Yn(Rn)),X(wn,kt,Hr,wn.dataIndex)}}})}function dt(Ut,st){return O.map(Ut,function(Hr){var mn=Hr[0];mn=b(mn,st.x),mn=w(mn,st.x+st.width);var In=Hr[1];return In=b(In,st.y),In=w(In,st.y+st.height),[mn,In]})}function _t(Ut,st){var Hr=b(Ut.x,st.x),mn=w(Ut.x+Ut.width,st.x+st.width),In=b(Ut.y,st.y),Yn=w(Ut.y+Ut.height,st.y+st.height);if(mn>=Hr&&Yn>=In)return{x:Hr,y:In,width:mn-Hr,height:Yn-In}}function ir(Ut,st,Hr){st=O.extend({rectHover:!0},st);var mn=st.style={strokeNoScale:!0};if(Hr=Hr||{x:-1,y:-1,width:2,height:2},Ut)return Ut.indexOf("image://")===0?(mn.image=Ut.slice(8),O.defaults(mn,Hr),new c(st)):V(Ut.replace("path://",""),st,Hr,"center")}function $r(Ut,st,Hr,mn,In){for(var Yn=0,Mi=In[In.length-1];Yn<In.length;Yn++){var wn=In[Yn];if(nr(Ut,st,Hr,mn,wn[0],wn[1],Mi[0],Mi[1]))return!0;Mi=wn}}function nr(Ut,st,Hr,mn,In,Yn,Mi,wn){var Rn=Hr-Ut,kt=mn-st,vt=Mi-In,Re=wn-Yn,Ke=lr(vt,Re,Rn,kt);if(zt(Ke))return!1;var Pe=Ut-In,nt=st-Yn,yt=lr(Pe,nt,Rn,kt)/Ke;if(yt<0||yt>1)return!1;var Dt=lr(Pe,nt,vt,Re)/Ke;return!(Dt<0||Dt>1)}function lr(Ut,st,Hr,mn){return Ut*mn-Hr*st}function zt(Ut){return Ut<=1e-6&&Ut>=-1e-6}j("circle",i),j("sector",n),j("ring",e),j("polygon",l),j("polyline",t),j("rect",a),j("line",s),j("bezierCurve",u),j("arc",h),F.Z2_EMPHASIS_LIFT=I,F.CACHED_LABEL_STYLE_PROPERTIES=L,F.extendShape=U,F.extendPath=B,F.registerShape=j,F.getShapeClass=W,F.makePath=V,F.makeImage=z,F.mergePath=Z,F.resizePath=de,F.subPixelOptimizeLine=ie,F.subPixelOptimizeRect=ve,F.subPixelOptimize=xe,F.setElementHoverStyle=G,F.setHoverStyle=ce,F.setAsHighDownDispatcher=Ae,F.isHighDownDispatcher=Te,F.getHighlightDigit=Ge,F.setLabelStyle=gt,F.modifyLabelStyle=qe,F.setTextStyle=Le,F.setText=Ot,F.getFont=Xe,F.updateProps=X,F.initProps=Be,F.getTransform=Ee,F.applyTransform=ee,F.transformDirection=lt,F.groupTransition=Ct,F.clipPointsByRect=dt,F.clipRectByRect=_t,F.createIcon=ir,F.linePolygonIntersect=$r,F.lineLineIntersect=nr},IyUQ:function(H,F,d){var O=d("bYtY"),x=d("YH21"),C=d("IwbS"),A=d("iLNv"),S=d("fc+c"),g=d("OELB"),f=d("+TT/"),c=d("72pK"),o=C.Rect,r=g.linearMap,i=g.asc,n=O.bind,e=O.each,l=7,t=1,a=30,s="horizontal",u="vertical",h=5,p=["line","bar","candlestick","scatter"],m=S.extend({type:"dataZoom.slider",init:function(T,b){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=b},render:function(T,b,w,_){if(m.superApply(this,"render",arguments),A.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=T.get("orient"),this.dataZoomModel.get("show")===!1){this.group.removeAll();return}(!_||_.type!=="dataZoom"||_.from!==this.uid)&&this._buildView(),this._updateView()},remove:function(){m.superApply(this,"remove",arguments),A.clear(this,"_dispatchZoomAction")},dispose:function(){m.superApply(this,"dispose",arguments),A.clear(this,"_dispatchZoomAction")},_buildView:function(){var T=this.group;T.removeAll(),this._resetLocation(),this._resetInterval();var b=this._displayables.barGroup=new C.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),T.add(b),this._positionGroup()},_resetLocation:function(){var T=this.dataZoomModel,b=this.api,w=this._findCoordRect(),_={width:b.getWidth(),height:b.getHeight()},I=this._orient===s?{right:_.width-w.x-w.width,top:_.height-a-l,width:w.width,height:a}:{right:l,top:w.y,width:a,height:w.height},L=f.getLayoutParams(T.option);O.each(["right","top","width","height"],function(D){L[D]==="ph"&&(L[D]=I[D])});var N=f.getLayoutRect(L,_,T.padding);this._location={x:N.x,y:N.y},this._size=[N.width,N.height],this._orient===u&&this._size.reverse()},_positionGroup:function(){var T=this.group,b=this._location,w=this._orient,_=this.dataZoomModel.getFirstTargetAxisModel(),I=_&&_.get("inverse"),L=this._displayables.barGroup,N=(this._dataShadowInfo||{}).otherAxisInverse;L.attr(w===s&&!I?{scale:N?[1,1]:[1,-1]}:w===s&&I?{scale:N?[-1,1]:[-1,-1]}:w===u&&!I?{scale:N?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:N?[-1,-1]:[-1,1],rotation:Math.PI/2});var D=T.getBoundingRect([L]);T.attr("position",[b.x-D.x,b.y-D.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var T=this.dataZoomModel,b=this._size,w=this._displayables.barGroup;w.add(new o({silent:!0,shape:{x:0,y:0,width:b[0],height:b[1]},style:{fill:T.get("backgroundColor")},z2:-40})),w.add(new o({shape:{x:0,y:0,width:b[0],height:b[1]},style:{fill:"transparent"},z2:0,onclick:O.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var T=this._dataShadowInfo=this._prepareDataShadowInfo();if(!T)return;var b=this._size,w=T.series,_=w.getRawData(),I=w.getShadowDim?w.getShadowDim():T.otherDim;if(I==null)return;var L=_.getDataExtent(I),N=(L[1]-L[0])*.3;L=[L[0]-N,L[1]+N];var D=[0,b[1]],R=[0,b[0]],k=[[b[0],0],[0,0]],M=[],U=R[1]/(_.count()-1),B=0,j=Math.round(_.count()/b[0]),W;_.each([I],function(z,J){if(j>0&&J%j){B+=U;return}var Z=z==null||isNaN(z)||z==="",de=Z?0:r(z,L,D,!0);Z&&!W&&J?(k.push([k[k.length-1][0],0]),M.push([M[M.length-1][0],0])):!Z&&W&&(k.push([B,0]),M.push([B,0])),k.push([B,de]),M.push([B,de]),B+=U,W=Z});var V=this.dataZoomModel;this._displayables.barGroup.add(new C.Polygon({shape:{points:k},style:O.defaults({fill:V.get("dataBackgroundColor")},V.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new C.Polyline({shape:{points:M},style:V.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))},_prepareDataShadowInfo:function(){var T=this.dataZoomModel,b=T.get("showDataShadow");if(b===!1)return;var w,_=this.ecModel;return T.eachTargetAxis(function(I,L){var N=T.getAxisProxy(I.name,L).getTargetSeriesModels();O.each(N,function(D){if(w)return;if(b!==!0&&O.indexOf(p,D.get("type"))<0)return;var R=_.getComponent(I.axis,L).axis,k=v(I.name),M,U=D.coordinateSystem;k!=null&&U.getOtherAxis&&(M=U.getOtherAxis(R).inverse),k=D.getData().mapDimension(k),w={thisAxis:R,series:D,thisDim:I.name,otherDim:k,otherAxisInverse:M}},this)},this),w},_renderHandle:function(){var T=this._displayables,b=T.handles=[],w=T.handleLabels=[],_=this._displayables.barGroup,I=this._size,L=this.dataZoomModel;_.add(T.filler=new o({draggable:!0,cursor:y(this._orient),drift:n(this._onDragMove,this,"all"),ondragstart:n(this._showDataInfo,this,!0),ondragend:n(this._onDragEnd,this),onmouseover:n(this._showDataInfo,this,!0),onmouseout:n(this._showDataInfo,this,!1),style:{fill:L.get("fillerColor"),textPosition:"inside"}})),_.add(new o({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:I[0],height:I[1]},style:{stroke:L.get("dataBackgroundColor")||L.get("borderColor"),lineWidth:t,fill:"rgba(0,0,0,0)"}})),e([0,1],function(N){var D=C.createIcon(L.get("handleIcon"),{cursor:y(this._orient),draggable:!0,drift:n(this._onDragMove,this,N),ondragend:n(this._onDragEnd,this),onmouseover:n(this._showDataInfo,this,!0),onmouseout:n(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),R=D.getBoundingRect();this._handleHeight=g.parsePercent(L.get("handleSize"),this._size[1]),this._handleWidth=R.width/R.height*this._handleHeight,D.setStyle(L.getModel("handleStyle").getItemStyle());var k=L.get("handleColor");k!=null&&(D.style.fill=k),_.add(b[N]=D);var M=L.textStyleModel;this.group.add(w[N]=new C.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:M.getTextColor(),textFont:M.getFont()},z2:10}))},this)},_resetInterval:function(){var T=this._range=this.dataZoomModel.getPercentRange(),b=this._getViewExtent();this._handleEnds=[r(T[0],[0,100],b,!0),r(T[1],[0,100],b,!0)]},_updateInterval:function(T,b){var w=this.dataZoomModel,_=this._handleEnds,I=this._getViewExtent(),L=w.findRepresentativeAxisProxy().getMinMaxSpan(),N=[0,100];c(b,_,I,w.get("zoomLock")?"all":T,L.minSpan!=null?r(L.minSpan,N,I,!0):null,L.maxSpan!=null?r(L.maxSpan,N,I,!0):null);var D=this._range,R=this._range=i([r(_[0],I,N,!0),r(_[1],I,N,!0)]);return!D||D[0]!==R[0]||D[1]!==R[1]},_updateView:function(T){var b=this._displayables,w=this._handleEnds,_=i(w.slice()),I=this._size;e([0,1],function(L){var N=b.handles[L],D=this._handleHeight;N.attr({scale:[D/2,D/2],position:[w[L],I[1]/2-D/2]})},this),b.filler.setShape({x:_[0],y:0,width:_[1]-_[0],height:I[1]}),this._updateDataInfo(T)},_updateDataInfo:function(T){var b=this.dataZoomModel,w=this._displayables,_=w.handleLabels,I=this._orient,L=["",""];if(b.get("showDetail")){var N=b.findRepresentativeAxisProxy();if(N){var D=N.getAxisModel().axis,R=this._range,k=T?N.calculateDataWindow({start:R[0],end:R[1]}).valueWindow:N.getDataValueWindow();L=[this._formatLabel(k[0],D),this._formatLabel(k[1],D)]}}var M=i(this._handleEnds.slice());U.call(this,0),U.call(this,1);function U(B){var j=C.getTransform(w.handles[B].parent,this.group),W=C.transformDirection(B===0?"right":"left",j),V=this._handleWidth/2+h,z=C.applyTransform([M[B]+(B===0?-V:V),this._size[1]/2],j);_[B].setStyle({x:z[0],y:z[1],textVerticalAlign:I===s?"middle":W,textAlign:I===s?W:"center",text:L[B]})}},_formatLabel:function(T,b){var w=this.dataZoomModel,_=w.get("labelFormatter"),I=w.get("labelPrecision");(I==null||I==="auto")&&(I=b.getPixelPrecision());var L=T==null||isNaN(T)?"":b.type==="category"||b.type==="time"?b.scale.getLabel(Math.round(T)):T.toFixed(Math.min(I,20));return O.isFunction(_)?_(T,L):O.isString(_)?_.replace("{value}",L):L},_showDataInfo:function(T){T=this._dragging||T;var b=this._displayables.handleLabels;b[0].attr("invisible",!T),b[1].attr("invisible",!T)},_onDragMove:function(T,b,w,_){this._dragging=!0,x.stop(_.event);var I=this._displayables.barGroup.getLocalTransform(),L=C.applyTransform([b,w],I,!0),N=this._updateInterval(T,L[0]),D=this.dataZoomModel.get("realtime");this._updateView(!D),N&&D&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var T=this.dataZoomModel.get("realtime");!T&&this._dispatchZoomAction()},_onClickPanelClick:function(T){var b=this._size,w=this._displayables.barGroup.transformCoordToLocal(T.offsetX,T.offsetY);if(w[0]<0||w[0]>b[0]||w[1]<0||w[1]>b[1])return;var _=this._handleEnds,I=(_[0]+_[1])/2,L=this._updateInterval("all",w[0]-I);this._updateView(),L&&this._dispatchZoomAction()},_dispatchZoomAction:function(){var T=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:T[0],end:T[1]})},_findCoordRect:function(){var T;if(e(this.getTargetCoordInfo(),function(_){if(!T&&_.length){var I=_[0].model.coordinateSystem;T=I.getRect&&I.getRect()}}),!T){var b=this.api.getWidth(),w=this.api.getHeight();T={x:b*.2,y:w*.2,width:b*.6,height:w*.6}}return T}});function v(T){var b={x:"y",y:"x",radius:"angle",angle:"radius"};return b[T]}function y(T){return T==="vertical"?"ns-resize":"ew-resize"}var E=m;H.exports=E},IzEo:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("lnY3"),A=d.n(C),S=d("Znn+"),g=d("14J3"),f=d("jCWc")},J66h:function(H,F,d){(function(O){var x,C;(function(A,S){H.exports=S(A)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof O!="undefined"?O:this,function(A){"use strict";A=A||{};var S=A.Base64,g="2.6.4",f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=function(D){for(var R={},k=0,M=D.length;k<M;k++)R[D.charAt(k)]=k;return R}(f),o=String.fromCharCode,r=function(R){if(R.length<2){var k=R.charCodeAt(0);return k<128?R:k<2048?o(192|k>>>6)+o(128|k&63):o(224|k>>>12&15)+o(128|k>>>6&63)+o(128|k&63)}else{var k=65536+(R.charCodeAt(0)-55296)*1024+(R.charCodeAt(1)-56320);return o(240|k>>>18&7)+o(128|k>>>12&63)+o(128|k>>>6&63)+o(128|k&63)}},i=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,n=function(R){return R.replace(i,r)},e=function(R){var k=[0,2,1][R.length%3],M=R.charCodeAt(0)<<16|(R.length>1?R.charCodeAt(1):0)<<8|(R.length>2?R.charCodeAt(2):0),U=[f.charAt(M>>>18),f.charAt(M>>>12&63),k>=2?"=":f.charAt(M>>>6&63),k>=1?"=":f.charAt(M&63)];return U.join("")},l=A.btoa&&typeof A.btoa=="function"?function(D){return A.btoa(D)}:function(D){if(D.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return D.replace(/[\s\S]{1,3}/g,e)},t=function(R){return l(n(String(R)))},a=function(R){return R.replace(/[+\/]/g,function(k){return k=="+"?"-":"_"}).replace(/=/g,"")},s=function(R,k){return k?a(t(R)):t(R)},u=function(R){return s(R,!0)},h;A.Uint8Array&&(h=function(R,k){for(var M="",U=0,B=R.length;U<B;U+=3){var j=R[U],W=R[U+1],V=R[U+2],z=j<<16|W<<8|V;M+=f.charAt(z>>>18)+f.charAt(z>>>12&63)+(typeof W!="undefined"?f.charAt(z>>>6&63):"=")+(typeof V!="undefined"?f.charAt(z&63):"=")}return k?a(M):M});var p=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,m=function(R){switch(R.length){case 4:var k=(7&R.charCodeAt(0))<<18|(63&R.charCodeAt(1))<<12|(63&R.charCodeAt(2))<<6|63&R.charCodeAt(3),M=k-65536;return o((M>>>10)+55296)+o((M&1023)+56320);case 3:return o((15&R.charCodeAt(0))<<12|(63&R.charCodeAt(1))<<6|63&R.charCodeAt(2));default:return o((31&R.charCodeAt(0))<<6|63&R.charCodeAt(1))}},v=function(R){return R.replace(p,m)},y=function(R){var k=R.length,M=k%4,U=(k>0?c[R.charAt(0)]<<18:0)|(k>1?c[R.charAt(1)]<<12:0)|(k>2?c[R.charAt(2)]<<6:0)|(k>3?c[R.charAt(3)]:0),B=[o(U>>>16),o(U>>>8&255),o(U&255)];return B.length-=[0,0,2,1][M],B.join("")},E=A.atob&&typeof A.atob=="function"?function(D){return A.atob(D)}:function(D){return D.replace(/\S{1,4}/g,y)},T=function(R){return E(String(R).replace(/[^A-Za-z0-9\+\/]/g,""))},b=function(R){return v(E(R))},w=function(R){return String(R).replace(/[-_]/g,function(k){return k=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},_=function(R){return b(w(R))},I;A.Uint8Array&&(I=function(R){return Uint8Array.from(T(w(R)),function(k){return k.charCodeAt(0)})});var L=function(){var R=A.Base64;return A.Base64=S,R};if(A.Base64={VERSION:g,atob:T,btoa:l,fromBase64:_,toBase64:s,utob:n,encode:s,encodeURI:u,btou:v,decode:_,noConflict:L,fromUint8Array:h,toUint8Array:I},typeof Object.defineProperty=="function"){var N=function(R){return{value:R,enumerable:!1,writable:!0,configurable:!0}};A.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",N(function(){return _(this)})),Object.defineProperty(String.prototype,"toBase64",N(function(D){return s(this,D)})),Object.defineProperty(String.prototype,"toBase64URI",N(function(){return s(this,!0)}))}}return A.Meteor&&(Base64=A.Base64),H.exports?H.exports.Base64=A.Base64:!(x=[],C=function(){return A.Base64}.apply(F,x),C!==void 0&&(H.exports=C)),{Base64:A.Base64}})}).call(this,d("yLpj"))},JEkh:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("bYtY"),S=d("ItGF"),g=d("4NO4"),f=d("7aKB"),c=d("OKJ2"),o=f.addCommas,r=f.encodeHTML;function i(l){g.defaultEmphasis(l,"label",["show"])}var n=C.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(l,t,a){this.mergeDefaultAndTheme(l,a),this._mergeOption(l,a,!1,!0)},isAnimationEnabled:function(){if(S.node)return!1;var l=this.__hostSeries;return this.getShallow("animation")&&l&&l.isAnimationEnabled()},mergeOption:function(l,t){this._mergeOption(l,t,!1,!1)},_mergeOption:function(l,t,a,s){var u=this.constructor,h=this.mainType+"Model";a||t.eachSeries(function(p){var m=p.get(this.mainType,!0),v=p[h];if(!m||!m.data){p[h]=null;return}v?v._mergeOption(m,t,!0):(s&&i(m),A.each(m.data,function(y){y instanceof Array?(i(y[0]),i(y[1])):i(y)}),v=new u(m,this,t),A.extend(v,{mainType:this.mainType,seriesIndex:p.seriesIndex,name:p.name,createdBySelf:!0}),v.__hostSeries=p),p[h]=v},this)},formatTooltip:function(l){var t=this.getData(),a=this.getRawValue(l),s=A.isArray(a)?A.map(a,o).join(", "):o(a),u=t.getName(l),h=r(this.name);return(a!=null||u)&&(h+="<br />"),u&&(h+=r(u),a!=null&&(h+=" : ")),a!=null&&(h+=r(s)),h},getData:function(){return this._data},setData:function(l){this._data=l}});A.mixin(n,c);var e=n;H.exports=e},JGo8:function(H,F,d){},JLnu:function(H,F,d){var O=d("+TT/"),x=d("OELB"),C=x.parsePercent,A=x.linearMap;function S(o,r){return O.getLayoutRect(o.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})}function g(o,r){for(var i=o.mapDimension("value"),n=o.mapArray(i,function(s){return s}),e=[],l=r==="ascending",t=0,a=o.count();t<a;t++)e[t]=t;return typeof r=="function"?e.sort(r):r!=="none"&&e.sort(function(s,u){return l?n[s]-n[u]:n[u]-n[s]}),e}function f(o){o.each(function(r){var i=o.getItemModel(r),n=i.getModel("label"),e=n.get("position"),l=i.getModel("labelLine"),t=o.getItemLayout(r),a=t.points,s=e==="inner"||e==="inside"||e==="center"||e==="insideLeft"||e==="insideRight",u,h,p,m;if(s)e==="insideLeft"?(h=(a[0][0]+a[3][0])/2+5,p=(a[0][1]+a[3][1])/2,u="left"):e==="insideRight"?(h=(a[1][0]+a[2][0])/2-5,p=(a[1][1]+a[2][1])/2,u="right"):(h=(a[0][0]+a[1][0]+a[2][0]+a[3][0])/4,p=(a[0][1]+a[1][1]+a[2][1]+a[3][1])/4,u="center"),m=[[h,p],[h,p]];else{var v,y,E,T=l.get("length");e==="left"?(v=(a[3][0]+a[0][0])/2,y=(a[3][1]+a[0][1])/2,E=v-T,h=E-5,u="right"):e==="right"?(v=(a[1][0]+a[2][0])/2,y=(a[1][1]+a[2][1])/2,E=v+T,h=E+5,u="left"):e==="rightTop"?(v=a[1][0],y=a[1][1],E=v+T,h=E+5,u="top"):e==="rightBottom"?(v=a[2][0],y=a[2][1],E=v+T,h=E+5,u="bottom"):e==="leftTop"?(v=a[0][0],y=a[1][1],E=v-T,h=E-5,u="right"):e==="leftBottom"?(v=a[3][0],y=a[2][1],E=v-T,h=E-5,u="right"):(v=(a[1][0]+a[2][0])/2,y=(a[1][1]+a[2][1])/2,E=v+T,h=E+5,u="left");var b=y;m=[[v,y],[E,b]],p=b}t.label={linePoints:m,x:h,y:p,verticalAlign:"middle",textAlign:u,inside:s}})}function c(o,r,i){o.eachSeriesByType("funnel",function(n){var e=n.getData(),l=e.mapDimension("value"),t=n.get("sort"),a=S(n,r),s=g(e,t),u=[C(n.get("minSize"),a.width),C(n.get("maxSize"),a.width)],h=e.getDataExtent(l),p=n.get("min"),m=n.get("max");p==null&&(p=Math.min(h[0],0)),m==null&&(m=h[1]);var v=n.get("funnelAlign"),y=n.get("gap"),E=(a.height-y*(e.count()-1))/e.count(),T=a.y,b=function(k,M){var U=e.get(l,k)||0,B=A(U,[p,m],u,!0),j;switch(v){case"left":j=a.x;break;case"center":j=a.x+(a.width-B)/2;break;case"right":j=a.x+a.width-B;break}return[[j,M],[j+B,M]]};t==="ascending"&&(E=-E,y=-y,T+=a.height,s=s.reverse());for(var w=0;w<s.length;w++){var _=s[w],I=s[w+1],L=e.getItemModel(_),N=L.get("itemStyle.height");N==null?N=E:(N=C(N,a.height),t==="ascending"&&(N=-N));var D=b(_,T),R=b(I,T+N);T+=N+y,e.setItemLayout(_,{points:D.concat(R.slice().reverse())})}f(e)})}H.exports=c},JSwD:function(H,F,d){"use strict";function O(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(u){return typeof u}:O=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},O(a)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=t;var x=A(d("6BzB"));function C(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return C=function(){return a},a}function A(a){if(a&&a.__esModule)return a;if(a===null||O(a)!=="object"&&typeof a!="function")return{default:a};var s=C();if(s&&s.has(a))return s.get(a);var u={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in a)if(Object.prototype.hasOwnProperty.call(a,p)){var m=h?Object.getOwnPropertyDescriptor(a,p):null;m&&(m.get||m.set)?Object.defineProperty(u,p,m):u[p]=a[p]}return u.default=a,s&&s.set(a,u),u}var S=15,g=852,f=592,c=0,o=1,r=2,i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],n=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],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 t(a,s,u,h,p,m,v,y){var E=y.bits,T=0,b=0,w=0,_=0,I=0,L=0,N=0,D=0,R=0,k=0,M,U,B,j,W,V=null,z=0,J,Z=new x.Buf16(S+1),de=new x.Buf16(S+1),ie=null,ve=0,xe,_e,Ue;for(T=0;T<=S;T++)Z[T]=0;for(b=0;b<h;b++)Z[s[u+b]]++;for(I=E,_=S;_>=1&&!(Z[_]!==0);_--);if(I>_&&(I=_),_===0)return p[m++]=1<<24|64<<16|0,p[m++]=1<<24|64<<16|0,y.bits=1,0;for(w=1;w<_&&!(Z[w]!==0);w++);for(I<w&&(I=w),D=1,T=1;T<=S;T++)if(D<<=1,D-=Z[T],D<0)return-1;if(D>0&&(a===c||_!==1))return-1;for(de[1]=0,T=1;T<S;T++)de[T+1]=de[T]+Z[T];for(b=0;b<h;b++)s[u+b]!==0&&(v[de[s[u+b]]++]=b);if(a===c?(V=ie=v,J=19):a===o?(V=i,z-=257,ie=n,ve-=257,J=256):(V=e,ie=l,J=-1),k=0,b=0,T=w,W=m,L=I,N=0,B=-1,R=1<<I,j=R-1,a===o&&R>g||a===r&&R>f)return 1;for(;;){xe=T-N,v[b]<J?(_e=0,Ue=v[b]):v[b]>J?(_e=ie[ve+v[b]],Ue=V[z+v[b]]):(_e=32+64,Ue=0),M=1<<T-N,U=1<<L,w=U;do U-=M,p[W+(k>>N)+U]=xe<<24|_e<<16|Ue|0;while(U!==0);for(M=1<<T-1;k&M;)M>>=1;if(M!==0?(k&=M-1,k+=M):k=0,b++,--Z[T]===0){if(T===_)break;T=s[u+v[b]]}if(T>I&&(k&j)!==B){for(N===0&&(N=I),W+=w,L=T-N,D=1<<L;L+N<_&&!(D-=Z[L+N],D<=0);)L++,D<<=1;if(R+=1<<L,a===o&&R>g||a===r&&R>f)return 1;B=k&j,p[B]=I<<24|L<<16|W-m|0}}return k!==0&&(p[W+k]=T-N<<24|64<<16|0),y.bits=I,0}},JVwQ:function(H,F,d){var O=d("ProS"),x=d("1NG9"),C=x.Polygon,A=d("IwbS"),S=d("bYtY"),g=S.bind,f=S.extend,c=d("gPAo"),o=O.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(i,n,e){var l=i.getData(),t=this.group,a=i.getLayerSeries(),s=l.getLayout("layoutInfo"),u=s.rect,h=s.boundaryGap;t.attr("position",[0,u.y+h[0]]);function p(E){return E.name}var m=new c(this._layersSeries||[],a,p,p),v={};m.add(g(y,this,"add")).update(g(y,this,"update")).remove(g(y,this,"remove")).execute();function y(E,T,b){var w=this._layers;if(E==="remove"){t.remove(w[T]);return}for(var _=[],I=[],L,N=a[T].indices,D=0;D<N.length;D++){var R=l.getItemLayout(N[D]),k=R.x,M=R.y0,U=R.y;_.push([k,M]),I.push([k,M+U]),L=l.getItemVisual(N[D],"color")}var B,j,W=l.getItemLayout(N[0]),V=l.getItemModel(N[D-1]),z=V.getModel("label"),J=z.get("margin");if(E==="add"){var Z=v[T]=new A.Group;B=new C({shape:{points:_,stackedOnPoints:I,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),j=new A.Text({style:{x:W.x-J,y:W.y0+W.y/2}}),Z.add(B),Z.add(j),t.add(Z),B.setClipPath(r(B.getBoundingRect(),i,function(){B.removeClipPath()}))}else{var Z=w[b];B=Z.childAt(0),j=Z.childAt(1),t.add(Z),v[T]=Z,A.updateProps(B,{shape:{points:_,stackedOnPoints:I}},i),A.updateProps(j,{style:{x:W.x-J,y:W.y0+W.y/2}},i)}var de=V.getModel("emphasis.itemStyle"),ie=V.getModel("itemStyle");A.setTextStyle(j.style,z,{text:z.get("show")?i.getFormattedLabel(N[D-1],"normal")||l.getName(N[D-1]):null,textVerticalAlign:"middle"}),B.setStyle(f({fill:L},ie.getItemStyle(["color"]))),A.setHoverStyle(B,de.getItemStyle())}this._layersSeries=a,this._layers=v},dispose:function(){}});function r(i,n,e){var l=new A.Rect({shape:{x:i.x-10,y:i.y-10,width:0,height:i.height+20}});return A.initProps(l,{shape:{width:i.width+20,height:i.height+20}},n,e),l}H.exports=o},JgUQ:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},JsLm:function(H,F,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),S=d("lwsE"),g=d.n(S),f=d("W8MJ"),c=d.n(f),o=d("PJYZ"),r=d.n(o),i=d("7W2i"),n=d.n(i),e=d("LQ03"),l=d.n(e),t=d("q1tI"),a=d("i8i4"),s=d("TSYQ"),u=d.n(s),h=d("zT1h"),p=d("cDf5"),m=d.n(p),v=d("BGR+"),y=d("6ner"),E=d("H84U"),T=d("RIqP"),b=d.n(T),w=d("xEkU"),_=d.n(w);function I(ae){var Q,G=function(ue){return function(){Q=null,ae.apply(void 0,b()(ue))}},Y=function(){if(Q==null){for(var ue=arguments.length,Ce=new Array(ue),Ie=0;Ie<ue;Ie++)Ce[Ie]=arguments[Ie];Q=_()(G(Ce))}};return Y.cancel=function(){return _.a.cancel(Q)},Y}function L(){return function(ae,Q,G){var Y=G.value,me=!1;return{configurable:!0,get:function(){if(me||this===ae.prototype||this.hasOwnProperty(Q))return Y;var Ce=I(Y.bind(this));return me=!0,Object.defineProperty(this,Q,{value:Ce,configurable:!0,writable:!0}),me=!1,Ce}}}}function N(ae){return ae!==window?ae.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function D(ae,Q,G){return G!==void 0&&Q.top>ae.top-G?G+Q.top:void 0}function R(ae,Q,G){if(G!==void 0&&Q.bottom<ae.bottom+G){var Y=window.innerHeight-Q.bottom;return G+Y}return}var k=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],M=[];function U(){return M}function B(ae,Q){if(!ae)return;var G=M.find(function(Y){return Y.target===ae});G?G.affixList.push(Q):(G={target:ae,affixList:[Q],eventHandlers:{}},M.push(G),k.forEach(function(Y){G.eventHandlers[Y]=Object(h.a)(ae,Y,function(){G.affixList.forEach(function(me){me.lazyUpdatePosition()})})}))}function j(ae){var Q=M.find(function(G){var Y=G.affixList.some(function(me){return me===ae});return Y&&(G.affixList=G.affixList.filter(function(me){return me!==ae})),Y});Q&&Q.affixList.length===0&&(M=M.filter(function(G){return G!==Q}),k.forEach(function(G){var Y=Q.eventHandlers[G];Y&&Y.remove&&Y.remove()}))}var W=function(ae,Q,G,Y){var me=arguments.length,ue=me<3?Q:Y===null?Y=Object.getOwnPropertyDescriptor(Q,G):Y,Ce;if((typeof Reflect=="undefined"?"undefined":m()(Reflect))==="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(ae,Q,G,Y);else for(var Ie=ae.length-1;Ie>=0;Ie--)(Ce=ae[Ie])&&(ue=(me<3?Ce(ue):me>3?Ce(Q,G,ue):Ce(Q,G))||ue);return me>3&&ue&&Object.defineProperty(Q,G,ue),ue};function V(){return typeof window!="undefined"?window:null}var z;(function(ae){ae[ae.None=0]="None",ae[ae.Prepare=1]="Prepare"})(z||(z={}));var J=function(ae){n()(G,ae);var Q=l()(G);function G(){var Y;return g()(this,G),Y=Q.apply(this,arguments),Y.state={status:z.None,lastAffix:!1,prevTarget:null},Y.getOffsetTop=function(){var me=Y.props.offsetBottom,ue=Y.props.offsetTop;return me===void 0&&ue===void 0&&(ue=0),ue},Y.getOffsetBottom=function(){return Y.props.offsetBottom},Y.savePlaceholderNode=function(me){Y.placeholderNode=me},Y.saveFixedNode=function(me){Y.fixedNode=me},Y.measure=function(){var me=Y.state,ue=me.status,Ce=me.lastAffix,Ie=Y.props.onChange,ce=Y.getTargetFunc();if(ue!==z.Prepare||!Y.fixedNode||!Y.placeholderNode||!ce)return;var Ae=Y.getOffsetTop(),Te=Y.getOffsetBottom(),Ge=ce();if(!Ge)return;var gt={status:z.None},qe=N(Ge),Le=N(Y.placeholderNode),Ot=D(Le,qe,Ae),$e=R(Le,qe,Te);Ot!==void 0?(gt.affixStyle={position:"fixed",top:Ot,width:Le.width,height:Le.height},gt.placeholderStyle={width:Le.width,height:Le.height}):$e!==void 0&&(gt.affixStyle={position:"fixed",bottom:$e,width:Le.width,height:Le.height},gt.placeholderStyle={width:Le.width,height:Le.height}),gt.lastAffix=!!gt.affixStyle,Ie&&Ce!==gt.lastAffix&&Ie(gt.lastAffix),Y.setState(gt)},Y.prepareMeasure=function(){if(Y.setState({status:z.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var me},Y.render=function(){var me=Y.context.getPrefixCls,ue=Y.state,Ce=ue.affixStyle,Ie=ue.placeholderStyle,ce=Y.props,Ae=ce.prefixCls,Te=ce.children,Ge=u()(A()({},me("affix",Ae),Ce)),gt=Object(v.default)(Y.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return t.createElement(y.a,{onResize:function(){Y.updatePosition()}},t.createElement("div",x()({},gt,{ref:Y.savePlaceholderNode}),Ce&&t.createElement("div",{style:Ie,"aria-hidden":"true"}),t.createElement("div",{className:Ge,ref:Y.saveFixedNode,style:Ce},t.createElement(y.a,{onResize:function(){Y.updatePosition()}},Te))))},Y}return c()(G,[{key:"getTargetFunc",value:function(){var me=this.context.getTargetContainer,ue=this.props.target;return ue!==void 0?ue:me||V}},{key:"componentDidMount",value:function(){var me=this,ue=this.getTargetFunc();ue&&(this.timeout=setTimeout(function(){B(ue(),me),me.updatePosition()}))}},{key:"componentDidUpdate",value:function(me){var ue=this.state.prevTarget,Ce=this.getTargetFunc(),Ie=null;Ce&&(Ie=Ce()||null),ue!==Ie&&(j(this),Ie&&(B(Ie,this),this.updatePosition()),this.setState({prevTarget:Ie})),(me.offsetTop!==this.props.offsetTop||me.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),j(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var me=this.getTargetFunc(),ue=this.state.affixStyle;if(me&&ue){var Ce=this.getOffsetTop(),Ie=this.getOffsetBottom(),ce=me();if(ce&&this.placeholderNode){var Ae=N(ce),Te=N(this.placeholderNode),Ge=D(Te,Ae,Ce),gt=R(Te,Ae,Ie);if(Ge!==void 0&&ue.top===Ge||gt!==void 0&&ue.bottom===gt)return}}this.prepareMeasure()}}]),G}(t.Component);J.contextType=E.b,W([L()],J.prototype,"updatePosition",null),W([L()],J.prototype,"lazyUpdatePosition",null);var Z=J,de=d("zAh6"),ie=d("i6bk"),ve=t.createContext(null),xe=ve;function _e(){return window}function Ue(ae,Q){if(!ae.getClientRects().length)return 0;var G=ae.getBoundingClientRect();return G.width||G.height?Q===window?(Q=ae.ownerDocument.documentElement,G.top-Q.clientTop):G.top-Q.getBoundingClientRect().top:G.top}var fe=/#(\S+)$/,ke=function(ae){n()(G,ae);var Q=l()(G);function G(){var Y;return g()(this,G),Y=Q.apply(this,arguments),Y.state={activeLink:null},Y.links=[],Y.registerLink=function(me){Y.links.includes(me)||Y.links.push(me)},Y.unregisterLink=function(me){var ue=Y.links.indexOf(me);ue!==-1&&Y.links.splice(ue,1)},Y.getContainer=function(){var me=Y.context.getTargetContainer,ue=Y.props.getContainer,Ce=ue||me||_e;return Ce()},Y.handleScrollTo=function(me){var ue=Y.props,Ce=ue.offsetTop,Ie=ue.targetOffset;Y.setCurrentActiveLink(me);var ce=Y.getContainer(),Ae=Object(ie.a)(ce,!0),Te=fe.exec(me);if(!Te)return;var Ge=document.getElementById(Te[1]);if(!Ge)return;var gt=Ue(Ge,ce),qe=Ae+gt;qe-=Ie!==void 0?Ie:Ce||0,Y.animating=!0,Object(de.a)(qe,{callback:function(){Y.animating=!1},getContainer:Y.getContainer})},Y.saveInkNode=function(me){Y.inkNode=me},Y.setCurrentActiveLink=function(me){var ue=Y.state.activeLink,Ce=Y.props.onChange;ue!==me&&(Y.setState({activeLink:me}),Ce&&Ce(me))},Y.handleScroll=function(){if(Y.animating)return;var me=Y.props,ue=me.offsetTop,Ce=me.bounds,Ie=me.targetOffset,ce=Y.getCurrentAnchor(Ie!==void 0?Ie:ue||0,Ce);Y.setCurrentActiveLink(ce)},Y.updateInk=function(){var me=r()(Y),ue=me.prefixCls,Ce=a.findDOMNode(r()(Y)),Ie=Ce.getElementsByClassName("".concat(ue,"-link-title-active"))[0];Ie&&(Y.inkNode.style.top="".concat(Ie.offsetTop+Ie.clientHeight/2-4.5,"px"))},Y.render=function(){var me=Y.context,ue=me.getPrefixCls,Ce=me.direction,Ie=Y.props,ce=Ie.prefixCls,Ae=Ie.className,Te=Ae===void 0?"":Ae,Ge=Ie.style,gt=Ie.offsetTop,qe=Ie.affix,Le=Ie.showInkInFixed,Ot=Ie.children,$e=Y.state.activeLink,xt=ue("anchor",ce);Y.prefixCls=xt;var Ht=u()("".concat(xt,"-ink-ball"),{visible:$e}),tr=u()(Te,"".concat(xt,"-wrapper"),A()({},"".concat(xt,"-rtl"),Ce==="rtl")),Mt=u()(xt,{fixed:!qe&&!Le}),Tt=x()({maxHeight:gt?"calc(100vh - ".concat(gt,"px)"):"100vh"},Ge),Xe=t.createElement("div",{className:tr,style:Tt},t.createElement("div",{className:Mt},t.createElement("div",{className:"".concat(xt,"-ink")},t.createElement("span",{className:Ht,ref:Y.saveInkNode})),Ot));return t.createElement(xe.Provider,{value:{registerLink:Y.registerLink,unregisterLink:Y.unregisterLink,activeLink:Y.state.activeLink,scrollTo:Y.handleScrollTo,onClick:Y.props.onClick}},qe?t.createElement(Z,{offsetTop:gt,target:Y.getContainer},Xe):Xe)},Y}return c()(G,[{key:"componentDidMount",value:function(){this.scrollContainer=this.getContainer(),this.scrollEvent=Object(h.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll()}},{key:"componentDidUpdate",value:function(){if(this.scrollEvent){var me=this.getContainer();this.scrollContainer!==me&&(this.scrollContainer=me,this.scrollEvent.remove(),this.scrollEvent=Object(h.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll())}this.updateInk()}},{key:"componentWillUnmount",value:function(){this.scrollEvent&&this.scrollEvent.remove()}},{key:"getCurrentAnchor",value:function(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,Ce=this.props.getCurrentAnchor;if(typeof Ce=="function")return Ce();var Ie=[],ce=this.getContainer();if(this.links.forEach(function(Te){var Ge=fe.exec(Te.toString());if(!Ge)return;var gt=document.getElementById(Ge[1]);if(gt){var qe=Ue(gt,ce);qe<me+ue&&Ie.push({link:Te,top:qe})}}),Ie.length){var Ae=Ie.reduce(function(Te,Ge){return Ge.top>Te.top?Ge:Te});return Ae.link}return""}}]),G}(t.Component);ke.defaultProps={affix:!0,showInkInFixed:!1},ke.contextType=E.b;var se=function(ae){n()(G,ae);var Q=l()(G);function G(){var Y;return g()(this,G),Y=Q.apply(this,arguments),Y.handleClick=function(me){var ue=Y.context,Ce=ue.scrollTo,Ie=ue.onClick,ce=Y.props,Ae=ce.href,Te=ce.title;Ie&&Ie(me,{title:Te,href:Ae}),Ce(Ae)},Y.renderAnchorLink=function(me){var ue=me.getPrefixCls,Ce=Y.props,Ie=Ce.prefixCls,ce=Ce.href,Ae=Ce.title,Te=Ce.children,Ge=Ce.className,gt=Ce.target,qe=ue("anchor",Ie),Le=Y.context.activeLink===ce,Ot=u()(Ge,"".concat(qe,"-link"),A()({},"".concat(qe,"-link-active"),Le)),$e=u()("".concat(qe,"-link-title"),A()({},"".concat(qe,"-link-title-active"),Le));return t.createElement("div",{className:Ot},t.createElement("a",{className:$e,href:ce,title:typeof Ae=="string"?Ae:"",target:gt,onClick:Y.handleClick},Ae),Te)},Y}return c()(G,[{key:"componentDidMount",value:function(){this.context.registerLink(this.props.href)}},{key:"componentDidUpdate",value:function(me){var ue=me.href,Ce=this.props.href;ue!==Ce&&(this.context.unregisterLink(ue),this.context.registerLink(Ce))}},{key:"componentWillUnmount",value:function(){this.context.unregisterLink(this.props.href)}},{key:"render",value:function(){return t.createElement(E.a,null,this.renderAnchorLink)}}]),G}(t.Component);se.defaultProps={href:"#"},se.contextType=xe;var te=se;ke.Link=te;var Ve=F.a=ke},JuEJ:function(H,F,d){var O=d("bYtY"),x=d("4NO4"),C=O.each,A=O.isObject,S=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function g(t){var a=t&&t.itemStyle;if(!a)return;for(var s=0,u=S.length;s<u;s++){var h=S[s],p=a.normal,m=a.emphasis;p&&p[h]&&(t[h]=t[h]||{},t[h].normal?O.merge(t[h].normal,p[h]):t[h].normal=p[h],p[h]=null),m&&m[h]&&(t[h]=t[h]||{},t[h].emphasis?O.merge(t[h].emphasis,m[h]):t[h].emphasis=m[h],m[h]=null)}}function f(t,a,s){if(t&&t[a]&&(t[a].normal||t[a].emphasis)){var u=t[a].normal,h=t[a].emphasis;u&&(s?(t[a].normal=t[a].emphasis=null,O.defaults(t[a],u)):t[a]=u),h&&(t.emphasis=t.emphasis||{},t.emphasis[a]=h)}}function c(t){f(t,"itemStyle"),f(t,"lineStyle"),f(t,"areaStyle"),f(t,"label"),f(t,"labelLine"),f(t,"upperLabel"),f(t,"edgeLabel")}function o(t,a){var s=A(t)&&t[a],u=A(s)&&s.textStyle;if(u)for(var h=0,p=x.TEXT_STYLE_OPTIONS.length;h<p;h++){var a=x.TEXT_STYLE_OPTIONS[h];u.hasOwnProperty(a)&&(s[a]=u[a])}}function r(t){t&&(c(t),o(t,"label"),t.emphasis&&o(t.emphasis,"label"))}function i(t){if(!A(t))return;g(t),c(t),o(t,"label"),o(t,"upperLabel"),o(t,"edgeLabel"),t.emphasis&&(o(t.emphasis,"label"),o(t.emphasis,"upperLabel"),o(t.emphasis,"edgeLabel"));var a=t.markPoint;a&&(g(a),r(a));var s=t.markLine;s&&(g(s),r(s));var u=t.markArea;u&&r(u);var h=t.data;if(t.type==="graph"){h=h||t.nodes;var p=t.links||t.edges;if(p&&!O.isTypedArray(p))for(var m=0;m<p.length;m++)r(p[m]);O.each(t.categories,function(E){c(E)})}if(h&&!O.isTypedArray(h))for(var m=0;m<h.length;m++)r(h[m]);var a=t.markPoint;if(a&&a.data)for(var v=a.data,m=0;m<v.length;m++)r(v[m]);var s=t.markLine;if(s&&s.data)for(var y=s.data,m=0;m<y.length;m++)O.isArray(y[m])?(r(y[m][0]),r(y[m][1])):r(y[m]);t.type==="gauge"?(o(t,"axisLabel"),o(t,"title"),o(t,"detail")):t.type==="treemap"?(f(t.breadcrumb,"itemStyle"),O.each(t.levels,function(E){c(E)})):t.type==="tree"&&c(t.leaves)}function n(t){return O.isArray(t)?t:t?[t]:[]}function e(t){return(O.isArray(t)?t[0]:t)||{}}function l(t,a){C(n(t.series),function(u){A(u)&&i(u)});var s=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];a&&s.push("valueAxis","categoryAxis","logAxis","timeAxis"),C(s,function(u){C(n(t[u]),function(h){h&&(o(h,"axisLabel"),o(h.axisPointer,"label"))})}),C(n(t.parallel),function(u){var h=u&&u.parallelAxisDefault;o(h,"axisLabel"),o(h&&h.axisPointer,"label")}),C(n(t.calendar),function(u){f(u,"itemStyle"),o(u,"dayLabel"),o(u,"monthLabel"),o(u,"yearLabel")}),C(n(t.radar),function(u){o(u,"name")}),C(n(t.geo),function(u){A(u)&&(r(u),C(n(u.regions),function(h){r(h)}))}),C(n(t.timeline),function(u){r(u),f(u,"label"),f(u,"itemStyle"),f(u,"controlStyle",!0);var h=u.data;O.isArray(h)&&O.each(h,function(p){O.isObject(p)&&(f(p,"label"),f(p,"itemStyle"))})}),C(n(t.toolbox),function(u){f(u,"iconStyle"),C(u.feature,function(h){f(h,"iconStyle")})}),o(e(t.axisPointer),"label"),o(e(t.tooltip).axisPointer,"label")}H.exports=l},K2GJ:function(H,F,d){var O=d("fW2E"),x=d("gut8"),C=x.ContextCachedBy,A=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],S=function(e){this.extendFrom(e,!1)};function g(n,e,l){var t=e.x==null?0:e.x,a=e.x2==null?1:e.x2,s=e.y==null?0:e.y,u=e.y2==null?0:e.y2;e.global||(t=t*l.width+l.x,a=a*l.width+l.x,s=s*l.height+l.y,u=u*l.height+l.y),t=isNaN(t)?0:t,a=isNaN(a)?1:a,s=isNaN(s)?0:s,u=isNaN(u)?0:u;var h=n.createLinearGradient(t,s,a,u);return h}function f(n,e,l){var t=l.width,a=l.height,s=Math.min(t,a),u=e.x==null?.5:e.x,h=e.y==null?.5:e.y,p=e.r==null?.5:e.r;e.global||(u=u*t+l.x,h=h*a+l.y,p=p*s);var m=n.createRadialGradient(u,h,0,u,h,p);return m}S.prototype={constructor:S,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,t){var a=this,s=t&&t.style,u=!s||e.__attrCachedBy!==C.STYLE_BIND;e.__attrCachedBy=C.STYLE_BIND;for(var h=0;h<A.length;h++){var p=A[h],m=p[0];(u||a[m]!==s[m])&&(e[m]=O(e,m,a[m]||p[1]))}if((u||a.fill!==s.fill)&&(e.fillStyle=a.fill),(u||a.stroke!==s.stroke)&&(e.strokeStyle=a.stroke),(u||a.opacity!==s.opacity)&&(e.globalAlpha=a.opacity==null?1:a.opacity),(u||a.blend!==s.blend)&&(e.globalCompositeOperation=a.blend||"source-over"),this.hasStroke()){var v=a.lineWidth;e.lineWidth=v/(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 t in e)e.hasOwnProperty(t)&&(l===!0||(l===!1?!this.hasOwnProperty(t):e[t]!=null))&&(this[t]=e[t])},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,t){for(var a=l.type==="radial"?f:g,s=a(e,l,t),u=l.colorStops,h=0;h<u.length;h++)s.addColorStop(u[h].offset,u[h].color);return s}};for(var c=S.prototype,o=0;o<A.length;o++){var r=A[o];r[0]in c||(c[r[0]]=r[1])}S.getGradient=c.getGradient;var i=S;H.exports=i},K3mO:function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("3y9D"),d("WYAk"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.Base,S=C.WordArray,g=x.algo,f=g.MD5,c=g.EvpKDF=A.extend({cfg:A.extend({keySize:128/32,hasher:f,iterations:1}),init:function(r){this.cfg=this.cfg.extend(r)},compute:function(r,i){for(var n,e=this.cfg,l=e.hasher.create(),t=S.create(),a=t.words,s=e.keySize,u=e.iterations;a.length<s;){n&&l.update(n),n=l.update(r).finalize(i),l.reset();for(var h=1;h<u;h++)n=l.finalize(n),l.reset();t.concat(n)}return t.sigBytes=s*4,t}});x.EvpKDF=function(o,r,i){return c.create(i).compute(o,r)}}(),O.EvpKDF})},K4ya:function(H,F,d){var O=d("bYtY"),x=d("XxSj"),C=O.each;function A(o){if(o){for(var r in o)if(o.hasOwnProperty(r))return!0}}function S(o,r,i){var n={};return C(r,function(l){var t=n[l]=e();C(o[l],function(a,s){if(!x.isValidType(s))return;var u={type:s,visual:a};i&&i(u,l),t[s]=new x(u),s==="opacity"&&(u=O.clone(u),u.type="colorAlpha",t.__hidden.__alphaForOpacity=new x(u))})}),n;function e(){var l=function(){};l.prototype.__hidden=l.prototype;var t=new l;return t}}function g(o,r,i){var n;O.each(i,function(e){r.hasOwnProperty(e)&&A(r[e])&&(n=!0)}),n&&O.each(i,function(e){r.hasOwnProperty(e)&&A(r[e])?o[e]=O.clone(r[e]):delete o[e]})}function f(o,r,i,n,e,l){var t={};O.each(o,function(p){var m=x.prepareVisualTypes(r[p]);t[p]=m});var a;function s(p){return i.getItemVisual(a,p)}function u(p,m){i.setItemVisual(a,p,m)}l==null?i.each(h):i.each([l],h);function h(p,m){a=l==null?p:m;var v=i.getRawDataItem(a);if(v&&v.visualMap===!1)return;for(var y=n.call(e,p),E=r[y],T=t[y],b=0,w=T.length;b<w;b++){var _=T[b];E[_]&&E[_].applyVisual(p,s,u)}}}function c(o,r,i,n){var e={};O.each(o,function(t){var a=x.prepareVisualTypes(r[t]);e[t]=a});function l(t,a){n!=null&&(n=a.getDimension(n));function s(_){return a.getItemVisual(h,_)}function u(_,I){a.setItemVisual(h,_,I)}for(var h;(h=t.next())!=null;){var p=a.getRawDataItem(h);if(p&&p.visualMap===!1)continue;for(var m=n!=null?a.get(n,h,!0):h,v=i(m),y=r[v],E=e[v],T=0,b=E.length;T<b;T++){var w=E[T];y[w]&&y[w].applyVisual(m,s,u)}}}return{progress:l}}F.createVisualMappings=S,F.replaceVisualOption=g,F.applyVisual=f,F.incrementalApplyVisual=c},KCsZ:function(H,F,d){var O=d("bYtY");function x(C){for(var A=0;A<C.length;A++)C[A][1]||(C[A][1]=C[A][0]);return function(S,g,f){for(var c={},o=0;o<C.length;o++){var r=C[o][1];if(g&&O.indexOf(g,r)>=0||f&&O.indexOf(f,r)<0)continue;var i=S.getShallow(r);i!=null&&(c[C[o][0]]=i)}return c}}H.exports=x},KPFz:function(H,F,d){},KQeH:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},KS52:function(H,F,d){var O=d("OELB"),x=O.parsePercent,C=O.linearMap,A=d("+TT/"),S=d("u3DP"),g=d("bYtY"),f=Math.PI*2,c=Math.PI/180;function o(i,n){return A.getLayoutRect(i.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})}function r(i,n,e,l){n.eachSeriesByType(i,function(t){var a=t.getData(),s=a.mapDimension("value"),u=o(t,e),h=t.get("center"),p=t.get("radius");g.isArray(p)||(p=[0,p]),g.isArray(h)||(h=[h,h]);var m=x(u.width,e.getWidth()),v=x(u.height,e.getHeight()),y=Math.min(m,v),E=x(h[0],m)+u.x,T=x(h[1],v)+u.y,b=x(p[0],y/2),w=x(p[1],y/2),_=-t.get("startAngle")*c,I=t.get("minAngle")*c,L=0;a.each(s,function(J){!isNaN(J)&&L++});var N=a.getSum(s),D=Math.PI/(N||L)*2,R=t.get("clockwise"),k=t.get("roseType"),M=t.get("stillShowZeroSum"),U=a.getDataExtent(s);U[0]=0;var B=f,j=0,W=_,V=R?1:-1;if(a.each(s,function(J,Z){var de;if(isNaN(J)){a.setItemLayout(Z,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:R,cx:E,cy:T,r0:b,r:k?NaN:w,viewRect:u});return}k!=="area"?de=N===0&&M?D:J*D:de=f/L,de<I?(de=I,B-=I):j+=J;var ie=W+V*de;a.setItemLayout(Z,{angle:de,startAngle:W,endAngle:ie,clockwise:R,cx:E,cy:T,r0:b,r:k?C(J,U,[b,w]):w,viewRect:u}),W=ie}),B<f&&L)if(B<=.001){var z=f/L;a.each(s,function(J,Z){if(!isNaN(J)){var de=a.getItemLayout(Z);de.angle=z,de.startAngle=_+V*Z*z,de.endAngle=_+V*(Z+1)*z}})}else D=B/j,W=_,a.each(s,function(J,Z){if(!isNaN(J)){var de=a.getItemLayout(Z),ie=de.angle===I?I:J*D;de.startAngle=W,de.endAngle=W+V*ie,W+=V*ie}});S(t,w,u.width,u.height,u.x,u.y)})}H.exports=r},KUOm:function(H,F){function d(O){var x={};O.eachSeriesByType("graph",function(C){var A=C.getCategoriesData(),S=C.getData(),g={};A.each(function(f){var c=A.getName(f);g["ec-"+c]=f;var o=A.getItemModel(f),r=o.get("itemStyle.color")||C.getColorFromPalette(c,x);A.setItemVisual(f,"color",r);for(var i=["opacity","symbol","symbolSize","symbolKeepAspect"],n=0;n<i.length;n++){var e=o.getShallow(i[n],!0);e!=null&&A.setItemVisual(f,i[n],e)}}),A.count()&&S.each(function(f){var c=S.getItemModel(f),o=c.getShallow("category");if(o!=null){typeof o=="string"&&(o=g["ec-"+o]);for(var r=["color","opacity","symbol","symbolSize","symbolKeepAspect"],i=0;i<r.length;i++)S.getItemVisual(f,r[i],!0)==null&&S.setItemVisual(f,r[i],A.getItemVisual(o,r[i]))}})})}H.exports=d},Kagy:function(H,F){var d={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:""}}}};H.exports=d},KamJ:function(H,F,d){var O=d("ProS"),x=d("szbU");d("vF/C"),d("qwVE"),d("BuqR"),d("AE9C"),d("1u/T"),O.registerPreprocessor(x)},KmBX:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("CP8R")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="FilterFilled";var c=A.forwardRef(f);F.default=c},KmYQ:function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.ZeroPadding={pad:function(C,A){var S=A*4;C.clamp(),C.sigBytes+=S-(C.sigBytes%S||S)},unpad:function(C){for(var A=C.words,S=C.sigBytes-1,S=C.sigBytes-1;S>=0;S--)if(A[S>>>2]>>>24-S%4*8&255){C.sigBytes=S+1;break}}},O.pad.ZeroPadding})},"KpQ+":function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("E/ki")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="ClockCircleOutlined";var c=A.forwardRef(f);F.default=c},KrTs:function(H,F,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("cDf5"),A=d.n(C),S=d("pVnL"),g=d.n(S),f=d("q1tI"),c=d("UmKh"),o=d("TSYQ"),r=d.n(o),i=d("J4zp"),n=d.n(i),e=d("H84U"),l=d("0n0R"),t=function(w,_){var I={};for(var L in w)Object.prototype.hasOwnProperty.call(w,L)&&_.indexOf(L)<0&&(I[L]=w[L]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,L=Object.getOwnPropertySymbols(w);N<L.length;N++)_.indexOf(L[N])<0&&Object.prototype.propertyIsEnumerable.call(w,L[N])&&(I[L[N]]=w[L[N]]);return I};function a(w){return w?w.toString().split("").reverse().map(function(_){var I=Number(_);return isNaN(I)?_:I}):[]}function s(w,_){for(var I=[],L=0;L<30;L++)I.push(f.createElement("p",{key:L.toString(),className:r()(_,{current:w===L})},L%10));return I}var u=function(_){var I=_.prefixCls,L=_.count,N=_.className,D=_.style,R=_.title,k=_.component,M=k===void 0?"sup":k,U=_.displayComponent,B=_.onAnimated,j=B===void 0?function(){}:B,W=t(_,["prefixCls","count","className","style","title","component","displayComponent","onAnimated"]),V=f.useState(!0),z=n()(V,2),J=z[0],Z=z[1],de=f.useState(L),ie=n()(de,2),ve=ie[0],xe=ie[1],_e=f.useState(L),Ue=n()(_e,2),fe=Ue[0],ke=Ue[1],se=f.useState(L),te=n()(se,2),Ve=te[0],ae=te[1],Q=f.useContext(e.b),G=Q.getPrefixCls,Y=G("scroll-number",I);fe!==L&&(Z(!0),ke(L)),f.useEffect(function(){ae(ve);var ce;return J&&(ce=setTimeout(function(){Z(!1),xe(L),j()})),function(){ce&&clearTimeout(ce)}},[J,L,j]);var me=function(Ae,Te){var Ge=Math.abs(Number(ve)),gt=Math.abs(Number(Ve)),qe=Math.abs(a(ve)[Te]),Le=Math.abs(a(gt)[Te]);return J?10+Ae:Ge>gt?qe>=Le?10+Ae:20+Ae:qe<=Le?10+Ae:Ae},ue=function(Ae,Te){if(typeof Ae=="number"){var Ge=me(Ae,Te),gt=J||a(Ve)[Te]===void 0;return f.createElement("span",{className:"".concat(Y,"-only"),style:{transition:gt?"none":void 0,msTransform:"translateY(".concat(-Ge*100,"%)"),WebkitTransform:"translateY(".concat(-Ge*100,"%)"),transform:"translateY(".concat(-Ge*100,"%)")},key:Te},s(Ge,"".concat(Y,"-only-unit")))}return f.createElement("span",{key:"symbol",className:"".concat(Y,"-symbol")},Ae)},Ce=function(){return ve&&Number(ve)%1===0?a(ve).map(function(Ae,Te){return ue(Ae,Te)}).reverse():ve},Ie=g()(g()({},W),{style:D,className:r()(Y,N),title:R});return D&&D.borderColor&&(Ie.style=g()(g()({},D),{boxShadow:"0 0 0 1px ".concat(D.borderColor," inset")})),U?Object(l.a)(U,{className:r()("".concat(Y,"-custom-component"),U.props&&U.props.className)}):f.createElement(M,Ie,Ce())},h=u,p=d("09Wf");function m(w){return p.a.indexOf(w)!==-1}var v=function(_){var I,L=_.className,N=_.prefixCls,D=_.style,R=_.color,k=_.children,M=_.text,U=_.placement,B=U===void 0?"end":U,j=f.useContext(e.b),W=j.getPrefixCls,V=j.direction,z=W("ribbon",N),J=m(R),Z=r()(z,L,"".concat(z,"-placement-").concat(B),(I={},x()(I,"".concat(z,"-rtl"),V==="rtl"),x()(I,"".concat(z,"-color-").concat(R),J),I)),de={},ie={};return R&&!J&&(de.background=R,ie.color=R),f.createElement("div",{className:"".concat(z,"-wrapper")},k,f.createElement("div",{className:Z,style:g()(g()({},de),D)},M,f.createElement("div",{className:"".concat(z,"-corner"),style:ie})))},y=v,E=function(w,_){var I={};for(var L in w)Object.prototype.hasOwnProperty.call(w,L)&&_.indexOf(L)<0&&(I[L]=w[L]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,L=Object.getOwnPropertySymbols(w);N<L.length;N++)_.indexOf(L[N])<0&&Object.prototype.propertyIsEnumerable.call(w,L[N])&&(I[L[N]]=w[L[N]]);return I},T=function(_){var I,L,N=_.prefixCls,D=_.scrollNumberPrefixCls,R=_.children,k=_.status,M=_.text,U=_.color,B=_.count,j=B===void 0?null:B,W=_.overflowCount,V=W===void 0?99:W,z=_.dot,J=z===void 0?!1:z,Z=_.size,de=Z===void 0?"default":Z,ie=_.title,ve=_.offset,xe=_.style,_e=_.className,Ue=_.showZero,fe=Ue===void 0?!1:Ue,ke=E(_,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),se=f.useContext(e.b),te=se.getPrefixCls,Ve=se.direction,ae=te("badge",N),Q=function(){var Ht=j>V?"".concat(V,"+"):j;return Ht},G=function(){return!!k||!!U},Y=function(){var Ht=Q();return Ht==="0"||Ht===0},me=function(){return J&&!Y()||G()},ue=function(){return me()?"":Q()},Ce=function(){return ie||(typeof j=="string"||typeof j=="number"?j:void 0)},Ie=function(){return Ve==="rtl"?ve?g()({left:parseInt(ve[0],10),marginTop:ve[1]},xe):xe:ve?g()({right:-parseInt(ve[0],10),marginTop:ve[1]},xe):xe},ce=function(){var Ht=ue(),tr=Ht==null||Ht==="";return(tr||Y()&&!fe)&&!me()},Ae=function(){var Ht=ce();return Ht||!M?null:f.createElement("span",{className:"".concat(ae,"-status-text")},M)},Te=function(){var Ht=j;return!Ht||A()(Ht)!=="object"?void 0:Object(l.a)(Ht,{style:g()(g()({},Ie()),Ht.props&&Ht.props.style)})},Ge=function(){var Ht,tr=te("scroll-number",D),Mt=ue(),Tt=me(),Xe=ce(),oe=r()((Ht={},x()(Ht,"".concat(ae,"-dot"),Tt),x()(Ht,"".concat(ae,"-count"),!Tt),x()(Ht,"".concat(ae,"-count-sm"),de==="small"),x()(Ht,"".concat(ae,"-multiple-words"),!Tt&&j&&j.toString&&j.toString().length>1),x()(Ht,"".concat(ae,"-status-").concat(k),!!k),x()(Ht,"".concat(ae,"-status-").concat(U),m(U)),Ht)),X=Ie();return U&&!m(U)&&(X=X||{},X.background=U),Xe?null:f.createElement(h,{prefixCls:tr,"data-show":!Xe,className:oe,count:Mt,displayComponent:Te(),title:Ce(),style:X,key:"scrollNumber"})},gt=r()((I={},x()(I,"".concat(ae,"-status-dot"),G()),x()(I,"".concat(ae,"-status-").concat(k),!!k),x()(I,"".concat(ae,"-status-").concat(U),m(U)),I)),qe={};U&&!m(U)&&(qe.background=U);var Le=r()(_e,ae,(L={},x()(L,"".concat(ae,"-status"),G()),x()(L,"".concat(ae,"-not-a-wrapper"),!R),x()(L,"".concat(ae,"-rtl"),Ve==="rtl"),L));if(!R&&G()){var Ot=Ie(),$e=Ot&&Ot.color;return f.createElement("span",g()({},ke,{className:Le,style:Ot}),f.createElement("span",{className:gt,style:qe}),f.createElement("span",{style:{color:$e},className:"".concat(ae,"-status-text")},M))}return f.createElement("span",g()({},ke,{className:Le}),R,f.createElement(c.a,{component:"",showProp:"data-show",transitionName:R?"".concat(ae,"-zoom"):"",transitionAppear:!0},Ge()),Ae())};T.Ribbon=y;var b=F.a=T},Kvyg:function(H,F,d){},KxBF:function(H,F){function d(O,x,C){var A=-1,S=O.length;x<0&&(x=-x>S?0:S+x),C=C>S?S:C,C<0&&(C+=S),S=x>C?0:C-x>>>0,x>>>=0;for(var g=Array(S);++A<S;)g[A]=O[A+x];return g}H.exports=d},KxFI:function(H,F,d){},KxfA:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=C.isTypedArray,S=C.extend,g=C.assert,f=C.each,c=C.isObject,o=d("4NO4"),r=o.getDataItemValue,i=o.isDataItemOption,n=d("OELB"),e=n.parseDate,l=d("7G+c"),t=d("k9D9"),a=t.SOURCE_FORMAT_TYPED_ARRAY,s=t.SOURCE_FORMAT_ARRAY_ROWS,u=t.SOURCE_FORMAT_ORIGINAL,h=t.SOURCE_FORMAT_OBJECT_ROWS;function p(R,k){l.isInstance(R)||(R=l.seriesDataToSource(R)),this._source=R;var M=this._data=R.data,U=R.sourceFormat;U===a&&(this._offset=0,this._dimSize=k,this._data=M);var B=v[U===s?U+"_"+R.seriesLayoutBy:U];S(this,B)}var m=p.prototype;m.pure=!1,m.persistent=!0,m.getSource=function(){return this._source};var v={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(R){return this._data[R+this._source.startIndex]},appendData:T},arrayRows_row:{pure:!0,count:function(){var R=this._data[0];return R?Math.max(0,R.length-this._source.startIndex):0},getItem:function(R){R+=this._source.startIndex;for(var k=[],M=this._data,U=0;U<M.length;U++){var B=M[U];k.push(B?B[R]:null)}return k},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:y,getItem:E,appendData:T},keyedColumns:{pure:!0,count:function(){var R=this._source.dimensionsDefine[0].name,k=this._data[R];return k?k.length:0},getItem:function(R){for(var k=[],M=this._source.dimensionsDefine,U=0;U<M.length;U++){var B=this._data[M[U].name];k.push(B?B[R]:null)}return k},appendData:function(R){var k=this._data;f(R,function(M,U){for(var B=k[U]||(k[U]=[]),j=0;j<(M||[]).length;j++)B.push(M[j])})}},original:{count:y,getItem:E,appendData:T},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(R,k){R=R-this._offset,k=k||[];for(var M=this._dimSize*R,U=0;U<this._dimSize;U++)k[U]=this._data[M+U];return k},appendData:function(R){this._data=R},clean:function(){this._offset+=this.count(),this._data=null}}};function y(){return this._data.length}function E(R){return this._data[R]}function T(R){for(var k=0;k<R.length;k++)this._data.push(R[k])}var b={arrayRows:w,objectRows:function(R,k,M,U){return M!=null?R[U]:R},keyedColumns:w,original:function(R,k,M,U){var B=r(R);return M==null||!(B instanceof Array)?B:B[M]},typedArray:w};function w(R,k,M,U){return M!=null?R[M]:R}var _={arrayRows:I,objectRows:function(R,k,M,U){return L(R[k],this._dimensionInfos[k])},keyedColumns:I,original:function(R,k,M,U){var B=R&&(R.value==null?R:R.value);return!this._rawData.pure&&i(R)&&(this.hasItemOption=!0),L(B instanceof Array?B[U]:B,this._dimensionInfos[k])},typedArray:function(R,k,M,U){return R[U]}};function I(R,k,M,U){return L(R[U],this._dimensionInfos[k])}function L(R,k){var M=k&&k.type;if(M==="ordinal"){var U=k&&k.ordinalMeta;return U?U.parseAndCollect(R):R}return M==="time"&&typeof R!="number"&&R!=null&&R!=="-"&&(R=+e(R)),R==null||R===""?NaN:+R}function N(R,k,M){if(!R)return;var U=R.getRawDataItem(k);if(U==null)return;var B=R.getProvider().getSource().sourceFormat,j,W,V=R.getDimensionInfo(M);return V&&(j=V.name,W=V.index),b[B](U,k,W,j)}function D(R,k,M){if(!R)return;var U=R.getProvider().getSource().sourceFormat;if(U!==u&&U!==h)return;var B=R.getRawDataItem(k);if(U===u&&!c(B)&&(B=null),B)return B[M]}F.DefaultDataProvider=p,F.defaultDimValueGetters=_,F.retrieveRawValue=N,F.retrieveRawAttr=D},L0Ub:function(H,F,d){var O=d("bYtY"),x=O.each,C=O.createHashMap,A=O.assert,S=d("Tghj"),g=S.__DEV__,f=C(["tooltip","label","itemName","itemId","seriesName"]);function c(n){var e={},l=e.encode={},t=C(),a=[],s=[],u=e.userOutput={dimensionNames:n.dimensions.slice(),encode:{}};x(n.dimensions,function(y){var E=n.getDimensionInfo(y),T=E.coordDim;if(T){var b=E.coordDimIndex;o(l,T)[b]=y,E.isExtraCoord||(t.set(T,1),i(E.type)&&(a[0]=y),o(u.encode,T)[b]=E.index),E.defaultTooltip&&s.push(y)}f.each(function(w,_){var I=o(l,_),L=E.otherDims[_];L!=null&&L!==!1&&(I[L]=E.name)})});var h=[],p={};t.each(function(y,E){var T=l[E];p[E]=T[0],h=h.concat(T)}),e.dataDimsOnCoord=h,e.encodeFirstDimNotExtra=p;var m=l.label;m&&m.length&&(a=m.slice());var v=l.tooltip;return v&&v.length?s=v.slice():s.length||(s=a.slice()),l.defaultedLabel=a,l.defaultedTooltip=s,e}function o(n,e){return n.hasOwnProperty(e)||(n[e]=[]),n[e]}function r(n){return n==="category"?"ordinal":n==="time"?"time":"float"}function i(n){return!(n==="ordinal"||n==="time")}F.OTHER_DIMENSIONS=f,F.summarizeDimensions=c,F.getDimensionTypeByAxis=r},L3Oj:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("HjIi");d("HM/N"),d("9eas"),d("eS4l"),d("y4/Y"),d("as94"),O.registerLayout(x.curry(C,"bar")),O.extendComponentView({type:"polar"})},L41K:function(H,F,d){"use strict";d.d(F,"a",function(){return j});var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),S=d("lwsE"),g=d.n(S),f=d("W8MJ"),c=d.n(f),o=d("7W2i"),r=d.n(o),i=d("LQ03"),n=d.n(i),e=d("q1tI"),l=d.n(e),t=d("BGR+"),a=d("VTBJ"),s=d("rePB"),u=d("Ff2n"),h=d("1OyB"),p=d("vuIU"),m=d("Ji7U"),v=d("LK+K"),y=d("Zm9Q"),E=d("TSYQ"),T=d.n(E),b=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function w(W){return typeof W=="string"}var _=function(W){Object(m.a)(z,W);var V=Object(v.a)(z);function z(){var J;return Object(h.a)(this,z),J=V.apply(this,arguments),J.onClick=function(){var Z=J.props,de=Z.onClick,ie=Z.onStepClick,ve=Z.stepIndex;de&&de.apply(void 0,arguments),ie(ve)},J}return Object(p.a)(z,[{key:"renderIconNode",value:function(){var Z,de=this.props,ie=de.prefixCls,ve=de.progressDot,xe=de.stepIcon,_e=de.stepNumber,Ue=de.status,fe=de.title,ke=de.description,se=de.icon,te=de.iconPrefix,Ve=de.icons,ae,Q=T()("".concat(ie,"-icon"),"".concat(te,"icon"),(Z={},Object(s.a)(Z,"".concat(te,"icon-").concat(se),se&&w(se)),Object(s.a)(Z,"".concat(te,"icon-check"),!se&&Ue==="finish"&&(Ve&&!Ve.finish||!Ve)),Object(s.a)(Z,"".concat(te,"icon-cross"),!se&&Ue==="error"&&(Ve&&!Ve.error||!Ve)),Z)),G=e.createElement("span",{className:"".concat(ie,"-icon-dot")});return ve?typeof ve=="function"?ae=e.createElement("span",{className:"".concat(ie,"-icon")},ve(G,{index:_e-1,status:Ue,title:fe,description:ke})):ae=e.createElement("span",{className:"".concat(ie,"-icon")},G):se&&!w(se)?ae=e.createElement("span",{className:"".concat(ie,"-icon")},se):Ve&&Ve.finish&&Ue==="finish"?ae=e.createElement("span",{className:"".concat(ie,"-icon")},Ve.finish):Ve&&Ve.error&&Ue==="error"?ae=e.createElement("span",{className:"".concat(ie,"-icon")},Ve.error):se||Ue==="finish"||Ue==="error"?ae=e.createElement("span",{className:Q}):ae=e.createElement("span",{className:"".concat(ie,"-icon")},_e),xe&&(ae=xe({index:_e-1,status:Ue,title:fe,description:ke,node:ae})),ae}},{key:"render",value:function(){var Z,de=this.props,ie=de.className,ve=de.prefixCls,xe=de.style,_e=de.active,Ue=de.status,fe=Ue===void 0?"wait":Ue,ke=de.iconPrefix,se=de.icon,te=de.wrapperStyle,Ve=de.stepNumber,ae=de.disabled,Q=de.description,G=de.title,Y=de.subTitle,me=de.progressDot,ue=de.stepIcon,Ce=de.tailContent,Ie=de.icons,ce=de.stepIndex,Ae=de.onStepClick,Te=de.onClick,Ge=Object(u.a)(de,b),gt=T()("".concat(ve,"-item"),"".concat(ve,"-item-").concat(fe),ie,(Z={},Object(s.a)(Z,"".concat(ve,"-item-custom"),se),Object(s.a)(Z,"".concat(ve,"-item-active"),_e),Object(s.a)(Z,"".concat(ve,"-item-disabled"),ae===!0),Z)),qe=Object(a.a)({},xe),Le={};return Ae&&!ae&&(Le.role="button",Le.tabIndex=0,Le.onClick=this.onClick),e.createElement("div",Object.assign({},Ge,{className:gt,style:qe}),e.createElement("div",Object.assign({onClick:Te},Le,{className:"".concat(ve,"-item-container")}),e.createElement("div",{className:"".concat(ve,"-item-tail")},Ce),e.createElement("div",{className:"".concat(ve,"-item-icon")},this.renderIconNode()),e.createElement("div",{className:"".concat(ve,"-item-content")},e.createElement("div",{className:"".concat(ve,"-item-title")},G,Y&&e.createElement("div",{title:typeof Y=="string"?Y:void 0,className:"".concat(ve,"-item-subtitle")},Y)),Q&&e.createElement("div",{className:"".concat(ve,"-item-description")},Q))))}}]),z}(e.Component),I=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],L=function(W){Object(m.a)(z,W);var V=Object(v.a)(z);function z(){var J;return Object(h.a)(this,z),J=V.apply(this,arguments),J.onStepClick=function(Z){var de=J.props,ie=de.onChange,ve=de.current;ie&&ve!==Z&&ie(Z)},J}return Object(p.a)(z,[{key:"render",value:function(){var Z,de=this,ie=this.props,ve=ie.prefixCls,xe=ie.style,_e=xe===void 0?{}:xe,Ue=ie.className,fe=ie.children,ke=ie.direction,se=ie.type,te=ie.labelPlacement,Ve=ie.iconPrefix,ae=ie.status,Q=ie.size,G=ie.current,Y=ie.progressDot,me=ie.stepIcon,ue=ie.initial,Ce=ie.icons,Ie=ie.onChange,ce=Object(u.a)(ie,I),Ae=se==="navigation",Te=Y?"vertical":te,Ge=T()(ve,"".concat(ve,"-").concat(ke),Ue,(Z={},Object(s.a)(Z,"".concat(ve,"-").concat(Q),Q),Object(s.a)(Z,"".concat(ve,"-label-").concat(Te),ke==="horizontal"),Object(s.a)(Z,"".concat(ve,"-dot"),!!Y),Object(s.a)(Z,"".concat(ve,"-navigation"),Ae),Z));return l.a.createElement("div",Object.assign({className:Ge,style:_e},ce),Object(y.a)(fe).map(function(gt,qe){var Le=ue+qe,Ot=Object(a.a)({stepNumber:"".concat(Le+1),stepIndex:Le,key:Le,prefixCls:ve,iconPrefix:Ve,wrapperStyle:_e,progressDot:Y,stepIcon:me,icons:Ce,onStepClick:Ie&&de.onStepClick},gt.props);return ae==="error"&&qe===G-1&&(Ot.className="".concat(ve,"-next-error")),gt.props.status||(Le===G?Ot.status=ae:Le<G?Ot.status="finish":Ot.status="wait"),Ot.active=Le===G,Object(e.cloneElement)(gt,Ot)}))}}]),z}(l.a.Component);L.Step=_,L.defaultProps={type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1};var N=L,D=d("NAnI"),R=d.n(D),k=d("V/uB"),M=d.n(k),U=d("H84U"),B=d("CFYs"),j=function(W){r()(z,W);var V=n()(z);function z(){var J;return g()(this,z),J=V.apply(this,arguments),J.renderSteps=function(Z){var de=Z.getPrefixCls,ie=Z.direction,ve=de("steps",J.props.prefixCls),xe=de("",J.props.iconPrefix),_e=J.props,Ue=_e.percent,fe=_e.size,ke=T()(J.props.className,A()({},"".concat(ve,"-rtl"),ie==="rtl")),se={finish:e.createElement(R.a,{className:"".concat(ve,"-finish-icon")}),error:e.createElement(M.a,{className:"".concat(ve,"-error-icon")})},te=function(ae){var Q=ae.node,G=ae.status;if(G==="process"&&Ue!==void 0){var Y=fe==="small"?32:40,me=e.createElement("div",{className:"".concat(ve,"-progress-icon")},e.createElement(B.a,{type:"circle",percent:Ue,width:Y,strokeWidth:4,format:function(){return null}}),Q);return me}return Q};return e.createElement(N,x()({icons:se},Object(t.default)(J.props,["progress"]),{stepIcon:te,prefixCls:ve,iconPrefix:xe,className:ke}))},J}return c()(z,[{key:"render",value:function(){return e.createElement(U.a,null,this.renderSteps)}}]),z}(e.Component);j.Step=N.Step,j.defaultProps={current:0}},L5E0:function(H,F){var d=["itemStyle","borderColor"];function O(x,C){var A=x.get("color");x.eachRawSeriesByType("boxplot",function(S){var g=A[S.seriesIndex%A.length],f=S.getData();f.setVisual({legendSymbol:"roundRect",color:S.get(d)||g}),x.isSeriesFiltered(S)||f.each(function(c){var o=f.getItemModel(c);f.setItemVisual(c,{color:o.get(d,!0)})})})}H.exports=O},LBfv:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=x.createHashMap,A=x.each;O.registerProcessor({getTargetSeries:function(S){var g=C();return S.eachComponent("dataZoom",function(f){f.eachTargetAxis(function(c,o,r){var i=r.getAxisProxy(c.name,o);A(i.getTargetSeriesModels(),function(n){g.set(n.uid,n)})})}),g},modifyOutputEnd:!0,overallReset:function(S,g){S.eachComponent("dataZoom",function(f){f.eachTargetAxis(function(c,o,r){r.getAxisProxy(c.name,o).reset(r,g)}),f.eachTargetAxis(function(c,o,r){r.getAxisProxy(c.name,o).filterData(r,g)})}),S.eachComponent("dataZoom",function(f){var c=f.findRepresentativeAxisProxy(),o=c.getDataPercentWindow(),r=c.getDataValueWindow();f.setCalculatedRange({start:o[0],end:o[1],startValue:r[0],endValue:r[1]})})}})},LCi9:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;function O(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function x(p,m){for(var v=0;v<m.length;v++){var y=m[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}function C(p,m,v){return m&&x(p.prototype,m),v&&x(p,v),p}var A=0,S=1,g=2,f=4,c=8,o=16,r=32,i=64,n=127,e=50,l=90,t=250,a=1e3,s=1e3,u=50,h=function(){function p(){O(this,p),this._target=null,this._state=n,this._tracked=[],this._ignored=[],this._waitingRelease=!1,this._releaseStart=0,this._longpressTimeoutId=null,this._twoTouchTimeoutId=null,this._boundEventHandler=this._eventHandler.bind(this)}return C(p,[{key:"attach",value:function(v){this.detach(),this._target=v,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(v){var y;v.stopPropagation(),v.preventDefault();switch(v.type){case"touchstart":y=this._touchStart;break;case"touchmove":y=this._touchMove;break;case"touchend":case"touchcancel":y=this._touchEnd;break}for(var E=0;E<v.changedTouches.length;E++){var T=v.changedTouches[E];y.call(this,T.identifier,T.clientX,T.clientY)}}},{key:"_touchStart",value:function(v,y,E){if(this._hasDetectedGesture()||this._state===A){this._ignored.push(v);return}if(this._tracked.length>0&&Date.now()-this._tracked[0].started>t){this._state=A,this._ignored.push(v);return}if(this._waitingRelease){this._state=A,this._ignored.push(v);return}this._tracked.push({id:v,started:Date.now(),active:!0,firstX:y,firstY:E,lastX:y,lastY:E,angle:0});switch(this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=~(S|c|o),this._stopLongpressTimeout();break;case 3:this._state&=~(g|r|i);break;default:this._state=A}}},{key:"_touchMove",value:function(v,y,E){var T=this._tracked.find(function(N){return N.id===v});if(T===void 0)return;T.lastX=y,T.lastY=E;var b=y-T.firstX,w=E-T.firstY;if((T.firstX!==T.lastX||T.firstY!==T.lastY)&&(T.angle=Math.atan2(w,b)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(b,w)<e)return;if(this._state&=~(S|g|f|o),this._stopLongpressTimeout(),this._tracked.length!==1&&(this._state&=~c),this._tracked.length!==2&&(this._state&=~(r|i)),this._tracked.length===2){var _=this._tracked.find(function(N){return N.id!==v}),I=Math.hypot(_.firstX-_.lastX,_.firstY-_.lastY);if(I>e){var L=Math.abs(T.angle-_.angle);L=Math.abs((L+180)%360-180),L>l?this._state&=~r:this._state&=~i,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}},{key:"_touchEnd",value:function(v,y,E){if(this._ignored.indexOf(v)!==-1){this._ignored.splice(this._ignored.indexOf(v),1),this._ignored.length===0&&this._tracked.length===0&&(this._state=n,this._waitingRelease=!1);return}if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=A),!this._hasDetectedGesture()&&(this._state&=~(c|r|i),this._state&=~o,this._stopLongpressTimeout(),!this._waitingRelease)){this._releaseStart=Date.now(),this._waitingRelease=!0;switch(this._tracked.length){case 1:this._state&=~(g|f);break;case 2:this._state&=~(S|f);break}}if(this._waitingRelease){Date.now()-this._releaseStart>t&&(this._state=A),this._tracked.some(function(w){return Date.now()-w.started>a})&&(this._state=A);var T=this._tracked.find(function(w){return w.id===v});if(T.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==A)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(var b=0;b<this._tracked.length;b++)this._tracked[b].active&&this._ignored.push(this._tracked[b].id);this._tracked=[],this._state=A,this._ignored.indexOf(v)!==-1&&this._ignored.splice(this._ignored.indexOf(v),1),this._ignored.length===0&&(this._state=n,this._waitingRelease=!1)}},{key:"_hasDetectedGesture",value:function(){return this._state===A||this._state&this._state-1?!1:!(this._state&(S|g|f)&&this._tracked.some(function(v){return v.active}))}},{key:"_startLongpressTimeout",value:function(){var v=this;this._stopLongpressTimeout(),this._longpressTimeoutId=setTimeout(function(){return v._longpressTimeout()},s)}},{key:"_stopLongpressTimeout",value:function(){clearTimeout(this._longpressTimeoutId),this._longpressTimeoutId=null}},{key:"_longpressTimeout",value:function(){if(this._hasDetectedGesture())throw new Error("A longpress gesture failed, conflict with a different gesture");this._state=o,this._pushEvent("gesturestart")}},{key:"_startTwoTouchTimeout",value:function(){var v=this;this._stopTwoTouchTimeout(),this._twoTouchTimeoutId=setTimeout(function(){return v._twoTouchTimeout()},u)}},{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 v=this._getAverageMovement(),y=Math.abs(v.x),E=Math.abs(v.y),T=this._getAverageDistance(),b=Math.abs(Math.hypot(T.first.x,T.first.y)-Math.hypot(T.last.x,T.last.y));E<b&&y<b?this._state=i:this._state=r,this._pushEvent("gesturestart"),this._pushEvent("gesturemove")}},{key:"_pushEvent",value:function(v){var y={type:this._stateToGesture(this._state)},E=this._getPosition(),T=E.last;v==="gesturestart"&&(T=E.first);switch(this._state){case r:case i:T=E.first;break}if(y.clientX=T.x,y.clientY=T.y,this._state===i){var b=this._getAverageDistance();v==="gesturestart"?(y.magnitudeX=b.first.x,y.magnitudeY=b.first.y):(y.magnitudeX=b.last.x,y.magnitudeY=b.last.y)}else if(this._state===r)if(v==="gesturestart")y.magnitudeX=0,y.magnitudeY=0;else{var w=this._getAverageMovement();y.magnitudeX=w.x,y.magnitudeY=w.y}var _=new CustomEvent(v,{detail:y});this._target.dispatchEvent(_)}},{key:"_stateToGesture",value:function(v){switch(v){case S:return"onetap";case g:return"twotap";case f:return"threetap";case c:return"drag";case o:return"longpress";case r:return"twodrag";case i:return"pinch"}throw new Error("Unknown gesture state: "+v)}},{key:"_getPosition",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture position, no tracked touches");for(var v=this._tracked.length,y=0,E=0,T=0,b=0,w=0;w<this._tracked.length;w++)y+=this._tracked[w].firstX,E+=this._tracked[w].firstY,T+=this._tracked[w].lastX,b+=this._tracked[w].lastY;return{first:{x:y/v,y:E/v},last:{x:T/v,y:b/v}}}},{key:"_getAverageMovement",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture movement, no tracked touches");var v,y;v=y=0;for(var E=this._tracked.length,T=0;T<this._tracked.length;T++)v+=this._tracked[T].lastX-this._tracked[T].firstX,y+=this._tracked[T].lastY-this._tracked[T].firstY;return{x:v/E,y:y/E}}},{key:"_getAverageDistance",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture distance, no tracked touches");var v=this._tracked[0],y=this._tracked[this._tracked.length-1],E=Math.abs(y.firstX-v.firstX),T=Math.abs(y.firstY-v.firstY),b=Math.abs(y.lastX-v.lastX),w=Math.abs(y.lastY-v.lastY);return{first:{x:E,y:T},last:{x:b,y:w}}}}]),p}();F.default=h},LPTA:function(H,F){var d=1;typeof window!="undefined"&&(d=Math.max(window.devicePixelRatio||1,1));var O=0,x=d;F.debugMode=O,F.devicePixelRatio=x},LPzL:function(H,F,d){var O=d("ProS");d("QzjZ"),d("vL6D"),d("xiyX"),d("y4/Y"),d("8Th4"),O.extendComponentView({type:"single"})},LSTS:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O=function(){function n(e,l){for(var t=0;t<l.length;t++){var a=l[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,l,t){return l&&n(e.prototype,l),t&&n(e,t),e}}(),x=d("q1tI"),C=g(x),A=d("17x9"),S=g(A);function g(n){return n&&n.__esModule?n:{default:n}}function f(n,e){var l={};for(var t in n){if(e.indexOf(t)>=0)continue;if(!Object.prototype.hasOwnProperty.call(n,t))continue;l[t]=n[t]}return l}function c(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function o(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function r(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var i=function(n){r(e,n);function e(l){c(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,l));return t.scrollListener=t.scrollListener.bind(t),t.eventListenerOptions=t.eventListenerOptions.bind(t),t.mousewheelListener=t.mousewheelListener.bind(t),t}return O(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 t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var t=!1,a={get passive(){t=!0}};try{document.addEventListener("test",null,a),document.removeEventListener("test",null,a)}catch(s){}return t}},{key:"eventListenerOptions",value:function(){var t=this.props.useCapture;return this.isPassiveSupported()&&(t={useCapture:this.props.useCapture,passive:!0}),t}},{key:"setDefaultLoader",value:function(t){this.defaultLoader=t}},{key:"detachMousewheelListener",value:function(){var t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(t){var a=this.props.getScrollParent&&this.props.getScrollParent();return a!=null?a:t&&t.parentNode}},{key:"filterProps",value:function(t){return t}},{key:"attachScrollListener",value:function(){var t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;var a=window;this.props.useWindow===!1&&(a=t),a.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),a.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),a.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}},{key:"mousewheelListener",value:function(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}},{key:"scrollListener",value:function(){var t=this.scrollComponent,a=window,s=this.getParentElement(t),u=void 0;if(this.props.useWindow){var h=document.documentElement||document.body.parentNode||document.body,p=a.pageYOffset!==void 0?a.pageYOffset:h.scrollTop;this.props.isReverse?u=p:u=this.calculateOffset(t,p)}else this.props.isReverse?u=s.scrollTop:u=t.scrollHeight-s.scrollTop-s.clientHeight;u<Number(this.props.threshold)&&t&&t.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=s.scrollHeight,this.beforeScrollTop=s.scrollTop,typeof this.props.loadMore=="function"&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(t,a){return t?this.calculateTopPosition(t)+(t.offsetHeight-a-window.innerHeight):0}},{key:"calculateTopPosition",value:function(t){return t?t.offsetTop+this.calculateTopPosition(t.offsetParent):0}},{key:"render",value:function(){var t=this,a=this.filterProps(this.props),s=a.children,u=a.element,h=a.hasMore,p=a.initialLoad,m=a.isReverse,v=a.loader,y=a.loadMore,E=a.pageStart,T=a.ref,b=a.threshold,w=a.useCapture,_=a.useWindow,I=a.getScrollParent,L=f(a,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);L.ref=function(D){t.scrollComponent=D,T&&T(D)};var N=[s];return h&&(v?m?N.unshift(v):N.push(v):this.defaultLoader&&(m?N.unshift(this.defaultLoader):N.push(this.defaultLoader))),C.default.createElement(u,L,N)}}]),e}(x.Component);i.propTypes={children:S.default.node.isRequired,element:S.default.node,hasMore:S.default.bool,initialLoad:S.default.bool,isReverse:S.default.bool,loader:S.default.node,loadMore:S.default.func.isRequired,pageStart:S.default.number,ref:S.default.func,getScrollParent:S.default.func,threshold:S.default.number,useCapture:S.default.bool,useWindow:S.default.bool},i.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},F.default=i,H.exports=F.default},Lerx:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("Mds0"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},LlR5:function(H,F,d){"use strict";d.d(F,"b",function(){return m});var O=d("lSNA"),x=d.n(O),C=d("lwsE"),A=d.n(C),S=d("W8MJ"),g=d.n(S),f=d("7W2i"),c=d.n(f),o=d("LQ03"),r=d.n(o),i=d("q1tI"),n=d.n(i),e=d("TSYQ"),l=d.n(e),t=d("kbBi"),a=d.n(t),s=d("CWQg"),u=d("mh/l"),h=d("0n0R"),p=Object(s.a)("text","input");function m(y){return!!(y.prefix||y.suffix||y.allowClear)}var v=function(y){c()(T,y);var E=r()(T);function T(){var b;return A()(this,T),b=E.apply(this,arguments),b.containerRef=i.createRef(),b.onInputMouseUp=function(w){var _;if((_=b.containerRef.current)===null||_===void 0?void 0:_.contains(w.target)){var I=b.props.triggerFocus;I()}},b}return g()(T,[{key:"renderClearIcon",value:function(w){var _=this.props,I=_.allowClear,L=_.value,N=_.disabled,D=_.readOnly,R=_.inputType,k=_.handleReset;if(!I)return null;var M=!N&&!D&&L,U=R===p[0]?"".concat(w,"-textarea-clear-icon"):"".concat(w,"-clear-icon");return i.createElement(a.a,{onClick:k,className:l()(U,x()({},"".concat(U,"-hidden"),!M)),role:"button"})}},{key:"renderSuffix",value:function(w){var _=this.props,I=_.suffix,L=_.allowClear;return I||L?i.createElement("span",{className:"".concat(w,"-suffix")},this.renderClearIcon(w),I):null}},{key:"renderLabeledIcon",value:function(w,_){var I,L=this.props,N=L.focused,D=L.value,R=L.prefix,k=L.className,M=L.size,U=L.suffix,B=L.disabled,j=L.allowClear,W=L.direction,V=L.style,z=L.readOnly,J=L.bordered,Z=this.renderSuffix(w);if(!m(this.props))return Object(h.a)(_,{value:D});var de=R?i.createElement("span",{className:"".concat(w,"-prefix")},R):null,ie=l()(k,"".concat(w,"-affix-wrapper"),(I={},x()(I,"".concat(w,"-affix-wrapper-focused"),N),x()(I,"".concat(w,"-affix-wrapper-disabled"),B),x()(I,"".concat(w,"-affix-wrapper-sm"),M==="small"),x()(I,"".concat(w,"-affix-wrapper-lg"),M==="large"),x()(I,"".concat(w,"-affix-wrapper-input-with-clear-btn"),U&&j&&D),x()(I,"".concat(w,"-affix-wrapper-rtl"),W==="rtl"),x()(I,"".concat(w,"-affix-wrapper-readonly"),z),x()(I,"".concat(w,"-affix-wrapper-borderless"),!J),I));return i.createElement("span",{ref:this.containerRef,className:ie,style:V,onMouseUp:this.onInputMouseUp},de,Object(h.a)(_,{style:null,value:D,className:Object(u.c)(w,J,M,B)}),Z)}},{key:"renderInputWithLabel",value:function(w,_){var I,L,N=this.props,D=N.addonBefore,R=N.addonAfter,k=N.style,M=N.size,U=N.className,B=N.direction;if(!D&&!R)return _;var j="".concat(w,"-group"),W="".concat(j,"-addon"),V=D?i.createElement("span",{className:W},D):null,z=R?i.createElement("span",{className:W},R):null,J=l()("".concat(w,"-wrapper"),(I={},x()(I,j,D||R),x()(I,"".concat(j,"-rtl"),B==="rtl"),I)),Z=l()(U,"".concat(w,"-group-wrapper"),(L={},x()(L,"".concat(w,"-group-wrapper-sm"),M==="small"),x()(L,"".concat(w,"-group-wrapper-lg"),M==="large"),x()(L,"".concat(w,"-group-wrapper-rtl"),B==="rtl"),L));return i.createElement("span",{className:Z,style:k},i.createElement("span",{className:J},V,Object(h.a)(_,{style:null}),z))}},{key:"renderTextAreaWithClearIcon",value:function(w,_){var I,L=this.props,N=L.value,D=L.allowClear,R=L.className,k=L.style,M=L.direction,U=L.bordered;if(!D)return Object(h.a)(_,{value:N});var B=l()(R,"".concat(w,"-affix-wrapper"),"".concat(w,"-affix-wrapper-textarea-with-clear-btn"),(I={},x()(I,"".concat(w,"-affix-wrapper-rtl"),M==="rtl"),x()(I,"".concat(w,"-affix-wrapper-borderless"),!U),I));return i.createElement("span",{className:B,style:k},Object(h.a)(_,{style:null,value:N}),this.renderClearIcon(w))}},{key:"render",value:function(){var w=this.props,_=w.prefixCls,I=w.inputType,L=w.element;return I===p[0]?this.renderTextAreaWithClearIcon(_,L):this.renderInputWithLabel(_,this.renderLabeledIcon(_,L))}}]),T}(i.Component);F.a=v},Llu2:function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="DeliveredProcedureOutlined";var f=F.a=x.forwardRef(g)},Lo0S:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.initLogging=g,F.getLogging=f,F.Error=F.Warn=F.Info=F.Debug=void 0;var O="warn",x=function(){};F.Debug=x;var C=function(){};F.Info=C;var A=function(){};F.Warn=A;var S=function(){};F.Error=S;function g(c){if(typeof c=="undefined"?c=O:O=c,F.Debug=x=F.Info=C=F.Warn=A=F.Error=S=function(){},typeof window.console!="undefined")switch(c){case"debug":F.Debug=x=console.debug.bind(window.console);case"info":F.Info=C=console.info.bind(window.console);case"warn":F.Warn=A=console.warn.bind(window.console);case"error":F.Error=S=console.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+c+"'")}}function f(){return O}g()},LtfV:function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="InboxOutlined";var f=F.a=x.forwardRef(g)},Lyp1:function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="QuestionCircleOutlined";var f=F.a=x.forwardRef(g)},LzGr:function(H,F,d){var O=d("ProS"),x=d("rnVJ");d("EMyp"),d("8x+h"),d("wt3j"),d("uOyE"),d("/stD"),O.registerPreprocessor(x)},MBQ8:function(H,F,d){var O=d("T4UG"),x=d("MwEJ"),C=O.extend({type:"series.__base_bar__",getInitialData:function(A,S){return x(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(A){var S=this.coordinateSystem;if(S){var g=S.dataToPoint(S.clampData(A)),f=this.getData(),c=f.getLayout("offset"),o=f.getLayout("size"),r=S.getBaseAxis().isHorizontal()?0:1;return g[r]+=c+o/2,g}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:{}}});H.exports=C},MEGo:function(H,F,d){var O=d("4fz+"),x=d("Dagg"),C=d("dqUG"),A=d("2fw6"),S=d("x6Kt"),g=d("rmlV"),f=d("yxFR"),c=d("y+Vt"),o=d("h7HQ"),r=d("1Jh7"),i=d("SKnc"),n=d("K2GJ"),e=d("Fofx"),l=d("NC18"),t=l.createFromString,a=d("bYtY"),s=a.isString,u=a.extend,h=a.defaults,p=a.trim,m=a.each,v=/[\s,]+/;function y(V){if(s(V)){var z=new DOMParser;V=z.parseFromString(V,"text/xml")}for(V.nodeType===9&&(V=V.firstChild);V.nodeName.toLowerCase()!=="svg"||V.nodeType!==1;)V=V.nextSibling;return V}function E(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}E.prototype.parse=function(V,z){z=z||{};var J=y(V);if(!J)throw new Error("Illegal svg");var Z=new O;this._root=Z;var de=J.getAttribute("viewBox")||"",ie=parseFloat(J.getAttribute("width")||z.width),ve=parseFloat(J.getAttribute("height")||z.height);isNaN(ie)&&(ie=null),isNaN(ve)&&(ve=null),N(J,Z,null,!0);for(var xe=J.firstChild;xe;)this._parseNode(xe,Z),xe=xe.nextSibling;var _e,Ue;if(de){var fe=p(de).split(v);fe.length>=4&&(_e={x:parseFloat(fe[0]||0),y:parseFloat(fe[1]||0),width:parseFloat(fe[2]),height:parseFloat(fe[3])})}if(_e&&ie!=null&&ve!=null&&(Ue=j(_e,ie,ve),!z.ignoreViewBox)){var ke=Z;Z=new O,Z.add(ke),ke.scale=Ue.scale.slice(),ke.position=Ue.position.slice()}return!z.ignoreRootClip&&ie!=null&&ve!=null&&Z.setClipPath(new S({shape:{x:0,y:0,width:ie,height:ve}})),{root:Z,width:ie,height:ve,viewBoxRect:_e,viewBoxTransform:Ue}},E.prototype._parseNode=function(V,z){var J=V.nodeName.toLowerCase();J==="defs"?this._isDefine=!0:J==="text"&&(this._isText=!0);var Z;if(this._isDefine){var de=b[J];if(de){var ie=de.call(this,V),ve=V.getAttribute("id");ve&&(this._defs[ve]=ie)}}else{var de=T[J];de&&(Z=de.call(this,V,z),z.add(Z))}for(var xe=V.firstChild;xe;)xe.nodeType===1&&this._parseNode(xe,Z),xe.nodeType===3&&this._isText&&this._parseText(xe,Z),xe=xe.nextSibling;J==="defs"?this._isDefine=!1:J==="text"&&(this._isText=!1)},E.prototype._parseText=function(V,z){if(V.nodeType===1){var J=V.getAttribute("dx")||0,Z=V.getAttribute("dy")||0;this._textX+=parseFloat(J),this._textY+=parseFloat(Z)}var de=new C({style:{text:V.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});_(z,de),N(V,de,this._defs);var ie=de.style.fontSize;ie&&ie<9&&(de.style.fontSize=9,de.scale=de.scale||[1,1],de.scale[0]*=ie/9,de.scale[1]*=ie/9);var ve=de.getBoundingRect();return this._textX+=ve.width,z.add(de),de};var T={g:function(z,J){var Z=new O;return _(J,Z),N(z,Z,this._defs),Z},rect:function(z,J){var Z=new S;return _(J,Z),N(z,Z,this._defs),Z.setShape({x:parseFloat(z.getAttribute("x")||0),y:parseFloat(z.getAttribute("y")||0),width:parseFloat(z.getAttribute("width")||0),height:parseFloat(z.getAttribute("height")||0)}),Z},circle:function(z,J){var Z=new A;return _(J,Z),N(z,Z,this._defs),Z.setShape({cx:parseFloat(z.getAttribute("cx")||0),cy:parseFloat(z.getAttribute("cy")||0),r:parseFloat(z.getAttribute("r")||0)}),Z},line:function(z,J){var Z=new f;return _(J,Z),N(z,Z,this._defs),Z.setShape({x1:parseFloat(z.getAttribute("x1")||0),y1:parseFloat(z.getAttribute("y1")||0),x2:parseFloat(z.getAttribute("x2")||0),y2:parseFloat(z.getAttribute("y2")||0)}),Z},ellipse:function(z,J){var Z=new g;return _(J,Z),N(z,Z,this._defs),Z.setShape({cx:parseFloat(z.getAttribute("cx")||0),cy:parseFloat(z.getAttribute("cy")||0),rx:parseFloat(z.getAttribute("rx")||0),ry:parseFloat(z.getAttribute("ry")||0)}),Z},polygon:function(z,J){var Z=z.getAttribute("points");Z&&(Z=I(Z));var de=new o({shape:{points:Z||[]}});return _(J,de),N(z,de,this._defs),de},polyline:function(z,J){var Z=new c;_(J,Z),N(z,Z,this._defs);var de=z.getAttribute("points");de&&(de=I(de));var ie=new r({shape:{points:de||[]}});return ie},image:function(z,J){var Z=new x;return _(J,Z),N(z,Z,this._defs),Z.setStyle({image:z.getAttribute("xlink:href"),x:z.getAttribute("x"),y:z.getAttribute("y"),width:z.getAttribute("width"),height:z.getAttribute("height")}),Z},text:function(z,J){var Z=z.getAttribute("x")||0,de=z.getAttribute("y")||0,ie=z.getAttribute("dx")||0,ve=z.getAttribute("dy")||0;this._textX=parseFloat(Z)+parseFloat(ie),this._textY=parseFloat(de)+parseFloat(ve);var xe=new O;return _(J,xe),N(z,xe,this._defs),xe},tspan:function(z,J){var Z=z.getAttribute("x"),de=z.getAttribute("y");Z!=null&&(this._textX=parseFloat(Z)),de!=null&&(this._textY=parseFloat(de));var ie=z.getAttribute("dx")||0,ve=z.getAttribute("dy")||0,xe=new O;return _(J,xe),N(z,xe,this._defs),this._textX+=ie,this._textY+=ve,xe},path:function(z,J){var Z=z.getAttribute("d")||"",de=t(Z);return _(J,de),N(z,de,this._defs),de}},b={lineargradient:function(z){var J=parseInt(z.getAttribute("x1")||0,10),Z=parseInt(z.getAttribute("y1")||0,10),de=parseInt(z.getAttribute("x2")||10,10),ie=parseInt(z.getAttribute("y2")||0,10),ve=new i(J,Z,de,ie);return w(z,ve),ve},radialgradient:function(z){}};function w(V,z){for(var J=V.firstChild;J;){if(J.nodeType===1){var Z=J.getAttribute("offset");Z.indexOf("%")>0?Z=parseInt(Z,10)/100:Z?Z=parseFloat(Z):Z=0;var de=J.getAttribute("stop-color")||"#000000";z.addColorStop(Z,de)}J=J.nextSibling}}function _(V,z){V&&V.__inheritedStyle&&(z.__inheritedStyle||(z.__inheritedStyle={}),h(z.__inheritedStyle,V.__inheritedStyle))}function I(V){for(var z=p(V).split(v),J=[],Z=0;Z<z.length;Z+=2){var de=parseFloat(z[Z]),ie=parseFloat(z[Z+1]);J.push([de,ie])}return J}var L={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 N(V,z,J,Z){var de=z.__inheritedStyle||{},ie=z.type==="text";if(V.nodeType===1&&(M(V,z),u(de,B(V)),!Z)){for(var ve in L)if(L.hasOwnProperty(ve)){var xe=V.getAttribute(ve);xe!=null&&(de[L[ve]]=xe)}}var _e=ie?"textFill":"fill",Ue=ie?"textStroke":"stroke";z.style=z.style||new n;var fe=z.style;de.fill!=null&&fe.set(_e,R(de.fill,J)),de.stroke!=null&&fe.set(Ue,R(de.stroke,J)),m(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(ke){var se=ke==="lineWidth"&&ie?"textStrokeWidth":ke;de[ke]!=null&&fe.set(se,parseFloat(de[ke]))}),(!de.textBaseline||de.textBaseline==="auto")&&(de.textBaseline="alphabetic"),de.textBaseline==="alphabetic"&&(de.textBaseline="bottom"),de.textAlign==="start"&&(de.textAlign="left"),de.textAlign==="end"&&(de.textAlign="right"),m(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(ke){de[ke]!=null&&fe.set(ke,de[ke])}),de.lineDash&&(z.style.lineDash=p(de.lineDash).split(v)),fe[Ue]&&fe[Ue]!=="none"&&(z[Ue]=!0),z.__inheritedStyle=de}var D=/url\(\s*#(.*?)\)/;function R(V,z){var J=z&&V&&V.match(D);if(J){var Z=p(J[1]),de=z[Z];return de}return V}var k=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function M(V,z){var J=V.getAttribute("transform");if(J){J=J.replace(/,/g," ");var Z=null,de=[];J.replace(k,function(_e,Ue,fe){de.push(Ue,fe)});for(var ie=de.length-1;ie>0;ie-=2){var ve=de[ie],xe=de[ie-1];Z=Z||e.create();switch(xe){case"translate":ve=p(ve).split(v),e.translate(Z,Z,[parseFloat(ve[0]),parseFloat(ve[1]||0)]);break;case"scale":ve=p(ve).split(v),e.scale(Z,Z,[parseFloat(ve[0]),parseFloat(ve[1]||ve[0])]);break;case"rotate":ve=p(ve).split(v),e.rotate(Z,Z,parseFloat(ve[0]));break;case"skew":ve=p(ve).split(v),console.warn("Skew transform is not supported yet");break;case"matrix":var ve=p(ve).split(v);Z[0]=parseFloat(ve[0]),Z[1]=parseFloat(ve[1]),Z[2]=parseFloat(ve[2]),Z[3]=parseFloat(ve[3]),Z[4]=parseFloat(ve[4]),Z[5]=parseFloat(ve[5]);break}}z.setLocalTransform(Z)}}var U=/([^\s:;]+)\s*:\s*([^:;]+)/g;function B(V){var z=V.getAttribute("style"),J={};if(!z)return J;var Z={};U.lastIndex=0;for(var de;(de=U.exec(z))!=null;)Z[de[1]]=de[2];for(var ie in L)L.hasOwnProperty(ie)&&Z[ie]!=null&&(J[L[ie]]=Z[ie]);return J}function j(V,z,J){var Z=z/V.width,de=J/V.height,ie=Math.min(Z,de),ve=[ie,ie],xe=[-(V.x+V.width/2)*ie+z/2,-(V.y+V.height/2)*ie+J/2];return{scale:ve,position:xe}}function W(V,z){var J=new E;return J.parse(V,z)}F.parseXML=y,F.makeViewBoxTransform=j,F.parseSVG=W},MFOe:function(H,F,d){(function(O){var x=g(),C=f(),A=c(),S=typeof window!="undefined"?window:O;H.exports={assign:x,create:C,trim:A,bind:o,slice:r,each:i,map:n,pluck:e,isList:l,isFunction:t,isObject:a,Global:S};function g(){return Object.assign?Object.assign:function(u,h,p,m){for(var v=1;v<arguments.length;v++)i(Object(arguments[v]),function(y,E){u[E]=y});return u}}function f(){if(Object.create)return function(h,p,m,v){var y=r(arguments,1);return x.apply(this,[Object.create(h)].concat(y))};var s=function(){};return function(h,p,m,v){var y=r(arguments,1);return s.prototype=h,x.apply(this,[new s].concat(y))}}function c(){return String.prototype.trim?function(u){return String.prototype.trim.call(u)}:function(u){return u.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function o(s,u){return function(){return u.apply(s,Array.prototype.slice.call(arguments,0))}}function r(s,u){return Array.prototype.slice.call(s,u||0)}function i(s,u){e(s,function(h,p){return u(h,p),!1})}function n(s,u){var h=l(s)?[]:{};return e(s,function(p,m){return h[m]=u(p,m),!1}),h}function e(s,u){if(l(s)){for(var h=0;h<s.length;h++)if(u(s[h],h))return s[h]}else for(var p in s)if(s.hasOwnProperty(p)&&u(s[p],p))return s[p]}function l(s){return s!=null&&typeof s!="function"&&typeof s.length=="number"}function t(s){return s&&{}.toString.call(s)==="[object Function]"}function a(s){return s&&{}.toString.call(s)==="[object Object]"}}).call(this,d("yLpj"))},MH26:function(H,F,d){var O=d("bYtY"),x=d("YXkt"),C=d("OELB"),A=d("kj2x"),S=d("c8qY"),g=d("iPDy"),f=d("7hqr"),c=f.getStackedDimension,o=function(a,s,u,h){var p=a.getData(),m=h.type;if(!O.isArray(h)&&(m==="min"||m==="max"||m==="average"||m==="median"||h.xAxis!=null||h.yAxis!=null)){var v,y;if(h.yAxis!=null||h.xAxis!=null)v=s.getAxis(h.yAxis!=null?"y":"x"),y=O.retrieve(h.yAxis,h.xAxis);else{var E=A.getAxisInfo(h,p,s,a);v=E.valueAxis;var T=c(p,E.valueDataDim);y=A.numCalculate(p,T,m)}var b=v.dim==="x"?0:1,w=1-b,_=O.clone(h),I={};_.type=null,_.coord=[],I.coord=[],_.coord[w]=-Infinity,I.coord[w]=Infinity;var L=u.get("precision");L>=0&&typeof y=="number"&&(y=+y.toFixed(Math.min(L,20))),_.coord[b]=I.coord[b]=y,h=[_,I,{type:m,valueIndex:h.valueIndex,value:y}]}return h=[A.dataTransform(a,h[0]),A.dataTransform(a,h[1]),O.extend({},h[2])],h[2].type=h[2].type||"",O.merge(h[2],h[0]),O.merge(h[2],h[1]),h};function r(a){return!isNaN(a)&&!isFinite(a)}function i(a,s,u,h){var p=1-a,m=h.dimensions[a];return r(s[p])&&r(u[p])&&s[a]===u[a]&&h.getAxis(m).containData(s[a])}function n(a,s){if(a.type==="cartesian2d"){var u=s[0].coord,h=s[1].coord;if(u&&h&&(i(1,u,h,a)||i(0,u,h,a)))return!0}return A.dataFilter(a,s[0])&&A.dataFilter(a,s[1])}function e(a,s,u,h,p){var m=h.coordinateSystem,v=a.getItemModel(s),y,E=C.parsePercent(v.get("x"),p.getWidth()),T=C.parsePercent(v.get("y"),p.getHeight());if(!isNaN(E)&&!isNaN(T))y=[E,T];else{if(h.getMarkerPosition)y=h.getMarkerPosition(a.getValues(a.dimensions,s));else{var b=m.dimensions,w=a.get(b[0],s),_=a.get(b[1],s);y=m.dataToPoint([w,_])}if(m.type==="cartesian2d"){var I=m.getAxis("x"),L=m.getAxis("y"),b=m.dimensions;r(a.get(b[0],s))?y[0]=I.toGlobalCoord(I.getExtent()[u?0:1]):r(a.get(b[1],s))&&(y[1]=L.toGlobalCoord(L.getExtent()[u?0:1]))}isNaN(E)||(y[0]=E),isNaN(T)||(y[1]=T)}a.setItemLayout(s,y)}var l=g.extend({type:"markLine",updateTransform:function(a,s,u){s.eachSeries(function(h){var p=h.markLineModel;if(p){var m=p.getData(),v=p.__from,y=p.__to;v.each(function(E){e(v,E,!0,h,u),e(y,E,!1,h,u)}),m.each(function(E){m.setItemLayout(E,[v.getItemLayout(E),y.getItemLayout(E)])}),this.markerGroupMap.get(h.id).updateLayout()}},this)},renderSeries:function(a,s,u,h){var p=a.coordinateSystem,m=a.id,v=a.getData(),y=this.markerGroupMap,E=y.get(m)||y.set(m,new S);this.group.add(E.group);var T=t(p,a,s),b=T.from,w=T.to,_=T.line;s.__from=b,s.__to=w,s.setData(_);var I=s.get("symbol"),L=s.get("symbolSize");O.isArray(I)||(I=[I,I]),typeof L=="number"&&(L=[L,L]),T.from.each(function(D){N(b,D,!0),N(w,D,!1)}),_.each(function(D){var R=_.getItemModel(D).get("lineStyle.color");_.setItemVisual(D,{color:R||b.getItemVisual(D,"color")}),_.setItemLayout(D,[b.getItemLayout(D),w.getItemLayout(D)]),_.setItemVisual(D,{fromSymbolSize:b.getItemVisual(D,"symbolSize"),fromSymbol:b.getItemVisual(D,"symbol"),toSymbolSize:w.getItemVisual(D,"symbolSize"),toSymbol:w.getItemVisual(D,"symbol")})}),E.updateData(_),T.line.eachItemGraphicEl(function(D,R){D.traverse(function(k){k.dataModel=s})});function N(D,R,k){var M=D.getItemModel(R);e(D,R,k,a,h),D.setItemVisual(R,{symbolSize:M.get("symbolSize")||L[k?0:1],symbol:M.get("symbol",!0)||I[k?0:1],color:M.get("itemStyle.color")||v.getVisual("color")})}E.__keep=!0,E.group.silent=s.get("silent")||a.get("silent")}});function t(a,s,u){var h;a?h=O.map(a&&a.dimensions,function(T){var b=s.getData().getDimensionInfo(s.getData().mapDimension(T))||{};return O.defaults({name:T},b)}):h=[{name:"value",type:"float"}];var p=new x(h,u),m=new x(h,u),v=new x([],u),y=O.map(u.get("data"),O.curry(o,s,a,u));a&&(y=O.filter(y,O.curry(n,a)));var E=a?A.dimValueGetter:function(T){return T.value};return p.initData(O.map(y,function(T){return T[0]}),null,E),m.initData(O.map(y,function(T){return T[1]}),null,E),v.initData(O.map(y,function(T){return T[2]})),v.hasItemOption=!0,{from:p,to:m,line:v}}H.exports=l},MHoB:function(H,F,d){var O=d("bYtY"),x=d("6uqw"),C=d("OELB"),A=[20,140],S=x.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(c,o){S.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(r){r.mappingMethod="linear",r.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){S.superApply(this,"resetItemSize",arguments);var c=this.itemSize;this._orient==="horizontal"&&c.reverse(),(c[0]==null||isNaN(c[0]))&&(c[0]=A[0]),(c[1]==null||isNaN(c[1]))&&(c[1]=A[1])},_resetRange:function(){var c=this.getExtent(),o=this.option.range;!o||o.auto?(c.auto=1,this.option.range=c):O.isArray(o)&&(o[0]>o[1]&&o.reverse(),o[0]=Math.max(o[0],c[0]),o[1]=Math.min(o[1],c[1]))},completeVisualOption:function(){x.prototype.completeVisualOption.apply(this,arguments),O.each(this.stateList,function(c){var o=this.option.controller[c].symbolSize;o&&o[0]!==o[1]&&(o[0]=0)},this)},setSelected:function(c){this.option.range=c.slice(),this._resetRange()},getSelected:function(){var c=this.getExtent(),o=C.asc((this.get("range")||[]).slice());return o[0]>c[1]&&(o[0]=c[1]),o[1]>c[1]&&(o[1]=c[1]),o[0]<c[0]&&(o[0]=c[0]),o[1]<c[0]&&(o[1]=c[0]),o},getValueState:function(c){var o=this.option.range,r=this.getExtent();return(o[0]<=r[0]||o[0]<=c)&&(o[1]>=r[1]||c<=o[1])?"inRange":"outOfRange"},findTargetDataIndices:function(c){var o=[];return this.eachTargetSeries(function(r){var i=[],n=r.getData();n.each(this.getDataDimension(n),function(e,l){c[0]<=e&&e<=c[1]&&i.push(l)},this),o.push({seriesId:r.id,dataIndex:i})},this),o},getVisualMeta:function(c){var o=g(this,"outOfRange",this.getExtent()),r=g(this,"inRange",this.option.range.slice()),i=[];function n(h,p){i.push({value:h,color:c(h,p)})}for(var e=0,l=0,t=r.length,a=o.length;l<a&&(!r.length||o[l]<=r[0]);l++)o[l]<r[e]&&n(o[l],"outOfRange");for(var s=1;e<t;e++,s=0)s&&i.length&&n(r[e],"outOfRange"),n(r[e],"inRange");for(var s=1;l<a;l++)(!r.length||r[r.length-1]<o[l])&&(s&&(i.length&&n(i[i.length-1].value,"outOfRange"),s=0),n(o[l],"outOfRange"));var u=i.length;return{stops:i,outerColors:[u?i[0].color:"transparent",u?i[u-1].color:"transparent"]}}});function g(c,o,r){if(r[0]===r[1])return r.slice();for(var i=200,n=(r[1]-r[0])/i,e=r[0],l=[],t=0;t<=i&&e<r[1];t++)l.push(e),e+=n;return l.push(r[1]),l}var f=S;H.exports=f},MHtr:function(H,F,d){var O=d("bYtY");function x(A,S){var g=this.getAxis(),f=S instanceof Array?S[0]:S,c=(A instanceof Array?A[0]:A)/2;return g.type==="category"?g.getBandWidth():Math.abs(g.dataToCoord(f-c)-g.dataToCoord(f+c))}function C(A){var S=A.getRect();return{coordSys:{type:"singleAxis",x:S.x,y:S.y,width:S.width,height:S.height},api:{coord:function(g){return A.dataToPoint(g)},size:O.bind(x,A)}}}H.exports=C},MJZm:function(H,F,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),S=d("q1tI"),g=d("rePB"),f=d("VTBJ"),c=d("KQm4"),o=d("1OyB"),r=d("vuIU"),i=d("Ji7U"),n=d("LK+K"),e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Tt){var Xe=Tt.keyCode;if(Tt.altKey&&!Tt.ctrlKey||Tt.metaKey||Xe>=e.F1&&Xe<=e.F12)return!1;switch(Xe){case e.ALT:case e.CAPS_LOCK:case e.CONTEXT_MENU:case e.CTRL:case e.DOWN:case e.END:case e.ESC:case e.HOME:case e.INSERT:case e.LEFT:case e.MAC_FF_META:case e.META:case e.NUMLOCK:case e.NUM_CENTER:case e.PAGE_DOWN:case e.PAGE_UP:case e.PAUSE:case e.PRINT_SCREEN:case e.RIGHT:case e.SHIFT:case e.UP:case e.WIN_KEY:case e.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Tt){if(Tt>=e.ZERO&&Tt<=e.NINE)return!0;if(Tt>=e.NUM_ZERO&&Tt<=e.NUM_MULTIPLY)return!0;if(Tt>=e.A&&Tt<=e.Z)return!0;if(window.navigator.userAgent.indexOf("WebKit")!==-1&&Tt===0)return!0;switch(Tt){case e.SPACE:case e.QUESTION_MARK:case e.NUM_PLUS:case e.NUM_MINUS:case e.NUM_PERIOD:case e.NUM_DIVISION:case e.SEMICOLON:case e.DASH:case e.EQUALS:case e.COMMA:case e.PERIOD:case e.SLASH:case e.APOSTROPHE:case e.SINGLE_QUOTE:case e.OPEN_SQUARE_BRACKET:case e.BACKSLASH:case e.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},l=e,t=d("xroW"),a=d("TSYQ"),s=d.n(a),u=d("FTAc"),h=d("wPhX"),p=d("c3jg"),m=d("ODXe"),v=d("Ff2n"),y=d("+nKL"),E=d("HTfv"),T=d("lr6o"),b=function(Tt,Xe){var oe=Tt.className,X=Tt.style,Be=Tt.motion,Ee=Tt.motionNodes,ee=Tt.motionType,lt=Tt.onMotionStart,Ct=Tt.onMotionEnd,dt=Tt.active,_t=Tt.treeNodeRequiredProps,ir=Object(v.a)(Tt,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),$r=S.useState(!0),nr=Object(m.a)($r,2),lr=nr[0],zt=nr[1],Ut=S.useContext(u.a),st=Ut.prefixCls,Hr=S.useRef(!1),mn=function(){Hr.current||Ct(),Hr.current=!0};return Object(S.useEffect)(function(){Ee&&ee==="hide"&&lr&&zt(!1)},[Ee]),Object(S.useEffect)(function(){return Ee&<(),function(){Ee&&mn()}},[]),Ee?S.createElement(E.default,Object.assign({ref:Xe,visible:lr},Be,{motionAppear:ee==="show",onAppearEnd:mn,onLeaveEnd:mn}),function(In,Yn){var Mi=In.className,wn=In.style;return S.createElement("div",{ref:Yn,className:s()("".concat(st,"-treenode-motion"),Mi),style:wn},Ee.map(function(Rn){var kt=Rn.data,vt=kt.key,Re=Object(v.a)(kt,["key"]),Ke=Rn.isStart,Pe=Rn.isEnd;delete Re.children;var nt=Object(p.f)(vt,_t);return S.createElement(T.a,Object.assign({},Re,nt,{active:dt,data:Rn.data,key:vt,isStart:Ke,isEnd:Pe}))}))}):S.createElement(T.a,Object.assign({domRef:Xe,className:oe,style:X},ir,{active:dt}))};b.displayName="MotionTreeNode";var w=S.forwardRef(b),_=w;function I(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Xe=Mt.length,oe=Tt.length;if(Math.abs(Xe-oe)!==1)return{add:!1,key:null};function X(Be,Ee){var ee=new Map;Be.forEach(function(Ct){ee.set(Ct,!0)});var lt=Ee.filter(function(Ct){return!ee.has(Ct)});return lt.length===1?lt[0]:null}return Xe<oe?{add:!0,key:X(Mt,Tt)}:{add:!1,key:X(Tt,Mt)}}function L(Mt,Tt,Xe){var oe=Mt.findIndex(function(ee){var lt=ee.data;return lt.key===Xe}),X=Mt[oe+1],Be=Tt.findIndex(function(ee){var lt=ee.data;return lt.key===Xe});if(X){var Ee=Tt.findIndex(function(ee){var lt=ee.data;return lt.key===X.data.key});return Tt.slice(Be+1,Ee)}return Tt.slice(Be+1)}var N={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},D=function(){},R="RC_TREE_MOTION_".concat(Math.random()),k={key:R},M={key:R,level:0,index:0,pos:"0",node:k},U={parent:null,children:[],pos:M.pos,data:k,isStart:[],isEnd:[]};function B(Mt,Tt,Xe,oe){return Tt===!1||!Xe?Mt:Mt.slice(0,Math.ceil(Xe/oe)+1)}function j(Mt){var Tt=Mt.data.key,Xe=Mt.pos;return Object(p.e)(Tt,Xe)}function W(Mt){for(var Tt=String(Mt.data.key),Xe=Mt;Xe.parent;)Xe=Xe.parent,Tt="".concat(Xe.data.key," > ").concat(Tt);return Tt}var V=function(Tt,Xe){var oe=Tt.prefixCls,X=Tt.data,Be=Tt.selectable,Ee=Tt.checkable,ee=Tt.expandedKeys,lt=Tt.selectedKeys,Ct=Tt.checkedKeys,dt=Tt.loadedKeys,_t=Tt.loadingKeys,ir=Tt.halfCheckedKeys,$r=Tt.keyEntities,nr=Tt.disabled,lr=Tt.dragging,zt=Tt.dragOverNodeKey,Ut=Tt.dropPosition,st=Tt.motion,Hr=Tt.height,mn=Tt.itemHeight,In=Tt.virtual,Yn=Tt.focusable,Mi=Tt.activeItem,wn=Tt.focused,Rn=Tt.tabIndex,kt=Tt.onKeyDown,vt=Tt.onFocus,Re=Tt.onBlur,Ke=Tt.onActiveChange,Pe=Tt.onListChangeStart,nt=Tt.onListChangeEnd,yt=Object(v.a)(Tt,["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"]),Dt=S.useRef(null);S.useImperativeHandle(Xe,function(){return{scrollTo:function(Qe){Dt.current.scrollTo(Qe)}}});var bt=S.useState(ee),It=Object(m.a)(bt,2),gr=It[0],kr=It[1],wt=S.useState(X),rt=Object(m.a)(wt,2),tt=rt[0],Rt=rt[1],Ft=S.useState(X),At=Object(m.a)(Ft,2),Wt=At[0],ot=At[1],Bt=S.useState([]),Ar=Object(m.a)(Bt,2),rr=Ar[0],pr=Ar[1],tn=S.useState(null),hn=Object(m.a)(tn,2),Mn=hn[0],Xn=hn[1];function si(){Rt(X),ot(X),pr([]),Xn(null),nt()}S.useEffect(function(){kr(ee);var _i=I(gr,ee);if(_i.key!==null)if(_i.add){var Qe=tt.findIndex(function(Ze){var mt=Ze.data.key;return mt===_i.key}),we=B(L(tt,X,_i.key),In,Hr,mn),Ne=tt.slice();Ne.splice(Qe+1,0,U),ot(Ne),pr(we),Xn("show")}else{var Fe=X.findIndex(function(Ze){var mt=Ze.data.key;return mt===_i.key}),Ye=B(L(X,tt,_i.key),In,Hr,mn),We=X.slice();We.splice(Fe+1,0,U),ot(We),pr(Ye),Xn("hide")}else tt!==X&&(Rt(X),ot(X))},[ee,X]),S.useEffect(function(){lr||si()},[lr]);var vi=st?Wt:X,xi={expandedKeys:ee,selectedKeys:lt,loadedKeys:dt,loadingKeys:_t,checkedKeys:Ct,halfCheckedKeys:ir,dragOverNodeKey:zt,dropPosition:Ut,keyEntities:$r};return S.createElement(S.Fragment,null,wn&&Mi&&S.createElement("span",{style:N,"aria-live":"assertive"},W(Mi)),S.createElement("div",{role:"tree"},S.createElement("input",{style:N,disabled:Yn===!1||nr,tabIndex:Yn!==!1?Rn:null,onKeyDown:kt,onFocus:vt,onBlur:Re,value:"",onChange:D})),S.createElement(y.a,Object.assign({},yt,{data:vi,itemKey:j,height:Hr,fullHeight:!1,virtual:In,itemHeight:mn,prefixCls:"".concat(oe,"-list"),ref:Dt}),function(_i){var Qe=_i.pos,we=_i.data,Ne=we.key,Fe=Object(v.a)(we,["key"]),Ye=_i.isStart,We=_i.isEnd,Ze=Object(p.e)(Ne,Qe);delete Fe.children;var mt=Object(p.f)(Ze,xi);return S.createElement(_,Object.assign({},Fe,mt,{active:Mi&&Ne===Mi.data.key,pos:Qe,data:_i.data,isStart:Ye,isEnd:We,motion:st,motionNodes:Ne===R?rr:null,motionType:Mn,onMotionStart:Pe,onMotionEnd:si,treeNodeRequiredProps:xi,onMouseMove:function(){Ke(null)}}))}))},z=S.forwardRef(V);z.displayName="NodeList";var J=z,Z=d("qOx5"),de=function(Mt){Object(i.a)(Xe,Mt);var Tt=Object(n.a)(Xe);function Xe(){var oe;return Object(o.a)(this,Xe),oe=Tt.apply(this,arguments),oe.destroyed=!1,oe.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},oe.listRef=S.createRef(),oe.onNodeDragStart=function(X,Be){var Ee=oe.state,ee=Ee.expandedKeys,lt=Ee.keyEntities,Ct=oe.props.onDragStart,dt=Be.props.eventKey;oe.dragNode=Be;var _t=Object(h.b)(ee,dt);oe.setState({dragging:!0,dragNodesKeys:Object(h.g)(dt,lt)}),oe.setExpandedKeys(_t),Ct&&Ct({event:X,node:Object(p.b)(Be.props)})},oe.onNodeDragEnter=function(X,Be){var Ee=oe.state,ee=Ee.expandedKeys,lt=Ee.keyEntities,Ct=Ee.dragNodesKeys,dt=oe.props.onDragEnter,_t=Be.props,ir=_t.pos,$r=_t.eventKey;if(!oe.dragNode||Ct.indexOf($r)!==-1)return;var nr=Object(h.c)(X,Be);if(oe.dragNode.props.eventKey===$r&&nr===0){oe.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){oe.setState({dragOverNodeKey:$r,dropPosition:nr}),oe.delayedDragEnterLogic||(oe.delayedDragEnterLogic={}),Object.keys(oe.delayedDragEnterLogic).forEach(function(lr){clearTimeout(oe.delayedDragEnterLogic[lr])}),oe.delayedDragEnterLogic[ir]=window.setTimeout(function(){if(!oe.state.dragging)return;var lr=Object(c.a)(ee),zt=lt[$r];zt&&(zt.children||[]).length&&(lr=Object(h.a)(ee,$r)),"expandedKeys"in oe.props||oe.setExpandedKeys(lr),dt&&dt({event:X,node:Object(p.b)(Be.props),expandedKeys:lr})},400)},0)},oe.onNodeDragOver=function(X,Be){var Ee=oe.state.dragNodesKeys,ee=oe.props.onDragOver,lt=Be.props.eventKey;if(Ee.indexOf(lt)!==-1)return;if(oe.dragNode&<===oe.state.dragOverNodeKey){var Ct=Object(h.c)(X,Be);if(Ct===oe.state.dropPosition)return;oe.setState({dropPosition:Ct})}ee&&ee({event:X,node:Object(p.b)(Be.props)})},oe.onNodeDragLeave=function(X,Be){var Ee=oe.props.onDragLeave;oe.setState({dragOverNodeKey:""}),Ee&&Ee({event:X,node:Object(p.b)(Be.props)})},oe.onNodeDragEnd=function(X,Be){var Ee=oe.props.onDragEnd;oe.setState({dragOverNodeKey:""}),oe.cleanDragState(),Ee&&Ee({event:X,node:Object(p.b)(Be.props)}),oe.dragNode=null},oe.onNodeDrop=function(X,Be){var Ee=oe.state,ee=Ee.dragNodesKeys,lt=ee===void 0?[]:ee,Ct=Ee.dropPosition,dt=oe.props.onDrop,_t=Be.props,ir=_t.eventKey,$r=_t.pos;if(oe.setState({dragOverNodeKey:""}),oe.cleanDragState(),lt.indexOf(ir)!==-1){Object(t.a)(!1,"Can not drop to dragNode(include it's children node)");return}var nr=Object(h.k)($r),lr={event:X,node:Object(p.b)(Be.props),dragNode:oe.dragNode?Object(p.b)(oe.dragNode.props):null,dragNodesKeys:lt.slice(),dropPosition:Ct+Number(nr[nr.length-1]),dropToGap:!1};Ct!==0&&(lr.dropToGap=!0),dt&&dt(lr),oe.dragNode=null},oe.cleanDragState=function(){var X=oe.state.dragging;X&&oe.setState({dragging:!1})},oe.onNodeClick=function(X,Be){var Ee=oe.props.onClick;Ee&&Ee(X,Be)},oe.onNodeDoubleClick=function(X,Be){var Ee=oe.props.onDoubleClick;Ee&&Ee(X,Be)},oe.onNodeSelect=function(X,Be){var Ee=oe.state.selectedKeys,ee=oe.state.keyEntities,lt=oe.props,Ct=lt.onSelect,dt=lt.multiple,_t=Be.selected,ir=Be.key,$r=!_t;$r?dt?Ee=Object(h.a)(Ee,ir):Ee=[ir]:Ee=Object(h.b)(Ee,ir);var nr=Ee.map(function(lr){var zt=ee[lr];return zt?zt.node:null}).filter(function(lr){return lr});oe.setUncontrolledState({selectedKeys:Ee}),Ct&&Ct(Ee,{event:"select",selected:$r,node:Be,selectedNodes:nr,nativeEvent:X.nativeEvent})},oe.onNodeCheck=function(X,Be,Ee){var ee=oe.state,lt=ee.keyEntities,Ct=ee.checkedKeys,dt=ee.halfCheckedKeys,_t=oe.props,ir=_t.checkStrictly,$r=_t.onCheck,nr=Be.key,lr,zt={event:"check",node:Be,checked:Ee,nativeEvent:X.nativeEvent};if(ir){var Ut=Ee?Object(h.a)(Ct,nr):Object(h.b)(Ct,nr),st=Object(h.b)(dt,nr);lr={checked:Ut,halfChecked:st},zt.checkedNodes=Ut.map(function(wn){return lt[wn]}).filter(function(wn){return wn}).map(function(wn){return wn.node}),oe.setUncontrolledState({checkedKeys:Ut})}else{var Hr=Object(Z.a)([].concat(Object(c.a)(Ct),[nr]),!0,lt),mn=Hr.checkedKeys,In=Hr.halfCheckedKeys;if(!Ee){var Yn=new Set(mn);Yn.delete(nr);var Mi=Object(Z.a)(Array.from(Yn),{checked:!1,halfCheckedKeys:In},lt);mn=Mi.checkedKeys,In=Mi.halfCheckedKeys}lr=mn,zt.checkedNodes=[],zt.checkedNodesPositions=[],zt.halfCheckedKeys=In,mn.forEach(function(wn){var Rn=lt[wn];if(!Rn)return;var kt=Rn.node,vt=Rn.pos;zt.checkedNodes.push(kt),zt.checkedNodesPositions.push({node:kt,pos:vt})}),oe.setUncontrolledState({checkedKeys:mn},!1,{halfCheckedKeys:In})}$r&&$r(lr,zt)},oe.onNodeLoad=function(X){return new Promise(function(Be){oe.setState(function(Ee){var ee=Ee.loadedKeys,lt=ee===void 0?[]:ee,Ct=Ee.loadingKeys,dt=Ct===void 0?[]:Ct,_t=oe.props,ir=_t.loadData,$r=_t.onLoad,nr=X.key;if(!ir||lt.indexOf(nr)!==-1||dt.indexOf(nr)!==-1)return{};var lr=ir(X);return lr.then(function(){var zt=oe.state,Ut=zt.loadedKeys,st=zt.loadingKeys,Hr=Object(h.a)(Ut,nr),mn=Object(h.b)(st,nr);$r&&$r(Hr,{event:"load",node:X}),oe.setUncontrolledState({loadedKeys:Hr}),oe.setState({loadingKeys:mn}),Be()}),{loadingKeys:Object(h.a)(dt,nr)}})})},oe.onNodeMouseEnter=function(X,Be){var Ee=oe.props.onMouseEnter;Ee&&Ee({event:X,node:Be})},oe.onNodeMouseLeave=function(X,Be){var Ee=oe.props.onMouseLeave;Ee&&Ee({event:X,node:Be})},oe.onNodeContextMenu=function(X,Be){var Ee=oe.props.onRightClick;Ee&&(X.preventDefault(),Ee({event:X,node:Be}))},oe.onFocus=function(){var X=oe.props.onFocus;oe.setState({focused:!0}),X&&X.apply(void 0,arguments)},oe.onBlur=function(){var X=oe.props.onBlur;oe.setState({focused:!1}),oe.onActiveChange(null),X&&X.apply(void 0,arguments)},oe.getTreeNodeRequiredProps=function(){var X=oe.state,Be=X.expandedKeys,Ee=X.selectedKeys,ee=X.loadedKeys,lt=X.loadingKeys,Ct=X.checkedKeys,dt=X.halfCheckedKeys,_t=X.dragOverNodeKey,ir=X.dropPosition,$r=X.keyEntities;return{expandedKeys:Be||[],selectedKeys:Ee||[],loadedKeys:ee||[],loadingKeys:lt||[],checkedKeys:Ct||[],halfCheckedKeys:dt||[],dragOverNodeKey:_t,dropPosition:ir,keyEntities:$r}},oe.setExpandedKeys=function(X){var Be=oe.state.treeData,Ee=Object(p.d)(Be,X);oe.setUncontrolledState({expandedKeys:X,flattenNodes:Ee},!0)},oe.onNodeExpand=function(X,Be){var Ee=oe.state.expandedKeys,ee=oe.state.listChanging,lt=oe.props,Ct=lt.onExpand,dt=lt.loadData,_t=Be.key,ir=Be.expanded;if(ee)return;var $r=Ee.indexOf(_t),nr=!ir;if(Object(t.a)(ir&&$r!==-1||!ir&&$r===-1,"Expand state not sync with index check"),nr?Ee=Object(h.a)(Ee,_t):Ee=Object(h.b)(Ee,_t),oe.setExpandedKeys(Ee),Ct&&Ct(Ee,{node:Be,expanded:nr,nativeEvent:X.nativeEvent}),nr&&dt){var lr=oe.onNodeLoad(Be);lr&&lr.then(function(){var zt=Object(p.d)(oe.state.treeData,Ee);oe.setUncontrolledState({flattenNodes:zt})})}},oe.onListChangeStart=function(){oe.setUncontrolledState({listChanging:!0})},oe.onListChangeEnd=function(){setTimeout(function(){oe.setUncontrolledState({listChanging:!1})})},oe.onActiveChange=function(X){var Be=oe.state.activeKey,Ee=oe.props.onActiveChange;if(Be===X)return;oe.setState({activeKey:X}),X!==null&&oe.scrollTo({key:X}),Ee&&Ee(X)},oe.getActiveItem=function(){var X=oe.state,Be=X.activeKey,Ee=X.flattenNodes;return Be===null?null:Ee.find(function(ee){var lt=ee.data.key;return lt===Be})||null},oe.offsetActiveKey=function(X){var Be=oe.state,Ee=Be.flattenNodes,ee=Be.activeKey,lt=Ee.findIndex(function(_t){var ir=_t.data.key;return ir===ee});lt===-1&&X<0&&(lt=Ee.length),lt=(lt+X+Ee.length)%Ee.length;var Ct=Ee[lt];if(Ct){var dt=Ct.data.key;oe.onActiveChange(dt)}else oe.onActiveChange(null)},oe.onKeyDown=function(X){var Be=oe.state,Ee=Be.activeKey,ee=Be.expandedKeys,lt=Be.checkedKeys,Ct=oe.props,dt=Ct.onKeyDown,_t=Ct.checkable,ir=Ct.selectable;switch(X.which){case l.UP:{oe.offsetActiveKey(-1),X.preventDefault();break}case l.DOWN:{oe.offsetActiveKey(1),X.preventDefault();break}}var $r=oe.getActiveItem();if($r&&$r.data){var nr=oe.getTreeNodeRequiredProps(),lr=$r.data.isLeaf===!1||!!($r.data.children||[]).length,zt=Object(p.b)(Object(f.a)(Object(f.a)({},Object(p.f)(Ee,nr)),{},{data:$r.data,active:!0}));switch(X.which){case l.LEFT:{lr&&ee.includes(Ee)?oe.onNodeExpand({},zt):$r.parent&&oe.onActiveChange($r.parent.data.key),X.preventDefault();break}case l.RIGHT:{lr&&!ee.includes(Ee)?oe.onNodeExpand({},zt):$r.children&&$r.children.length&&oe.onActiveChange($r.children[0].data.key),X.preventDefault();break}case l.ENTER:case l.SPACE:{_t&&!zt.disabled&&zt.checkable!==!1&&!zt.disableCheckbox?oe.onNodeCheck({},zt,!lt.includes(Ee)):!_t&&ir&&!zt.disabled&&zt.selectable!==!1&&oe.onNodeSelect({},zt);break}}}dt&&dt(X)},oe.setUncontrolledState=function(X){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(oe.destroyed)return;var ee=!1,lt=!0,Ct={};Object.keys(X).forEach(function(dt){if(dt in oe.props){lt=!1;return}ee=!0,Ct[dt]=X[dt]}),ee&&(!Be||lt)&&oe.setState(Object(f.a)(Object(f.a)({},Ct),Ee))},oe.scrollTo=function(X){oe.listRef.current.scrollTo(X)},oe}return Object(r.a)(Xe,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var X,Be=this.state,Ee=Be.focused,ee=Be.flattenNodes,lt=Be.keyEntities,Ct=Be.dragging,dt=Be.activeKey,_t=this.props,ir=_t.prefixCls,$r=_t.className,nr=_t.style,lr=_t.showLine,zt=_t.focusable,Ut=_t.tabIndex,st=Ut===void 0?0:Ut,Hr=_t.selectable,mn=_t.showIcon,In=_t.icon,Yn=_t.switcherIcon,Mi=_t.draggable,wn=_t.checkable,Rn=_t.checkStrictly,kt=_t.disabled,vt=_t.motion,Re=_t.loadData,Ke=_t.filterTreeNode,Pe=_t.height,nt=_t.itemHeight,yt=_t.virtual,Dt=_t.titleRender,bt=_t.onContextMenu,It=Object(h.f)(this.props);return S.createElement(u.a.Provider,{value:{prefixCls:ir,selectable:Hr,showIcon:mn,icon:In,switcherIcon:Yn,draggable:Mi,checkable:wn,checkStrictly:Rn,disabled:kt,keyEntities:lt,loadData:Re,filterTreeNode:Ke,titleRender:Dt,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}},S.createElement("div",{className:s()(ir,$r,(X={},Object(g.a)(X,"".concat(ir,"-show-line"),lr),Object(g.a)(X,"".concat(ir,"-focused"),Ee),Object(g.a)(X,"".concat(ir,"-active-focused"),dt!==null),X))},S.createElement(J,Object.assign({ref:this.listRef,prefixCls:ir,style:nr,data:ee,disabled:kt,selectable:Hr,checkable:!!wn,motion:vt,dragging:Ct,height:Pe,itemHeight:nt,virtual:yt,focusable:zt,focused:Ee,tabIndex:st,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:bt},this.getTreeNodeRequiredProps(),It))))}}],[{key:"getDerivedStateFromProps",value:function(X,Be){var Ee=Be.prevProps,ee={prevProps:X};function lt(In){return!Ee&&In in X||Ee&&Ee[In]!==X[In]}var Ct;if(lt("treeData")?Ct=X.treeData:lt("children")&&(Object(t.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ct=Object(p.c)(X.children)),Ct){ee.treeData=Ct;var dt=Object(p.a)(Ct);ee.keyEntities=Object(f.a)(Object(g.a)({},R,M),dt.keyEntities)}var _t=ee.keyEntities||Be.keyEntities;if(lt("expandedKeys")||Ee&<("autoExpandParent"))ee.expandedKeys=X.autoExpandParent||!Ee&&X.defaultExpandParent?Object(h.e)(X.expandedKeys,_t):X.expandedKeys;else if(!Ee&&X.defaultExpandAll){var ir=Object(f.a)({},_t);delete ir[R],ee.expandedKeys=Object.keys(ir).map(function(In){return ir[In].key})}else!Ee&&X.defaultExpandedKeys&&(ee.expandedKeys=X.autoExpandParent||X.defaultExpandParent?Object(h.e)(X.defaultExpandedKeys,_t):X.defaultExpandedKeys);if(ee.expandedKeys||delete ee.expandedKeys,Ct||ee.expandedKeys){var $r=Object(p.d)(Ct||Be.treeData,ee.expandedKeys||Be.expandedKeys);ee.flattenNodes=$r}if(X.selectable&&(lt("selectedKeys")?ee.selectedKeys=Object(h.d)(X.selectedKeys,X):!Ee&&X.defaultSelectedKeys&&(ee.selectedKeys=Object(h.d)(X.defaultSelectedKeys,X))),X.checkable){var nr;if(lt("checkedKeys")?nr=Object(h.j)(X.checkedKeys)||{}:!Ee&&X.defaultCheckedKeys?nr=Object(h.j)(X.defaultCheckedKeys)||{}:Ct&&(nr=Object(h.j)(X.checkedKeys)||{checkedKeys:Be.checkedKeys,halfCheckedKeys:Be.halfCheckedKeys}),nr){var lr=nr,zt=lr.checkedKeys,Ut=zt===void 0?[]:zt,st=lr.halfCheckedKeys,Hr=st===void 0?[]:st;if(!X.checkStrictly){var mn=Object(Z.a)(Ut,!0,_t);Ut=mn.checkedKeys,Hr=mn.halfCheckedKeys}ee.checkedKeys=Ut,ee.halfCheckedKeys=Hr}}return lt("loadedKeys")&&(ee.loadedKeys=X.loadedKeys),ee}}]),Xe}(S.Component);de.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:[]},de.TreeNode=T.a;var ie=de,ve=ie,xe=d("RIqP"),_e=d.n(xe),Ue=d("J4zp"),fe=d.n(Ue),ke=d("sEfC"),se=d.n(ke),te=d("vk+C"),Ve=d.n(te),ae=d("Vy0f"),Q=d.n(ae),G=d("kGiB"),Y=d.n(G),me=d("H84U"),ue;(function(Mt){Mt[Mt.None=0]="None",Mt[Mt.Start=1]="Start",Mt[Mt.End=2]="End"})(ue||(ue={}));function Ce(Mt,Tt){function Xe(oe){var X=oe.key,Be=oe.children;Tt(X,oe)!==!1&&Ce(Be||[],Tt)}Mt.forEach(Xe)}function Ie(Mt){var Tt=Mt.treeData,Xe=Mt.expandedKeys,oe=Mt.startKey,X=Mt.endKey,Be=[],Ee=ue.None;if(oe&&oe===X)return[oe];if(!oe||!X)return[];function ee(lt){return lt===oe||lt===X}return Ce(Tt,function(lt){if(Ee===ue.End)return!1;if(ee(lt)){if(Be.push(lt),Ee===ue.None)Ee=ue.Start;else if(Ee===ue.Start)return Ee=ue.End,!1}else Ee===ue.Start&&Be.push(lt);return!(Xe.indexOf(lt)===-1)}),Be}function ce(Mt,Tt){var Xe=_e()(Tt),oe=[];return Ce(Mt,function(X,Be){var Ee=Xe.indexOf(X);return Ee!==-1&&(oe.push(Be),Xe.splice(Ee,1)),!!Xe.length}),oe}var Ae=function(Mt,Tt){var Xe={};for(var oe in Mt)Object.prototype.hasOwnProperty.call(Mt,oe)&&Tt.indexOf(oe)<0&&(Xe[oe]=Mt[oe]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,oe=Object.getOwnPropertySymbols(Mt);X<oe.length;X++)Tt.indexOf(oe[X])<0&&Object.prototype.propertyIsEnumerable.call(Mt,oe[X])&&(Xe[oe[X]]=Mt[oe[X]]);return Xe};function Te(Mt){var Tt=Mt.isLeaf,Xe=Mt.expanded;return Tt?S.createElement(Ve.a,null):Xe?S.createElement(Q.a,null):S.createElement(Y.a,null)}function Ge(Mt){var Tt=Mt.treeData,Xe=Mt.children;return Tt||Object(p.c)(Xe)}var gt=function(Tt,Xe){var oe=Tt.defaultExpandAll,X=Tt.defaultExpandParent,Be=Tt.defaultExpandedKeys,Ee=Ae(Tt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),ee=S.useRef(),lt=S.useRef(),Ct=S.createRef();S.useImperativeHandle(Xe,function(){return Ct.current});var dt=function(){var bt=Object(p.a)(Ge(Ee)),It=bt.keyEntities,gr;return oe?gr=Object.keys(It):X?gr=Object(h.e)(Ee.expandedKeys||Be,It):gr=Ee.expandedKeys||Be,gr},_t=S.useState(Ee.selectedKeys||Ee.defaultSelectedKeys||[]),ir=fe()(_t,2),$r=ir[0],nr=ir[1],lr=S.useState(dt()),zt=fe()(lr,2),Ut=zt[0],st=zt[1];S.useEffect(function(){"selectedKeys"in Ee&&nr(Ee.selectedKeys)},[Ee.selectedKeys]),S.useEffect(function(){"expandedKeys"in Ee&&st(Ee.expandedKeys)},[Ee.expandedKeys]);var Hr=function(bt,It){var gr=It.isLeaf;if(gr||bt.shiftKey||bt.metaKey||bt.ctrlKey)return;Ct.current.onNodeExpand(bt,It)},mn=se()(Hr,200,{leading:!0}),In=function(bt,It){return"expandedKeys"in Ee||st(bt),Ee.onExpand?Ee.onExpand(bt,It):void 0},Yn=function(bt,It){var gr=Ee.expandAction;gr==="click"&&mn(bt,It),Ee.onClick&&Ee.onClick(bt,It)},Mi=function(bt,It){var gr=Ee.expandAction;gr==="doubleClick"&&mn(bt,It),Ee.onDoubleClick&&Ee.onDoubleClick(bt,It)},wn=function(bt,It){var gr=Ee.multiple,kr=It.node,wt=It.nativeEvent,rt=kr.key,tt=rt===void 0?"":rt,Rt=Ge(Ee),Ft=A()(A()({},It),{selected:!0}),At=wt.ctrlKey||wt.metaKey,Wt=wt.shiftKey,ot;gr&&At?(ot=bt,ee.current=tt,lt.current=ot,Ft.selectedNodes=ce(Rt,ot)):gr&&Wt?(ot=Array.from(new Set([].concat(_e()(lt.current||[]),_e()(Ie({treeData:Rt,expandedKeys:Ut,startKey:tt,endKey:ee.current}))))),Ft.selectedNodes=ce(Rt,ot)):(ot=[tt],ee.current=tt,lt.current=ot,Ft.selectedNodes=ce(Rt,ot)),Ee.onSelect&&Ee.onSelect(ot,Ft),"selectedKeys"in Ee||nr(ot)},Rn=S.useContext(me.b),kt=Rn.getPrefixCls,vt=Rn.direction,Re=Ee.prefixCls,Ke=Ee.className,Pe=Ae(Ee,["prefixCls","className"]),nt=kt("tree",Re),yt=s()("".concat(nt,"-directory"),Ke,x()({},"".concat(nt,"-directory-rtl"),vt==="rtl"));return S.createElement(Ht,A()({icon:Te,ref:Ct,blockNode:!0},Pe,{prefixCls:nt,className:yt,expandedKeys:Ut,selectedKeys:$r,onSelect:wn,onClick:Yn,onDoubleClick:Mi,onExpand:In}))},qe=S.forwardRef(gt);qe.displayName="DirectoryTree",qe.defaultProps={showIcon:!0,expandAction:"click"};var Le=qe,Ot=d("EXcs"),$e=d("2jpz"),xt=S.forwardRef(function(Mt,Tt){var Xe,oe=S.useContext(me.b),X=oe.getPrefixCls,Be=oe.direction,Ee=oe.virtual,ee=Mt.prefixCls,lt=Mt.className,Ct=Mt.showIcon,dt=Mt.showLine,_t=Mt.switcherIcon,ir=Mt.blockNode,$r=Mt.children,nr=Mt.checkable,lr=A()(A()({},Mt),{showLine:Boolean(dt)}),zt=X("tree",ee);return S.createElement(ve,A()({itemHeight:20,ref:Tt,virtual:Ee},lr,{prefixCls:zt,className:s()(lt,(Xe={},x()(Xe,"".concat(zt,"-icon-hide"),!Ct),x()(Xe,"".concat(zt,"-block-node"),ir),x()(Xe,"".concat(zt,"-rtl"),Be==="rtl"),Xe)),checkable:nr&&S.createElement("span",{className:"".concat(zt,"-checkbox-inner")}),switcherIcon:function(st){return Object($e.a)(zt,_t,dt,st)}}),$r)});xt.TreeNode=T.a,xt.DirectoryTree=Le,xt.defaultProps={checkable:!1,showIcon:!1,motion:A()(A()({},Ot.a),{motionAppear:!1}),blockNode:!1};var Ht=xt,tr=F.a=Ht},MKOG:function(H,F,d){var O=d("bYtY"),x=d("YH21"),C=x.Dispatcher,A=d("mLcG"),S=d("Bq2U"),g=function(o){o=o||{},this.stage=o.stage||{},this.onframe=o.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,C.call(this)};g.prototype={constructor:g,addClip:function(o){this._clips.push(o)},addAnimator:function(o){o.animation=this;for(var r=o.getClips(),i=0;i<r.length;i++)this.addClip(r[i])},removeClip:function(o){var r=O.indexOf(this._clips,o);r>=0&&this._clips.splice(r,1)},removeAnimator:function(o){for(var r=o.getClips(),i=0;i<r.length;i++)this.removeClip(r[i]);o.animation=null},_update:function(){for(var o=new Date().getTime()-this._pausedTime,r=o-this._time,i=this._clips,n=i.length,e=[],l=[],t=0;t<n;t++){var a=i[t],s=a.step(o,r);s&&(e.push(s),l.push(a))}for(var t=0;t<n;)i[t]._needsRemove?(i[t]=i[n-1],i.pop(),n--):t++;n=e.length;for(var t=0;t<n;t++)l[t].fire(e[t]);this._time=o,this.onframe(r),this.trigger("frame",r),this.stage.update&&this.stage.update()},_startLoop:function(){var o=this;this._running=!0;function r(){o._running&&(A(r),!o._paused&&o._update())}A(r)},start:function(){this._time=new Date().getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(o,r){r=r||{};var i=new S(o,r.loop,r.getter,r.setter);return this.addAnimator(i),i}},O.mixin(g,C);var f=g;H.exports=f},MRoa:function(H,F,d){var O=d("ProS");d("0Bwj"),d("W2nI"),d("vcCh");var x=d("gawk"),C=d("Dg8C");O.registerLayout(x),O.registerVisual(C)},MT78:function(H,F,d){var O=d("ProS");(function(){for(var C in O){if(O==null||!O.hasOwnProperty(C)||C==="default"||C==="__esModule")return;F[C]=O[C]}})();var x=d("txkQ");(function(){for(var C in x){if(x==null||!x.hasOwnProperty(C)||C==="default"||C==="__esModule")return;F[C]=x[C]}})(),d("A1Ka"),d("75ce"),d("lLGD"),d("wDdD"),d("Fa/5"),d("jett"),d("Z1wy"),d("75ev"),d("2uGb"),d("I+77"),d("B+YJ"),d("pLH3"),d("CBdT"),d("MRoa"),d("+lIL"),d("CF2D"),d("ERHi"),d("p+If"),d("XOKv"),d("qt/9"),d("bBL8"),d("1xaR"),d("4Feb"),d("zRKj"),d("L3Oj"),d("0HBW"),d("LPzL"),d("8waO"),d("k5C7"),d("f1nB"),d("sRwP"),d("AH3D"),d("y4/Y"),d("LzGr"),d("Ynxi"),d("7pVf"),d("2w7y"),d("laiN"),d("fjKi"),d("C0tN"),d("0o9m"),d("Cm0C"),d("f3JH"),d("5NHt"),d("VFCP"),d("dBmv"),d("KamJ"),d("8XDt"),d("juDX")},MXD1:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("Kvyg"),A=d.n(C)},MZdM:function(H,F,d){"use strict";function O(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(t){return typeof t}:O=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(e)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var x=c(d("Lo0S")),C=g(d("N/zr")),A=d("GdRQ"),S=d("GQ8N");function g(e){return e&&e.__esModule?e:{default:e}}function f(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return f=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(e===null||O(e)!=="object"&&typeof e!="function")return{default:e};var l=f();if(l&&l.has(e))return l.get(e);var t={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var u=a?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(t,s,u):t[s]=e[s]}return t.default=e,l&&l.set(e,t),t}function o(e,l){if(!(e instanceof l))throw new TypeError("Cannot call a class as a function")}function r(e,l){for(var t=0;t<l.length;t++){var a=l[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function i(e,l,t){return l&&r(e.prototype,l),t&&r(e,t),e}var n=function(){function e(l){if(o(this,e),this._drawCtx=null,this._renderQ=[],this._flushing=!1,this._fbWidth=0,this._fbHeight=0,this._prevDrawStyle="",this._tile=null,this._tile16x16=null,this._tileX=0,this._tileY=0,x.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},x.Debug("User Agent: "+navigator.userAgent),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._tile16x16=this._drawCtx.createImageData(16,16),x.Debug("<< Display.constructor"),this._scale=1,this._clipViewport=!1,this.onflush=function(){}}return i(e,[{key:"viewportChangePos",value:function(t,a){var s=this._viewportLoc;t=Math.floor(t),a=Math.floor(a),this._clipViewport||(t=-s.w,a=-s.h);var u=s.x+s.w-1,h=s.y+s.h-1;if(t<0&&s.x+t<0&&(t=-s.x),u+t>=this._fbWidth&&(t-=u+t-this._fbWidth+1),s.y+a<0&&(a=-s.y),h+a>=this._fbHeight&&(a-=h+a-this._fbHeight+1),t===0&&a===0)return;x.Debug("viewportChange deltaX: "+t+", deltaY: "+a),s.x+=t,s.y+=a,this._damage(s.x,s.y,s.w,s.h),this.flip()}},{key:"viewportChangeSize",value:function(t,a){(!this._clipViewport||typeof t=="undefined"||typeof a=="undefined")&&(x.Debug("Setting viewport to full display region"),t=this._fbWidth,a=this._fbHeight),t=Math.floor(t),a=Math.floor(a),t>this._fbWidth&&(t=this._fbWidth),a>this._fbHeight&&(a=this._fbHeight);var s=this._viewportLoc;if(s.w!==t||s.h!==a){s.w=t,s.h=a;var u=this._target;u.width=t,u.height=a,this.viewportChangePos(0,0),this._damage(s.x,s.y,s.w,s.h),this.flip(),this._rescale(this._scale)}}},{key:"absX",value:function(t){return this._scale===0?0:(0,S.toSigned32bit)(t/this._scale+this._viewportLoc.x)}},{key:"absY",value:function(t){return this._scale===0?0:(0,S.toSigned32bit)(t/this._scale+this._viewportLoc.y)}},{key:"resize",value:function(t,a){this._prevDrawStyle="",this._fbWidth=t,this._fbHeight=a;var s=this._backbuffer;if(s.width!==t||s.height!==a){var u=null;s.width>0&&s.height>0&&(u=this._drawCtx.getImageData(0,0,s.width,s.height)),s.width!==t&&(s.width=t),s.height!==a&&(s.height=a),u&&this._drawCtx.putImageData(u,0,0)}var h=this._viewportLoc;this.viewportChangeSize(h.w,h.h),this.viewportChangePos(0,0)}},{key:"_damage",value:function(t,a,s,u){t<this._damageBounds.left&&(this._damageBounds.left=t),a<this._damageBounds.top&&(this._damageBounds.top=a),t+s>this._damageBounds.right&&(this._damageBounds.right=t+s),a+u>this._damageBounds.bottom&&(this._damageBounds.bottom=a+u)}},{key:"flip",value:function(t){if(this._renderQ.length!==0&&!t)this._renderQPush({type:"flip"});else{var a=this._damageBounds.left,s=this._damageBounds.top,u=this._damageBounds.right-a,h=this._damageBounds.bottom-s,p=a-this._viewportLoc.x,m=s-this._viewportLoc.y;p<0&&(u+=p,a-=p,p=0),m<0&&(h+=m,s-=m,m=0),p+u>this._viewportLoc.w&&(u=this._viewportLoc.w-p),m+h>this._viewportLoc.h&&(h=this._viewportLoc.h-m),u>0&&h>0&&this._targetCtx.drawImage(this._backbuffer,a,s,u,h,p,m,u,h),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(t,a,s,u,h,p){this._renderQ.length!==0&&!p?this._renderQPush({type:"fill",x:t,y:a,width:s,height:u,color:h}):(this._setFillColor(h),this._drawCtx.fillRect(t,a,s,u),this._damage(t,a,s,u))}},{key:"copyImage",value:function(t,a,s,u,h,p,m){this._renderQ.length!==0&&!m?this._renderQPush({type:"copy",oldX:t,oldY:a,x:s,y:u,width:h,height:p}):(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,t,a,h,p,s,u,h,p),this._damage(s,u,h,p))}},{key:"imageRect",value:function(t,a,s,u,h,p){if(s===0||u===0)return;var m=new Image;m.src="data: "+h+";base64,"+C.default.encode(p),this._renderQPush({type:"img",img:m,x:t,y:a,width:s,height:u})}},{key:"startTile",value:function(t,a,s,u,h){this._tileX=t,this._tileY=a,s===16&&u===16?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(s,u);for(var p=h[2],m=h[1],v=h[0],y=this._tile.data,E=0;E<s*u*4;E+=4)y[E]=p,y[E+1]=m,y[E+2]=v,y[E+3]=255}},{key:"subTile",value:function(t,a,s,u,h){for(var p=h[2],m=h[1],v=h[0],y=t+s,E=a+u,T=this._tile.data,b=this._tile.width,w=a;w<E;w++)for(var _=t;_<y;_++){var I=(_+w*b)*4;T[I]=p,T[I+1]=m,T[I+2]=v,T[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(t,a,s,u,h,p,m){if(this._renderQ.length!==0&&!m){var v=new Uint8Array(s*u*4);v.set(new Uint8Array(h.buffer,0,v.length)),this._renderQPush({type:"blit",data:v,x:t,y:a,width:s,height:u})}else this._bgrxImageData(t,a,s,u,h,p)}},{key:"blitRgbImage",value:function(t,a,s,u,h,p,m){if(this._renderQ.length!==0&&!m){var v=new Uint8Array(s*u*3);v.set(new Uint8Array(h.buffer,0,v.length)),this._renderQPush({type:"blitRgb",data:v,x:t,y:a,width:s,height:u})}else this._rgbImageData(t,a,s,u,h,p)}},{key:"blitRgbxImage",value:function(t,a,s,u,h,p,m){if(this._renderQ.length!==0&&!m){var v=new Uint8Array(s*u*4);v.set(new Uint8Array(h.buffer,0,v.length)),this._renderQPush({type:"blitRgbx",data:v,x:t,y:a,width:s,height:u})}else this._rgbxImageData(t,a,s,u,h,p)}},{key:"drawImage",value:function(t,a,s){this._drawCtx.drawImage(t,a,s),this._damage(a,s,t.width,t.height)}},{key:"autoscale",value:function(t,a){var s;if(t===0||a===0)s=0;else{var u=this._viewportLoc,h=t/a,p=u.w/u.h;p>=h?s=t/u.w:s=a/u.h}this._rescale(s)}},{key:"_rescale",value:function(t){this._scale=t;var a=this._viewportLoc,s=t*a.w+"px",u=t*a.h+"px";(this._target.style.width!==s||this._target.style.height!==u)&&(this._target.style.width=s,this._target.style.height=u)}},{key:"_setFillColor",value:function(t){var a="rgb("+t[2]+","+t[1]+","+t[0]+")";a!==this._prevDrawStyle&&(this._drawCtx.fillStyle=a,this._prevDrawStyle=a)}},{key:"_rgbImageData",value:function(t,a,s,u,h,p){for(var m=this._drawCtx.createImageData(s,u),v=m.data,y=0,E=p;y<s*u*4;y+=4,E+=3)v[y]=h[E],v[y+1]=h[E+1],v[y+2]=h[E+2],v[y+3]=255;this._drawCtx.putImageData(m,t,a),this._damage(t,a,m.width,m.height)}},{key:"_bgrxImageData",value:function(t,a,s,u,h,p){for(var m=this._drawCtx.createImageData(s,u),v=m.data,y=0,E=p;y<s*u*4;y+=4,E+=4)v[y]=h[E+2],v[y+1]=h[E+1],v[y+2]=h[E],v[y+3]=255;this._drawCtx.putImageData(m,t,a),this._damage(t,a,m.width,m.height)}},{key:"_rgbxImageData",value:function(t,a,s,u,h,p){var m;A.supportsImageMetadata?m=new ImageData(new Uint8ClampedArray(h.buffer,h.byteOffset,s*u*4),s,u):(m=this._drawCtx.createImageData(s,u),m.data.set(new Uint8ClampedArray(h.buffer,h.byteOffset,s*u*4))),this._drawCtx.putImageData(m,t,a),this._damage(t,a,m.width,m.height)}},{key:"_renderQPush",value:function(t){this._renderQ.push(t),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 t=!0;t&&this._renderQ.length>0;){var a=this._renderQ[0];switch(a.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(a.oldX,a.oldY,a.x,a.y,a.width,a.height,!0);break;case"fill":this.fillRect(a.x,a.y,a.width,a.height,a.color,!0);break;case"blit":this.blitImage(a.x,a.y,a.width,a.height,a.data,0,!0);break;case"blitRgb":this.blitRgbImage(a.x,a.y,a.width,a.height,a.data,0,!0);break;case"blitRgbx":this.blitRgbxImage(a.x,a.y,a.width,a.height,a.data,0,!0);break;case"img":if(a.img.complete&&a.img.width!==0&&a.img.height!==0){if(a.img.width!==a.width||a.img.height!==a.height){x.Error("Decoded image has incorrect dimensions. Got "+a.img.width+"x"+a.img.height+". Expected "+a.width+"x"+a.height+".");return}this.drawImage(a.img,a.x,a.y)}else a.img._noVNCDisplay=this,a.img.addEventListener("load",this._resumeRenderQ),t=!1;break}t&&this._renderQ.shift()}this._renderQ.length===0&&this._flushing&&(this._flushing=!1,this.onflush())}},{key:"scale",get:function(){return this._scale},set:function(t){this._rescale(t)}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(t){this._clipViewport=t;var a=this._viewportLoc;this.viewportChangeSize(a.w,a.h),this.viewportChangePos(0,0)}},{key:"width",get:function(){return this._fbWidth}},{key:"height",get:function(){return this._fbHeight}}]),e}();F.default=n},Mdki:function(H,F,d){var O=d("bYtY"),x=O.each,C="\0__link_datas",A="\0__link_mainData";function S(l){var t=l.mainData,a=l.datas;a||(a={main:t},l.datasAttr={main:"data"}),l.datas=l.mainData=null,i(t,a,l),x(a,function(s){x(t.TRANSFERABLE_METHODS,function(u){s.wrapMethod(u,O.curry(g,l))})}),t.wrapMethod("cloneShallow",O.curry(c,l)),x(t.CHANGABLE_METHODS,function(s){t.wrapMethod(s,O.curry(f,l))}),O.assert(a[t.dataType]===t)}function g(l,t){if(r(this)){var a=O.extend({},this[C]);a[this.dataType]=t,i(t,a,l)}else n(t,this.dataType,this[A],l);return t}function f(l,t){return l.struct&&l.struct.update(this),t}function c(l,t){return x(t[C],function(a,s){a!==t&&n(a.cloneShallow(),s,t,l)}),t}function o(l){var t=this[A];return l==null||t==null?t:t[C][l]}function r(l){return l[A]===l}function i(l,t,a){l[C]={},x(t,function(s,u){n(s,u,l,a)})}function n(l,t,a,s){a[C][t]=l,l[A]=a,l.dataType=t,s.struct&&(l[s.structAttr]=s.struct,s.struct[s.datasAttr[t]]=l),l.getLinkedData=o}var e=S;H.exports=e},Mds0:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("8IMR")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="StarFilled";var c=A.forwardRef(f);F.default=c},Mgri:function(H,F,d){for(var O=d("bYtY"),x=d("8nly"),C=[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]]],S=0;S<A.length;S++)for(var g=0;g<A[S].length;g++)A[S][g][0]/=10.5,A[S][g][1]/=-10.5/.75,A[S][g][0]+=C[0],A[S][g][1]+=C[1];function f(c,o){c==="china"&&o.push(new x("\u5357\u6D77\u8BF8\u5C9B",O.map(A,function(r){return{type:"polygon",exterior:r}}),C))}H.exports=f},MlIO:function(H,F,d){(function(O,x){H.exports=F=x(d("Ib8C"))})(this,function(O){return function(x){var C=O,A=C.lib,S=A.Base,g=A.WordArray,f=C.x64={},c=f.Word=S.extend({init:function(i,n){this.high=i,this.low=n}}),o=f.WordArray=S.extend({init:function(i,n){i=this.words=i||[],n!=x?this.sigBytes=n:this.sigBytes=i.length*8},toX32:function(){for(var i=this.words,n=i.length,e=[],l=0;l<n;l++){var t=i[l];e.push(t.high),e.push(t.low)}return g.create(e,this.sigBytes)},clone:function(){for(var i=S.clone.call(this),n=i.words=this.words.slice(0),e=n.length,l=0;l<e;l++)n[l]=n[l].clone();return i}})}(),O})},Mmt2:function(H,F,d){"use strict";function O(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(e){return typeof e}:O=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(i)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var x=A(d("Lo0S"));function C(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return C=function(){return i},i}function A(i){if(i&&i.__esModule)return i;if(i===null||O(i)!=="object"&&typeof i!="function")return{default:i};var n=C();if(n&&n.has(i))return n.get(i);var e={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in i)if(Object.prototype.hasOwnProperty.call(i,t)){var a=l?Object.getOwnPropertyDescriptor(i,t):null;a&&(a.get||a.set)?Object.defineProperty(e,t,a):e[t]=i[t]}return e.default=i,n&&n.set(i,e),e}function S(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function g(i,n){for(var e=0;e<n.length;e++){var l=n[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(i,l.key,l)}}function f(i,n,e){return n&&g(i.prototype,n),e&&g(i,e),i}var c=!1,o=40*1024*1024,r=function(){function i(){S(this,i),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 f(i,[{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,t=e-1;t>=0;t--)l+=this._rQ[this._rQi++]<<t*8;return l}},{key:"rQshiftStr",value:function(e){typeof e=="undefined"&&(e=this.rQlen);for(var l="",t=0;t<e;t+=4096){var a=this.rQshiftBytes(Math.min(4096,e-t));l+=String.fromCharCode.apply(null,a)}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,t){if(this.rQlen<l){if(t){if(this._rQi<t)throw new Error("rQwait cannot backup "+t+" bytes");this._rQi-=t}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 t=this;this.init(),this._websocket=new WebSocket(e,l),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=function(){x.Debug(">> WebSock.onopen"),t._websocket.protocol&&x.Info("Server choose sub-protocol: "+t._websocket.protocol),t._eventHandlers.open(),x.Debug("<< WebSock.onopen")},this._websocket.onclose=function(a){x.Debug(">> WebSock.onclose"),t._eventHandlers.close(a),x.Debug("<< WebSock.onclose")},this._websocket.onerror=function(a){x.Debug(">> WebSock.onerror: "+a),t._eventHandlers.error(a),x.Debug("<< WebSock.onerror: "+a)}}},{key:"close",value:function(){this._websocket&&((this._websocket.readyState===WebSocket.OPEN||this._websocket.readyState===WebSocket.CONNECTING)&&(x.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,t=this._rQbufferSize<l;if(t&&(this._rQbufferSize=Math.max(this._rQbufferSize*2,l)),this._rQbufferSize>o&&(this._rQbufferSize=o,this._rQbufferSize-this.rQlen<e))throw new Error("Receive Queue buffer exceeded "+o+" bytes, and the new message could not fit");if(t){var a=this._rQ.buffer;this._rQ=new Uint8Array(this._rQbufferSize),this._rQ.set(new Uint8Array(a,this._rQi,this._rQlen-this._rQi))}else c?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)):x.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}}]),i}();F.default=r},MqEG:function(H,F,d){var O=d("bYtY"),x=d("fc+c"),C=d("72pK"),A=d("VXYp"),S=O.bind,g=x.extend({type:"dataZoom.inside",init:function(i,n){this._range},render:function(i,n,e,l){g.superApply(this,"render",arguments),this._range=i.getPercentRange(),O.each(this.getTargetCoordInfo(),function(t,a){var s=O.map(t,function(u){return A.generateCoordId(u.model)});O.each(t,function(u){var h=u.model,p={};O.each(["pan","zoom","scrollMove"],function(m){p[m]=S(f[m],this,u,a)},this),A.register(e,{coordId:A.generateCoordId(h),allCoordIds:s,containsPoint:function(m,v,y){return h.coordinateSystem.containPoint([v,y])},dataZoomId:i.id,dataZoomModel:i,getRange:p})},this)},this)},dispose:function(){A.unregister(this.api,this.dataZoomModel.id),g.superApply(this,"dispose",arguments),this._range=null}}),f={zoom:function(i,n,e,l){var t=this._range,a=t.slice(),s=i.axisModels[0];if(!s)return;var u=o[n](null,[l.originX,l.originY],s,e,i),h=(u.signal>0?u.pixelStart+u.pixelLength-u.pixel:u.pixel-u.pixelStart)/u.pixelLength*(a[1]-a[0])+a[0],p=Math.max(1/l.scale,0);a[0]=(a[0]-h)*p+h,a[1]=(a[1]-h)*p+h;var m=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(C(0,a,[0,100],0,m.minSpan,m.maxSpan),this._range=a,t[0]!==a[0]||t[1]!==a[1])return a},pan:c(function(i,n,e,l,t,a){var s=o[l]([a.oldX,a.oldY],[a.newX,a.newY],n,t,e);return s.signal*(i[1]-i[0])*s.pixel/s.pixelLength}),scrollMove:c(function(i,n,e,l,t,a){var s=o[l]([0,0],[a.scrollDelta,a.scrollDelta],n,t,e);return s.signal*(i[1]-i[0])*a.scrollDelta})};function c(i){return function(n,e,l,t){var a=this._range,s=a.slice(),u=n.axisModels[0];if(!u)return;var h=i(s,u,n,e,l,t);if(C(h,s,[0,100],"all"),this._range=s,a[0]!==s[0]||a[1]!==s[1])return s}}var o={grid:function(i,n,e,l,t){var a=e.axis,s={},u=t.model.coordinateSystem.getRect();return i=i||[0,0],a.dim==="x"?(s.pixel=n[0]-i[0],s.pixelLength=u.width,s.pixelStart=u.x,s.signal=a.inverse?1:-1):(s.pixel=n[1]-i[1],s.pixelLength=u.height,s.pixelStart=u.y,s.signal=a.inverse?-1:1),s},polar:function(i,n,e,l,t){var a=e.axis,s={},u=t.model.coordinateSystem,h=u.getRadiusAxis().getExtent(),p=u.getAngleAxis().getExtent();return i=i?u.pointToCoord(i):[0,0],n=u.pointToCoord(n),e.mainType==="radiusAxis"?(s.pixel=n[0]-i[0],s.pixelLength=h[1]-h[0],s.pixelStart=h[0],s.signal=a.inverse?1:-1):(s.pixel=n[1]-i[1],s.pixelLength=p[1]-p[0],s.pixelStart=p[0],s.signal=a.inverse?-1:1),s},singleAxis:function(i,n,e,l,t){var a=e.axis,s=t.model.coordinateSystem.getRect(),u={};return i=i||[0,0],a.orient==="horizontal"?(u.pixel=n[0]-i[0],u.pixelLength=s.width,u.pixelStart=s.x,u.signal=a.inverse?1:-1):(u.pixel=n[1]-i[1],u.pixelLength=s.height,u.pixelStart=s.y,u.signal=a.inverse?-1:1),u}},r=g;H.exports=r},MwEJ:function(H,F,d){var O=d("bYtY"),x=d("YXkt"),C=d("sdST"),A=d("k9D9"),S=A.SOURCE_FORMAT_ORIGINAL,g=d("L0Ub"),f=g.getDimensionTypeByAxis,c=d("4NO4"),o=c.getDataItemValue,r=d("IDmD"),i=d("i38C"),n=i.getCoordSysInfoBySeries,e=d("7G+c"),l=d("7hqr"),t=l.enableDataStack,a=d("D5nY"),s=a.makeSeriesEncodeForAxisCoordSys;function u(v,y,E){E=E||{},e.isInstance(v)||(v=e.seriesDataToSource(v));var T=y.get("coordinateSystem"),b=r.get(T),w=n(y),_;w&&(_=O.map(w.coordSysDims,function(M){var U={name:M},B=w.axisMap.get(M);if(B){var j=B.get("type");U.type=f(j)}return U})),_||(_=b&&(b.getDimensionsInfo?b.getDimensionsInfo():b.dimensions.slice())||["x","y"]);var I=C(v,{coordDimensions:_,generateCoord:E.generateCoord,encodeDefaulter:E.useEncodeDefaulter?O.curry(s,_,y):null}),L,N;w&&O.each(I,function(M,U){var B=M.coordDim,j=w.categoryAxisMap.get(B);j&&(L==null&&(L=U),M.ordinalMeta=j.getOrdinalMeta()),M.otherDims.itemName!=null&&(N=!0)}),!N&&L!=null&&(I[L].otherDims.itemName=0);var D=t(y,I),R=new x(I,y);R.setCalculationInfo(D);var k=L!=null&&h(v)?function(M,U,B,j){return j===L?B:this.defaultDimValueGetter(M,U,B,j)}:null;return R.hasItemOption=!1,R.initData(v,null,k),R}function h(v){if(v.sourceFormat===S){var y=p(v.data||[]);return y!=null&&!O.isArray(o(y))}}function p(v){for(var y=0;y<v.length&&v[y]==null;)y++;return v[y]}var m=u;H.exports=m},Mylv:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("IwbS"),A=d("oVpE"),S=A.createSymbol,g=d("OELB"),f=g.parsePercent,c=g.isNumeric,o=d("56rv"),r=o.setLabel,i=["itemStyle","borderWidth"],n=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],e=new C.Circle,l=O.extendChartView({type:"pictorialBar",render:function(W,V,z){var J=this.group,Z=W.getData(),de=this._data,ie=W.coordinateSystem,ve=ie.getBaseAxis(),xe=!!ve.isHorizontal(),_e=ie.grid.getRect(),Ue={ecSize:{width:z.getWidth(),height:z.getHeight()},seriesModel:W,coordSys:ie,coordSysExtent:[[_e.x,_e.x+_e.width],[_e.y,_e.y+_e.height]],isHorizontal:xe,valueDim:n[+xe],categoryDim:n[1-xe]};return Z.diff(de).add(function(fe){if(!Z.hasValue(fe))return;var ke=b(Z,fe),se=t(Z,fe,ke,Ue),te=L(Z,Ue,se);Z.setItemGraphicEl(fe,te),J.add(te),U(te,Ue,se)}).update(function(fe,ke){var se=de.getItemGraphicEl(ke);if(!Z.hasValue(fe)){J.remove(se);return}var te=b(Z,fe),Ve=t(Z,fe,te,Ue),ae=R(Z,Ve);se&&ae!==se.__pictorialShapeStr&&(J.remove(se),Z.setItemGraphicEl(fe,null),se=null),se?N(se,Ue,Ve):se=L(Z,Ue,Ve,!0),Z.setItemGraphicEl(fe,se),se.__pictorialSymbolMeta=Ve,J.add(se),U(se,Ue,Ve)}).remove(function(fe){var ke=de.getItemGraphicEl(fe);ke&&D(de,fe,ke.__pictorialSymbolMeta.animationModel,ke)}).execute(),this._data=Z,this.group},dispose:x.noop,remove:function(W,V){var z=this.group,J=this._data;W.get("animation")?J&&J.eachItemGraphicEl(function(Z){D(J,Z.dataIndex,W,Z)}):z.removeAll()}});function t(W,V,z,J){var Z=W.getItemLayout(V),de=z.get("symbolRepeat"),ie=z.get("symbolClip"),ve=z.get("symbolPosition")||"start",xe=z.get("symbolRotate"),_e=(xe||0)*Math.PI/180||0,Ue=z.get("symbolPatternSize")||2,fe=z.isAnimationEnabled(),ke={dataIndex:V,layout:Z,itemModel:z,symbolType:W.getItemVisual(V,"symbol")||"circle",color:W.getItemVisual(V,"color"),symbolClip:ie,symbolRepeat:de,symbolRepeatDirection:z.get("symbolRepeatDirection"),symbolPatternSize:Ue,rotation:_e,animationModel:fe?z:null,hoverAnimation:fe&&z.get("hoverAnimation"),z2:z.getShallow("z",!0)||0};a(z,de,Z,J,ke),u(W,V,Z,de,ie,ke.boundingLength,ke.pxSign,Ue,J,ke),h(z,ke.symbolScale,_e,J,ke);var se=ke.symbolSize,te=z.get("symbolOffset");return x.isArray(te)&&(te=[f(te[0],se[0]),f(te[1],se[1])]),p(z,se,Z,de,ie,te,ve,ke.valueLineWidth,ke.boundingLength,ke.repeatCutLength,J,ke),ke}function a(W,V,z,J,Z){var de=J.valueDim,ie=W.get("symbolBoundingData"),ve=J.coordSys.getOtherAxis(J.coordSys.getBaseAxis()),xe=ve.toGlobalCoord(ve.dataToCoord(0)),_e=1-+(z[de.wh]<=0),Ue;if(x.isArray(ie)){var fe=[s(ve,ie[0])-xe,s(ve,ie[1])-xe];fe[1]<fe[0]&&fe.reverse(),Ue=fe[_e]}else ie!=null?Ue=s(ve,ie)-xe:V?Ue=J.coordSysExtent[de.index][_e]-xe:Ue=z[de.wh];Z.boundingLength=Ue,V&&(Z.repeatCutLength=z[de.wh]),Z.pxSign=Ue>0?1:Ue<0?-1:0}function s(W,V){return W.toGlobalCoord(W.dataToCoord(W.scale.parse(V)))}function u(W,V,z,J,Z,de,ie,ve,xe,_e){var Ue=xe.valueDim,fe=xe.categoryDim,ke=Math.abs(z[fe.wh]),se=W.getItemVisual(V,"symbolSize");x.isArray(se)?se=se.slice():(se==null&&(se="100%"),se=[se,se]),se[fe.index]=f(se[fe.index],ke),se[Ue.index]=f(se[Ue.index],J?ke:Math.abs(de)),_e.symbolSize=se;var te=_e.symbolScale=[se[0]/ve,se[1]/ve];te[Ue.index]*=(xe.isHorizontal?-1:1)*ie}function h(W,V,z,J,Z){var de=W.get(i)||0;de&&(e.attr({scale:V.slice(),rotation:z}),e.updateTransform(),de/=e.getLineScale(),de*=V[J.valueDim.index]),Z.valueLineWidth=de}function p(W,V,z,J,Z,de,ie,ve,xe,_e,Ue,fe){var ke=Ue.categoryDim,se=Ue.valueDim,te=fe.pxSign,Ve=Math.max(V[se.index]+ve,0),ae=Ve;if(J){var Q=Math.abs(xe),G=x.retrieve(W.get("symbolMargin"),"15%")+"",Y=!1;G.lastIndexOf("!")===G.length-1&&(Y=!0,G=G.slice(0,G.length-1)),G=f(G,V[se.index]);var me=Math.max(Ve+G*2,0),ue=Y?0:G*2,Ce=c(J),Ie=Ce?J:B((Q+ue)/me),ce=Q-Ie*Ve;G=ce/2/(Y?Ie:Ie-1),me=Ve+G*2,ue=Y?0:G*2,!Ce&&J!=="fixed"&&(Ie=_e?B((Math.abs(_e)+ue)/me):0),ae=Ie*me-ue,fe.repeatTimes=Ie,fe.symbolMargin=G}var Ae=te*(ae/2),Te=fe.pathPosition=[];Te[ke.index]=z[ke.wh]/2,Te[se.index]=ie==="start"?Ae:ie==="end"?xe-Ae:xe/2,de&&(Te[0]+=de[0],Te[1]+=de[1]);var Ge=fe.bundlePosition=[];Ge[ke.index]=z[ke.xy],Ge[se.index]=z[se.xy];var gt=fe.barRectShape=x.extend({},z);gt[se.wh]=te*Math.max(Math.abs(z[se.wh]),Math.abs(Te[se.index]+Ae)),gt[ke.wh]=z[ke.wh];var qe=fe.clipShape={};qe[ke.xy]=-z[ke.xy],qe[ke.wh]=Ue.ecSize[ke.wh],qe[se.xy]=0,qe[se.wh]=z[se.wh]}function m(W){var V=W.symbolPatternSize,z=S(W.symbolType,-V/2,-V/2,V,V,W.color);return z.attr({culling:!0}),z.type!=="image"&&z.setStyle({strokeNoScale:!0}),z}function v(W,V,z,J){var Z=W.__pictorialBundle,de=z.symbolSize,ie=z.valueLineWidth,ve=z.pathPosition,xe=V.valueDim,_e=z.repeatTimes||0,Ue=0,fe=de[V.valueDim.index]+ie+z.symbolMargin*2;for(k(W,function(Q){Q.__pictorialAnimationIndex=Ue,Q.__pictorialRepeatTimes=_e,Ue<_e?M(Q,null,te(Ue),z,J):M(Q,null,{scale:[0,0]},z,J,function(){Z.remove(Q)}),I(Q,z),Ue++});Ue<_e;Ue++){var ke=m(z);ke.__pictorialAnimationIndex=Ue,ke.__pictorialRepeatTimes=_e,Z.add(ke);var se=te(Ue);M(ke,{position:se.position,scale:[0,0]},{scale:se.scale,rotation:se.rotation},z,J),ke.on("mouseover",Ve).on("mouseout",ae),I(ke,z)}function te(Q){var G=ve.slice(),Y=z.pxSign,me=Q;return(z.symbolRepeatDirection==="start"?Y>0:Y<0)&&(me=_e-1-Q),G[xe.index]=fe*(me-_e/2+.5)+ve[xe.index],{position:G,scale:z.symbolScale.slice(),rotation:z.rotation}}function Ve(){k(W,function(Q){Q.trigger("emphasis")})}function ae(){k(W,function(Q){Q.trigger("normal")})}}function y(W,V,z,J){var Z=W.__pictorialBundle,de=W.__pictorialMainPath;de?M(de,null,{position:z.pathPosition.slice(),scale:z.symbolScale.slice(),rotation:z.rotation},z,J):(de=W.__pictorialMainPath=m(z),Z.add(de),M(de,{position:z.pathPosition.slice(),scale:[0,0],rotation:z.rotation},{scale:z.symbolScale.slice()},z,J),de.on("mouseover",ie).on("mouseout",ve)),I(de,z);function ie(){this.trigger("emphasis")}function ve(){this.trigger("normal")}}function E(W,V,z){var J=x.extend({},V.barRectShape),Z=W.__pictorialBarRect;Z?M(Z,null,{shape:J},V,z):(Z=W.__pictorialBarRect=new C.Rect({z2:2,shape:J,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),W.add(Z))}function T(W,V,z,J){if(z.symbolClip){var Z=W.__pictorialClipPath,de=x.extend({},z.clipShape),ie=V.valueDim,ve=z.animationModel,xe=z.dataIndex;if(Z)C.updateProps(Z,{shape:de},ve,xe);else{de[ie.wh]=0,Z=new C.Rect({shape:de}),W.__pictorialBundle.setClipPath(Z),W.__pictorialClipPath=Z;var _e={};_e[ie.wh]=z.clipShape[ie.wh],C[J?"updateProps":"initProps"](Z,{shape:_e},ve,xe)}}}function b(W,V){var z=W.getItemModel(V);return z.getAnimationDelayParams=w,z.isAnimationEnabled=_,z}function w(W){return{index:W.__pictorialAnimationIndex,count:W.__pictorialRepeatTimes}}function _(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function I(W,V){W.off("emphasis").off("normal");var z=V.symbolScale.slice();V.hoverAnimation&&W.on("emphasis",function(){this.animateTo({scale:[z[0]*1.1,z[1]*1.1]},400,"elasticOut")}).on("normal",function(){this.animateTo({scale:z.slice()},400,"elasticOut")})}function L(W,V,z,J){var Z=new C.Group,de=new C.Group;return Z.add(de),Z.__pictorialBundle=de,de.attr("position",z.bundlePosition.slice()),z.symbolRepeat?v(Z,V,z):y(Z,V,z),E(Z,z,J),T(Z,V,z,J),Z.__pictorialShapeStr=R(W,z),Z.__pictorialSymbolMeta=z,Z}function N(W,V,z){var J=z.animationModel,Z=z.dataIndex,de=W.__pictorialBundle;C.updateProps(de,{position:z.bundlePosition.slice()},J,Z),z.symbolRepeat?v(W,V,z,!0):y(W,V,z,!0),E(W,z,!0),T(W,V,z,!0)}function D(W,V,z,J){var Z=J.__pictorialBarRect;Z&&(Z.style.text=null);var de=[];k(J,function(ie){de.push(ie)}),J.__pictorialMainPath&&de.push(J.__pictorialMainPath),J.__pictorialClipPath&&(z=null),x.each(de,function(ie){C.updateProps(ie,{scale:[0,0]},z,V,function(){J.parent&&J.parent.remove(J)})}),W.setItemGraphicEl(V,null)}function R(W,V){return[W.getItemVisual(V.dataIndex,"symbol")||"none",!!V.symbolRepeat,!!V.symbolClip].join(":")}function k(W,V,z){x.each(W.__pictorialBundle.children(),function(J){J!==W.__pictorialBarRect&&V.call(z,J)})}function M(W,V,z,J,Z,de){V&&W.attr(V),J.symbolClip&&!Z?z&&W.attr(z):z&&C[Z?"updateProps":"initProps"](W,z,J.animationModel,J.dataIndex,de)}function U(W,V,z){var J=z.color,Z=z.dataIndex,de=z.itemModel,ie=de.getModel("itemStyle").getItemStyle(["color"]),ve=de.getModel("emphasis.itemStyle").getItemStyle(),xe=de.getShallow("cursor");k(W,function(ke){ke.setColor(J),ke.setStyle(x.defaults({fill:J,opacity:z.opacity},ie)),C.setHoverStyle(ke,ve),xe&&(ke.cursor=xe),ke.z2=z.z2});var _e={},Ue=V.valueDim.posDesc[+(z.boundingLength>0)],fe=W.__pictorialBarRect;r(fe.style,_e,de,J,V.seriesModel,Z,Ue),C.setHoverStyle(fe,_e)}function B(W){var V=Math.round(W);return Math.abs(W-V)<1e-4?V:Math.ceil(W)}var j=l;H.exports=j},"N/zr":function(H,F,d){"use strict";function O(g){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(c){return typeof c}:O=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},O(g)}Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var x=A(d("Lo0S"));function C(){if(typeof WeakMap!="function")return null;var g=new WeakMap;return C=function(){return g},g}function A(g){if(g&&g.__esModule)return g;if(g===null||O(g)!=="object"&&typeof g!="function")return{default:g};var f=C();if(f&&f.has(g))return f.get(g);var c={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in g)if(Object.prototype.hasOwnProperty.call(g,r)){var i=o?Object.getOwnPropertyDescriptor(g,r):null;i&&(i.get||i.set)?Object.defineProperty(c,r,i):c[r]=g[r]}return c.default=g,f&&f.set(g,c),c}var S={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode:function(f){"use strict";for(var c="",o=f.length,r=o%3,i=0;i<o-2;i+=3)c+=this.toBase64Table[f[i]>>2],c+=this.toBase64Table[((f[i]&3)<<4)+(f[i+1]>>4)],c+=this.toBase64Table[((f[i+1]&15)<<2)+(f[i+2]>>6)],c+=this.toBase64Table[f[i+2]&63];var n=o-r;return r===2?(c+=this.toBase64Table[f[n]>>2],c+=this.toBase64Table[((f[n]&3)<<4)+(f[n+1]>>4)],c+=this.toBase64Table[(f[n+1]&15)<<2],c+=this.toBase64Table[64]):r===1&&(c+=this.toBase64Table[f[n]>>2],c+=this.toBase64Table[(f[n]&3)<<4],c+=this.toBase64Table[64],c+=this.toBase64Table[64]),c},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(f){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=f.indexOf("=")-c;o<0&&(o=f.length-c);for(var r=(o>>2)*3+Math.floor(o%4/1.5),i=new Array(r),n=0,e=0,l=0,t=c;t<f.length;t++){var a=this.toBinaryTable[f.charCodeAt(t)&127],s=f.charAt(t)===this.base64Pad;if(a===-1){x.Error("Illegal character code "+f.charCodeAt(t)+" at position "+t);continue}e=e<<6|a,n+=6,n>=8&&(n-=8,s||(i[l++]=e>>n&255),e&=(1<<n)-1)}if(n){var u=new Error("Corrupted base64 string");throw u.name="Base64-Error",u}return i}};F.default=S},N5BQ:function(H,F,d){var O=d("OlYY"),x=O.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"}}}),C=x;H.exports=C},NA0q:function(H,F,d){var O=d("bYtY"),x=d("6Ic6"),C=d("TkdX"),A=d("gPAo"),S=d("7aKB"),g=S.windowOpen,f="sunburstRootToNode",c=x.extend({type:"sunburst",init:function(){},render:function(r,i,n,e){var l=this;this.seriesModel=r,this.api=n,this.ecModel=i;var t=r.getData(),a=t.tree.root,s=r.getViewRoot(),u=this.group,h=r.get("renderLabelForZeroData"),p=[];s.eachNode(function(_){p.push(_)});var m=this._oldChildren||[];if(E(p,m),w(a,s),e&&e.highlight&&e.highlight.piece){var v=r.getShallow("highlightPolicy");e.highlight.piece.onEmphasis(v)}else if(e&&e.unhighlight){var y=this.virtualPiece;!y&&a.children.length&&(y=a.children[0].piece),y&&y.onNormal()}this._initEvents(),this._oldChildren=p;function E(_,I){if(_.length===0&&I.length===0)return;new A(I,_,L,L).add(N).update(N).remove(O.curry(N,null)).execute();function L(D){return D.getId()}function N(D,R){var k=D==null?null:_[D],M=R==null?null:I[R];T(k,M)}}function T(_,I){if(!h&&_&&!_.getValue()&&(_=null),_!==a&&I!==a){if(I&&I.piece)_?(I.piece.updateData(!1,_,"normal",r,i),t.setItemGraphicEl(_.dataIndex,I.piece)):b(I);else if(_){var L=new C(_,r,i);u.add(L),t.setItemGraphicEl(_.dataIndex,L)}}}function b(_){if(!_)return;_.piece&&(u.remove(_.piece),_.piece=null)}function w(_,I){if(I.depth>0){l.virtualPiece?l.virtualPiece.updateData(!1,_,"normal",r,i):(l.virtualPiece=new C(_,r,i),u.add(l.virtualPiece)),I.piece._onclickEvent&&I.piece.off("click",I.piece._onclickEvent);var L=function(N){l._rootToNode(I.parentNode)};I.piece._onclickEvent=L,l.virtualPiece.on("click",L)}else l.virtualPiece&&(u.remove(l.virtualPiece),l.virtualPiece=null)}},dispose:function(){},_initEvents:function(){var r=this,i=function(n){var e=!1,l=r.seriesModel.getViewRoot();l.eachNode(function(t){if(!e&&t.piece&&t.piece.childAt(0)===n.target){var a=t.getModel().get("nodeClick");if(a==="rootToNode")r._rootToNode(t);else if(a==="link"){var s=t.getModel(),u=s.get("link");if(u){var h=s.get("target",!0)||"_blank";g(u,h)}}e=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",i),this.group._onclickEvent=i},_rootToNode:function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:f,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},containPoint:function(r,i){var n=i.getData(),e=n.getItemLayout(0);if(e){var l=r[0]-e.cx,t=r[1]-e.cy,a=Math.sqrt(l*l+t*t);return a<=e.r&&a>=e.r0}}}),o=c;H.exports=o},NAnI:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("wXyp"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},NBmB:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.encodingName=x,F.encodings=void 0;var O={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};F.encodings=O;function x(C){switch(C){case O.encodingRaw:return"Raw";case O.encodingCopyRect:return"CopyRect";case O.encodingRRE:return"RRE";case O.encodingHextile:return"Hextile";case O.encodingTight:return"Tight";case O.encodingTightPNG:return"TightPNG";default:return"[unknown encoding "+C+"]"}}},NC18:function(H,F,d){var O=d("y+Vt"),x=d("IMiH"),C=d("7oTu"),A=Math.sqrt,S=Math.sin,g=Math.cos,f=Math.PI,c=function(p){return Math.sqrt(p[0]*p[0]+p[1]*p[1])},o=function(p,m){return(p[0]*m[0]+p[1]*m[1])/(c(p)*c(m))},r=function(p,m){return(p[0]*m[1]<p[1]*m[0]?-1:1)*Math.acos(o(p,m))};function i(h,p,m,v,y,E,T,b,w,_,I){var L=w*(f/180),N=g(L)*(h-m)/2+S(L)*(p-v)/2,D=-1*S(L)*(h-m)/2+g(L)*(p-v)/2,R=N*N/(T*T)+D*D/(b*b);R>1&&(T*=A(R),b*=A(R));var k=(y===E?-1:1)*A((T*T*(b*b)-T*T*(D*D)-b*b*(N*N))/(T*T*(D*D)+b*b*(N*N)))||0,M=k*T*D/b,U=k*-b*N/T,B=(h+m)/2+g(L)*M-S(L)*U,j=(p+v)/2+S(L)*M+g(L)*U,W=r([1,0],[(N-M)/T,(D-U)/b]),V=[(N-M)/T,(D-U)/b],z=[(-1*N-M)/T,(-1*D-U)/b],J=r(V,z);o(V,z)<=-1&&(J=f),o(V,z)>=1&&(J=0),E===0&&J>0&&(J=J-2*f),E===1&&J<0&&(J=J+2*f),I.addData(_,B,j,T,b,W,J,L,E)}var n=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function l(h){if(!h)return new x;for(var p=0,m=0,v=p,y=m,E,T=new x,b=x.CMD,w=h.match(n),_=0;_<w.length;_++){for(var I=w[_],L=I.charAt(0),N,D=I.match(e)||[],R=D.length,k=0;k<R;k++)D[k]=parseFloat(D[k]);for(var M=0;M<R;){var U,B,j,W,V,z,J,Z=p,de=m;switch(L){case"l":p+=D[M++],m+=D[M++],N=b.L,T.addData(N,p,m);break;case"L":p=D[M++],m=D[M++],N=b.L,T.addData(N,p,m);break;case"m":p+=D[M++],m+=D[M++],N=b.M,T.addData(N,p,m),v=p,y=m,L="l";break;case"M":p=D[M++],m=D[M++],N=b.M,T.addData(N,p,m),v=p,y=m,L="L";break;case"h":p+=D[M++],N=b.L,T.addData(N,p,m);break;case"H":p=D[M++],N=b.L,T.addData(N,p,m);break;case"v":m+=D[M++],N=b.L,T.addData(N,p,m);break;case"V":m=D[M++],N=b.L,T.addData(N,p,m);break;case"C":N=b.C,T.addData(N,D[M++],D[M++],D[M++],D[M++],D[M++],D[M++]),p=D[M-2],m=D[M-1];break;case"c":N=b.C,T.addData(N,D[M++]+p,D[M++]+m,D[M++]+p,D[M++]+m,D[M++]+p,D[M++]+m),p+=D[M-2],m+=D[M-1];break;case"S":U=p,B=m;var ie=T.len(),ve=T.data;E===b.C&&(U+=p-ve[ie-4],B+=m-ve[ie-3]),N=b.C,Z=D[M++],de=D[M++],p=D[M++],m=D[M++],T.addData(N,U,B,Z,de,p,m);break;case"s":U=p,B=m;var ie=T.len(),ve=T.data;E===b.C&&(U+=p-ve[ie-4],B+=m-ve[ie-3]),N=b.C,Z=p+D[M++],de=m+D[M++],p+=D[M++],m+=D[M++],T.addData(N,U,B,Z,de,p,m);break;case"Q":Z=D[M++],de=D[M++],p=D[M++],m=D[M++],N=b.Q,T.addData(N,Z,de,p,m);break;case"q":Z=D[M++]+p,de=D[M++]+m,p+=D[M++],m+=D[M++],N=b.Q,T.addData(N,Z,de,p,m);break;case"T":U=p,B=m;var ie=T.len(),ve=T.data;E===b.Q&&(U+=p-ve[ie-4],B+=m-ve[ie-3]),p=D[M++],m=D[M++],N=b.Q,T.addData(N,U,B,p,m);break;case"t":U=p,B=m;var ie=T.len(),ve=T.data;E===b.Q&&(U+=p-ve[ie-4],B+=m-ve[ie-3]),p+=D[M++],m+=D[M++],N=b.Q,T.addData(N,U,B,p,m);break;case"A":j=D[M++],W=D[M++],V=D[M++],z=D[M++],J=D[M++],Z=p,de=m,p=D[M++],m=D[M++],N=b.A,i(Z,de,p,m,z,J,j,W,V,N,T);break;case"a":j=D[M++],W=D[M++],V=D[M++],z=D[M++],J=D[M++],Z=p,de=m,p+=D[M++],m+=D[M++],N=b.A,i(Z,de,p,m,z,J,j,W,V,N,T);break}}(L==="z"||L==="Z")&&(N=b.Z,T.addData(N),p=v,m=y),E=N}return T.toStatic(),T}function t(h,p){var m=l(h);return p=p||{},p.buildPath=function(v){if(v.setData){v.setData(m.data);var y=v.getContext();y&&v.rebuildPath(y)}else{var y=v;m.rebuildPath(y)}},p.applyTransform=function(v){C(m,v),this.dirty(!0)},p}function a(h,p){return new O(t(h,p))}function s(h,p){return O.extend(t(h,p))}function u(h,p){for(var m=[],v=h.length,y=0;y<v;y++){var E=h[y];E.path||E.createPathProxy(),E.__dirtyPath&&E.buildPath(E.path,E.shape,!0),m.push(E.path)}var T=new O(p);return T.createPathProxy(),T.buildPath=function(b){b.appendPath(m);var w=b.getContext();w&&b.rebuildPath(w)},T}F.createFromString=a,F.extendFromString=s,F.mergePath=u},NFKh:function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("MlIO"),d("F+F2"),d("qM6L"),d("ETIr"),d("wbyO"),d("cv67"),d("3y9D"),d("lPiR"),d("GRuw"),d("1uat"),d("uGsb"),d("5hvy"),d("ELcG"),d("WYAk"),d("e7zE"),d("K3mO"),d("OLod"),d("ALsQ"),d("9OqN"),d("qu8F"),d("S6kV"),d("gb/T"),d("qBft"),d("oRuE"),d("jO9C"),d("KmYQ"),d("uGxW"),d("bQjk"),d("wZgz"),d("pA7S"),d("w7YG"),d("E4JC"),d("PVpz"))})(this,function(O){return O})},NH9N:function(H,F,d){var O=d("bYtY"),x=d("mFDi"),C=d("Fofx"),A=d("IwbS"),S=d("+TT/"),g=d("kzvK"),f=d("CMP+"),c=d("oVpE"),o=c.createSymbol,r=d("aX7z"),i=d("OELB"),n=d("7aKB"),e=n.encodeHTML,l=O.bind,t=O.each,a=Math.PI,s=g.extend({type:"timeline.slider",init:function(v,y){this.api=y,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(v,y,E,T){if(this.model=v,this.api=E,this.ecModel=y,this.group.removeAll(),v.get("show",!0)){var b=this._layout(v,E),w=this._createGroup("mainGroup"),_=this._createGroup("labelGroup"),I=this._axis=this._createAxis(b,v);v.formatTooltip=function(L){return e(I.scale.getLabel(L))},t(["AxisLine","AxisTick","Control","CurrentPointer"],function(L){this["_render"+L](b,w,I,v)},this),this._renderAxisLabel(b,_,I,v),this._position(b,v)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(v,y){var E=v.get("label.position"),T=v.get("orient"),b=u(v,y);E==null||E==="auto"?E=T==="horizontal"?b.y+b.height/2<y.getHeight()/2?"-":"+":b.x+b.width/2<y.getWidth()/2?"+":"-":isNaN(E)&&(E={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[T][E]);var w={horizontal:"center",vertical:E>=0||E==="+"?"left":"right"},_={horizontal:E>=0||E==="+"?"top":"bottom",vertical:"middle"},I={horizontal:0,vertical:a/2},L=T==="vertical"?b.height:b.width,N=v.getModel("controlStyle"),D=N.get("show",!0),R=D?N.get("itemSize"):0,k=D?N.get("itemGap"):0,M=R+k,U=v.get("label.rotate")||0;U=U*a/180;var B,j,W,V,z=N.get("position",!0),J=D&&N.get("showPlayBtn",!0),Z=D&&N.get("showPrevBtn",!0),de=D&&N.get("showNextBtn",!0),ie=0,ve=L;return z==="left"||z==="bottom"?(J&&(B=[0,0],ie+=M),Z&&(j=[ie,0],ie+=M),de&&(W=[ve-R,0],ve-=M)):(J&&(B=[ve-R,0],ve-=M),Z&&(j=[0,0],ie+=M),de&&(W=[ve-R,0],ve-=M)),V=[ie,ve],v.get("inverse")&&V.reverse(),{viewRect:b,mainLength:L,orient:T,rotation:I[T],labelRotation:U,labelPosOpt:E,labelAlign:v.get("label.align")||w[T],labelBaseline:v.get("label.verticalAlign")||v.get("label.baseline")||_[T],playPosition:B,prevBtnPosition:j,nextBtnPosition:W,axisExtent:V,controlSize:R,controlGap:k}},_position:function(v,y){var E=this._mainGroup,T=this._labelGroup,b=v.viewRect;if(v.orient==="vertical"){var w=C.create(),_=b.x,I=b.y+b.height;C.translate(w,w,[-_,-I]),C.rotate(w,w,-a/2),C.translate(w,w,[_,I]),b=b.clone(),b.applyTransform(w)}var L=j(b),N=j(E.getBoundingRect()),D=j(T.getBoundingRect()),R=E.position,k=T.position;k[0]=R[0]=L[0][0];var M=v.labelPosOpt;if(isNaN(M)){var U=M==="+"?0:1;W(R,N,L,1,U),W(k,D,L,1,1-U)}else{var U=M>=0?0:1;W(R,N,L,1,U),k[1]=R[1]+M}E.attr("position",R),T.attr("position",k),E.rotation=T.rotation=v.rotation,B(E),B(T);function B(V){var z=V.position;V.origin=[L[0][0]-z[0],L[1][0]-z[1]]}function j(V){return[[V.x,V.x+V.width],[V.y,V.y+V.height]]}function W(V,z,J,Z,de){V[Z]+=J[Z][de]-z[Z][de]}},_createAxis:function(v,y){var E=y.getData(),T=y.get("axisType"),b=r.createScaleByModel(y,T);b.getTicks=function(){return E.mapArray(["value"],function(I){return I})};var w=E.getDataExtent("value");b.setExtent(w[0],w[1]),b.niceTicks();var _=new f("value",b,v.axisExtent,T);return _.model=y,_},_createGroup:function(v){var y=this["_"+v]=new A.Group;return this.group.add(y),y},_renderAxisLine:function(v,y,E,T){var b=E.getExtent();if(!T.get("lineStyle.show"))return;y.add(new A.Line({shape:{x1:b[0],y1:0,x2:b[1],y2:0},style:O.extend({lineCap:"round"},T.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(v,y,E,T){var b=T.getData(),w=E.scale.getTicks();t(w,function(_){var I=E.dataToCoord(_),L=b.getItemModel(_),N=L.getModel("itemStyle"),D=L.getModel("emphasis.itemStyle"),R={position:[I,0],onclick:l(this._changeTimeline,this,_)},k=p(L,N,y,R);A.setHoverStyle(k,D.getItemStyle()),L.get("tooltip")?(k.dataIndex=_,k.dataModel=T):k.dataIndex=k.dataModel=null},this)},_renderAxisLabel:function(v,y,E,T){var b=E.getLabelModel();if(!b.get("show"))return;var w=T.getData(),_=E.getViewLabels();t(_,function(I){var L=I.tickValue,N=w.getItemModel(L),D=N.getModel("label"),R=N.getModel("emphasis.label"),k=E.dataToCoord(I.tickValue),M=new A.Text({position:[k,0],rotation:v.labelRotation-v.rotation,onclick:l(this._changeTimeline,this,L),silent:!1});A.setTextStyle(M.style,D,{text:I.formattedLabel,textAlign:v.labelAlign,textVerticalAlign:v.labelBaseline}),y.add(M),A.setHoverStyle(M,A.setTextStyle({},R))},this)},_renderControl:function(v,y,E,T){var b=v.controlSize,w=v.rotation,_=T.getModel("controlStyle").getItemStyle(),I=T.getModel("emphasis.controlStyle").getItemStyle(),L=[0,-b/2,b,b],N=T.getPlayState(),D=T.get("inverse",!0);R(v.nextBtnPosition,"controlStyle.nextIcon",l(this._changeTimeline,this,D?"-":"+")),R(v.prevBtnPosition,"controlStyle.prevIcon",l(this._changeTimeline,this,D?"+":"-")),R(v.playPosition,"controlStyle."+(N?"stopIcon":"playIcon"),l(this._handlePlayClick,this,!N),!0);function R(k,M,U,B){if(!k)return;var j={position:k,origin:[b/2,0],rotation:B?-w:0,rectHover:!0,style:_,onclick:U},W=h(T,M,L,j);y.add(W),A.setHoverStyle(W,I)}},_renderCurrentPointer:function(v,y,E,T){var b=T.getData(),w=T.getCurrentIndex(),_=b.getItemModel(w).getModel("checkpointStyle"),I=this,L={onCreate:function(N){N.draggable=!0,N.drift=l(I._handlePointerDrag,I),N.ondragend=l(I._handlePointerDragend,I),m(N,w,E,T,!0)},onUpdate:function(N){m(N,w,E,T)}};this._currentPointer=p(_,_,this._mainGroup,{},this._currentPointer,L)},_handlePlayClick:function(v){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:v,from:this.uid})},_handlePointerDrag:function(v,y,E){this._clearTimer(),this._pointerChangeTimeline([E.offsetX,E.offsetY])},_handlePointerDragend:function(v){this._pointerChangeTimeline([v.offsetX,v.offsetY],!0)},_pointerChangeTimeline:function(v,y){var E=this._toAxisCoord(v)[0],T=this._axis,b=i.asc(T.getExtent().slice());E>b[1]&&(E=b[1]),E<b[0]&&(E=b[0]),this._currentPointer.position[0]=E,this._currentPointer.dirty();var w=this._findNearestTick(E),_=this.model;(y||w!==_.getCurrentIndex()&&_.get("realtime"))&&this._changeTimeline(w)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(l(v,this),this.model.get("playInterval")));function v(){var y=this.model;this._changeTimeline(y.getCurrentIndex()+(y.get("rewind",!0)?-1:1))}},_toAxisCoord:function(v){var y=this._mainGroup.getLocalTransform();return A.applyTransform(v,y,!0)},_findNearestTick:function(v){var y=this.model.getData(),E=Infinity,T,b=this._axis;return y.each(["value"],function(w,_){var I=b.dataToCoord(w),L=Math.abs(I-v);L<E&&(E=L,T=_)}),T},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(v){var y=this.model.getCurrentIndex();v==="+"?v=y+1:v==="-"&&(v=y-1),this.api.dispatchAction({type:"timelineChange",currentIndex:v,from:this.uid})}});function u(v,y){return S.getLayoutRect(v.getBoxLayoutParams(),{width:y.getWidth(),height:y.getHeight()},v.get("padding"))}function h(v,y,E,T){var b=A.makePath(v.get(y).replace(/^path:\/\//,""),O.clone(T||{}),new x(E[0],E[1],E[2],E[3]),"center");return b}function p(v,y,E,T,b,w){var _=y.get("color");if(b)b.setColor(_),E.add(b),w&&w.onUpdate(b);else{var I=v.get("symbol");b=o(I,-1,-1,2,2,_),b.setStyle("strokeNoScale",!0),E.add(b),w&&w.onCreate(b)}var L=y.getItemStyle(["color","symbol","symbolSize"]);b.setStyle(L),T=O.merge({rectHover:!0,z2:100},T,!0);var N=v.get("symbolSize");N=N instanceof Array?N.slice():[+N,+N],N[0]/=2,N[1]/=2,T.scale=N;var D=v.get("symbolOffset");if(D){var R=T.position=T.position||[0,0];R[0]+=i.parsePercent(D[0],N[0]),R[1]+=i.parsePercent(D[1],N[1])}var k=v.get("symbolRotate");return T.rotation=(k||0)*Math.PI/180||0,b.attr(T),b.updateTransform(),b}function m(v,y,E,T,b){if(v.dragging)return;var w=T.getModel("checkpointStyle"),_=E.dataToCoord(T.getData().get(["value"],y));b||!w.get("animation",!0)?v.attr({position:[_,0]}):(v.stopAnimation(!0),v.animateTo({position:[_,0]},w.get("animationDuration",!0),w.get("animationEasing",!0)))}H.exports=s},NJEC:function(H,F,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("J4zp"),A=d.n(C),S=d("q1tI"),g=d.n(S),f=d("TSYQ"),c=d.n(f),o=d("sKbD"),r=d.n(o),i=d("4IlW"),n=d("3S7+"),e=d("2/Rp"),l=d("zvFY"),t=d("YMnH"),a=d("ZvpZ"),s=d("H84U"),u=d("bogI"),h=d("0n0R"),p=void 0,m=function(y,E){var T={};for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&E.indexOf(b)<0&&(T[b]=y[b]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,b=Object.getOwnPropertySymbols(y);w<b.length;w++)E.indexOf(b[w])<0&&Object.prototype.propertyIsEnumerable.call(y,b[w])&&(T[b[w]]=y[b[w]]);return T},v=S.forwardRef(function(y,E){var T=S.useState(y.visible),b=A()(T,2),w=b[0],_=b[1];S.useEffect(function(){"visible"in y&&_(y.visible)},[y.visible]),S.useEffect(function(){"defaultVisible"in y&&_(y.defaultVisible)},[y.defaultVisible]);var I=function(xe,_e){"visible"in y||_(xe),y.onVisibleChange&&y.onVisibleChange(xe,_e)},L=function(xe){I(!1,xe),y.onConfirm&&y.onConfirm.call(p,xe)},N=function(xe){I(!1,xe),y.onCancel&&y.onCancel.call(p,xe)},D=function(xe){xe.keyCode===i.a.ESC&&w&&I(!1,xe)},R=function(xe){var _e=y.disabled;if(_e)return;I(xe)},k=function(xe,_e){var Ue=y.okButtonProps,fe=y.cancelButtonProps,ke=y.title,se=y.cancelText,te=y.okText,Ve=y.okType,ae=y.icon;return S.createElement("div",{className:"".concat(xe,"-inner-content")},S.createElement("div",{className:"".concat(xe,"-message")},ae,S.createElement("div",{className:"".concat(xe,"-message-title")},Object(u.a)(ke))),S.createElement("div",{className:"".concat(xe,"-buttons")},S.createElement(e.a,x()({onClick:N,size:"small"},fe),se||_e.cancelText),S.createElement(e.a,x()({onClick:L},Object(l.a)(Ve),{size:"small"},Ue),te||_e.okText)))},M=S.useContext(s.b),U=M.getPrefixCls,B=y.prefixCls,j=y.placement,W=y.children,V=y.overlayClassName,z=m(y,["prefixCls","placement","children","overlayClassName"]),J=U("popover",B),Z=U("popconfirm",B),de=c()(Z,V),ie=S.createElement(t.a,{componentName:"Popconfirm",defaultLocale:a.a.Popconfirm},function(ve){return k(J,ve)});return S.createElement(n.a,x()({},z,{prefixCls:J,placement:j,onVisibleChange:R,visible:w,overlay:ie,overlayClassName:de,ref:E}),Object(h.a)(W,{onKeyDown:function(xe){var _e,Ue;(Ue=W==null?void 0:(_e=W.props).onKeyDown)===null||Ue===void 0||Ue.call(_e,xe),D(xe)}}))});v.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",okType:"primary",icon:S.createElement(r.a,null),disabled:!1},F.a=v},NUBc:function(H,F,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),S=d("q1tI"),g=d.n(S),f=d("wx14"),c=d("rePB"),o=d("VTBJ"),r=d("1OyB"),i=d("vuIU"),n=d("Ji7U"),e=d("LK+K"),l=d("TSYQ"),t=d.n(l),a=function(_e){var Ue,fe="".concat(_e.rootPrefixCls,"-item"),ke=t()(fe,"".concat(fe,"-").concat(_e.page),(Ue={},Object(c.a)(Ue,"".concat(fe,"-active"),_e.active),Object(c.a)(Ue,_e.className,!!_e.className),Object(c.a)(Ue,"".concat(fe,"-disabled"),!_e.page),Ue)),se=function(){_e.onClick(_e.page)},te=function(ae){_e.onKeyPress(ae,_e.onClick,_e.page)};return g.a.createElement("li",{title:_e.showTitle?_e.page:null,className:ke,onClick:se,onKeyPress:te,tabIndex:"0"},_e.itemRender(_e.page,"page",g.a.createElement("a",{rel:"nofollow"},_e.page)))},s=a,u={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},h=function(xe){Object(n.a)(Ue,xe);var _e=Object(e.a)(Ue);function Ue(){var fe;Object(r.a)(this,Ue);for(var ke=arguments.length,se=new Array(ke),te=0;te<ke;te++)se[te]=arguments[te];return fe=_e.call.apply(_e,[this].concat(se)),fe.state={goInputText:""},fe.buildOptionText=function(Ve){return"".concat(Ve," ").concat(fe.props.locale.items_per_page)},fe.changeSize=function(Ve){fe.props.changeSize(Number(Ve))},fe.handleChange=function(Ve){fe.setState({goInputText:Ve.target.value})},fe.handleBlur=function(Ve){var ae=fe.props,Q=ae.goButton,G=ae.quickGo,Y=ae.rootPrefixCls,me=fe.state.goInputText;if(Q||me==="")return;if(Ve.relatedTarget&&(Ve.relatedTarget.className.indexOf("".concat(Y,"-prev"))>=0||Ve.relatedTarget.className.indexOf("".concat(Y,"-next"))>=0))return;fe.setState({goInputText:""}),G(fe.getValidValue())},fe.go=function(Ve){var ae=fe.state.goInputText;if(ae==="")return;(Ve.keyCode===u.ENTER||Ve.type==="click")&&(fe.setState({goInputText:""}),fe.props.quickGo(fe.getValidValue()))},fe}return Object(i.a)(Ue,[{key:"getValidValue",value:function(){var ke=this.state,se=ke.goInputText,te=ke.current;return!se||isNaN(se)?te:Number(se)}},{key:"getPageSizeOptions",value:function(){var ke=this.props,se=ke.pageSize,te=ke.pageSizeOptions;return te.some(function(Ve){return Ve.toString()===se.toString()})?te:te.concat([se.toString()]).sort(function(Ve,ae){var Q=isNaN(Number(Ve))?0:Number(Ve),G=isNaN(Number(ae))?0:Number(ae);return Q-G})}},{key:"render",value:function(){var ke=this,se=this.props,te=se.pageSize,Ve=se.locale,ae=se.rootPrefixCls,Q=se.changeSize,G=se.quickGo,Y=se.goButton,me=se.selectComponentClass,ue=se.buildOptionText,Ce=se.selectPrefixCls,Ie=se.disabled,ce=this.state.goInputText,Ae="".concat(ae,"-options"),Te=me,Ge=null,gt=null,qe=null;if(!Q&&!G)return null;var Le=this.getPageSizeOptions();if(Q&&Te){var Ot=Le.map(function($e,xt){return g.a.createElement(Te.Option,{key:xt,value:$e.toString()},(ue||ke.buildOptionText)($e))});Ge=g.a.createElement(Te,{disabled:Ie,prefixCls:Ce,showSearch:!1,className:"".concat(Ae,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(te||Le[0]).toString(),onChange:this.changeSize,getPopupContainer:function(xt){return xt.parentNode}},Ot)}return G&&(Y&&(qe=typeof Y=="boolean"?g.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Ie,className:"".concat(Ae,"-quick-jumper-button")},Ve.jump_to_confirm):g.a.createElement("span",{onClick:this.go,onKeyUp:this.go},Y)),gt=g.a.createElement("div",{className:"".concat(Ae,"-quick-jumper")},Ve.jump_to,g.a.createElement("input",{disabled:Ie,type:"text",value:ce,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),Ve.page,qe)),g.a.createElement("li",{className:"".concat(Ae)},Ge,gt)}}]),Ue}(g.a.Component);h.defaultProps={pageSizeOptions:["10","20","50","100"]};var p=h,m=d("N2Kk");function v(){}function y(xe){return typeof xe=="number"&&isFinite(xe)&&Math.floor(xe)===xe}function E(xe,_e,Ue){return Ue}function T(xe,_e,Ue){var fe=typeof xe=="undefined"?_e.pageSize:xe;return Math.floor((Ue.total-1)/fe)+1}var b=function(xe){Object(n.a)(Ue,xe);var _e=Object(e.a)(Ue);function Ue(fe){var ke;Object(r.a)(this,Ue),ke=_e.call(this,fe),ke.getJumpPrevPage=function(){return Math.max(1,ke.state.current-(ke.props.showLessItems?3:5))},ke.getJumpNextPage=function(){return Math.min(T(void 0,ke.state,ke.props),ke.state.current+(ke.props.showLessItems?3:5))},ke.getItemIcon=function(Q,G){var Y=ke.props.prefixCls,me=Q||g.a.createElement("button",{type:"button","aria-label":G,className:"".concat(Y,"-item-link")});return typeof Q=="function"&&(me=g.a.createElement(Q,Object(o.a)({},ke.props))),me},ke.savePaginationNode=function(Q){ke.paginationNode=Q},ke.isValid=function(Q){return y(Q)&&Q!==ke.state.current},ke.shouldDisplayQuickJumper=function(){var Q=ke.props,G=Q.showQuickJumper,Y=Q.pageSize,me=Q.total;return me<=Y?!1:G},ke.handleKeyDown=function(Q){(Q.keyCode===u.ARROW_UP||Q.keyCode===u.ARROW_DOWN)&&Q.preventDefault()},ke.handleKeyUp=function(Q){var G=ke.getValidValue(Q),Y=ke.state.currentInputValue;G!==Y&&ke.setState({currentInputValue:G}),Q.keyCode===u.ENTER?ke.handleChange(G):Q.keyCode===u.ARROW_UP?ke.handleChange(G-1):Q.keyCode===u.ARROW_DOWN&&ke.handleChange(G+1)},ke.changePageSize=function(Q){var G=ke.state.current,Y=T(Q,ke.state,ke.props);G=G>Y?Y:G,Y===0&&(G=ke.state.current),typeof Q=="number"&&("pageSize"in ke.props||ke.setState({pageSize:Q}),"current"in ke.props||ke.setState({current:G,currentInputValue:G})),ke.props.onShowSizeChange(G,Q),"onChange"in ke.props&&ke.props.onChange&&ke.props.onChange(G,Q)},ke.handleChange=function(Q){var G=ke.props.disabled,Y=Q;if(ke.isValid(Y)&&!G){var me=T(void 0,ke.state,ke.props);Y>me?Y=me:Y<1&&(Y=1),"current"in ke.props||ke.setState({current:Y,currentInputValue:Y});var ue=ke.state.pageSize;return ke.props.onChange(Y,ue),Y}return ke.state.current},ke.prev=function(){ke.hasPrev()&&ke.handleChange(ke.state.current-1)},ke.next=function(){ke.hasNext()&&ke.handleChange(ke.state.current+1)},ke.jumpPrev=function(){ke.handleChange(ke.getJumpPrevPage())},ke.jumpNext=function(){ke.handleChange(ke.getJumpNextPage())},ke.hasPrev=function(){return ke.state.current>1},ke.hasNext=function(){return ke.state.current<T(void 0,ke.state,ke.props)},ke.runIfEnter=function(Q,G){if(Q.key==="Enter"||Q.charCode===13){for(var Y=arguments.length,me=new Array(Y>2?Y-2:0),ue=2;ue<Y;ue++)me[ue-2]=arguments[ue];G.apply(void 0,me)}},ke.runIfEnterPrev=function(Q){ke.runIfEnter(Q,ke.prev)},ke.runIfEnterNext=function(Q){ke.runIfEnter(Q,ke.next)},ke.runIfEnterJumpPrev=function(Q){ke.runIfEnter(Q,ke.jumpPrev)},ke.runIfEnterJumpNext=function(Q){ke.runIfEnter(Q,ke.jumpNext)},ke.handleGoTO=function(Q){(Q.keyCode===u.ENTER||Q.type==="click")&&ke.handleChange(ke.state.currentInputValue)};var se=fe.onChange!==v,te="current"in fe;te&&!se&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Ve=fe.defaultCurrent;"current"in fe&&(Ve=fe.current);var ae=fe.defaultPageSize;return"pageSize"in fe&&(ae=fe.pageSize),Ve=Math.min(Ve,T(ae,void 0,fe)),ke.state={current:Ve,currentInputValue:Ve,pageSize:ae},ke}return Object(i.a)(Ue,[{key:"componentDidUpdate",value:function(ke,se){var te=this.props.prefixCls;if(se.current!==this.state.current&&this.paginationNode){var Ve=this.paginationNode.querySelector(".".concat(te,"-item-").concat(se.current));Ve&&document.activeElement===Ve&&Ve.blur()}}},{key:"getValidValue",value:function(ke){var se=ke.target.value,te=T(void 0,this.state,this.props),Ve=this.state.currentInputValue,ae;return se===""?ae=se:isNaN(Number(se))?ae=Ve:se>=te?ae=te:ae=Number(se),ae}},{key:"getShowSizeChanger",value:function(){var ke=this.props,se=ke.showSizeChanger,te=ke.total,Ve=ke.totalBoundaryShowSizeChanger;return typeof se!="undefined"?se:te>Ve}},{key:"renderPrev",value:function(ke){var se=this.props,te=se.prevIcon,Ve=se.itemRender,ae=Ve(ke,"prev",this.getItemIcon(te,"prev page")),Q=!this.hasPrev();return Object(S.isValidElement)(ae)?Object(S.cloneElement)(ae,{disabled:Q}):ae}},{key:"renderNext",value:function(ke){var se=this.props,te=se.nextIcon,Ve=se.itemRender,ae=Ve(ke,"next",this.getItemIcon(te,"next page")),Q=!this.hasNext();return Object(S.isValidElement)(ae)?Object(S.cloneElement)(ae,{disabled:Q}):ae}},{key:"render",value:function(){var ke=this,se=this.props,te=se.prefixCls,Ve=se.className,ae=se.style,Q=se.disabled,G=se.hideOnSinglePage,Y=se.total,me=se.locale,ue=se.showQuickJumper,Ce=se.showLessItems,Ie=se.showTitle,ce=se.showTotal,Ae=se.simple,Te=se.itemRender,Ge=se.showPrevNextJumpers,gt=se.jumpPrevIcon,qe=se.jumpNextIcon,Le=se.selectComponentClass,Ot=se.selectPrefixCls,$e=se.pageSizeOptions,xt=this.state,Ht=xt.current,tr=xt.pageSize,Mt=xt.currentInputValue;if(G===!0&&Y<=tr)return null;var Tt=T(void 0,this.state,this.props),Xe=[],oe=null,X=null,Be=null,Ee=null,ee=null,lt=ue&&ue.goButton,Ct=Ce?1:2,dt=Ht-1>0?Ht-1:0,_t=Ht+1<Tt?Ht+1:Tt,ir=Object.keys(this.props).reduce(function(Rn,kt){return(kt.substr(0,5)==="data-"||kt.substr(0,5)==="aria-"||kt==="role")&&(Rn[kt]=ke.props[kt]),Rn},{});if(Ae)return lt&&(typeof lt=="boolean"?ee=g.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},me.jump_to_confirm):ee=g.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},lt),ee=g.a.createElement("li",{title:Ie?"".concat(me.jump_to).concat(Ht,"/").concat(Tt):null,className:"".concat(te,"-simple-pager")},ee)),g.a.createElement("ul",Object(f.a)({className:t()(te,"".concat(te,"-simple"),Object(c.a)({},"".concat(te,"-disabled"),Q),Ve),style:ae,ref:this.savePaginationNode},ir),g.a.createElement("li",{title:Ie?me.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:t()("".concat(te,"-prev"),Object(c.a)({},"".concat(te,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(dt)),g.a.createElement("li",{title:Ie?"".concat(Ht,"/").concat(Tt):null,className:"".concat(te,"-simple-pager")},g.a.createElement("input",{type:"text",value:Mt,disabled:Q,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),g.a.createElement("span",{className:"".concat(te,"-slash")},"/"),Tt),g.a.createElement("li",{title:Ie?me.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:t()("".concat(te,"-next"),Object(c.a)({},"".concat(te,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(_t)),ee);if(Tt<=3+Ct*2){var $r={locale:me,rootPrefixCls:te,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ie,itemRender:Te};Tt||Xe.push(g.a.createElement(s,Object(f.a)({},$r,{key:"noPager",page:Tt,className:"".concat(te,"-disabled")})));for(var nr=1;nr<=Tt;nr+=1){var lr=Ht===nr;Xe.push(g.a.createElement(s,Object(f.a)({},$r,{key:nr,page:nr,active:lr})))}}else{var zt=Ce?me.prev_3:me.prev_5,Ut=Ce?me.next_3:me.next_5;Ge&&(oe=g.a.createElement("li",{title:Ie?zt:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:t()("".concat(te,"-jump-prev"),Object(c.a)({},"".concat(te,"-jump-prev-custom-icon"),!!gt))},Te(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(gt,"prev page"))),X=g.a.createElement("li",{title:Ie?Ut:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:t()("".concat(te,"-jump-next"),Object(c.a)({},"".concat(te,"-jump-next-custom-icon"),!!qe))},Te(this.getJumpNextPage(),"jump-next",this.getItemIcon(qe,"next page")))),Ee=g.a.createElement(s,{locale:me,last:!0,rootPrefixCls:te,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Tt,page:Tt,active:!1,showTitle:Ie,itemRender:Te}),Be=g.a.createElement(s,{locale:me,rootPrefixCls:te,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ie,itemRender:Te});var st=Math.max(1,Ht-Ct),Hr=Math.min(Ht+Ct,Tt);Ht-1<=Ct&&(Hr=1+Ct*2),Tt-Ht<=Ct&&(st=Tt-Ct*2);for(var mn=st;mn<=Hr;mn+=1){var In=Ht===mn;Xe.push(g.a.createElement(s,{locale:me,rootPrefixCls:te,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:mn,page:mn,active:In,showTitle:Ie,itemRender:Te}))}Ht-1>=Ct*2&&Ht!==1+2&&(Xe[0]=Object(S.cloneElement)(Xe[0],{className:"".concat(te,"-item-after-jump-prev")}),Xe.unshift(oe)),Tt-Ht>=Ct*2&&Ht!==Tt-2&&(Xe[Xe.length-1]=Object(S.cloneElement)(Xe[Xe.length-1],{className:"".concat(te,"-item-before-jump-next")}),Xe.push(X)),st!==1&&Xe.unshift(Be),Hr!==Tt&&Xe.push(Ee)}var Yn=null;ce&&(Yn=g.a.createElement("li",{className:"".concat(te,"-total-text")},ce(Y,[Y===0?0:(Ht-1)*tr+1,Ht*tr>Y?Y:Ht*tr])));var Mi=!this.hasPrev()||!Tt,wn=!this.hasNext()||!Tt;return g.a.createElement("ul",Object(f.a)({className:t()(te,Ve,Object(c.a)({},"".concat(te,"-disabled"),Q)),style:ae,unselectable:"unselectable",ref:this.savePaginationNode},ir),Yn,g.a.createElement("li",{title:Ie?me.prev_page:null,onClick:this.prev,tabIndex:Mi?null:0,onKeyPress:this.runIfEnterPrev,className:t()("".concat(te,"-prev"),Object(c.a)({},"".concat(te,"-disabled"),Mi)),"aria-disabled":Mi},this.renderPrev(dt)),Xe,g.a.createElement("li",{title:Ie?me.next_page:null,onClick:this.next,tabIndex:wn?null:0,onKeyPress:this.runIfEnterNext,className:t()("".concat(te,"-next"),Object(c.a)({},"".concat(te,"-disabled"),wn)),"aria-disabled":wn},this.renderNext(_t)),g.a.createElement(p,{disabled:Q,locale:me,rootPrefixCls:te,selectComponentClass:Le,selectPrefixCls:Ot,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ht,pageSize:tr,pageSizeOptions:$e,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:lt}))}}],[{key:"getDerivedStateFromProps",value:function(ke,se){var te={};if("current"in ke&&(te.current=ke.current,ke.current!==se.current&&(te.currentInputValue=te.current)),"pageSize"in ke&&ke.pageSize!==se.pageSize){var Ve=se.current,ae=T(ke.pageSize,se,ke);Ve=Ve>ae?ae:Ve,"current"in ke||(te.current=Ve,te.currentInputValue=Ve),te.pageSize=ke.pageSize}return te}}]),Ue}(g.a.Component);b.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:v,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:v,locale:m.a,style:{},itemRender:E,totalBoundaryShowSizeChanger:50};var w=b,_=d("H4fg"),I=d("DFhj"),L=d.n(I),N=d("fEPi"),D=d.n(N),R=d("u9fO"),k=d.n(R),M=d("mO/d"),U=d.n(M),B=d("2fM7"),j=function(_e){return S.createElement(B.a,A()({size:"small"},_e))};j.Option=B.a.Option;var W=j,V=d("YMnH"),z=d("H84U"),J=d("5OYt"),Z=function(xe,_e){var Ue={};for(var fe in xe)Object.prototype.hasOwnProperty.call(xe,fe)&&_e.indexOf(fe)<0&&(Ue[fe]=xe[fe]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,fe=Object.getOwnPropertySymbols(xe);ke<fe.length;ke++)_e.indexOf(fe[ke])<0&&Object.prototype.propertyIsEnumerable.call(xe,fe[ke])&&(Ue[fe[ke]]=xe[fe[ke]]);return Ue},de=function(_e){var Ue=_e.prefixCls,fe=_e.selectPrefixCls,ke=_e.className,se=_e.size,te=_e.locale,Ve=Z(_e,["prefixCls","selectPrefixCls","className","size","locale"]),ae=Object(J.a)(),Q=ae.xs,G=S.useContext(z.b),Y=G.getPrefixCls,me=G.direction,ue=Y("pagination",Ue),Ce=function(){var Ae=S.createElement("span",{className:"".concat(ue,"-item-ellipsis")},"\u2022\u2022\u2022"),Te=S.createElement("button",{className:"".concat(ue,"-item-link"),type:"button",tabIndex:-1},S.createElement(L.a,null)),Ge=S.createElement("button",{className:"".concat(ue,"-item-link"),type:"button",tabIndex:-1},S.createElement(D.a,null)),gt=S.createElement("a",{className:"".concat(ue,"-item-link")},S.createElement("div",{className:"".concat(ue,"-item-container")},S.createElement(k.a,{className:"".concat(ue,"-item-link-icon")}),Ae)),qe=S.createElement("a",{className:"".concat(ue,"-item-link")},S.createElement("div",{className:"".concat(ue,"-item-container")},S.createElement(U.a,{className:"".concat(ue,"-item-link-icon")}),Ae));if(me==="rtl"){var Le=[Ge,Te];Te=Le[0],Ge=Le[1];var Ot=[qe,gt];gt=Ot[0],qe=Ot[1]}return{prevIcon:Te,nextIcon:Ge,jumpPrevIcon:gt,jumpNextIcon:qe}},Ie=function(Ae){var Te=A()(A()({},Ae),te),Ge=se==="small"||!!(Q&&!se&&Ve.responsive),gt=Y("select",fe),qe=t()(ke,x()({mini:Ge},"".concat(ue,"-rtl"),me==="rtl"));return S.createElement(w,A()({},Ve,{prefixCls:ue,selectPrefixCls:gt},Ce(),{className:qe,selectComponentClass:Ge?W:B.a,locale:Te}))};return S.createElement(V.a,{componentName:"Pagination",defaultLocale:_.a},Ie)},ie=de,ve=F.a=ie},NohK:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=function(C){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,S=null;return function(){for(var g=this,f=arguments.length,c=new Array(f),o=0;o<f;o++)c[o]=arguments[o];clearTimeout(S),S=setTimeout(function(){C.apply(g,c)},A)}};F.default=O},Nu4q:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={icon:function(C,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:C}},{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:C}}]}},name:"picture",theme:"twotone"};F.default=O},"O/iA":function(H,F,d){},O3gP:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("O/iA"),A=d.n(C),S=d("OaEy")},OELB:function(H,F,d){var O=d("bYtY"),x=1e-4;function C(y){return y.replace(/^\s+|\s+$/g,"")}function A(y,E,T,b){var w=E[1]-E[0],_=T[1]-T[0];if(w===0)return _===0?T[0]:(T[0]+T[1])/2;if(b)if(w>0){if(y<=E[0])return T[0];if(y>=E[1])return T[1]}else{if(y>=E[0])return T[0];if(y<=E[1])return T[1]}else{if(y===E[0])return T[0];if(y===E[1])return T[1]}return(y-E[0])/w*_+T[0]}function S(y,E){switch(y){case"center":case"middle":y="50%";break;case"left":case"top":y="0%";break;case"right":case"bottom":y="100%";break}return typeof y=="string"?C(y).match(/%$/)?parseFloat(y)/100*E:parseFloat(y):y==null?NaN:+y}function g(y,E,T){return E==null&&(E=10),E=Math.min(Math.max(0,E),20),y=(+y).toFixed(E),T?y:+y}function f(y){return y.sort(function(E,T){return E-T}),y}function c(y){if(y=+y,isNaN(y))return 0;for(var E=1,T=0;Math.round(y*E)/E!==y;)E*=10,T++;return T}function o(y){var E=y.toString(),T=E.indexOf("e");if(T>0){var b=+E.slice(T+1);return b<0?-b:0}else{var w=E.indexOf(".");return w<0?0:E.length-1-w}}function r(y,E){var T=Math.log,b=Math.LN10,w=Math.floor(T(y[1]-y[0])/b),_=Math.round(T(Math.abs(E[1]-E[0]))/b),I=Math.min(Math.max(-w+_,0),20);return isFinite(I)?I:20}function i(y,E,T){if(!y[E])return 0;var b=O.reduce(y,function(B,j){return B+(isNaN(j)?0:j)},0);if(b===0)return 0;for(var w=Math.pow(10,T),_=O.map(y,function(B){return(isNaN(B)?0:B)/b*w*100}),I=w*100,L=O.map(_,function(B){return Math.floor(B)}),N=O.reduce(L,function(B,j){return B+j},0),D=O.map(_,function(B,j){return B-L[j]});N<I;){for(var R=Number.NEGATIVE_INFINITY,k=null,M=0,U=D.length;M<U;++M)D[M]>R&&(R=D[M],k=M);++L[k],D[k]=0,++N}return L[E]/w}var n=9007199254740991;function e(y){var E=Math.PI*2;return(y%E+E)%E}function l(y){return y>-x&&y<x}var t=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function a(y){if(y instanceof Date)return y;if(typeof y=="string"){var E=t.exec(y);if(!E)return new Date(NaN);if(E[8]){var T=+E[4]||0;return E[8].toUpperCase()!=="Z"&&(T-=E[8].slice(0,3)),new Date(Date.UTC(+E[1],+(E[2]||1)-1,+E[3]||1,T,+(E[5]||0),+E[6]||0,+E[7]||0))}else return new Date(+E[1],+(E[2]||1)-1,+E[3]||1,+E[4]||0,+(E[5]||0),+E[6]||0,+E[7]||0)}else if(y==null)return new Date(NaN);return new Date(Math.round(y))}function s(y){return Math.pow(10,u(y))}function u(y){if(y===0)return 0;var E=Math.floor(Math.log(y)/Math.LN10);return y/Math.pow(10,E)>=10&&E++,E}function h(y,E){var T=u(y),b=Math.pow(10,T),w=y/b,_;return E?w<1.5?_=1:w<2.5?_=2:w<4?_=3:w<7?_=5:_=10:w<1?_=1:w<2?_=2:w<3?_=3:w<5?_=5:_=10,y=_*b,T>=-20?+y.toFixed(T<0?-T:0):y}function p(y,E){var T=(y.length-1)*E+1,b=Math.floor(T),w=+y[b-1],_=T-b;return _?w+_*(y[b]-w):w}function m(y){y.sort(function(N,D){return L(N,D,0)?-1:1});for(var E=-Infinity,T=1,b=0;b<y.length;){for(var w=y[b].interval,_=y[b].close,I=0;I<2;I++)w[I]<=E&&(w[I]=E,_[I]=I?1:1-T),E=w[I],T=_[I];w[0]===w[1]&&_[0]*_[1]!==1?y.splice(b,1):b++}return y;function L(N,D,R){return N.interval[R]<D.interval[R]||N.interval[R]===D.interval[R]&&(N.close[R]-D.close[R]===(R?-1:1)||!R&&L(N,D,1))}}function v(y){return y-parseFloat(y)>=0}F.linearMap=A,F.parsePercent=S,F.round=g,F.asc=f,F.getPrecision=c,F.getPrecisionSafe=o,F.getPixelPrecision=r,F.getPercentWithPrecision=i,F.MAX_SAFE_INTEGER=n,F.remRadian=e,F.isRadianAroundZero=l,F.parseDate=a,F.quantity=s,F.quantityExponent=u,F.nice=h,F.quantile=p,F.reformIntervals=m,F.isNumeric=v},OKJ2:function(H,F,d){var O=d("KxfA"),x=O.retrieveRawValue,C=d("7aKB"),A=C.getTooltipMarker,S=C.formatTpl,g=d("4NO4"),f=g.getTooltipRenderMode,c=/\{@(.+?)\}/g,o={getDataParams:function(r,i){var n=this.getData(i),e=this.getRawValue(r,i),l=n.getRawIndex(r),t=n.getName(r),a=n.getRawDataItem(r),s=n.getItemVisual(r,"color"),u=n.getItemVisual(r,"borderColor"),h=this.ecModel.getComponent("tooltip"),p=h&&h.get("renderMode"),m=f(p),v=this.mainType,y=v==="series",E=n.userOutput;return{componentType:v,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:y?this.subType:null,seriesIndex:this.seriesIndex,seriesId:y?this.id:null,seriesName:y?this.name:null,name:t,dataIndex:l,data:a,dataType:i,value:e,color:s,borderColor:u,dimensionNames:E?E.dimensionNames:null,encode:E?E.encode:null,marker:A({color:s,renderMode:m}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(r,i,n,e,l){i=i||"normal";var t=this.getData(n),a=t.getItemModel(r),s=this.getDataParams(r,n);e!=null&&s.value instanceof Array&&(s.value=s.value[e]);var u=a.get(i==="normal"?[l||"label","formatter"]:[i,l||"label","formatter"]);if(typeof u=="function")return s.status=i,s.dimensionIndex=e,u(s);if(typeof u=="string"){var h=S(u,s);return h.replace(c,function(p,m){var v=m.length;return m.charAt(0)==="["&&m.charAt(v-1)==="]"&&(m=+m.slice(1,v-1)),x(t,r,m)})}},getRawValue:function(r,i){return x(this.getData(i),r)},formatTooltip:function(){}};H.exports=o},OLod:function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("K3mO"))})(this,function(O){O.lib.Cipher||function(x){var C=O,A=C.lib,S=A.Base,g=A.WordArray,f=A.BufferedBlockAlgorithm,c=C.enc,o=c.Utf8,r=c.Base64,i=C.algo,n=i.EvpKDF,e=A.Cipher=f.extend({cfg:S.extend(),createEncryptor:function(I,L){return this.create(this._ENC_XFORM_MODE,I,L)},createDecryptor:function(I,L){return this.create(this._DEC_XFORM_MODE,I,L)},init:function(I,L,N){this.cfg=this.cfg.extend(N),this._xformMode=I,this._key=L,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(I){return this._append(I),this._process()},finalize:function(I){I&&this._append(I);var L=this._doFinalize();return L},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function _(I){return typeof I=="string"?w:E}return function(I){return{encrypt:function(N,D,R){return _(D).encrypt(I,N,D,R)},decrypt:function(N,D,R){return _(D).decrypt(I,N,D,R)}}}}()}),l=A.StreamCipher=e.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1}),t=C.mode={},a=A.BlockCipherMode=S.extend({createEncryptor:function(I,L){return this.Encryptor.create(I,L)},createDecryptor:function(I,L){return this.Decryptor.create(I,L)},init:function(I,L){this._cipher=I,this._iv=L}}),s=t.CBC=function(){var _=a.extend();_.Encryptor=_.extend({processBlock:function(N,D){var R=this._cipher,k=R.blockSize;I.call(this,N,D,k),R.encryptBlock(N,D),this._prevBlock=N.slice(D,D+k)}}),_.Decryptor=_.extend({processBlock:function(N,D){var R=this._cipher,k=R.blockSize,M=N.slice(D,D+k);R.decryptBlock(N,D),I.call(this,N,D,k),this._prevBlock=M}});function I(L,N,D){var R,k=this._iv;k?(R=k,this._iv=x):R=this._prevBlock;for(var M=0;M<D;M++)L[N+M]^=R[M]}return _}(),u=C.pad={},h=u.Pkcs7={pad:function(I,L){for(var N=L*4,D=N-I.sigBytes%N,R=D<<24|D<<16|D<<8|D,k=[],M=0;M<D;M+=4)k.push(R);var U=g.create(k,D);I.concat(U)},unpad:function(I){var L=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=L}},p=A.BlockCipher=e.extend({cfg:e.cfg.extend({mode:s,padding:h}),reset:function(){var I;e.reset.call(this);var L=this.cfg,N=L.iv,D=L.mode;this._xformMode==this._ENC_XFORM_MODE?I=D.createEncryptor:(I=D.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,N&&N.words):(this._mode=I.call(D,this,N&&N.words),this._mode.__creator=I)},_doProcessBlock:function(I,L){this._mode.processBlock(I,L)},_doFinalize:function(){var I,L=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(L.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),L.unpad(I)),I},blockSize:128/32}),m=A.CipherParams=S.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),v=C.format={},y=v.OpenSSL={stringify:function(I){var L,N=I.ciphertext,D=I.salt;return D?L=g.create([1398893684,1701076831]).concat(D).concat(N):L=N,L.toString(r)},parse:function(I){var L,N=r.parse(I),D=N.words;return D[0]==1398893684&&D[1]==1701076831&&(L=g.create(D.slice(2,4)),D.splice(0,4),N.sigBytes-=16),m.create({ciphertext:N,salt:L})}},E=A.SerializableCipher=S.extend({cfg:S.extend({format:y}),encrypt:function(I,L,N,D){D=this.cfg.extend(D);var R=I.createEncryptor(N,D),k=R.finalize(L),M=R.cfg;return m.create({ciphertext:k,key:N,iv:M.iv,algorithm:I,mode:M.mode,padding:M.padding,blockSize:I.blockSize,formatter:D.format})},decrypt:function(I,L,N,D){D=this.cfg.extend(D),L=this._parse(L,D.format);var R=I.createDecryptor(N,D).finalize(L.ciphertext);return R},_parse:function(I,L){return typeof I=="string"?L.parse(I,this):I}}),T=C.kdf={},b=T.OpenSSL={execute:function(I,L,N,D){D||(D=g.random(64/8));var R=n.create({keySize:L+N}).compute(I,D),k=g.create(R.words.slice(L),N*4);return R.sigBytes=L*4,m.create({key:R,iv:k,salt:D})}},w=A.PasswordBasedCipher=E.extend({cfg:E.cfg.extend({kdf:b}),encrypt:function(I,L,N,D){D=this.cfg.extend(D);var R=D.kdf.execute(N,I.keySize,I.ivSize);D.iv=R.iv;var k=E.encrypt.call(this,I,L,R.key,D);return k.mixIn(R),k},decrypt:function(I,L,N,D){D=this.cfg.extend(D),L=this._parse(L,D.format);var R=D.kdf.execute(N,I.keySize,I.ivSize,L.salt);D.iv=R.iv;var k=E.decrypt.call(this,I,L,R.key,D);return k}})}()})},OPEp:function(H,F,d){},OQFs:function(H,F,d){var O=d("KCsZ"),x=O([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),C={getLineStyle:function(A){var S=x(this,A);return S.lineDash=this.getLineDash(S.lineWidth),S},getLineDash:function(A){A==null&&(A=1);var S=this.get("type"),g=Math.max(A,2),f=A*4;return S==="solid"||S==null?!1:S==="dashed"?[f,f]:[g,g]}};H.exports=C},OS9S:function(H,F,d){var O=d("bYtY"),x=O.inherits,C=d("Gev7"),A=d("mFDi");function S(c){C.call(this,c),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}S.prototype.incremental=!0,S.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},S.prototype.addDisplayable=function(c,o){o?this._temporaryDisplayables.push(c):this._displayables.push(c),this.dirty()},S.prototype.addDisplayables=function(c,o){o=o||!1;for(var r=0;r<c.length;r++)this.addDisplayable(c[r],o)},S.prototype.eachPendingDisplayable=function(c){for(var o=this._cursor;o<this._displayables.length;o++)c&&c(this._displayables[o]);for(var o=0;o<this._temporaryDisplayables.length;o++)c&&c(this._temporaryDisplayables[o])},S.prototype.update=function(){this.updateTransform();for(var c=this._cursor;c<this._displayables.length;c++){var o=this._displayables[c];o.parent=this,o.update(),o.parent=null}for(var c=0;c<this._temporaryDisplayables.length;c++){var o=this._temporaryDisplayables[c];o.parent=this,o.update(),o.parent=null}},S.prototype.brush=function(c,o){for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.beforeBrush&&i.beforeBrush(c),i.brush(c,r===this._cursor?null:this._displayables[r-1]),i.afterBrush&&i.afterBrush(c)}this._cursor=r;for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.beforeBrush&&i.beforeBrush(c),i.brush(c,r===0?null:this._temporaryDisplayables[r-1]),i.afterBrush&&i.afterBrush(c)}this._temporaryDisplayables=[],this.notClear=!0};var g=[];S.prototype.getBoundingRect=function(){if(!this._rect){for(var c=new A(Infinity,Infinity,-Infinity,-Infinity),o=0;o<this._displayables.length;o++){var r=this._displayables[o],i=r.getBoundingRect().clone();r.needLocalTransform()&&i.applyTransform(r.getLocalTransform(g)),c.union(i)}this._rect=c}return this._rect},S.prototype.contain=function(c,o){var r=this.transformCoordToLocal(c,o),i=this.getBoundingRect();if(i.contain(r[0],r[1]))for(var n=0;n<this._displayables.length;n++){var e=this._displayables[n];if(e.contain(c,o))return!0}return!1},x(S,C);var f=S;H.exports=f},OUJF:function(H,F,d){var O=d("ProS"),x=d("bYtY");O.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(C,A){var S=A.getComponent("timeline");return S&&C.currentIndex!=null&&(S.setCurrentIndex(C.currentIndex),!S.get("loop",!0)&&S.isIndexMax()&&S.setPlayState(!1)),A.resetOption("timeline"),x.defaults({currentIndex:S.option.currentIndex},C)}),O.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(C,A){var S=A.getComponent("timeline");S&&C.playState!=null&&S.setPlayState(C.playState)})},OXB0:function(H,F,d){var O=d("T4UG"),x=d("MwEJ"),C=d("IDmD"),A=O.extend({type:"series.heatmap",getInitialData:function(S,g){return x(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var S=C.get(this.get("coordinateSystem"));if(S&&S.dimensions)return S.dimensions[0]==="lng"&&S.dimensions[1]==="lat"},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});H.exports=A},OaEy:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("bKJz"),A=d.n(C),S=d("R9oj")},Ol7k:function(H,F,d){"use strict";var O=d("PKem"),x=d("ZX9x");O.b.Sider=x.b,F.a=O.b},OlYY:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("bYtY"),S=d("ItGF"),g=d("4NO4"),f=d("UOVi"),c=d("zDms"),o=A.each,r=f.eachAxisDim,i=C.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(t,a,s){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var u=n(t);this.settledOption=u,this.mergeDefaultAndTheme(t,s),this.doInit(u)},mergeOption:function(t){var a=n(t);A.merge(this.option,t,!0),A.merge(this.settledOption,a,!0),this.doInit(a)},doInit:function(t){var a=this.option;S.canvasSupported||(a.realtime=!1),this._setDefaultThrottle(t),e(this,t);var s=this.settledOption;o([["start","startValue"],["end","endValue"]],function(u,h){this._rangePropMode[h]==="value"&&(a[u[0]]=s[u[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(a,s,u,h){var p=this.dependentModels[a.axis][s],m=p.__dzAxisProxy||(p.__dzAxisProxy=new c(a.name,s,this,h));t[a.name+"_"+s]=m},this)},_resetTarget:function(){var t=this.option,a=this._judgeAutoMode();r(function(s){var u=s.axisIndex;t[u]=g.normalizeToArray(t[u])},this),a==="axisIndex"?this._autoSetAxisIndex():a==="orient"&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,a=!1;r(function(u){t[u.axisIndex]!=null&&(a=!0)},this);var s=t.orient;if(s==null&&a)return"orient";if(!a)return s==null&&(t.orient="horizontal"),"axisIndex"},_autoSetAxisIndex:function(){var t=!0,a=this.get("orient",!0),s=this.option,u=this.dependentModels;if(t){var h=a==="vertical"?"y":"x";u[h+"Axis"].length?(s[h+"AxisIndex"]=[0],t=!1):o(u.singleAxis,function(p){t&&p.get("orient",!0)===a&&(s.singleAxisIndex=[p.componentIndex],t=!1)})}t&&r(function(p){if(!t)return;var m=[],v=this.dependentModels[p.axis];if(v.length&&!m.length)for(var y=0,E=v.length;y<E;y++)v[y].get("type")==="category"&&m.push(y);s[p.axisIndex]=m,m.length&&(t=!1)},this),t&&this.ecModel.eachSeries(function(p){this._isSeriesHasAllAxesTypeOf(p,"value")&&r(function(m){var v=s[m.axisIndex],y=p.get(m.axisIndex),E=p.get(m.axisId),T=p.ecModel.queryComponents({mainType:m.axis,index:y,id:E})[0];y=T.componentIndex,A.indexOf(v,y)<0&&v.push(y)})},this)},_autoSetOrient:function(){var t;this.eachTargetAxis(function(a){!t&&(t=a.name)},this),this.option.orient=t==="y"?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(t,a){var s=!0;return r(function(u){var h=t.get(u.axisIndex),p=this.dependentModels[u.axis][h];(!p||p.get("type")!==a)&&(s=!1)},this),s},_setDefaultThrottle:function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var t;return r(function(a){if(t==null){var s=this.get(a.axisIndex);s.length&&(t=this.dependentModels[a.axis][s[0]])}},this),t},eachTargetAxis:function(t,a){var s=this.ecModel;r(function(u){o(this.get(u.axisIndex),function(h){t.call(a,u,h,this,s)},this)},this)},getAxisProxy:function(t,a){return this._axisProxies[t+"_"+a]},getAxisModel:function(t,a){var s=this.getAxisProxy(t,a);return s&&s.getAxisModel()},setRawRange:function(t){var a=this.option,s=this.settledOption;o([["start","startValue"],["end","endValue"]],function(u){(t[u[0]]!=null||t[u[1]]!=null)&&(a[u[0]]=s[u[0]]=t[u[0]],a[u[1]]=s[u[1]]=t[u[1]])},this),e(this,t)},setCalculatedRange:function(t){var a=this.option;o(["start","startValue","end","endValue"],function(s){a[s]=t[s]})},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,a){if(t==null&&a==null){var s=this.findRepresentativeAxisProxy();if(s)return s.getDataValueWindow()}else return this.getAxisProxy(t,a).getDataValueWindow()},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var a=this._axisProxies;for(var s in a)if(a.hasOwnProperty(s)&&a[s].hostedBy(this))return a[s];for(var s in a)if(a.hasOwnProperty(s)&&!a[s].hostedBy(this))return a[s]},getRangePropMode:function(){return this._rangePropMode.slice()}});function n(t){var a={};return o(["start","end","startValue","endValue","throttle"],function(s){t.hasOwnProperty(s)&&(a[s]=t[s])}),a}function e(t,a){var s=t._rangePropMode,u=t.get("rangeMode");o([["start","startValue"],["end","endValue"]],function(h,p){var m=a[h[0]]!=null,v=a[h[1]]!=null;m&&!v?s[p]="percent":!m&&v?s[p]="value":u?s[p]=u[p]:m&&(s[p]="percent")})}var l=i;H.exports=l},OnYD:function(H,F,d){},"Oy/b":function(H,F,d){(function(x,C){H.exports=C()})(typeof self!="undefined"?self:this,function(){return function(O){var x={};function C(A){if(x[A])return x[A].exports;var S=x[A]={i:A,l:!1,exports:{}};return O[A].call(S.exports,S,S.exports,C),S.l=!0,S.exports}return C.m=O,C.c=x,C.d=function(A,S,g){C.o(A,S)||Object.defineProperty(A,S,{enumerable:!0,get:g})},C.r=function(A){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},C.t=function(A,S){if(S&1&&(A=C(A)),S&8)return A;if(S&4&&typeof A=="object"&&A&&A.__esModule)return A;var g=Object.create(null);if(C.r(g),Object.defineProperty(g,"default",{enumerable:!0,value:A}),S&2&&typeof A!="string")for(var f in A)C.d(g,f,function(c){return A[c]}.bind(null,f));return g},C.n=function(A){var S=A&&A.__esModule?function(){return A.default}:function(){return A};return C.d(S,"a",S),S},C.o=function(A,S){return Object.prototype.hasOwnProperty.call(A,S)},C.p="",C(C.s=1)}([function(O,x,C){},function(O,x,C){"use strict";C.r(x);var A=C(0),S=function(){function ut(ne,pe,be){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=ne,this.start=pe,this.end=be}return ut.range=function(pe,be){return be?!pe||!pe.loc||!be.loc||pe.loc.lexer!==be.loc.lexer?null:new ut(pe.loc.lexer,pe.loc.start,be.loc.end):pe&&pe.loc},ut}(),g=function(){function ut(pe,be){this.text=void 0,this.loc=void 0,this.text=pe,this.loc=be}var ne=ut.prototype;return ne.range=function(be,je){return new ut(je,S.range(this,be))},ut}(),f=function ut(ne,pe){this.position=void 0;var be="KaTeX parse error: "+ne,je,ht=pe&&pe.loc;if(ht&&ht.start<=ht.end){var Vt=ht.lexer.input;je=ht.start;var Or=ht.end;je===Vt.length?be+=" at end of input: ":be+=" at position "+(je+1)+": ";var Yr=Vt.slice(je,Or).replace(/[^]/g,"$&\u0332"),cn;je>15?cn="\u2026"+Vt.slice(je-15,je):cn=Vt.slice(0,je);var jn;Or+15<Vt.length?jn=Vt.slice(Or,Or+15)+"\u2026":jn=Vt.slice(Or),be+=cn+Yr+jn}var ai=new Error(be);return ai.name="ParseError",ai.__proto__=ut.prototype,ai.position=je,ai};f.prototype.__proto__=Error.prototype;var c=f,o=function(ne,pe){return ne.indexOf(pe)!==-1},r=function(ne,pe){return ne===void 0?pe:ne},i=/([A-Z])/g,n=function(ne){return ne.replace(i,"-$1").toLowerCase()},e={"&":"&",">":">","<":"<",'"':""","'":"'"},l=/[&><"']/g;function t(ut){return String(ut).replace(l,function(ne){return e[ne]})}var a=function ut(ne){return ne.type==="ordgroup"||ne.type==="color"?ne.body.length===1?ut(ne.body[0]):ne:ne.type==="font"?ut(ne.body):ne},s=function(ne){var pe=a(ne);return pe.type==="mathord"||pe.type==="textord"||pe.type==="atom"},u=function(ne){if(!ne)throw new Error("Expected non-null, but got "+String(ne));return ne},h=function(ne){var pe=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(ne);return pe!=null?pe[1]:"_relative"},p={contains:o,deflt:r,escape:t,hyphenate:n,getBaseElem:a,isCharacterBox:s,protocolFromUrl:h},m=function(){function ut(pe){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,pe=pe||{},this.displayMode=p.deflt(pe.displayMode,!1),this.output=p.deflt(pe.output,"htmlAndMathml"),this.leqno=p.deflt(pe.leqno,!1),this.fleqn=p.deflt(pe.fleqn,!1),this.throwOnError=p.deflt(pe.throwOnError,!0),this.errorColor=p.deflt(pe.errorColor,"#cc0000"),this.macros=pe.macros||{},this.minRuleThickness=Math.max(0,p.deflt(pe.minRuleThickness,0)),this.colorIsTextColor=p.deflt(pe.colorIsTextColor,!1),this.strict=p.deflt(pe.strict,"warn"),this.trust=p.deflt(pe.trust,!1),this.maxSize=Math.max(0,p.deflt(pe.maxSize,Infinity)),this.maxExpand=Math.max(0,p.deflt(pe.maxExpand,1e3))}var ne=ut.prototype;return ne.reportNonstrict=function(be,je,ht){var Vt=this.strict;if(typeof Vt=="function"&&(Vt=Vt(be,je,ht)),!Vt||Vt==="ignore")return;if(Vt===!0||Vt==="error")throw new c("LaTeX-incompatible input and strict mode is set to 'error': "+(je+" ["+be+"]"),ht);Vt==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(je+" ["+be+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Vt+"': "+je+" ["+be+"]"))},ne.useStrictBehavior=function(be,je,ht){var Vt=this.strict;if(typeof Vt=="function")try{Vt=Vt(be,je,ht)}catch(Or){Vt="error"}return!Vt||Vt==="ignore"?!1:Vt===!0||Vt==="error"?!0:Vt==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(je+" ["+be+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Vt+"': "+je+" ["+be+"]")),!1)},ne.isTrusted=function(be){be.url&&!be.protocol&&(be.protocol=p.protocolFromUrl(be.url));var je=typeof this.trust=="function"?this.trust(be):this.trust;return Boolean(je)},ut}(),v=function(){function ut(pe,be,je){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=pe,this.size=be,this.cramped=je}var ne=ut.prototype;return ne.sup=function(){return N[D[this.id]]},ne.sub=function(){return N[R[this.id]]},ne.fracNum=function(){return N[k[this.id]]},ne.fracDen=function(){return N[M[this.id]]},ne.cramp=function(){return N[U[this.id]]},ne.text=function(){return N[B[this.id]]},ne.isTight=function(){return this.size>=2},ut}(),y=0,E=1,T=2,b=3,w=4,_=5,I=6,L=7,N=[new v(y,0,!1),new v(E,0,!0),new v(T,1,!1),new v(b,1,!0),new v(w,2,!1),new v(_,2,!0),new v(I,3,!1),new v(L,3,!0)],D=[w,_,w,_,I,L,I,L],R=[_,_,_,_,L,L,L,L],k=[T,b,w,_,I,L,I,L],M=[b,b,_,_,L,L,L,L],U=[E,E,b,b,_,_,L,L],B=[y,E,T,b,T,b,T,b],j={DISPLAY:N[y],TEXT:N[T],SCRIPT:N[w],SCRIPTSCRIPT:N[I]},W=[{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 V(ut){for(var ne=0;ne<W.length;ne++)for(var pe=W[ne],be=0;be<pe.blocks.length;be++){var je=pe.blocks[be];if(ut>=je[0]&&ut<=je[1])return pe.name}return null}var z=[];W.forEach(function(ut){return ut.blocks.forEach(function(ne){return z.push.apply(z,ne)})});function J(ut){for(var ne=0;ne<z.length;ne+=2)if(ut>=z[ne]&&ut<=z[ne+1])return!0;return!1}var Z=80,de=function(ne,pe){return"M95,"+(622+ne+pe)+`
|
|
|
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`+ne/2.075+" -"+ne+`
|
|
|
c5.3,-9.3,12,-14,20,-14
|
|
|
H400000v`+(40+ne)+`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+ne)+" "+pe+"h400000v"+(40+ne)+"h-400000z"},ie=function(ne,pe){return"M263,"+(601+ne+pe)+`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`+ne/2.084+" -"+ne+`
|
|
|
c4.7,-7.3,11,-11,19,-11
|
|
|
H40000v`+(40+ne)+`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+ne)+" "+pe+"h400000v"+(40+ne)+"h-400000z"},ve=function(ne,pe){return"M983 "+(10+ne+pe)+`
|
|
|
l`+ne/3.13+" -"+ne+`
|
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+ne)+`
|
|
|
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+ne)+" "+pe+"h400000v"+(40+ne)+"h-400000z"},xe=function(ne,pe){return"M424,"+(2398+ne+pe)+`
|
|
|
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`+ne/4.223+" -"+ne+`c4,-6.7,10,-10,18,-10 H400000
|
|
|
v`+(40+ne)+`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+ne)+" "+pe+`
|
|
|
h400000v`+(40+ne)+"h-400000z"},_e=function(ne,pe){return"M473,"+(2713+ne+pe)+`
|
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+ne/5.298+" -"+ne+`
|
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+ne)+`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+ne)+" "+pe+"h400000v"+(40+ne)+"H1017.7z"},Ue=function(ne,pe,be){var je=be-54-pe-ne;return"M702 "+(ne+pe)+"H400000"+(40+ne)+`
|
|
|
H742v`+je+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
219 661 l218 661zM702 `+pe+"H400000v"+(40+ne)+"H742z"},fe=function(ne,pe,be){pe=1e3*pe;var je="";switch(ne){case"sqrtMain":je=de(pe,Z);break;case"sqrtSize1":je=ie(pe,Z);break;case"sqrtSize2":je=ve(pe,Z);break;case"sqrtSize3":je=xe(pe,Z);break;case"sqrtSize4":je=_e(pe,Z);break;case"sqrtTall":je=Ue(pe,Z,be)}return je},ke={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`},se=function(){function ut(pe){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=pe,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var ne=ut.prototype;return ne.hasClass=function(be){return p.contains(this.classes,be)},ne.toNode=function(){for(var be=document.createDocumentFragment(),je=0;je<this.children.length;je++)be.appendChild(this.children[je].toNode());return be},ne.toMarkup=function(){for(var be="",je=0;je<this.children.length;je++)be+=this.children[je].toMarkup();return be},ne.toText=function(){var be=function(ht){return ht.toText()};return this.children.map(be).join("")},ut}(),te=function(ne){return ne.filter(function(pe){return pe}).join(" ")},Ve=function(ne,pe,be){if(this.classes=ne||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=be||{},pe){pe.style.isTight()&&this.classes.push("mtight");var je=pe.getColor();je&&(this.style.color=je)}},ae=function(ne){var pe=document.createElement(ne);pe.className=te(this.classes);for(var be in this.style)this.style.hasOwnProperty(be)&&(pe.style[be]=this.style[be]);for(var je in this.attributes)this.attributes.hasOwnProperty(je)&&pe.setAttribute(je,this.attributes[je]);for(var ht=0;ht<this.children.length;ht++)pe.appendChild(this.children[ht].toNode());return pe},Q=function(ne){var pe="<"+ne;this.classes.length&&(pe+=' class="'+p.escape(te(this.classes))+'"');var be="";for(var je in this.style)this.style.hasOwnProperty(je)&&(be+=p.hyphenate(je)+":"+this.style[je]+";");be&&(pe+=' style="'+p.escape(be)+'"');for(var ht in this.attributes)this.attributes.hasOwnProperty(ht)&&(pe+=" "+ht+'="'+p.escape(this.attributes[ht])+'"');pe+=">";for(var Vt=0;Vt<this.children.length;Vt++)pe+=this.children[Vt].toMarkup();return pe+="</"+ne+">",pe},G=function(){function ut(pe,be,je,ht){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,Ve.call(this,pe,je,ht),this.children=be||[]}var ne=ut.prototype;return ne.setAttribute=function(be,je){this.attributes[be]=je},ne.hasClass=function(be){return p.contains(this.classes,be)},ne.toNode=function(){return ae.call(this,"span")},ne.toMarkup=function(){return Q.call(this,"span")},ut}(),Y=function(){function ut(pe,be,je,ht){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,Ve.call(this,be,ht),this.children=je||[],this.setAttribute("href",pe)}var ne=ut.prototype;return ne.setAttribute=function(be,je){this.attributes[be]=je},ne.hasClass=function(be){return p.contains(this.classes,be)},ne.toNode=function(){return ae.call(this,"a")},ne.toMarkup=function(){return Q.call(this,"a")},ut}(),me=function(){function ut(pe,be,je){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=be,this.src=pe,this.classes=["mord"],this.style=je}var ne=ut.prototype;return ne.hasClass=function(be){return p.contains(this.classes,be)},ne.toNode=function(){var be=document.createElement("img");be.src=this.src,be.alt=this.alt,be.className="mord";for(var je in this.style)this.style.hasOwnProperty(je)&&(be.style[je]=this.style[je]);return be},ne.toMarkup=function(){var be="<img src='"+this.src+" 'alt='"+this.alt+"' ",je="";for(var ht in this.style)this.style.hasOwnProperty(ht)&&(je+=p.hyphenate(ht)+":"+this.style[ht]+";");return je&&(be+=' style="'+p.escape(je)+'"'),be+="'/>",be},ut}(),ue={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Ce=function(){function ut(pe,be,je,ht,Vt,Or,Yr,cn){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=pe,this.height=be||0,this.depth=je||0,this.italic=ht||0,this.skew=Vt||0,this.width=Or||0,this.classes=Yr||[],this.style=cn||{},this.maxFontSize=0;var jn=V(this.text.charCodeAt(0));jn&&this.classes.push(jn+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=ue[this.text])}var ne=ut.prototype;return ne.hasClass=function(be){return p.contains(this.classes,be)},ne.toNode=function(){var be=document.createTextNode(this.text),je=null;this.italic>0&&(je=document.createElement("span"),je.style.marginRight=this.italic+"em"),this.classes.length>0&&(je=je||document.createElement("span"),je.className=te(this.classes));for(var ht in this.style)this.style.hasOwnProperty(ht)&&(je=je||document.createElement("span"),je.style[ht]=this.style[ht]);return je?(je.appendChild(be),je):be},ne.toMarkup=function(){var be=!1,je="<span";this.classes.length&&(be=!0,je+=' class="',je+=p.escape(te(this.classes)),je+='"');var ht="";this.italic>0&&(ht+="margin-right:"+this.italic+"em;");for(var Vt in this.style)this.style.hasOwnProperty(Vt)&&(ht+=p.hyphenate(Vt)+":"+this.style[Vt]+";");ht&&(be=!0,je+=' style="'+p.escape(ht)+'"');var Or=p.escape(this.text);return be?(je+=">",je+=Or,je+="</span>",je):Or},ut}(),Ie=function(){function ut(pe,be){this.children=void 0,this.attributes=void 0,this.children=pe||[],this.attributes=be||{}}var ne=ut.prototype;return ne.toNode=function(){var be="http://www.w3.org/2000/svg",je=document.createElementNS(be,"svg");for(var ht in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,ht)&&je.setAttribute(ht,this.attributes[ht]);for(var Vt=0;Vt<this.children.length;Vt++)je.appendChild(this.children[Vt].toNode());return je},ne.toMarkup=function(){var be="<svg";for(var je in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,je)&&(be+=" "+je+"='"+this.attributes[je]+"'");be+=">";for(var ht=0;ht<this.children.length;ht++)be+=this.children[ht].toMarkup();return be+="</svg>",be},ut}(),ce=function(){function ut(pe,be){this.pathName=void 0,this.alternate=void 0,this.pathName=pe,this.alternate=be}var ne=ut.prototype;return ne.toNode=function(){var be="http://www.w3.org/2000/svg",je=document.createElementNS(be,"path");return this.alternate?je.setAttribute("d",this.alternate):je.setAttribute("d",ke[this.pathName]),je},ne.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+ke[this.pathName]+"'/>"},ut}(),Ae=function(){function ut(pe){this.attributes=void 0,this.attributes=pe||{}}var ne=ut.prototype;return ne.toNode=function(){var be="http://www.w3.org/2000/svg",je=document.createElementNS(be,"line");for(var ht in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,ht)&&je.setAttribute(ht,this.attributes[ht]);return je},ne.toMarkup=function(){var be="<line";for(var je in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,je)&&(be+=" "+je+"='"+this.attributes[je]+"'");return be+="/>",be},ut}();function Te(ut){if(ut instanceof Ce)return ut;throw new Error("Expected symbolNode but got "+String(ut)+".")}function Ge(ut){if(ut instanceof G)return ut;throw new Error("Expected span<HtmlDomNode> but got "+String(ut)+".")}var gt={"AMS-Regular":{"65":[0,.68889,0,0,.72222],"66":[0,.68889,0,0,.66667],"67":[0,.68889,0,0,.72222],"68":[0,.68889,0,0,.72222],"69":[0,.68889,0,0,.66667],"70":[0,.68889,0,0,.61111],"71":[0,.68889,0,0,.77778],"72":[0,.68889,0,0,.77778],"73":[0,.68889,0,0,.38889],"74":[.16667,.68889,0,0,.5],"75":[0,.68889,0,0,.77778],"76":[0,.68889,0,0,.66667],"77":[0,.68889,0,0,.94445],"78":[0,.68889,0,0,.72222],"79":[.16667,.68889,0,0,.77778],"80":[0,.68889,0,0,.61111],"81":[.16667,.68889,0,0,.77778],"82":[0,.68889,0,0,.72222],"83":[0,.68889,0,0,.55556],"84":[0,.68889,0,0,.66667],"85":[0,.68889,0,0,.72222],"86":[0,.68889,0,0,.72222],"87":[0,.68889,0,0,1],"88":[0,.68889,0,0,.72222],"89":[0,.68889,0,0,.72222],"90":[0,.68889,0,0,.66667],"107":[0,.68889,0,0,.55556],"165":[0,.675,.025,0,.75],"174":[.15559,.69224,0,0,.94666],"240":[0,.68889,0,0,.55556],"295":[0,.68889,0,0,.54028],"710":[0,.825,0,0,2.33334],"732":[0,.9,0,0,2.33334],"770":[0,.825,0,0,2.33334],"771":[0,.9,0,0,2.33334],"989":[.08167,.58167,0,0,.77778],"1008":[0,.43056,.04028,0,.66667],"8245":[0,.54986,0,0,.275],"8463":[0,.68889,0,0,.54028],"8487":[0,.68889,0,0,.72222],"8498":[0,.68889,0,0,.55556],"8502":[0,.68889,0,0,.66667],"8503":[0,.68889,0,0,.44445],"8504":[0,.68889,0,0,.66667],"8513":[0,.68889,0,0,.63889],"8592":[-.03598,.46402,0,0,.5],"8594":[-.03598,.46402,0,0,.5],"8602":[-.13313,.36687,0,0,1],"8603":[-.13313,.36687,0,0,1],"8606":[.01354,.52239,0,0,1],"8608":[.01354,.52239,0,0,1],"8610":[.01354,.52239,0,0,1.11111],"8611":[.01354,.52239,0,0,1.11111],"8619":[0,.54986,0,0,1],"8620":[0,.54986,0,0,1],"8621":[-.13313,.37788,0,0,1.38889],"8622":[-.13313,.36687,0,0,1],"8624":[0,.69224,0,0,.5],"8625":[0,.69224,0,0,.5],"8630":[0,.43056,0,0,1],"8631":[0,.43056,0,0,1],"8634":[.08198,.58198,0,0,.77778],"8635":[.08198,.58198,0,0,.77778],"8638":[.19444,.69224,0,0,.41667],"8639":[.19444,.69224,0,0,.41667],"8642":[.19444,.69224,0,0,.41667],"8643":[.19444,.69224,0,0,.41667],"8644":[.1808,.675,0,0,1],"8646":[.1808,.675,0,0,1],"8647":[.1808,.675,0,0,1],"8648":[.19444,.69224,0,0,.83334],"8649":[.1808,.675,0,0,1],"8650":[.19444,.69224,0,0,.83334],"8651":[.01354,.52239,0,0,1],"8652":[.01354,.52239,0,0,1],"8653":[-.13313,.36687,0,0,1],"8654":[-.13313,.36687,0,0,1],"8655":[-.13313,.36687,0,0,1],"8666":[.13667,.63667,0,0,1],"8667":[.13667,.63667,0,0,1],"8669":[-.13313,.37788,0,0,1],"8672":[-.064,.437,0,0,1.334],"8674":[-.064,.437,0,0,1.334],"8705":[0,.825,0,0,.5],"8708":[0,.68889,0,0,.55556],"8709":[.08167,.58167,0,0,.77778],"8717":[0,.43056,0,0,.42917],"8722":[-.03598,.46402,0,0,.5],"8724":[.08198,.69224,0,0,.77778],"8726":[.08167,.58167,0,0,.77778],"8733":[0,.69224,0,0,.77778],"8736":[0,.69224,0,0,.72222],"8737":[0,.69224,0,0,.72222],"8738":[.03517,.52239,0,0,.72222],"8739":[.08167,.58167,0,0,.22222],"8740":[.25142,.74111,0,0,.27778],"8741":[.08167,.58167,0,0,.38889],"8742":[.25142,.74111,0,0,.5],"8756":[0,.69224,0,0,.66667],"8757":[0,.69224,0,0,.66667],"8764":[-.13313,.36687,0,0,.77778],"8765":[-.13313,.37788,0,0,.77778],"8769":[-.13313,.36687,0,0,.77778],"8770":[-.03625,.46375,0,0,.77778],"8774":[.30274,.79383,0,0,.77778],"8776":[-.01688,.48312,0,0,.77778],"8778":[.08167,.58167,0,0,.77778],"8782":[.06062,.54986,0,0,.77778],"8783":[.06062,.54986,0,0,.77778],"8785":[.08198,.58198,0,0,.77778],"8786":[.08198,.58198,0,0,.77778],"8787":[.08198,.58198,0,0,.77778],"8790":[0,.69224,0,0,.77778],"8791":[.22958,.72958,0,0,.77778],"8796":[.08198,.91667,0,0,.77778],"8806":[.25583,.75583,0,0,.77778],"8807":[.25583,.75583,0,0,.77778],"8808":[.25142,.75726,0,0,.77778],"8809":[.25142,.75726,0,0,.77778],"8812":[.25583,.75583,0,0,.5],"8814":[.20576,.70576,0,0,.77778],"8815":[.20576,.70576,0,0,.77778],"8816":[.30274,.79383,0,0,.77778],"8817":[.30274,.79383,0,0,.77778],"8818":[.22958,.72958,0,0,.77778],"8819":[.22958,.72958,0,0,.77778],"8822":[.1808,.675,0,0,.77778],"8823":[.1808,.675,0,0,.77778],"8828":[.13667,.63667,0,0,.77778],"8829":[.13667,.63667,0,0,.77778],"8830":[.22958,.72958,0,0,.77778],"8831":[.22958,.72958,0,0,.77778],"8832":[.20576,.70576,0,0,.77778],"8833":[.20576,.70576,0,0,.77778],"8840":[.30274,.79383,0,0,.77778],"8841":[.30274,.79383,0,0,.77778],"8842":[.13597,.63597,0,0,.77778],"8843":[.13597,.63597,0,0,.77778],"8847":[.03517,.54986,0,0,.77778],"8848":[.03517,.54986,0,0,.77778],"8858":[.08198,.58198,0,0,.77778],"8859":[.08198,.58198,0,0,.77778],"8861":[.08198,.58198,0,0,.77778],"8862":[0,.675,0,0,.77778],"8863":[0,.675,0,0,.77778],"8864":[0,.675,0,0,.77778],"8865":[0,.675,0,0,.77778],"8872":[0,.69224,0,0,.61111],"8873":[0,.69224,0,0,.72222],"8874":[0,.69224,0,0,.88889],"8876":[0,.68889,0,0,.61111],"8877":[0,.68889,0,0,.61111],"8878":[0,.68889,0,0,.72222],"8879":[0,.68889,0,0,.72222],"8882":[.03517,.54986,0,0,.77778],"8883":[.03517,.54986,0,0,.77778],"8884":[.13667,.63667,0,0,.77778],"8885":[.13667,.63667,0,0,.77778],"8888":[0,.54986,0,0,1.11111],"8890":[.19444,.43056,0,0,.55556],"8891":[.19444,.69224,0,0,.61111],"8892":[.19444,.69224,0,0,.61111],"8901":[0,.54986,0,0,.27778],"8903":[.08167,.58167,0,0,.77778],"8905":[.08167,.58167,0,0,.77778],"8906":[.08167,.58167,0,0,.77778],"8907":[0,.69224,0,0,.77778],"8908":[0,.69224,0,0,.77778],"8909":[-.03598,.46402,0,0,.77778],"8910":[0,.54986,0,0,.76042],"8911":[0,.54986,0,0,.76042],"8912":[.03517,.54986,0,0,.77778],"8913":[.03517,.54986,0,0,.77778],"8914":[0,.54986,0,0,.66667],"8915":[0,.54986,0,0,.66667],"8916":[0,.69224,0,0,.66667],"8918":[.0391,.5391,0,0,.77778],"8919":[.0391,.5391,0,0,.77778],"8920":[.03517,.54986,0,0,1.33334],"8921":[.03517,.54986,0,0,1.33334],"8922":[.38569,.88569,0,0,.77778],"8923":[.38569,.88569,0,0,.77778],"8926":[.13667,.63667,0,0,.77778],"8927":[.13667,.63667,0,0,.77778],"8928":[.30274,.79383,0,0,.77778],"8929":[.30274,.79383,0,0,.77778],"8934":[.23222,.74111,0,0,.77778],"8935":[.23222,.74111,0,0,.77778],"8936":[.23222,.74111,0,0,.77778],"8937":[.23222,.74111,0,0,.77778],"8938":[.20576,.70576,0,0,.77778],"8939":[.20576,.70576,0,0,.77778],"8940":[.30274,.79383,0,0,.77778],"8941":[.30274,.79383,0,0,.77778],"8994":[.19444,.69224,0,0,.77778],"8995":[.19444,.69224,0,0,.77778],"9416":[.15559,.69224,0,0,.90222],"9484":[0,.69224,0,0,.5],"9488":[0,.69224,0,0,.5],"9492":[0,.37788,0,0,.5],"9496":[0,.37788,0,0,.5],"9585":[.19444,.68889,0,0,.88889],"9586":[.19444,.74111,0,0,.88889],"9632":[0,.675,0,0,.77778],"9633":[0,.675,0,0,.77778],"9650":[0,.54986,0,0,.72222],"9651":[0,.54986,0,0,.72222],"9654":[.03517,.54986,0,0,.77778],"9660":[0,.54986,0,0,.72222],"9661":[0,.54986,0,0,.72222],"9664":[.03517,.54986,0,0,.77778],"9674":[.11111,.69224,0,0,.66667],"9733":[.19444,.69224,0,0,.94445],"10003":[0,.69224,0,0,.83334],"10016":[0,.69224,0,0,.83334],"10731":[.11111,.69224,0,0,.66667],"10846":[.19444,.75583,0,0,.61111],"10877":[.13667,.63667,0,0,.77778],"10878":[.13667,.63667,0,0,.77778],"10885":[.25583,.75583,0,0,.77778],"10886":[.25583,.75583,0,0,.77778],"10887":[.13597,.63597,0,0,.77778],"10888":[.13597,.63597,0,0,.77778],"10889":[.26167,.75726,0,0,.77778],"10890":[.26167,.75726,0,0,.77778],"10891":[.48256,.98256,0,0,.77778],"10892":[.48256,.98256,0,0,.77778],"10901":[.13667,.63667,0,0,.77778],"10902":[.13667,.63667,0,0,.77778],"10933":[.25142,.75726,0,0,.77778],"10934":[.25142,.75726,0,0,.77778],"10935":[.26167,.75726,0,0,.77778],"10936":[.26167,.75726,0,0,.77778],"10937":[.26167,.75726,0,0,.77778],"10938":[.26167,.75726,0,0,.77778],"10949":[.25583,.75583,0,0,.77778],"10950":[.25583,.75583,0,0,.77778],"10955":[.28481,.79383,0,0,.77778],"10956":[.28481,.79383,0,0,.77778],"57350":[.08167,.58167,0,0,.22222],"57351":[.08167,.58167,0,0,.38889],"57352":[.08167,.58167,0,0,.77778],"57353":[0,.43056,.04028,0,.66667],"57356":[.25142,.75726,0,0,.77778],"57357":[.25142,.75726,0,0,.77778],"57358":[.41951,.91951,0,0,.77778],"57359":[.30274,.79383,0,0,.77778],"57360":[.30274,.79383,0,0,.77778],"57361":[.41951,.91951,0,0,.77778],"57366":[.25142,.75726,0,0,.77778],"57367":[.25142,.75726,0,0,.77778],"57368":[.25142,.75726,0,0,.77778],"57369":[.25142,.75726,0,0,.77778],"57370":[.13597,.63597,0,0,.77778],"57371":[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{"48":[0,.43056,0,0,.5],"49":[0,.43056,0,0,.5],"50":[0,.43056,0,0,.5],"51":[.19444,.43056,0,0,.5],"52":[.19444,.43056,0,0,.5],"53":[.19444,.43056,0,0,.5],"54":[0,.64444,0,0,.5],"55":[.19444,.43056,0,0,.5],"56":[0,.64444,0,0,.5],"57":[.19444,.43056,0,0,.5],"65":[0,.68333,0,.19445,.79847],"66":[0,.68333,.03041,.13889,.65681],"67":[0,.68333,.05834,.13889,.52653],"68":[0,.68333,.02778,.08334,.77139],"69":[0,.68333,.08944,.11111,.52778],"70":[0,.68333,.09931,.11111,.71875],"71":[.09722,.68333,.0593,.11111,.59487],"72":[0,.68333,.00965,.11111,.84452],"73":[0,.68333,.07382,0,.54452],"74":[.09722,.68333,.18472,.16667,.67778],"75":[0,.68333,.01445,.05556,.76195],"76":[0,.68333,0,.13889,.68972],"77":[0,.68333,0,.13889,1.2009],"78":[0,.68333,.14736,.08334,.82049],"79":[0,.68333,.02778,.11111,.79611],"80":[0,.68333,.08222,.08334,.69556],"81":[.09722,.68333,0,.11111,.81667],"82":[0,.68333,0,.08334,.8475],"83":[0,.68333,.075,.13889,.60556],"84":[0,.68333,.25417,0,.54464],"85":[0,.68333,.09931,.08334,.62583],"86":[0,.68333,.08222,0,.61278],"87":[0,.68333,.08222,.08334,.98778],"88":[0,.68333,.14643,.13889,.7133],"89":[.09722,.68333,.08222,.08334,.66834],"90":[0,.68333,.07944,.13889,.72473]},"Fraktur-Regular":{"33":[0,.69141,0,0,.29574],"34":[0,.69141,0,0,.21471],"38":[0,.69141,0,0,.73786],"39":[0,.69141,0,0,.21201],"40":[.24982,.74947,0,0,.38865],"41":[.24982,.74947,0,0,.38865],"42":[0,.62119,0,0,.27764],"43":[.08319,.58283,0,0,.75623],"44":[0,.10803,0,0,.27764],"45":[.08319,.58283,0,0,.75623],"46":[0,.10803,0,0,.27764],"47":[.24982,.74947,0,0,.50181],"48":[0,.47534,0,0,.50181],"49":[0,.47534,0,0,.50181],"50":[0,.47534,0,0,.50181],"51":[.18906,.47534,0,0,.50181],"52":[.18906,.47534,0,0,.50181],"53":[.18906,.47534,0,0,.50181],"54":[0,.69141,0,0,.50181],"55":[.18906,.47534,0,0,.50181],"56":[0,.69141,0,0,.50181],"57":[.18906,.47534,0,0,.50181],"58":[0,.47534,0,0,.21606],"59":[.12604,.47534,0,0,.21606],"61":[-.13099,.36866,0,0,.75623],"63":[0,.69141,0,0,.36245],"65":[0,.69141,0,0,.7176],"66":[0,.69141,0,0,.88397],"67":[0,.69141,0,0,.61254],"68":[0,.69141,0,0,.83158],"69":[0,.69141,0,0,.66278],"70":[.12604,.69141,0,0,.61119],"71":[0,.69141,0,0,.78539],"72":[.06302,.69141,0,0,.7203],"73":[0,.69141,0,0,.55448],"74":[.12604,.69141,0,0,.55231],"75":[0,.69141,0,0,.66845],"76":[0,.69141,0,0,.66602],"77":[0,.69141,0,0,1.04953],"78":[0,.69141,0,0,.83212],"79":[0,.69141,0,0,.82699],"80":[.18906,.69141,0,0,.82753],"81":[.03781,.69141,0,0,.82699],"82":[0,.69141,0,0,.82807],"83":[0,.69141,0,0,.82861],"84":[0,.69141,0,0,.66899],"85":[0,.69141,0,0,.64576],"86":[0,.69141,0,0,.83131],"87":[0,.69141,0,0,1.04602],"88":[0,.69141,0,0,.71922],"89":[.18906,.69141,0,0,.83293],"90":[.12604,.69141,0,0,.60201],"91":[.24982,.74947,0,0,.27764],"93":[.24982,.74947,0,0,.27764],"94":[0,.69141,0,0,.49965],"97":[0,.47534,0,0,.50046],"98":[0,.69141,0,0,.51315],"99":[0,.47534,0,0,.38946],"100":[0,.62119,0,0,.49857],"101":[0,.47534,0,0,.40053],"102":[.18906,.69141,0,0,.32626],"103":[.18906,.47534,0,0,.5037],"104":[.18906,.69141,0,0,.52126],"105":[0,.69141,0,0,.27899],"106":[0,.69141,0,0,.28088],"107":[0,.69141,0,0,.38946],"108":[0,.69141,0,0,.27953],"109":[0,.47534,0,0,.76676],"110":[0,.47534,0,0,.52666],"111":[0,.47534,0,0,.48885],"112":[.18906,.52396,0,0,.50046],"113":[.18906,.47534,0,0,.48912],"114":[0,.47534,0,0,.38919],"115":[0,.47534,0,0,.44266],"116":[0,.62119,0,0,.33301],"117":[0,.47534,0,0,.5172],"118":[0,.52396,0,0,.5118],"119":[0,.52396,0,0,.77351],"120":[.18906,.47534,0,0,.38865],"121":[.18906,.47534,0,0,.49884],"122":[.18906,.47534,0,0,.39054],"8216":[0,.69141,0,0,.21471],"8217":[0,.69141,0,0,.21471],"58112":[0,.62119,0,0,.49749],"58113":[0,.62119,0,0,.4983],"58114":[.18906,.69141,0,0,.33328],"58115":[.18906,.69141,0,0,.32923],"58116":[.18906,.47534,0,0,.50343],"58117":[0,.69141,0,0,.33301],"58118":[0,.62119,0,0,.33409],"58119":[0,.47534,0,0,.50073]},"Main-Bold":{"33":[0,.69444,0,0,.35],"34":[0,.69444,0,0,.60278],"35":[.19444,.69444,0,0,.95833],"36":[.05556,.75,0,0,.575],"37":[.05556,.75,0,0,.95833],"38":[0,.69444,0,0,.89444],"39":[0,.69444,0,0,.31944],"40":[.25,.75,0,0,.44722],"41":[.25,.75,0,0,.44722],"42":[0,.75,0,0,.575],"43":[.13333,.63333,0,0,.89444],"44":[.19444,.15556,0,0,.31944],"45":[0,.44444,0,0,.38333],"46":[0,.15556,0,0,.31944],"47":[.25,.75,0,0,.575],"48":[0,.64444,0,0,.575],"49":[0,.64444,0,0,.575],"50":[0,.64444,0,0,.575],"51":[0,.64444,0,0,.575],"52":[0,.64444,0,0,.575],"53":[0,.64444,0,0,.575],"54":[0,.64444,0,0,.575],"55":[0,.64444,0,0,.575],"56":[0,.64444,0,0,.575],"57":[0,.64444,0,0,.575],"58":[0,.44444,0,0,.31944],"59":[.19444,.44444,0,0,.31944],"60":[.08556,.58556,0,0,.89444],"61":[-.10889,.39111,0,0,.89444],"62":[.08556,.58556,0,0,.89444],"63":[0,.69444,0,0,.54305],"64":[0,.69444,0,0,.89444],"65":[0,.68611,0,0,.86944],"66":[0,.68611,0,0,.81805],"67":[0,.68611,0,0,.83055],"68":[0,.68611,0,0,.88194],"69":[0,.68611,0,0,.75555],"70":[0,.68611,0,0,.72361],"71":[0,.68611,0,0,.90416],"72":[0,.68611,0,0,.9],"73":[0,.68611,0,0,.43611],"74":[0,.68611,0,0,.59444],"75":[0,.68611,0,0,.90138],"76":[0,.68611,0,0,.69166],"77":[0,.68611,0,0,1.09166],"78":[0,.68611,0,0,.9],"79":[0,.68611,0,0,.86388],"80":[0,.68611,0,0,.78611],"81":[.19444,.68611,0,0,.86388],"82":[0,.68611,0,0,.8625],"83":[0,.68611,0,0,.63889],"84":[0,.68611,0,0,.8],"85":[0,.68611,0,0,.88472],"86":[0,.68611,.01597,0,.86944],"87":[0,.68611,.01597,0,1.18888],"88":[0,.68611,0,0,.86944],"89":[0,.68611,.02875,0,.86944],"90":[0,.68611,0,0,.70277],"91":[.25,.75,0,0,.31944],"92":[.25,.75,0,0,.575],"93":[.25,.75,0,0,.31944],"94":[0,.69444,0,0,.575],"95":[.31,.13444,.03194,0,.575],"97":[0,.44444,0,0,.55902],"98":[0,.69444,0,0,.63889],"99":[0,.44444,0,0,.51111],"100":[0,.69444,0,0,.63889],"101":[0,.44444,0,0,.52708],"102":[0,.69444,.10903,0,.35139],"103":[.19444,.44444,.01597,0,.575],"104":[0,.69444,0,0,.63889],"105":[0,.69444,0,0,.31944],"106":[.19444,.69444,0,0,.35139],"107":[0,.69444,0,0,.60694],"108":[0,.69444,0,0,.31944],"109":[0,.44444,0,0,.95833],"110":[0,.44444,0,0,.63889],"111":[0,.44444,0,0,.575],"112":[.19444,.44444,0,0,.63889],"113":[.19444,.44444,0,0,.60694],"114":[0,.44444,0,0,.47361],"115":[0,.44444,0,0,.45361],"116":[0,.63492,0,0,.44722],"117":[0,.44444,0,0,.63889],"118":[0,.44444,.01597,0,.60694],"119":[0,.44444,.01597,0,.83055],"120":[0,.44444,0,0,.60694],"121":[.19444,.44444,.01597,0,.60694],"122":[0,.44444,0,0,.51111],"123":[.25,.75,0,0,.575],"124":[.25,.75,0,0,.31944],"125":[.25,.75,0,0,.575],"126":[.35,.34444,0,0,.575],"168":[0,.69444,0,0,.575],"172":[0,.44444,0,0,.76666],"176":[0,.69444,0,0,.86944],"177":[.13333,.63333,0,0,.89444],"184":[.17014,0,0,0,.51111],"198":[0,.68611,0,0,1.04166],"215":[.13333,.63333,0,0,.89444],"216":[.04861,.73472,0,0,.89444],"223":[0,.69444,0,0,.59722],"230":[0,.44444,0,0,.83055],"247":[.13333,.63333,0,0,.89444],"248":[.09722,.54167,0,0,.575],"305":[0,.44444,0,0,.31944],"338":[0,.68611,0,0,1.16944],"339":[0,.44444,0,0,.89444],"567":[.19444,.44444,0,0,.35139],"710":[0,.69444,0,0,.575],"711":[0,.63194,0,0,.575],"713":[0,.59611,0,0,.575],"714":[0,.69444,0,0,.575],"715":[0,.69444,0,0,.575],"728":[0,.69444,0,0,.575],"729":[0,.69444,0,0,.31944],"730":[0,.69444,0,0,.86944],"732":[0,.69444,0,0,.575],"733":[0,.69444,0,0,.575],"915":[0,.68611,0,0,.69166],"916":[0,.68611,0,0,.95833],"920":[0,.68611,0,0,.89444],"923":[0,.68611,0,0,.80555],"926":[0,.68611,0,0,.76666],"928":[0,.68611,0,0,.9],"931":[0,.68611,0,0,.83055],"933":[0,.68611,0,0,.89444],"934":[0,.68611,0,0,.83055],"936":[0,.68611,0,0,.89444],"937":[0,.68611,0,0,.83055],"8211":[0,.44444,.03194,0,.575],"8212":[0,.44444,.03194,0,1.14999],"8216":[0,.69444,0,0,.31944],"8217":[0,.69444,0,0,.31944],"8220":[0,.69444,0,0,.60278],"8221":[0,.69444,0,0,.60278],"8224":[.19444,.69444,0,0,.51111],"8225":[.19444,.69444,0,0,.51111],"8242":[0,.55556,0,0,.34444],"8407":[0,.72444,.15486,0,.575],"8463":[0,.69444,0,0,.66759],"8465":[0,.69444,0,0,.83055],"8467":[0,.69444,0,0,.47361],"8472":[.19444,.44444,0,0,.74027],"8476":[0,.69444,0,0,.83055],"8501":[0,.69444,0,0,.70277],"8592":[-.10889,.39111,0,0,1.14999],"8593":[.19444,.69444,0,0,.575],"8594":[-.10889,.39111,0,0,1.14999],"8595":[.19444,.69444,0,0,.575],"8596":[-.10889,.39111,0,0,1.14999],"8597":[.25,.75,0,0,.575],"8598":[.19444,.69444,0,0,1.14999],"8599":[.19444,.69444,0,0,1.14999],"8600":[.19444,.69444,0,0,1.14999],"8601":[.19444,.69444,0,0,1.14999],"8636":[-.10889,.39111,0,0,1.14999],"8637":[-.10889,.39111,0,0,1.14999],"8640":[-.10889,.39111,0,0,1.14999],"8641":[-.10889,.39111,0,0,1.14999],"8656":[-.10889,.39111,0,0,1.14999],"8657":[.19444,.69444,0,0,.70277],"8658":[-.10889,.39111,0,0,1.14999],"8659":[.19444,.69444,0,0,.70277],"8660":[-.10889,.39111,0,0,1.14999],"8661":[.25,.75,0,0,.70277],"8704":[0,.69444,0,0,.63889],"8706":[0,.69444,.06389,0,.62847],"8707":[0,.69444,0,0,.63889],"8709":[.05556,.75,0,0,.575],"8711":[0,.68611,0,0,.95833],"8712":[.08556,.58556,0,0,.76666],"8715":[.08556,.58556,0,0,.76666],"8722":[.13333,.63333,0,0,.89444],"8723":[.13333,.63333,0,0,.89444],"8725":[.25,.75,0,0,.575],"8726":[.25,.75,0,0,.575],"8727":[-.02778,.47222,0,0,.575],"8728":[-.02639,.47361,0,0,.575],"8729":[-.02639,.47361,0,0,.575],"8730":[.18,.82,0,0,.95833],"8733":[0,.44444,0,0,.89444],"8734":[0,.44444,0,0,1.14999],"8736":[0,.69224,0,0,.72222],"8739":[.25,.75,0,0,.31944],"8741":[.25,.75,0,0,.575],"8743":[0,.55556,0,0,.76666],"8744":[0,.55556,0,0,.76666],"8745":[0,.55556,0,0,.76666],"8746":[0,.55556,0,0,.76666],"8747":[.19444,.69444,.12778,0,.56875],"8764":[-.10889,.39111,0,0,.89444],"8768":[.19444,.69444,0,0,.31944],"8771":[.00222,.50222,0,0,.89444],"8776":[.02444,.52444,0,0,.89444],"8781":[.00222,.50222,0,0,.89444],"8801":[.00222,.50222,0,0,.89444],"8804":[.19667,.69667,0,0,.89444],"8805":[.19667,.69667,0,0,.89444],"8810":[.08556,.58556,0,0,1.14999],"8811":[.08556,.58556,0,0,1.14999],"8826":[.08556,.58556,0,0,.89444],"8827":[.08556,.58556,0,0,.89444],"8834":[.08556,.58556,0,0,.89444],"8835":[.08556,.58556,0,0,.89444],"8838":[.19667,.69667,0,0,.89444],"8839":[.19667,.69667,0,0,.89444],"8846":[0,.55556,0,0,.76666],"8849":[.19667,.69667,0,0,.89444],"8850":[.19667,.69667,0,0,.89444],"8851":[0,.55556,0,0,.76666],"8852":[0,.55556,0,0,.76666],"8853":[.13333,.63333,0,0,.89444],"8854":[.13333,.63333,0,0,.89444],"8855":[.13333,.63333,0,0,.89444],"8856":[.13333,.63333,0,0,.89444],"8857":[.13333,.63333,0,0,.89444],"8866":[0,.69444,0,0,.70277],"8867":[0,.69444,0,0,.70277],"8868":[0,.69444,0,0,.89444],"8869":[0,.69444,0,0,.89444],"8900":[-.02639,.47361,0,0,.575],"8901":[-.02639,.47361,0,0,.31944],"8902":[-.02778,.47222,0,0,.575],"8968":[.25,.75,0,0,.51111],"8969":[.25,.75,0,0,.51111],"8970":[.25,.75,0,0,.51111],"8971":[.25,.75,0,0,.51111],"8994":[-.13889,.36111,0,0,1.14999],"8995":[-.13889,.36111,0,0,1.14999],"9651":[.19444,.69444,0,0,1.02222],"9657":[-.02778,.47222,0,0,.575],"9661":[.19444,.69444,0,0,1.02222],"9667":[-.02778,.47222,0,0,.575],"9711":[.19444,.69444,0,0,1.14999],"9824":[.12963,.69444,0,0,.89444],"9825":[.12963,.69444,0,0,.89444],"9826":[.12963,.69444,0,0,.89444],"9827":[.12963,.69444,0,0,.89444],"9837":[0,.75,0,0,.44722],"9838":[.19444,.69444,0,0,.44722],"9839":[.19444,.69444,0,0,.44722],"10216":[.25,.75,0,0,.44722],"10217":[.25,.75,0,0,.44722],"10815":[0,.68611,0,0,.9],"10927":[.19667,.69667,0,0,.89444],"10928":[.19667,.69667,0,0,.89444],"57376":[.19444,.69444,0,0,0]},"Main-BoldItalic":{"33":[0,.69444,.11417,0,.38611],"34":[0,.69444,.07939,0,.62055],"35":[.19444,.69444,.06833,0,.94444],"37":[.05556,.75,.12861,0,.94444],"38":[0,.69444,.08528,0,.88555],"39":[0,.69444,.12945,0,.35555],"40":[.25,.75,.15806,0,.47333],"41":[.25,.75,.03306,0,.47333],"42":[0,.75,.14333,0,.59111],"43":[.10333,.60333,.03306,0,.88555],"44":[.19444,.14722,0,0,.35555],"45":[0,.44444,.02611,0,.41444],"46":[0,.14722,0,0,.35555],"47":[.25,.75,.15806,0,.59111],"48":[0,.64444,.13167,0,.59111],"49":[0,.64444,.13167,0,.59111],"50":[0,.64444,.13167,0,.59111],"51":[0,.64444,.13167,0,.59111],"52":[.19444,.64444,.13167,0,.59111],"53":[0,.64444,.13167,0,.59111],"54":[0,.64444,.13167,0,.59111],"55":[.19444,.64444,.13167,0,.59111],"56":[0,.64444,.13167,0,.59111],"57":[0,.64444,.13167,0,.59111],"58":[0,.44444,.06695,0,.35555],"59":[.19444,.44444,.06695,0,.35555],"61":[-.10889,.39111,.06833,0,.88555],"63":[0,.69444,.11472,0,.59111],"64":[0,.69444,.09208,0,.88555],"65":[0,.68611,0,0,.86555],"66":[0,.68611,.0992,0,.81666],"67":[0,.68611,.14208,0,.82666],"68":[0,.68611,.09062,0,.87555],"69":[0,.68611,.11431,0,.75666],"70":[0,.68611,.12903,0,.72722],"71":[0,.68611,.07347,0,.89527],"72":[0,.68611,.17208,0,.8961],"73":[0,.68611,.15681,0,.47166],"74":[0,.68611,.145,0,.61055],"75":[0,.68611,.14208,0,.89499],"76":[0,.68611,0,0,.69777],"77":[0,.68611,.17208,0,1.07277],"78":[0,.68611,.17208,0,.8961],"79":[0,.68611,.09062,0,.85499],"80":[0,.68611,.0992,0,.78721],"81":[.19444,.68611,.09062,0,.85499],"82":[0,.68611,.02559,0,.85944],"83":[0,.68611,.11264,0,.64999],"84":[0,.68611,.12903,0,.7961],"85":[0,.68611,.17208,0,.88083],"86":[0,.68611,.18625,0,.86555],"87":[0,.68611,.18625,0,1.15999],"88":[0,.68611,.15681,0,.86555],"89":[0,.68611,.19803,0,.86555],"90":[0,.68611,.14208,0,.70888],"91":[.25,.75,.1875,0,.35611],"93":[.25,.75,.09972,0,.35611],"94":[0,.69444,.06709,0,.59111],"95":[.31,.13444,.09811,0,.59111],"97":[0,.44444,.09426,0,.59111],"98":[0,.69444,.07861,0,.53222],"99":[0,.44444,.05222,0,.53222],"100":[0,.69444,.10861,0,.59111],"101":[0,.44444,.085,0,.53222],"102":[.19444,.69444,.21778,0,.4],"103":[.19444,.44444,.105,0,.53222],"104":[0,.69444,.09426,0,.59111],"105":[0,.69326,.11387,0,.35555],"106":[.19444,.69326,.1672,0,.35555],"107":[0,.69444,.11111,0,.53222],"108":[0,.69444,.10861,0,.29666],"109":[0,.44444,.09426,0,.94444],"110":[0,.44444,.09426,0,.64999],"111":[0,.44444,.07861,0,.59111],"112":[.19444,.44444,.07861,0,.59111],"113":[.19444,.44444,.105,0,.53222],"114":[0,.44444,.11111,0,.50167],"115":[0,.44444,.08167,0,.48694],"116":[0,.63492,.09639,0,.385],"117":[0,.44444,.09426,0,.62055],"118":[0,.44444,.11111,0,.53222],"119":[0,.44444,.11111,0,.76777],"120":[0,.44444,.12583,0,.56055],"121":[.19444,.44444,.105,0,.56166],"122":[0,.44444,.13889,0,.49055],"126":[.35,.34444,.11472,0,.59111],"163":[0,.69444,0,0,.86853],"168":[0,.69444,.11473,0,.59111],"176":[0,.69444,0,0,.94888],"184":[.17014,0,0,0,.53222],"198":[0,.68611,.11431,0,1.02277],"216":[.04861,.73472,.09062,0,.88555],"223":[.19444,.69444,.09736,0,.665],"230":[0,.44444,.085,0,.82666],"248":[.09722,.54167,.09458,0,.59111],"305":[0,.44444,.09426,0,.35555],"338":[0,.68611,.11431,0,1.14054],"339":[0,.44444,.085,0,.82666],"567":[.19444,.44444,.04611,0,.385],"710":[0,.69444,.06709,0,.59111],"711":[0,.63194,.08271,0,.59111],"713":[0,.59444,.10444,0,.59111],"714":[0,.69444,.08528,0,.59111],"715":[0,.69444,0,0,.59111],"728":[0,.69444,.10333,0,.59111],"729":[0,.69444,.12945,0,.35555],"730":[0,.69444,0,0,.94888],"732":[0,.69444,.11472,0,.59111],"733":[0,.69444,.11472,0,.59111],"915":[0,.68611,.12903,0,.69777],"916":[0,.68611,0,0,.94444],"920":[0,.68611,.09062,0,.88555],"923":[0,.68611,0,0,.80666],"926":[0,.68611,.15092,0,.76777],"928":[0,.68611,.17208,0,.8961],"931":[0,.68611,.11431,0,.82666],"933":[0,.68611,.10778,0,.88555],"934":[0,.68611,.05632,0,.82666],"936":[0,.68611,.10778,0,.88555],"937":[0,.68611,.0992,0,.82666],"8211":[0,.44444,.09811,0,.59111],"8212":[0,.44444,.09811,0,1.18221],"8216":[0,.69444,.12945,0,.35555],"8217":[0,.69444,.12945,0,.35555],"8220":[0,.69444,.16772,0,.62055],"8221":[0,.69444,.07939,0,.62055]},"Main-Italic":{"33":[0,.69444,.12417,0,.30667],"34":[0,.69444,.06961,0,.51444],"35":[.19444,.69444,.06616,0,.81777],"37":[.05556,.75,.13639,0,.81777],"38":[0,.69444,.09694,0,.76666],"39":[0,.69444,.12417,0,.30667],"40":[.25,.75,.16194,0,.40889],"41":[.25,.75,.03694,0,.40889],"42":[0,.75,.14917,0,.51111],"43":[.05667,.56167,.03694,0,.76666],"44":[.19444,.10556,0,0,.30667],"45":[0,.43056,.02826,0,.35778],"46":[0,.10556,0,0,.30667],"47":[.25,.75,.16194,0,.51111],"48":[0,.64444,.13556,0,.51111],"49":[0,.64444,.13556,0,.51111],"50":[0,.64444,.13556,0,.51111],"51":[0,.64444,.13556,0,.51111],"52":[.19444,.64444,.13556,0,.51111],"53":[0,.64444,.13556,0,.51111],"54":[0,.64444,.13556,0,.51111],"55":[.19444,.64444,.13556,0,.51111],"56":[0,.64444,.13556,0,.51111],"57":[0,.64444,.13556,0,.51111],"58":[0,.43056,.0582,0,.30667],"59":[.19444,.43056,.0582,0,.30667],"61":[-.13313,.36687,.06616,0,.76666],"63":[0,.69444,.1225,0,.51111],"64":[0,.69444,.09597,0,.76666],"65":[0,.68333,0,0,.74333],"66":[0,.68333,.10257,0,.70389],"67":[0,.68333,.14528,0,.71555],"68":[0,.68333,.09403,0,.755],"69":[0,.68333,.12028,0,.67833],"70":[0,.68333,.13305,0,.65277],"71":[0,.68333,.08722,0,.77361],"72":[0,.68333,.16389,0,.74333],"73":[0,.68333,.15806,0,.38555],"74":[0,.68333,.14028,0,.525],"75":[0,.68333,.14528,0,.76888],"76":[0,.68333,0,0,.62722],"77":[0,.68333,.16389,0,.89666],"78":[0,.68333,.16389,0,.74333],"79":[0,.68333,.09403,0,.76666],"80":[0,.68333,.10257,0,.67833],"81":[.19444,.68333,.09403,0,.76666],"82":[0,.68333,.03868,0,.72944],"83":[0,.68333,.11972,0,.56222],"84":[0,.68333,.13305,0,.71555],"85":[0,.68333,.16389,0,.74333],"86":[0,.68333,.18361,0,.74333],"87":[0,.68333,.18361,0,.99888],"88":[0,.68333,.15806,0,.74333],"89":[0,.68333,.19383,0,.74333],"90":[0,.68333,.14528,0,.61333],"91":[.25,.75,.1875,0,.30667],"93":[.25,.75,.10528,0,.30667],"94":[0,.69444,.06646,0,.51111],"95":[.31,.12056,.09208,0,.51111],"97":[0,.43056,.07671,0,.51111],"98":[0,.69444,.06312,0,.46],"99":[0,.43056,.05653,0,.46],"100":[0,.69444,.10333,0,.51111],"101":[0,.43056,.07514,0,.46],"102":[.19444,.69444,.21194,0,.30667],"103":[.19444,.43056,.08847,0,.46],"104":[0,.69444,.07671,0,.51111],"105":[0,.65536,.1019,0,.30667],"106":[.19444,.65536,.14467,0,.30667],"107":[0,.69444,.10764,0,.46],"108":[0,.69444,.10333,0,.25555],"109":[0,.43056,.07671,0,.81777],"110":[0,.43056,.07671,0,.56222],"111":[0,.43056,.06312,0,.51111],"112":[.19444,.43056,.06312,0,.51111],"113":[.19444,.43056,.08847,0,.46],"114":[0,.43056,.10764,0,.42166],"115":[0,.43056,.08208,0,.40889],"116":[0,.61508,.09486,0,.33222],"117":[0,.43056,.07671,0,.53666],"118":[0,.43056,.10764,0,.46],"119":[0,.43056,.10764,0,.66444],"120":[0,.43056,.12042,0,.46389],"121":[.19444,.43056,.08847,0,.48555],"122":[0,.43056,.12292,0,.40889],"126":[.35,.31786,.11585,0,.51111],"163":[0,.69444,0,0,.76909],"168":[0,.66786,.10474,0,.51111],"176":[0,.69444,0,0,.83129],"184":[.17014,0,0,0,.46],"198":[0,.68333,.12028,0,.88277],"216":[.04861,.73194,.09403,0,.76666],"223":[.19444,.69444,.10514,0,.53666],"230":[0,.43056,.07514,0,.71555],"248":[.09722,.52778,.09194,0,.51111],"305":[0,.43056,0,.02778,.32246],"338":[0,.68333,.12028,0,.98499],"339":[0,.43056,.07514,0,.71555],"567":[.19444,.43056,0,.08334,.38403],"710":[0,.69444,.06646,0,.51111],"711":[0,.62847,.08295,0,.51111],"713":[0,.56167,.10333,0,.51111],"714":[0,.69444,.09694,0,.51111],"715":[0,.69444,0,0,.51111],"728":[0,.69444,.10806,0,.51111],"729":[0,.66786,.11752,0,.30667],"730":[0,.69444,0,0,.83129],"732":[0,.66786,.11585,0,.51111],"733":[0,.69444,.1225,0,.51111],"915":[0,.68333,.13305,0,.62722],"916":[0,.68333,0,0,.81777],"920":[0,.68333,.09403,0,.76666],"923":[0,.68333,0,0,.69222],"926":[0,.68333,.15294,0,.66444],"928":[0,.68333,.16389,0,.74333],"931":[0,.68333,.12028,0,.71555],"933":[0,.68333,.11111,0,.76666],"934":[0,.68333,.05986,0,.71555],"936":[0,.68333,.11111,0,.76666],"937":[0,.68333,.10257,0,.71555],"8211":[0,.43056,.09208,0,.51111],"8212":[0,.43056,.09208,0,1.02222],"8216":[0,.69444,.12417,0,.30667],"8217":[0,.69444,.12417,0,.30667],"8220":[0,.69444,.1685,0,.51444],"8221":[0,.69444,.06961,0,.51444],"8463":[0,.68889,0,0,.54028]},"Main-Regular":{"32":[0,0,0,0,.25],"33":[0,.69444,0,0,.27778],"34":[0,.69444,0,0,.5],"35":[.19444,.69444,0,0,.83334],"36":[.05556,.75,0,0,.5],"37":[.05556,.75,0,0,.83334],"38":[0,.69444,0,0,.77778],"39":[0,.69444,0,0,.27778],"40":[.25,.75,0,0,.38889],"41":[.25,.75,0,0,.38889],"42":[0,.75,0,0,.5],"43":[.08333,.58333,0,0,.77778],"44":[.19444,.10556,0,0,.27778],"45":[0,.43056,0,0,.33333],"46":[0,.10556,0,0,.27778],"47":[.25,.75,0,0,.5],"48":[0,.64444,0,0,.5],"49":[0,.64444,0,0,.5],"50":[0,.64444,0,0,.5],"51":[0,.64444,0,0,.5],"52":[0,.64444,0,0,.5],"53":[0,.64444,0,0,.5],"54":[0,.64444,0,0,.5],"55":[0,.64444,0,0,.5],"56":[0,.64444,0,0,.5],"57":[0,.64444,0,0,.5],"58":[0,.43056,0,0,.27778],"59":[.19444,.43056,0,0,.27778],"60":[.0391,.5391,0,0,.77778],"61":[-.13313,.36687,0,0,.77778],"62":[.0391,.5391,0,0,.77778],"63":[0,.69444,0,0,.47222],"64":[0,.69444,0,0,.77778],"65":[0,.68333,0,0,.75],"66":[0,.68333,0,0,.70834],"67":[0,.68333,0,0,.72222],"68":[0,.68333,0,0,.76389],"69":[0,.68333,0,0,.68056],"70":[0,.68333,0,0,.65278],"71":[0,.68333,0,0,.78472],"72":[0,.68333,0,0,.75],"73":[0,.68333,0,0,.36111],"74":[0,.68333,0,0,.51389],"75":[0,.68333,0,0,.77778],"76":[0,.68333,0,0,.625],"77":[0,.68333,0,0,.91667],"78":[0,.68333,0,0,.75],"79":[0,.68333,0,0,.77778],"80":[0,.68333,0,0,.68056],"81":[.19444,.68333,0,0,.77778],"82":[0,.68333,0,0,.73611],"83":[0,.68333,0,0,.55556],"84":[0,.68333,0,0,.72222],"85":[0,.68333,0,0,.75],"86":[0,.68333,.01389,0,.75],"87":[0,.68333,.01389,0,1.02778],"88":[0,.68333,0,0,.75],"89":[0,.68333,.025,0,.75],"90":[0,.68333,0,0,.61111],"91":[.25,.75,0,0,.27778],"92":[.25,.75,0,0,.5],"93":[.25,.75,0,0,.27778],"94":[0,.69444,0,0,.5],"95":[.31,.12056,.02778,0,.5],"97":[0,.43056,0,0,.5],"98":[0,.69444,0,0,.55556],"99":[0,.43056,0,0,.44445],"100":[0,.69444,0,0,.55556],"101":[0,.43056,0,0,.44445],"102":[0,.69444,.07778,0,.30556],"103":[.19444,.43056,.01389,0,.5],"104":[0,.69444,0,0,.55556],"105":[0,.66786,0,0,.27778],"106":[.19444,.66786,0,0,.30556],"107":[0,.69444,0,0,.52778],"108":[0,.69444,0,0,.27778],"109":[0,.43056,0,0,.83334],"110":[0,.43056,0,0,.55556],"111":[0,.43056,0,0,.5],"112":[.19444,.43056,0,0,.55556],"113":[.19444,.43056,0,0,.52778],"114":[0,.43056,0,0,.39167],"115":[0,.43056,0,0,.39445],"116":[0,.61508,0,0,.38889],"117":[0,.43056,0,0,.55556],"118":[0,.43056,.01389,0,.52778],"119":[0,.43056,.01389,0,.72222],"120":[0,.43056,0,0,.52778],"121":[.19444,.43056,.01389,0,.52778],"122":[0,.43056,0,0,.44445],"123":[.25,.75,0,0,.5],"124":[.25,.75,0,0,.27778],"125":[.25,.75,0,0,.5],"126":[.35,.31786,0,0,.5],"160":[0,0,0,0,.25],"167":[.19444,.69444,0,0,.44445],"168":[0,.66786,0,0,.5],"172":[0,.43056,0,0,.66667],"176":[0,.69444,0,0,.75],"177":[.08333,.58333,0,0,.77778],"182":[.19444,.69444,0,0,.61111],"184":[.17014,0,0,0,.44445],"198":[0,.68333,0,0,.90278],"215":[.08333,.58333,0,0,.77778],"216":[.04861,.73194,0,0,.77778],"223":[0,.69444,0,0,.5],"230":[0,.43056,0,0,.72222],"247":[.08333,.58333,0,0,.77778],"248":[.09722,.52778,0,0,.5],"305":[0,.43056,0,0,.27778],"338":[0,.68333,0,0,1.01389],"339":[0,.43056,0,0,.77778],"567":[.19444,.43056,0,0,.30556],"710":[0,.69444,0,0,.5],"711":[0,.62847,0,0,.5],"713":[0,.56778,0,0,.5],"714":[0,.69444,0,0,.5],"715":[0,.69444,0,0,.5],"728":[0,.69444,0,0,.5],"729":[0,.66786,0,0,.27778],"730":[0,.69444,0,0,.75],"732":[0,.66786,0,0,.5],"733":[0,.69444,0,0,.5],"915":[0,.68333,0,0,.625],"916":[0,.68333,0,0,.83334],"920":[0,.68333,0,0,.77778],"923":[0,.68333,0,0,.69445],"926":[0,.68333,0,0,.66667],"928":[0,.68333,0,0,.75],"931":[0,.68333,0,0,.72222],"933":[0,.68333,0,0,.77778],"934":[0,.68333,0,0,.72222],"936":[0,.68333,0,0,.77778],"937":[0,.68333,0,0,.72222],"8211":[0,.43056,.02778,0,.5],"8212":[0,.43056,.02778,0,1],"8216":[0,.69444,0,0,.27778],"8217":[0,.69444,0,0,.27778],"8220":[0,.69444,0,0,.5],"8221":[0,.69444,0,0,.5],"8224":[.19444,.69444,0,0,.44445],"8225":[.19444,.69444,0,0,.44445],"8230":[0,.12,0,0,1.172],"8242":[0,.55556,0,0,.275],"8407":[0,.71444,.15382,0,.5],"8463":[0,.68889,0,0,.54028],"8465":[0,.69444,0,0,.72222],"8467":[0,.69444,0,.11111,.41667],"8472":[.19444,.43056,0,.11111,.63646],"8476":[0,.69444,0,0,.72222],"8501":[0,.69444,0,0,.61111],"8592":[-.13313,.36687,0,0,1],"8593":[.19444,.69444,0,0,.5],"8594":[-.13313,.36687,0,0,1],"8595":[.19444,.69444,0,0,.5],"8596":[-.13313,.36687,0,0,1],"8597":[.25,.75,0,0,.5],"8598":[.19444,.69444,0,0,1],"8599":[.19444,.69444,0,0,1],"8600":[.19444,.69444,0,0,1],"8601":[.19444,.69444,0,0,1],"8614":[.011,.511,0,0,1],"8617":[.011,.511,0,0,1.126],"8618":[.011,.511,0,0,1.126],"8636":[-.13313,.36687,0,0,1],"8637":[-.13313,.36687,0,0,1],"8640":[-.13313,.36687,0,0,1],"8641":[-.13313,.36687,0,0,1],"8652":[.011,.671,0,0,1],"8656":[-.13313,.36687,0,0,1],"8657":[.19444,.69444,0,0,.61111],"8658":[-.13313,.36687,0,0,1],"8659":[.19444,.69444,0,0,.61111],"8660":[-.13313,.36687,0,0,1],"8661":[.25,.75,0,0,.61111],"8704":[0,.69444,0,0,.55556],"8706":[0,.69444,.05556,.08334,.5309],"8707":[0,.69444,0,0,.55556],"8709":[.05556,.75,0,0,.5],"8711":[0,.68333,0,0,.83334],"8712":[.0391,.5391,0,0,.66667],"8715":[.0391,.5391,0,0,.66667],"8722":[.08333,.58333,0,0,.77778],"8723":[.08333,.58333,0,0,.77778],"8725":[.25,.75,0,0,.5],"8726":[.25,.75,0,0,.5],"8727":[-.03472,.46528,0,0,.5],"8728":[-.05555,.44445,0,0,.5],"8729":[-.05555,.44445,0,0,.5],"8730":[.2,.8,0,0,.83334],"8733":[0,.43056,0,0,.77778],"8734":[0,.43056,0,0,1],"8736":[0,.69224,0,0,.72222],"8739":[.25,.75,0,0,.27778],"8741":[.25,.75,0,0,.5],"8743":[0,.55556,0,0,.66667],"8744":[0,.55556,0,0,.66667],"8745":[0,.55556,0,0,.66667],"8746":[0,.55556,0,0,.66667],"8747":[.19444,.69444,.11111,0,.41667],"8764":[-.13313,.36687,0,0,.77778],"8768":[.19444,.69444,0,0,.27778],"8771":[-.03625,.46375,0,0,.77778],"8773":[-.022,.589,0,0,1],"8776":[-.01688,.48312,0,0,.77778],"8781":[-.03625,.46375,0,0,.77778],"8784":[-.133,.67,0,0,.778],"8801":[-.03625,.46375,0,0,.77778],"8804":[.13597,.63597,0,0,.77778],"8805":[.13597,.63597,0,0,.77778],"8810":[.0391,.5391,0,0,1],"8811":[.0391,.5391,0,0,1],"8826":[.0391,.5391,0,0,.77778],"8827":[.0391,.5391,0,0,.77778],"8834":[.0391,.5391,0,0,.77778],"8835":[.0391,.5391,0,0,.77778],"8838":[.13597,.63597,0,0,.77778],"8839":[.13597,.63597,0,0,.77778],"8846":[0,.55556,0,0,.66667],"8849":[.13597,.63597,0,0,.77778],"8850":[.13597,.63597,0,0,.77778],"8851":[0,.55556,0,0,.66667],"8852":[0,.55556,0,0,.66667],"8853":[.08333,.58333,0,0,.77778],"8854":[.08333,.58333,0,0,.77778],"8855":[.08333,.58333,0,0,.77778],"8856":[.08333,.58333,0,0,.77778],"8857":[.08333,.58333,0,0,.77778],"8866":[0,.69444,0,0,.61111],"8867":[0,.69444,0,0,.61111],"8868":[0,.69444,0,0,.77778],"8869":[0,.69444,0,0,.77778],"8872":[.249,.75,0,0,.867],"8900":[-.05555,.44445,0,0,.5],"8901":[-.05555,.44445,0,0,.27778],"8902":[-.03472,.46528,0,0,.5],"8904":[.005,.505,0,0,.9],"8942":[.03,.9,0,0,.278],"8943":[-.19,.31,0,0,1.172],"8945":[-.1,.82,0,0,1.282],"8968":[.25,.75,0,0,.44445],"8969":[.25,.75,0,0,.44445],"8970":[.25,.75,0,0,.44445],"8971":[.25,.75,0,0,.44445],"8994":[-.14236,.35764,0,0,1],"8995":[-.14236,.35764,0,0,1],"9136":[.244,.744,0,0,.412],"9137":[.244,.744,0,0,.412],"9651":[.19444,.69444,0,0,.88889],"9657":[-.03472,.46528,0,0,.5],"9661":[.19444,.69444,0,0,.88889],"9667":[-.03472,.46528,0,0,.5],"9711":[.19444,.69444,0,0,1],"9824":[.12963,.69444,0,0,.77778],"9825":[.12963,.69444,0,0,.77778],"9826":[.12963,.69444,0,0,.77778],"9827":[.12963,.69444,0,0,.77778],"9837":[0,.75,0,0,.38889],"9838":[.19444,.69444,0,0,.38889],"9839":[.19444,.69444,0,0,.38889],"10216":[.25,.75,0,0,.38889],"10217":[.25,.75,0,0,.38889],"10222":[.244,.744,0,0,.412],"10223":[.244,.744,0,0,.412],"10229":[.011,.511,0,0,1.609],"10230":[.011,.511,0,0,1.638],"10231":[.011,.511,0,0,1.859],"10232":[.024,.525,0,0,1.609],"10233":[.024,.525,0,0,1.638],"10234":[.024,.525,0,0,1.858],"10236":[.011,.511,0,0,1.638],"10815":[0,.68333,0,0,.75],"10927":[.13597,.63597,0,0,.77778],"10928":[.13597,.63597,0,0,.77778],"57376":[.19444,.69444,0,0,0]},"Math-BoldItalic":{"65":[0,.68611,0,0,.86944],"66":[0,.68611,.04835,0,.8664],"67":[0,.68611,.06979,0,.81694],"68":[0,.68611,.03194,0,.93812],"69":[0,.68611,.05451,0,.81007],"70":[0,.68611,.15972,0,.68889],"71":[0,.68611,0,0,.88673],"72":[0,.68611,.08229,0,.98229],"73":[0,.68611,.07778,0,.51111],"74":[0,.68611,.10069,0,.63125],"75":[0,.68611,.06979,0,.97118],"76":[0,.68611,0,0,.75555],"77":[0,.68611,.11424,0,1.14201],"78":[0,.68611,.11424,0,.95034],"79":[0,.68611,.03194,0,.83666],"80":[0,.68611,.15972,0,.72309],"81":[.19444,.68611,0,0,.86861],"82":[0,.68611,.00421,0,.87235],"83":[0,.68611,.05382,0,.69271],"84":[0,.68611,.15972,0,.63663],"85":[0,.68611,.11424,0,.80027],"86":[0,.68611,.25555,0,.67778],"87":[0,.68611,.15972,0,1.09305],"88":[0,.68611,.07778,0,.94722],"89":[0,.68611,.25555,0,.67458],"90":[0,.68611,.06979,0,.77257],"97":[0,.44444,0,0,.63287],"98":[0,.69444,0,0,.52083],"99":[0,.44444,0,0,.51342],"100":[0,.69444,0,0,.60972],"101":[0,.44444,0,0,.55361],"102":[.19444,.69444,.11042,0,.56806],"103":[.19444,.44444,.03704,0,.5449],"104":[0,.69444,0,0,.66759],"105":[0,.69326,0,0,.4048],"106":[.19444,.69326,.0622,0,.47083],"107":[0,.69444,.01852,0,.6037],"108":[0,.69444,.0088,0,.34815],"109":[0,.44444,0,0,1.0324],"110":[0,.44444,0,0,.71296],"111":[0,.44444,0,0,.58472],"112":[.19444,.44444,0,0,.60092],"113":[.19444,.44444,.03704,0,.54213],"114":[0,.44444,.03194,0,.5287],"115":[0,.44444,0,0,.53125],"116":[0,.63492,0,0,.41528],"117":[0,.44444,0,0,.68102],"118":[0,.44444,.03704,0,.56666],"119":[0,.44444,.02778,0,.83148],"120":[0,.44444,0,0,.65903],"121":[.19444,.44444,.03704,0,.59028],"122":[0,.44444,.04213,0,.55509],"915":[0,.68611,.15972,0,.65694],"916":[0,.68611,0,0,.95833],"920":[0,.68611,.03194,0,.86722],"923":[0,.68611,0,0,.80555],"926":[0,.68611,.07458,0,.84125],"928":[0,.68611,.08229,0,.98229],"931":[0,.68611,.05451,0,.88507],"933":[0,.68611,.15972,0,.67083],"934":[0,.68611,0,0,.76666],"936":[0,.68611,.11653,0,.71402],"937":[0,.68611,.04835,0,.8789],"945":[0,.44444,0,0,.76064],"946":[.19444,.69444,.03403,0,.65972],"947":[.19444,.44444,.06389,0,.59003],"948":[0,.69444,.03819,0,.52222],"949":[0,.44444,0,0,.52882],"950":[.19444,.69444,.06215,0,.50833],"951":[.19444,.44444,.03704,0,.6],"952":[0,.69444,.03194,0,.5618],"953":[0,.44444,0,0,.41204],"954":[0,.44444,0,0,.66759],"955":[0,.69444,0,0,.67083],"956":[.19444,.44444,0,0,.70787],"957":[0,.44444,.06898,0,.57685],"958":[.19444,.69444,.03021,0,.50833],"959":[0,.44444,0,0,.58472],"960":[0,.44444,.03704,0,.68241],"961":[.19444,.44444,0,0,.6118],"962":[.09722,.44444,.07917,0,.42361],"963":[0,.44444,.03704,0,.68588],"964":[0,.44444,.13472,0,.52083],"965":[0,.44444,.03704,0,.63055],"966":[.19444,.44444,0,0,.74722],"967":[.19444,.44444,0,0,.71805],"968":[.19444,.69444,.03704,0,.75833],"969":[0,.44444,.03704,0,.71782],"977":[0,.69444,0,0,.69155],"981":[.19444,.69444,0,0,.7125],"982":[0,.44444,.03194,0,.975],"1009":[.19444,.44444,0,0,.6118],"1013":[0,.44444,0,0,.48333]},"Math-Italic":{"65":[0,.68333,0,.13889,.75],"66":[0,.68333,.05017,.08334,.75851],"67":[0,.68333,.07153,.08334,.71472],"68":[0,.68333,.02778,.05556,.82792],"69":[0,.68333,.05764,.08334,.7382],"70":[0,.68333,.13889,.08334,.64306],"71":[0,.68333,0,.08334,.78625],"72":[0,.68333,.08125,.05556,.83125],"73":[0,.68333,.07847,.11111,.43958],"74":[0,.68333,.09618,.16667,.55451],"75":[0,.68333,.07153,.05556,.84931],"76":[0,.68333,0,.02778,.68056],"77":[0,.68333,.10903,.08334,.97014],"78":[0,.68333,.10903,.08334,.80347],"79":[0,.68333,.02778,.08334,.76278],"80":[0,.68333,.13889,.08334,.64201],"81":[.19444,.68333,0,.08334,.79056],"82":[0,.68333,.00773,.08334,.75929],"83":[0,.68333,.05764,.08334,.6132],"84":[0,.68333,.13889,.08334,.58438],"85":[0,.68333,.10903,.02778,.68278],"86":[0,.68333,.22222,0,.58333],"87":[0,.68333,.13889,0,.94445],"88":[0,.68333,.07847,.08334,.82847],"89":[0,.68333,.22222,0,.58056],"90":[0,.68333,.07153,.08334,.68264],"97":[0,.43056,0,0,.52859],"98":[0,.69444,0,0,.42917],"99":[0,.43056,0,.05556,.43276],"100":[0,.69444,0,.16667,.52049],"101":[0,.43056,0,.05556,.46563],"102":[.19444,.69444,.10764,.16667,.48959],"103":[.19444,.43056,.03588,.02778,.47697],"104":[0,.69444,0,0,.57616],"105":[0,.65952,0,0,.34451],"106":[.19444,.65952,.05724,0,.41181],"107":[0,.69444,.03148,0,.5206],"108":[0,.69444,.01968,.08334,.29838],"109":[0,.43056,0,0,.87801],"110":[0,.43056,0,0,.60023],"111":[0,.43056,0,.05556,.48472],"112":[.19444,.43056,0,.08334,.50313],"113":[.19444,.43056,.03588,.08334,.44641],"114":[0,.43056,.02778,.05556,.45116],"115":[0,.43056,0,.05556,.46875],"116":[0,.61508,0,.08334,.36111],"117":[0,.43056,0,.02778,.57246],"118":[0,.43056,.03588,.02778,.48472],"119":[0,.43056,.02691,.08334,.71592],"120":[0,.43056,0,.02778,.57153],"121":[.19444,.43056,.03588,.05556,.49028],"122":[0,.43056,.04398,.05556,.46505],"915":[0,.68333,.13889,.08334,.61528],"916":[0,.68333,0,.16667,.83334],"920":[0,.68333,.02778,.08334,.76278],"923":[0,.68333,0,.16667,.69445],"926":[0,.68333,.07569,.08334,.74236],"928":[0,.68333,.08125,.05556,.83125],"931":[0,.68333,.05764,.08334,.77986],"933":[0,.68333,.13889,.05556,.58333],"934":[0,.68333,0,.08334,.66667],"936":[0,.68333,.11,.05556,.61222],"937":[0,.68333,.05017,.08334,.7724],"945":[0,.43056,.0037,.02778,.6397],"946":[.19444,.69444,.05278,.08334,.56563],"947":[.19444,.43056,.05556,0,.51773],"948":[0,.69444,.03785,.05556,.44444],"949":[0,.43056,0,.08334,.46632],"950":[.19444,.69444,.07378,.08334,.4375],"951":[.19444,.43056,.03588,.05556,.49653],"952":[0,.69444,.02778,.08334,.46944],"953":[0,.43056,0,.05556,.35394],"954":[0,.43056,0,0,.57616],"955":[0,.69444,0,0,.58334],"956":[.19444,.43056,0,.02778,.60255],"957":[0,.43056,.06366,.02778,.49398],"958":[.19444,.69444,.04601,.11111,.4375],"959":[0,.43056,0,.05556,.48472],"960":[0,.43056,.03588,0,.57003],"961":[.19444,.43056,0,.08334,.51702],"962":[.09722,.43056,.07986,.08334,.36285],"963":[0,.43056,.03588,0,.57141],"964":[0,.43056,.1132,.02778,.43715],"965":[0,.43056,.03588,.02778,.54028],"966":[.19444,.43056,0,.08334,.65417],"967":[.19444,.43056,0,.05556,.62569],"968":[.19444,.69444,.03588,.11111,.65139],"969":[0,.43056,.03588,0,.62245],"977":[0,.69444,0,.08334,.59144],"981":[.19444,.69444,0,.08334,.59583],"982":[0,.43056,.02778,0,.82813],"1009":[.19444,.43056,0,.08334,.51702],"1013":[0,.43056,0,.05556,.4059]},"Math-Regular":{"65":[0,.68333,0,.13889,.75],"66":[0,.68333,.05017,.08334,.75851],"67":[0,.68333,.07153,.08334,.71472],"68":[0,.68333,.02778,.05556,.82792],"69":[0,.68333,.05764,.08334,.7382],"70":[0,.68333,.13889,.08334,.64306],"71":[0,.68333,0,.08334,.78625],"72":[0,.68333,.08125,.05556,.83125],"73":[0,.68333,.07847,.11111,.43958],"74":[0,.68333,.09618,.16667,.55451],"75":[0,.68333,.07153,.05556,.84931],"76":[0,.68333,0,.02778,.68056],"77":[0,.68333,.10903,.08334,.97014],"78":[0,.68333,.10903,.08334,.80347],"79":[0,.68333,.02778,.08334,.76278],"80":[0,.68333,.13889,.08334,.64201],"81":[.19444,.68333,0,.08334,.79056],"82":[0,.68333,.00773,.08334,.75929],"83":[0,.68333,.05764,.08334,.6132],"84":[0,.68333,.13889,.08334,.58438],"85":[0,.68333,.10903,.02778,.68278],"86":[0,.68333,.22222,0,.58333],"87":[0,.68333,.13889,0,.94445],"88":[0,.68333,.07847,.08334,.82847],"89":[0,.68333,.22222,0,.58056],"90":[0,.68333,.07153,.08334,.68264],"97":[0,.43056,0,0,.52859],"98":[0,.69444,0,0,.42917],"99":[0,.43056,0,.05556,.43276],"100":[0,.69444,0,.16667,.52049],"101":[0,.43056,0,.05556,.46563],"102":[.19444,.69444,.10764,.16667,.48959],"103":[.19444,.43056,.03588,.02778,.47697],"104":[0,.69444,0,0,.57616],"105":[0,.65952,0,0,.34451],"106":[.19444,.65952,.05724,0,.41181],"107":[0,.69444,.03148,0,.5206],"108":[0,.69444,.01968,.08334,.29838],"109":[0,.43056,0,0,.87801],"110":[0,.43056,0,0,.60023],"111":[0,.43056,0,.05556,.48472],"112":[.19444,.43056,0,.08334,.50313],"113":[.19444,.43056,.03588,.08334,.44641],"114":[0,.43056,.02778,.05556,.45116],"115":[0,.43056,0,.05556,.46875],"116":[0,.61508,0,.08334,.36111],"117":[0,.43056,0,.02778,.57246],"118":[0,.43056,.03588,.02778,.48472],"119":[0,.43056,.02691,.08334,.71592],"120":[0,.43056,0,.02778,.57153],"121":[.19444,.43056,.03588,.05556,.49028],"122":[0,.43056,.04398,.05556,.46505],"915":[0,.68333,.13889,.08334,.61528],"916":[0,.68333,0,.16667,.83334],"920":[0,.68333,.02778,.08334,.76278],"923":[0,.68333,0,.16667,.69445],"926":[0,.68333,.07569,.08334,.74236],"928":[0,.68333,.08125,.05556,.83125],"931":[0,.68333,.05764,.08334,.77986],"933":[0,.68333,.13889,.05556,.58333],"934":[0,.68333,0,.08334,.66667],"936":[0,.68333,.11,.05556,.61222],"937":[0,.68333,.05017,.08334,.7724],"945":[0,.43056,.0037,.02778,.6397],"946":[.19444,.69444,.05278,.08334,.56563],"947":[.19444,.43056,.05556,0,.51773],"948":[0,.69444,.03785,.05556,.44444],"949":[0,.43056,0,.08334,.46632],"950":[.19444,.69444,.07378,.08334,.4375],"951":[.19444,.43056,.03588,.05556,.49653],"952":[0,.69444,.02778,.08334,.46944],"953":[0,.43056,0,.05556,.35394],"954":[0,.43056,0,0,.57616],"955":[0,.69444,0,0,.58334],"956":[.19444,.43056,0,.02778,.60255],"957":[0,.43056,.06366,.02778,.49398],"958":[.19444,.69444,.04601,.11111,.4375],"959":[0,.43056,0,.05556,.48472],"960":[0,.43056,.03588,0,.57003],"961":[.19444,.43056,0,.08334,.51702],"962":[.09722,.43056,.07986,.08334,.36285],"963":[0,.43056,.03588,0,.57141],"964":[0,.43056,.1132,.02778,.43715],"965":[0,.43056,.03588,.02778,.54028],"966":[.19444,.43056,0,.08334,.65417],"967":[.19444,.43056,0,.05556,.62569],"968":[.19444,.69444,.03588,.11111,.65139],"969":[0,.43056,.03588,0,.62245],"977":[0,.69444,0,.08334,.59144],"981":[.19444,.69444,0,.08334,.59583],"982":[0,.43056,.02778,0,.82813],"1009":[.19444,.43056,0,.08334,.51702],"1013":[0,.43056,0,.05556,.4059]},"SansSerif-Bold":{"33":[0,.69444,0,0,.36667],"34":[0,.69444,0,0,.55834],"35":[.19444,.69444,0,0,.91667],"36":[.05556,.75,0,0,.55],"37":[.05556,.75,0,0,1.02912],"38":[0,.69444,0,0,.83056],"39":[0,.69444,0,0,.30556],"40":[.25,.75,0,0,.42778],"41":[.25,.75,0,0,.42778],"42":[0,.75,0,0,.55],"43":[.11667,.61667,0,0,.85556],"44":[.10556,.13056,0,0,.30556],"45":[0,.45833,0,0,.36667],"46":[0,.13056,0,0,.30556],"47":[.25,.75,0,0,.55],"48":[0,.69444,0,0,.55],"49":[0,.69444,0,0,.55],"50":[0,.69444,0,0,.55],"51":[0,.69444,0,0,.55],"52":[0,.69444,0,0,.55],"53":[0,.69444,0,0,.55],"54":[0,.69444,0,0,.55],"55":[0,.69444,0,0,.55],"56":[0,.69444,0,0,.55],"57":[0,.69444,0,0,.55],"58":[0,.45833,0,0,.30556],"59":[.10556,.45833,0,0,.30556],"61":[-.09375,.40625,0,0,.85556],"63":[0,.69444,0,0,.51945],"64":[0,.69444,0,0,.73334],"65":[0,.69444,0,0,.73334],"66":[0,.69444,0,0,.73334],"67":[0,.69444,0,0,.70278],"68":[0,.69444,0,0,.79445],"69":[0,.69444,0,0,.64167],"70":[0,.69444,0,0,.61111],"71":[0,.69444,0,0,.73334],"72":[0,.69444,0,0,.79445],"73":[0,.69444,0,0,.33056],"74":[0,.69444,0,0,.51945],"75":[0,.69444,0,0,.76389],"76":[0,.69444,0,0,.58056],"77":[0,.69444,0,0,.97778],"78":[0,.69444,0,0,.79445],"79":[0,.69444,0,0,.79445],"80":[0,.69444,0,0,.70278],"81":[.10556,.69444,0,0,.79445],"82":[0,.69444,0,0,.70278],"83":[0,.69444,0,0,.61111],"84":[0,.69444,0,0,.73334],"85":[0,.69444,0,0,.76389],"86":[0,.69444,.01528,0,.73334],"87":[0,.69444,.01528,0,1.03889],"88":[0,.69444,0,0,.73334],"89":[0,.69444,.0275,0,.73334],"90":[0,.69444,0,0,.67223],"91":[.25,.75,0,0,.34306],"93":[.25,.75,0,0,.34306],"94":[0,.69444,0,0,.55],"95":[.35,.10833,.03056,0,.55],"97":[0,.45833,0,0,.525],"98":[0,.69444,0,0,.56111],"99":[0,.45833,0,0,.48889],"100":[0,.69444,0,0,.56111],"101":[0,.45833,0,0,.51111],"102":[0,.69444,.07639,0,.33611],"103":[.19444,.45833,.01528,0,.55],"104":[0,.69444,0,0,.56111],"105":[0,.69444,0,0,.25556],"106":[.19444,.69444,0,0,.28611],"107":[0,.69444,0,0,.53056],"108":[0,.69444,0,0,.25556],"109":[0,.45833,0,0,.86667],"110":[0,.45833,0,0,.56111],"111":[0,.45833,0,0,.55],"112":[.19444,.45833,0,0,.56111],"113":[.19444,.45833,0,0,.56111],"114":[0,.45833,.01528,0,.37222],"115":[0,.45833,0,0,.42167],"116":[0,.58929,0,0,.40417],"117":[0,.45833,0,0,.56111],"118":[0,.45833,.01528,0,.5],"119":[0,.45833,.01528,0,.74445],"120":[0,.45833,0,0,.5],"121":[.19444,.45833,.01528,0,.5],"122":[0,.45833,0,0,.47639],"126":[.35,.34444,0,0,.55],"168":[0,.69444,0,0,.55],"176":[0,.69444,0,0,.73334],"180":[0,.69444,0,0,.55],"184":[.17014,0,0,0,.48889],"305":[0,.45833,0,0,.25556],"567":[.19444,.45833,0,0,.28611],"710":[0,.69444,0,0,.55],"711":[0,.63542,0,0,.55],"713":[0,.63778,0,0,.55],"728":[0,.69444,0,0,.55],"729":[0,.69444,0,0,.30556],"730":[0,.69444,0,0,.73334],"732":[0,.69444,0,0,.55],"733":[0,.69444,0,0,.55],"915":[0,.69444,0,0,.58056],"916":[0,.69444,0,0,.91667],"920":[0,.69444,0,0,.85556],"923":[0,.69444,0,0,.67223],"926":[0,.69444,0,0,.73334],"928":[0,.69444,0,0,.79445],"931":[0,.69444,0,0,.79445],"933":[0,.69444,0,0,.85556],"934":[0,.69444,0,0,.79445],"936":[0,.69444,0,0,.85556],"937":[0,.69444,0,0,.79445],"8211":[0,.45833,.03056,0,.55],"8212":[0,.45833,.03056,0,1.10001],"8216":[0,.69444,0,0,.30556],"8217":[0,.69444,0,0,.30556],"8220":[0,.69444,0,0,.55834],"8221":[0,.69444,0,0,.55834]},"SansSerif-Italic":{"33":[0,.69444,.05733,0,.31945],"34":[0,.69444,.00316,0,.5],"35":[.19444,.69444,.05087,0,.83334],"36":[.05556,.75,.11156,0,.5],"37":[.05556,.75,.03126,0,.83334],"38":[0,.69444,.03058,0,.75834],"39":[0,.69444,.07816,0,.27778],"40":[.25,.75,.13164,0,.38889],"41":[.25,.75,.02536,0,.38889],"42":[0,.75,.11775,0,.5],"43":[.08333,.58333,.02536,0,.77778],"44":[.125,.08333,0,0,.27778],"45":[0,.44444,.01946,0,.33333],"46":[0,.08333,0,0,.27778],"47":[.25,.75,.13164,0,.5],"48":[0,.65556,.11156,0,.5],"49":[0,.65556,.11156,0,.5],"50":[0,.65556,.11156,0,.5],"51":[0,.65556,.11156,0,.5],"52":[0,.65556,.11156,0,.5],"53":[0,.65556,.11156,0,.5],"54":[0,.65556,.11156,0,.5],"55":[0,.65556,.11156,0,.5],"56":[0,.65556,.11156,0,.5],"57":[0,.65556,.11156,0,.5],"58":[0,.44444,.02502,0,.27778],"59":[.125,.44444,.02502,0,.27778],"61":[-.13,.37,.05087,0,.77778],"63":[0,.69444,.11809,0,.47222],"64":[0,.69444,.07555,0,.66667],"65":[0,.69444,0,0,.66667],"66":[0,.69444,.08293,0,.66667],"67":[0,.69444,.11983,0,.63889],"68":[0,.69444,.07555,0,.72223],"69":[0,.69444,.11983,0,.59722],"70":[0,.69444,.13372,0,.56945],"71":[0,.69444,.11983,0,.66667],"72":[0,.69444,.08094,0,.70834],"73":[0,.69444,.13372,0,.27778],"74":[0,.69444,.08094,0,.47222],"75":[0,.69444,.11983,0,.69445],"76":[0,.69444,0,0,.54167],"77":[0,.69444,.08094,0,.875],"78":[0,.69444,.08094,0,.70834],"79":[0,.69444,.07555,0,.73611],"80":[0,.69444,.08293,0,.63889],"81":[.125,.69444,.07555,0,.73611],"82":[0,.69444,.08293,0,.64584],"83":[0,.69444,.09205,0,.55556],"84":[0,.69444,.13372,0,.68056],"85":[0,.69444,.08094,0,.6875],"86":[0,.69444,.1615,0,.66667],"87":[0,.69444,.1615,0,.94445],"88":[0,.69444,.13372,0,.66667],"89":[0,.69444,.17261,0,.66667],"90":[0,.69444,.11983,0,.61111],"91":[.25,.75,.15942,0,.28889],"93":[.25,.75,.08719,0,.28889],"94":[0,.69444,.0799,0,.5],"95":[.35,.09444,.08616,0,.5],"97":[0,.44444,.00981,0,.48056],"98":[0,.69444,.03057,0,.51667],"99":[0,.44444,.08336,0,.44445],"100":[0,.69444,.09483,0,.51667],"101":[0,.44444,.06778,0,.44445],"102":[0,.69444,.21705,0,.30556],"103":[.19444,.44444,.10836,0,.5],"104":[0,.69444,.01778,0,.51667],"105":[0,.67937,.09718,0,.23889],"106":[.19444,.67937,.09162,0,.26667],"107":[0,.69444,.08336,0,.48889],"108":[0,.69444,.09483,0,.23889],"109":[0,.44444,.01778,0,.79445],"110":[0,.44444,.01778,0,.51667],"111":[0,.44444,.06613,0,.5],"112":[.19444,.44444,.0389,0,.51667],"113":[.19444,.44444,.04169,0,.51667],"114":[0,.44444,.10836,0,.34167],"115":[0,.44444,.0778,0,.38333],"116":[0,.57143,.07225,0,.36111],"117":[0,.44444,.04169,0,.51667],"118":[0,.44444,.10836,0,.46111],"119":[0,.44444,.10836,0,.68334],"120":[0,.44444,.09169,0,.46111],"121":[.19444,.44444,.10836,0,.46111],"122":[0,.44444,.08752,0,.43472],"126":[.35,.32659,.08826,0,.5],"168":[0,.67937,.06385,0,.5],"176":[0,.69444,0,0,.73752],"184":[.17014,0,0,0,.44445],"305":[0,.44444,.04169,0,.23889],"567":[.19444,.44444,.04169,0,.26667],"710":[0,.69444,.0799,0,.5],"711":[0,.63194,.08432,0,.5],"713":[0,.60889,.08776,0,.5],"714":[0,.69444,.09205,0,.5],"715":[0,.69444,0,0,.5],"728":[0,.69444,.09483,0,.5],"729":[0,.67937,.07774,0,.27778],"730":[0,.69444,0,0,.73752],"732":[0,.67659,.08826,0,.5],"733":[0,.69444,.09205,0,.5],"915":[0,.69444,.13372,0,.54167],"916":[0,.69444,0,0,.83334],"920":[0,.69444,.07555,0,.77778],"923":[0,.69444,0,0,.61111],"926":[0,.69444,.12816,0,.66667],"928":[0,.69444,.08094,0,.70834],"931":[0,.69444,.11983,0,.72222],"933":[0,.69444,.09031,0,.77778],"934":[0,.69444,.04603,0,.72222],"936":[0,.69444,.09031,0,.77778],"937":[0,.69444,.08293,0,.72222],"8211":[0,.44444,.08616,0,.5],"8212":[0,.44444,.08616,0,1],"8216":[0,.69444,.07816,0,.27778],"8217":[0,.69444,.07816,0,.27778],"8220":[0,.69444,.14205,0,.5],"8221":[0,.69444,.00316,0,.5]},"SansSerif-Regular":{"33":[0,.69444,0,0,.31945],"34":[0,.69444,0,0,.5],"35":[.19444,.69444,0,0,.83334],"36":[.05556,.75,0,0,.5],"37":[.05556,.75,0,0,.83334],"38":[0,.69444,0,0,.75834],"39":[0,.69444,0,0,.27778],"40":[.25,.75,0,0,.38889],"41":[.25,.75,0,0,.38889],"42":[0,.75,0,0,.5],"43":[.08333,.58333,0,0,.77778],"44":[.125,.08333,0,0,.27778],"45":[0,.44444,0,0,.33333],"46":[0,.08333,0,0,.27778],"47":[.25,.75,0,0,.5],"48":[0,.65556,0,0,.5],"49":[0,.65556,0,0,.5],"50":[0,.65556,0,0,.5],"51":[0,.65556,0,0,.5],"52":[0,.65556,0,0,.5],"53":[0,.65556,0,0,.5],"54":[0,.65556,0,0,.5],"55":[0,.65556,0,0,.5],"56":[0,.65556,0,0,.5],"57":[0,.65556,0,0,.5],"58":[0,.44444,0,0,.27778],"59":[.125,.44444,0,0,.27778],"61":[-.13,.37,0,0,.77778],"63":[0,.69444,0,0,.47222],"64":[0,.69444,0,0,.66667],"65":[0,.69444,0,0,.66667],"66":[0,.69444,0,0,.66667],"67":[0,.69444,0,0,.63889],"68":[0,.69444,0,0,.72223],"69":[0,.69444,0,0,.59722],"70":[0,.69444,0,0,.56945],"71":[0,.69444,0,0,.66667],"72":[0,.69444,0,0,.70834],"73":[0,.69444,0,0,.27778],"74":[0,.69444,0,0,.47222],"75":[0,.69444,0,0,.69445],"76":[0,.69444,0,0,.54167],"77":[0,.69444,0,0,.875],"78":[0,.69444,0,0,.70834],"79":[0,.69444,0,0,.73611],"80":[0,.69444,0,0,.63889],"81":[.125,.69444,0,0,.73611],"82":[0,.69444,0,0,.64584],"83":[0,.69444,0,0,.55556],"84":[0,.69444,0,0,.68056],"85":[0,.69444,0,0,.6875],"86":[0,.69444,.01389,0,.66667],"87":[0,.69444,.01389,0,.94445],"88":[0,.69444,0,0,.66667],"89":[0,.69444,.025,0,.66667],"90":[0,.69444,0,0,.61111],"91":[.25,.75,0,0,.28889],"93":[.25,.75,0,0,.28889],"94":[0,.69444,0,0,.5],"95":[.35,.09444,.02778,0,.5],"97":[0,.44444,0,0,.48056],"98":[0,.69444,0,0,.51667],"99":[0,.44444,0,0,.44445],"100":[0,.69444,0,0,.51667],"101":[0,.44444,0,0,.44445],"102":[0,.69444,.06944,0,.30556],"103":[.19444,.44444,.01389,0,.5],"104":[0,.69444,0,0,.51667],"105":[0,.67937,0,0,.23889],"106":[.19444,.67937,0,0,.26667],"107":[0,.69444,0,0,.48889],"108":[0,.69444,0,0,.23889],"109":[0,.44444,0,0,.79445],"110":[0,.44444,0,0,.51667],"111":[0,.44444,0,0,.5],"112":[.19444,.44444,0,0,.51667],"113":[.19444,.44444,0,0,.51667],"114":[0,.44444,.01389,0,.34167],"115":[0,.44444,0,0,.38333],"116":[0,.57143,0,0,.36111],"117":[0,.44444,0,0,.51667],"118":[0,.44444,.01389,0,.46111],"119":[0,.44444,.01389,0,.68334],"120":[0,.44444,0,0,.46111],"121":[.19444,.44444,.01389,0,.46111],"122":[0,.44444,0,0,.43472],"126":[.35,.32659,0,0,.5],"168":[0,.67937,0,0,.5],"176":[0,.69444,0,0,.66667],"184":[.17014,0,0,0,.44445],"305":[0,.44444,0,0,.23889],"567":[.19444,.44444,0,0,.26667],"710":[0,.69444,0,0,.5],"711":[0,.63194,0,0,.5],"713":[0,.60889,0,0,.5],"714":[0,.69444,0,0,.5],"715":[0,.69444,0,0,.5],"728":[0,.69444,0,0,.5],"729":[0,.67937,0,0,.27778],"730":[0,.69444,0,0,.66667],"732":[0,.67659,0,0,.5],"733":[0,.69444,0,0,.5],"915":[0,.69444,0,0,.54167],"916":[0,.69444,0,0,.83334],"920":[0,.69444,0,0,.77778],"923":[0,.69444,0,0,.61111],"926":[0,.69444,0,0,.66667],"928":[0,.69444,0,0,.70834],"931":[0,.69444,0,0,.72222],"933":[0,.69444,0,0,.77778],"934":[0,.69444,0,0,.72222],"936":[0,.69444,0,0,.77778],"937":[0,.69444,0,0,.72222],"8211":[0,.44444,.02778,0,.5],"8212":[0,.44444,.02778,0,1],"8216":[0,.69444,0,0,.27778],"8217":[0,.69444,0,0,.27778],"8220":[0,.69444,0,0,.5],"8221":[0,.69444,0,0,.5]},"Script-Regular":{"65":[0,.7,.22925,0,.80253],"66":[0,.7,.04087,0,.90757],"67":[0,.7,.1689,0,.66619],"68":[0,.7,.09371,0,.77443],"69":[0,.7,.18583,0,.56162],"70":[0,.7,.13634,0,.89544],"71":[0,.7,.17322,0,.60961],"72":[0,.7,.29694,0,.96919],"73":[0,.7,.19189,0,.80907],"74":[.27778,.7,.19189,0,1.05159],"75":[0,.7,.31259,0,.91364],"76":[0,.7,.19189,0,.87373],"77":[0,.7,.15981,0,1.08031],"78":[0,.7,.3525,0,.9015],"79":[0,.7,.08078,0,.73787],"80":[0,.7,.08078,0,1.01262],"81":[0,.7,.03305,0,.88282],"82":[0,.7,.06259,0,.85],"83":[0,.7,.19189,0,.86767],"84":[0,.7,.29087,0,.74697],"85":[0,.7,.25815,0,.79996],"86":[0,.7,.27523,0,.62204],"87":[0,.7,.27523,0,.80532],"88":[0,.7,.26006,0,.94445],"89":[0,.7,.2939,0,.70961],"90":[0,.7,.24037,0,.8212]},"Size1-Regular":{"40":[.35001,.85,0,0,.45834],"41":[.35001,.85,0,0,.45834],"47":[.35001,.85,0,0,.57778],"91":[.35001,.85,0,0,.41667],"92":[.35001,.85,0,0,.57778],"93":[.35001,.85,0,0,.41667],"123":[.35001,.85,0,0,.58334],"125":[.35001,.85,0,0,.58334],"710":[0,.72222,0,0,.55556],"732":[0,.72222,0,0,.55556],"770":[0,.72222,0,0,.55556],"771":[0,.72222,0,0,.55556],"8214":[-99e-5,.601,0,0,.77778],"8593":[1e-5,.6,0,0,.66667],"8595":[1e-5,.6,0,0,.66667],"8657":[1e-5,.6,0,0,.77778],"8659":[1e-5,.6,0,0,.77778],"8719":[.25001,.75,0,0,.94445],"8720":[.25001,.75,0,0,.94445],"8721":[.25001,.75,0,0,1.05556],"8730":[.35001,.85,0,0,1],"8739":[-.00599,.606,0,0,.33333],"8741":[-.00599,.606,0,0,.55556],"8747":[.30612,.805,.19445,0,.47222],"8748":[.306,.805,.19445,0,.47222],"8749":[.306,.805,.19445,0,.47222],"8750":[.30612,.805,.19445,0,.47222],"8896":[.25001,.75,0,0,.83334],"8897":[.25001,.75,0,0,.83334],"8898":[.25001,.75,0,0,.83334],"8899":[.25001,.75,0,0,.83334],"8968":[.35001,.85,0,0,.47222],"8969":[.35001,.85,0,0,.47222],"8970":[.35001,.85,0,0,.47222],"8971":[.35001,.85,0,0,.47222],"9168":[-99e-5,.601,0,0,.66667],"10216":[.35001,.85,0,0,.47222],"10217":[.35001,.85,0,0,.47222],"10752":[.25001,.75,0,0,1.11111],"10753":[.25001,.75,0,0,1.11111],"10754":[.25001,.75,0,0,1.11111],"10756":[.25001,.75,0,0,.83334],"10758":[.25001,.75,0,0,.83334]},"Size2-Regular":{"40":[.65002,1.15,0,0,.59722],"41":[.65002,1.15,0,0,.59722],"47":[.65002,1.15,0,0,.81111],"91":[.65002,1.15,0,0,.47222],"92":[.65002,1.15,0,0,.81111],"93":[.65002,1.15,0,0,.47222],"123":[.65002,1.15,0,0,.66667],"125":[.65002,1.15,0,0,.66667],"710":[0,.75,0,0,1],"732":[0,.75,0,0,1],"770":[0,.75,0,0,1],"771":[0,.75,0,0,1],"8719":[.55001,1.05,0,0,1.27778],"8720":[.55001,1.05,0,0,1.27778],"8721":[.55001,1.05,0,0,1.44445],"8730":[.65002,1.15,0,0,1],"8747":[.86225,1.36,.44445,0,.55556],"8748":[.862,1.36,.44445,0,.55556],"8749":[.862,1.36,.44445,0,.55556],"8750":[.86225,1.36,.44445,0,.55556],"8896":[.55001,1.05,0,0,1.11111],"8897":[.55001,1.05,0,0,1.11111],"8898":[.55001,1.05,0,0,1.11111],"8899":[.55001,1.05,0,0,1.11111],"8968":[.65002,1.15,0,0,.52778],"8969":[.65002,1.15,0,0,.52778],"8970":[.65002,1.15,0,0,.52778],"8971":[.65002,1.15,0,0,.52778],"10216":[.65002,1.15,0,0,.61111],"10217":[.65002,1.15,0,0,.61111],"10752":[.55001,1.05,0,0,1.51112],"10753":[.55001,1.05,0,0,1.51112],"10754":[.55001,1.05,0,0,1.51112],"10756":[.55001,1.05,0,0,1.11111],"10758":[.55001,1.05,0,0,1.11111]},"Size3-Regular":{"40":[.95003,1.45,0,0,.73611],"41":[.95003,1.45,0,0,.73611],"47":[.95003,1.45,0,0,1.04445],"91":[.95003,1.45,0,0,.52778],"92":[.95003,1.45,0,0,1.04445],"93":[.95003,1.45,0,0,.52778],"123":[.95003,1.45,0,0,.75],"125":[.95003,1.45,0,0,.75],"710":[0,.75,0,0,1.44445],"732":[0,.75,0,0,1.44445],"770":[0,.75,0,0,1.44445],"771":[0,.75,0,0,1.44445],"8730":[.95003,1.45,0,0,1],"8968":[.95003,1.45,0,0,.58334],"8969":[.95003,1.45,0,0,.58334],"8970":[.95003,1.45,0,0,.58334],"8971":[.95003,1.45,0,0,.58334],"10216":[.95003,1.45,0,0,.75],"10217":[.95003,1.45,0,0,.75]},"Size4-Regular":{"40":[1.25003,1.75,0,0,.79167],"41":[1.25003,1.75,0,0,.79167],"47":[1.25003,1.75,0,0,1.27778],"91":[1.25003,1.75,0,0,.58334],"92":[1.25003,1.75,0,0,1.27778],"93":[1.25003,1.75,0,0,.58334],"123":[1.25003,1.75,0,0,.80556],"125":[1.25003,1.75,0,0,.80556],"710":[0,.825,0,0,1.8889],"732":[0,.825,0,0,1.8889],"770":[0,.825,0,0,1.8889],"771":[0,.825,0,0,1.8889],"8730":[1.25003,1.75,0,0,1],"8968":[1.25003,1.75,0,0,.63889],"8969":[1.25003,1.75,0,0,.63889],"8970":[1.25003,1.75,0,0,.63889],"8971":[1.25003,1.75,0,0,.63889],"9115":[.64502,1.155,0,0,.875],"9116":[1e-5,.6,0,0,.875],"9117":[.64502,1.155,0,0,.875],"9118":[.64502,1.155,0,0,.875],"9119":[1e-5,.6,0,0,.875],"9120":[.64502,1.155,0,0,.875],"9121":[.64502,1.155,0,0,.66667],"9122":[-99e-5,.601,0,0,.66667],"9123":[.64502,1.155,0,0,.66667],"9124":[.64502,1.155,0,0,.66667],"9125":[-99e-5,.601,0,0,.66667],"9126":[.64502,1.155,0,0,.66667],"9127":[1e-5,.9,0,0,.88889],"9128":[.65002,1.15,0,0,.88889],"9129":[.90001,0,0,0,.88889],"9130":[0,.3,0,0,.88889],"9131":[1e-5,.9,0,0,.88889],"9132":[.65002,1.15,0,0,.88889],"9133":[.90001,0,0,0,.88889],"9143":[.88502,.915,0,0,1.05556],"10216":[1.25003,1.75,0,0,.80556],"10217":[1.25003,1.75,0,0,.80556],"57344":[-.00499,.605,0,0,1.05556],"57345":[-.00499,.605,0,0,1.05556],"57680":[0,.12,0,0,.45],"57681":[0,.12,0,0,.45],"57682":[0,.12,0,0,.45],"57683":[0,.12,0,0,.45]},"Typewriter-Regular":{"32":[0,0,0,0,.525],"33":[0,.61111,0,0,.525],"34":[0,.61111,0,0,.525],"35":[0,.61111,0,0,.525],"36":[.08333,.69444,0,0,.525],"37":[.08333,.69444,0,0,.525],"38":[0,.61111,0,0,.525],"39":[0,.61111,0,0,.525],"40":[.08333,.69444,0,0,.525],"41":[.08333,.69444,0,0,.525],"42":[0,.52083,0,0,.525],"43":[-.08056,.53055,0,0,.525],"44":[.13889,.125,0,0,.525],"45":[-.08056,.53055,0,0,.525],"46":[0,.125,0,0,.525],"47":[.08333,.69444,0,0,.525],"48":[0,.61111,0,0,.525],"49":[0,.61111,0,0,.525],"50":[0,.61111,0,0,.525],"51":[0,.61111,0,0,.525],"52":[0,.61111,0,0,.525],"53":[0,.61111,0,0,.525],"54":[0,.61111,0,0,.525],"55":[0,.61111,0,0,.525],"56":[0,.61111,0,0,.525],"57":[0,.61111,0,0,.525],"58":[0,.43056,0,0,.525],"59":[.13889,.43056,0,0,.525],"60":[-.05556,.55556,0,0,.525],"61":[-.19549,.41562,0,0,.525],"62":[-.05556,.55556,0,0,.525],"63":[0,.61111,0,0,.525],"64":[0,.61111,0,0,.525],"65":[0,.61111,0,0,.525],"66":[0,.61111,0,0,.525],"67":[0,.61111,0,0,.525],"68":[0,.61111,0,0,.525],"69":[0,.61111,0,0,.525],"70":[0,.61111,0,0,.525],"71":[0,.61111,0,0,.525],"72":[0,.61111,0,0,.525],"73":[0,.61111,0,0,.525],"74":[0,.61111,0,0,.525],"75":[0,.61111,0,0,.525],"76":[0,.61111,0,0,.525],"77":[0,.61111,0,0,.525],"78":[0,.61111,0,0,.525],"79":[0,.61111,0,0,.525],"80":[0,.61111,0,0,.525],"81":[.13889,.61111,0,0,.525],"82":[0,.61111,0,0,.525],"83":[0,.61111,0,0,.525],"84":[0,.61111,0,0,.525],"85":[0,.61111,0,0,.525],"86":[0,.61111,0,0,.525],"87":[0,.61111,0,0,.525],"88":[0,.61111,0,0,.525],"89":[0,.61111,0,0,.525],"90":[0,.61111,0,0,.525],"91":[.08333,.69444,0,0,.525],"92":[.08333,.69444,0,0,.525],"93":[.08333,.69444,0,0,.525],"94":[0,.61111,0,0,.525],"95":[.09514,0,0,0,.525],"96":[0,.61111,0,0,.525],"97":[0,.43056,0,0,.525],"98":[0,.61111,0,0,.525],"99":[0,.43056,0,0,.525],"100":[0,.61111,0,0,.525],"101":[0,.43056,0,0,.525],"102":[0,.61111,0,0,.525],"103":[.22222,.43056,0,0,.525],"104":[0,.61111,0,0,.525],"105":[0,.61111,0,0,.525],"106":[.22222,.61111,0,0,.525],"107":[0,.61111,0,0,.525],"108":[0,.61111,0,0,.525],"109":[0,.43056,0,0,.525],"110":[0,.43056,0,0,.525],"111":[0,.43056,0,0,.525],"112":[.22222,.43056,0,0,.525],"113":[.22222,.43056,0,0,.525],"114":[0,.43056,0,0,.525],"115":[0,.43056,0,0,.525],"116":[0,.55358,0,0,.525],"117":[0,.43056,0,0,.525],"118":[0,.43056,0,0,.525],"119":[0,.43056,0,0,.525],"120":[0,.43056,0,0,.525],"121":[.22222,.43056,0,0,.525],"122":[0,.43056,0,0,.525],"123":[.08333,.69444,0,0,.525],"124":[.08333,.69444,0,0,.525],"125":[.08333,.69444,0,0,.525],"126":[0,.61111,0,0,.525],"127":[0,.61111,0,0,.525],"160":[0,0,0,0,.525],"176":[0,.61111,0,0,.525],"184":[.19445,0,0,0,.525],"305":[0,.43056,0,0,.525],"567":[.22222,.43056,0,0,.525],"711":[0,.56597,0,0,.525],"713":[0,.56555,0,0,.525],"714":[0,.61111,0,0,.525],"715":[0,.61111,0,0,.525],"728":[0,.61111,0,0,.525],"730":[0,.61111,0,0,.525],"770":[0,.61111,0,0,.525],"771":[0,.61111,0,0,.525],"776":[0,.61111,0,0,.525],"915":[0,.61111,0,0,.525],"916":[0,.61111,0,0,.525],"920":[0,.61111,0,0,.525],"923":[0,.61111,0,0,.525],"926":[0,.61111,0,0,.525],"928":[0,.61111,0,0,.525],"931":[0,.61111,0,0,.525],"933":[0,.61111,0,0,.525],"934":[0,.61111,0,0,.525],"936":[0,.61111,0,0,.525],"937":[0,.61111,0,0,.525],"8216":[0,.61111,0,0,.525],"8217":[0,.61111,0,0,.525],"8242":[0,.61111,0,0,.525],"9251":[.11111,.21944,0,0,.525]}},qe={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]},Le={\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 Ot(ut,ne){gt[ut]=ne}function $e(ut,ne,pe){if(!gt[ne])throw new Error("Font metrics not found for font: "+ne+".");var be=ut.charCodeAt(0),je=gt[ne][be];if(!je&&ut[0]in Le&&(be=Le[ut[0]].charCodeAt(0),je=gt[ne][be]),!je&&pe==="text"&&(J(be)&&(je=gt[ne][77])),je)return{depth:je[0],height:je[1],italic:je[2],skew:je[3],width:je[4]}}var xt={};function Ht(ut){var ne;if(ut>=5?ne=0:ut>=3?ne=1:ne=2,!xt[ne]){var pe=xt[ne]={cssEmPerMu:qe.quad[ne]/18};for(var be in qe)qe.hasOwnProperty(be)&&(pe[be]=qe[be][ne])}return xt[ne]}var tr={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Mt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Tt={math:{},text:{}},Xe=Tt;function oe(ut,ne,pe,be,je,ht){Tt[ut][je]={font:ne,group:pe,replace:be},ht&&be&&(Tt[ut][be]=Tt[ut][je])}var X="math",Be="text",Ee="main",ee="ams",lt="accent-token",Ct="bin",dt="close",_t="inner",ir="mathord",$r="op-token",nr="open",lr="punct",zt="rel",Ut="spacing",st="textord";oe(X,Ee,zt,"\u2261","\\equiv",!0),oe(X,Ee,zt,"\u227A","\\prec",!0),oe(X,Ee,zt,"\u227B","\\succ",!0),oe(X,Ee,zt,"\u223C","\\sim",!0),oe(X,Ee,zt,"\u22A5","\\perp"),oe(X,Ee,zt,"\u2AAF","\\preceq",!0),oe(X,Ee,zt,"\u2AB0","\\succeq",!0),oe(X,Ee,zt,"\u2243","\\simeq",!0),oe(X,Ee,zt,"\u2223","\\mid",!0),oe(X,Ee,zt,"\u226A","\\ll",!0),oe(X,Ee,zt,"\u226B","\\gg",!0),oe(X,Ee,zt,"\u224D","\\asymp",!0),oe(X,Ee,zt,"\u2225","\\parallel"),oe(X,Ee,zt,"\u22C8","\\bowtie",!0),oe(X,Ee,zt,"\u2323","\\smile",!0),oe(X,Ee,zt,"\u2291","\\sqsubseteq",!0),oe(X,Ee,zt,"\u2292","\\sqsupseteq",!0),oe(X,Ee,zt,"\u2250","\\doteq",!0),oe(X,Ee,zt,"\u2322","\\frown",!0),oe(X,Ee,zt,"\u220B","\\ni",!0),oe(X,Ee,zt,"\u221D","\\propto",!0),oe(X,Ee,zt,"\u22A2","\\vdash",!0),oe(X,Ee,zt,"\u22A3","\\dashv",!0),oe(X,Ee,zt,"\u220B","\\owns"),oe(X,Ee,lr,".","\\ldotp"),oe(X,Ee,lr,"\u22C5","\\cdotp"),oe(X,Ee,st,"#","\\#"),oe(Be,Ee,st,"#","\\#"),oe(X,Ee,st,"&","\\&"),oe(Be,Ee,st,"&","\\&"),oe(X,Ee,st,"\u2135","\\aleph",!0),oe(X,Ee,st,"\u2200","\\forall",!0),oe(X,Ee,st,"\u210F","\\hbar",!0),oe(X,Ee,st,"\u2203","\\exists",!0),oe(X,Ee,st,"\u2207","\\nabla",!0),oe(X,Ee,st,"\u266D","\\flat",!0),oe(X,Ee,st,"\u2113","\\ell",!0),oe(X,Ee,st,"\u266E","\\natural",!0),oe(X,Ee,st,"\u2663","\\clubsuit",!0),oe(X,Ee,st,"\u2118","\\wp",!0),oe(X,Ee,st,"\u266F","\\sharp",!0),oe(X,Ee,st,"\u2662","\\diamondsuit",!0),oe(X,Ee,st,"\u211C","\\Re",!0),oe(X,Ee,st,"\u2661","\\heartsuit",!0),oe(X,Ee,st,"\u2111","\\Im",!0),oe(X,Ee,st,"\u2660","\\spadesuit",!0),oe(Be,Ee,st,"\xA7","\\S",!0),oe(Be,Ee,st,"\xB6","\\P",!0),oe(X,Ee,st,"\u2020","\\dag"),oe(Be,Ee,st,"\u2020","\\dag"),oe(Be,Ee,st,"\u2020","\\textdagger"),oe(X,Ee,st,"\u2021","\\ddag"),oe(Be,Ee,st,"\u2021","\\ddag"),oe(Be,Ee,st,"\u2021","\\textdaggerdbl"),oe(X,Ee,dt,"\u23B1","\\rmoustache",!0),oe(X,Ee,nr,"\u23B0","\\lmoustache",!0),oe(X,Ee,dt,"\u27EF","\\rgroup",!0),oe(X,Ee,nr,"\u27EE","\\lgroup",!0),oe(X,Ee,Ct,"\u2213","\\mp",!0),oe(X,Ee,Ct,"\u2296","\\ominus",!0),oe(X,Ee,Ct,"\u228E","\\uplus",!0),oe(X,Ee,Ct,"\u2293","\\sqcap",!0),oe(X,Ee,Ct,"\u2217","\\ast"),oe(X,Ee,Ct,"\u2294","\\sqcup",!0),oe(X,Ee,Ct,"\u25EF","\\bigcirc"),oe(X,Ee,Ct,"\u2219","\\bullet"),oe(X,Ee,Ct,"\u2021","\\ddagger"),oe(X,Ee,Ct,"\u2240","\\wr",!0),oe(X,Ee,Ct,"\u2A3F","\\amalg"),oe(X,Ee,Ct,"&","\\And"),oe(X,Ee,zt,"\u27F5","\\longleftarrow",!0),oe(X,Ee,zt,"\u21D0","\\Leftarrow",!0),oe(X,Ee,zt,"\u27F8","\\Longleftarrow",!0),oe(X,Ee,zt,"\u27F6","\\longrightarrow",!0),oe(X,Ee,zt,"\u21D2","\\Rightarrow",!0),oe(X,Ee,zt,"\u27F9","\\Longrightarrow",!0),oe(X,Ee,zt,"\u2194","\\leftrightarrow",!0),oe(X,Ee,zt,"\u27F7","\\longleftrightarrow",!0),oe(X,Ee,zt,"\u21D4","\\Leftrightarrow",!0),oe(X,Ee,zt,"\u27FA","\\Longleftrightarrow",!0),oe(X,Ee,zt,"\u21A6","\\mapsto",!0),oe(X,Ee,zt,"\u27FC","\\longmapsto",!0),oe(X,Ee,zt,"\u2197","\\nearrow",!0),oe(X,Ee,zt,"\u21A9","\\hookleftarrow",!0),oe(X,Ee,zt,"\u21AA","\\hookrightarrow",!0),oe(X,Ee,zt,"\u2198","\\searrow",!0),oe(X,Ee,zt,"\u21BC","\\leftharpoonup",!0),oe(X,Ee,zt,"\u21C0","\\rightharpoonup",!0),oe(X,Ee,zt,"\u2199","\\swarrow",!0),oe(X,Ee,zt,"\u21BD","\\leftharpoondown",!0),oe(X,Ee,zt,"\u21C1","\\rightharpoondown",!0),oe(X,Ee,zt,"\u2196","\\nwarrow",!0),oe(X,Ee,zt,"\u21CC","\\rightleftharpoons",!0),oe(X,ee,zt,"\u226E","\\nless",!0),oe(X,ee,zt,"\uE010","\\@nleqslant"),oe(X,ee,zt,"\uE011","\\@nleqq"),oe(X,ee,zt,"\u2A87","\\lneq",!0),oe(X,ee,zt,"\u2268","\\lneqq",!0),oe(X,ee,zt,"\uE00C","\\@lvertneqq"),oe(X,ee,zt,"\u22E6","\\lnsim",!0),oe(X,ee,zt,"\u2A89","\\lnapprox",!0),oe(X,ee,zt,"\u2280","\\nprec",!0),oe(X,ee,zt,"\u22E0","\\npreceq",!0),oe(X,ee,zt,"\u22E8","\\precnsim",!0),oe(X,ee,zt,"\u2AB9","\\precnapprox",!0),oe(X,ee,zt,"\u2241","\\nsim",!0),oe(X,ee,zt,"\uE006","\\@nshortmid"),oe(X,ee,zt,"\u2224","\\nmid",!0),oe(X,ee,zt,"\u22AC","\\nvdash",!0),oe(X,ee,zt,"\u22AD","\\nvDash",!0),oe(X,ee,zt,"\u22EA","\\ntriangleleft"),oe(X,ee,zt,"\u22EC","\\ntrianglelefteq",!0),oe(X,ee,zt,"\u228A","\\subsetneq",!0),oe(X,ee,zt,"\uE01A","\\@varsubsetneq"),oe(X,ee,zt,"\u2ACB","\\subsetneqq",!0),oe(X,ee,zt,"\uE017","\\@varsubsetneqq"),oe(X,ee,zt,"\u226F","\\ngtr",!0),oe(X,ee,zt,"\uE00F","\\@ngeqslant"),oe(X,ee,zt,"\uE00E","\\@ngeqq"),oe(X,ee,zt,"\u2A88","\\gneq",!0),oe(X,ee,zt,"\u2269","\\gneqq",!0),oe(X,ee,zt,"\uE00D","\\@gvertneqq"),oe(X,ee,zt,"\u22E7","\\gnsim",!0),oe(X,ee,zt,"\u2A8A","\\gnapprox",!0),oe(X,ee,zt,"\u2281","\\nsucc",!0),oe(X,ee,zt,"\u22E1","\\nsucceq",!0),oe(X,ee,zt,"\u22E9","\\succnsim",!0),oe(X,ee,zt,"\u2ABA","\\succnapprox",!0),oe(X,ee,zt,"\u2246","\\ncong",!0),oe(X,ee,zt,"\uE007","\\@nshortparallel"),oe(X,ee,zt,"\u2226","\\nparallel",!0),oe(X,ee,zt,"\u22AF","\\nVDash",!0),oe(X,ee,zt,"\u22EB","\\ntriangleright"),oe(X,ee,zt,"\u22ED","\\ntrianglerighteq",!0),oe(X,ee,zt,"\uE018","\\@nsupseteqq"),oe(X,ee,zt,"\u228B","\\supsetneq",!0),oe(X,ee,zt,"\uE01B","\\@varsupsetneq"),oe(X,ee,zt,"\u2ACC","\\supsetneqq",!0),oe(X,ee,zt,"\uE019","\\@varsupsetneqq"),oe(X,ee,zt,"\u22AE","\\nVdash",!0),oe(X,ee,zt,"\u2AB5","\\precneqq",!0),oe(X,ee,zt,"\u2AB6","\\succneqq",!0),oe(X,ee,zt,"\uE016","\\@nsubseteqq"),oe(X,ee,Ct,"\u22B4","\\unlhd"),oe(X,ee,Ct,"\u22B5","\\unrhd"),oe(X,ee,zt,"\u219A","\\nleftarrow",!0),oe(X,ee,zt,"\u219B","\\nrightarrow",!0),oe(X,ee,zt,"\u21CD","\\nLeftarrow",!0),oe(X,ee,zt,"\u21CF","\\nRightarrow",!0),oe(X,ee,zt,"\u21AE","\\nleftrightarrow",!0),oe(X,ee,zt,"\u21CE","\\nLeftrightarrow",!0),oe(X,ee,zt,"\u25B3","\\vartriangle"),oe(X,ee,st,"\u210F","\\hslash"),oe(X,ee,st,"\u25BD","\\triangledown"),oe(X,ee,st,"\u25CA","\\lozenge"),oe(X,ee,st,"\u24C8","\\circledS"),oe(X,ee,st,"\xAE","\\circledR"),oe(Be,ee,st,"\xAE","\\circledR"),oe(X,ee,st,"\u2221","\\measuredangle",!0),oe(X,ee,st,"\u2204","\\nexists"),oe(X,ee,st,"\u2127","\\mho"),oe(X,ee,st,"\u2132","\\Finv",!0),oe(X,ee,st,"\u2141","\\Game",!0),oe(X,ee,st,"\u2035","\\backprime"),oe(X,ee,st,"\u25B2","\\blacktriangle"),oe(X,ee,st,"\u25BC","\\blacktriangledown"),oe(X,ee,st,"\u25A0","\\blacksquare"),oe(X,ee,st,"\u29EB","\\blacklozenge"),oe(X,ee,st,"\u2605","\\bigstar"),oe(X,ee,st,"\u2222","\\sphericalangle",!0),oe(X,ee,st,"\u2201","\\complement",!0),oe(X,ee,st,"\xF0","\\eth",!0),oe(X,ee,st,"\u2571","\\diagup"),oe(X,ee,st,"\u2572","\\diagdown"),oe(X,ee,st,"\u25A1","\\square"),oe(X,ee,st,"\u25A1","\\Box"),oe(X,ee,st,"\u25CA","\\Diamond"),oe(X,ee,st,"\xA5","\\yen",!0),oe(Be,ee,st,"\xA5","\\yen",!0),oe(X,ee,st,"\u2713","\\checkmark",!0),oe(Be,ee,st,"\u2713","\\checkmark"),oe(X,ee,st,"\u2136","\\beth",!0),oe(X,ee,st,"\u2138","\\daleth",!0),oe(X,ee,st,"\u2137","\\gimel",!0),oe(X,ee,st,"\u03DD","\\digamma",!0),oe(X,ee,st,"\u03F0","\\varkappa"),oe(X,ee,nr,"\u250C","\\ulcorner",!0),oe(X,ee,dt,"\u2510","\\urcorner",!0),oe(X,ee,nr,"\u2514","\\llcorner",!0),oe(X,ee,dt,"\u2518","\\lrcorner",!0),oe(X,ee,zt,"\u2266","\\leqq",!0),oe(X,ee,zt,"\u2A7D","\\leqslant",!0),oe(X,ee,zt,"\u2A95","\\eqslantless",!0),oe(X,ee,zt,"\u2272","\\lesssim",!0),oe(X,ee,zt,"\u2A85","\\lessapprox",!0),oe(X,ee,zt,"\u224A","\\approxeq",!0),oe(X,ee,Ct,"\u22D6","\\lessdot"),oe(X,ee,zt,"\u22D8","\\lll",!0),oe(X,ee,zt,"\u2276","\\lessgtr",!0),oe(X,ee,zt,"\u22DA","\\lesseqgtr",!0),oe(X,ee,zt,"\u2A8B","\\lesseqqgtr",!0),oe(X,ee,zt,"\u2251","\\doteqdot"),oe(X,ee,zt,"\u2253","\\risingdotseq",!0),oe(X,ee,zt,"\u2252","\\fallingdotseq",!0),oe(X,ee,zt,"\u223D","\\backsim",!0),oe(X,ee,zt,"\u22CD","\\backsimeq",!0),oe(X,ee,zt,"\u2AC5","\\subseteqq",!0),oe(X,ee,zt,"\u22D0","\\Subset",!0),oe(X,ee,zt,"\u228F","\\sqsubset",!0),oe(X,ee,zt,"\u227C","\\preccurlyeq",!0),oe(X,ee,zt,"\u22DE","\\curlyeqprec",!0),oe(X,ee,zt,"\u227E","\\precsim",!0),oe(X,ee,zt,"\u2AB7","\\precapprox",!0),oe(X,ee,zt,"\u22B2","\\vartriangleleft"),oe(X,ee,zt,"\u22B4","\\trianglelefteq"),oe(X,ee,zt,"\u22A8","\\vDash",!0),oe(X,ee,zt,"\u22AA","\\Vvdash",!0),oe(X,ee,zt,"\u2323","\\smallsmile"),oe(X,ee,zt,"\u2322","\\smallfrown"),oe(X,ee,zt,"\u224F","\\bumpeq",!0),oe(X,ee,zt,"\u224E","\\Bumpeq",!0),oe(X,ee,zt,"\u2267","\\geqq",!0),oe(X,ee,zt,"\u2A7E","\\geqslant",!0),oe(X,ee,zt,"\u2A96","\\eqslantgtr",!0),oe(X,ee,zt,"\u2273","\\gtrsim",!0),oe(X,ee,zt,"\u2A86","\\gtrapprox",!0),oe(X,ee,Ct,"\u22D7","\\gtrdot"),oe(X,ee,zt,"\u22D9","\\ggg",!0),oe(X,ee,zt,"\u2277","\\gtrless",!0),oe(X,ee,zt,"\u22DB","\\gtreqless",!0),oe(X,ee,zt,"\u2A8C","\\gtreqqless",!0),oe(X,ee,zt,"\u2256","\\eqcirc",!0),oe(X,ee,zt,"\u2257","\\circeq",!0),oe(X,ee,zt,"\u225C","\\triangleq",!0),oe(X,ee,zt,"\u223C","\\thicksim"),oe(X,ee,zt,"\u2248","\\thickapprox"),oe(X,ee,zt,"\u2AC6","\\supseteqq",!0),oe(X,ee,zt,"\u22D1","\\Supset",!0),oe(X,ee,zt,"\u2290","\\sqsupset",!0),oe(X,ee,zt,"\u227D","\\succcurlyeq",!0),oe(X,ee,zt,"\u22DF","\\curlyeqsucc",!0),oe(X,ee,zt,"\u227F","\\succsim",!0),oe(X,ee,zt,"\u2AB8","\\succapprox",!0),oe(X,ee,zt,"\u22B3","\\vartriangleright"),oe(X,ee,zt,"\u22B5","\\trianglerighteq"),oe(X,ee,zt,"\u22A9","\\Vdash",!0),oe(X,ee,zt,"\u2223","\\shortmid"),oe(X,ee,zt,"\u2225","\\shortparallel"),oe(X,ee,zt,"\u226C","\\between",!0),oe(X,ee,zt,"\u22D4","\\pitchfork",!0),oe(X,ee,zt,"\u221D","\\varpropto"),oe(X,ee,zt,"\u25C0","\\blacktriangleleft"),oe(X,ee,zt,"\u2234","\\therefore",!0),oe(X,ee,zt,"\u220D","\\backepsilon"),oe(X,ee,zt,"\u25B6","\\blacktriangleright"),oe(X,ee,zt,"\u2235","\\because",!0),oe(X,ee,zt,"\u22D8","\\llless"),oe(X,ee,zt,"\u22D9","\\gggtr"),oe(X,ee,Ct,"\u22B2","\\lhd"),oe(X,ee,Ct,"\u22B3","\\rhd"),oe(X,ee,zt,"\u2242","\\eqsim",!0),oe(X,Ee,zt,"\u22C8","\\Join"),oe(X,ee,zt,"\u2251","\\Doteq",!0),oe(X,ee,Ct,"\u2214","\\dotplus",!0),oe(X,ee,Ct,"\u2216","\\smallsetminus"),oe(X,ee,Ct,"\u22D2","\\Cap",!0),oe(X,ee,Ct,"\u22D3","\\Cup",!0),oe(X,ee,Ct,"\u2A5E","\\doublebarwedge",!0),oe(X,ee,Ct,"\u229F","\\boxminus",!0),oe(X,ee,Ct,"\u229E","\\boxplus",!0),oe(X,ee,Ct,"\u22C7","\\divideontimes",!0),oe(X,ee,Ct,"\u22C9","\\ltimes",!0),oe(X,ee,Ct,"\u22CA","\\rtimes",!0),oe(X,ee,Ct,"\u22CB","\\leftthreetimes",!0),oe(X,ee,Ct,"\u22CC","\\rightthreetimes",!0),oe(X,ee,Ct,"\u22CF","\\curlywedge",!0),oe(X,ee,Ct,"\u22CE","\\curlyvee",!0),oe(X,ee,Ct,"\u229D","\\circleddash",!0),oe(X,ee,Ct,"\u229B","\\circledast",!0),oe(X,ee,Ct,"\u22C5","\\centerdot"),oe(X,ee,Ct,"\u22BA","\\intercal",!0),oe(X,ee,Ct,"\u22D2","\\doublecap"),oe(X,ee,Ct,"\u22D3","\\doublecup"),oe(X,ee,Ct,"\u22A0","\\boxtimes",!0),oe(X,ee,zt,"\u21E2","\\dashrightarrow",!0),oe(X,ee,zt,"\u21E0","\\dashleftarrow",!0),oe(X,ee,zt,"\u21C7","\\leftleftarrows",!0),oe(X,ee,zt,"\u21C6","\\leftrightarrows",!0),oe(X,ee,zt,"\u21DA","\\Lleftarrow",!0),oe(X,ee,zt,"\u219E","\\twoheadleftarrow",!0),oe(X,ee,zt,"\u21A2","\\leftarrowtail",!0),oe(X,ee,zt,"\u21AB","\\looparrowleft",!0),oe(X,ee,zt,"\u21CB","\\leftrightharpoons",!0),oe(X,ee,zt,"\u21B6","\\curvearrowleft",!0),oe(X,ee,zt,"\u21BA","\\circlearrowleft",!0),oe(X,ee,zt,"\u21B0","\\Lsh",!0),oe(X,ee,zt,"\u21C8","\\upuparrows",!0),oe(X,ee,zt,"\u21BF","\\upharpoonleft",!0),oe(X,ee,zt,"\u21C3","\\downharpoonleft",!0),oe(X,ee,zt,"\u22B8","\\multimap",!0),oe(X,ee,zt,"\u21AD","\\leftrightsquigarrow",!0),oe(X,ee,zt,"\u21C9","\\rightrightarrows",!0),oe(X,ee,zt,"\u21C4","\\rightleftarrows",!0),oe(X,ee,zt,"\u21A0","\\twoheadrightarrow",!0),oe(X,ee,zt,"\u21A3","\\rightarrowtail",!0),oe(X,ee,zt,"\u21AC","\\looparrowright",!0),oe(X,ee,zt,"\u21B7","\\curvearrowright",!0),oe(X,ee,zt,"\u21BB","\\circlearrowright",!0),oe(X,ee,zt,"\u21B1","\\Rsh",!0),oe(X,ee,zt,"\u21CA","\\downdownarrows",!0),oe(X,ee,zt,"\u21BE","\\upharpoonright",!0),oe(X,ee,zt,"\u21C2","\\downharpoonright",!0),oe(X,ee,zt,"\u21DD","\\rightsquigarrow",!0),oe(X,ee,zt,"\u21DD","\\leadsto"),oe(X,ee,zt,"\u21DB","\\Rrightarrow",!0),oe(X,ee,zt,"\u21BE","\\restriction"),oe(X,Ee,st,"\u2018","`"),oe(X,Ee,st,"$","\\$"),oe(Be,Ee,st,"$","\\$"),oe(Be,Ee,st,"$","\\textdollar"),oe(X,Ee,st,"%","\\%"),oe(Be,Ee,st,"%","\\%"),oe(X,Ee,st,"_","\\_"),oe(Be,Ee,st,"_","\\_"),oe(Be,Ee,st,"_","\\textunderscore"),oe(X,Ee,st,"\u2220","\\angle",!0),oe(X,Ee,st,"\u221E","\\infty",!0),oe(X,Ee,st,"\u2032","\\prime"),oe(X,Ee,st,"\u25B3","\\triangle"),oe(X,Ee,st,"\u0393","\\Gamma",!0),oe(X,Ee,st,"\u0394","\\Delta",!0),oe(X,Ee,st,"\u0398","\\Theta",!0),oe(X,Ee,st,"\u039B","\\Lambda",!0),oe(X,Ee,st,"\u039E","\\Xi",!0),oe(X,Ee,st,"\u03A0","\\Pi",!0),oe(X,Ee,st,"\u03A3","\\Sigma",!0),oe(X,Ee,st,"\u03A5","\\Upsilon",!0),oe(X,Ee,st,"\u03A6","\\Phi",!0),oe(X,Ee,st,"\u03A8","\\Psi",!0),oe(X,Ee,st,"\u03A9","\\Omega",!0),oe(X,Ee,st,"A","\u0391"),oe(X,Ee,st,"B","\u0392"),oe(X,Ee,st,"E","\u0395"),oe(X,Ee,st,"Z","\u0396"),oe(X,Ee,st,"H","\u0397"),oe(X,Ee,st,"I","\u0399"),oe(X,Ee,st,"K","\u039A"),oe(X,Ee,st,"M","\u039C"),oe(X,Ee,st,"N","\u039D"),oe(X,Ee,st,"O","\u039F"),oe(X,Ee,st,"P","\u03A1"),oe(X,Ee,st,"T","\u03A4"),oe(X,Ee,st,"X","\u03A7"),oe(X,Ee,st,"\xAC","\\neg",!0),oe(X,Ee,st,"\xAC","\\lnot"),oe(X,Ee,st,"\u22A4","\\top"),oe(X,Ee,st,"\u22A5","\\bot"),oe(X,Ee,st,"\u2205","\\emptyset"),oe(X,ee,st,"\u2205","\\varnothing"),oe(X,Ee,ir,"\u03B1","\\alpha",!0),oe(X,Ee,ir,"\u03B2","\\beta",!0),oe(X,Ee,ir,"\u03B3","\\gamma",!0),oe(X,Ee,ir,"\u03B4","\\delta",!0),oe(X,Ee,ir,"\u03F5","\\epsilon",!0),oe(X,Ee,ir,"\u03B6","\\zeta",!0),oe(X,Ee,ir,"\u03B7","\\eta",!0),oe(X,Ee,ir,"\u03B8","\\theta",!0),oe(X,Ee,ir,"\u03B9","\\iota",!0),oe(X,Ee,ir,"\u03BA","\\kappa",!0),oe(X,Ee,ir,"\u03BB","\\lambda",!0),oe(X,Ee,ir,"\u03BC","\\mu",!0),oe(X,Ee,ir,"\u03BD","\\nu",!0),oe(X,Ee,ir,"\u03BE","\\xi",!0),oe(X,Ee,ir,"\u03BF","\\omicron",!0),oe(X,Ee,ir,"\u03C0","\\pi",!0),oe(X,Ee,ir,"\u03C1","\\rho",!0),oe(X,Ee,ir,"\u03C3","\\sigma",!0),oe(X,Ee,ir,"\u03C4","\\tau",!0),oe(X,Ee,ir,"\u03C5","\\upsilon",!0),oe(X,Ee,ir,"\u03D5","\\phi",!0),oe(X,Ee,ir,"\u03C7","\\chi",!0),oe(X,Ee,ir,"\u03C8","\\psi",!0),oe(X,Ee,ir,"\u03C9","\\omega",!0),oe(X,Ee,ir,"\u03B5","\\varepsilon",!0),oe(X,Ee,ir,"\u03D1","\\vartheta",!0),oe(X,Ee,ir,"\u03D6","\\varpi",!0),oe(X,Ee,ir,"\u03F1","\\varrho",!0),oe(X,Ee,ir,"\u03C2","\\varsigma",!0),oe(X,Ee,ir,"\u03C6","\\varphi",!0),oe(X,Ee,Ct,"\u2217","*"),oe(X,Ee,Ct,"+","+"),oe(X,Ee,Ct,"\u2212","-"),oe(X,Ee,Ct,"\u22C5","\\cdot",!0),oe(X,Ee,Ct,"\u2218","\\circ"),oe(X,Ee,Ct,"\xF7","\\div",!0),oe(X,Ee,Ct,"\xB1","\\pm",!0),oe(X,Ee,Ct,"\xD7","\\times",!0),oe(X,Ee,Ct,"\u2229","\\cap",!0),oe(X,Ee,Ct,"\u222A","\\cup",!0),oe(X,Ee,Ct,"\u2216","\\setminus"),oe(X,Ee,Ct,"\u2227","\\land"),oe(X,Ee,Ct,"\u2228","\\lor"),oe(X,Ee,Ct,"\u2227","\\wedge",!0),oe(X,Ee,Ct,"\u2228","\\vee",!0),oe(X,Ee,st,"\u221A","\\surd"),oe(X,Ee,nr,"(","("),oe(X,Ee,nr,"[","["),oe(X,Ee,nr,"\u27E8","\\langle",!0),oe(X,Ee,nr,"\u2223","\\lvert"),oe(X,Ee,nr,"\u2225","\\lVert"),oe(X,Ee,dt,")",")"),oe(X,Ee,dt,"]","]"),oe(X,Ee,dt,"?","?"),oe(X,Ee,dt,"!","!"),oe(X,Ee,dt,"\u27E9","\\rangle",!0),oe(X,Ee,dt,"\u2223","\\rvert"),oe(X,Ee,dt,"\u2225","\\rVert"),oe(X,Ee,zt,"=","="),oe(X,Ee,zt,"<","<"),oe(X,Ee,zt,">",">"),oe(X,Ee,zt,":",":"),oe(X,Ee,zt,"\u2248","\\approx",!0),oe(X,Ee,zt,"\u2245","\\cong",!0),oe(X,Ee,zt,"\u2265","\\ge"),oe(X,Ee,zt,"\u2265","\\geq",!0),oe(X,Ee,zt,"\u2190","\\gets"),oe(X,Ee,zt,">","\\gt"),oe(X,Ee,zt,"\u2208","\\in",!0),oe(X,Ee,zt,"\uE020","\\@not"),oe(X,Ee,zt,"\u2282","\\subset",!0),oe(X,Ee,zt,"\u2283","\\supset",!0),oe(X,Ee,zt,"\u2286","\\subseteq",!0),oe(X,Ee,zt,"\u2287","\\supseteq",!0),oe(X,ee,zt,"\u2288","\\nsubseteq",!0),oe(X,ee,zt,"\u2289","\\nsupseteq",!0),oe(X,Ee,zt,"\u22A8","\\models"),oe(X,Ee,zt,"\u2190","\\leftarrow",!0),oe(X,Ee,zt,"\u2264","\\le"),oe(X,Ee,zt,"\u2264","\\leq",!0),oe(X,Ee,zt,"<","\\lt"),oe(X,Ee,zt,"\u2192","\\rightarrow",!0),oe(X,Ee,zt,"\u2192","\\to"),oe(X,ee,zt,"\u2271","\\ngeq",!0),oe(X,ee,zt,"\u2270","\\nleq",!0),oe(X,Ee,Ut,"\xA0","\\ "),oe(X,Ee,Ut,"\xA0","~"),oe(X,Ee,Ut,"\xA0","\\space"),oe(X,Ee,Ut,"\xA0","\\nobreakspace"),oe(Be,Ee,Ut,"\xA0","\\ "),oe(Be,Ee,Ut,"\xA0","~"),oe(Be,Ee,Ut,"\xA0","\\space"),oe(Be,Ee,Ut,"\xA0","\\nobreakspace"),oe(X,Ee,Ut,null,"\\nobreak"),oe(X,Ee,Ut,null,"\\allowbreak"),oe(X,Ee,lr,",",","),oe(X,Ee,lr,";",";"),oe(X,ee,Ct,"\u22BC","\\barwedge",!0),oe(X,ee,Ct,"\u22BB","\\veebar",!0),oe(X,Ee,Ct,"\u2299","\\odot",!0),oe(X,Ee,Ct,"\u2295","\\oplus",!0),oe(X,Ee,Ct,"\u2297","\\otimes",!0),oe(X,Ee,st,"\u2202","\\partial",!0),oe(X,Ee,Ct,"\u2298","\\oslash",!0),oe(X,ee,Ct,"\u229A","\\circledcirc",!0),oe(X,ee,Ct,"\u22A1","\\boxdot",!0),oe(X,Ee,Ct,"\u25B3","\\bigtriangleup"),oe(X,Ee,Ct,"\u25BD","\\bigtriangledown"),oe(X,Ee,Ct,"\u2020","\\dagger"),oe(X,Ee,Ct,"\u22C4","\\diamond"),oe(X,Ee,Ct,"\u22C6","\\star"),oe(X,Ee,Ct,"\u25C3","\\triangleleft"),oe(X,Ee,Ct,"\u25B9","\\triangleright"),oe(X,Ee,nr,"{","\\{"),oe(Be,Ee,st,"{","\\{"),oe(Be,Ee,st,"{","\\textbraceleft"),oe(X,Ee,dt,"}","\\}"),oe(Be,Ee,st,"}","\\}"),oe(Be,Ee,st,"}","\\textbraceright"),oe(X,Ee,nr,"{","\\lbrace"),oe(X,Ee,dt,"}","\\rbrace"),oe(X,Ee,nr,"[","\\lbrack"),oe(Be,Ee,st,"[","\\lbrack"),oe(X,Ee,dt,"]","\\rbrack"),oe(Be,Ee,st,"]","\\rbrack"),oe(X,Ee,nr,"(","\\lparen"),oe(X,Ee,dt,")","\\rparen"),oe(Be,Ee,st,"<","\\textless"),oe(Be,Ee,st,">","\\textgreater"),oe(X,Ee,nr,"\u230A","\\lfloor",!0),oe(X,Ee,dt,"\u230B","\\rfloor",!0),oe(X,Ee,nr,"\u2308","\\lceil",!0),oe(X,Ee,dt,"\u2309","\\rceil",!0),oe(X,Ee,st,"\\","\\backslash"),oe(X,Ee,st,"\u2223","|"),oe(X,Ee,st,"\u2223","\\vert"),oe(Be,Ee,st,"|","\\textbar"),oe(X,Ee,st,"\u2225","\\|"),oe(X,Ee,st,"\u2225","\\Vert"),oe(Be,Ee,st,"\u2225","\\textbardbl"),oe(Be,Ee,st,"~","\\textasciitilde"),oe(Be,Ee,st,"\\","\\textbackslash"),oe(Be,Ee,st,"^","\\textasciicircum"),oe(X,Ee,zt,"\u2191","\\uparrow",!0),oe(X,Ee,zt,"\u21D1","\\Uparrow",!0),oe(X,Ee,zt,"\u2193","\\downarrow",!0),oe(X,Ee,zt,"\u21D3","\\Downarrow",!0),oe(X,Ee,zt,"\u2195","\\updownarrow",!0),oe(X,Ee,zt,"\u21D5","\\Updownarrow",!0),oe(X,Ee,$r,"\u2210","\\coprod"),oe(X,Ee,$r,"\u22C1","\\bigvee"),oe(X,Ee,$r,"\u22C0","\\bigwedge"),oe(X,Ee,$r,"\u2A04","\\biguplus"),oe(X,Ee,$r,"\u22C2","\\bigcap"),oe(X,Ee,$r,"\u22C3","\\bigcup"),oe(X,Ee,$r,"\u222B","\\int"),oe(X,Ee,$r,"\u222B","\\intop"),oe(X,Ee,$r,"\u222C","\\iint"),oe(X,Ee,$r,"\u222D","\\iiint"),oe(X,Ee,$r,"\u220F","\\prod"),oe(X,Ee,$r,"\u2211","\\sum"),oe(X,Ee,$r,"\u2A02","\\bigotimes"),oe(X,Ee,$r,"\u2A01","\\bigoplus"),oe(X,Ee,$r,"\u2A00","\\bigodot"),oe(X,Ee,$r,"\u222E","\\oint"),oe(X,Ee,$r,"\u222F","\\oiint"),oe(X,Ee,$r,"\u2230","\\oiiint"),oe(X,Ee,$r,"\u2A06","\\bigsqcup"),oe(X,Ee,$r,"\u222B","\\smallint"),oe(Be,Ee,_t,"\u2026","\\textellipsis"),oe(X,Ee,_t,"\u2026","\\mathellipsis"),oe(Be,Ee,_t,"\u2026","\\ldots",!0),oe(X,Ee,_t,"\u2026","\\ldots",!0),oe(X,Ee,_t,"\u22EF","\\@cdots",!0),oe(X,Ee,_t,"\u22F1","\\ddots",!0),oe(X,Ee,st,"\u22EE","\\varvdots"),oe(X,Ee,lt,"\u02CA","\\acute"),oe(X,Ee,lt,"\u02CB","\\grave"),oe(X,Ee,lt,"\xA8","\\ddot"),oe(X,Ee,lt,"~","\\tilde"),oe(X,Ee,lt,"\u02C9","\\bar"),oe(X,Ee,lt,"\u02D8","\\breve"),oe(X,Ee,lt,"\u02C7","\\check"),oe(X,Ee,lt,"^","\\hat"),oe(X,Ee,lt,"\u20D7","\\vec"),oe(X,Ee,lt,"\u02D9","\\dot"),oe(X,Ee,lt,"\u02DA","\\mathring"),oe(X,Ee,ir,"\u0131","\\imath",!0),oe(X,Ee,ir,"\u0237","\\jmath",!0),oe(Be,Ee,st,"\u0131","\\i",!0),oe(Be,Ee,st,"\u0237","\\j",!0),oe(Be,Ee,st,"\xDF","\\ss",!0),oe(Be,Ee,st,"\xE6","\\ae",!0),oe(Be,Ee,st,"\xE6","\\ae",!0),oe(Be,Ee,st,"\u0153","\\oe",!0),oe(Be,Ee,st,"\xF8","\\o",!0),oe(Be,Ee,st,"\xC6","\\AE",!0),oe(Be,Ee,st,"\u0152","\\OE",!0),oe(Be,Ee,st,"\xD8","\\O",!0),oe(Be,Ee,lt,"\u02CA","\\'"),oe(Be,Ee,lt,"\u02CB","\\`"),oe(Be,Ee,lt,"\u02C6","\\^"),oe(Be,Ee,lt,"\u02DC","\\~"),oe(Be,Ee,lt,"\u02C9","\\="),oe(Be,Ee,lt,"\u02D8","\\u"),oe(Be,Ee,lt,"\u02D9","\\."),oe(Be,Ee,lt,"\u02DA","\\r"),oe(Be,Ee,lt,"\u02C7","\\v"),oe(Be,Ee,lt,"\xA8",'\\"'),oe(Be,Ee,lt,"\u02DD","\\H"),oe(Be,Ee,lt,"\u25EF","\\textcircled");var Hr={"--":!0,"---":!0,"``":!0,"''":!0};oe(Be,Ee,st,"\u2013","--"),oe(Be,Ee,st,"\u2013","\\textendash"),oe(Be,Ee,st,"\u2014","---"),oe(Be,Ee,st,"\u2014","\\textemdash"),oe(Be,Ee,st,"\u2018","`"),oe(Be,Ee,st,"\u2018","\\textquoteleft"),oe(Be,Ee,st,"\u2019","'"),oe(Be,Ee,st,"\u2019","\\textquoteright"),oe(Be,Ee,st,"\u201C","``"),oe(Be,Ee,st,"\u201C","\\textquotedblleft"),oe(Be,Ee,st,"\u201D","''"),oe(Be,Ee,st,"\u201D","\\textquotedblright"),oe(X,Ee,st,"\xB0","\\degree",!0),oe(Be,Ee,st,"\xB0","\\degree"),oe(Be,Ee,st,"\xB0","\\textdegree",!0),oe(X,Ee,ir,"\xA3","\\pounds"),oe(X,Ee,ir,"\xA3","\\mathsterling",!0),oe(Be,Ee,ir,"\xA3","\\pounds"),oe(Be,Ee,ir,"\xA3","\\textsterling",!0),oe(X,ee,st,"\u2720","\\maltese"),oe(Be,ee,st,"\u2720","\\maltese"),oe(Be,Ee,Ut,"\xA0","\\ "),oe(Be,Ee,Ut,"\xA0"," "),oe(Be,Ee,Ut,"\xA0","~");for(var mn='0123456789/@."',In=0;In<mn.length;In++){var Yn=mn.charAt(In);oe(X,Ee,st,Yn,Yn)}for(var Mi='0123456789!@*()-=+[]<>|";:?/.,',wn=0;wn<Mi.length;wn++){var Rn=Mi.charAt(wn);oe(Be,Ee,st,Rn,Rn)}for(var kt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",vt=0;vt<kt.length;vt++){var Re=kt.charAt(vt);oe(X,Ee,ir,Re,Re),oe(Be,Ee,st,Re,Re)}oe(X,ee,st,"C","\u2102"),oe(Be,ee,st,"C","\u2102"),oe(X,ee,st,"H","\u210D"),oe(Be,ee,st,"H","\u210D"),oe(X,ee,st,"N","\u2115"),oe(Be,ee,st,"N","\u2115"),oe(X,ee,st,"P","\u2119"),oe(Be,ee,st,"P","\u2119"),oe(X,ee,st,"Q","\u211A"),oe(Be,ee,st,"Q","\u211A"),oe(X,ee,st,"R","\u211D"),oe(Be,ee,st,"R","\u211D"),oe(X,ee,st,"Z","\u2124"),oe(Be,ee,st,"Z","\u2124"),oe(X,Ee,ir,"h","\u210E"),oe(Be,Ee,ir,"h","\u210E");for(var Ke="",Pe=0;Pe<kt.length;Pe++){var nt=kt.charAt(Pe);Ke=String.fromCharCode(55349,56320+Pe),oe(X,Ee,ir,nt,Ke),oe(Be,Ee,st,nt,Ke),Ke=String.fromCharCode(55349,56372+Pe),oe(X,Ee,ir,nt,Ke),oe(Be,Ee,st,nt,Ke),Ke=String.fromCharCode(55349,56424+Pe),oe(X,Ee,ir,nt,Ke),oe(Be,Ee,st,nt,Ke),Ke=String.fromCharCode(55349,56580+Pe),oe(X,Ee,ir,nt,Ke),oe(Be,Ee,st,nt,Ke),Ke=String.fromCharCode(55349,56736+Pe),oe(X,Ee,ir,nt,Ke),oe(Be,Ee,st,nt,Ke),Ke=String.fromCharCode(55349,56788+Pe),oe(X,Ee,ir,nt,Ke),oe(Be,Ee,st,nt,Ke),Ke=String.fromCharCode(55349,56840+Pe),oe(X,Ee,ir,nt,Ke),oe(Be,Ee,st,nt,Ke),Ke=String.fromCharCode(55349,56944+Pe),oe(X,Ee,ir,nt,Ke),oe(Be,Ee,st,nt,Ke),Pe<26&&(Ke=String.fromCharCode(55349,56632+Pe),oe(X,Ee,ir,nt,Ke),oe(Be,Ee,st,nt,Ke),Ke=String.fromCharCode(55349,56476+Pe),oe(X,Ee,ir,nt,Ke),oe(Be,Ee,st,nt,Ke))}Ke=String.fromCharCode(55349,56668),oe(X,Ee,ir,"k",Ke),oe(Be,Ee,st,"k",Ke);for(var yt=0;yt<10;yt++){var Dt=yt.toString();Ke=String.fromCharCode(55349,57294+yt),oe(X,Ee,ir,Dt,Ke),oe(Be,Ee,st,Dt,Ke),Ke=String.fromCharCode(55349,57314+yt),oe(X,Ee,ir,Dt,Ke),oe(Be,Ee,st,Dt,Ke),Ke=String.fromCharCode(55349,57324+yt),oe(X,Ee,ir,Dt,Ke),oe(Be,Ee,st,Dt,Ke),Ke=String.fromCharCode(55349,57334+yt),oe(X,Ee,ir,Dt,Ke),oe(Be,Ee,st,Dt,Ke)}for(var bt="\xC7\xD0\xDE\xE7\xFE",It=0;It<bt.length;It++){var gr=bt.charAt(It);oe(X,Ee,ir,gr,gr),oe(Be,Ee,st,gr,gr)}oe(Be,Ee,st,"\xF0","\xF0"),oe(Be,Ee,st,"\u2013","\u2013"),oe(Be,Ee,st,"\u2014","\u2014"),oe(Be,Ee,st,"\u2018","\u2018"),oe(Be,Ee,st,"\u2019","\u2019"),oe(Be,Ee,st,"\u201C","\u201C"),oe(Be,Ee,st,"\u201D","\u201D");var kr=[["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"]],wt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],rt=function(ne,pe){var be=ne.charCodeAt(0),je=ne.charCodeAt(1),ht=(be-55296)*1024+(je-56320)+65536,Vt=pe==="math"?0:1;if(119808<=ht&&ht<120484){var Or=Math.floor((ht-119808)/26);return[kr[Or][2],kr[Or][Vt]]}else if(120782<=ht&&ht<=120831){var Yr=Math.floor((ht-120782)/10);return[wt[Yr][2],wt[Yr][Vt]]}else{if(ht===120485||ht===120486)return[kr[0][2],kr[0][Vt]];if(120486<ht&&ht<120782)return["",""];throw new c("Unsupported character: "+ne)}},tt=[[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]],Rt=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ft=function(ne,pe){return pe.size<2?ne:tt[ne-1][pe.size-1]},At=function(){function ut(pe){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=pe.style,this.color=pe.color,this.size=pe.size||ut.BASESIZE,this.textSize=pe.textSize||this.size,this.phantom=!!pe.phantom,this.font=pe.font||"",this.fontFamily=pe.fontFamily||"",this.fontWeight=pe.fontWeight||"",this.fontShape=pe.fontShape||"",this.sizeMultiplier=Rt[this.size-1],this.maxSize=pe.maxSize,this.minRuleThickness=pe.minRuleThickness,this._fontMetrics=void 0}var ne=ut.prototype;return ne.extend=function(be){var je={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var ht in be)be.hasOwnProperty(ht)&&(je[ht]=be[ht]);return new ut(je)},ne.havingStyle=function(be){return this.style===be?this:this.extend({style:be,size:Ft(this.textSize,be)})},ne.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},ne.havingSize=function(be){return this.size===be&&this.textSize===be?this:this.extend({style:this.style.text(),size:be,textSize:be,sizeMultiplier:Rt[be-1]})},ne.havingBaseStyle=function(be){be=be||this.style.text();var je=Ft(ut.BASESIZE,be);return this.size===je&&this.textSize===ut.BASESIZE&&this.style===be?this:this.extend({style:be,size:je})},ne.havingBaseSizing=function(){var be;switch(this.style.id){case 4:case 5:be=3;break;case 6:case 7:be=1;break;default:be=6}return this.extend({style:this.style.text(),size:be})},ne.withColor=function(be){return this.extend({color:be})},ne.withPhantom=function(){return this.extend({phantom:!0})},ne.withFont=function(be){return this.extend({font:be})},ne.withTextFontFamily=function(be){return this.extend({fontFamily:be,font:""})},ne.withTextFontWeight=function(be){return this.extend({fontWeight:be,font:""})},ne.withTextFontShape=function(be){return this.extend({fontShape:be,font:""})},ne.sizingClasses=function(be){return be.size!==this.size?["sizing","reset-size"+be.size,"size"+this.size]:[]},ne.baseSizingClasses=function(){return this.size!==ut.BASESIZE?["sizing","reset-size"+this.size,"size"+ut.BASESIZE]:[]},ne.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=Ht(this.size)),this._fontMetrics},ne.getColor=function(){return this.phantom?"transparent":this.color},ut}();At.BASESIZE=6;var Wt=At,ot={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},Bt={ex:!0,em:!0,mu:!0},Ar=function(ne){return typeof ne!="string"&&(ne=ne.unit),ne in ot||ne in Bt||ne==="ex"},rr=function(ne,pe){var be;if(ne.unit in ot)be=ot[ne.unit]/pe.fontMetrics().ptPerEm/pe.sizeMultiplier;else if(ne.unit==="mu")be=pe.fontMetrics().cssEmPerMu;else{var je;if(pe.style.isTight()?je=pe.havingStyle(pe.style.text()):je=pe,ne.unit==="ex")be=je.fontMetrics().xHeight;else if(ne.unit==="em")be=je.fontMetrics().quad;else throw new c("Invalid unit: '"+ne.unit+"'");je!==pe&&(be*=je.sizeMultiplier/pe.sizeMultiplier)}return Math.min(ne.number*be,pe.maxSize)},pr=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],tn=function(ne,pe,be){return Xe[be][ne]&&Xe[be][ne].replace&&(ne=Xe[be][ne].replace),{value:ne,metrics:$e(ne,pe,be)}},hn=function(ne,pe,be,je,ht){var Vt=tn(ne,pe,be),Or=Vt.metrics;ne=Vt.value;var Yr;if(Or){var cn=Or.italic;(be==="text"||je&&je.font==="mathit")&&(cn=0),Yr=new Ce(ne,Or.height,Or.depth,cn,Or.skew,Or.width,ht)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+ne+"' in style '"+pe+"' and mode '"+be+"'")),Yr=new Ce(ne,0,0,0,0,0,ht);if(je){Yr.maxFontSize=je.sizeMultiplier,je.style.isTight()&&Yr.classes.push("mtight");var jn=je.getColor();jn&&(Yr.style.color=jn)}return Yr},Mn=function(ne,pe,be,je){return je===void 0&&(je=[]),be.font==="boldsymbol"&&tn(ne,"Main-Bold",pe).metrics?hn(ne,"Main-Bold",pe,be,je.concat(["mathbf"])):ne==="\\"||Xe[pe][ne].font==="main"?hn(ne,"Main-Regular",pe,be,je):hn(ne,"AMS-Regular",pe,be,je.concat(["amsrm"]))},Xn=function(ne,pe,be,je){return/[0-9]/.test(ne.charAt(0))||p.contains(pr,ne)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},si=function(ne,pe,be,je){return p.contains(pr,ne)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(ne.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},vi=function(ne,pe,be,je){return tn(ne,"Math-BoldItalic",pe).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},xi=function(ne,pe,be){var je=ne.mode,ht=ne.text,Vt=["mord"],Or=je==="math"||je==="text"&&pe.font,Yr=Or?pe.font:pe.fontFamily;if(ht.charCodeAt(0)===55349){var cn=rt(ht,je),jn=cn[0],ai=cn[1];return hn(ht,jn,je,pe,Vt.concat(ai))}else if(Yr){var Qn,Ni;if(Yr==="boldsymbol"||Yr==="mathnormal"){var Vi=Yr==="boldsymbol"?vi(ht,je,pe,Vt):si(ht,je,pe,Vt);Qn=Vi.fontName,Ni=[Vi.fontClass]}else p.contains(pr,ht)?(Qn="Main-Italic",Ni=["mathit"]):Or?(Qn=Br[Yr].fontName,Ni=[Yr]):(Qn=Sr(Yr,pe.fontWeight,pe.fontShape),Ni=[Yr,pe.fontWeight,pe.fontShape]);if(tn(ht,Qn,je).metrics)return hn(ht,Qn,je,pe,Vt.concat(Ni));if(Hr.hasOwnProperty(ht)&&Qn.substr(0,10)==="Typewriter"){for(var Ta=[],Ga=0;Ga<ht.length;Ga++)Ta.push(hn(ht[Ga],Qn,je,pe,Vt.concat(Ni)));return Ze(Ta)}}if(be==="mathord"){var ao=Xn(ht,je,pe,Vt);return hn(ht,ao.fontName,je,pe,Vt.concat([ao.fontClass]))}else if(be==="textord"){var Do=Xe[je][ht]&&Xe[je][ht].font;if(Do==="ams"){var fo=Sr("amsrm",pe.fontWeight,pe.fontShape);return hn(ht,fo,je,pe,Vt.concat("amsrm",pe.fontWeight,pe.fontShape))}else if(Do==="main"||!Do){var as=Sr("textrm",pe.fontWeight,pe.fontShape);return hn(ht,as,je,pe,Vt.concat(pe.fontWeight,pe.fontShape))}else{var io=Sr(Do,pe.fontWeight,pe.fontShape);return hn(ht,io,je,pe,Vt.concat(io,pe.fontWeight,pe.fontShape))}}else throw new Error("unexpected type: "+be+" in makeOrd")},_i=function(ne,pe){if(te(ne.classes)!==te(pe.classes)||ne.skew!==pe.skew||ne.maxFontSize!==pe.maxFontSize)return!1;for(var be in ne.style)if(ne.style.hasOwnProperty(be)&&ne.style[be]!==pe.style[be])return!1;for(var je in pe.style)if(pe.style.hasOwnProperty(je)&&ne.style[je]!==pe.style[je])return!1;return!0},Qe=function(ne){for(var pe=0;pe<ne.length-1;pe++){var be=ne[pe],je=ne[pe+1];be instanceof Ce&&je instanceof Ce&&_i(be,je)&&(be.text+=je.text,be.height=Math.max(be.height,je.height),be.depth=Math.max(be.depth,je.depth),be.italic=je.italic,ne.splice(pe+1,1),pe--)}return ne},we=function(ne){for(var pe=0,be=0,je=0,ht=0;ht<ne.children.length;ht++){var Vt=ne.children[ht];Vt.height>pe&&(pe=Vt.height),Vt.depth>be&&(be=Vt.depth),Vt.maxFontSize>je&&(je=Vt.maxFontSize)}ne.height=pe,ne.depth=be,ne.maxFontSize=je},Ne=function(ne,pe,be,je){var ht=new G(ne,pe,be,je);return we(ht),ht},Fe=function(ne,pe,be,je){return new G(ne,pe,be,je)},Ye=function(ne,pe,be){var je=Ne([ne],[],pe);return je.height=Math.max(be||pe.fontMetrics().defaultRuleThickness,pe.minRuleThickness),je.style.borderBottomWidth=je.height+"em",je.maxFontSize=1,je},We=function(ne,pe,be,je){var ht=new Y(ne,pe,be,je);return we(ht),ht},Ze=function(ne){var pe=new se(ne);return we(pe),pe},mt=function(ne,pe){return ne instanceof se?Ne([],[ne],pe):ne},it=function(ne){if(ne.positionType==="individualShift"){for(var pe=ne.children,be=[pe[0]],je=-pe[0].shift-pe[0].elem.depth,ht=je,Vt=1;Vt<pe.length;Vt++){var Or=-pe[Vt].shift-ht-pe[Vt].elem.depth,Yr=Or-(pe[Vt-1].elem.height+pe[Vt-1].elem.depth);ht=ht+Or,be.push({type:"kern",size:Yr}),be.push(pe[Vt])}return{children:be,depth:je}}var cn;if(ne.positionType==="top"){for(var jn=ne.positionData,ai=0;ai<ne.children.length;ai++){var Qn=ne.children[ai];jn-=Qn.type==="kern"?Qn.size:Qn.elem.height+Qn.elem.depth}cn=jn}else if(ne.positionType==="bottom")cn=-ne.positionData;else{var Ni=ne.children[0];if(Ni.type!=="elem")throw new Error('First child must have type "elem".');if(ne.positionType==="shift")cn=-Ni.elem.depth-ne.positionData;else if(ne.positionType==="firstBaseline")cn=-Ni.elem.depth;else throw new Error("Invalid positionType "+ne.positionType+".")}return{children:ne.children,depth:cn}},Jt=function(ne,pe){for(var be=it(ne),je=be.children,ht=be.depth,Vt=0,Or=0;Or<je.length;Or++){var Yr=je[Or];if(Yr.type==="elem"){var cn=Yr.elem;Vt=Math.max(Vt,cn.maxFontSize,cn.height)}}Vt+=2;var jn=Ne(["pstrut"],[]);jn.style.height=Vt+"em";for(var ai=[],Qn=ht,Ni=ht,Vi=ht,Ta=0;Ta<je.length;Ta++){var Ga=je[Ta];if(Ga.type==="kern")Vi+=Ga.size;else{var ao=Ga.elem,Do=Ga.wrapperClasses||[],fo=Ga.wrapperStyle||{},as=Ne(Do,[jn,ao],void 0,fo);as.style.top=-Vt-Vi-ao.depth+"em",Ga.marginLeft&&(as.style.marginLeft=Ga.marginLeft),Ga.marginRight&&(as.style.marginRight=Ga.marginRight),ai.push(as),Vi+=ao.height+ao.depth}Qn=Math.min(Qn,Vi),Ni=Math.max(Ni,Vi)}var io=Ne(["vlist"],ai);io.style.height=Ni+"em";var Xa;if(Qn<0){var Ya=Ne([],[]),ka=Ne(["vlist"],[Ya]);ka.style.height=-Qn+"em";var os=Ne(["vlist-s"],[new Ce("\u200B")]);Xa=[Ne(["vlist-r"],[io,os]),Ne(["vlist-r"],[ka])]}else Xa=[Ne(["vlist-r"],[io])];var Es=Ne(["vlist-t"],Xa);return Xa.length===2&&Es.classes.push("vlist-t2"),Es.height=Ni,Es.depth=-Qn,Es},Dr=function(ne,pe){var be=Ne(["mspace"],[],pe),je=rr(ne,pe);return be.style.marginRight=je+"em",be},Sr=function(ne,pe,be){var je="";switch(ne){case"amsrm":je="AMS";break;case"textrm":je="Main";break;case"textsf":je="SansSerif";break;case"texttt":je="Typewriter";break;default:je=ne}var ht;return pe==="textbf"&&be==="textit"?ht="BoldItalic":pe==="textbf"?ht="Bold":pe==="textit"?ht="Italic":ht="Regular",je+"-"+ht},Br={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"}},$t={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},gn=function(ne,pe){var be=$t[ne],je=be[0],ht=be[1],Vt=be[2],Or=new ce(je),Yr=new Ie([Or],{width:ht+"em",height:Vt+"em",style:"width:"+ht+"em",viewBox:"0 0 "+1e3*ht+" "+1e3*Vt,preserveAspectRatio:"xMinYMin"}),cn=Fe(["overlay"],[Yr],pe);return cn.height=Vt,cn.style.height=Vt+"em",cn.style.width=ht+"em",cn},or={fontMap:Br,makeSymbol:hn,mathsym:Mn,makeSpan:Ne,makeSvgSpan:Fe,makeLineSpan:Ye,makeAnchor:We,makeFragment:Ze,wrapFragment:mt,makeVList:Jt,makeOrd:xi,makeGlue:Dr,staticSvg:gn,svgData:$t,tryCombineChars:Qe};function ln(ut,ne){var pe=an(ut,ne);if(!pe)throw new Error("Expected node of type "+ne+", but got "+(ut?"node of type "+ut.type:String(ut)));return pe}function an(ut,ne){return ut&&ut.type===ne?ut:null}function Rr(ut,ne){var pe=On(ut,ne);if(!pe)throw new Error('Expected node of type "atom" and family "'+ne+'", but got '+(ut?ut.type==="atom"?"atom of family "+ut.family:"node of type "+ut.type:String(ut)));return pe}function On(ut,ne){return ut&&ut.type==="atom"&&ut.family===ne?ut:null}function ci(ut){var ne=Ui(ut);if(!ne)throw new Error("Expected node of symbol group type, but got "+(ut?"node of type "+ut.type:String(ut)));return ne}function Ui(ut){return ut&&(ut.type==="atom"||Mt.hasOwnProperty(ut.type))?ut:null}var ki={number:3,unit:"mu"},Di={number:4,unit:"mu"},Ki={number:5,unit:"mu"},Ur={mord:{mop:ki,mbin:Di,mrel:Ki,minner:ki},mop:{mord:ki,mop:ki,mrel:Ki,minner:ki},mbin:{mord:Di,mop:Di,mopen:Di,minner:Di},mrel:{mord:Ki,mop:Ki,mopen:Ki,minner:Ki},mopen:{},mclose:{mop:ki,mbin:Di,mrel:Ki,minner:ki},mpunct:{mord:ki,mop:ki,mrel:Ki,mopen:ki,mclose:ki,mpunct:ki,minner:ki},minner:{mord:ki,mop:ki,mbin:Di,mrel:Ki,mopen:ki,mpunct:ki,minner:ki}},Tn={mord:{mop:ki},mop:{mord:ki,mop:ki},mbin:{},mrel:{},mopen:{},mclose:{mop:ki},mpunct:{},minner:{mop:ki}},Mr={},mr={},Cr={};function Lt(ut){for(var ne=ut.type,pe=ut.names,be=ut.props,je=ut.handler,ht=ut.htmlBuilder,Vt=ut.mathmlBuilder,Or={type:ne,numArgs:be.numArgs,argTypes:be.argTypes,greediness:be.greediness===void 0?1:be.greediness,allowedInText:!!be.allowedInText,allowedInMath:be.allowedInMath===void 0?!0:be.allowedInMath,numOptionalArgs:be.numOptionalArgs||0,infix:!!be.infix,handler:je},Yr=0;Yr<pe.length;++Yr)Mr[pe[Yr]]=Or;ne&&(ht&&(mr[ne]=ht),Vt&&(Cr[ne]=Vt))}function wr(ut){var ne=ut.type,pe=ut.htmlBuilder,be=ut.mathmlBuilder;Lt({type:ne,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:pe,mathmlBuilder:be})}var Vr=function(ne){var pe=an(ne,"ordgroup");return pe?pe.body:[ne]},jr=or.makeSpan,qr=["leftmost","mbin","mopen","mrel","mop","mpunct"],oi=["rightmost","mrel","mclose","mpunct"],Vn={display:j.DISPLAY,text:j.TEXT,script:j.SCRIPT,scriptscript:j.SCRIPTSCRIPT},Ti={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},dn=function(ne,pe,be,je){je===void 0&&(je=[null,null]);for(var ht=[],Vt=0;Vt<ne.length;Vt++){var Or=Oi(ne[Vt],pe);if(Or instanceof se){var Yr=Or.children;ht.push.apply(ht,Yr)}else ht.push(Or)}if(!be)return ht;var cn=pe;if(ne.length===1){var jn=an(ne[0],"sizing")||an(ne[0],"styling");jn&&(jn.type==="sizing"?cn=pe.havingSize(jn.size):jn.type==="styling"&&(cn=pe.havingStyle(Vn[jn.style])))}var ai=jr([je[0]||"leftmost"],[],pe),Qn=jr([je[1]||"rightmost"],[],pe);return _r(ht,function(Ni,Vi){var Ta=Vi.classes[0],Ga=Ni.classes[0];Ta==="mbin"&&p.contains(oi,Ga)?Vi.classes[0]="mord":Ga==="mbin"&&p.contains(qr,Ta)&&(Ni.classes[0]="mord")},{node:ai},Qn),_r(ht,function(Ni,Vi){var Ta=zn(Vi),Ga=zn(Ni),ao=Ta&&Ga?Ni.hasClass("mtight")?Tn[Ta][Ga]:Ur[Ta][Ga]:null;if(ao)return or.makeGlue(ao,cn)},{node:ai},Qn),ht},_r=function ut(ne,pe,be,je){je&&ne.push(je);for(var ht=0;ht<ne.length;ht++){var Vt=ne[ht],Or=xn(Vt);if(Or){ut(Or.children,pe,be);continue}if(Vt.classes[0]==="mspace")continue;var Yr=pe(Vt,be.node);Yr&&(be.insertAfter?be.insertAfter(Yr):(ne.unshift(Yr),ht++)),be.node=Vt,be.insertAfter=function(cn){return function(jn){ne.splice(cn+1,0,jn),ht++}}(ht)}je&&ne.pop()},xn=function(ne){return ne instanceof se||ne instanceof Y?ne:null},Fn=function ut(ne,pe){var be=xn(ne);if(be){var je=be.children;if(je.length){if(pe==="right")return ut(je[je.length-1],"right");if(pe==="left")return ut(je[0],"left")}}return ne},zn=function(ne,pe){return ne?(pe&&(ne=Fn(ne,pe)),Ti[ne.classes[0]]||null):null},qn=function(ne,pe){var be=["nulldelimiter"].concat(ne.baseSizingClasses());return jr(pe.concat(be))},Oi=function(ne,pe,be){if(!ne)return jr();if(mr[ne.type]){var je=mr[ne.type](ne,pe);if(be&&pe.size!==be.size){je=jr(pe.sizingClasses(be),[je],pe);var ht=pe.sizeMultiplier/be.sizeMultiplier;je.height*=ht,je.depth*=ht}return je}else throw new c("Got group of unknown type: '"+ne.type+"'")};function Li(ut,ne){var pe=jr(["base"],ut,ne),be=jr(["strut"]);return be.style.height=pe.height+pe.depth+"em",be.style.verticalAlign=-pe.depth+"em",pe.children.unshift(be),pe}function Ri(ut,ne){var pe=null;ut.length===1&&ut[0].type==="tag"&&(pe=ut[0].tag,ut=ut[0].body);for(var be=dn(ut,ne,!0),je=[],ht=[],Vt=0;Vt<be.length;Vt++)if(ht.push(be[Vt]),be[Vt].hasClass("mbin")||be[Vt].hasClass("mrel")||be[Vt].hasClass("allowbreak")){for(var Or=!1;Vt<be.length-1&&be[Vt+1].hasClass("mspace")&&!be[Vt+1].hasClass("newline");)Vt++,ht.push(be[Vt]),be[Vt].hasClass("nobreak")&&(Or=!0);Or||(je.push(Li(ht,ne)),ht=[])}else be[Vt].hasClass("newline")&&(ht.pop(),ht.length>0&&(je.push(Li(ht,ne)),ht=[]),je.push(be[Vt]));ht.length>0&&je.push(Li(ht,ne));var Yr;pe&&(Yr=Li(dn(pe,ne,!0)),Yr.classes=["tag"],je.push(Yr));var cn=jr(["katex-html"],je);if(cn.setAttribute("aria-hidden","true"),Yr){var jn=Yr.children[0];jn.style.height=cn.height+cn.depth+"em",jn.style.verticalAlign=-cn.depth+"em"}return cn}function Ji(ut){return new se(ut)}var ma=function(){function ut(pe,be){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=pe,this.attributes={},this.children=be||[]}var ne=ut.prototype;return ne.setAttribute=function(be,je){this.attributes[be]=je},ne.getAttribute=function(be){return this.attributes[be]},ne.toNode=function(){var be=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var je in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,je)&&be.setAttribute(je,this.attributes[je]);for(var ht=0;ht<this.children.length;ht++)be.appendChild(this.children[ht].toNode());return be},ne.toMarkup=function(){var be="<"+this.type;for(var je in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,je)&&(be+=" "+je+'="',be+=p.escape(this.attributes[je]),be+='"');be+=">";for(var ht=0;ht<this.children.length;ht++)be+=this.children[ht].toMarkup();return be+="</"+this.type+">",be},ne.toText=function(){return this.children.map(function(be){return be.toText()}).join("")},ut}(),la=function(){function ut(pe){this.text=void 0,this.text=pe}var ne=ut.prototype;return ne.toNode=function(){return document.createTextNode(this.text)},ne.toMarkup=function(){return p.escape(this.toText())},ne.toText=function(){return this.text},ut}(),qa=function(){function ut(pe){this.width=void 0,this.character=void 0,this.width=pe,pe>=.05555&&pe<=.05556?this.character="\u200A":pe>=.1666&&pe<=.1667?this.character="\u2009":pe>=.2222&&pe<=.2223?this.character="\u2005":pe>=.2777&&pe<=.2778?this.character="\u2005\u200A":pe>=-.05556&&pe<=-.05555?this.character="\u200A\u2063":pe>=-.1667&&pe<=-.1666?this.character="\u2009\u2063":pe>=-.2223&&pe<=-.2222?this.character="\u205F\u2063":pe>=-.2778&&pe<=-.2777?this.character="\u2005\u2063":this.character=null}var ne=ut.prototype;return ne.toNode=function(){if(this.character)return document.createTextNode(this.character);var be=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return be.setAttribute("width",this.width+"em"),be},ne.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},ne.toText=function(){return this.character?this.character:" "},ut}(),bi={MathNode:ma,TextNode:la,SpaceNode:qa,newDocumentFragment:Ji},Sn=function(ne,pe,be){return Xe[pe][ne]&&Xe[pe][ne].replace&&ne.charCodeAt(0)!==55349&&!(Hr.hasOwnProperty(ne)&&be&&(be.fontFamily&&be.fontFamily.substr(4,2)==="tt"||be.font&&be.font.substr(4,2)==="tt"))&&(ne=Xe[pe][ne].replace),new bi.TextNode(ne)},zi=function(ne){return ne.length===1?ne[0]:new bi.MathNode("mrow",ne)},oa=function(ne,pe){if(pe.fontFamily==="texttt")return"monospace";if(pe.fontFamily==="textsf")return pe.fontShape==="textit"&&pe.fontWeight==="textbf"?"sans-serif-bold-italic":pe.fontShape==="textit"?"sans-serif-italic":pe.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(pe.fontShape==="textit"&&pe.fontWeight==="textbf")return"bold-italic";if(pe.fontShape==="textit")return"italic";if(pe.fontWeight==="textbf")return"bold";var be=pe.font;if(!be||be==="mathnormal")return null;var je=ne.mode;if(be==="mathit")return"italic";if(be==="boldsymbol")return"bold-italic";if(be==="mathbf")return"bold";if(be==="mathbb")return"double-struck";if(be==="mathfrak")return"fraktur";if(be==="mathscr"||be==="mathcal")return"script";if(be==="mathsf")return"sans-serif";if(be==="mathtt")return"monospace";var ht=ne.text;if(p.contains(["\\imath","\\jmath"],ht))return null;Xe[je][ht]&&Xe[je][ht].replace&&(ht=Xe[je][ht].replace);var Vt=or.fontMap[be].fontName;return $e(ht,Vt,je)?or.fontMap[be].variant:null},Yi=function(ne,pe,be){if(ne.length===1){var je=Hi(ne[0],pe);return be&&je instanceof ma&&je.type==="mo"&&(je.setAttribute("lspace","0em"),je.setAttribute("rspace","0em")),[je]}for(var ht=[],Vt,Or=0;Or<ne.length;Or++){var Yr=Hi(ne[Or],pe);if(Yr instanceof ma&&Vt instanceof ma){if(Yr.type==="mtext"&&Vt.type==="mtext"&&Yr.getAttribute("mathvariant")===Vt.getAttribute("mathvariant")){var cn;(cn=Vt.children).push.apply(cn,Yr.children);continue}else if(Yr.type==="mn"&&Vt.type==="mn"){var jn;(jn=Vt.children).push.apply(jn,Yr.children);continue}else if(Yr.type==="mi"&&Yr.children.length===1&&Vt.type==="mn"){var ai=Yr.children[0];if(ai instanceof la&&ai.text==="."){var Qn;(Qn=Vt.children).push.apply(Qn,Yr.children);continue}}else if(Vt.type==="mi"&&Vt.children.length===1){var Ni=Vt.children[0];if(Ni instanceof la&&Ni.text==="\u0338"&&(Yr.type==="mo"||Yr.type==="mi"||Yr.type==="mn")){var Vi=Yr.children[0];Vi instanceof la&&Vi.text.length>0&&(Vi.text=Vi.text.slice(0,1)+"\u0338"+Vi.text.slice(1),ht.pop())}}}ht.push(Yr),Vt=Yr}return ht},ca=function(ne,pe,be){return zi(Yi(ne,pe,be))},Hi=function(ne,pe){if(!ne)return new bi.MathNode("mrow");if(Cr[ne.type]){var be=Cr[ne.type](ne,pe);return be}else throw new c("Got group of unknown type: '"+ne.type+"'")};function Ia(ut,ne,pe,be){var je=Yi(ut,pe),ht;je.length===1&&je[0]instanceof ma&&p.contains(["mrow","mtable"],je[0].type)?ht=je[0]:ht=new bi.MathNode("mrow",je);var Vt=new bi.MathNode("annotation",[new bi.TextNode(ne)]);Vt.setAttribute("encoding","application/x-tex");var Or=new bi.MathNode("semantics",[ht,Vt]),Yr=new bi.MathNode("math",[Or]);Yr.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var cn=be?"katex":"katex-mathml";return or.makeSpan([cn],[Yr])}var Da=function(ne){return new Wt({style:ne.displayMode?j.DISPLAY:j.TEXT,maxSize:ne.maxSize,minRuleThickness:ne.minRuleThickness})},Qa=function(ne,pe){if(pe.displayMode){var be=["katex-display"];pe.leqno&&be.push("leqno"),pe.fleqn&&be.push("fleqn"),ne=or.makeSpan(be,[ne])}return ne},Wo=function(ne,pe,be){var je=Da(be),ht;if(be.output==="mathml")return Ia(ne,pe,je,!0);if(be.output==="html"){var Vt=Ri(ne,je);ht=or.makeSpan(["katex"],[Vt])}else{var Or=Ia(ne,pe,je,!1),Yr=Ri(ne,je);ht=or.makeSpan(["katex"],[Or,Yr])}return Qa(ht,be)},po=function(ne,pe,be){var je=Da(be),ht=Ri(ne,je),Vt=or.makeSpan(["katex"],[ht]);return Qa(Vt,be)},Mo=Wo,Fo={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"},yo=function(ne){var pe=new bi.MathNode("mo",[new bi.TextNode(Fo[ne.substr(1)])]);return pe.setAttribute("stretchy","true"),pe},Oo={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]},sa=function(ne){return ne.type==="ordgroup"?ne.body.length:1},hs=function(ne,pe){function be(){var Yr=4e5,cn=ne.label.substr(1);if(p.contains(["widehat","widecheck","widetilde","utilde"],cn)){var jn=ne,ai=sa(jn.base),Qn,Ni,Vi;if(ai>5)cn==="widehat"||cn==="widecheck"?(Qn=420,Yr=2364,Vi=.42,Ni=cn+"4"):(Qn=312,Yr=2340,Vi=.34,Ni="tilde4");else{var Ta=[1,1,2,2,3,3][ai];cn==="widehat"||cn==="widecheck"?(Yr=[0,1062,2364,2364,2364][Ta],Qn=[0,239,300,360,420][Ta],Vi=[0,.24,.3,.3,.36,.42][Ta],Ni=cn+Ta):(Yr=[0,600,1033,2339,2340][Ta],Qn=[0,260,286,306,312][Ta],Vi=[0,.26,.286,.3,.306,.34][Ta],Ni="tilde"+Ta)}var Ga=new ce(Ni),ao=new Ie([Ga],{width:"100%",height:Vi+"em",viewBox:"0 0 "+Yr+" "+Qn,preserveAspectRatio:"none"});return{span:or.makeSvgSpan([],[ao],pe),minWidth:0,height:Vi}}else{var Do=[],fo=Oo[cn],as=fo[0],io=fo[1],Xa=fo[2],Ya=Xa/1e3,ka=as.length,os,Es;if(ka===1){var qo=fo[3];os=["hide-tail"],Es=[qo]}else if(ka===2)os=["halfarrow-left","halfarrow-right"],Es=["xMinYMin","xMaxYMin"];else if(ka===3)os=["brace-left","brace-center","brace-right"],Es=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+ka+" children.");for(var pa=0;pa<ka;pa++){var ls=new ce(as[pa]),Os=new Ie([ls],{width:"400em",height:Ya+"em",viewBox:"0 0 "+Yr+" "+Xa,preserveAspectRatio:Es[pa]+" slice"}),ys=or.makeSvgSpan([os[pa]],[Os],pe);if(ka===1)return{span:ys,minWidth:io,height:Ya};ys.style.height=Ya+"em",Do.push(ys)}return{span:or.makeSpan(["stretchy"],Do,pe),minWidth:io,height:Ya}}}var je=be(),ht=je.span,Vt=je.minWidth,Or=je.height;return ht.height=Or,ht.style.height=Or+"em",Vt>0&&(ht.style.minWidth=Vt+"em"),ht},Jo=function(ne,pe,be,je){var ht,Vt=ne.height+ne.depth+2*be;if(/fbox|color/.test(pe)){if(ht=or.makeSpan(["stretchy",pe],[],je),pe==="fbox"){var Or=je.color&&je.getColor();Or&&(ht.style.borderColor=Or)}}else{var Yr=[];/^[bx]cancel$/.test(pe)&&Yr.push(new Ae({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(pe)&&Yr.push(new Ae({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var cn=new Ie(Yr,{width:"100%",height:Vt+"em"});ht=or.makeSvgSpan([],[cn],je)}return ht.height=Vt,ht.style.height=Vt+"em",ht},wo={encloseSpan:Jo,mathMLnode:yo,svgSpan:hs},_o=function(ne,pe){var be,je,ht=an(ne,"supsub"),Vt;ht?(je=ln(ht.base,"accent"),be=je.base,ht.base=be,Vt=Ge(Oi(ht,pe)),ht.base=je):(je=ln(ne,"accent"),be=je.base);var Or=Oi(be,pe.havingCrampedStyle()),Yr=je.isShifty&&p.isCharacterBox(be),cn=0;if(Yr){var jn=p.getBaseElem(be),ai=Oi(jn,pe.havingCrampedStyle());cn=Te(ai).skew}var Qn=Math.min(Or.height,pe.fontMetrics().xHeight),Ni;if(je.isStretchy)Ni=wo.svgSpan(je,pe),Ni=or.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Or},{type:"elem",elem:Ni,wrapperClasses:["svg-align"],wrapperStyle:cn>0?{width:"calc(100% - "+2*cn+"em)",marginLeft:2*cn+"em"}:void 0}]},pe);else{var Vi,Ta;je.label==="\\vec"?(Vi=or.staticSvg("vec",pe),Ta=or.svgData.vec[1]):(Vi=or.makeOrd({mode:je.mode,text:je.label},pe,"textord"),Vi=Te(Vi),Vi.italic=0,Ta=Vi.width),Ni=or.makeSpan(["accent-body"],[Vi]);var Ga=je.label==="\\textcircled";Ga&&(Ni.classes.push("accent-full"),Qn=Or.height);var ao=cn;Ga||(ao-=Ta/2),Ni.style.left=ao+"em",je.label==="\\textcircled"&&(Ni.style.top=".2em"),Ni=or.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Or},{type:"kern",size:-Qn},{type:"elem",elem:Ni}]},pe)}var Do=or.makeSpan(["mord","accent"],[Ni],pe);return Vt?(Vt.children[0]=Do,Vt.height=Math.max(Do.height,Vt.height),Vt.classes[0]="mord",Vt):Do},Bo=function(ne,pe){var be=ne.isStretchy?wo.mathMLnode(ne.label):new bi.MathNode("mo",[Sn(ne.label,ne.mode)]),je=new bi.MathNode("mover",[Hi(ne.base,pe),be]);return je.setAttribute("accent","true"),je},Ds=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(ut){return"\\"+ut}).join("|"));Lt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(ne,pe){var be=pe[0],je=!Ds.test(ne.funcName),ht=!je||ne.funcName==="\\widehat"||ne.funcName==="\\widetilde"||ne.funcName==="\\widecheck";return{type:"accent",mode:ne.parser.mode,label:ne.funcName,isStretchy:je,isShifty:ht,base:be}},htmlBuilder:_o,mathmlBuilder:Bo}),Lt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(ne,pe){var be=pe[0];return{type:"accent",mode:ne.parser.mode,label:ne.funcName,isStretchy:!1,isShifty:!0,base:be}},htmlBuilder:_o,mathmlBuilder:Bo}),Lt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(ne,pe){var be=ne.parser,je=ne.funcName,ht=pe[0];return{type:"accentUnder",mode:be.mode,label:je,base:ht}},htmlBuilder:function(ne,pe){var be=Oi(ne.base,pe),je=wo.svgSpan(ne,pe),ht=ne.label==="\\utilde"?.12:0,Vt=or.makeVList({positionType:"bottom",positionData:je.height+ht,children:[{type:"elem",elem:je,wrapperClasses:["svg-align"]},{type:"kern",size:ht},{type:"elem",elem:be}]},pe);return or.makeSpan(["mord","accentunder"],[Vt],pe)},mathmlBuilder:function(ne,pe){var be=wo.mathMLnode(ne.label),je=new bi.MathNode("munder",[Hi(ne.base,pe),be]);return je.setAttribute("accentunder","true"),je}});var Nr=function(ne){var pe=new bi.MathNode("mpadded",ne?[ne]:[]);return pe.setAttribute("width","+0.6em"),pe.setAttribute("lspace","0.3em"),pe};Lt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(ne,pe,be){var je=ne.parser,ht=ne.funcName;return{type:"xArrow",mode:je.mode,label:ht,body:pe[0],below:be[0]}},htmlBuilder:function(ne,pe){var be=pe.style,je=pe.havingStyle(be.sup()),ht=or.wrapFragment(Oi(ne.body,je,pe),pe);ht.classes.push("x-arrow-pad");var Vt;ne.below&&(je=pe.havingStyle(be.sub()),Vt=or.wrapFragment(Oi(ne.below,je,pe),pe),Vt.classes.push("x-arrow-pad"));var Or=wo.svgSpan(ne,pe),Yr=-pe.fontMetrics().axisHeight+.5*Or.height,cn=-pe.fontMetrics().axisHeight-.5*Or.height-.111;(ht.depth>.25||ne.label==="\\xleftequilibrium")&&(cn-=ht.depth);var jn;if(Vt){var ai=-pe.fontMetrics().axisHeight+Vt.height+.5*Or.height+.111;jn=or.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ht,shift:cn},{type:"elem",elem:Or,shift:Yr},{type:"elem",elem:Vt,shift:ai}]},pe)}else jn=or.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ht,shift:cn},{type:"elem",elem:Or,shift:Yr}]},pe);return jn.children[0].children[0].children[1].classes.push("svg-align"),or.makeSpan(["mrel","x-arrow"],[jn],pe)},mathmlBuilder:function(ne,pe){var be=wo.mathMLnode(ne.label),je;if(ne.body){var ht=Nr(Hi(ne.body,pe));if(ne.below){var Vt=Nr(Hi(ne.below,pe));je=new bi.MathNode("munderover",[be,Vt,ht])}else je=new bi.MathNode("mover",[be,ht])}else if(ne.below){var Or=Nr(Hi(ne.below,pe));je=new bi.MathNode("munder",[be,Or])}else je=Nr(),je=new bi.MathNode("mover",[be,je]);return je}}),Lt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(ne,pe){for(var be=ne.parser,je=ln(pe[0],"ordgroup"),ht=je.body,Vt="",Or=0;Or<ht.length;Or++){var Yr=ln(ht[Or],"textord");Vt+=Yr.text}var cn=parseInt(Vt);if(isNaN(cn))throw new c("\\@char has non-numeric argument "+Vt);return{type:"textord",mode:be.mode,text:String.fromCharCode(cn)}}});var rn=function(ne,pe){var be=dn(ne.body,pe.withColor(ne.color),!1);return or.makeFragment(be)},En=function(ne,pe){var be=Yi(ne.body,pe.withColor(ne.color)),je=new bi.MathNode("mstyle",be);return je.setAttribute("mathcolor",ne.color),je};Lt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(ne,pe){var be=ne.parser,je=ln(pe[0],"color-token").color,ht=pe[1];return{type:"color",mode:be.mode,color:je,body:Vr(ht)}},htmlBuilder:rn,mathmlBuilder:En}),Lt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(ne,pe){var be=ne.parser,je=ne.breakOnTokenText,ht=ln(pe[0],"color-token").color;be.gullet.macros.set("\\current@color",ht);var Vt=be.parseExpression(!0,je);return{type:"color",mode:be.mode,color:ht,body:Vt}},htmlBuilder:rn,mathmlBuilder:En}),Lt({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ne,pe,be){var je=ne.parser,ht=ne.funcName,Vt=be[0],Or=ht==="\\cr",Yr=!1;return Or||(je.settings.displayMode&&je.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?Yr=!1:Yr=!0),{type:"cr",mode:je.mode,newLine:Yr,newRow:Or,size:Vt&&ln(Vt,"size").value}},htmlBuilder:function(ne,pe){if(ne.newRow)throw new c("\\cr valid only within a tabular/array environment");var be=or.makeSpan(["mspace"],[],pe);return ne.newLine&&(be.classes.push("newline"),ne.size&&(be.style.marginTop=rr(ne.size,pe)+"em")),be},mathmlBuilder:function(ne,pe){var be=new bi.MathNode("mspace");return ne.newLine&&(be.setAttribute("linebreak","newline"),ne.size&&be.setAttribute("height",rr(ne.size,pe)+"em")),be}});var en=function(ne,pe,be){var je=Xe.math[ne]&&Xe.math[ne].replace,ht=$e(je||ne,pe,be);if(!ht)throw new Error("Unsupported symbol "+ne+" and font size "+pe+".");return ht},ur=function(ne,pe,be,je){var ht=be.havingBaseStyle(pe),Vt=or.makeSpan(je.concat(ht.sizingClasses(be)),[ne],be),Or=ht.sizeMultiplier/be.sizeMultiplier;return Vt.height*=Or,Vt.depth*=Or,Vt.maxFontSize=ht.sizeMultiplier,Vt},on=function(ne,pe,be){var je=pe.havingBaseStyle(be),ht=(1-pe.sizeMultiplier/je.sizeMultiplier)*pe.fontMetrics().axisHeight;ne.classes.push("delimcenter"),ne.style.top=ht+"em",ne.height-=ht,ne.depth+=ht},Bn=function(ne,pe,be,je,ht,Vt){var Or=or.makeSymbol(ne,"Main-Regular",ht,je),Yr=ur(Or,pe,je,Vt);return be&&on(Yr,je,pe),Yr},Hn=function(ne,pe,be,je){return or.makeSymbol(ne,"Size"+pe+"-Regular",be,je)},Ii=function(ne,pe,be,je,ht,Vt){var Or=Hn(ne,pe,ht,je),Yr=ur(or.makeSpan(["delimsizing","size"+pe],[Or],je),j.TEXT,je,Vt);return be&&on(Yr,je,j.TEXT),Yr},Ci=function(ne,pe,be){var je;pe==="Size1-Regular"?je="delim-size1":je="delim-size4";var ht=or.makeSpan(["delimsizinginner",je],[or.makeSpan([],[or.makeSymbol(ne,pe,be)])]);return{type:"elem",elem:ht}},Jn={type:"kern",size:-.005},mi=function(ne,pe,be,je,ht,Vt){var Or,Yr,cn,jn;Or=cn=jn=ne,Yr=null;var ai="Size1-Regular";ne==="\\uparrow"?cn=jn="\u23D0":ne==="\\Uparrow"?cn=jn="\u2016":ne==="\\downarrow"?Or=cn="\u23D0":ne==="\\Downarrow"?Or=cn="\u2016":ne==="\\updownarrow"?(Or="\\uparrow",cn="\u23D0",jn="\\downarrow"):ne==="\\Updownarrow"?(Or="\\Uparrow",cn="\u2016",jn="\\Downarrow"):ne==="["||ne==="\\lbrack"?(Or="\u23A1",cn="\u23A2",jn="\u23A3",ai="Size4-Regular"):ne==="]"||ne==="\\rbrack"?(Or="\u23A4",cn="\u23A5",jn="\u23A6",ai="Size4-Regular"):ne==="\\lfloor"||ne==="\u230A"?(cn=Or="\u23A2",jn="\u23A3",ai="Size4-Regular"):ne==="\\lceil"||ne==="\u2308"?(Or="\u23A1",cn=jn="\u23A2",ai="Size4-Regular"):ne==="\\rfloor"||ne==="\u230B"?(cn=Or="\u23A5",jn="\u23A6",ai="Size4-Regular"):ne==="\\rceil"||ne==="\u2309"?(Or="\u23A4",cn=jn="\u23A5",ai="Size4-Regular"):ne==="("||ne==="\\lparen"?(Or="\u239B",cn="\u239C",jn="\u239D",ai="Size4-Regular"):ne===")"||ne==="\\rparen"?(Or="\u239E",cn="\u239F",jn="\u23A0",ai="Size4-Regular"):ne==="\\{"||ne==="\\lbrace"?(Or="\u23A7",Yr="\u23A8",jn="\u23A9",cn="\u23AA",ai="Size4-Regular"):ne==="\\}"||ne==="\\rbrace"?(Or="\u23AB",Yr="\u23AC",jn="\u23AD",cn="\u23AA",ai="Size4-Regular"):ne==="\\lgroup"||ne==="\u27EE"?(Or="\u23A7",jn="\u23A9",cn="\u23AA",ai="Size4-Regular"):ne==="\\rgroup"||ne==="\u27EF"?(Or="\u23AB",jn="\u23AD",cn="\u23AA",ai="Size4-Regular"):ne==="\\lmoustache"||ne==="\u23B0"?(Or="\u23A7",jn="\u23AD",cn="\u23AA",ai="Size4-Regular"):(ne==="\\rmoustache"||ne==="\u23B1")&&(Or="\u23AB",jn="\u23A9",cn="\u23AA",ai="Size4-Regular");var Qn=en(Or,ai,ht),Ni=Qn.height+Qn.depth,Vi=en(cn,ai,ht),Ta=Vi.height+Vi.depth,Ga=en(jn,ai,ht),ao=Ga.height+Ga.depth,Do=0,fo=1;if(Yr!==null){var as=en(Yr,ai,ht);Do=as.height+as.depth,fo=2}var io=Ni+ao+Do,Xa=Math.max(0,Math.ceil((pe-io)/(fo*Ta))),Ya=io+Xa*fo*Ta,ka=je.fontMetrics().axisHeight;be&&(ka*=je.sizeMultiplier);var os=Ya/2-ka,Es=(Xa+1)*.005-Ta,qo=[];if(qo.push(Ci(jn,ai,ht)),Yr===null)for(var pa=0;pa<Xa;pa++)qo.push(Jn),qo.push(Ci(cn,ai,ht));else{for(var ls=0;ls<Xa;ls++)qo.push(Jn),qo.push(Ci(cn,ai,ht));qo.push({type:"kern",size:Es}),qo.push(Ci(cn,ai,ht)),qo.push(Jn),qo.push(Ci(Yr,ai,ht));for(var Os=0;Os<Xa;Os++)qo.push(Jn),qo.push(Ci(cn,ai,ht))}qo.push({type:"kern",size:Es}),qo.push(Ci(cn,ai,ht)),qo.push(Jn),qo.push(Ci(Or,ai,ht));var ys=je.havingBaseStyle(j.TEXT),ms=or.makeVList({positionType:"bottom",positionData:os,children:qo},ys);return ur(or.makeSpan(["delimsizing","mult"],[ms],ys),j.TEXT,je,Vt)},yi=80,da=.08,ha=function(ne,pe,be,je,ht){var Vt=fe(ne,je,be),Or=new ce(ne,Vt),Yr=new Ie([Or],{width:"400em",height:pe+"em",viewBox:"0 0 400000 "+be,preserveAspectRatio:"xMinYMin slice"});return or.makeSvgSpan(["hide-tail"],[Yr],ht)},Pa=function(ne,pe){var be=pe.havingBaseSizing(),je=ni("\\surd",ne*be.sizeMultiplier,un,be),ht=be.sizeMultiplier,Vt=Math.max(0,pe.minRuleThickness-pe.fontMetrics().sqrtRuleThickness),Or,Yr=0,cn=0,jn=0,ai;return je.type==="small"?(jn=1e3+1e3*Vt+yi,ne<1?ht=1:ne<1.4&&(ht=.7),Yr=(1+Vt+da)/ht,cn=(1+Vt)/ht,Or=ha("sqrtMain",Yr,jn,Vt,pe),Or.style.minWidth="0.853em",ai=.833/ht):je.type==="large"?(jn=(1e3+yi)*lo[je.size],cn=(lo[je.size]+Vt)/ht,Yr=(lo[je.size]+Vt+da)/ht,Or=ha("sqrtSize"+je.size,Yr,jn,Vt,pe),Or.style.minWidth="1.02em",ai=1/ht):(Yr=ne+Vt+da,cn=ne+Vt,jn=Math.floor(1e3*ne+Vt)+yi,Or=ha("sqrtTall",Yr,jn,Vt,pe),Or.style.minWidth="0.742em",ai=1.056),Or.height=cn,Or.style.height=Yr+"em",{span:Or,advanceWidth:ai,ruleWidth:(pe.fontMetrics().sqrtRuleThickness+Vt)*ht}},Ra=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],so=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],La=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],lo=[0,1.2,1.8,2.4,3],So=function(ne,pe,be,je,ht){if(ne==="<"||ne==="\\lt"||ne==="\u27E8"?ne="\\langle":(ne===">"||ne==="\\gt"||ne==="\u27E9")&&(ne="\\rangle"),p.contains(Ra,ne)||p.contains(La,ne))return Ii(ne,pe,!1,be,je,ht);if(p.contains(so,ne))return mi(ne,lo[pe],!1,be,je,ht);throw new c("Illegal delimiter: '"+ne+"'")},Xt=[{type:"small",style:j.SCRIPTSCRIPT},{type:"small",style:j.SCRIPT},{type:"small",style:j.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],zr=[{type:"small",style:j.SCRIPTSCRIPT},{type:"small",style:j.SCRIPT},{type:"small",style:j.TEXT},{type:"stack"}],un=[{type:"small",style:j.SCRIPTSCRIPT},{type:"small",style:j.SCRIPT},{type:"small",style:j.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],vn=function(ne){if(ne.type==="small")return"Main-Regular";if(ne.type==="large")return"Size"+ne.size+"-Regular";if(ne.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+ne.type+"' here.")},ni=function(ne,pe,be,je){for(var ht=Math.min(2,3-je.style.size),Vt=ht;Vt<be.length&&!(be[Vt].type==="stack");Vt++){var Or=en(ne,vn(be[Vt]),"math"),Yr=Or.height+Or.depth;if(be[Vt].type==="small"){var cn=je.havingBaseStyle(be[Vt].style);Yr*=cn.sizeMultiplier}if(Yr>pe)return be[Vt]}return be[be.length-1]},li=function(ne,pe,be,je,ht,Vt){ne==="<"||ne==="\\lt"||ne==="\u27E8"?ne="\\langle":(ne===">"||ne==="\\gt"||ne==="\u27E9")&&(ne="\\rangle");var Or;p.contains(La,ne)?Or=Xt:p.contains(Ra,ne)?Or=un:Or=zr;var Yr=ni(ne,pe,Or,je);return Yr.type==="small"?Bn(ne,Yr.style,be,je,ht,Vt):Yr.type==="large"?Ii(ne,Yr.size,be,je,ht,Vt):mi(ne,pe,be,je,ht,Vt)},fi=function(ne,pe,be,je,ht,Vt){var Or=je.fontMetrics().axisHeight*je.sizeMultiplier,Yr=901,cn=5/je.fontMetrics().ptPerEm,jn=Math.max(pe-Or,be+Or),ai=Math.max(jn/500*Yr,2*jn-cn);return li(ne,ai,!0,je,ht,Vt)},di={sqrtImage:Pa,sizedDelim:So,customSizedDelim:li,leftRightDelim:fi},Yt={"\\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}},Et=["(","\\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 yr(ut,ne){var pe=Ui(ut);if(pe&&p.contains(Et,pe.text))return pe;throw new c("Invalid delimiter: '"+(pe?pe.text:JSON.stringify(ut))+"' after '"+ne.funcName+"'",ut)}Lt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(ne,pe){var be=yr(pe[0],ne);return{type:"delimsizing",mode:ne.parser.mode,size:Yt[ne.funcName].size,mclass:Yt[ne.funcName].mclass,delim:be.text}},htmlBuilder:function(ne,pe){return ne.delim==="."?or.makeSpan([ne.mclass]):di.sizedDelim(ne.delim,ne.size,pe,ne.mode,[ne.mclass])},mathmlBuilder:function(ne){var pe=[];ne.delim!=="."&&pe.push(Sn(ne.delim,ne.mode));var be=new bi.MathNode("mo",pe);return ne.mclass==="mopen"||ne.mclass==="mclose"?be.setAttribute("fence","true"):be.setAttribute("fence","false"),be}});function ct(ut){if(!ut.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Lt({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(ne,pe){var be=ne.parser.gullet.macros.get("\\current@color");if(be&&typeof be!="string")throw new c("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:ne.parser.mode,delim:yr(pe[0],ne).text,color:be}}}),Lt({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(ne,pe){var be=yr(pe[0],ne),je=ne.parser;++je.leftrightDepth;var ht=je.parseExpression(!1);--je.leftrightDepth,je.expect("\\right",!1);var Vt=ln(je.parseFunction(),"leftright-right");return{type:"leftright",mode:je.mode,body:ht,left:be.text,right:Vt.delim,rightColor:Vt.color}},htmlBuilder:function(ne,pe){ct(ne);for(var be=dn(ne.body,pe,!0,["mopen","mclose"]),je=0,ht=0,Vt=!1,Or=0;Or<be.length;Or++)be[Or].isMiddle?Vt=!0:(je=Math.max(be[Or].height,je),ht=Math.max(be[Or].depth,ht));je*=pe.sizeMultiplier,ht*=pe.sizeMultiplier;var Yr;if(ne.left==="."?Yr=qn(pe,["mopen"]):Yr=di.leftRightDelim(ne.left,je,ht,pe,ne.mode,["mopen"]),be.unshift(Yr),Vt)for(var cn=1;cn<be.length;cn++){var jn=be[cn],ai=jn.isMiddle;ai&&(be[cn]=di.leftRightDelim(ai.delim,je,ht,ai.options,ne.mode,[]))}var Qn;if(ne.right===".")Qn=qn(pe,["mclose"]);else{var Ni=ne.rightColor?pe.withColor(ne.rightColor):pe;Qn=di.leftRightDelim(ne.right,je,ht,Ni,ne.mode,["mclose"])}return be.push(Qn),or.makeSpan(["minner"],be,pe)},mathmlBuilder:function(ne,pe){ct(ne);var be=Yi(ne.body,pe);if(ne.left!=="."){var je=new bi.MathNode("mo",[Sn(ne.left,ne.mode)]);je.setAttribute("fence","true"),be.unshift(je)}if(ne.right!=="."){var ht=new bi.MathNode("mo",[Sn(ne.right,ne.mode)]);ht.setAttribute("fence","true"),ne.rightColor&&ht.setAttribute("mathcolor",ne.rightColor),be.push(ht)}return zi(be)}}),Lt({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(ne,pe){var be=yr(pe[0],ne);if(!ne.parser.leftrightDepth)throw new c("\\middle without preceding \\left",be);return{type:"middle",mode:ne.parser.mode,delim:be.text}},htmlBuilder:function(ne,pe){var be;if(ne.delim===".")be=qn(pe,[]);else{be=di.sizedDelim(ne.delim,1,pe,ne.mode,[]);var je={delim:ne.delim,options:pe};be.isMiddle=je}return be},mathmlBuilder:function(ne,pe){var be=ne.delim==="\\vert"||ne.delim==="|"?Sn("|","text"):Sn(ne.delim,ne.mode),je=new bi.MathNode("mo",[be]);return je.setAttribute("fence","true"),je.setAttribute("lspace","0.05em"),je.setAttribute("rspace","0.05em"),je}});var Zt=function(ne,pe){var be=or.wrapFragment(Oi(ne.body,pe),pe),je=ne.label.substr(1),ht=pe.sizeMultiplier,Vt,Or=0,Yr=p.isCharacterBox(ne.body);if(je==="sout")Vt=or.makeSpan(["stretchy","sout"]),Vt.height=pe.fontMetrics().defaultRuleThickness/ht,Or=-.5*pe.fontMetrics().xHeight;else{/cancel/.test(je)?Yr||be.classes.push("cancel-pad"):be.classes.push("boxpad");var cn=0,jn=0;/box/.test(je)?(jn=Math.max(pe.fontMetrics().fboxrule,pe.minRuleThickness),cn=pe.fontMetrics().fboxsep+(je==="colorbox"?0:jn)):cn=Yr?.2:0,Vt=wo.encloseSpan(be,je,cn,pe),/fbox|boxed|fcolorbox/.test(je)&&(Vt.style.borderStyle="solid",Vt.style.borderWidth=jn+"em"),Or=be.depth+cn,ne.backgroundColor&&(Vt.style.backgroundColor=ne.backgroundColor,ne.borderColor&&(Vt.style.borderColor=ne.borderColor))}var ai;return ne.backgroundColor?ai=or.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Vt,shift:Or},{type:"elem",elem:be,shift:0}]},pe):ai=or.makeVList({positionType:"individualShift",children:[{type:"elem",elem:be,shift:0},{type:"elem",elem:Vt,shift:Or,wrapperClasses:/cancel/.test(je)?["svg-align"]:[]}]},pe),/cancel/.test(je)&&(ai.height=be.height,ai.depth=be.depth),/cancel/.test(je)&&!Yr?or.makeSpan(["mord","cancel-lap"],[ai],pe):or.makeSpan(["mord"],[ai],pe)},dr=function(ne,pe){var be=0,je=new bi.MathNode(ne.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Hi(ne.body,pe)]);switch(ne.label){case"\\cancel":je.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":je.setAttribute("notation","downdiagonalstrike");break;case"\\sout":je.setAttribute("notation","horizontalstrike");break;case"\\fbox":je.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(be=pe.fontMetrics().fboxsep*pe.fontMetrics().ptPerEm,je.setAttribute("width","+"+2*be+"pt"),je.setAttribute("height","+"+2*be+"pt"),je.setAttribute("lspace",be+"pt"),je.setAttribute("voffset",be+"pt"),ne.label==="\\fcolorbox"){var ht=Math.max(pe.fontMetrics().fboxrule,pe.minRuleThickness);je.setAttribute("style","border: "+ht+"em solid "+String(ne.borderColor))}break;case"\\xcancel":je.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return ne.backgroundColor&&je.setAttribute("mathbackground",ne.backgroundColor),je};Lt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(ne,pe,be){var je=ne.parser,ht=ne.funcName,Vt=ln(pe[0],"color-token").color,Or=pe[1];return{type:"enclose",mode:je.mode,label:ht,backgroundColor:Vt,body:Or}},htmlBuilder:Zt,mathmlBuilder:dr}),Lt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(ne,pe,be){var je=ne.parser,ht=ne.funcName,Vt=ln(pe[0],"color-token").color,Or=ln(pe[1],"color-token").color,Yr=pe[2];return{type:"enclose",mode:je.mode,label:ht,backgroundColor:Or,borderColor:Vt,body:Yr}},htmlBuilder:Zt,mathmlBuilder:dr}),Lt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(ne,pe){var be=ne.parser;return{type:"enclose",mode:be.mode,label:"\\fbox",body:pe[0]}}}),Lt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(ne,pe,be){var je=ne.parser,ht=ne.funcName,Vt=pe[0];return{type:"enclose",mode:je.mode,label:ht,body:Vt}},htmlBuilder:Zt,mathmlBuilder:dr});var Lr={};function Jr(ut){for(var ne=ut.type,pe=ut.names,be=ut.props,je=ut.handler,ht=ut.htmlBuilder,Vt=ut.mathmlBuilder,Or={type:ne,numArgs:be.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:je},Yr=0;Yr<pe.length;++Yr)Lr[pe[Yr]]=Or;ht&&(mr[ne]=ht),Vt&&(Cr[ne]=Vt)}function fn(ut){var ne=[];ut.consumeSpaces();for(var pe=ut.fetch().text;pe==="\\hline"||pe==="\\hdashline";)ut.consume(),ne.push(pe==="\\hdashline"),ut.consumeSpaces(),pe=ut.fetch().text;return ne}function Cn(ut,ne,pe){var be=ne.hskipBeforeAndAfter,je=ne.addJot,ht=ne.cols,Vt=ne.arraystretch,Or=ne.colSeparationType;if(ut.gullet.beginGroup(),ut.gullet.macros.set("\\\\","\\cr"),!Vt){var Yr=ut.gullet.expandMacroAsText("\\arraystretch");if(Yr==null)Vt=1;else if(Vt=parseFloat(Yr),!Vt||Vt<0)throw new c("Invalid \\arraystretch: "+Yr)}ut.gullet.beginGroup();var cn=[],jn=[cn],ai=[],Qn=[];for(Qn.push(fn(ut));;){var Ni=ut.parseExpression(!1,"\\cr");ut.gullet.endGroup(),ut.gullet.beginGroup(),Ni={type:"ordgroup",mode:ut.mode,body:Ni},pe&&(Ni={type:"styling",mode:ut.mode,style:pe,body:[Ni]}),cn.push(Ni);var Vi=ut.fetch().text;if(Vi==="&")ut.consume();else if(Vi==="\\end"){cn.length===1&&Ni.type==="styling"&&Ni.body[0].body.length===0&&jn.pop(),Qn.length<jn.length+1&&Qn.push([]);break}else if(Vi==="\\cr"){var Ta=ln(ut.parseFunction(),"cr");ai.push(Ta.size),Qn.push(fn(ut)),cn=[],jn.push(cn)}else throw new c("Expected & or \\\\ or \\cr or \\end",ut.nextToken)}return ut.gullet.endGroup(),ut.gullet.endGroup(),{type:"array",mode:ut.mode,addJot:je,arraystretch:Vt,body:jn,cols:ht,rowGaps:ai,hskipBeforeAndAfter:be,hLinesBeforeRow:Qn,colSeparationType:Or}}function Nn(ut){return ut.substr(0,1)==="d"?"display":"text"}var Zn=function(ne,pe){var be,je,ht=ne.body.length,Vt=ne.hLinesBeforeRow,Or=0,Yr=new Array(ht),cn=[],jn=Math.max(pe.fontMetrics().arrayRuleWidth,pe.minRuleThickness),ai=1/pe.fontMetrics().ptPerEm,Qn=5*ai;if(ne.colSeparationType&&ne.colSeparationType==="small"){var Ni=pe.havingStyle(j.SCRIPT).sizeMultiplier;Qn=.2778*(Ni/pe.sizeMultiplier)}var Vi=12*ai,Ta=3*ai,Ga=ne.arraystretch*Vi,ao=.7*Ga,Do=.3*Ga,fo=0;function as(Gs){for(var zs=0;zs<Gs.length;++zs)zs>0&&(fo+=.25),cn.push({pos:fo,isDashed:Gs[zs]})}for(as(Vt[0]),be=0;be<ne.body.length;++be){var io=ne.body[be],Xa=ao,Ya=Do;Or<io.length&&(Or=io.length);var ka=new Array(io.length);for(je=0;je<io.length;++je){var os=Oi(io[je],pe);Ya<os.depth&&(Ya=os.depth),Xa<os.height&&(Xa=os.height),ka[je]=os}var Es=ne.rowGaps[be],qo=0;Es&&(qo=rr(Es,pe),qo>0&&(qo+=Do,Ya<qo&&(Ya=qo),qo=0)),ne.addJot&&(Ya+=Ta),ka.height=Xa,ka.depth=Ya,fo+=Xa,ka.pos=fo,fo+=Ya+qo,Yr[be]=ka,as(Vt[be+1])}var pa=fo/2+pe.fontMetrics().axisHeight,ls=ne.cols||[],Os=[],ys,ms;for(je=0,ms=0;je<Or||ms<ls.length;++je,++ms){for(var ws=ls[ms]||{},Pl=!0;ws.type==="separator";){if(Pl||(ys=or.makeSpan(["arraycolsep"],[]),ys.style.width=pe.fontMetrics().doubleRuleSep+"em",Os.push(ys)),ws.separator==="|"||ws.separator===":"){var ml=ws.separator==="|"?"solid":"dashed",Ws=or.makeSpan(["vertical-separator"],[],pe);Ws.style.height=fo+"em",Ws.style.borderRightWidth=jn+"em",Ws.style.borderRightStyle=ml,Ws.style.margin="0 -"+jn/2+"em",Ws.style.verticalAlign=-(fo-pa)+"em",Os.push(Ws)}else throw new c("Invalid separator type: "+ws.separator);ms++,ws=ls[ms]||{},Pl=!1}if(je>=Or)continue;var fs=void 0;(je>0||ne.hskipBeforeAndAfter)&&(fs=p.deflt(ws.pregap,Qn),fs!==0&&(ys=or.makeSpan(["arraycolsep"],[]),ys.style.width=fs+"em",Os.push(ys)));var _s=[];for(be=0;be<ht;++be){var gl=Yr[be],Bs=gl[je];if(!Bs)continue;var Us=gl.pos-pa;Bs.depth=gl.depth,Bs.height=gl.height,_s.push({type:"elem",elem:Bs,shift:Us})}_s=or.makeVList({positionType:"individualShift",children:_s},pe),_s=or.makeSpan(["col-align-"+(ws.align||"c")],[_s]),Os.push(_s),(je<Or-1||ne.hskipBeforeAndAfter)&&(fs=p.deflt(ws.postgap,Qn),fs!==0&&(ys=or.makeSpan(["arraycolsep"],[]),ys.style.width=fs+"em",Os.push(ys)))}if(Yr=or.makeSpan(["mtable"],Os),cn.length>0){for(var Qs=or.makeLineSpan("hline",pe,jn),al=or.makeLineSpan("hdashline",pe,jn),El=[{type:"elem",elem:Yr,shift:0}];cn.length>0;){var bl=cn.pop(),ol=bl.pos-pa;bl.isDashed?El.push({type:"elem",elem:al,shift:ol}):El.push({type:"elem",elem:Qs,shift:ol})}Yr=or.makeVList({positionType:"individualShift",children:El},pe)}return or.makeSpan(["mord"],[Yr],pe)},ii={c:"center ",l:"left ",r:"right "},pi=function(ne,pe){var be=new bi.MathNode("mtable",ne.body.map(function(fo){return new bi.MathNode("mtr",fo.map(function(as){return new bi.MathNode("mtd",[Hi(as,pe)])}))})),je=ne.arraystretch===.5?.1:.16+ne.arraystretch-1+(ne.addJot?.09:0);be.setAttribute("rowspacing",je+"em");var ht="",Vt="";if(ne.cols){var Or=ne.cols,Yr="",cn=!1,jn=0,ai=Or.length;Or[0].type==="separator"&&(ht+="top ",jn=1),Or[Or.length-1].type==="separator"&&(ht+="bottom ",ai-=1);for(var Qn=jn;Qn<ai;Qn++)Or[Qn].type==="align"?(Vt+=ii[Or[Qn].align],cn&&(Yr+="none "),cn=!0):Or[Qn].type==="separator"&&(cn&&(Yr+=Or[Qn].separator==="|"?"solid ":"dashed ",cn=!1));be.setAttribute("columnalign",Vt.trim()),/[sd]/.test(Yr)&&be.setAttribute("columnlines",Yr.trim())}if(ne.colSeparationType==="align"){for(var Ni=ne.cols||[],Vi="",Ta=1;Ta<Ni.length;Ta++)Vi+=Ta%2?"0em ":"1em ";be.setAttribute("columnspacing",Vi.trim())}else ne.colSeparationType==="alignat"?be.setAttribute("columnspacing","0em"):ne.colSeparationType==="small"?be.setAttribute("columnspacing","0.2778em"):be.setAttribute("columnspacing","1em");var Ga="",ao=ne.hLinesBeforeRow;ht+=ao[0].length>0?"left ":"",ht+=ao[ao.length-1].length>0?"right ":"";for(var Do=1;Do<ao.length-1;Do++)Ga+=ao[Do].length===0?"none ":ao[Do][0]?"dashed ":"solid ";return/[sd]/.test(Ga)&&be.setAttribute("rowlines",Ga.trim()),ht!==""&&(be=new bi.MathNode("menclose",[be]),be.setAttribute("notation",ht.trim())),ne.arraystretch&&ne.arraystretch<1&&(be=new bi.MathNode("mstyle",[be]),be.setAttribute("scriptlevel","1")),be},ri=function(ne,pe){var be=[],je=Cn(ne.parser,{cols:be,addJot:!0},"display"),ht,Vt=0,Or={type:"ordgroup",mode:ne.mode,body:[]},Yr=an(pe[0],"ordgroup");if(Yr){for(var cn="",jn=0;jn<Yr.body.length;jn++){var ai=ln(Yr.body[jn],"textord");cn+=ai.text}ht=Number(cn),Vt=ht*2}var Qn=!Vt;je.body.forEach(function(Ga){for(var ao=1;ao<Ga.length;ao+=2){var Do=ln(Ga[ao],"styling"),fo=ln(Do.body[0],"ordgroup");fo.body.unshift(Or)}if(Qn)Vt<Ga.length&&(Vt=Ga.length);else{var as=Ga.length/2;if(ht<as)throw new c("Too many math in a row: "+("expected "+ht+", but got "+as),Ga[0])}});for(var Ni=0;Ni<Vt;++Ni){var Vi="r",Ta=0;Ni%2===1?Vi="l":Ni>0&&Qn&&(Ta=1),be[Ni]={type:"align",align:Vi,pregap:Ta,postgap:0}}return je.colSeparationType=Qn?"align":"alignat",je};Jr({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(ne,pe){var be=Ui(pe[0]),je=be?[pe[0]]:ln(pe[0],"ordgroup").body,ht=je.map(function(Or){var Yr=ci(Or),cn=Yr.text;if("lcr".indexOf(cn)!==-1)return{type:"align",align:cn};if(cn==="|")return{type:"separator",separator:"|"};if(cn===":")return{type:"separator",separator:":"};throw new c("Unknown column alignment: "+cn,Or)}),Vt={cols:ht,hskipBeforeAndAfter:!0};return Cn(ne.parser,Vt,Nn(ne.envName))},htmlBuilder:Zn,mathmlBuilder:pi}),Jr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(ne){var pe={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[ne.envName],be={hskipBeforeAndAfter:!1},je=Cn(ne.parser,be,Nn(ne.envName));return pe?{type:"leftright",mode:ne.mode,body:[je],left:pe[0],right:pe[1],rightColor:void 0}:je},htmlBuilder:Zn,mathmlBuilder:pi}),Jr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(ne){var pe={arraystretch:.5},be=Cn(ne.parser,pe,"script");return be.colSeparationType="small",be},htmlBuilder:Zn,mathmlBuilder:pi}),Jr({type:"array",names:["subarray"],props:{numArgs:1},handler:function(ne,pe){var be=Ui(pe[0]),je=be?[pe[0]]:ln(pe[0],"ordgroup").body,ht=je.map(function(Or){var Yr=ci(Or),cn=Yr.text;if("lc".indexOf(cn)!==-1)return{type:"align",align:cn};throw new c("Unknown column alignment: "+cn,Or)});if(ht.length>1)throw new c("{subarray} can contain only one column");var Vt={cols:ht,hskipBeforeAndAfter:!1,arraystretch:.5};if(Vt=Cn(ne.parser,Vt,"script"),Vt.body[0].length>1)throw new c("{subarray} can contain only one column");return Vt},htmlBuilder:Zn,mathmlBuilder:pi}),Jr({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(ne){var pe={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},be=Cn(ne.parser,pe,Nn(ne.envName));return{type:"leftright",mode:ne.mode,body:[be],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Zn,mathmlBuilder:pi}),Jr({type:"array",names:["aligned"],props:{numArgs:0},handler:ri,htmlBuilder:Zn,mathmlBuilder:pi}),Jr({type:"array",names:["gathered"],props:{numArgs:0},handler:function(ne){var pe={cols:[{type:"align",align:"c"}],addJot:!0};return Cn(ne.parser,pe,"display")},htmlBuilder:Zn,mathmlBuilder:pi}),Jr({type:"array",names:["alignedat"],props:{numArgs:1},handler:ri,htmlBuilder:Zn,mathmlBuilder:pi}),Lt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(ne,pe){throw new c(ne.funcName+" valid only within array environment")}});var ji=Lr,ei=ji;Lt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(ne,pe){var be=ne.parser,je=ne.funcName,ht=pe[0];if(ht.type!=="ordgroup")throw new c("Invalid environment name",ht);for(var Vt="",Or=0;Or<ht.body.length;++Or)Vt+=ln(ht.body[Or],"textord").text;if(je==="\\begin"){if(!ei.hasOwnProperty(Vt))throw new c("No such environment: "+Vt,ht);var Yr=ei[Vt],cn=be.parseArguments("\\begin{"+Vt+"}",Yr),jn=cn.args,ai=cn.optArgs,Qn={mode:be.mode,envName:Vt,parser:be},Ni=Yr.handler(Qn,jn,ai);be.expect("\\end",!1);var Vi=be.nextToken,Ta=ln(be.parseFunction(),"environment");if(Ta.name!==Vt)throw new c("Mismatch: \\begin{"+Vt+"} matched by \\end{"+Ta.name+"}",Vi);return Ni}return{type:"environment",mode:be.mode,name:Vt,nameGroup:ht}}});var Je=or.makeSpan;function Gt(ut,ne){var pe=dn(ut.body,ne,!0);return Je([ut.mclass],pe,ne)}function vr(ut,ne){var pe,be=Yi(ut.body,ne);return ut.mclass==="minner"?bi.newDocumentFragment(be):(ut.mclass==="mord"?ut.isCharacterBox?(pe=be[0],pe.type="mi"):pe=new bi.MathNode("mi",be):(ut.isCharacterBox?(pe=be[0],pe.type="mo"):pe=new bi.MathNode("mo",be),ut.mclass==="mbin"?(pe.attributes.lspace="0.22em",pe.attributes.rspace="0.22em"):ut.mclass==="mpunct"?(pe.attributes.lspace="0em",pe.attributes.rspace="0.17em"):(ut.mclass==="mopen"||ut.mclass==="mclose")&&(pe.attributes.lspace="0em",pe.attributes.rspace="0em")),pe)}Lt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(ne,pe){var be=ne.parser,je=ne.funcName,ht=pe[0];return{type:"mclass",mode:be.mode,mclass:"m"+je.substr(5),body:Vr(ht),isCharacterBox:p.isCharacterBox(ht)}},htmlBuilder:Gt,mathmlBuilder:vr});var fr=function(ne){var pe=ne.type==="ordgroup"&&ne.body.length?ne.body[0]:ne;return pe.type==="atom"&&(pe.family==="bin"||pe.family==="rel")?"m"+pe.family:"mord"};Lt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(ne,pe){var be=ne.parser;return{type:"mclass",mode:be.mode,mclass:fr(pe[0]),body:[pe[1]],isCharacterBox:p.isCharacterBox(pe[1])}}}),Lt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(ne,pe){var be=ne.parser,je=ne.funcName,ht=pe[1],Vt=pe[0],Or;je!=="\\stackrel"?Or=fr(ht):Or="mrel";var Yr={type:"op",mode:ht.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:je!=="\\stackrel",body:Vr(ht)},cn={type:"supsub",mode:Vt.mode,base:Yr,sup:je==="\\underset"?null:Vt,sub:je==="\\underset"?Vt:null};return{type:"mclass",mode:be.mode,mclass:Or,body:[cn],isCharacterBox:p.isCharacterBox(cn)}},htmlBuilder:Gt,mathmlBuilder:vr});var Gr=function(ne,pe){var be=ne.font,je=pe.withFont(be);return Oi(ne.body,je)},Pr=function(ne,pe){var be=ne.font,je=pe.withFont(be);return Hi(ne.body,je)},hr={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Lt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(ne,pe){var be=ne.parser,je=ne.funcName,ht=pe[0],Vt=je;return Vt in hr&&(Vt=hr[Vt]),{type:"font",mode:be.mode,font:Vt.slice(1),body:ht}},htmlBuilder:Gr,mathmlBuilder:Pr}),Lt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(ne,pe){var be=ne.parser,je=pe[0],ht=p.isCharacterBox(je);return{type:"mclass",mode:be.mode,mclass:fr(je),body:[{type:"font",mode:be.mode,font:"boldsymbol",body:je}],isCharacterBox:ht}}}),Lt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(ne,pe){var be=ne.parser,je=ne.funcName,ht=ne.breakOnTokenText,Vt=be.mode,Or=be.parseExpression(!0,ht),Yr="math"+je.slice(1);return{type:"font",mode:Vt,font:Yr,body:{type:"ordgroup",mode:be.mode,body:Or}}},htmlBuilder:Gr,mathmlBuilder:Pr});var An=function(ne,pe){var be=pe;return ne==="display"?be=be.id>=j.SCRIPT.id?be.text():j.DISPLAY:ne==="text"&&be.size===j.DISPLAY.size?be=j.TEXT:ne==="script"?be=j.SCRIPT:ne==="scriptscript"&&(be=j.SCRIPTSCRIPT),be},br=function(ne,pe){var be=An(ne.size,pe.style),je=be.fracNum(),ht=be.fracDen(),Vt;Vt=pe.havingStyle(je);var Or=Oi(ne.numer,Vt,pe);if(ne.continued){var Yr=8.5/pe.fontMetrics().ptPerEm,cn=3.5/pe.fontMetrics().ptPerEm;Or.height=Or.height<Yr?Yr:Or.height,Or.depth=Or.depth<cn?cn:Or.depth}Vt=pe.havingStyle(ht);var jn=Oi(ne.denom,Vt,pe),ai,Qn,Ni;ne.hasBarLine?(ne.barSize?(Qn=rr(ne.barSize,pe),ai=or.makeLineSpan("frac-line",pe,Qn)):ai=or.makeLineSpan("frac-line",pe),Qn=ai.height,Ni=ai.height):(ai=null,Qn=0,Ni=pe.fontMetrics().defaultRuleThickness);var Vi,Ta,Ga;be.size===j.DISPLAY.size||ne.size==="display"?(Vi=pe.fontMetrics().num1,Qn>0?Ta=3*Ni:Ta=7*Ni,Ga=pe.fontMetrics().denom1):(Qn>0?(Vi=pe.fontMetrics().num2,Ta=Ni):(Vi=pe.fontMetrics().num3,Ta=3*Ni),Ga=pe.fontMetrics().denom2);var ao;if(ai){var fo=pe.fontMetrics().axisHeight;Vi-Or.depth-(fo+.5*Qn)<Ta&&(Vi+=Ta-(Vi-Or.depth-(fo+.5*Qn))),fo-.5*Qn-(jn.height-Ga)<Ta&&(Ga+=Ta-(fo-.5*Qn-(jn.height-Ga)));var as=-(fo-.5*Qn);ao=or.makeVList({positionType:"individualShift",children:[{type:"elem",elem:jn,shift:Ga},{type:"elem",elem:ai,shift:as},{type:"elem",elem:Or,shift:-Vi}]},pe)}else{var Do=Vi-Or.depth-(jn.height-Ga);Do<Ta&&(Vi+=.5*(Ta-Do),Ga+=.5*(Ta-Do)),ao=or.makeVList({positionType:"individualShift",children:[{type:"elem",elem:jn,shift:Ga},{type:"elem",elem:Or,shift:-Vi}]},pe)}Vt=pe.havingStyle(be),ao.height*=Vt.sizeMultiplier/pe.sizeMultiplier,ao.depth*=Vt.sizeMultiplier/pe.sizeMultiplier;var io;be.size===j.DISPLAY.size?io=pe.fontMetrics().delim1:io=pe.fontMetrics().delim2;var Xa,Ya;return ne.leftDelim==null?Xa=qn(pe,["mopen"]):Xa=di.customSizedDelim(ne.leftDelim,io,!0,pe.havingStyle(be),ne.mode,["mopen"]),ne.continued?Ya=or.makeSpan([]):ne.rightDelim==null?Ya=qn(pe,["mclose"]):Ya=di.customSizedDelim(ne.rightDelim,io,!0,pe.havingStyle(be),ne.mode,["mclose"]),or.makeSpan(["mord"].concat(Vt.sizingClasses(pe)),[Xa,or.makeSpan(["mfrac"],[ao]),Ya],pe)},pn=function(ne,pe){var be=new bi.MathNode("mfrac",[Hi(ne.numer,pe),Hi(ne.denom,pe)]);if(!ne.hasBarLine)be.setAttribute("linethickness","0px");else if(ne.barSize){var je=rr(ne.barSize,pe);be.setAttribute("linethickness",je+"em")}var ht=An(ne.size,pe.style);if(ht.size!==pe.style.size){be=new bi.MathNode("mstyle",[be]);var Vt=ht.size===j.DISPLAY.size?"true":"false";be.setAttribute("displaystyle",Vt),be.setAttribute("scriptlevel","0")}if(ne.leftDelim!=null||ne.rightDelim!=null){var Or=[];if(ne.leftDelim!=null){var Yr=new bi.MathNode("mo",[new bi.TextNode(ne.leftDelim.replace("\\",""))]);Yr.setAttribute("fence","true"),Or.push(Yr)}if(Or.push(be),ne.rightDelim!=null){var cn=new bi.MathNode("mo",[new bi.TextNode(ne.rightDelim.replace("\\",""))]);cn.setAttribute("fence","true"),Or.push(cn)}return zi(Or)}return be};Lt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(ne,pe){var be=ne.parser,je=ne.funcName,ht=pe[0],Vt=pe[1],Or,Yr=null,cn=null,jn="auto";switch(je){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Or=!0;break;case"\\\\atopfrac":Or=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Or=!1,Yr="(",cn=")";break;case"\\\\bracefrac":Or=!1,Yr="\\{",cn="\\}";break;case"\\\\brackfrac":Or=!1,Yr="[",cn="]";break;default:throw new Error("Unrecognized genfrac command")}switch(je){case"\\cfrac":case"\\dfrac":case"\\dbinom":jn="display";break;case"\\tfrac":case"\\tbinom":jn="text";break}return{type:"genfrac",mode:be.mode,continued:je==="\\cfrac",numer:ht,denom:Vt,hasBarLine:Or,leftDelim:Yr,rightDelim:cn,size:jn,barSize:null}},htmlBuilder:br,mathmlBuilder:pn}),Lt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(ne){var pe=ne.parser,be=ne.funcName,je=ne.token,ht;switch(be){case"\\over":ht="\\frac";break;case"\\choose":ht="\\binom";break;case"\\atop":ht="\\\\atopfrac";break;case"\\brace":ht="\\\\bracefrac";break;case"\\brack":ht="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:pe.mode,replaceWith:ht,token:je}}});var Kn=["display","text","script","scriptscript"],Wn=function(ne){var pe=null;return ne.length>0&&(pe=ne,pe=pe==="."?null:pe),pe};Lt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(ne,pe){var be=ne.parser,je=pe[4],ht=pe[5],Vt=an(pe[0],"atom");Vt&&(Vt=Rr(pe[0],"open"));var Or=Vt?Wn(Vt.text):null,Yr=an(pe[1],"atom");Yr&&(Yr=Rr(pe[1],"close"));var cn=Yr?Wn(Yr.text):null,jn=ln(pe[2],"size"),ai,Qn=null;jn.isBlank?ai=!0:(Qn=jn.value,ai=Qn.number>0);var Ni="auto",Vi=an(pe[3],"ordgroup");if(Vi){if(Vi.body.length>0){var Ta=ln(Vi.body[0],"textord");Ni=Kn[Number(Ta.text)]}}else Vi=ln(pe[3],"textord"),Ni=Kn[Number(Vi.text)];return{type:"genfrac",mode:be.mode,numer:je,denom:ht,continued:!1,hasBarLine:ai,barSize:Qn,leftDelim:Or,rightDelim:cn,size:Ni}},htmlBuilder:br,mathmlBuilder:pn}),Lt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(ne,pe){var be=ne.parser,je=ne.funcName,ht=ne.token;return{type:"infix",mode:be.mode,replaceWith:"\\\\abovefrac",size:ln(pe[0],"size").value,token:ht}}}),Lt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(ne,pe){var be=ne.parser,je=ne.funcName,ht=pe[0],Vt=u(ln(pe[1],"infix").size),Or=pe[2],Yr=Vt.number>0;return{type:"genfrac",mode:be.mode,numer:ht,denom:Or,continued:!1,hasBarLine:Yr,barSize:Vt,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:br,mathmlBuilder:pn});var Ln=function(ne,pe){var be=pe.style,je,ht,Vt=an(ne,"supsub");Vt?(je=Vt.sup?Oi(Vt.sup,pe.havingStyle(be.sup()),pe):Oi(Vt.sub,pe.havingStyle(be.sub()),pe),ht=ln(Vt.base,"horizBrace")):ht=ln(ne,"horizBrace");var Or=Oi(ht.base,pe.havingBaseStyle(j.DISPLAY)),Yr=wo.svgSpan(ht,pe),cn;if(ht.isOver?(cn=or.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Or},{type:"kern",size:.1},{type:"elem",elem:Yr}]},pe),cn.children[0].children[0].children[1].classes.push("svg-align")):(cn=or.makeVList({positionType:"bottom",positionData:Or.depth+.1+Yr.height,children:[{type:"elem",elem:Yr},{type:"kern",size:.1},{type:"elem",elem:Or}]},pe),cn.children[0].children[0].children[0].classes.push("svg-align")),je){var jn=or.makeSpan(["mord",ht.isOver?"mover":"munder"],[cn],pe);ht.isOver?cn=or.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:jn},{type:"kern",size:.2},{type:"elem",elem:je}]},pe):cn=or.makeVList({positionType:"bottom",positionData:jn.depth+.2+je.height+je.depth,children:[{type:"elem",elem:je},{type:"kern",size:.2},{type:"elem",elem:jn}]},pe)}return or.makeSpan(["mord",ht.isOver?"mover":"munder"],[cn],pe)},$n=function(ne,pe){var be=wo.mathMLnode(ne.label);return new bi.MathNode(ne.isOver?"mover":"munder",[Hi(ne.base,pe),be])};Lt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(ne,pe){var be=ne.parser,je=ne.funcName;return{type:"horizBrace",mode:be.mode,label:je,isOver:/^\\over/.test(je),base:pe[0]}},htmlBuilder:Ln,mathmlBuilder:$n}),Lt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(ne,pe){var be=ne.parser,je=pe[1],ht=ln(pe[0],"url").url;return be.settings.isTrusted({command:"\\href",url:ht})?{type:"href",mode:be.mode,href:ht,body:Vr(je)}:be.formatUnsupportedCmd("\\href")},htmlBuilder:function(ne,pe){var be=dn(ne.body,pe,!1);return or.makeAnchor(ne.href,[],be,pe)},mathmlBuilder:function(ne,pe){var be=ca(ne.body,pe);return be instanceof ma||(be=new ma("mrow",[be])),be.setAttribute("href",ne.href),be}}),Lt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(ne,pe){var be=ne.parser,je=ln(pe[0],"url").url;if(!be.settings.isTrusted({command:"\\url",url:je}))return be.formatUnsupportedCmd("\\url");for(var ht=[],Vt=0;Vt<je.length;Vt++){var Or=je[Vt];Or==="~"&&(Or="\\textasciitilde"),ht.push({type:"textord",mode:"text",text:Or})}var Yr={type:"text",mode:be.mode,font:"\\texttt",body:ht};return{type:"href",mode:be.mode,href:je,body:Vr(Yr)}}}),Lt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(ne,pe){var be=ne.parser;return{type:"htmlmathml",mode:be.mode,html:Vr(pe[0]),mathml:Vr(pe[1])}},htmlBuilder:function(ne,pe){var be=dn(ne.html,pe,!1);return or.makeFragment(be)},mathmlBuilder:function(ne,pe){return ca(ne.mathml,pe)}});var Un=function(ne){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(ne))return{number:+ne,unit:"bp"};var pe=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(ne);if(!pe)throw new c("Invalid size: '"+ne+"' in \\includegraphics");var be={number:+(pe[1]+pe[2]),unit:pe[3]};if(!Ar(be))throw new c("Invalid unit: '"+be.unit+"' in \\includegraphics.");return be};Lt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(ne,pe,be){var je=ne.parser,ht={number:0,unit:"em"},Vt={number:.9,unit:"em"},Or={number:0,unit:"em"},Yr="";if(be[0])for(var cn=ln(be[0],"raw").string,jn=cn.split(","),ai=0;ai<jn.length;ai++){var Qn=jn[ai].split("=");if(Qn.length===2){var Ni=Qn[1].trim();switch(Qn[0].trim()){case"alt":Yr=Ni;break;case"width":ht=Un(Ni);break;case"height":Vt=Un(Ni);break;case"totalheight":Or=Un(Ni);break;default:throw new c("Invalid key: '"+Qn[0]+"' in \\includegraphics.")}}}var Vi=ln(pe[0],"url").url;return Yr===""&&(Yr=Vi,Yr=Yr.replace(/^.*[\\/]/,""),Yr=Yr.substring(0,Yr.lastIndexOf("."))),je.settings.isTrusted({command:"\\includegraphics",url:Vi})?{type:"includegraphics",mode:je.mode,alt:Yr,width:ht,height:Vt,totalheight:Or,src:Vi}:je.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(ne,pe){var be=rr(ne.height,pe),je=0;ne.totalheight.number>0&&(je=rr(ne.totalheight,pe)-be,je=Number(je.toFixed(2)));var ht=0;ne.width.number>0&&(ht=rr(ne.width,pe));var Vt={height:be+je+"em"};ht>0&&(Vt.width=ht+"em"),je>0&&(Vt.verticalAlign=-je+"em");var Or=new me(ne.src,ne.alt,Vt);return Or.height=be,Or.depth=je,Or},mathmlBuilder:function(ne,pe){var be=new bi.MathNode("mglyph",[]);be.setAttribute("alt",ne.alt);var je=rr(ne.height,pe),ht=0;if(ne.totalheight.number>0&&(ht=rr(ne.totalheight,pe)-je,ht=ht.toFixed(2),be.setAttribute("valign","-"+ht+"em")),be.setAttribute("height",je+ht+"em"),ne.width.number>0){var Vt=rr(ne.width,pe);be.setAttribute("width",Vt+"em")}return be.setAttribute("src",ne.src),be}}),Lt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ne,pe){var be=ne.parser,je=ne.funcName,ht=ln(pe[0],"size");if(be.settings.strict){var Vt=je[1]==="m",Or=ht.value.unit==="mu";Vt?(Or||be.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+je+" supports only mu units, "+("not "+ht.value.unit+" units")),be.mode!=="math"&&be.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+je+" works only in math mode")):Or&&be.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+je+" doesn't support mu units")}return{type:"kern",mode:be.mode,dimension:ht.value}},htmlBuilder:function(ne,pe){return or.makeGlue(ne.dimension,pe)},mathmlBuilder:function(ne,pe){var be=rr(ne.dimension,pe);return new bi.SpaceNode(be)}}),Lt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(ne,pe){var be=ne.parser,je=ne.funcName,ht=pe[0];return{type:"lap",mode:be.mode,alignment:je.slice(5),body:ht}},htmlBuilder:function(ne,pe){var be;ne.alignment==="clap"?(be=or.makeSpan([],[Oi(ne.body,pe)]),be=or.makeSpan(["inner"],[be],pe)):be=or.makeSpan(["inner"],[Oi(ne.body,pe)]);var je=or.makeSpan(["fix"],[]),ht=or.makeSpan([ne.alignment],[be,je],pe),Vt=or.makeSpan(["strut"]);return Vt.style.height=ht.height+ht.depth+"em",Vt.style.verticalAlign=-ht.depth+"em",ht.children.unshift(Vt),ht=or.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ht}]},pe),or.makeSpan(["mord"],[ht],pe)},mathmlBuilder:function(ne,pe){var be=new bi.MathNode("mpadded",[Hi(ne.body,pe)]);if(ne.alignment!=="rlap"){var je=ne.alignment==="llap"?"-1":"-0.5";be.setAttribute("lspace",je+"width")}return be.setAttribute("width","0px"),be}}),Lt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ne,pe){var be=ne.funcName,je=ne.parser,ht=je.mode;je.switchMode("math");var Vt=be==="\\("?"\\)":"$",Or=je.parseExpression(!1,Vt);return je.expect(Vt),je.switchMode(ht),{type:"styling",mode:je.mode,style:"text",body:Or}}}),Lt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ne,pe){throw new c("Mismatched "+ne.funcName)}});var ti=function(ne,pe){switch(pe.style.size){case j.DISPLAY.size:return ne.display;case j.TEXT.size:return ne.text;case j.SCRIPT.size:return ne.script;case j.SCRIPTSCRIPT.size:return ne.scriptscript;default:return ne.text}};Lt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(ne,pe){var be=ne.parser;return{type:"mathchoice",mode:be.mode,display:Vr(pe[0]),text:Vr(pe[1]),script:Vr(pe[2]),scriptscript:Vr(pe[3])}},htmlBuilder:function(ne,pe){var be=ti(ne,pe),je=dn(be,pe,!1);return or.makeFragment(je)},mathmlBuilder:function(ne,pe){var be=ti(ne,pe);return ca(be,pe)}});var Gn=function(ne,pe,be,je,ht,Vt,Or){ne=or.makeSpan([],[ne]);var Yr,cn;if(pe){var jn=Oi(pe,je.havingStyle(ht.sup()),je);cn={elem:jn,kern:Math.max(je.fontMetrics().bigOpSpacing1,je.fontMetrics().bigOpSpacing3-jn.depth)}}if(be){var ai=Oi(be,je.havingStyle(ht.sub()),je);Yr={elem:ai,kern:Math.max(je.fontMetrics().bigOpSpacing2,je.fontMetrics().bigOpSpacing4-ai.height)}}var Qn;if(cn&&Yr){var Ni=je.fontMetrics().bigOpSpacing5+Yr.elem.height+Yr.elem.depth+Yr.kern+ne.depth+Or;Qn=or.makeVList({positionType:"bottom",positionData:Ni,children:[{type:"kern",size:je.fontMetrics().bigOpSpacing5},{type:"elem",elem:Yr.elem,marginLeft:-Vt+"em"},{type:"kern",size:Yr.kern},{type:"elem",elem:ne},{type:"kern",size:cn.kern},{type:"elem",elem:cn.elem,marginLeft:Vt+"em"},{type:"kern",size:je.fontMetrics().bigOpSpacing5}]},je)}else if(Yr){var Vi=ne.height-Or;Qn=or.makeVList({positionType:"top",positionData:Vi,children:[{type:"kern",size:je.fontMetrics().bigOpSpacing5},{type:"elem",elem:Yr.elem,marginLeft:-Vt+"em"},{type:"kern",size:Yr.kern},{type:"elem",elem:ne}]},je)}else if(cn){var Ta=ne.depth+Or;Qn=or.makeVList({positionType:"bottom",positionData:Ta,children:[{type:"elem",elem:ne},{type:"kern",size:cn.kern},{type:"elem",elem:cn.elem,marginLeft:Vt+"em"},{type:"kern",size:je.fontMetrics().bigOpSpacing5}]},je)}else return ne;return or.makeSpan(["mop","op-limits"],[Qn],je)},wi=["\\smallint"],Ei=function(ne,pe){var be,je,ht=!1,Vt,Or=an(ne,"supsub");Or?(be=Or.sup,je=Or.sub,Vt=ln(Or.base,"op"),ht=!0):Vt=ln(ne,"op");var Yr=pe.style,cn=!1;Yr.size===j.DISPLAY.size&&Vt.symbol&&!p.contains(wi,Vt.name)&&(cn=!0);var jn;if(Vt.symbol){var ai=cn?"Size2-Regular":"Size1-Regular",Qn="";if((Vt.name==="\\oiint"||Vt.name==="\\oiiint")&&(Qn=Vt.name.substr(1),Vt.name=Qn==="oiint"?"\\iint":"\\iiint"),jn=or.makeSymbol(Vt.name,ai,"math",pe,["mop","op-symbol",cn?"large-op":"small-op"]),Qn.length>0){var Ni=jn.italic,Vi=or.staticSvg(Qn+"Size"+(cn?"2":"1"),pe);jn=or.makeVList({positionType:"individualShift",children:[{type:"elem",elem:jn,shift:0},{type:"elem",elem:Vi,shift:cn?.08:0}]},pe),Vt.name="\\"+Qn,jn.classes.unshift("mop"),jn.italic=Ni}}else if(Vt.body){var Ta=dn(Vt.body,pe,!0);Ta.length===1&&Ta[0]instanceof Ce?(jn=Ta[0],jn.classes[0]="mop"):jn=or.makeSpan(["mop"],or.tryCombineChars(Ta),pe)}else{for(var Ga=[],ao=1;ao<Vt.name.length;ao++)Ga.push(or.mathsym(Vt.name[ao],Vt.mode,pe));jn=or.makeSpan(["mop"],Ga,pe)}var Do=0,fo=0;return(jn instanceof Ce||Vt.name==="\\oiint"||Vt.name==="\\oiiint")&&!Vt.suppressBaseShift&&(Do=(jn.height-jn.depth)/2-pe.fontMetrics().axisHeight,fo=jn.italic),ht?Gn(jn,be,je,pe,Yr,fo,Do):(Do&&(jn.style.position="relative",jn.style.top=Do+"em"),jn)},Zi=function(ne,pe){var be;if(ne.symbol)be=new ma("mo",[Sn(ne.name,ne.mode)]),p.contains(wi,ne.name)&&be.setAttribute("largeop","false");else if(ne.body)be=new ma("mo",Yi(ne.body,pe));else{be=new ma("mi",[new la(ne.name.slice(1))]);var je=new ma("mo",[Sn("\u2061","text")]);ne.parentIsSupSub?be=new ma("mo",[be,je]):be=Ji([be,je])}return be},ua={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Lt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:function(ne,pe){var be=ne.parser,je=ne.funcName,ht=je;return ht.length===1&&(ht=ua[ht]),{type:"op",mode:be.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:ht}},htmlBuilder:Ei,mathmlBuilder:Zi}),Lt({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(ne,pe){var be=ne.parser,je=pe[0];return{type:"op",mode:be.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Vr(je)}},htmlBuilder:Ei,mathmlBuilder:Zi});var Xi={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Lt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(ne){var pe=ne.parser,be=ne.funcName;return{type:"op",mode:pe.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:be}},htmlBuilder:Ei,mathmlBuilder:Zi}),Lt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(ne){var pe=ne.parser,be=ne.funcName;return{type:"op",mode:pe.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:be}},htmlBuilder:Ei,mathmlBuilder:Zi}),Lt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(ne){var pe=ne.parser,be=ne.funcName,je=be;return je.length===1&&(je=Xi[je]),{type:"op",mode:pe.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:je}},htmlBuilder:Ei,mathmlBuilder:Zi});var Gi=function(ne,pe){var be,je,ht=!1,Vt,Or=an(ne,"supsub");Or?(be=Or.sup,je=Or.sub,Vt=ln(Or.base,"operatorname"),ht=!0):Vt=ln(ne,"operatorname");var Yr;if(Vt.body.length>0){for(var cn=Vt.body.map(function(Ni){var Vi=Ni.text;return typeof Vi=="string"?{type:"textord",mode:Ni.mode,text:Vi}:Ni}),jn=dn(cn,pe.withFont("mathrm"),!0),ai=0;ai<jn.length;ai++){var Qn=jn[ai];Qn instanceof Ce&&(Qn.text=Qn.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Yr=or.makeSpan(["mop"],jn,pe)}else Yr=or.makeSpan(["mop"],[],pe);return ht?Gn(Yr,be,je,pe,pe.style,0,0):Yr},wa=function(ne,pe){for(var be=Yi(ne.body,pe.withFont("mathrm")),je=!0,ht=0;ht<be.length;ht++){var Vt=be[ht];if(!(Vt instanceof bi.SpaceNode))if(Vt instanceof bi.MathNode)switch(Vt.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Or=Vt.children[0];Vt.children.length===1&&Or instanceof bi.TextNode?Or.text=Or.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):je=!1;break}default:je=!1}else je=!1}if(je){var Yr=be.map(function(ai){return ai.toText()}).join("");be=[new bi.TextNode(Yr)]}var cn=new bi.MathNode("mi",be);cn.setAttribute("mathvariant","normal");var jn=new bi.MathNode("mo",[Sn("\u2061","text")]);return ne.parentIsSupSub?new bi.MathNode("mo",[cn,jn]):bi.newDocumentFragment([cn,jn])};Lt({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(ne,pe){var be=ne.parser,je=ne.funcName,ht=pe[0];return{type:"operatorname",mode:be.mode,body:Vr(ht),alwaysHandleSupSub:je==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:Gi,mathmlBuilder:wa}),wr({type:"ordgroup",htmlBuilder:function(ne,pe){return ne.semisimple?or.makeFragment(dn(ne.body,pe,!1)):or.makeSpan(["mord"],dn(ne.body,pe,!0),pe)},mathmlBuilder:function(ne,pe){return ca(ne.body,pe,!0)}}),Lt({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(ne,pe){var be=ne.parser,je=pe[0];return{type:"overline",mode:be.mode,body:je}},htmlBuilder:function(ne,pe){var be=Oi(ne.body,pe.havingCrampedStyle()),je=or.makeLineSpan("overline-line",pe),ht=pe.fontMetrics().defaultRuleThickness,Vt=or.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:be},{type:"kern",size:3*ht},{type:"elem",elem:je},{type:"kern",size:ht}]},pe);return or.makeSpan(["mord","overline"],[Vt],pe)},mathmlBuilder:function(ne,pe){var be=new bi.MathNode("mo",[new bi.TextNode("\u203E")]);be.setAttribute("stretchy","true");var je=new bi.MathNode("mover",[Hi(ne.body,pe),be]);return je.setAttribute("accent","true"),je}}),Lt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(ne,pe){var be=ne.parser,je=pe[0];return{type:"phantom",mode:be.mode,body:Vr(je)}},htmlBuilder:function(ne,pe){var be=dn(ne.body,pe.withPhantom(),!1);return or.makeFragment(be)},mathmlBuilder:function(ne,pe){var be=Yi(ne.body,pe);return new bi.MathNode("mphantom",be)}}),Lt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ne,pe){var be=ne.parser,je=pe[0];return{type:"hphantom",mode:be.mode,body:je}},htmlBuilder:function(ne,pe){var be=or.makeSpan([],[Oi(ne.body,pe.withPhantom())]);if(be.height=0,be.depth=0,be.children)for(var je=0;je<be.children.length;je++)be.children[je].height=0,be.children[je].depth=0;return be=or.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:be}]},pe),or.makeSpan(["mord"],[be],pe)},mathmlBuilder:function(ne,pe){var be=Yi(Vr(ne.body),pe),je=new bi.MathNode("mphantom",be),ht=new bi.MathNode("mpadded",[je]);return ht.setAttribute("height","0px"),ht.setAttribute("depth","0px"),ht}}),Lt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ne,pe){var be=ne.parser,je=pe[0];return{type:"vphantom",mode:be.mode,body:je}},htmlBuilder:function(ne,pe){var be=or.makeSpan(["inner"],[Oi(ne.body,pe.withPhantom())]),je=or.makeSpan(["fix"],[]);return or.makeSpan(["mord","rlap"],[be,je],pe)},mathmlBuilder:function(ne,pe){var be=Yi(Vr(ne.body),pe),je=new bi.MathNode("mphantom",be),ht=new bi.MathNode("mpadded",[je]);return ht.setAttribute("width","0px"),ht}}),Lt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(ne,pe){var be=ne.parser,je=ln(pe[0],"size").value,ht=pe[1];return{type:"raisebox",mode:be.mode,dy:je,body:ht}},htmlBuilder:function(ne,pe){var be=Oi(ne.body,pe),je=rr(ne.dy,pe);return or.makeVList({positionType:"shift",positionData:-je,children:[{type:"elem",elem:be}]},pe)},mathmlBuilder:function(ne,pe){var be=new bi.MathNode("mpadded",[Hi(ne.body,pe)]),je=ne.dy.number+ne.dy.unit;return be.setAttribute("voffset",je),be}}),Lt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(ne,pe,be){var je=ne.parser,ht=be[0],Vt=ln(pe[0],"size"),Or=ln(pe[1],"size");return{type:"rule",mode:je.mode,shift:ht&&ln(ht,"size").value,width:Vt.value,height:Or.value}},htmlBuilder:function(ne,pe){var be=or.makeSpan(["mord","rule"],[],pe),je=rr(ne.width,pe),ht=rr(ne.height,pe),Vt=ne.shift?rr(ne.shift,pe):0;return be.style.borderRightWidth=je+"em",be.style.borderTopWidth=ht+"em",be.style.bottom=Vt+"em",be.width=je,be.height=ht+Vt,be.depth=-Vt,be.maxFontSize=ht*1.125*pe.sizeMultiplier,be},mathmlBuilder:function(ne,pe){var be=rr(ne.width,pe),je=rr(ne.height,pe),ht=ne.shift?rr(ne.shift,pe):0,Vt=pe.color&&pe.getColor()||"black",Or=new bi.MathNode("mspace");Or.setAttribute("mathbackground",Vt),Or.setAttribute("width",be+"em"),Or.setAttribute("height",je+"em");var Yr=new bi.MathNode("mpadded",[Or]);return ht>=0?Yr.setAttribute("height","+"+ht+"em"):(Yr.setAttribute("height",ht+"em"),Yr.setAttribute("depth","+"+-ht+"em")),Yr.setAttribute("voffset",ht+"em"),Yr}});function na(ut,ne,pe){for(var be=dn(ut,ne,!1),je=ne.sizeMultiplier/pe.sizeMultiplier,ht=0;ht<be.length;ht++){var Vt=be[ht].classes.indexOf("sizing");Vt<0?Array.prototype.push.apply(be[ht].classes,ne.sizingClasses(pe)):be[ht].classes[Vt+1]==="reset-size"+ne.size&&(be[ht].classes[Vt+1]="reset-size"+pe.size),be[ht].height*=je,be[ht].depth*=je}return or.makeFragment(be)}var mo=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Ca=function(ne,pe){var be=pe.havingSize(ne.size);return na(ne.body,be,pe)};Lt({type:"sizing",names:mo,props:{numArgs:0,allowedInText:!0},handler:function(ne,pe){var be=ne.breakOnTokenText,je=ne.funcName,ht=ne.parser,Vt=ht.parseExpression(!1,be);return{type:"sizing",mode:ht.mode,size:mo.indexOf(je)+1,body:Vt}},htmlBuilder:Ca,mathmlBuilder:function(ne,pe){var be=pe.havingSize(ne.size),je=Yi(ne.body,be),ht=new bi.MathNode("mstyle",je);return ht.setAttribute("mathsize",be.sizeMultiplier+"em"),ht}}),Lt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(ne,pe,be){var je=ne.parser,ht=!1,Vt=!1,Or=be[0]&&ln(be[0],"ordgroup");if(Or)for(var Yr="",cn=0;cn<Or.body.length;++cn){var jn=Or.body[cn];if(Yr=jn.text,Yr==="t")ht=!0;else if(Yr==="b")Vt=!0;else{ht=!1,Vt=!1;break}}else ht=!0,Vt=!0;var ai=pe[0];return{type:"smash",mode:je.mode,body:ai,smashHeight:ht,smashDepth:Vt}},htmlBuilder:function(ne,pe){var be=or.makeSpan([],[Oi(ne.body,pe)]);if(!ne.smashHeight&&!ne.smashDepth)return be;if(ne.smashHeight&&(be.height=0,be.children))for(var je=0;je<be.children.length;je++)be.children[je].height=0;if(ne.smashDepth&&(be.depth=0,be.children))for(var ht=0;ht<be.children.length;ht++)be.children[ht].depth=0;var Vt=or.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:be}]},pe);return or.makeSpan(["mord"],[Vt],pe)},mathmlBuilder:function(ne,pe){var be=new bi.MathNode("mpadded",[Hi(ne.body,pe)]);return ne.smashHeight&&be.setAttribute("height","0px"),ne.smashDepth&&be.setAttribute("depth","0px"),be}}),Lt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(ne,pe,be){var je=ne.parser,ht=be[0],Vt=pe[0];return{type:"sqrt",mode:je.mode,body:Vt,index:ht}},htmlBuilder:function(ne,pe){var be=Oi(ne.body,pe.havingCrampedStyle());be.height===0&&(be.height=pe.fontMetrics().xHeight),be=or.wrapFragment(be,pe);var je=pe.fontMetrics(),ht=je.defaultRuleThickness,Vt=ht;pe.style.id<j.TEXT.id&&(Vt=pe.fontMetrics().xHeight);var Or=ht+Vt/4,Yr=be.height+be.depth+Or+ht,cn=di.sqrtImage(Yr,pe),jn=cn.span,ai=cn.ruleWidth,Qn=cn.advanceWidth,Ni=jn.height-ai;Ni>be.height+be.depth+Or&&(Or=(Or+Ni-be.height-be.depth)/2);var Vi=jn.height-be.height-Or-ai;be.style.paddingLeft=Qn+"em";var Ta=or.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:be,wrapperClasses:["svg-align"]},{type:"kern",size:-(be.height+Vi)},{type:"elem",elem:jn},{type:"kern",size:ai}]},pe);if(ne.index){var Ga=pe.havingStyle(j.SCRIPTSCRIPT),ao=Oi(ne.index,Ga,pe),Do=.6*(Ta.height-Ta.depth),fo=or.makeVList({positionType:"shift",positionData:-Do,children:[{type:"elem",elem:ao}]},pe),as=or.makeSpan(["root"],[fo]);return or.makeSpan(["mord","sqrt"],[as,Ta],pe)}else return or.makeSpan(["mord","sqrt"],[Ta],pe)},mathmlBuilder:function(ne,pe){var be=ne.body,je=ne.index;return je?new bi.MathNode("mroot",[Hi(be,pe),Hi(je,pe)]):new bi.MathNode("msqrt",[Hi(be,pe)])}});var qi={display:j.DISPLAY,text:j.TEXT,script:j.SCRIPT,scriptscript:j.SCRIPTSCRIPT};Lt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(ne,pe){var be=ne.breakOnTokenText,je=ne.funcName,ht=ne.parser,Vt=ht.parseExpression(!0,be),Or=je.slice(1,je.length-5);return{type:"styling",mode:ht.mode,style:Or,body:Vt}},htmlBuilder:function(ne,pe){var be=qi[ne.style],je=pe.havingStyle(be).withFont("");return na(ne.body,je,pe)},mathmlBuilder:function(ne,pe){var be=qi[ne.style],je=pe.havingStyle(be),ht=Yi(ne.body,je),Vt=new bi.MathNode("mstyle",ht),Or={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},Yr=Or[ne.style];return Vt.setAttribute("scriptlevel",Yr[0]),Vt.setAttribute("displaystyle",Yr[1]),Vt}});var aa=function(ne,pe){var be=ne.base;if(be)if(be.type==="op"){var je=be.limits&&(pe.style.size===j.DISPLAY.size||be.alwaysHandleSupSub);return je?Ei:null}else if(be.type==="operatorname"){var ht=be.alwaysHandleSupSub&&(pe.style.size===j.DISPLAY.size||be.limits);return ht?Gi:null}else{if(be.type==="accent")return p.isCharacterBox(be.base)?_o:null;if(be.type==="horizBrace"){var Vt=!ne.sub;return Vt===be.isOver?Ln:null}else return null}else return null};wr({type:"supsub",htmlBuilder:function(ne,pe){var be=aa(ne,pe);if(be)return be(ne,pe);var je=ne.base,ht=ne.sup,Vt=ne.sub,Or=Oi(je,pe),Yr,cn,jn=pe.fontMetrics(),ai=0,Qn=0,Ni=je&&p.isCharacterBox(je);if(ht){var Vi=pe.havingStyle(pe.style.sup());Yr=Oi(ht,Vi,pe),Ni||(ai=Or.height-Vi.fontMetrics().supDrop*Vi.sizeMultiplier/pe.sizeMultiplier)}if(Vt){var Ta=pe.havingStyle(pe.style.sub());cn=Oi(Vt,Ta,pe),Ni||(Qn=Or.depth+Ta.fontMetrics().subDrop*Ta.sizeMultiplier/pe.sizeMultiplier)}var Ga;pe.style===j.DISPLAY?Ga=jn.sup1:pe.style.cramped?Ga=jn.sup3:Ga=jn.sup2;var ao=pe.sizeMultiplier,Do=.5/jn.ptPerEm/ao+"em",fo=null;if(cn){var as=ne.base&&ne.base.type==="op"&&ne.base.name&&(ne.base.name==="\\oiint"||ne.base.name==="\\oiiint");(Or instanceof Ce||as)&&(fo=-Or.italic+"em")}var io;if(Yr&&cn){ai=Math.max(ai,Ga,Yr.depth+.25*jn.xHeight),Qn=Math.max(Qn,jn.sub2);var Xa=jn.defaultRuleThickness,Ya=4*Xa;if(ai-Yr.depth-(cn.height-Qn)<Ya){Qn=Ya-(ai-Yr.depth)+cn.height;var ka=.8*jn.xHeight-(ai-Yr.depth);ka>0&&(ai+=ka,Qn-=ka)}var os=[{type:"elem",elem:cn,shift:Qn,marginRight:Do,marginLeft:fo},{type:"elem",elem:Yr,shift:-ai,marginRight:Do}];io=or.makeVList({positionType:"individualShift",children:os},pe)}else if(cn){Qn=Math.max(Qn,jn.sub1,cn.height-.8*jn.xHeight);var Es=[{type:"elem",elem:cn,marginLeft:fo,marginRight:Do}];io=or.makeVList({positionType:"shift",positionData:Qn,children:Es},pe)}else if(Yr)ai=Math.max(ai,Ga,Yr.depth+.25*jn.xHeight),io=or.makeVList({positionType:"shift",positionData:-ai,children:[{type:"elem",elem:Yr,marginRight:Do}]},pe);else throw new Error("supsub must have either sup or sub.");var qo=zn(Or,"right")||"mord";return or.makeSpan([qo],[Or,or.makeSpan(["msupsub"],[io])],pe)},mathmlBuilder:function(ne,pe){var be=!1,je,ht,Vt=an(ne.base,"horizBrace");Vt&&(ht=!!ne.sup,ht===Vt.isOver&&(be=!0,je=Vt.isOver)),ne.base&&(ne.base.type==="op"||ne.base.type==="operatorname")&&(ne.base.parentIsSupSub=!0);var Or=[Hi(ne.base,pe)];ne.sub&&Or.push(Hi(ne.sub,pe)),ne.sup&&Or.push(Hi(ne.sup,pe));var Yr;if(be)Yr=je?"mover":"munder";else if(ne.sub)if(ne.sup){var ai=ne.base;ai&&ai.type==="op"&&ai.limits&&pe.style===j.DISPLAY||ai&&ai.type==="operatorname"&&ai.alwaysHandleSupSub&&(pe.style===j.DISPLAY||ai.limits)?Yr="munderover":Yr="msubsup"}else{var jn=ne.base;jn&&jn.type==="op"&&jn.limits&&(pe.style===j.DISPLAY||jn.alwaysHandleSupSub)||jn&&jn.type==="operatorname"&&jn.alwaysHandleSupSub&&(jn.limits||pe.style===j.DISPLAY)?Yr="munder":Yr="msub"}else{var cn=ne.base;cn&&cn.type==="op"&&cn.limits&&(pe.style===j.DISPLAY||cn.alwaysHandleSupSub)||cn&&cn.type==="operatorname"&&cn.alwaysHandleSupSub&&(cn.limits||pe.style===j.DISPLAY)?Yr="mover":Yr="msup"}var Qn=new bi.MathNode(Yr,Or);return Qn}}),wr({type:"atom",htmlBuilder:function(ne,pe){return or.mathsym(ne.text,ne.mode,pe,["m"+ne.family])},mathmlBuilder:function(ne,pe){var be=new bi.MathNode("mo",[Sn(ne.text,ne.mode)]);if(ne.family==="bin"){var je=oa(ne,pe);je==="bold-italic"&&be.setAttribute("mathvariant",je)}else ne.family==="punct"?be.setAttribute("separator","true"):(ne.family==="open"||ne.family==="close")&&be.setAttribute("stretchy","false");return be}});var $i={mi:"italic",mn:"normal",mtext:"normal"};wr({type:"mathord",htmlBuilder:function(ne,pe){return or.makeOrd(ne,pe,"mathord")},mathmlBuilder:function(ne,pe){var be=new bi.MathNode("mi",[Sn(ne.text,ne.mode,pe)]),je=oa(ne,pe)||"italic";return je!==$i[be.type]&&be.setAttribute("mathvariant",je),be}}),wr({type:"textord",htmlBuilder:function(ne,pe){return or.makeOrd(ne,pe,"textord")},mathmlBuilder:function(ne,pe){var be=Sn(ne.text,ne.mode,pe),je=oa(ne,pe)||"normal",ht;return ne.mode==="text"?ht=new bi.MathNode("mtext",[be]):/[0-9]/.test(ne.text)?ht=new bi.MathNode("mn",[be]):ne.text==="\\prime"?ht=new bi.MathNode("mo",[be]):ht=new bi.MathNode("mi",[be]),je!==$i[ht.type]&&ht.setAttribute("mathvariant",je),ht}});var Aa={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},ya={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};wr({type:"spacing",htmlBuilder:function(ne,pe){if(ya.hasOwnProperty(ne.text)){var be=ya[ne.text].className||"";if(ne.mode==="text"){var je=or.makeOrd(ne,pe,"textord");return je.classes.push(be),je}else return or.makeSpan(["mspace",be],[or.mathsym(ne.text,ne.mode,pe)],pe)}else{if(Aa.hasOwnProperty(ne.text))return or.makeSpan(["mspace",Aa[ne.text]],[],pe);throw new c('Unknown type of space "'+ne.text+'"')}},mathmlBuilder:function(ne,pe){var be;if(ya.hasOwnProperty(ne.text))be=new bi.MathNode("mtext",[new bi.TextNode("\xA0")]);else{if(Aa.hasOwnProperty(ne.text))return new bi.MathNode("mspace");throw new c('Unknown type of space "'+ne.text+'"')}return be}});var Ha=function(){var ne=new bi.MathNode("mtd",[]);return ne.setAttribute("width","50%"),ne};wr({type:"tag",mathmlBuilder:function(ne,pe){var be=new bi.MathNode("mtable",[new bi.MathNode("mtr",[Ha(),new bi.MathNode("mtd",[ca(ne.body,pe)]),Ha(),new bi.MathNode("mtd",[ca(ne.tag,pe)])])]);return be.setAttribute("width","100%"),be}});var ta={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},ra={"\\textbf":"textbf","\\textmd":"textmd"},_a={"\\textit":"textit","\\textup":"textup"},Ka=function(ne,pe){var be=ne.font;return be?ta[be]?pe.withTextFontFamily(ta[be]):ra[be]?pe.withTextFontWeight(ra[be]):pe.withTextFontShape(_a[be]):pe};Lt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(ne,pe){var be=ne.parser,je=ne.funcName,ht=pe[0];return{type:"text",mode:be.mode,body:Vr(ht),font:je}},htmlBuilder:function(ne,pe){var be=Ka(ne,pe),je=dn(ne.body,be,!0);return or.makeSpan(["mord","text"],or.tryCombineChars(je),be)},mathmlBuilder:function(ne,pe){var be=Ka(ne,pe);return ca(ne.body,be)}}),Lt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(ne,pe){var be=ne.parser;return{type:"underline",mode:be.mode,body:pe[0]}},htmlBuilder:function(ne,pe){var be=Oi(ne.body,pe),je=or.makeLineSpan("underline-line",pe),ht=pe.fontMetrics().defaultRuleThickness,Vt=or.makeVList({positionType:"top",positionData:be.height,children:[{type:"kern",size:ht},{type:"elem",elem:je},{type:"kern",size:3*ht},{type:"elem",elem:be}]},pe);return or.makeSpan(["mord","underline"],[Vt],pe)},mathmlBuilder:function(ne,pe){var be=new bi.MathNode("mo",[new bi.TextNode("\u203E")]);be.setAttribute("stretchy","true");var je=new bi.MathNode("munder",[Hi(ne.body,pe),be]);return je.setAttribute("accentunder","true"),je}}),Lt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(ne,pe,be){throw new c("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(ne,pe){for(var be=bo(ne),je=[],ht=pe.havingStyle(pe.style.text()),Vt=0;Vt<be.length;Vt++){var Or=be[Vt];Or==="~"&&(Or="\\textasciitilde"),je.push(or.makeSymbol(Or,"Typewriter-Regular",ne.mode,ht,["mord","texttt"]))}return or.makeSpan(["mord","text"].concat(ht.sizingClasses(pe)),or.tryCombineChars(je),ht)},mathmlBuilder:function(ne,pe){var be=new bi.TextNode(bo(ne)),je=new bi.MathNode("mtext",[be]);return je.setAttribute("mathvariant","monospace"),je}});var bo=function(ne){return ne.body.replace(/ /g,ne.star?"\u2423":"\xA0")},ga=Mr,go=ga,Sa=`[ \r
|
|
|
]`,Va="\\\\[a-zA-Z@]+",uo="\\\\[^\uD800-\uDFFF]",No=""+Va+Sa+"*",Po=new RegExp("^("+Va+")"+Sa+"*$"),to="[\u0300-\u036F]",Uo=new RegExp(to+"+$"),co="("+Sa+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(to+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(to+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+No)+("|"+uo+")"),fa=function(){function ut(pe,be){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=pe,this.settings=be,this.tokenRegex=new RegExp(co,"g"),this.catcodes={"%":14}}var ne=ut.prototype;return ne.setCatcode=function(be,je){this.catcodes[be]=je},ne.lex=function(){var be=this.input,je=this.tokenRegex.lastIndex;if(je===be.length)return new g("EOF",new S(this,je,je));var ht=this.tokenRegex.exec(be);if(ht===null||ht.index!==je)throw new c("Unexpected character: '"+be[je]+"'",new g(be[je],new S(this,je,je+1)));var Vt=ht[2]||" ";if(this.catcodes[Vt]===14){var Or=be.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return Or===-1?(this.tokenRegex.lastIndex=be.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=Or+1,this.lex()}var Yr=Vt.match(Po);return Yr&&(Vt=Yr[1]),new g(Vt,new S(this,je,this.tokenRegex.lastIndex))},ut}(),ro=function(){function ut(pe,be){pe===void 0&&(pe={}),be===void 0&&(be={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=be,this.builtins=pe,this.undefStack=[]}var ne=ut.prototype;return ne.beginGroup=function(){this.undefStack.push({})},ne.endGroup=function(){if(this.undefStack.length===0)throw new c("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var be=this.undefStack.pop();for(var je in be)be.hasOwnProperty(je)&&(be[je]===void 0?delete this.current[je]:this.current[je]=be[je])},ne.has=function(be){return this.current.hasOwnProperty(be)||this.builtins.hasOwnProperty(be)},ne.get=function(be){return this.current.hasOwnProperty(be)?this.current[be]:this.builtins[be]},ne.set=function(be,je,ht){if(ht===void 0&&(ht=!1),ht){for(var Vt=0;Vt<this.undefStack.length;Vt++)delete this.undefStack[Vt][be];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][be]=je)}else{var Or=this.undefStack[this.undefStack.length-1];Or&&!Or.hasOwnProperty(be)&&(Or[be]=this.current[be])}this.current[be]=je},ut}(),Wa={},Ea=Wa;function Qr(ut,ne){Wa[ut]=ne}Qr("\\@firstoftwo",function(ut){var ne=ut.consumeArgs(2);return{tokens:ne[0],numArgs:0}}),Qr("\\@secondoftwo",function(ut){var ne=ut.consumeArgs(2);return{tokens:ne[1],numArgs:0}}),Qr("\\@ifnextchar",function(ut){var ne=ut.consumeArgs(3),pe=ut.future();return ne[0].length===1&&ne[0][0].text===pe.text?{tokens:ne[1],numArgs:0}:{tokens:ne[2],numArgs:0}}),Qr("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Qr("\\TextOrMath",function(ut){var ne=ut.consumeArgs(2);return ut.mode==="text"?{tokens:ne[0],numArgs:0}:{tokens:ne[1],numArgs:0}});var za={"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};Qr("\\char",function(ut){var ne=ut.popToken(),pe,be="";if(ne.text==="'")pe=8,ne=ut.popToken();else if(ne.text==='"')pe=16,ne=ut.popToken();else if(ne.text==="`")if(ne=ut.popToken(),ne.text[0]==="\\")be=ne.text.charCodeAt(1);else{if(ne.text==="EOF")throw new c("\\char` missing argument");be=ne.text.charCodeAt(0)}else pe=10;if(pe){if(be=za[ne.text],be==null||be>=pe)throw new c("Invalid base-"+pe+" digit "+ne.text);for(var je;(je=za[ut.future().text])!=null&&je<pe;)be*=pe,be+=je,ut.popToken()}return"\\@char{"+be+"}"});var rs=function(ne,pe){var be=ne.consumeArgs(1)[0];if(be.length!==1)throw new c("\\gdef's first argument must be a macro name");var je=be[0].text,ht=0;for(be=ne.consumeArgs(1)[0];be.length===1&&be[0].text==="#";){if(be=ne.consumeArgs(1)[0],be.length!==1)throw new c('Invalid argument number length "'+be.length+'"');if(!/^[1-9]$/.test(be[0].text))throw new c('Invalid argument number "'+be[0].text+'"');if(ht++,parseInt(be[0].text)!==ht)throw new c('Argument number "'+be[0].text+'" out of order');be=ne.consumeArgs(1)[0]}return ne.macros.set(je,{tokens:be,numArgs:ht},pe),""};Qr("\\gdef",function(ut){return rs(ut,!0)}),Qr("\\def",function(ut){return rs(ut,!1)}),Qr("\\global",function(ut){var ne=ut.consumeArgs(1)[0];if(ne.length!==1)throw new c("Invalid command after \\global");var pe=ne[0].text;if(pe==="\\def")return rs(ut,!0);throw new c("Invalid command '"+pe+"' after \\global")});var Vo=function(ne,pe,be){var je=ne.consumeArgs(1)[0];if(je.length!==1)throw new c("\\newcommand's first argument must be a macro name");var ht=je[0].text,Vt=ne.isDefined(ht);if(Vt&&!pe)throw new c("\\newcommand{"+ht+"} attempting to redefine "+(ht+"; use \\renewcommand"));if(!Vt&&!be)throw new c("\\renewcommand{"+ht+"} when command "+ht+" does not yet exist; use \\newcommand");var Or=0;if(je=ne.consumeArgs(1)[0],je.length===1&&je[0].text==="["){for(var Yr="",cn=ne.expandNextToken();cn.text!=="]"&&cn.text!=="EOF";)Yr+=cn.text,cn=ne.expandNextToken();if(!Yr.match(/^\s*[0-9]+\s*$/))throw new c("Invalid number of arguments: "+Yr);Or=parseInt(Yr),je=ne.consumeArgs(1)[0]}return ne.macros.set(ht,{tokens:je,numArgs:Or}),""};Qr("\\newcommand",function(ut){return Vo(ut,!1,!0)}),Qr("\\renewcommand",function(ut){return Vo(ut,!0,!1)}),Qr("\\providecommand",function(ut){return Vo(ut,!0,!0)}),Qr("\\bgroup","{"),Qr("\\egroup","}"),Qr("\\lq","`"),Qr("\\rq","'"),Qr("\\aa","\\r a"),Qr("\\AA","\\r A"),Qr("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Qr("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Qr("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Qr("\u212C","\\mathscr{B}"),Qr("\u2130","\\mathscr{E}"),Qr("\u2131","\\mathscr{F}"),Qr("\u210B","\\mathscr{H}"),Qr("\u2110","\\mathscr{I}"),Qr("\u2112","\\mathscr{L}"),Qr("\u2133","\\mathscr{M}"),Qr("\u211B","\\mathscr{R}"),Qr("\u212D","\\mathfrak{C}"),Qr("\u210C","\\mathfrak{H}"),Qr("\u2128","\\mathfrak{Z}"),Qr("\\Bbbk","\\Bbb{k}"),Qr("\xB7","\\cdotp"),Qr("\\llap","\\mathllap{\\textrm{#1}}"),Qr("\\rlap","\\mathrlap{\\textrm{#1}}"),Qr("\\clap","\\mathclap{\\textrm{#1}}"),Qr("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Qr("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Qr("\\ne","\\neq"),Qr("\u2260","\\neq"),Qr("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Qr("\u2209","\\notin"),Qr("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Qr("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Qr("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Qr("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Qr("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Qr("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Qr("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Qr("\u27C2","\\perp"),Qr("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Qr("\u220C","\\notni"),Qr("\u231C","\\ulcorner"),Qr("\u231D","\\urcorner"),Qr("\u231E","\\llcorner"),Qr("\u231F","\\lrcorner"),Qr("\xA9","\\copyright"),Qr("\xAE","\\textregistered"),Qr("\uFE0F","\\textregistered"),Qr("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Qr("\u22EE","\\vdots"),Qr("\\varGamma","\\mathit{\\Gamma}"),Qr("\\varDelta","\\mathit{\\Delta}"),Qr("\\varTheta","\\mathit{\\Theta}"),Qr("\\varLambda","\\mathit{\\Lambda}"),Qr("\\varXi","\\mathit{\\Xi}"),Qr("\\varPi","\\mathit{\\Pi}"),Qr("\\varSigma","\\mathit{\\Sigma}"),Qr("\\varUpsilon","\\mathit{\\Upsilon}"),Qr("\\varPhi","\\mathit{\\Phi}"),Qr("\\varPsi","\\mathit{\\Psi}"),Qr("\\varOmega","\\mathit{\\Omega}"),Qr("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Qr("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Qr("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Qr("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Qr("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Qr("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Go={",":"\\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"};Qr("\\dots",function(ut){var ne="\\dotso",pe=ut.expandAfterFuture().text;return pe in Go?ne=Go[pe]:pe.substr(0,4)==="\\not"?ne="\\dotsb":pe in Xe.math&&(p.contains(["bin","rel"],Xe.math[pe].group)&&(ne="\\dotsb")),ne});var Qo={")":!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};Qr("\\dotso",function(ut){var ne=ut.future().text;return ne in Qo?"\\ldots\\,":"\\ldots"}),Qr("\\dotsc",function(ut){var ne=ut.future().text;return ne in Qo&&ne!==","?"\\ldots\\,":"\\ldots"}),Qr("\\cdots",function(ut){var ne=ut.future().text;return ne in Qo?"\\@cdots\\,":"\\@cdots"}),Qr("\\dotsb","\\cdots"),Qr("\\dotsm","\\cdots"),Qr("\\dotsi","\\!\\cdots"),Qr("\\dotsx","\\ldots\\,"),Qr("\\DOTSI","\\relax"),Qr("\\DOTSB","\\relax"),Qr("\\DOTSX","\\relax"),Qr("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Qr("\\,","\\tmspace+{3mu}{.1667em}"),Qr("\\thinspace","\\,"),Qr("\\>","\\mskip{4mu}"),Qr("\\:","\\tmspace+{4mu}{.2222em}"),Qr("\\medspace","\\:"),Qr("\\;","\\tmspace+{5mu}{.2777em}"),Qr("\\thickspace","\\;"),Qr("\\!","\\tmspace-{3mu}{.1667em}"),Qr("\\negthinspace","\\!"),Qr("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Qr("\\negthickspace","\\tmspace-{5mu}{.277em}"),Qr("\\enspace","\\kern.5em "),Qr("\\enskip","\\hskip.5em\\relax"),Qr("\\quad","\\hskip1em\\relax"),Qr("\\qquad","\\hskip2em\\relax"),Qr("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Qr("\\tag@paren","\\tag@literal{({#1})}"),Qr("\\tag@literal",function(ut){if(ut.macros.get("\\df@tag"))throw new c("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Qr("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Qr("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Qr("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Qr("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Qr("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Qr("\\\\","\\newline"),Qr("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Yo=gt["Main-Regular"]["T".charCodeAt(0)][1]-.7*gt["Main-Regular"]["A".charCodeAt(0)][1]+"em";Qr("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Yo+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Qr("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Yo+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Qr("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Qr("\\@hspace","\\hskip #1\\relax"),Qr("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Qr("\\ordinarycolon",":"),Qr("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Qr("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Qr("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Qr("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Qr("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Qr("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Qr("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Qr("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Qr("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Qr("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Qr("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Qr("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Qr("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Qr("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Qr("\u2237","\\dblcolon"),Qr("\u2239","\\eqcolon"),Qr("\u2254","\\coloneqq"),Qr("\u2255","\\eqqcolon"),Qr("\u2A74","\\Coloneqq"),Qr("\\ratio","\\vcentcolon"),Qr("\\coloncolon","\\dblcolon"),Qr("\\colonequals","\\coloneqq"),Qr("\\coloncolonequals","\\Coloneqq"),Qr("\\equalscolon","\\eqqcolon"),Qr("\\equalscoloncolon","\\Eqqcolon"),Qr("\\colonminus","\\coloneq"),Qr("\\coloncolonminus","\\Coloneq"),Qr("\\minuscolon","\\eqcolon"),Qr("\\minuscoloncolon","\\Eqcolon"),Qr("\\coloncolonapprox","\\Colonapprox"),Qr("\\coloncolonsim","\\Colonsim"),Qr("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Qr("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Qr("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Qr("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Qr("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Qr("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Qr("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Qr("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Qr("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Qr("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Qr("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Qr("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Qr("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Qr("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Qr("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Qr("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Qr("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Qr("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Qr("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Qr("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Qr("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Qr("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Qr("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Qr("\u27E6","\\llbracket"),Qr("\u27E7","\\rrbracket"),Qr("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Qr("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Qr("\u2983","\\lBrace"),Qr("\u2984","\\rBrace"),Qr("\\darr","\\downarrow"),Qr("\\dArr","\\Downarrow"),Qr("\\Darr","\\Downarrow"),Qr("\\lang","\\langle"),Qr("\\rang","\\rangle"),Qr("\\uarr","\\uparrow"),Qr("\\uArr","\\Uparrow"),Qr("\\Uarr","\\Uparrow"),Qr("\\N","\\mathbb{N}"),Qr("\\R","\\mathbb{R}"),Qr("\\Z","\\mathbb{Z}"),Qr("\\alef","\\aleph"),Qr("\\alefsym","\\aleph"),Qr("\\Alpha","\\mathrm{A}"),Qr("\\Beta","\\mathrm{B}"),Qr("\\bull","\\bullet"),Qr("\\Chi","\\mathrm{X}"),Qr("\\clubs","\\clubsuit"),Qr("\\cnums","\\mathbb{C}"),Qr("\\Complex","\\mathbb{C}"),Qr("\\Dagger","\\ddagger"),Qr("\\diamonds","\\diamondsuit"),Qr("\\empty","\\emptyset"),Qr("\\Epsilon","\\mathrm{E}"),Qr("\\Eta","\\mathrm{H}"),Qr("\\exist","\\exists"),Qr("\\harr","\\leftrightarrow"),Qr("\\hArr","\\Leftrightarrow"),Qr("\\Harr","\\Leftrightarrow"),Qr("\\hearts","\\heartsuit"),Qr("\\image","\\Im"),Qr("\\infin","\\infty"),Qr("\\Iota","\\mathrm{I}"),Qr("\\isin","\\in"),Qr("\\Kappa","\\mathrm{K}"),Qr("\\larr","\\leftarrow"),Qr("\\lArr","\\Leftarrow"),Qr("\\Larr","\\Leftarrow"),Qr("\\lrarr","\\leftrightarrow"),Qr("\\lrArr","\\Leftrightarrow"),Qr("\\Lrarr","\\Leftrightarrow"),Qr("\\Mu","\\mathrm{M}"),Qr("\\natnums","\\mathbb{N}"),Qr("\\Nu","\\mathrm{N}"),Qr("\\Omicron","\\mathrm{O}"),Qr("\\plusmn","\\pm"),Qr("\\rarr","\\rightarrow"),Qr("\\rArr","\\Rightarrow"),Qr("\\Rarr","\\Rightarrow"),Qr("\\real","\\Re"),Qr("\\reals","\\mathbb{R}"),Qr("\\Reals","\\mathbb{R}"),Qr("\\Rho","\\mathrm{P}"),Qr("\\sdot","\\cdot"),Qr("\\sect","\\S"),Qr("\\spades","\\spadesuit"),Qr("\\sub","\\subset"),Qr("\\sube","\\subseteq"),Qr("\\supe","\\supseteq"),Qr("\\Tau","\\mathrm{T}"),Qr("\\thetasym","\\vartheta"),Qr("\\weierp","\\wp"),Qr("\\Zeta","\\mathrm{Z}"),Qr("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Qr("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Qr("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Qr("\\blue","\\textcolor{##6495ed}{#1}"),Qr("\\orange","\\textcolor{##ffa500}{#1}"),Qr("\\pink","\\textcolor{##ff00af}{#1}"),Qr("\\red","\\textcolor{##df0030}{#1}"),Qr("\\green","\\textcolor{##28ae7b}{#1}"),Qr("\\gray","\\textcolor{gray}{#1}"),Qr("\\purple","\\textcolor{##9d38bd}{#1}"),Qr("\\blueA","\\textcolor{##ccfaff}{#1}"),Qr("\\blueB","\\textcolor{##80f6ff}{#1}"),Qr("\\blueC","\\textcolor{##63d9ea}{#1}"),Qr("\\blueD","\\textcolor{##11accd}{#1}"),Qr("\\blueE","\\textcolor{##0c7f99}{#1}"),Qr("\\tealA","\\textcolor{##94fff5}{#1}"),Qr("\\tealB","\\textcolor{##26edd5}{#1}"),Qr("\\tealC","\\textcolor{##01d1c1}{#1}"),Qr("\\tealD","\\textcolor{##01a995}{#1}"),Qr("\\tealE","\\textcolor{##208170}{#1}"),Qr("\\greenA","\\textcolor{##b6ffb0}{#1}"),Qr("\\greenB","\\textcolor{##8af281}{#1}"),Qr("\\greenC","\\textcolor{##74cf70}{#1}"),Qr("\\greenD","\\textcolor{##1fab54}{#1}"),Qr("\\greenE","\\textcolor{##0d923f}{#1}"),Qr("\\goldA","\\textcolor{##ffd0a9}{#1}"),Qr("\\goldB","\\textcolor{##ffbb71}{#1}"),Qr("\\goldC","\\textcolor{##ff9c39}{#1}"),Qr("\\goldD","\\textcolor{##e07d10}{#1}"),Qr("\\goldE","\\textcolor{##a75a05}{#1}"),Qr("\\redA","\\textcolor{##fca9a9}{#1}"),Qr("\\redB","\\textcolor{##ff8482}{#1}"),Qr("\\redC","\\textcolor{##f9685d}{#1}"),Qr("\\redD","\\textcolor{##e84d39}{#1}"),Qr("\\redE","\\textcolor{##bc2612}{#1}"),Qr("\\maroonA","\\textcolor{##ffbde0}{#1}"),Qr("\\maroonB","\\textcolor{##ff92c6}{#1}"),Qr("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Qr("\\maroonD","\\textcolor{##ca337c}{#1}"),Qr("\\maroonE","\\textcolor{##9e034e}{#1}"),Qr("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Qr("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Qr("\\purpleC","\\textcolor{##aa87ff}{#1}"),Qr("\\purpleD","\\textcolor{##7854ab}{#1}"),Qr("\\purpleE","\\textcolor{##543b78}{#1}"),Qr("\\mintA","\\textcolor{##f5f9e8}{#1}"),Qr("\\mintB","\\textcolor{##edf2df}{#1}"),Qr("\\mintC","\\textcolor{##e0e5cc}{#1}"),Qr("\\grayA","\\textcolor{##f6f7f7}{#1}"),Qr("\\grayB","\\textcolor{##f0f1f2}{#1}"),Qr("\\grayC","\\textcolor{##e3e5e6}{#1}"),Qr("\\grayD","\\textcolor{##d6d8da}{#1}"),Qr("\\grayE","\\textcolor{##babec2}{#1}"),Qr("\\grayF","\\textcolor{##888d93}{#1}"),Qr("\\grayG","\\textcolor{##626569}{#1}"),Qr("\\grayH","\\textcolor{##3b3e40}{#1}"),Qr("\\grayI","\\textcolor{##21242c}{#1}"),Qr("\\kaBlue","\\textcolor{##314453}{#1}"),Qr("\\kaGreen","\\textcolor{##71B307}{#1}");var vo={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Io=function(){function ut(pe,be,je){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=be,this.expansionCount=0,this.feed(pe),this.macros=new ro(Ea,be.macros),this.mode=je,this.stack=[]}var ne=ut.prototype;return ne.feed=function(be){this.lexer=new fa(be,this.settings)},ne.switchMode=function(be){this.mode=be},ne.beginGroup=function(){this.macros.beginGroup()},ne.endGroup=function(){this.macros.endGroup()},ne.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},ne.popToken=function(){return this.future(),this.stack.pop()},ne.pushToken=function(be){this.stack.push(be)},ne.pushTokens=function(be){var je;(je=this.stack).push.apply(je,be)},ne.consumeSpaces=function(){for(;;){var be=this.future();if(be.text===" ")this.stack.pop();else break}},ne.consumeArgs=function(be){for(var je=[],ht=0;ht<be;++ht){this.consumeSpaces();var Vt=this.popToken();if(Vt.text==="{"){for(var Or=[],Yr=1;Yr!==0;){var cn=this.popToken();if(Or.push(cn),cn.text==="{")++Yr;else if(cn.text==="}")--Yr;else if(cn.text==="EOF")throw new c("End of input in macro argument",Vt)}Or.pop(),Or.reverse(),je[ht]=Or}else{if(Vt.text==="EOF")throw new c("End of input expecting macro argument");je[ht]=[Vt]}}return je},ne.expandOnce=function(){var be=this.popToken(),je=be.text,ht=this._getExpansion(je);if(ht==null)return this.pushToken(be),be;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new c("Too many expansions: infinite loop or need to increase maxExpand setting");var Vt=ht.tokens;if(ht.numArgs){var Or=this.consumeArgs(ht.numArgs);Vt=Vt.slice();for(var Yr=Vt.length-1;Yr>=0;--Yr){var cn=Vt[Yr];if(cn.text==="#"){if(Yr===0)throw new c("Incomplete placeholder at end of macro body",cn);if(cn=Vt[--Yr],cn.text==="#")Vt.splice(Yr+1,1);else if(/^[1-9]$/.test(cn.text)){var jn;(jn=Vt).splice.apply(jn,[Yr,2].concat(Or[+cn.text-1]))}else throw new c("Not a valid argument number",cn)}}}return this.pushTokens(Vt),Vt},ne.expandAfterFuture=function(){return this.expandOnce(),this.future()},ne.expandNextToken=function(){for(;;){var be=this.expandOnce();if(be instanceof g)if(be.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},ne.expandMacro=function(be){if(!this.macros.get(be))return;var je=[],ht=this.stack.length;for(this.pushToken(new g(be));this.stack.length>ht;){var Vt=this.expandOnce();Vt instanceof g&&je.push(this.stack.pop())}return je},ne.expandMacroAsText=function(be){var je=this.expandMacro(be);return je&&je.map(function(ht){return ht.text}).join("")},ne._getExpansion=function(be){var je=this.macros.get(be);if(je==null)return je;var ht=typeof je=="function"?je(this):je;if(typeof ht=="string"){var Vt=0;if(ht.indexOf("#")!==-1)for(var Or=ht.replace(/##/g,"");Or.indexOf("#"+(Vt+1))!==-1;)++Vt;for(var Yr=new fa(ht,this.settings),cn=[],jn=Yr.lex();jn.text!=="EOF";)cn.push(jn),jn=Yr.lex();cn.reverse();var ai={tokens:cn,numArgs:Vt};return ai}return ht},ne.isDefined=function(be){return this.macros.has(be)||go.hasOwnProperty(be)||Xe.math.hasOwnProperty(be)||Xe.text.hasOwnProperty(be)||vo.hasOwnProperty(be)},ut}(),zo={"\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"}},Fa={\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"},Ja=function(){function ut(pe,be){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 Io(pe,be,this.mode),this.settings=be,this.leftrightDepth=0}var ne=ut.prototype;return ne.expect=function(be,je){if(je===void 0&&(je=!0),this.fetch().text!==be)throw new c("Expected '"+be+"', got '"+this.fetch().text+"'",this.fetch());je&&this.consume()},ne.consume=function(){this.nextToken=null},ne.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},ne.switchMode=function(be){this.mode=be,this.gullet.switchMode(be)},ne.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var be=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),be},ne.parseExpression=function(be,je){for(var ht=[];;){this.mode==="math"&&this.consumeSpaces();var Vt=this.fetch();if(ut.endOfExpression.indexOf(Vt.text)!==-1)break;if(je&&Vt.text===je)break;if(be&&go[Vt.text]&&go[Vt.text].infix)break;var Or=this.parseAtom(je);if(!Or)break;ht.push(Or)}return this.mode==="text"&&this.formLigatures(ht),this.handleInfixNodes(ht)},ne.handleInfixNodes=function(be){for(var je=-1,ht,Vt=0;Vt<be.length;Vt++){var Or=an(be[Vt],"infix");if(Or){if(je!==-1)throw new c("only one infix operator per group",Or.token);je=Vt,ht=Or.replaceWith}}if(je!==-1&&ht){var Yr,cn,jn=be.slice(0,je),ai=be.slice(je+1);jn.length===1&&jn[0].type==="ordgroup"?Yr=jn[0]:Yr={type:"ordgroup",mode:this.mode,body:jn},ai.length===1&&ai[0].type==="ordgroup"?cn=ai[0]:cn={type:"ordgroup",mode:this.mode,body:ai};var Qn;return ht==="\\\\abovefrac"?Qn=this.callFunction(ht,[Yr,be[je],cn],[]):Qn=this.callFunction(ht,[Yr,cn],[]),[Qn]}else return be},ne.handleSupSubscript=function(be){var je=this.fetch(),ht=je.text;this.consume();var Vt=this.parseGroup(be,!1,ut.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!Vt)throw new c("Expected group after '"+ht+"'",je);return Vt},ne.formatUnsupportedCmd=function(be){for(var je=[],ht=0;ht<be.length;ht++)je.push({type:"textord",mode:"text",text:be[ht]});var Vt={type:"text",mode:this.mode,body:je},Or={type:"color",mode:this.mode,color:this.settings.errorColor,body:[Vt]};return Or},ne.parseAtom=function(be){var je=this.parseGroup("atom",!1,null,be);if(this.mode==="text")return je;for(var ht,Vt;;){this.consumeSpaces();var Or=this.fetch();if(Or.text==="\\limits"||Or.text==="\\nolimits"){var Yr=an(je,"op");if(Yr){var cn=Or.text==="\\limits";Yr.limits=cn,Yr.alwaysHandleSupSub=!0}else if(Yr=an(je,"operatorname"),Yr&&Yr.alwaysHandleSupSub){var jn=Or.text==="\\limits";Yr.limits=jn}else throw new c("Limit controls must follow a math operator",Or);this.consume()}else if(Or.text==="^"){if(ht)throw new c("Double superscript",Or);ht=this.handleSupSubscript("superscript")}else if(Or.text==="_"){if(Vt)throw new c("Double subscript",Or);Vt=this.handleSupSubscript("subscript")}else if(Or.text==="'"){if(ht)throw new c("Double superscript",Or);var ai={type:"textord",mode:this.mode,text:"\\prime"},Qn=[ai];for(this.consume();this.fetch().text==="'";)Qn.push(ai),this.consume();this.fetch().text==="^"&&Qn.push(this.handleSupSubscript("superscript")),ht={type:"ordgroup",mode:this.mode,body:Qn}}else break}return ht||Vt?{type:"supsub",mode:this.mode,base:je,sup:ht,sub:Vt}:je},ne.parseFunction=function(be,je,ht){var Vt=this.fetch(),Or=Vt.text,Yr=go[Or];if(!Yr)return null;if(this.consume(),ht!=null&&Yr.greediness<=ht)throw new c("Got function '"+Or+"' with no arguments"+(je?" as "+je:""),Vt);if(this.mode==="text"&&!Yr.allowedInText)throw new c("Can't use function '"+Or+"' in text mode",Vt);if(this.mode==="math"&&Yr.allowedInMath===!1)throw new c("Can't use function '"+Or+"' in math mode",Vt);var cn=this.parseArguments(Or,Yr),jn=cn.args,ai=cn.optArgs;return this.callFunction(Or,jn,ai,Vt,be)},ne.callFunction=function(be,je,ht,Vt,Or){var Yr={funcName:be,parser:this,token:Vt,breakOnTokenText:Or},cn=go[be];if(cn&&cn.handler)return cn.handler(Yr,je,ht);throw new c("No function handler for "+be)},ne.parseArguments=function(be,je){var ht=je.numArgs+je.numOptionalArgs;if(ht===0)return{args:[],optArgs:[]};for(var Vt=je.greediness,Or=[],Yr=[],cn=0;cn<ht;cn++){var jn=je.argTypes&&je.argTypes[cn],ai=cn<je.numOptionalArgs,Qn=cn>0&&!ai||cn===0&&!ai&&this.mode==="math",Ni=this.parseGroupOfType("argument to '"+be+"'",jn,ai,Vt,Qn);if(!Ni){if(ai){Yr.push(null);continue}throw new c("Expected group after '"+be+"'",this.fetch())}(ai?Yr:Or).push(Ni)}return{args:Or,optArgs:Yr}},ne.parseGroupOfType=function(be,je,ht,Vt,Or){switch(je){case"color":return Or&&this.consumeSpaces(),this.parseColorGroup(ht);case"size":return Or&&this.consumeSpaces(),this.parseSizeGroup(ht);case"url":return this.parseUrlGroup(ht,Or);case"math":case"text":return this.parseGroup(be,ht,Vt,void 0,je,Or);case"hbox":{var Yr=this.parseGroup(be,ht,Vt,void 0,"text",Or);if(!Yr)return Yr;var cn={type:"styling",mode:Yr.mode,body:[Yr],style:"text"};return cn}case"raw":{if(Or&&this.consumeSpaces(),ht&&this.fetch().text==="{")return null;var jn=this.parseStringGroup("raw",ht,!0);if(jn)return{type:"raw",mode:"text",string:jn.text};throw new c("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(be,ht,Vt,void 0,void 0,Or);default:throw new c("Unknown group type as "+be,this.fetch())}},ne.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},ne.parseStringGroup=function(be,je,ht){var Vt=je?"[":"{",Or=je?"]":"}",Yr=this.fetch();if(Yr.text!==Vt){if(je)return null;if(ht&&Yr.text!=="EOF"&&/[^{}[\]]/.test(Yr.text))return this.consume(),Yr}var cn=this.mode;this.mode="text",this.expect(Vt);for(var jn="",ai=this.fetch(),Qn=0,Ni=ai,Vi;(Vi=this.fetch()).text!==Or||ht&&Qn>0;){switch(Vi.text){case"EOF":throw new c("Unexpected end of input in "+be,ai.range(Ni,jn));case Vt:Qn++;break;case Or:Qn--;break}Ni=Vi,jn+=Ni.text,this.consume()}return this.expect(Or),this.mode=cn,ai.range(Ni,jn)},ne.parseRegexGroup=function(be,je){var ht=this.mode;this.mode="text";for(var Vt=this.fetch(),Or=Vt,Yr="",cn;(cn=this.fetch()).text!=="EOF"&&be.test(Yr+cn.text);)Or=cn,Yr+=Or.text,this.consume();if(Yr==="")throw new c("Invalid "+je+": '"+Vt.text+"'",Vt);return this.mode=ht,Vt.range(Or,Yr)},ne.parseColorGroup=function(be){var je=this.parseStringGroup("color",be);if(!je)return null;var ht=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(je.text);if(!ht)throw new c("Invalid color: '"+je.text+"'",je);var Vt=ht[0];return/^[0-9a-f]{6}$/i.test(Vt)&&(Vt="#"+Vt),{type:"color-token",mode:this.mode,color:Vt}},ne.parseSizeGroup=function(be){var je,ht=!1;if(!be&&this.fetch().text!=="{"?je=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):je=this.parseStringGroup("size",be),!je)return null;!be&&je.text.length===0&&(je.text="0pt",ht=!0);var Vt=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(je.text);if(!Vt)throw new c("Invalid size: '"+je.text+"'",je);var Or={number:+(Vt[1]+Vt[2]),unit:Vt[3]};if(!Ar(Or))throw new c("Invalid unit: '"+Or.unit+"'",je);return{type:"size",mode:this.mode,value:Or,isBlank:ht}},ne.parseUrlGroup=function(be,je){this.gullet.lexer.setCatcode("%",13);var ht=this.parseStringGroup("url",be,!0);if(this.gullet.lexer.setCatcode("%",14),!ht)return null;var Vt=ht.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:Vt}},ne.parseGroup=function(be,je,ht,Vt,Or,Yr){var cn=this.mode;Or&&this.switchMode(Or),Yr&&this.consumeSpaces();var jn=this.fetch(),ai=jn.text,Qn;if(je?ai==="[":ai==="{"||ai==="\\begingroup"){this.consume();var Ni=ut.endOfGroup[ai];this.gullet.beginGroup();var Vi=this.parseExpression(!1,Ni),Ta=this.fetch();this.expect(Ni),this.gullet.endGroup(),Qn={type:"ordgroup",mode:this.mode,loc:S.range(jn,Ta),body:Vi,semisimple:ai==="\\begingroup"||void 0}}else if(je)Qn=null;else if(Qn=this.parseFunction(Vt,be,ht)||this.parseSymbol(),Qn==null&&ai[0]==="\\"&&!vo.hasOwnProperty(ai)){if(this.settings.throwOnError)throw new c("Undefined control sequence: "+ai,jn);Qn=this.formatUnsupportedCmd(ai),this.consume()}return Or&&this.switchMode(cn),Qn},ne.formLigatures=function(be){for(var je=be.length-1,ht=0;ht<je;++ht){var Vt=be[ht],Or=Vt.text;Or==="-"&&be[ht+1].text==="-"&&(ht+1<je&&be[ht+2].text==="-"?(be.splice(ht,3,{type:"textord",mode:"text",loc:S.range(Vt,be[ht+2]),text:"---"}),je-=2):(be.splice(ht,2,{type:"textord",mode:"text",loc:S.range(Vt,be[ht+1]),text:"--"}),je-=1)),(Or==="'"||Or==="`")&&be[ht+1].text===Or&&(be.splice(ht,2,{type:"textord",mode:"text",loc:S.range(Vt,be[ht+1]),text:Or+Or}),je-=1)}},ne.parseSymbol=function(){var be=this.fetch(),je=be.text;if(/^\\verb[^a-zA-Z]/.test(je)){this.consume();var ht=je.slice(5),Vt=ht.charAt(0)==="*";if(Vt&&(ht=ht.slice(1)),ht.length<2||ht.charAt(0)!==ht.slice(-1))throw new c(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return ht=ht.slice(1,-1),{type:"verb",mode:"text",body:ht,star:Vt}}Fa.hasOwnProperty(je[0])&&!Xe[this.mode][je[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+je[0]+'" used in math mode',be),je=Fa[je[0]]+je.substr(1));var Or=Uo.exec(je);Or&&(je=je.substring(0,Or.index),je==="i"?je="\u0131":je==="j"&&(je="\u0237"));var Yr;if(Xe[this.mode][je]){this.settings.strict&&this.mode==="math"&&bt.indexOf(je)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+je[0]+'" used in math mode',be);var cn=Xe[this.mode][je].group,jn=S.range(be),ai;if(tr.hasOwnProperty(cn)){var Qn=cn;ai={type:"atom",mode:this.mode,family:Qn,loc:jn,text:je}}else ai={type:cn,mode:this.mode,loc:jn,text:je};Yr=ai}else if(je.charCodeAt(0)>=128)this.settings.strict&&(J(je.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+je[0]+'" used in math mode',be):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+je[0]+'"'+(" ("+je.charCodeAt(0)+")"),be)),Yr={type:"textord",mode:"text",loc:S.range(be),text:je};else return null;if(this.consume(),Or)for(var Ni=0;Ni<Or[0].length;Ni++){var Vi=Or[0][Ni];if(!zo[Vi])throw new c("Unknown accent ' "+Vi+"'",be);var Ta=zo[Vi][this.mode];if(!Ta)throw new c("Accent "+Vi+" unsupported in "+this.mode+" mode",be);Yr={type:"accent",mode:this.mode,loc:S.range(be),label:Ta,isStretchy:!1,isShifty:!0,base:Yr}}return Yr},ut}();Ja.endOfExpression=["}","\\endgroup","\\end","\\right","&"],Ja.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},Ja.SUPSUB_GREEDINESS=1;var ho=function(ne,pe){if(!(typeof ne=="string"||ne instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var be=new Ja(ne,pe);delete be.gullet.macros.current["\\df@tag"];var je=be.parse();if(be.gullet.macros.get("\\df@tag")){if(!pe.displayMode)throw new c("\\tag works only in display equations");be.gullet.feed("\\df@tag"),je=[{type:"tag",mode:"text",body:je,tag:be.parse()}]}return je},Ao=ho,$o=function(ne,pe,be){pe.textContent="";var je=St(ne,be).toNode();pe.appendChild(je)};typeof document!="undefined"&&(document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),$o=function(){throw new c("KaTeX doesn't work in quirks mode.")}));var ps=function(ne,pe){var be=St(ne,pe).toMarkup();return be},is=function(ne,pe){var be=new m(pe);return Ao(ne,be)},Za=function(ne,pe,be){if(be.throwOnError||!(ne instanceof c))throw ne;var je=or.makeSpan(["katex-error"],[new Ce(pe)]);return je.setAttribute("title",ne.toString()),je.setAttribute("style","color:"+be.errorColor),je},St=function(ne,pe){var be=new m(pe);try{var je=Ao(ne,be);return Wo(je,ne,be)}catch(ht){return Za(ht,ne,be)}},Pt=function(ne,pe){var be=new m(pe);try{var je=Ao(ne,be);return po(je,ne,be)}catch(ht){return Za(ht,ne,be)}},Kr={version:"0.11.1",render:$o,renderToString:ps,ParseError:c,__parse:is,__renderToDomTree:St,__renderToHTMLTree:Pt,__setFontMetrics:Ot,__defineSymbol:oe,__defineMacro:Qr,__domTree:{Span:G,Anchor:Y,SymbolNode:Ce,SvgNode:Ie,PathNode:ce,LineNode:Ae}},Pn=x.default=Kr}]).default})},P2fV:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("Q9mQ"),A=d("+L6B"),S=d("sE09"),g=d.n(S)},P2ho:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O={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};F.default=O},P47w:function(H,F,d){var O=d("hydK"),x=O.createElement,C=d("IMiH"),A=d("mFDi"),S=d("Fofx"),g=d("6GrX"),f=d("pzxd"),c=d("dqUG"),o=C.CMD,r=Array.prototype.join,i="none",n=Math.round,e=Math.sin,l=Math.cos,t=Math.PI,a=Math.PI*2,s=180/t,u=1e-4;function h(V){return n(V*1e4)/1e4}function p(V){return V<u&&V>-u}function m(V,z){var J=z?V.textFill:V.fill;return J!=null&&J!==i}function v(V,z){var J=z?V.textStroke:V.stroke;return J!=null&&J!==i}function y(V,z){z&&E(V,"transform","matrix("+r.call(z,",")+")")}function E(V,z,J){(!J||J.type!=="linear"&&J.type!=="radial")&&V.setAttribute(z,J)}function T(V,z,J){V.setAttributeNS("http://www.w3.org/1999/xlink",z,J)}function b(V,z,J,Z){if(m(z,J)){var de=J?z.textFill:z.fill;de=de==="transparent"?i:de,E(V,"fill",de),E(V,"fill-opacity",z.fillOpacity!=null?z.fillOpacity*z.opacity:z.opacity)}else E(V,"fill",i);if(v(z,J)){var ie=J?z.textStroke:z.stroke;ie=ie==="transparent"?i:ie,E(V,"stroke",ie);var ve=J?z.textStrokeWidth:z.lineWidth,xe=!J&&z.strokeNoScale?Z.getLineScale():1;E(V,"stroke-width",ve/xe),E(V,"paint-order",J?"stroke":"fill"),E(V,"stroke-opacity",z.strokeOpacity!=null?z.strokeOpacity:z.opacity);var _e=z.lineDash;_e?(E(V,"stroke-dasharray",z.lineDash.join(",")),E(V,"stroke-dashoffset",n(z.lineDashOffset||0))):E(V,"stroke-dasharray",""),z.lineCap&&E(V,"stroke-linecap",z.lineCap),z.lineJoin&&E(V,"stroke-linejoin",z.lineJoin),z.miterLimit&&E(V,"stroke-miterlimit",z.miterLimit)}else E(V,"stroke",i)}function w(V){for(var z=[],J=V.data,Z=V.len(),de=0;de<Z;){var ie=J[de++],ve="",xe=0;switch(ie){case o.M:ve="M",xe=2;break;case o.L:ve="L",xe=2;break;case o.Q:ve="Q",xe=4;break;case o.C:ve="C",xe=6;break;case o.A:var _e=J[de++],Ue=J[de++],fe=J[de++],ke=J[de++],se=J[de++],te=J[de++],Ve=J[de++],ae=J[de++],Q=Math.abs(te),G=p(Q-a)||(ae?te>=a:-te>=a),Y=te>0?te%a:te%a+a,me=!1;G?me=!0:p(Q)?me=!1:me=Y>=t===!!ae;var ue=h(_e+fe*l(se)),Ce=h(Ue+ke*e(se));G&&(ae?te=a-1e-4:te=-a+1e-4,me=!0,de===9&&z.push("M",ue,Ce));var Ie=h(_e+fe*l(se+te)),ce=h(Ue+ke*e(se+te));z.push("A",h(fe),h(ke),n(Ve*s),+me,+ae,Ie,ce);break;case o.Z:ve="Z";break;case o.R:var Ie=h(J[de++]),ce=h(J[de++]),Ae=h(J[de++]),Te=h(J[de++]);z.push("M",Ie,ce,"L",Ie+Ae,ce,"L",Ie+Ae,ce+Te,"L",Ie,ce+Te,"L",Ie,ce);break}ve&&z.push(ve);for(var Ge=0;Ge<xe;Ge++)z.push(h(J[de++]))}return z.join(" ")}var _={};_.brush=function(V){var z=V.style,J=V.__svgEl;J||(J=x("path"),V.__svgEl=J),V.path||V.createPathProxy();var Z=V.path;if(V.__dirtyPath){Z.beginPath(),Z.subPixelOptimize=!1,V.buildPath(Z,V.shape),V.__dirtyPath=!1;var de=w(Z);de.indexOf("NaN")<0&&E(J,"d",de)}b(J,z,!1,V),y(J,V.transform),z.text!=null?M(V,V.getBoundingRect()):W(V)};var I={};I.brush=function(V){var z=V.style,J=z.image;if(J instanceof HTMLImageElement){var Z=J.src;J=Z}if(!J)return;var de=z.x||0,ie=z.y||0,ve=z.width,xe=z.height,_e=V.__svgEl;_e||(_e=x("image"),V.__svgEl=_e),J!==V.__imageSrc&&(T(_e,"href",J),V.__imageSrc=J),E(_e,"width",ve),E(_e,"height",xe),E(_e,"x",de),E(_e,"y",ie),y(_e,V.transform),z.text!=null?M(V,V.getBoundingRect()):W(V)};var L={},N=new A,D={},R=[],k={left:"start",right:"end",center:"middle",middle:"middle"},M=function(z,J){var Z=z.style,de=z.transform,ie=z instanceof c||Z.transformText;z.__dirty&&f.normalizeTextStyle(Z,!0);var ve=Z.text;if(ve!=null&&(ve+=""),!f.needDrawText(ve,Z))return;ve==null&&(ve=""),!ie&&de&&(N.copy(J),N.applyTransform(de),J=N);var xe=z.__textSvgEl;xe||(xe=x("text"),z.__textSvgEl=xe);var _e=xe.style,Ue=Z.font||g.DEFAULT_FONT,fe=xe.__computedFont;Ue!==xe.__styleFont&&(_e.font=xe.__styleFont=Ue,fe=xe.__computedFont=_e.font);var ke=Z.textPadding,se=Z.textLineHeight,te=z.__textCotentBlock;(!te||z.__dirtyText)&&(te=z.__textCotentBlock=g.parsePlainText(ve,fe,ke,se,Z.truncate));var Ve=te.outerHeight,ae=te.lineHeight;f.getBoxPosition(D,z,Z,J);var Q=D.baseX,G=D.baseY,Y=D.textAlign||"left",me=D.textVerticalAlign;U(xe,ie,de,Z,J,Q,G);var ue=g.adjustTextY(G,Ve,me),Ce=Q,Ie=ue;ke&&(Ce=B(Q,Y,ke),Ie+=ke[0]),Ie+=ae/2,b(xe,Z,!0,z);var ce=te.canCacheByTextString,Ae=z.__tspanList||(z.__tspanList=[]),Te=Ae.length;if(ce&&z.__canCacheByTextString&&z.__text===ve){if(z.__dirtyText&&Te)for(var Ge=0;Ge<Te;++Ge)j(Ae[Ge],Y,Ce,Ie+Ge*ae)}else{z.__text=ve,z.__canCacheByTextString=ce;for(var gt=te.lines,qe=gt.length,Ge=0;Ge<qe;Ge++){var Le=Ae[Ge],Ot=gt[Ge];Le?Le.__zrText!==Ot&&(Le.innerHTML="",Le.appendChild(document.createTextNode(Ot))):(Le=Ae[Ge]=x("tspan"),xe.appendChild(Le),Le.appendChild(document.createTextNode(Ot))),j(Le,Y,Ce,Ie+Ge*ae)}if(Te>qe){for(;Ge<Te;Ge++)xe.removeChild(Ae[Ge]);Ae.length=qe}}};function U(V,z,J,Z,de,ie,ve){S.identity(R),z&&J&&S.copy(R,J);var xe=Z.textRotation;if(de&&xe){var _e=Z.textOrigin;_e==="center"?(ie=de.width/2+de.x,ve=de.height/2+de.y):_e&&(ie=_e[0]+de.x,ve=_e[1]+de.y),R[4]-=ie,R[5]-=ve,S.rotate(R,R,xe),R[4]+=ie,R[5]+=ve}y(V,R)}function B(V,z,J){return z==="right"?V-J[1]:z==="center"?V+J[3]/2-J[1]/2:V+J[3]}function j(V,z,J,Z){E(V,"dominant-baseline","middle"),E(V,"text-anchor",k[z]),E(V,"x",J),E(V,"y",Z)}function W(V){V&&V.__textSvgEl&&(V.__textSvgEl.parentNode&&V.__textSvgEl.parentNode.removeChild(V.__textSvgEl),V.__textSvgEl=null,V.__tspanList=[],V.__text=null)}L.drawRectText=M,L.brush=function(V){var z=V.style;z.text!=null?M(V,!1):W(V)},F.path=_,F.image=I,F.text=L},P4Qj:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.removeSensor=F.getSensor=void 0;var O=A(d("chpo")),x=d("FxDU"),C=d("24YM");function A(c){return c&&c.__esModule?c:{default:c}}var S={},g=function(o){var r=o.getAttribute(C.SizeSensorId);if(r&&S[r])return S[r];var i=(0,O.default)();o.setAttribute(C.SizeSensorId,i);var n=(0,x.createSensor)(o);return S[i]=n,n};F.getSensor=g;var f=function(o){var r=o.element.getAttribute(C.SizeSensorId);o.element.removeAttribute(C.SizeSensorId),o.destroy(),r&&S[r]&&delete S[r]};F.removeSensor=f},P5Jw:function(H,F,d){"use strict";var O=d("rHrb"),x=O.CopyToClipboard;x.CopyToClipboard=x,H.exports=x},PArb:function(H,F,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),S=d("q1tI"),g=d.n(S),f=d("TSYQ"),c=d.n(f),o=d("H84U"),r=function(n,e){var l={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(l[t]=n[t]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(n);a<t.length;a++)e.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(n,t[a])&&(l[t[a]]=n[t[a]]);return l},i=function(e){return S.createElement(o.a,null,function(l){var t,a=l.getPrefixCls,s=l.direction,u=e.prefixCls,h=e.type,p=h===void 0?"horizontal":h,m=e.orientation,v=m===void 0?"center":m,y=e.className,E=e.children,T=e.dashed,b=e.plain,w=r(e,["prefixCls","type","orientation","className","children","dashed","plain"]),_=a("divider",u),I=v.length>0?"-".concat(v):v,L=!!E,N=c()(y,_,"".concat(_,"-").concat(p),(t={},A()(t,"".concat(_,"-with-text"),L),A()(t,"".concat(_,"-with-text").concat(I),L),A()(t,"".concat(_,"-dashed"),!!T),A()(t,"".concat(_,"-plain"),!!b),A()(t,"".concat(_,"-rtl"),s==="rtl"),t));return S.createElement("div",x()({className:N},w,{role:"separator"}),E&&S.createElement("span",{className:"".concat(_,"-inner-text")},E))})};F.a=i},PD8m:function(H,F){H.exports={name:"memoryStorage",read:O,write:x,each:C,remove:A,clearAll:S};var d={};function O(g){return d[g]}function x(g,f){d[g]=f}function C(g){for(var f in d)d.hasOwnProperty(f)&&g(d[f],f)}function A(g){delete d[g]}function S(g){d={}}},PKem:function(H,F,d){"use strict";d.d(F,"a",function(){return m});var O=d("RIqP"),x=d.n(O),C=d("lSNA"),A=d.n(C),S=d("pVnL"),g=d.n(S),f=d("lwsE"),c=d.n(f),o=d("W8MJ"),r=d.n(o),i=d("7W2i"),n=d.n(i),e=d("LQ03"),l=d.n(e),t=d("q1tI"),a=d.n(t),s=d("TSYQ"),u=d.n(s),h=d("H84U"),p=function(I,L){var N={};for(var D in I)Object.prototype.hasOwnProperty.call(I,D)&&L.indexOf(D)<0&&(N[D]=I[D]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,D=Object.getOwnPropertySymbols(I);R<D.length;R++)L.indexOf(D[R])<0&&Object.prototype.propertyIsEnumerable.call(I,D[R])&&(N[D[R]]=I[D[R]]);return N},m=t.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function v(I){var L=I.suffixCls,N=I.tagName,D=I.displayName;return function(R){var k;return k=function(M){n()(B,M);var U=l()(B);function B(){var j;return c()(this,B),j=U.apply(this,arguments),j.renderComponent=function(W){var V=W.getPrefixCls,z=j.props.prefixCls,J=V(L,z);return t.createElement(R,g()({prefixCls:J,tagName:N},j.props))},j}return r()(B,[{key:"render",value:function(){return t.createElement(h.a,null,this.renderComponent)}}]),B}(t.Component),k.displayName=D,k}}var y=function(L){var N=L.prefixCls,D=L.className,R=L.children,k=L.tagName,M=p(L,["prefixCls","className","children","tagName"]),U=u()(N,D);return t.createElement(k,g()({className:U},M),R)},E=function(I){n()(N,I);var L=l()(N);function N(){var D;return c()(this,N),D=L.apply(this,arguments),D.state={siders:[]},D.renderComponent=function(R){var k,M=R.direction,U=D.props,B=U.prefixCls,j=U.className,W=U.children,V=U.hasSider,z=U.tagName,J=p(U,["prefixCls","className","children","hasSider","tagName"]),Z=u()(B,(k={},A()(k,"".concat(B,"-has-sider"),typeof V=="boolean"?V:D.state.siders.length>0),A()(k,"".concat(B,"-rtl"),M==="rtl"),k),j);return t.createElement(m.Provider,{value:{siderHook:D.getSiderHook()}},t.createElement(z,g()({className:Z},J),W))},D}return r()(N,[{key:"getSiderHook",value:function(){var R=this;return{addSider:function(M){R.setState(function(U){return{siders:[].concat(x()(U.siders),[M])}})},removeSider:function(M){R.setState(function(U){return{siders:U.siders.filter(function(B){return B!==M})}})}}}},{key:"render",value:function(){return t.createElement(h.a,null,this.renderComponent)}}]),N}(t.Component),T=v({suffixCls:"layout",tagName:"section",displayName:"Layout"})(E),b=v({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(y),w=v({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(y),_=v({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(y);T.Header=b,T.Footer=w,T.Content=_,F.b=T},PNag:function(H,F,d){var O=d("bYtY"),x=d("SKnc"),C=d("YH21"),A=d("crZl"),S=d("IwbS"),g=d("OELB"),f=d("72pK"),c=d("y7Aq"),o=d("4NO4"),r=g.linearMap,i=O.each,n=Math.min,e=Math.max,l=12,t=6,a=A.extend({type:"visualMap.continuous",init:function(){a.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(E,T,b,w){(!w||w.type!=="selectDataRange"||w.from!==this.uid)&&this._buildView()},_buildView:function(){this.group.removeAll();var E=this.visualMapModel,T=this.group;this._orient=E.get("orient"),this._useHandle=E.get("calculable"),this._resetInterval(),this._renderBar(T);var b=E.get("text");this._renderEndsText(T,b,0),this._renderEndsText(T,b,1),this._updateView(!0),this.renderBackground(T),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(T)},_renderEndsText:function(E,T,b){if(!T)return;var w=T[1-b];w=w!=null?w+"":"";var _=this.visualMapModel,I=_.get("textGap"),L=_.itemSize,N=this._shapes.barGroup,D=this._applyTransform([L[0]/2,b===0?-I:L[1]+I],N),R=this._applyTransform(b===0?"bottom":"top",N),k=this._orient,M=this.visualMapModel.textStyleModel;this.group.add(new S.Text({style:{x:D[0],y:D[1],textVerticalAlign:k==="horizontal"?"middle":R,textAlign:k==="horizontal"?R:"center",text:w,textFont:M.getFont(),textFill:M.getTextColor()}}))},_renderBar:function(E){var T=this.visualMapModel,b=this._shapes,w=T.itemSize,_=this._orient,I=this._useHandle,L=c.getItemAlign(T,this.api,w),N=b.barGroup=this._createBarGroup(L);N.add(b.outOfRange=s()),N.add(b.inRange=s(null,I?v(this._orient):null,O.bind(this._dragHandle,this,"all",!1),O.bind(this._dragHandle,this,"all",!0)));var D=T.textStyleModel.getTextRect("\u56FD"),R=e(D.width,D.height);I&&(b.handleThumbs=[],b.handleLabels=[],b.handleLabelPoints=[],this._createHandle(N,0,w,R,_,L),this._createHandle(N,1,w,R,_,L)),this._createIndicator(N,w,R,_),E.add(N)},_createHandle:function(E,T,b,w,_){var I=O.bind(this._dragHandle,this,T,!1),L=O.bind(this._dragHandle,this,T,!0),N=s(u(T,w),v(this._orient),I,L);N.position[0]=b[0],E.add(N);var D=this.visualMapModel.textStyleModel,R=new S.Text({draggable:!0,drift:I,onmousemove:function(U){C.stop(U.event)},ondragend:L,style:{x:0,y:0,text:"",textFont:D.getFont(),textFill:D.getTextColor()}});this.group.add(R);var k=[_==="horizontal"?w/2:w*1.5,_==="horizontal"?T===0?-(w*1.5):w*1.5:T===0?-w/2:w/2],M=this._shapes;M.handleThumbs[T]=N,M.handleLabelPoints[T]=k,M.handleLabels[T]=R},_createIndicator:function(E,T,b,w){var _=s([[0,0]],"move");_.position[0]=T[0],_.attr({invisible:!0,silent:!0}),E.add(_);var I=this.visualMapModel.textStyleModel,L=new S.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:I.getFont(),textFill:I.getTextColor()}});this.group.add(L);var N=[w==="horizontal"?b/2:t+3,0],D=this._shapes;D.indicator=_,D.indicatorLabel=L,D.indicatorLabelPoint=N},_dragHandle:function(E,T,b,w){if(!this._useHandle)return;if(this._dragging=!T,!T){var _=this._applyTransform([b,w],this._shapes.barGroup,!0);this._updateInterval(E,_[1]),this._updateView()}T===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),T?!this._hovering&&this._clearHoverLinkToSeries():m(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[E],!1)},_resetInterval:function(){var E=this.visualMapModel,T=this._dataInterval=E.getSelected(),b=E.getExtent(),w=[0,E.itemSize[1]];this._handleEnds=[r(T[0],b,w,!0),r(T[1],b,w,!0)]},_updateInterval:function(E,T){T=T||0;var b=this.visualMapModel,w=this._handleEnds,_=[0,b.itemSize[1]];f(T,w,_,E,0);var I=b.getExtent();this._dataInterval=[r(w[0],_,I,!0),r(w[1],_,I,!0)]},_updateView:function(E){var T=this.visualMapModel,b=T.getExtent(),w=this._shapes,_=[0,T.itemSize[1]],I=E?_:this._handleEnds,L=this._createBarVisual(this._dataInterval,b,I,"inRange"),N=this._createBarVisual(b,b,_,"outOfRange");w.inRange.setStyle({fill:L.barColor,opacity:L.opacity}).setShape("points",L.barPoints),w.outOfRange.setStyle({fill:N.barColor,opacity:N.opacity}).setShape("points",N.barPoints),this._updateHandle(I,L)},_createBarVisual:function(E,T,b,w){var _={forceState:w,convertOpacityToAlpha:!0},I=this._makeColorGradient(E,_),L=[this.getControllerVisual(E[0],"symbolSize",_),this.getControllerVisual(E[1],"symbolSize",_)],N=this._createBarPoints(b,L);return{barColor:new x(0,0,0,1,I),barPoints:N,handlesColor:[I[0].color,I[I.length-1].color]}},_makeColorGradient:function(E,T){var b=100,w=[],_=(E[1]-E[0])/b;w.push({color:this.getControllerVisual(E[0],"color",T),offset:0});for(var I=1;I<b;I++){var L=E[0]+_*I;if(L>E[1])break;w.push({color:this.getControllerVisual(L,"color",T),offset:I/b})}return w.push({color:this.getControllerVisual(E[1],"color",T),offset:1}),w},_createBarPoints:function(E,T){var b=this.visualMapModel.itemSize;return[[b[0]-T[0],E[0]],[b[0],E[0]],[b[0],E[1]],[b[0]-T[1],E[1]]]},_createBarGroup:function(E){var T=this._orient,b=this.visualMapModel.get("inverse");return new S.Group(T==="horizontal"&&!b?{scale:E==="bottom"?[1,1]:[-1,1],rotation:Math.PI/2}:T==="horizontal"&&b?{scale:E==="bottom"?[-1,1]:[1,1],rotation:-Math.PI/2}:T==="vertical"&&!b?{scale:E==="left"?[1,-1]:[-1,-1]}:{scale:E==="left"?[1,1]:[-1,1]})},_updateHandle:function(E,T){if(!this._useHandle)return;var b=this._shapes,w=this.visualMapModel,_=b.handleThumbs,I=b.handleLabels;i([0,1],function(L){var N=_[L];N.setStyle("fill",T.handlesColor[L]),N.position[1]=E[L];var D=S.applyTransform(b.handleLabelPoints[L],S.getTransform(N,this.group));I[L].setStyle({x:D[0],y:D[1],text:w.formatValueText(this._dataInterval[L]),textVerticalAlign:"middle",textAlign:this._applyTransform(this._orient==="horizontal"?L===0?"bottom":"top":"left",b.barGroup)})},this)},_showIndicator:function(E,T,b,w){var _=this.visualMapModel,I=_.getExtent(),L=_.itemSize,N=[0,L[1]],D=r(E,I,N,!0),R=this._shapes,k=R.indicator;if(!k)return;k.position[1]=D,k.attr("invisible",!1),k.setShape("points",h(!!b,w,D,L[1]));var M={convertOpacityToAlpha:!0},U=this.getControllerVisual(E,"color",M);k.setStyle("fill",U);var B=S.applyTransform(R.indicatorLabelPoint,S.getTransform(k,this.group)),j=R.indicatorLabel;j.attr("invisible",!1);var W=this._applyTransform("left",R.barGroup),V=this._orient;j.setStyle({text:(b||"")+_.formatValueText(T),textVerticalAlign:V==="horizontal"?W:"middle",textAlign:V==="horizontal"?"center":W,x:B[0],y:B[1]})},_enableHoverLinkToSeries:function(){var E=this;this._shapes.barGroup.on("mousemove",function(T){if(E._hovering=!0,!E._dragging){var b=E.visualMapModel.itemSize,w=E._applyTransform([T.offsetX,T.offsetY],E._shapes.barGroup,!0,!0);w[1]=n(e(0,w[1]),b[1]),E._doHoverLinkToSeries(w[1],0<=w[0]&&w[0]<=b[0])}}).on("mouseout",function(){E._hovering=!1,!E._dragging&&E._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var E=this.api.getZr();this.visualMapModel.option.hoverLink?(E.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),E.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(E,T){var b=this.visualMapModel,w=b.itemSize;if(!b.option.hoverLink)return;var _=[0,w[1]],I=b.getExtent();E=n(e(_[0],E),_[1]);var L=p(b,I,_),N=[E-L,E+L],D=r(E,_,I,!0),R=[r(N[0],_,I,!0),r(N[1],_,I,!0)];N[0]<_[0]&&(R[0]=-Infinity),N[1]>_[1]&&(R[1]=Infinity),T&&(R[0]===-Infinity?this._showIndicator(D,R[1],"< ",L):R[1]===Infinity?this._showIndicator(D,R[0],"> ",L):this._showIndicator(D,D,"\u2248 ",L));var k=this._hoverLinkDataIndices,M=[];(T||m(b))&&(M=this._hoverLinkDataIndices=b.findTargetDataIndices(R));var U=o.compressBatches(k,M);this._dispatchHighDown("downplay",c.makeHighDownBatch(U[0],b)),this._dispatchHighDown("highlight",c.makeHighDownBatch(U[1],b))},_hoverLinkFromSeriesMouseOver:function(E){var T=E.target,b=this.visualMapModel;if(!T||T.dataIndex==null)return;var w=this.ecModel.getSeriesByIndex(T.seriesIndex);if(!b.isTargetSeries(w))return;var _=w.getData(T.dataType),I=_.get(b.getDataDimension(_),T.dataIndex,!0);isNaN(I)||this._showIndicator(I,I)},_hideIndicator:function(){var E=this._shapes;E.indicator&&E.indicator.attr("invisible",!0),E.indicatorLabel&&E.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var E=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",c.makeHighDownBatch(E,this.visualMapModel)),E.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var E=this.api.getZr();E.off("mouseover",this._hoverLinkFromSeriesMouseOver),E.off("mouseout",this._hideIndicator)},_applyTransform:function(E,T,b,w){var _=S.getTransform(T,w?null:this.group);return S[O.isArray(E)?"applyTransform":"transformDirection"](E,_,b)},_dispatchHighDown:function(E,T){T&&T.length&&this.api.dispatchAction({type:E,batch:T})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function s(E,T,b,w){return new S.Polygon({shape:{points:E},draggable:!!b,cursor:T,drift:b,onmousemove:function(_){C.stop(_.event)},ondragend:w})}function u(E,T){return E===0?[[0,0],[T,0],[T,-T]]:[[0,0],[T,0],[T,T]]}function h(E,T,b,w){return E?[[0,-n(T,e(b,0))],[t,0],[0,n(T,e(w-b,0))]]:[[0,0],[5,-5],[5,5]]}function p(E,T,b){var w=l/2,_=E.get("hoverLinkDataSize");return _&&(w=r(_,T,b,!0)/2),w}function m(E){var T=E.get("hoverLinkOnHandle");return!!(T==null?E.get("realtime"):T)}function v(E){return E==="vertical"?"ns-resize":"ew-resize"}var y=a;H.exports=y},PQMj:function(H,F,d){},PSzr:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},PVpz:function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.StreamCipher,S=x.algo,g=[],f=[],c=[],o=S.RabbitLegacy=A.extend({_doReset:function(){var n=this._key.words,e=this.cfg.iv,l=this._X=[n[0],n[3]<<16|n[2]>>>16,n[1],n[0]<<16|n[3]>>>16,n[2],n[1]<<16|n[0]>>>16,n[3],n[2]<<16|n[1]>>>16],t=this._C=[n[2]<<16|n[2]>>>16,n[0]&4294901760|n[1]&65535,n[3]<<16|n[3]>>>16,n[1]&4294901760|n[2]&65535,n[0]<<16|n[0]>>>16,n[2]&4294901760|n[3]&65535,n[1]<<16|n[1]>>>16,n[3]&4294901760|n[0]&65535];this._b=0;for(var a=0;a<4;a++)r.call(this);for(var a=0;a<8;a++)t[a]^=l[a+4&7];if(e){var s=e.words,u=s[0],h=s[1],p=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,m=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,v=p>>>16|m&4294901760,y=m<<16|p&65535;t[0]^=p,t[1]^=v,t[2]^=m,t[3]^=y,t[4]^=p,t[5]^=v,t[6]^=m,t[7]^=y;for(var a=0;a<4;a++)r.call(this)}},_doProcessBlock:function(n,e){var l=this._X;r.call(this),g[0]=l[0]^l[5]>>>16^l[3]<<16,g[1]=l[2]^l[7]>>>16^l[5]<<16,g[2]=l[4]^l[1]>>>16^l[7]<<16,g[3]=l[6]^l[3]>>>16^l[1]<<16;for(var t=0;t<4;t++)g[t]=(g[t]<<8|g[t]>>>24)&16711935|(g[t]<<24|g[t]>>>8)&4278255360,n[e+t]^=g[t]},blockSize:128/32,ivSize:64/32});function r(){for(var i=this._X,n=this._C,e=0;e<8;e++)f[e]=n[e];n[0]=n[0]+1295307597+this._b|0,n[1]=n[1]+3545052371+(n[0]>>>0<f[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<f[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<f[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<f[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<f[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<f[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<f[6]>>>0?1:0)|0,this._b=n[7]>>>0<f[7]>>>0?1:0;for(var e=0;e<8;e++){var l=i[e]+n[e],t=l&65535,a=l>>>16,s=((t*t>>>17)+t*a>>>15)+a*a,u=((l&4294901760)*l|0)+((l&65535)*l|0);c[e]=s^u}i[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,i[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,i[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,i[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,i[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,i[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,i[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,i[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}x.RabbitLegacy=A._createHelper(o)}(),O.RabbitLegacy})},ProS:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("aX58"),A=d("bYtY"),S=d("Qe9p"),g=d("ItGF"),f=d("BPZU"),c=d("H6uX"),o=d("fmMI"),r=d("hD7B"),i=d("IDmD"),n=d("ypgQ"),e=d("+wW9"),l=d("0V0F"),t=d("bLfw"),a=d("T4UG"),s=d("sS/r"),u=d("6Ic6"),h=d("IwbS"),p=d("4NO4"),m=d("iLNv"),v=m.throttle,y=d("/WM3"),E=d("uAnK"),T=d("mYwL"),b=d("af/B"),w=d("xTNl"),_=d("8hn6");d("A1Ka");var I=d("7DRL"),L=A.assert,N=A.each,D=A.isFunction,R=A.isObject,k=t.parseClassType,M="4.8.0",U={zrender:"4.3.1"},B=1,j=1e3,W=800,V=900,z=5e3,J=1e3,Z=1100,de=2e3,ie=3e3,ve=3500,xe=4e3,_e=5e3,Ue={PROCESSOR:{FILTER:j,SERIES_FILTER:W,STATISTIC:z},VISUAL:{LAYOUT:J,PROGRESSIVE_LAYOUT:Z,GLOBAL:de,CHART:ie,POST_CHART_LAYOUT:ve,COMPONENT:xe,BRUSH:_e}},fe="__flagInMainProcess",ke="__optionUpdated",se=/^[a-zA-Z0-9_]+$/;function te(ot,Bt){return function(Ar,rr,pr){if(!Bt&&this._disposed){Ht(this.id);return}Ar=Ar&&Ar.toLowerCase(),c.prototype[ot].call(this,Ar,rr,pr)}}function Ve(){c.call(this)}Ve.prototype.on=te("on",!0),Ve.prototype.off=te("off",!0),Ve.prototype.one=te("one",!0),A.mixin(Ve,c);function ae(ot,Bt,Ar){Ar=Ar||{},typeof Bt=="string"&&(Bt=dt[Bt]),this.id,this.group,this._dom=ot;var rr="canvas",pr=this._zr=C.init(ot,{renderer:Ar.renderer||rr,devicePixelRatio:Ar.devicePixelRatio,width:Ar.width,height:Ar.height});this._throttledZrFlush=v(A.bind(pr.flush,pr),17);var Bt=A.clone(Bt);Bt&&e(Bt,!0),this._theme=Bt,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new i;var tn=this._api=Xe(this);function hn(Mn,Xn){return Mn.__prio-Xn.__prio}f(Ct,hn),f(Ee,hn),this._scheduler=new b(this,tn,Ee,Ct),c.call(this,this._ecEventProcessor=new oe),this._messageCenter=new Ve,this._initEvents(),this.resize=A.bind(this.resize,this),this._pendingActions=[],pr.animation.on("frame",this._onframe,this),Te(pr,this),A.setAsPrimitive(this)}var Q=ae.prototype;Q._onframe=function(){if(this._disposed)return;var ot=this._scheduler;if(this[ke]){var Bt=this[ke].silent;this[fe]=!0,me(this),Y.update.call(this),this[fe]=!1,this[ke]=!1,ce.call(this,Bt),Ae.call(this,Bt)}else if(ot.unfinished){var Ar=B,rr=this._model,pr=this._api;ot.unfinished=!1;do{var tn=+new Date;ot.performSeriesTasks(rr),ot.performDataProcessorTasks(rr),Ce(this,rr),ot.performVisualTasks(rr),Ot(this,this._model,pr,"remain"),Ar-=+new Date-tn}while(Ar>0&&ot.unfinished);ot.unfinished||this._zr.flush()}},Q.getDom=function(){return this._dom},Q.getZr=function(){return this._zr},Q.setOption=function(ot,Bt,Ar){if(this._disposed){Ht(this.id);return}var rr;if(R(Bt)&&(Ar=Bt.lazyUpdate,rr=Bt.silent,Bt=Bt.notMerge),this[fe]=!0,!this._model||Bt){var pr=new n(this._api),tn=this._theme,hn=this._model=new o;hn.scheduler=this._scheduler,hn.init(null,null,tn,pr)}this._model.setOption(ot,ee),Ar?(this[ke]={silent:rr},this[fe]=!1):(me(this),Y.update.call(this),this._zr.flush(),this[ke]=!1,this[fe]=!1,ce.call(this,rr),Ae.call(this,rr))},Q.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},Q.getModel=function(){return this._model},Q.getOption=function(){return this._model&&this._model.getOption()},Q.getWidth=function(){return this._zr.getWidth()},Q.getHeight=function(){return this._zr.getHeight()},Q.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},Q.getRenderedCanvas=function(ot){if(!g.canvasSupported)return;ot=ot||{},ot.pixelRatio=ot.pixelRatio||1,ot.backgroundColor=ot.backgroundColor||this._model.get("backgroundColor");var Bt=this._zr;return Bt.painter.getRenderedCanvas(ot)},Q.getSvgDataURL=function(){if(!g.svgSupported)return;var ot=this._zr,Bt=ot.storage.getDisplayList();return A.each(Bt,function(Ar){Ar.stopAnimation(!0)}),ot.painter.toDataURL()},Q.getDataURL=function(ot){if(this._disposed){Ht(this.id);return}ot=ot||{};var Bt=ot.excludeComponents,Ar=this._model,rr=[],pr=this;N(Bt,function(hn){Ar.eachComponent({mainType:hn},function(Mn){var Xn=pr._componentsMap[Mn.__viewId];Xn.group.ignore||(rr.push(Xn),Xn.group.ignore=!0)})});var tn=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(ot).toDataURL("image/"+(ot&&ot.type||"png"));return N(rr,function(hn){hn.group.ignore=!1}),tn},Q.getConnectedDataURL=function(ot){if(this._disposed){Ht(this.id);return}if(!g.canvasSupported)return;var Bt=ot.type==="svg",Ar=this.group,rr=Math.min,pr=Math.max,tn=Infinity;if($r[Ar]){var hn=tn,Mn=tn,Xn=-tn,si=-tn,vi=[],xi=ot&&ot.pixelRatio||1;A.each(ir,function(Ye,We){if(Ye.group===Ar){var Ze=Bt?Ye.getZr().painter.getSvgDom().innerHTML:Ye.getRenderedCanvas(A.clone(ot)),mt=Ye.getDom().getBoundingClientRect();hn=rr(mt.left,hn),Mn=rr(mt.top,Mn),Xn=pr(mt.right,Xn),si=pr(mt.bottom,si),vi.push({dom:Ze,left:mt.left,top:mt.top})}}),hn*=xi,Mn*=xi,Xn*=xi,si*=xi;var _i=Xn-hn,Qe=si-Mn,we=A.createCanvas(),Ne=C.init(we,{renderer:Bt?"svg":"canvas"});if(Ne.resize({width:_i,height:Qe}),Bt){var Fe="";return N(vi,function(Ye){var We=Ye.left-hn,Ze=Ye.top-Mn;Fe+='<g transform="translate('+We+","+Ze+')">'+Ye.dom+"</g>"}),Ne.painter.getSvgRoot().innerHTML=Fe,ot.connectedBackgroundColor&&Ne.painter.setBackgroundColor(ot.connectedBackgroundColor),Ne.refreshImmediately(),Ne.painter.toDataURL()}else return ot.connectedBackgroundColor&&Ne.add(new h.Rect({shape:{x:0,y:0,width:_i,height:Qe},style:{fill:ot.connectedBackgroundColor}})),N(vi,function(Ye){var We=new h.Image({style:{x:Ye.left*xi-hn,y:Ye.top*xi-Mn,image:Ye.dom}});Ne.add(We)}),Ne.refreshImmediately(),we.toDataURL("image/"+(ot&&ot.type||"png"))}else return this.getDataURL(ot)},Q.convertToPixel=A.curry(G,"convertToPixel"),Q.convertFromPixel=A.curry(G,"convertFromPixel");function G(ot,Bt,Ar){if(this._disposed){Ht(this.id);return}var rr=this._model,pr=this._coordSysMgr.getCoordinateSystems(),tn;Bt=p.parseFinder(rr,Bt);for(var hn=0;hn<pr.length;hn++){var Mn=pr[hn];if(Mn[ot]&&(tn=Mn[ot](rr,Bt,Ar))!=null)return tn}}Q.containPixel=function(ot,Bt){if(this._disposed){Ht(this.id);return}var Ar=this._model,rr;return ot=p.parseFinder(Ar,ot),A.each(ot,function(pr,tn){tn.indexOf("Models")>=0&&A.each(pr,function(hn){var Mn=hn.coordinateSystem;if(Mn&&Mn.containPoint)rr|=!!Mn.containPoint(Bt);else if(tn==="seriesModels"){var Xn=this._chartsMap[hn.__viewId];Xn&&Xn.containPoint&&(rr|=Xn.containPoint(Bt,hn))}},this)},this),!!rr},Q.getVisual=function(ot,Bt){var Ar=this._model;ot=p.parseFinder(Ar,ot,{defaultMainType:"series"});var rr=ot.seriesModel,pr=rr.getData(),tn=ot.hasOwnProperty("dataIndexInside")?ot.dataIndexInside:ot.hasOwnProperty("dataIndex")?pr.indexOfRawIndex(ot.dataIndex):null;return tn!=null?pr.getItemVisual(tn,Bt):pr.getVisual(Bt)},Q.getViewOfComponentModel=function(ot){return this._componentsMap[ot.__viewId]},Q.getViewOfSeriesModel=function(ot){return this._chartsMap[ot.__viewId]};var Y={prepareAndUpdate:function(ot){me(this),Y.update.call(this,ot)},update:function(ot){var Bt=this._model,Ar=this._api,rr=this._zr,pr=this._coordSysMgr,tn=this._scheduler;if(!Bt)return;tn.restoreData(Bt,ot),tn.performSeriesTasks(Bt),pr.create(Bt,Ar),tn.performDataProcessorTasks(Bt,ot),Ce(this,Bt),pr.update(Bt,Ar),gt(Bt),tn.performVisualTasks(Bt,ot),qe(this,Bt,Ar,ot);var hn=Bt.get("backgroundColor")||"transparent";if(g.canvasSupported)rr.setBackgroundColor(hn);else{var Mn=S.parse(hn);hn=S.stringify(Mn,"rgb"),Mn[3]===0&&(hn="transparent")}$e(Bt,Ar)},updateTransform:function(ot){var Bt=this._model,Ar=this,rr=this._api;if(!Bt)return;var pr=[];Bt.eachComponent(function(hn,Mn){var Xn=Ar.getViewOfComponentModel(Mn);if(Xn&&Xn.__alive)if(Xn.updateTransform){var si=Xn.updateTransform(Mn,Bt,rr,ot);si&&si.update&&pr.push(Xn)}else pr.push(Xn)});var tn=A.createHashMap();Bt.eachSeries(function(hn){var Mn=Ar._chartsMap[hn.__viewId];if(Mn.updateTransform){var Xn=Mn.updateTransform(hn,Bt,rr,ot);Xn&&Xn.update&&tn.set(hn.uid,1)}else tn.set(hn.uid,1)}),gt(Bt),this._scheduler.performVisualTasks(Bt,ot,{setDirty:!0,dirtyMap:tn}),Ot(Ar,Bt,rr,ot,tn),$e(Bt,this._api)},updateView:function(ot){var Bt=this._model;if(!Bt)return;u.markUpdateMethod(ot,"updateView"),gt(Bt),this._scheduler.performVisualTasks(Bt,ot,{setDirty:!0}),qe(this,this._model,this._api,ot),$e(Bt,this._api)},updateVisual:function(ot){Y.update.call(this,ot)},updateLayout:function(ot){Y.update.call(this,ot)}};function me(ot){var Bt=ot._model,Ar=ot._scheduler;Ar.restorePipelines(Bt),Ar.prepareStageTasks(),Ge(ot,"component",Bt,Ar),Ge(ot,"chart",Bt,Ar),Ar.plan()}function ue(ot,Bt,Ar,rr,pr){var tn=ot._model;if(!rr){N(ot._componentsViews.concat(ot._chartsViews),si);return}var hn={};hn[rr+"Id"]=Ar[rr+"Id"],hn[rr+"Index"]=Ar[rr+"Index"],hn[rr+"Name"]=Ar[rr+"Name"];var Mn={mainType:rr,query:hn};pr&&(Mn.subType=pr);var Xn=Ar.excludeSeriesId;Xn!=null&&(Xn=A.createHashMap(p.normalizeToArray(Xn))),tn&&tn.eachComponent(Mn,function(vi){(!Xn||Xn.get(vi.id)==null)&&si(ot[rr==="series"?"_chartsMap":"_componentsMap"][vi.__viewId])},ot);function si(vi){vi&&vi.__alive&&vi[Bt]&&vi[Bt](vi.__model,tn,ot._api,Ar)}}Q.resize=function(ot){if(this._disposed){Ht(this.id);return}this._zr.resize(ot);var Bt=this._model;if(this._loadingFX&&this._loadingFX.resize(),!Bt)return;var Ar=Bt.resetOption("media"),rr=ot&&ot.silent;this[fe]=!0,Ar&&me(this),Y.update.call(this),this[fe]=!1,ce.call(this,rr),Ae.call(this,rr)};function Ce(ot,Bt){var Ar=ot._chartsMap,rr=ot._scheduler;Bt.eachSeries(function(pr){rr.updateStreamModes(pr,Ar[pr.__viewId])})}Q.showLoading=function(ot,Bt){if(this._disposed){Ht(this.id);return}if(R(ot)&&(Bt=ot,ot=""),ot=ot||"default",this.hideLoading(),!_t[ot])return;var Ar=_t[ot](this._api,Bt),rr=this._zr;this._loadingFX=Ar,rr.add(Ar)},Q.hideLoading=function(){if(this._disposed){Ht(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},Q.makeActionFromEvent=function(ot){var Bt=A.extend({},ot);return Bt.type=Be[ot.type],Bt},Q.dispatchAction=function(ot,Bt){if(this._disposed){Ht(this.id);return}if(R(Bt)||(Bt={silent:!!Bt}),!X[ot.type])return;if(!this._model)return;if(this[fe]){this._pendingActions.push(ot);return}Ie.call(this,ot,Bt.silent),Bt.flush?this._zr.flush(!0):Bt.flush!==!1&&g.browser.weChat&&this._throttledZrFlush(),ce.call(this,Bt.silent),Ae.call(this,Bt.silent)};function Ie(ot,Bt){var Ar=ot.type,rr=ot.escapeConnect,pr=X[Ar],tn=pr.actionInfo,hn=(tn.update||"update").split(":"),Mn=hn.pop();hn=hn[0]!=null&&k(hn[0]),this[fe]=!0;var Xn=[ot],si=!1;ot.batch&&(si=!0,Xn=A.map(ot.batch,function(Qe){return Qe=A.defaults(A.extend({},Qe),ot),Qe.batch=null,Qe}));var vi=[],xi,_i=Ar==="highlight"||Ar==="downplay";N(Xn,function(Qe){xi=pr.action(Qe,this._model,this._api),xi=xi||A.extend({},Qe),xi.type=tn.event||xi.type,vi.push(xi),_i?ue(this,Mn,Qe,"series"):hn&&ue(this,Mn,Qe,hn.main,hn.sub)},this),Mn!=="none"&&!_i&&!hn&&(this[ke]?(me(this),Y.update.call(this,ot),this[ke]=!1):Y[Mn].call(this,ot)),si?xi={type:tn.event||Ar,escapeConnect:rr,batch:vi}:xi=vi[0],this[fe]=!1,!Bt&&this._messageCenter.trigger(xi.type,xi)}function ce(ot){for(var Bt=this._pendingActions;Bt.length;){var Ar=Bt.shift();Ie.call(this,Ar,ot)}}function Ae(ot){!ot&&this.trigger("updated")}function Te(ot,Bt){ot.on("rendered",function(){Bt.trigger("rendered"),ot.animation.isFinished()&&!Bt[ke]&&!Bt._scheduler.unfinished&&!Bt._pendingActions.length&&Bt.trigger("finished")})}Q.appendData=function(ot){if(this._disposed){Ht(this.id);return}var Bt=ot.seriesIndex,Ar=this.getModel(),rr=Ar.getSeriesByIndex(Bt);rr.appendData(ot),this._scheduler.unfinished=!0},Q.on=te("on",!1),Q.off=te("off",!1),Q.one=te("one",!1);function Ge(ot,Bt,Ar,rr){for(var pr=Bt==="component",tn=pr?ot._componentsViews:ot._chartsViews,hn=pr?ot._componentsMap:ot._chartsMap,Mn=ot._zr,Xn=ot._api,si=0;si<tn.length;si++)tn[si].__alive=!1;pr?Ar.eachComponent(function(_i,Qe){_i!=="series"&&vi(Qe)}):Ar.eachSeries(vi);function vi(_i){var Qe="_ec_"+_i.id+"_"+_i.type,we=hn[Qe];if(!we){var Ne=k(_i.type),Fe=pr?s.getClass(Ne.main,Ne.sub):u.getClass(Ne.sub);we=new Fe,we.init(Ar,Xn),hn[Qe]=we,tn.push(we),Mn.add(we.group)}_i.__viewId=we.__id=Qe,we.__alive=!0,we.__model=_i,we.group.__ecComponentInfo={mainType:_i.mainType,index:_i.componentIndex},!pr&&rr.prepareView(we,_i,Ar,Xn)}for(var si=0;si<tn.length;){var xi=tn[si];xi.__alive?si++:(!pr&&xi.renderTask.dispose(),Mn.remove(xi.group),xi.dispose(Ar,Xn),tn.splice(si,1),delete hn[xi.__id],xi.__id=xi.group.__ecComponentInfo=null)}}function gt(ot){ot.clearColorPalette(),ot.eachSeries(function(Bt){Bt.clearColorPalette()})}function qe(ot,Bt,Ar,rr){Le(ot,Bt,Ar,rr),N(ot._chartsViews,function(pr){pr.__alive=!1}),Ot(ot,Bt,Ar,rr),N(ot._chartsViews,function(pr){pr.__alive||pr.remove(Bt,Ar)})}function Le(ot,Bt,Ar,rr,pr){N(pr||ot._componentsViews,function(tn){var hn=tn.__model;tn.render(hn,Bt,Ar,rr),Tt(hn,tn)})}function Ot(ot,Bt,Ar,rr,pr){var tn=ot._scheduler,hn;Bt.eachSeries(function(Mn){var Xn=ot._chartsMap[Mn.__viewId];Xn.__alive=!0;var si=Xn.renderTask;tn.updatePayload(si,rr),pr&&pr.get(Mn.uid)&&si.dirty(),hn|=si.perform(tn.getPerformArgs(si)),Xn.group.silent=!!Mn.get("silent"),Tt(Mn,Xn),Mt(Mn,Xn)}),tn.unfinished|=hn,tr(ot,Bt),E(ot._zr.dom,Bt)}function $e(ot,Bt){N(lt,function(Ar){Ar(ot,Bt)})}var xt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];Q._initEvents=function(){N(xt,function(ot){var Bt=function(Ar){var rr=this.getModel(),pr=Ar.target,tn,hn=ot==="globalout";if(hn)tn={};else if(pr&&pr.dataIndex!=null){var Mn=pr.dataModel||rr.getSeriesByIndex(pr.seriesIndex);tn=Mn&&Mn.getDataParams(pr.dataIndex,pr.dataType,pr)||{}}else pr&&pr.eventData&&(tn=A.extend({},pr.eventData));if(tn){var Xn=tn.componentType,si=tn.componentIndex;(Xn==="markLine"||Xn==="markPoint"||Xn==="markArea")&&(Xn="series",si=tn.seriesIndex);var vi=Xn&&si!=null&&rr.getComponent(Xn,si),xi=vi&&this[vi.mainType==="series"?"_chartsMap":"_componentsMap"][vi.__viewId];tn.event=Ar,tn.type=ot,this._ecEventProcessor.eventInfo={targetEl:pr,packedEvent:tn,model:vi,view:xi},this.trigger(ot,tn)}};Bt.zrEventfulCallAtLast=!0,this._zr.on(ot,Bt,this)},this),N(Be,function(ot,Bt){this._messageCenter.on(Bt,function(Ar){this.trigger(Bt,Ar)},this)},this)},Q.isDisposed=function(){return this._disposed},Q.clear=function(){if(this._disposed){Ht(this.id);return}this.setOption({series:[]},!0)},Q.dispose=function(){if(this._disposed){Ht(this.id);return}this._disposed=!0,p.setAttribute(this.getDom(),zt,"");var ot=this._api,Bt=this._model;N(this._componentsViews,function(Ar){Ar.dispose(Bt,ot)}),N(this._chartsViews,function(Ar){Ar.dispose(Bt,ot)}),this._zr.dispose(),delete ir[this.id]},A.mixin(ae,c);function Ht(ot){}function tr(ot,Bt){var Ar=ot._zr,rr=Ar.storage,pr=0;rr.traverse(function(tn){pr++}),pr>Bt.get("hoverLayerThreshold")&&!g.node&&Bt.eachSeries(function(tn){if(tn.preventUsingHoverLayer)return;var hn=ot._chartsMap[tn.__viewId];hn.__alive&&hn.group.traverse(function(Mn){Mn.useHoverLayer=!0})})}function Mt(ot,Bt){var Ar=ot.get("blendMode")||null;Bt.group.traverse(function(rr){rr.isGroup||rr.style.blend!==Ar&&rr.setStyle("blend",Ar),rr.eachPendingDisplayable&&rr.eachPendingDisplayable(function(pr){pr.setStyle("blend",Ar)})})}function Tt(ot,Bt){var Ar=ot.get("z"),rr=ot.get("zlevel");Bt.group.traverse(function(pr){pr.type!=="group"&&(Ar!=null&&(pr.z=Ar),rr!=null&&(pr.zlevel=rr))})}function Xe(ot){var Bt=ot._coordSysMgr;return A.extend(new r(ot),{getCoordinateSystems:A.bind(Bt.getCoordinateSystems,Bt),getComponentByElement:function(Ar){for(;Ar;){var rr=Ar.__ecComponentInfo;if(rr!=null)return ot._model.getComponent(rr.mainType,rr.index);Ar=Ar.parent}}})}function oe(){this.eventInfo}oe.prototype={constructor:oe,normalizeQuery:function(ot){var Bt={},Ar={},rr={};if(A.isString(ot)){var pr=k(ot);Bt.mainType=pr.main||null,Bt.subType=pr.sub||null}else{var tn=["Index","Name","Id"],hn={name:1,dataIndex:1,dataType:1};A.each(ot,function(Mn,Xn){for(var si=!1,vi=0;vi<tn.length;vi++){var xi=tn[vi],_i=Xn.lastIndexOf(xi);if(_i>0&&_i===Xn.length-xi.length){var Qe=Xn.slice(0,_i);Qe!=="data"&&(Bt.mainType=Qe,Bt[xi.toLowerCase()]=Mn,si=!0)}}hn.hasOwnProperty(Xn)&&(Ar[Xn]=Mn,si=!0),si||(rr[Xn]=Mn)})}return{cptQuery:Bt,dataQuery:Ar,otherQuery:rr}},filter:function(ot,Bt,Ar){var rr=this.eventInfo;if(!rr)return!0;var pr=rr.targetEl,tn=rr.packedEvent,hn=rr.model,Mn=rr.view;if(!hn||!Mn)return!0;var Xn=Bt.cptQuery,si=Bt.dataQuery;return vi(Xn,hn,"mainType")&&vi(Xn,hn,"subType")&&vi(Xn,hn,"index","componentIndex")&&vi(Xn,hn,"name")&&vi(Xn,hn,"id")&&vi(si,tn,"name")&&vi(si,tn,"dataIndex")&&vi(si,tn,"dataType")&&(!Mn.filterForExposedEvent||Mn.filterForExposedEvent(ot,Bt.otherQuery,pr,tn));function vi(xi,_i,Qe,we){return xi[Qe]==null||_i[we||Qe]===xi[Qe]}},afterTrigger:function(){this.eventInfo=null}};var X={},Be={},Ee=[],ee=[],lt=[],Ct=[],dt={},_t={},ir={},$r={},nr=new Date-0,lr=new Date-0,zt="_echarts_instance_";function Ut(ot){var Bt=0,Ar=1,rr=2,pr="__connectUpdateStatus";function tn(hn,Mn){for(var Xn=0;Xn<hn.length;Xn++){var si=hn[Xn];si[pr]=Mn}}N(Be,function(hn,Mn){ot._messageCenter.on(Mn,function(Xn){if($r[ot.group]&&ot[pr]!==Bt){if(Xn&&Xn.escapeConnect)return;var si=ot.makeActionFromEvent(Xn),vi=[];N(ir,function(xi){xi!==ot&&xi.group===ot.group&&vi.push(xi)}),tn(vi,Bt),N(vi,function(xi){xi[pr]!==Ar&&xi.dispatchAction(si)}),tn(vi,rr)}})})}function st(ot,Bt,Ar){var rr=Mi(ot);if(rr)return rr;var pr=new ae(ot,Bt,Ar);return pr.id="ec_"+nr++,ir[pr.id]=pr,p.setAttribute(ot,zt,pr.id),Ut(pr),pr}function Hr(ot){if(A.isArray(ot)){var Bt=ot;ot=null,N(Bt,function(Ar){Ar.group!=null&&(ot=Ar.group)}),ot=ot||"g_"+lr++,N(Bt,function(Ar){Ar.group=ot})}return $r[ot]=!0,ot}function mn(ot){$r[ot]=!1}var In=mn;function Yn(ot){typeof ot=="string"?ot=ir[ot]:ot instanceof ae||(ot=Mi(ot)),ot instanceof ae&&!ot.isDisposed()&&ot.dispose()}function Mi(ot){return ir[p.getAttribute(ot,zt)]}function wn(ot){return ir[ot]}function Rn(ot,Bt){dt[ot]=Bt}function kt(ot){ee.push(ot)}function vt(ot,Bt){bt(Ee,ot,Bt,j)}function Re(ot){lt.push(ot)}function Ke(ot,Bt,Ar){typeof Bt=="function"&&(Ar=Bt,Bt="");var rr=R(ot)?ot.type:[ot,ot={event:Bt}][0];ot.event=(ot.event||rr).toLowerCase(),Bt=ot.event,L(se.test(rr)&&se.test(Bt)),X[rr]||(X[rr]={action:Ar,actionInfo:ot}),Be[Bt]=rr}function Pe(ot,Bt){i.register(ot,Bt)}function nt(ot){var Bt=i.get(ot);if(Bt)return Bt.getDimensionsInfo?Bt.getDimensionsInfo():Bt.dimensions.slice()}function yt(ot,Bt){bt(Ct,ot,Bt,J,"layout")}function Dt(ot,Bt){bt(Ct,ot,Bt,ie,"visual")}function bt(ot,Bt,Ar,rr,pr){(D(Bt)||R(Bt))&&(Ar=Bt,Bt=rr);var tn=b.wrapStageHandler(Ar,pr);return tn.__prio=Bt,tn.__raw=Ar,ot.push(tn),tn}function It(ot,Bt){_t[ot]=Bt}function gr(ot){return t.extend(ot)}function kr(ot){return s.extend(ot)}function wt(ot){return a.extend(ot)}function rt(ot){return u.extend(ot)}function tt(ot){A.$override("createCanvas",ot)}function Rt(ot,Bt,Ar){I.registerMap(ot,Bt,Ar)}function Ft(ot){var Bt=I.retrieveMap(ot);return Bt&&Bt[0]&&{geoJson:Bt[0].geoJSON,specialAreas:Bt[0].specialAreas}}Dt(de,y),kt(e),vt(V,l),It("default",T),Ke({type:"highlight",event:"highlight",update:"highlight"},A.noop),Ke({type:"downplay",event:"downplay",update:"downplay"},A.noop),Rn("light",w),Rn("dark",_);var At={};F.version=M,F.dependencies=U,F.PRIORITY=Ue,F.init=st,F.connect=Hr,F.disConnect=mn,F.disconnect=In,F.dispose=Yn,F.getInstanceByDom=Mi,F.getInstanceById=wn,F.registerTheme=Rn,F.registerPreprocessor=kt,F.registerProcessor=vt,F.registerPostUpdate=Re,F.registerAction=Ke,F.registerCoordinateSystem=Pe,F.getCoordinateSystemDimensions=nt,F.registerLayout=yt,F.registerVisual=Dt,F.registerLoading=It,F.extendComponentModel=gr,F.extendComponentView=kr,F.extendSeriesModel=wt,F.extendChartView=rt,F.setCanvasCreator=tt,F.registerMap=Rt,F.getMap=Ft,F.dataTool=At;var Wt=d("txkQ");(function(){for(var ot in Wt)Wt.hasOwnProperty(ot)&&(F[ot]=Wt[ot])})()},Pw59:function(H,F,d){"use strict";var O=d("q1tI"),x=d.n(O),C=Object(O.createContext)({});F.a=C},Q7if:function(H,F,d){var O=d("JEkh"),x=O.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"}}}});H.exports=x},Q9mQ:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("UADf"),A=d.n(C)},"QB+1":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("Ywus"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},QBsz:function(H,F){var d=typeof Float32Array=="undefined"?Array:Float32Array;function O(b,w){var _=new d(2);return b==null&&(b=0),w==null&&(w=0),_[0]=b,_[1]=w,_}function x(b,w){return b[0]=w[0],b[1]=w[1],b}function C(b){var w=new d(2);return w[0]=b[0],w[1]=b[1],w}function A(b,w,_){return b[0]=w,b[1]=_,b}function S(b,w,_){return b[0]=w[0]+_[0],b[1]=w[1]+_[1],b}function g(b,w,_,I){return b[0]=w[0]+_[0]*I,b[1]=w[1]+_[1]*I,b}function f(b,w,_){return b[0]=w[0]-_[0],b[1]=w[1]-_[1],b}function c(b){return Math.sqrt(r(b))}var o=c;function r(b){return b[0]*b[0]+b[1]*b[1]}var i=r;function n(b,w,_){return b[0]=w[0]*_[0],b[1]=w[1]*_[1],b}function e(b,w,_){return b[0]=w[0]/_[0],b[1]=w[1]/_[1],b}function l(b,w){return b[0]*w[0]+b[1]*w[1]}function t(b,w,_){return b[0]=w[0]*_,b[1]=w[1]*_,b}function a(b,w){var _=c(w);return _===0?(b[0]=0,b[1]=0):(b[0]=w[0]/_,b[1]=w[1]/_),b}function s(b,w){return Math.sqrt((b[0]-w[0])*(b[0]-w[0])+(b[1]-w[1])*(b[1]-w[1]))}var u=s;function h(b,w){return(b[0]-w[0])*(b[0]-w[0])+(b[1]-w[1])*(b[1]-w[1])}var p=h;function m(b,w){return b[0]=-w[0],b[1]=-w[1],b}function v(b,w,_,I){return b[0]=w[0]+I*(_[0]-w[0]),b[1]=w[1]+I*(_[1]-w[1]),b}function y(b,w,_){var I=w[0],L=w[1];return b[0]=_[0]*I+_[2]*L+_[4],b[1]=_[1]*I+_[3]*L+_[5],b}function E(b,w,_){return b[0]=Math.min(w[0],_[0]),b[1]=Math.min(w[1],_[1]),b}function T(b,w,_){return b[0]=Math.max(w[0],_[0]),b[1]=Math.max(w[1],_[1]),b}F.create=O,F.copy=x,F.clone=C,F.set=A,F.add=S,F.scaleAndAdd=g,F.sub=f,F.len=c,F.length=o,F.lenSquare=r,F.lengthSquare=i,F.mul=n,F.div=e,F.dot=l,F.scale=t,F.normalize=a,F.distance=s,F.dist=u,F.distanceSquare=h,F.distSquare=p,F.negate=m,F.lerp=v,F.applyTransform=y,F.min=E,F.max=T},"QO+J":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.createSensor=void 0;var O=C(d("NohK")),x=d("24YM");function C(S){return S&&S.__esModule?S:{default:S}}var A=function(g){var f=void 0,c=[],o=function(){getComputedStyle(g).position==="static"&&(g.style.position="relative");var t=document.createElement("object");return t.onload=function(){t.contentDocument.defaultView.addEventListener("resize",r),r()},t.style.display="block",t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.height="100%",t.style.width="100%",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex="-1",t.style.opacity="0",t.setAttribute("class",x.SensorClassName),t.setAttribute("tabindex",x.SensorTabIndex),t.type="text/html",g.appendChild(t),t.data="about:blank",t},r=(0,O.default)(function(){c.forEach(function(l){l(g)})}),i=function(t){f||(f=o()),c.indexOf(t)===-1&&c.push(t)},n=function(){f&&f.parentNode&&(f.contentDocument&&f.contentDocument.defaultView.removeEventListener("resize",r),f.parentNode.removeChild(f),f=void 0,c=[])},e=function(t){var a=c.indexOf(t);a!==-1&&c.splice(a,1),c.length===0&&f&&n()};return{element:g,bind:i,destroy:n,unbind:e}};F.createSensor=A},"QQZ/":function(H,F,d){var O=d("Sq3C"),x=d("Z1HP"),C=d("Sxd8"),A=d("dt0z");function S(g,f,c){g=A(g),f=C(f);var o=f?x(g):0;return f&&o<f?O(f-o,c)+g:g}H.exports=S},QUw5:function(H,F,d){var O=d("OlYY"),x=O.extend({type:"dataZoom.select"});H.exports=x},QV2g:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=O;function O(){for(var A,S=[],g=0;g<256;g++){A=g;for(var f=0;f<8;f++)A=A&1?3988292384^A>>>1:A>>>1;S[g]=A}return S}var x=O();function C(A,S,g,f){var c=x,o=f+g;A^=-1;for(var r=f;r<o;r++)A=A>>>8^c[(A^S[r])&255];return A^-1}},QbM5:function(H,F,d){},Qe9p:function(H,F,d){var O=d("1RvN"),x={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 C(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 S(w){return w<0?0:w>1?1:w}function g(w){return w.length&&w.charAt(w.length-1)==="%"?C(parseFloat(w)/100*255):C(parseInt(w,10))}function f(w){return w.length&&w.charAt(w.length-1)==="%"?S(parseFloat(w)/100):S(parseFloat(w))}function c(w,_,I){return I<0?I+=1:I>1&&(I-=1),I*6<1?w+(_-w)*I*6:I*2<1?_:I*3<2?w+(_-w)*(2/3-I)*6:w}function o(w,_,I){return w+(_-w)*I}function r(w,_,I,L,N){return w[0]=_,w[1]=I,w[2]=L,w[3]=N,w}function i(w,_){return w[0]=_[0],w[1]=_[1],w[2]=_[2],w[3]=_[3],w}var n=new O(20),e=null;function l(w,_){e&&i(e,_),e=n.put(w,e||_.slice())}function t(w,_){if(!w)return;_=_||[];var I=n.get(w);if(I)return i(_,I);w=w+"";var L=w.replace(/ /g,"").toLowerCase();if(L in x)return i(_,x[L]),l(w,_),_;if(L.charAt(0)==="#"){if(L.length===4){var N=parseInt(L.substr(1),16);if(!(N>=0&&N<=4095)){r(_,0,0,0,1);return}return r(_,(N&3840)>>4|(N&3840)>>8,N&240|(N&240)>>4,N&15|(N&15)<<4,1),l(w,_),_}else if(L.length===7){var N=parseInt(L.substr(1),16);if(!(N>=0&&N<=16777215)){r(_,0,0,0,1);return}return r(_,(N&16711680)>>16,(N&65280)>>8,N&255,1),l(w,_),_}return}var D=L.indexOf("("),R=L.indexOf(")");if(D!==-1&&R+1===L.length){var k=L.substr(0,D),M=L.substr(D+1,R-(D+1)).split(","),U=1;switch(k){case"rgba":if(M.length!==4){r(_,0,0,0,1);return}U=f(M.pop());case"rgb":if(M.length!==3){r(_,0,0,0,1);return}return r(_,g(M[0]),g(M[1]),g(M[2]),U),l(w,_),_;case"hsla":if(M.length!==4){r(_,0,0,0,1);return}return M[3]=f(M[3]),a(M,_),l(w,_),_;case"hsl":if(M.length!==3){r(_,0,0,0,1);return}return a(M,_),l(w,_),_;default:return}}r(_,0,0,0,1);return}function a(w,_){var I=(parseFloat(w[0])%360+360)%360/360,L=f(w[1]),N=f(w[2]),D=N<=.5?N*(L+1):N+L-N*L,R=N*2-D;return _=_||[],r(_,C(c(R,D,I+1/3)*255),C(c(R,D,I)*255),C(c(R,D,I-1/3)*255),1),w.length===4&&(_[3]=w[3]),_}function s(w){if(!w)return;var _=w[0]/255,I=w[1]/255,L=w[2]/255,N=Math.min(_,I,L),D=Math.max(_,I,L),R=D-N,k=(D+N)/2,M,U;if(R===0)M=0,U=0;else{k<.5?U=R/(D+N):U=R/(2-D-N);var B=((D-_)/6+R/2)/R,j=((D-I)/6+R/2)/R,W=((D-L)/6+R/2)/R;_===D?M=W-j:I===D?M=1/3+B-W:L===D&&(M=2/3+j-B),M<0&&(M+=1),M>1&&(M-=1)}var V=[M*360,U,k];return w[3]!=null&&V.push(w[3]),V}function u(w,_){var I=t(w);if(I){for(var L=0;L<3;L++)_<0?I[L]=I[L]*(1-_)|0:I[L]=(255-I[L])*_+I[L]|0,I[L]>255?I[L]=255:w[L]<0&&(I[L]=0);return b(I,I.length===4?"rgba":"rgb")}}function h(w){var _=t(w);if(_)return((1<<24)+(_[0]<<16)+(_[1]<<8)+ +_[2]).toString(16).slice(1)}function p(w,_,I){if(!(_&&_.length)||!(w>=0&&w<=1))return;I=I||[];var L=w*(_.length-1),N=Math.floor(L),D=Math.ceil(L),R=_[N],k=_[D],M=L-N;return I[0]=C(o(R[0],k[0],M)),I[1]=C(o(R[1],k[1],M)),I[2]=C(o(R[2],k[2],M)),I[3]=S(o(R[3],k[3],M)),I}var m=p;function v(w,_,I){if(!(_&&_.length)||!(w>=0&&w<=1))return;var L=w*(_.length-1),N=Math.floor(L),D=Math.ceil(L),R=t(_[N]),k=t(_[D]),M=L-N,U=b([C(o(R[0],k[0],M)),C(o(R[1],k[1],M)),C(o(R[2],k[2],M)),S(o(R[3],k[3],M))],"rgba");return I?{color:U,leftIndex:N,rightIndex:D,value:L}:U}var y=v;function E(w,_,I,L){if(w=t(w),w)return w=s(w),_!=null&&(w[0]=A(_)),I!=null&&(w[1]=f(I)),L!=null&&(w[2]=f(L)),b(a(w),"rgba")}function T(w,_){if(w=t(w),w&&_!=null)return w[3]=S(_),b(w,"rgba")}function b(w,_){if(!w||!w.length)return;var I=w[0]+","+w[1]+","+w[2];return(_==="rgba"||_==="hsva"||_==="hsla")&&(I+=","+w[3]),_+"("+I+")"}F.parse=t,F.lift=u,F.toHex=h,F.fastLerp=p,F.fastMapToColor=m,F.lerp=v,F.mapToColor=y,F.modifyHSL=E,F.modifyAlpha=T,F.stringify=b},Qi1f:function(H,F,d){"use strict";d.d(F,"g",function(){return s}),d.d(F,"c",function(){return u}),d.d(F,"a",function(){return p}),d.d(F,"b",function(){return m}),d.d(F,"d",function(){return v}),d.d(F,"e",function(){return y}),d.d(F,"f",function(){return T});var O=d("VTBJ"),x=d("U8pU"),C=d("AJpP"),A=d("q1tI"),S=d.n(A),g=d("Kwbf"),f=d("MNnm"),c="rc-util-key";function o(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=b.mark;return w?w.startsWith("data-")?w:"data-".concat(w):c}function r(b){if(b.attachTo)return b.attachTo;var w=document.querySelector("head");return w||document.body}function i(b){var w,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(f.a)())return null;var I=document.createElement("style");if((w=_.csp)===null||w===void 0?void 0:w.nonce){var L;I.nonce=(L=_.csp)===null||L===void 0?void 0:L.nonce}I.innerHTML=b;var N=r(_),D=N.firstChild;return _.prepend&&N.prepend?N.prepend(I):_.prepend&&D?N.insertBefore(I,D):N.appendChild(I),I}var n=new Map;function e(b){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=r(w);return Array.from(n.get(_).children).find(function(I){return I.tagName==="STYLE"&&I.getAttribute(o(w))===b})}function l(b){var w,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=e(b,_);I==null||((w=I.parentNode)===null||w===void 0)||w.removeChild(I)}function t(b,w){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I=r(_);if(!n.has(I)){var L=i("",_),N=L.parentNode;n.set(I,N),N.removeChild(L)}var D=e(w,_);if(D){var R,k;if(((R=_.csp)===null||R===void 0?void 0:R.nonce)&&D.nonce!==((k=_.csp)===null||k===void 0?void 0:k.nonce)){var M;D.nonce=(M=_.csp)===null||M===void 0?void 0:M.nonce}return D.innerHTML!==b&&(D.innerHTML=b),D}var U=i(b,_);return U.setAttribute(o(_),w),U}var a=d("Pw59");function s(b,w){Object(g.a)(b,"[@ant-design/icons] ".concat(w))}function u(b){return Object(x.a)(b)==="object"&&typeof b.name=="string"&&typeof b.theme=="string"&&(Object(x.a)(b.icon)==="object"||typeof b.icon=="function")}function h(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(b).reduce(function(w,_){var I=b[_];switch(_){case"class":w.className=I,delete w.class;break;default:w[_]=I}return w},{})}function p(b,w,_){return _?S.a.createElement(b.tag,Object(O.a)(Object(O.a)({key:w},h(b.attrs)),_),(b.children||[]).map(function(I,L){return p(I,"".concat(w,"-").concat(b.tag,"-").concat(L))})):S.a.createElement(b.tag,Object(O.a)({key:w},h(b.attrs)),(b.children||[]).map(function(I,L){return p(I,"".concat(w,"-").concat(b.tag,"-").concat(L))}))}function m(b){return Object(C.generate)(b)[0]}function v(b){return b?Array.isArray(b)?b:[b]:[]}var y={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},E=`
|
|
|
.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);
|
|
|
}
|
|
|
}
|
|
|
`,T=function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:E,_=Object(A.useContext)(a.a),I=_.csp;Object(A.useEffect)(function(){t(w,"@ant-design-icons",{prepend:!0,csp:I})},[])}},Qs3X:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("X+im"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},Qs9O:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},QuXc:function(H,F){var d=function(C){this.colorStops=C||[]};d.prototype={constructor:d,addColorStop:function(C,A){this.colorStops.push({offset:C,color:A})}};var O=d;H.exports=O},Qvb6:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("ItGF"),A=d("B9fm"),S=d("gvm7"),g=d("7aKB"),f=d("OELB"),c=d("IwbS"),o=d("Ez2D"),r=d("+TT/"),i=d("Qxkt"),n=d("F9bG"),e=d("aX7z"),l=d("/y7N"),t=d("4NO4"),a=t.getTooltipRenderMode,s=x.bind,u=x.each,h=f.parsePercent,p=new c.Rect({shape:{x:-1,y:-1,width:2,height:2}}),m=O.extendComponentView({type:"tooltip",init:function(_,I){if(C.node)return;var L=_.getComponent("tooltip"),N=L.get("renderMode");this._renderMode=a(N);var D;this._renderMode==="html"?(D=new A(I.getDom(),I,{appendToBody:L.get("appendToBody",!0)}),this._newLine="<br/>"):(D=new S(I),this._newLine=`
|
|
|
`),this._tooltipContent=D},render:function(_,I,L){if(C.node)return;this.group.removeAll(),this._tooltipModel=_,this._ecModel=I,this._api=L,this._lastDataByCoordSys=null,this._alwaysShowContent=_.get("alwaysShowContent");var N=this._tooltipContent;N.update(),N.setEnterable(_.get("enterable")),this._initGlobalListener(),this._keepShow()},_initGlobalListener:function(){var _=this._tooltipModel,I=_.get("triggerOn");n.register("itemTooltip",this._api,s(function(L,N,D){I!=="none"&&(I.indexOf(L)>=0?this._tryShow(N,D):L==="leave"&&this._hide(D))},this))},_keepShow:function(){var _=this._tooltipModel,I=this._ecModel,L=this._api;if(this._lastX!=null&&this._lastY!=null&&_.get("triggerOn")!=="none"){var N=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!L.isDisposed()&&N.manuallyShowTip(_,I,L,{x:N._lastX,y:N._lastY})})}},manuallyShowTip:function(_,I,L,N){if(N.from===this.uid||C.node)return;var D=y(N,L);this._ticket="";var R=N.dataByCoordSys;if(N.tooltip&&N.x!=null&&N.y!=null){var k=p;k.position=[N.x,N.y],k.update(),k.tooltip=N.tooltip,this._tryShow({offsetX:N.x,offsetY:N.y,target:k},D)}else if(R)this._tryShow({offsetX:N.x,offsetY:N.y,position:N.position,dataByCoordSys:N.dataByCoordSys,tooltipOption:N.tooltipOption},D);else if(N.seriesIndex!=null){if(this._manuallyAxisShowTip(_,I,L,N))return;var M=o(N,I),U=M.point[0],B=M.point[1];U!=null&&B!=null&&this._tryShow({offsetX:U,offsetY:B,position:N.position,target:M.el},D)}else N.x!=null&&N.y!=null&&(L.dispatchAction({type:"updateAxisPointer",x:N.x,y:N.y}),this._tryShow({offsetX:N.x,offsetY:N.y,position:N.position,target:L.getZr().findHover(N.x,N.y).target},D))},manuallyHideTip:function(_,I,L,N){var D=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&D.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,N.from!==this.uid&&this._hide(y(N,L))},_manuallyAxisShowTip:function(_,I,L,N){var D=N.seriesIndex,R=N.dataIndex,k=I.getComponent("axisPointer").coordSysAxesInfo;if(D==null||R==null||k==null)return;var M=I.getSeriesByIndex(D);if(!M)return;var U=M.getData(),_=v([U.getItemModel(R),M,(M.coordinateSystem||{}).model,_]);return _.get("trigger")!=="axis"?void 0:(L.dispatchAction({type:"updateAxisPointer",seriesIndex:D,dataIndex:R,position:N.position}),!0)},_tryShow:function(_,I){var L=_.target,N=this._tooltipModel;if(!N)return;this._lastX=_.offsetX,this._lastY=_.offsetY;var D=_.dataByCoordSys;D&&D.length?this._showAxisTooltip(D,_):L&&L.dataIndex!=null?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(_,L,I)):L&&L.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(_,L,I)):(this._lastDataByCoordSys=null,this._hide(I))},_showOrMove:function(_,I){var L=_.get("showDelay");I=x.bind(I,this),clearTimeout(this._showTimout),L>0?this._showTimout=setTimeout(I,L):I()},_showAxisTooltip:function(_,I){var L=this._ecModel,N=this._tooltipModel,D=[I.offsetX,I.offsetY],R=[],k=[],M=v([I.tooltipOption,N]),U=this._renderMode,B=this._newLine,j={};u(_,function(V){u(V.dataByAxis,function(z){var J=L.getComponent(z.axisDim+"Axis",z.axisIndex),Z=z.value,de=[];if(!J||Z==null)return;var ie=l.getValueLabel(Z,J.axis,L,z.seriesDataIndices,z.valueLabelOpt);x.each(z.seriesDataIndices,function(xe){var _e=L.getSeriesByIndex(xe.seriesIndex),Ue=xe.dataIndexInside,fe=_e&&_e.getDataParams(Ue);if(fe.axisDim=z.axisDim,fe.axisIndex=z.axisIndex,fe.axisType=z.axisType,fe.axisId=z.axisId,fe.axisValue=e.getAxisRawValue(J.axis,Z),fe.axisValueLabel=ie,fe){k.push(fe);var ke=_e.formatTooltip(Ue,!0,null,U),se;if(x.isObject(ke)){se=ke.html;var te=ke.markers;x.merge(j,te)}else se=ke;de.push(se)}});var ve=ie;U!=="html"?R.push(de.join(B)):R.push((ve?g.encodeHTML(ve)+B:"")+de.join(B))})},this),R.reverse(),R=R.join(this._newLine+this._newLine);var W=I.position;this._showOrMove(M,function(){this._updateContentNotChangedOnAxis(_)?this._updatePosition(M,W,D[0],D[1],this._tooltipContent,k):this._showTooltipContent(M,R,k,Math.random(),D[0],D[1],W,void 0,j)})},_showSeriesItemTooltip:function(_,I,L){var N=this._ecModel,D=I.seriesIndex,R=N.getSeriesByIndex(D),k=I.dataModel||R,M=I.dataIndex,U=I.dataType,B=k.getData(U),j=v([B.getItemModel(M),k,R&&(R.coordinateSystem||{}).model,this._tooltipModel]),W=j.get("trigger");if(W!=null&&W!=="item")return;var V=k.getDataParams(M,U),z=k.formatTooltip(M,!1,U,this._renderMode),J,Z;x.isObject(z)?(J=z.html,Z=z.markers):(J=z,Z=null);var de="item_"+k.name+"_"+M;this._showOrMove(j,function(){this._showTooltipContent(j,J,V,de,_.offsetX,_.offsetY,_.position,_.target,Z)}),L({type:"showTip",dataIndexInside:M,dataIndex:B.getRawIndex(M),seriesIndex:D,from:this.uid})},_showComponentItemTooltip:function(_,I,L){var N=I.tooltip;if(typeof N=="string"){var D=N;N={content:D,formatter:D}}var R=new i(N,this._tooltipModel,this._ecModel),k=R.get("content"),M=Math.random();this._showOrMove(R,function(){this._showTooltipContent(R,k,R.get("formatterParams")||{},M,_.offsetX,_.offsetY,_.position,I)}),L({type:"showTip",from:this.uid})},_showTooltipContent:function(_,I,L,N,D,R,k,M,U){if(this._ticket="",!_.get("showContent")||!_.get("show"))return;var B=this._tooltipContent,j=_.get("formatter");k=k||_.get("position");var W=I;if(j&&typeof j=="string")W=g.formatTpl(j,L,!0);else if(typeof j=="function"){var V=s(function(z,J){z===this._ticket&&(B.setContent(J,U,_),this._updatePosition(_,k,D,R,B,L,M))},this);this._ticket=N,W=j(L,N,V)}B.setContent(W,U,_),B.show(_),this._updatePosition(_,k,D,R,B,L,M)},_updatePosition:function(_,I,L,N,D,R,k){var M=this._api.getWidth(),U=this._api.getHeight();I=I||_.get("position");var B=D.getSize(),j=_.get("align"),W=_.get("verticalAlign"),V=k&&k.getBoundingRect().clone();if(k&&V.applyTransform(k.transform),typeof I=="function"&&(I=I([L,N],R,D.el,V,{viewSize:[M,U],contentSize:B.slice()})),x.isArray(I))L=h(I[0],M),N=h(I[1],U);else if(x.isObject(I)){I.width=B[0],I.height=B[1];var z=r.getLayoutRect(I,{width:M,height:U});L=z.x,N=z.y,j=null,W=null}else if(typeof I=="string"&&k){var J=b(I,V,B);L=J[0],N=J[1]}else{var J=E(L,N,D,M,U,j?null:20,W?null:20);L=J[0],N=J[1]}if(j&&(L-=w(j)?B[0]/2:j==="right"?B[0]:0),W&&(N-=w(W)?B[1]/2:W==="bottom"?B[1]:0),_.get("confine")){var J=T(L,N,D,M,U);L=J[0],N=J[1]}D.moveTo(L,N)},_updateContentNotChangedOnAxis:function(_){var I=this._lastDataByCoordSys,L=!!I&&I.length===_.length;return L&&u(I,function(N,D){var R=N.dataByAxis||{},k=_[D]||{},M=k.dataByAxis||[];L&=R.length===M.length,L&&u(R,function(U,B){var j=M[B]||{},W=U.seriesDataIndices||[],V=j.seriesDataIndices||[];L&=U.value===j.value&&U.axisType===j.axisType&&U.axisId===j.axisId&&W.length===V.length,L&&u(W,function(z,J){var Z=V[J];L&=z.seriesIndex===Z.seriesIndex&&z.dataIndex===Z.dataIndex})})}),this._lastDataByCoordSys=_,!!L},_hide:function(_){this._lastDataByCoordSys=null,_({type:"hideTip",from:this.uid})},dispose:function(_,I){if(C.node)return;this._tooltipContent.dispose(),n.unregister("itemTooltip",I)}});function v(_){for(var I=_.pop();_.length;){var L=_.pop();L&&(i.isInstance(L)&&(L=L.get("tooltip",!0)),typeof L=="string"&&(L={formatter:L}),I=new i(L,I,I.ecModel))}return I}function y(_,I){return _.dispatchAction||x.bind(I.dispatchAction,I)}function E(_,I,L,N,D,R,k){var M=L.getOuterSize(),U=M.width,B=M.height;return R!=null&&(_+U+R>N?_-=U+R:_+=R),k!=null&&(I+B+k>D?I-=B+k:I+=k),[_,I]}function T(_,I,L,N,D){var R=L.getOuterSize(),k=R.width,M=R.height;return _=Math.min(_+k,N)-k,I=Math.min(I+M,D)-M,_=Math.max(_,0),I=Math.max(I,0),[_,I]}function b(_,I,L){var N=L[0],D=L[1],R=5,k=0,M=0,U=I.width,B=I.height;switch(_){case"inside":k=I.x+U/2-N/2,M=I.y+B/2-D/2;break;case"top":k=I.x+U/2-N/2,M=I.y-D-R;break;case"bottom":k=I.x+U/2-N/2,M=I.y+B+R;break;case"left":k=I.x-N-R,M=I.y+B/2-D/2;break;case"right":k=I.x+U+R,M=I.y+B/2-D/2}return[k,M]}function w(_){return _==="center"||_==="middle"}H.exports=m},Qxkt:function(H,F,d){var O=d("bYtY"),x=d("ItGF"),C=d("4NO4"),A=C.makeInner,S=d("Yl7c"),g=S.enableClassExtend,f=S.enableClassCheck,c=d("OQFs"),o=d("m9t5"),r=d("/iHx"),i=d("VR9l"),n=O.mixin,e=A();function l(u,h,p){this.parentModel=h,this.ecModel=p,this.option=u}l.prototype={constructor:l,init:null,mergeOption:function(u){O.merge(this.option,u,!0)},get:function(u,h){return u==null?this.option:t(this.option,this.parsePath(u),!h&&a(this,u))},getShallow:function(u,h){var p=this.option,m=p==null?p:p[u],v=!h&&a(this,u);return m==null&&v&&(m=v.getShallow(u)),m},getModel:function(u,h){var p=u==null?this.option:t(this.option,u=this.parsePath(u)),m;return h=h||(m=a(this,u))&&m.getModel(u),new l(p,h,this.ecModel)},isEmpty:function(){return this.option==null},restoreData:function(){},clone:function(){var u=this.constructor;return new u(O.clone(this.option))},setReadOnly:function(u){},parsePath:function(u){return typeof u=="string"&&(u=u.split(".")),u},customizeGetParent:function(u){e(this).getParent=u},isAnimationEnabled:function(){if(!x.node){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}};function t(u,h,p){for(var m=0;m<h.length;m++){if(!h[m])continue;if(u=u&&typeof u=="object"?u[h[m]]:null,u==null)break}return u==null&&p&&(u=p.get(h)),u}function a(u,h){var p=e(u).getParent;return p?p.call(u,h):u.parentModel}g(l),f(l),n(l,c),n(l,o),n(l,r),n(l,i);var s=l;H.exports=s},QyFq:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},QzjZ:function(H,F,d){var O=d("S/Yl"),x=d("IDmD");function C(A,S){var g=[];return A.eachComponent("singleAxis",function(f,c){var o=new O(f,A,S);o.name="single_"+c,o.resize(f,S),f.coordinateSystem=o,g.push(o)}),A.eachSeries(function(f){if(f.get("coordinateSystem")==="singleAxis"){var c=A.queryComponents({mainType:"singleAxis",index:f.get("singleAxisIndex"),id:f.get("singleAxisId")})[0];f.coordinateSystem=c&&c.coordinateSystem}}),g}x.register("single",{create:C,dimensions:O.prototype.dimensions})},R4Th:function(H,F,d){var O=d("ProS"),x=d("9wZj"),C=d("yO87"),A=d("Fofx"),S=d("h8O9"),g=O.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new x(C)},render:function(f,c,o){var r=f.getData(),i=this._symbolDraw;i.updateData(r),this.group.add(i.group)},updateTransform:function(f,c,o){var r=f.getData();this.group.dirty();var i=S().reset(f);i.progress&&i.progress({start:0,end:r.count()},r),this._symbolDraw.updateLayout(r)},_updateGroupTransform:function(f){var c=f.coordinateSystem;c&&c.getRoamTransform&&(this.group.transform=A.clone(c.getRoamTransform()),this.group.decomposeTransform())},remove:function(f,c){this._symbolDraw&&this._symbolDraw.remove(c)},dispose:function(){}});H.exports=g},R9oj:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("pwpV"),A=d.n(C)},RBEP:function(H,F,d){for(var O=d("ProS"),x=d("VaxA"),C=function(){},A=["treemapZoomToNode","treemapRender","treemapMove"],S=0;S<A.length;S++)O.registerAction({type:A[S],update:"updateView"},C);O.registerAction({type:"treemapRootToNode",update:"updateView"},function(g,f){f.eachComponent({mainType:"series",subType:"treemap",query:g},c);function c(o,r){var i=["treemapZoomToNode","treemapRootToNode"],n=x.retrieveTargetInfo(g,i,o);if(n){var e=o.getViewRoot();e&&(g.direction=x.aboveViewRoot(e,n.node)?"rollUp":"drillDown"),o.resetViewRoot(n.node)}}})},RCxd:function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="ExclamationCircleOutlined";var f=F.a=x.forwardRef(g)},RDYZ:function(H,F,d){var O=d("dMvE");function x(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}x.prototype={constructor:x,step:function(S,g){if(this._initialized||(this._startTime=S+this._delay,this._initialized=!0),this._paused){this._pausedTime+=g;return}var f=(S-this._startTime-this._pausedTime)/this._life;if(f<0)return;f=Math.min(f,1);var c=this.easing,o=typeof c=="string"?O[c]:c,r=typeof o=="function"?o(f):f;return this.fire("frame",r),f===1?this.loop?(this.restart(S),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(S){var g=(S-this._startTime-this._pausedTime)%this._life;this._startTime=S-g+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(S,g){S="on"+S,this[S]&&this[S](this._target,g)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var C=x;H.exports=C},RELg:function(H,F,d){var O=d("MFOe"),x=O.Global;H.exports={name:"oldIE-userDataStorage",write:f,read:c,each:o,remove:r,clearAll:i};var C="storejs",A=x.document,S=l(),g=(x.navigator?x.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function f(t,a){if(g)return;var s=e(t);S(function(u){u.setAttribute(s,a),u.save(C)})}function c(t){if(g)return;var a=e(t),s=null;return S(function(u){s=u.getAttribute(a)}),s}function o(t){S(function(a){for(var s=a.XMLDocument.documentElement.attributes,u=s.length-1;u>=0;u--){var h=s[u];t(a.getAttribute(h.name),h.name)}})}function r(t){var a=e(t);S(function(s){s.removeAttribute(a),s.save(C)})}function i(){S(function(t){var a=t.XMLDocument.documentElement.attributes;t.load(C);for(var s=a.length-1;s>=0;s--)t.removeAttribute(a[s].name);t.save(C)})}var n=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function e(t){return t.replace(/^\d/,"___$&").replace(n,"___")}function l(){if(!A||!A.documentElement||!A.documentElement.addBehavior)return null;var t="script",a,s,u;try{s=new ActiveXObject("htmlfile"),s.open(),s.write("<"+t+">document.w=window</"+t+'><iframe src="/favicon.ico"></iframe>'),s.close(),a=s.w.frames[0].document,u=a.createElement("div")}catch(h){u=A.createElement("div"),a=A.body}return function(h){var p=[].slice.call(arguments,0);p.unshift(u),a.appendChild(u),u.addBehavior("#default#userData"),u.load(C),h.apply(this,p),a.removeChild(u);return}}},RPvy:function(H,F,d){var O=d("ProS"),x=d("VaxA"),C="sunburstRootToNode";O.registerAction({type:C,update:"updateView"},function(g,f){f.eachComponent({mainType:"series",subType:"sunburst",query:g},c);function c(o,r){var i=x.retrieveTargetInfo(g,[C],o);if(i){var n=o.getViewRoot();n&&(g.direction=x.aboveViewRoot(n,i.node)?"rollUp":"drillDown"),o.resetViewRoot(i.node)}}});var A="sunburstHighlight";O.registerAction({type:A,update:"updateView"},function(g,f){f.eachComponent({mainType:"series",subType:"sunburst",query:g},c);function c(o,r){var i=x.retrieveTargetInfo(g,[A],o);i&&(g.highlight=i.node)}});var S="sunburstUnhighlight";O.registerAction({type:S,update:"updateView"},function(g,f){f.eachComponent({mainType:"series",subType:"sunburst",query:g},c);function c(o,r){g.unhighlight=!0}})},RSch:function(H,F,d){var O=d("IwbS"),x=d("bYtY");function C(g,f,c){O.Group.call(this),this._createPolyline(g,f,c)}var A=C.prototype;A._createPolyline=function(g,f,c){var o=g.getItemLayout(f),r=new O.Polyline({shape:{points:o}});this.add(r),this._updateCommonStl(g,f,c)},A.updateData=function(g,f,c){var o=g.hostModel,r=this.childAt(0),i={shape:{points:g.getItemLayout(f)}};O.updateProps(r,i,o,f),this._updateCommonStl(g,f,c)},A._updateCommonStl=function(g,f,c){var o=this.childAt(0),r=g.getItemModel(f),i=g.getItemVisual(f,"color"),n=c&&c.lineStyle,e=c&&c.hoverLineStyle;(!c||g.hasItemOption)&&(n=r.getModel("lineStyle").getLineStyle(),e=r.getModel("emphasis.lineStyle").getLineStyle()),o.useStyle(x.defaults({strokeNoScale:!0,fill:"none",stroke:i},n)),o.hoverStyle=e,O.setHoverStyle(this)},A.updateLayout=function(g,f){var c=this.childAt(0);c.setShape("points",g.getItemLayout(f))},x.inherits(C,O.Group);var S=C;H.exports=S},RXMa:function(H,F,d){var O=d("y+Vt"),x=O.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(A,S){var g=S.cx,f=S.cy,c=Math.PI*2;A.moveTo(g+S.r,f),A.arc(g,f,S.r,0,c,!1),A.moveTo(g+S.r0,f),A.arc(g,f,S.r0,0,c,!0)}});H.exports=x},RZPm:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("JgUQ")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="FileOutlined";var c=A.forwardRef(f);F.default=c},RlCK:function(H,F,d){var O=d("ProS"),x=d("bYtY");function C(A,S,g){var f={},c=A==="toggleSelected",o;return g.eachComponent("legend",function(r){c&&o!=null?r[o?"select":"unSelect"](S.name):A==="allSelect"||A==="inverseSelect"?r[A]():(r[A](S.name),o=r.isSelected(S.name));var i=r.getData();x.each(i,function(n){var e=n.get("name");if(e===`
|
|
|
`||e==="")return;var l=r.isSelected(e);f.hasOwnProperty(e)?f[e]=f[e]&&l:f[e]=l})}),A==="allSelect"||A==="inverseSelect"?{selected:f}:{name:S.name,selected:f}}O.registerAction("legendToggleSelect","legendselectchanged",x.curry(C,"toggleSelected")),O.registerAction("legendAllSelect","legendselectall",x.curry(C,"allSelect")),O.registerAction("legendInverseSelect","legendinverseselect",x.curry(C,"inverseSelect")),O.registerAction("legendSelect","legendselected",x.curry(C,"select")),O.registerAction("legendUnSelect","legendunselected",x.curry(C,"unSelect"))},RotF:function(H,F,d){H.exports=d("LSTS")},Rx6q:function(H,F){function d(O){var x=O.getRect(),C=O.getRangeInfo();return{coordSys:{type:"calendar",x:x.x,y:x.y,width:x.width,height:x.height,cellWidth:O.getCellWidth(),cellHeight:O.getCellHeight(),rangeInfo:{start:C.start,end:C.end,weeks:C.weeks,dayCount:C.allDay}},api:{coord:function(A,S){return O.dataToPoint(A,S)}}}}H.exports=d},"S/Yl":function(H,F,d){var O=d("Zvw2"),x=d("aX7z"),C=d("+TT/"),A=C.getLayoutRect,S=d("bYtY"),g=S.each;function f(o,r,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(o,r,i),this.model=o}f.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:f,_init:function(o,r,i){var n=this.dimension,e=new O(n,x.createScaleByModel(o),[0,0],o.get("type"),o.get("position")),l=e.type==="category";e.onBand=l&&o.get("boundaryGap"),e.inverse=o.get("inverse"),e.orient=o.get("orient"),o.axis=e,e.model=o,e.coordinateSystem=this,this._axis=e},update:function(o,r){o.eachSeries(function(i){if(i.coordinateSystem===this){var n=i.getData();g(n.mapDimension(this.dimension,!0),function(e){this._axis.scale.unionExtentFromData(n,e)},this),x.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(o,r){this._rect=A({left:o.get("left"),top:o.get("top"),right:o.get("right"),bottom:o.get("bottom"),width:o.get("width"),height:o.get("height")},{width:r.getWidth(),height:r.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var o=this._rect,r=this._axis,i=r.isHorizontal(),n=i?[0,o.width]:[0,o.height],e=r.reverse?1:0;r.setExtent(n[e],n[1-e]),this._updateAxisTransform(r,i?o.x:o.y)},_updateAxisTransform:function(o,r){var i=o.getExtent(),n=i[0]+i[1],e=o.isHorizontal();o.toGlobalCoord=e?function(l){return l+r}:function(l){return n-l+r},o.toLocalCoord=e?function(l){return l-r}:function(l){return n-l+r}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(o){var r=this.getRect(),i=this.getAxis(),n=i.orient;return n==="horizontal"?i.contain(i.toLocalCoord(o[0]))&&o[1]>=r.y&&o[1]<=r.y+r.height:i.contain(i.toLocalCoord(o[1]))&&o[0]>=r.y&&o[0]<=r.y+r.height},pointToData:function(o){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(o[r.orient==="horizontal"?0:1]))]},dataToPoint:function(o){var r=this.getAxis(),i=this.getRect(),n=[],e=r.orient==="horizontal"?0:1;return o instanceof Array&&(o=o[0]),n[e]=r.toGlobalCoord(r.dataToCoord(+o)),n[1-e]=e===0?i.y+i.height/2:i.x+i.width/2,n}};var c=f;H.exports=c},S6kV:function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.mode.OFB=function(){var x=O.lib.BlockCipherMode.extend(),C=x.Encryptor=x.extend({processBlock:function(S,g){var f=this._cipher,c=f.blockSize,o=this._iv,r=this._keystream;o&&(r=this._keystream=o.slice(0),this._iv=void 0),f.encryptBlock(r,0);for(var i=0;i<c;i++)S[g+i]^=r[i]}});return x.Decryptor=C,x}(),O.mode.OFB})},"SA+Z":function(H,F,d){var O=d("wTVA"),x=d("EbDI"),C=d("ZhPi"),A=d("wkBT");function S(g){return O(g)||x(g)||C(g)||A()}H.exports=S,H.exports.__esModule=!0,H.exports.default=H.exports},"SA4+":function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("IwbS"),S=d("zYTA"),g=d("bYtY");function f(i,n,e){var l=i[1]-i[0];n=g.map(n,function(s){return{interval:[(s.interval[0]-i[0])/l,(s.interval[1]-i[0])/l]}});var t=n.length,a=0;return function(s){for(var u=a;u<t;u++){var h=n[u].interval;if(h[0]<=s&&s<=h[1]){a=u;break}}if(u===t)for(var u=a-1;u>=0;u--){var h=n[u].interval;if(h[0]<=s&&s<=h[1]){a=u;break}}return u>=0&&u<t&&e[u]}}function c(i,n){var e=i[1]-i[0];return n=[(n[0]-i[0])/e,(n[1]-i[0])/e],function(l){return l>=n[0]&&l<=n[1]}}function o(i){var n=i.dimensions;return n[0]==="lng"&&n[1]==="lat"}var r=C.extendChartView({type:"heatmap",render:function(i,n,e){var l;n.eachComponent("visualMap",function(a){a.eachTargetSeries(function(s){s===i&&(l=a)})}),this.group.removeAll(),this._incrementalDisplayable=null;var t=i.coordinateSystem;t.type==="cartesian2d"||t.type==="calendar"?this._renderOnCartesianAndCalendar(i,e,0,i.getData().count()):o(t)&&this._renderOnGeo(t,i,l,e)},incrementalPrepareRender:function(i,n,e){this.group.removeAll()},incrementalRender:function(i,n,e,l){var t=n.coordinateSystem;t&&this._renderOnCartesianAndCalendar(n,l,i.start,i.end,!0)},_renderOnCartesianAndCalendar:function(i,n,e,l,t){var a=i.coordinateSystem,s,u;if(a.type==="cartesian2d"){var h=a.getAxis("x"),p=a.getAxis("y");s=h.getBandWidth(),u=p.getBandWidth()}for(var m=this.group,v=i.getData(),y="itemStyle",E="emphasis.itemStyle",T="label",b="emphasis.label",w=i.getModel(y).getItemStyle(["color"]),_=i.getModel(E).getItemStyle(),I=i.getModel(T),L=i.getModel(b),N=a.type,D=N==="cartesian2d"?[v.mapDimension("x"),v.mapDimension("y"),v.mapDimension("value")]:[v.mapDimension("time"),v.mapDimension("value")],R=e;R<l;R++){var k;if(N==="cartesian2d"){if(isNaN(v.get(D[2],R)))continue;var M=a.dataToPoint([v.get(D[0],R),v.get(D[1],R)]);k=new A.Rect({shape:{x:Math.floor(Math.round(M[0])-s/2),y:Math.floor(Math.round(M[1])-u/2),width:Math.ceil(s),height:Math.ceil(u)},style:{fill:v.getItemVisual(R,"color"),opacity:v.getItemVisual(R,"opacity")}})}else{if(isNaN(v.get(D[1],R)))continue;k=new A.Rect({z2:1,shape:a.dataToRect([v.get(D[0],R)]).contentShape,style:{fill:v.getItemVisual(R,"color"),opacity:v.getItemVisual(R,"opacity")}})}var U=v.getItemModel(R);v.hasItemOption&&(w=U.getModel(y).getItemStyle(["color"]),_=U.getModel(E).getItemStyle(),I=U.getModel(T),L=U.getModel(b));var B=i.getRawValue(R),j="-";B&&B[2]!=null&&(j=B[2]),A.setLabelStyle(w,_,I,L,{labelFetcher:i,labelDataIndex:R,defaultText:j,isRectText:!0}),k.setStyle(w),A.setHoverStyle(k,v.hasItemOption?_:g.extend({},_)),k.incremental=t,t&&(k.useHoverLayer=!0),m.add(k),v.setItemGraphicEl(R,k)}},_renderOnGeo:function(i,n,e,l){var t=e.targetVisuals.inRange,a=e.targetVisuals.outOfRange,s=n.getData(),u=this._hmLayer||this._hmLayer||new S;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var h=i.getViewRect().clone(),p=i.getRoamTransform();h.applyTransform(p);var m=Math.max(h.x,0),v=Math.max(h.y,0),y=Math.min(h.width+h.x,l.getWidth()),E=Math.min(h.height+h.y,l.getHeight()),T=y-m,b=E-v,w=[s.mapDimension("lng"),s.mapDimension("lat"),s.mapDimension("value")],_=s.mapArray(w,function(D,R,k){var M=i.dataToPoint([D,R]);return M[0]-=m,M[1]-=v,M.push(k),M}),I=e.getExtent(),L=e.type==="visualMap.continuous"?c(I,e.option.range):f(I,e.getPieceList(),e.option.selected);u.update(_,T,b,t.color.getNormalizer(),{inRange:t.color.getColorMapper(),outOfRange:a.color.getColorMapper()},L);var N=new A.Image({style:{width:T,height:b,x:m,y:v,image:u.canvas},silent:!0});this.group.add(N)},dispose:function(){}});H.exports=r},SA8n:function(H,F,d){var O=d("Sj9i"),x=d("QBsz"),C=d("U/Mo"),A=C.getSymbolSize,S=[],g=[],f=[],c=O.quadraticAt,o=x.distSquare,r=Math.abs;function i(e,l,t){for(var a=e[0],s=e[1],u=e[2],h=Infinity,p,m=t*t,v=.1,y=.1;y<=.9;y+=.1){S[0]=c(a[0],s[0],u[0],y),S[1]=c(a[1],s[1],u[1],y);var E=r(o(S,l)-m);E<h&&(h=E,p=y)}for(var T=0;T<32;T++){var b=p+v;g[0]=c(a[0],s[0],u[0],p),g[1]=c(a[1],s[1],u[1],p),f[0]=c(a[0],s[0],u[0],b),f[1]=c(a[1],s[1],u[1],b);var E=o(g,l)-m;if(r(E)<.01)break;var w=o(f,l)-m;v/=2,E<0?w>=0?p=p+v:p=p-v:w>=0?p=p-v:p=p+v}return p}function n(e,l){var t=[],a=O.quadraticSubdivide,s=[[],[],[]],u=[[],[]],h=[];l/=2,e.eachEdge(function(p,m){var v=p.getLayout(),y=p.getVisual("fromSymbol"),E=p.getVisual("toSymbol");v.__original||(v.__original=[x.clone(v[0]),x.clone(v[1])],v[2]&&v.__original.push(x.clone(v[2])));var T=v.__original;if(v[2]!=null){if(x.copy(s[0],T[0]),x.copy(s[1],T[2]),x.copy(s[2],T[1]),y&&y!=="none"){var b=A(p.node1),w=i(s,T[0],b*l);a(s[0][0],s[1][0],s[2][0],w,t),s[0][0]=t[3],s[1][0]=t[4],a(s[0][1],s[1][1],s[2][1],w,t),s[0][1]=t[3],s[1][1]=t[4]}if(E&&E!=="none"){var b=A(p.node2),w=i(s,T[1],b*l);a(s[0][0],s[1][0],s[2][0],w,t),s[1][0]=t[1],s[2][0]=t[2],a(s[0][1],s[1][1],s[2][1],w,t),s[1][1]=t[1],s[2][1]=t[2]}x.copy(v[0],s[0]),x.copy(v[1],s[2]),x.copy(v[2],s[1])}else{if(x.copy(u[0],T[0]),x.copy(u[1],T[1]),x.sub(h,u[1],u[0]),x.normalize(h,h),y&&y!=="none"){var b=A(p.node1);x.scaleAndAdd(u[0],u[0],h,b*l)}if(E&&E!=="none"){var b=A(p.node2);x.scaleAndAdd(u[1],u[1],h,-b*l)}x.copy(v[0],u[0]),x.copy(v[1],u[1])}})}H.exports=n},SJMd:function(H,F){/**
|
|
|
* @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 d,O,x,C=!1,A,S;window.PR_SHOULD_USE_CONTINUATION=!0;var g,f;(function(){var c=window,o=["break,continue,do,else,for,if,return,while"],r=[o,"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"],i=[r,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],n=[i,"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=[i,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],l=[i,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],t="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",a=[i,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],s="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",u=[o,"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"],h=[o,"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"],p=[o,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],m=[n,l,e,a,s,u,h,p],v=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,y="str",E="kwd",T="com",b="typ",w="lit",_="pun",I="pln",L="tag",N="dec",D="src",R="atn",k="atv",M="nocode",U="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function B(ae){for(var Q=0,G=!1,Y=!1,me=0,ue=ae.length;me<ue;++me){var Ce=ae[me];if(Ce.ignoreCase)Y=!0;else if(/[a-z]/i.test(Ce.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){G=!0,Y=!1;break}}var Ie={b:8,t:9,n:10,v:11,f:12,r:13};function ce(qe){var Le=qe.charCodeAt(0);if(Le!==92)return Le;var Ot=qe.charAt(1);return Le=Ie[Ot],Le||("0"<=Ot&&Ot<="7"?parseInt(qe.substring(1),8):Ot==="u"||Ot==="x"?parseInt(qe.substring(2),16):qe.charCodeAt(1))}function Ae(qe){if(qe<32)return(qe<16?"\\x0":"\\x")+qe.toString(16);var Le=String.fromCharCode(qe);return Le==="\\"||Le==="-"||Le==="]"||Le==="^"?"\\"+Le:Le}function Te(qe){var Le=qe.substring(1,qe.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")),Ot=[],$e=Le[0]==="^",xt=["["];$e&&xt.push("^");for(var Ht=$e?1:0,tr=Le.length;Ht<tr;++Ht){var Mt=Le[Ht];if(/\\[bdsw]/i.test(Mt))xt.push(Mt);else{var Tt=ce(Mt),Xe;Ht+2<tr&&Le[Ht+1]==="-"?(Xe=ce(Le[Ht+2]),Ht+=2):Xe=Tt,Ot.push([Tt,Xe]),Xe<65||Tt>122||(Xe<65||Tt>90||Ot.push([Math.max(65,Tt)|32,Math.min(Xe,90)|32]),Xe<97||Tt>122||Ot.push([Math.max(97,Tt)&~32,Math.min(Xe,122)&~32]))}}Ot.sort(function(Ee,ee){return Ee[0]-ee[0]||ee[1]-Ee[1]});for(var oe=[],X=[],Ht=0;Ht<Ot.length;++Ht){var Be=Ot[Ht];Be[0]<=X[1]+1?X[1]=Math.max(X[1],Be[1]):oe.push(X=Be)}for(var Ht=0;Ht<oe.length;++Ht){var Be=oe[Ht];xt.push(Ae(Be[0])),Be[1]>Be[0]&&(Be[1]+1>Be[0]&&xt.push("-"),xt.push(Ae(Be[1])))}return xt.push("]"),xt.join("")}function Ge(qe){for(var Le=qe.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")),Ot=Le.length,$e=[],xt=0,Ht=0;xt<Ot;++xt){var tr=Le[xt];if(tr==="(")++Ht;else if(tr.charAt(0)==="\\"){var Mt=+tr.substring(1);Mt&&(Mt<=Ht?$e[Mt]=-1:Le[xt]=Ae(Mt))}}for(var xt=1;xt<$e.length;++xt)$e[xt]===-1&&($e[xt]=++Q);for(var xt=0,Ht=0;xt<Ot;++xt){var tr=Le[xt];if(tr==="(")++Ht,$e[Ht]||(Le[xt]="(?:");else if(tr.charAt(0)==="\\"){var Mt=+tr.substring(1);Mt&&Mt<=Ht&&(Le[xt]="\\"+$e[Mt])}}for(var xt=0;xt<Ot;++xt)Le[xt]==="^"&&Le[xt+1]!=="^"&&(Le[xt]="");if(qe.ignoreCase&&G)for(var xt=0;xt<Ot;++xt){var tr=Le[xt],Tt=tr.charAt(0);tr.length>=2&&Tt==="["?Le[xt]=Te(tr):Tt!=="\\"&&(Le[xt]=tr.replace(/[a-zA-Z]/g,function(X){var Be=X.charCodeAt(0);return"["+String.fromCharCode(Be&~32,Be|32)+"]"}))}return Le.join("")}for(var gt=[],me=0,ue=ae.length;me<ue;++me){var Ce=ae[me];if(Ce.global||Ce.multiline)throw new Error(""+Ce);gt.push("(?:"+Ge(Ce)+")")}return new RegExp(gt.join("|"),Y?"gi":"g")}function j(ae,Q){var G=/(?:^|\s)nocode(?:\s|$)/,Y=[],me=0,ue=[],Ce=0;function Ie(ce){var Ae=ce.nodeType;if(Ae==1){if(G.test(ce.className))return;for(var Te=ce.firstChild;Te;Te=Te.nextSibling)Ie(Te);var Ge=ce.nodeName.toLowerCase();(Ge==="br"||Ge==="li")&&(Y[Ce]=`
|
|
|
`,ue[Ce<<1]=me++,ue[Ce++<<1|1]=ce)}else if(Ae==3||Ae==4){var gt=ce.nodeValue;gt.length&&(Q?gt=gt.replace(/\r\n?/g,`
|
|
|
`):gt=gt.replace(/[ \t\r\n]+/g," "),Y[Ce]=gt,ue[Ce<<1]=me,me+=gt.length,ue[Ce++<<1|1]=ce)}}return Ie(ae),{sourceCode:Y.join("").replace(/\n$/,""),spans:ue}}function W(ae,Q,G,Y,me){if(!G)return;var ue={sourceNode:ae,pre:1,langExtension:null,numberLines:null,sourceCode:G,spans:null,basePos:Q,decorations:null};Y(ue),me.push.apply(me,ue.decorations)}var V=/\S/;function z(ae){for(var Q=void 0,G=ae.firstChild;G;G=G.nextSibling){var Y=G.nodeType;Q=Y===1?Q?ae:G:Y===3&&V.test(G.nodeValue)?ae:Q}return Q===ae?void 0:Q}function J(ae,Q){var G={},Y;(function(){for(var Ce=ae.concat(Q),Ie=[],ce={},Ae=0,Te=Ce.length;Ae<Te;++Ae){var Ge=Ce[Ae],gt=Ge[3];if(gt)for(var qe=gt.length;--qe>=0;)G[gt.charAt(qe)]=Ge;var Le=Ge[1],Ot=""+Le;ce.hasOwnProperty(Ot)||(Ie.push(Le),ce[Ot]=null)}Ie.push(/[\0-\uffff]/),Y=B(Ie)})();var me=Q.length,ue=function Ce(Ie){for(var ce=Ie.sourceCode,Ae=Ie.basePos,Te=Ie.sourceNode,Ge=[Ae,I],gt=0,qe=ce.match(Y)||[],Le={},Ot=0,$e=qe.length;Ot<$e;++Ot){var xt=qe[Ot],Ht=Le[xt],tr=void 0,Mt;if(typeof Ht=="string")Mt=!1;else{var Tt=G[xt.charAt(0)];if(Tt)tr=xt.match(Tt[1]),Ht=Tt[0];else{for(var Xe=0;Xe<me;++Xe)if(Tt=Q[Xe],tr=xt.match(Tt[1]),tr){Ht=Tt[0];break}tr||(Ht=I)}Mt=Ht.length>=5&&Ht.substring(0,5)==="lang-",Mt&&!(tr&&typeof tr[1]=="string")&&(Mt=!1,Ht=D),Mt||(Le[xt]=Ht)}var oe=gt;if(gt+=xt.length,!Mt)Ge.push(Ae+oe,Ht);else{var X=tr[1],Be=xt.indexOf(X),Ee=Be+X.length;tr[2]&&(Ee=xt.length-tr[2].length,Be=Ee-X.length);var ee=Ht.substring(5);W(Te,Ae+oe,xt.substring(0,Be),Ce,Ge),W(Te,Ae+oe+Be,X,Ue(ee,X),Ge),W(Te,Ae+oe+Ee,xt.substring(Ee),Ce,Ge)}}Ie.decorations=Ge};return ue}function Z(ae){var Q=[],G=[];ae.tripleQuotedStrings?Q.push([y,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ae.multiLineStrings?Q.push([y,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Q.push([y,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ae.verbatimStrings&&G.push([y,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Y=ae.hashComments;Y&&(ae.cStyleComments?(Y>1?Q.push([T,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Q.push([T,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),G.push([y,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Q.push([T,/^#[^\r\n]*/,null,"#"])),ae.cStyleComments&&(G.push([T,/^\/\/[^\r\n]*/,null]),G.push([T,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var me=ae.regexLiterals;if(me){var ue=me>1?"":`
|
|
|
\r`,Ce=ue?".":"[\\S\\s]",Ie="/(?=[^/*"+ue+"])(?:[^/\\x5B\\x5C"+ue+"]|\\x5C"+Ce+"|\\x5B(?:[^\\x5C\\x5D"+ue+"]|\\x5C"+Ce+")*(?:\\x5D|$))+/";G.push(["lang-regex",RegExp("^"+U+"("+Ie+")")])}var ce=ae.types;ce&&G.push([b,ce]);var Ae=(""+ae.keywords).replace(/^ | $/g,"");Ae.length&&G.push([E,new RegExp("^(?:"+Ae.replace(/[\s,]+/g,"|")+")\\b"),null]),Q.push([I,/^\s+/,null,` \r
|
|
|
\xA0`]);var Te="^.[^\\s\\w.$@'\"`/\\\\]*";return ae.regexLiterals&&(Te+="(?!s*/)"),G.push([w,/^@[a-z_$][a-z_$@0-9]*/i,null],[b,/^(?:[@_]?[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],[_,new RegExp(Te),null]),J(Q,G)}var de=Z({keywords:m,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ie(ae,Q,G){for(var Y=/(?:^|\s)nocode(?:\s|$)/,me=/\r\n?|\n/,ue=ae.ownerDocument,Ce=ue.createElement("li");ae.firstChild;)Ce.appendChild(ae.firstChild);var Ie=[Ce];function ce(Le){var Ot=Le.nodeType;if(Ot==1&&!Y.test(Le.className))if(Le.nodeName==="br")Ae(Le),Le.parentNode&&Le.parentNode.removeChild(Le);else for(var $e=Le.firstChild;$e;$e=$e.nextSibling)ce($e);else if((Ot==3||Ot==4)&&G){var xt=Le.nodeValue,Ht=xt.match(me);if(Ht){var tr=xt.substring(0,Ht.index);Le.nodeValue=tr;var Mt=xt.substring(Ht.index+Ht[0].length);if(Mt){var Tt=Le.parentNode;Tt.insertBefore(ue.createTextNode(Mt),Le.nextSibling)}Ae(Le),tr||Le.parentNode.removeChild(Le)}}}function Ae(Le){for(;!Le.nextSibling;)if(Le=Le.parentNode,!Le)return;function Ot(Ht,tr){var Mt=tr?Ht.cloneNode(!1):Ht,Tt=Ht.parentNode;if(Tt){var Xe=Ot(Tt,1),oe=Ht.nextSibling;Xe.appendChild(Mt);for(var X=oe;X;X=oe)oe=X.nextSibling,Xe.appendChild(X)}return Mt}for(var $e=Ot(Le.nextSibling,0),xt;(xt=$e.parentNode)&&xt.nodeType===1;)$e=xt;Ie.push($e)}for(var Te=0;Te<Ie.length;++Te)ce(Ie[Te]);Q===(Q|0)&&Ie[0].setAttribute("value",Q);var Ge=ue.createElement("ol");Ge.className="linenums";for(var gt=Math.max(0,Q-1|0)||0,Te=0,qe=Ie.length;Te<qe;++Te)Ce=Ie[Te],Ce.className="L"+(Te+gt)%10,Ce.firstChild||Ce.appendChild(ue.createTextNode("\xA0")),Ge.appendChild(Ce);ae.appendChild(Ge)}function ve(ae){var Q=/\bMSIE\s(\d+)/.exec(navigator.userAgent);Q=Q&&+Q[1]<=8;var G=/\n/g,Y=ae.sourceCode,me=Y.length,ue=0,Ce=ae.spans,Ie=Ce.length,ce=0,Ae=ae.decorations,Te=Ae.length,Ge=0;Ae[Te]=me;var gt,qe;for(qe=gt=0;qe<Te;)Ae[qe]!==Ae[qe+2]?(Ae[gt++]=Ae[qe++],Ae[gt++]=Ae[qe++]):qe+=2;for(Te=gt,qe=gt=0;qe<Te;){for(var Le=Ae[qe],Ot=Ae[qe+1],$e=qe+2;$e+2<=Te&&Ae[$e+1]===Ot;)$e+=2;Ae[gt++]=Le,Ae[gt++]=Ot,qe=$e}Te=Ae.length=gt;var xt=ae.sourceNode,Ht="";xt&&(Ht=xt.style.display,xt.style.display="none");try{for(var tr=null;ce<Ie;){var Mt=Ce[ce],Tt=Ce[ce+2]||me,Xe=Ae[Ge+2]||me,$e=Math.min(Tt,Xe),oe=Ce[ce+1],X;if(oe.nodeType!==1&&(X=Y.substring(ue,$e))){Q&&(X=X.replace(G,"\r")),oe.nodeValue=X;var Be=oe.ownerDocument,Ee=Be.createElement("span");Ee.className=Ae[Ge+1];var ee=oe.parentNode;ee.replaceChild(Ee,oe),Ee.appendChild(oe),ue<Tt&&(Ce[ce+1]=oe=Be.createTextNode(Y.substring($e,Tt)),ee.insertBefore(oe,Ee.nextSibling))}ue=$e,ue>=Tt&&(ce+=2),ue>=Xe&&(Ge+=2)}}finally{xt&&(xt.style.display=Ht)}}var xe={};function _e(ae,Q){for(var G=Q.length;--G>=0;){var Y=Q[G];xe.hasOwnProperty(Y)?c.console&&console.warn("cannot override language handler %s",Y):xe[Y]=ae}}function Ue(ae,Q){return ae&&xe.hasOwnProperty(ae)||(ae=/^\s*</.test(Q)?"default-markup":"default-code"),xe[ae]}_e(de,["default-code"]),_e(J([],[[I,/^[^<?]+/],[N,/^<!\w[^>]*(?:>|$)/],[T,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[_,/^(?:<[%?]|[%?]>)/],["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"]),_e(J([[I,/^[\s]+/,null,` \r
|
|
|
`],[k,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[L,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[R,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[_,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),_e(J([],[[k,/^[\s\S]+/]]),["uq.val"]),_e(Z({keywords:n,hashComments:!0,cStyleComments:!0,types:v}),["c","cc","cpp","cxx","cyc","m"]),_e(Z({keywords:"null,true,false"}),["json"]),_e(Z({keywords:l,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:v}),["cs"]),_e(Z({keywords:e,cStyleComments:!0}),["java"]),_e(Z({keywords:p,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),_e(Z({keywords:u,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),_e(Z({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),_e(Z({keywords:h,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),_e(Z({keywords:a,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),_e(Z({keywords:t,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),_e(J([],[[y,/^[\s\S]+/]]),["regex"]);function fe(ae){var Q=ae.langExtension;try{var G=j(ae.sourceNode,ae.pre),Y=G.sourceCode;ae.sourceCode=Y,ae.spans=G.spans,ae.basePos=0,Ue(Q,Y)(ae),ve(ae)}catch(me){c.console&&console.log(me&&me.stack||me)}}function ke(ae,Q,G){var Y=G||!1,me=Q||null,ue=document.createElement("div");ue.innerHTML="<pre>"+ae+"</pre>",ue=ue.firstChild,Y&&ie(ue,Y,!0);var Ce={langExtension:me,numberLines:Y,sourceNode:ue,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return fe(Ce),ue.innerHTML}function se(ae,Q){var G=Q||document.body,Y=G.ownerDocument||document;function me(Mt){return G.getElementsByTagName(Mt)}for(var ue=[me("pre"),me("code"),me("xmp")],Ce=[],Ie=0;Ie<ue.length;++Ie)for(var ce=0,Ae=ue[Ie].length;ce<Ae;++ce)Ce.push(ue[Ie][ce]);ue=null;var Te=Date;Te.now||(Te={now:function(){return+new Date}});var Ge=0,gt=/\blang(?:uage)?-([\w.]+)(?!\S)/,qe=/\bprettyprint\b/,Le=/\bprettyprinted\b/,Ot=/pre|xmp/i,$e=/^code$/i,xt=/^(?:pre|code|xmp)$/i,Ht={};function tr(){for(var Mt=c.PR_SHOULD_USE_CONTINUATION?Te.now()+250:Infinity;Ge<Ce.length&&Te.now()<Mt;Ge++){for(var Tt=Ce[Ge],Xe=Ht,oe=Tt;oe=oe.previousSibling;){var X=oe.nodeType,Be=(X===7||X===8)&&oe.nodeValue;if(Be?!/^\??prettify\b/.test(Be):X!==3||/\S/.test(oe.nodeValue))break;if(Be){Xe={},Be.replace(/\b(\w+)=([\w:.%+-]+)/g,function(st,Hr,mn){Xe[Hr]=mn});break}}var Ee=Tt.className;if((Xe!==Ht||qe.test(Ee))&&!Le.test(Ee)){for(var ee=!1,lt=Tt.parentNode;lt;lt=lt.parentNode){var Ct=lt.tagName;if(xt.test(Ct)&<.className&&qe.test(lt.className)){ee=!0;break}}if(!ee){Tt.className+=" prettyprinted";var dt=Xe.lang;if(!dt){dt=Ee.match(gt);var _t;!dt&&(_t=z(Tt))&&$e.test(_t.tagName)&&(dt=_t.className.match(gt)),dt&&(dt=dt[1])}var ir;if(Ot.test(Tt.tagName))ir=1;else{var $r=Tt.currentStyle,nr=Y.defaultView,lr=$r?$r.whiteSpace:nr&&nr.getComputedStyle?nr.getComputedStyle(Tt,null).getPropertyValue("white-space"):0;ir=lr&&lr.substring(0,3)==="pre"}var zt=Xe.linenums;(zt=zt==="true"||+zt)||(zt=Ee.match(/\blinenums\b(?::(\d+))?/),zt=zt?zt[1]&&zt[1].length?+zt[1]:!0:!1),zt&&ie(Tt,zt,ir);var Ut={langExtension:dt,sourceNode:Tt,numberLines:zt,pre:ir,sourceCode:null,basePos:null,spans:null,decorations:null};fe(Ut)}}}Ge<Ce.length?c.setTimeout(tr,250):typeof ae=="function"&&ae()}tr()}var te=c.PR={createSimpleLexer:J,registerLangHandler:_e,sourceDecorator:Z,PR_ATTRIB_NAME:R,PR_ATTRIB_VALUE:k,PR_COMMENT:T,PR_DECLARATION:N,PR_KEYWORD:E,PR_LITERAL:w,PR_NOCODE:M,PR_PLAIN:I,PR_PUNCTUATION:_,PR_SOURCE:D,PR_STRING:y,PR_TAG:L,PR_TYPE:b,prettyPrintOne:C?c.prettyPrintOne=ke:g=ke,prettyPrint:f=C?c.prettyPrint=se:f=se},Ve=c.define;typeof Ve=="function"&&Ve.amd&&Ve("google-code-prettify",[],function(){return te})})()},SKnc:function(H,F,d){var O=d("bYtY"),x=d("QuXc"),C=function(g,f,c,o,r,i){this.x=g==null?0:g,this.y=f==null?0:f,this.x2=c==null?1:c,this.y2=o==null?0:o,this.type="linear",this.global=i||!1,x.call(this,r)};C.prototype={constructor:C},O.inherits(C,x);var A=C;H.exports=A},"SKx+":function(H,F,d){var O=d("ProS"),x=O.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}}}),C=x;H.exports=C},SMc4:function(H,F,d){var O=d("bYtY"),x=d("bLfw"),C=d("nkfE"),A=d("ICMv"),S=x.extend({type:"cartesian2dAxis",axis:null,init:function(){S.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){S.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){S.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function g(o,r){return r.type||(r.data?"category":"value")}O.merge(S.prototype,A);var f={offset:0};C("x",S,g,f),C("y",S,g,f);var c=S;H.exports=c},SRve:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},SUKs:function(H,F,d){var O=d("LPTA"),x=O.debugMode,C=function(){};x===1&&(C=console.error);var A=C;H.exports=A},SZEN:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.clientToElement=O;function O(x,C,A){var S=A.getBoundingClientRect(),g={x:0,y:0};return x<S.left?g.x=0:x>=S.right?g.x=S.width-1:g.x=x-S.left,C<S.top?g.y=0:C>=S.bottom?g.y=S.height-1:g.y=C-S.top,g}},Sdc0:function(H,F,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),S=d("q1tI"),g=d("rePB"),f=d("ODXe"),c=d("Ff2n"),o=d("TSYQ"),r=d.n(o),i=d("6cGi"),n=d("4IlW"),e=S.forwardRef(function(E,T){var b,w=E.prefixCls,_=w===void 0?"rc-switch":w,I=E.className,L=E.checked,N=E.defaultChecked,D=E.disabled,R=E.loadingIcon,k=E.checkedChildren,M=E.unCheckedChildren,U=E.onClick,B=E.onChange,j=E.onKeyDown,W=Object(c.a)(E,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),V=Object(i.a)(!1,{value:L,defaultValue:N}),z=Object(f.a)(V,2),J=z[0],Z=z[1];function de(_e,Ue){var fe=J;return D||(fe=_e,Z(fe),B==null||B(fe,Ue)),fe}function ie(_e){_e.which===n.a.LEFT?de(!1,_e):_e.which===n.a.RIGHT&&de(!0,_e),j==null||j(_e)}function ve(_e){var Ue=de(!J,_e);U==null||U(Ue,_e)}var xe=r()(_,I,(b={},Object(g.a)(b,"".concat(_,"-checked"),J),Object(g.a)(b,"".concat(_,"-disabled"),D),b));return S.createElement("button",Object.assign({},W,{type:"button",role:"switch","aria-checked":J,disabled:D,className:xe,ref:T,onKeyDown:ie,onClick:ve}),R,S.createElement("span",{className:"".concat(_,"-inner")},J?k:M))});e.displayName="Switch";var l=e,t=d("gZBC"),a=d.n(t),s=d("g0mS"),u=d("H84U"),h=d("3Nzz"),p=d("uaoM"),m=function(E,T){var b={};for(var w in E)Object.prototype.hasOwnProperty.call(E,w)&&T.indexOf(w)<0&&(b[w]=E[w]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,w=Object.getOwnPropertySymbols(E);_<w.length;_++)T.indexOf(w[_])<0&&Object.prototype.propertyIsEnumerable.call(E,w[_])&&(b[w[_]]=E[w[_]]);return b},v=S.forwardRef(function(E,T){var b,w=E.prefixCls,_=E.size,I=E.loading,L=E.className,N=L===void 0?"":L,D=E.disabled,R=m(E,["prefixCls","size","loading","className","disabled"]);Object(p.a)("checked"in R||!("value"in R),"Switch","`value` is not a valid prop, do you mean `checked`?");var k=S.useContext(u.b),M=k.getPrefixCls,U=k.direction,B=S.useContext(h.b),j=M("switch",w),W=S.createElement("div",{className:"".concat(j,"-handle")},I&&S.createElement(a.a,{className:"".concat(j,"-loading-icon")})),V=r()(N,(b={},A()(b,"".concat(j,"-small"),(_||B)==="small"),A()(b,"".concat(j,"-loading"),I),A()(b,"".concat(j,"-rtl"),U==="rtl"),b));return S.createElement(s.a,{insertExtraNode:!0},S.createElement(l,x()({},R,{prefixCls:j,className:V,disabled:D||I,ref:T,loadingIcon:W})))});v.__ANT_SWITCH=!0,v.displayName="Switch";var y=F.a=v},SehX:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("2B6p"),A=C.updateCenterAndZoom;O.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(S,g){var f=S.componentType||"series";g.eachComponent({mainType:f,query:S},function(c){var o=c.coordinateSystem;if(o.type!=="geo")return;var r=A(o,S,c.get("scaleLimit"));c.setCenter&&c.setCenter(r.center),c.setZoom&&c.setZoom(r.zoom),f==="series"&&x.each(c.seriesGroup,function(i){i.setCenter(r.center),i.setZoom(r.zoom)})})})},SgGq:function(H,F,d){var O=d("bYtY"),x=d("H6uX"),C=d("YH21"),A=d("pP6R");function S(t){this.pointerChecker,this._zr=t,this._opt={};var a=O.bind,s=a(g,this),u=a(f,this),h=a(c,this),p=a(o,this),m=a(r,this);x.call(this),this.setPointerChecker=function(v){this.pointerChecker=v},this.enable=function(v,y){this.disable(),this._opt=O.defaults(O.clone(y)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),v==null&&(v=!0),(v===!0||v==="move"||v==="pan")&&(t.on("mousedown",s),t.on("mousemove",u),t.on("mouseup",h)),(v===!0||v==="scale"||v==="zoom")&&(t.on("mousewheel",p),t.on("pinch",m))},this.disable=function(){t.off("mousedown",s),t.off("mousemove",u),t.off("mouseup",h),t.off("mousewheel",p),t.off("pinch",m)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}O.mixin(S,x);function g(t){if(C.isMiddleOrRightButtonOnMouseUpDown(t)||t.target&&t.target.draggable)return;var a=t.offsetX,s=t.offsetY;this.pointerChecker&&this.pointerChecker(t,a,s)&&(this._x=a,this._y=s,this._dragging=!0)}function f(t){if(!this._dragging||!e("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||A.isTaken(this._zr,"globalPan"))return;var a=t.offsetX,s=t.offsetY,u=this._x,h=this._y,p=a-u,m=s-h;this._x=a,this._y=s,this._opt.preventDefaultMouseMove&&C.stop(t.event),n(this,"pan","moveOnMouseMove",t,{dx:p,dy:m,oldX:u,oldY:h,newX:a,newY:s})}function c(t){C.isMiddleOrRightButtonOnMouseUpDown(t)||(this._dragging=!1)}function o(t){var a=e("zoomOnMouseWheel",t,this._opt),s=e("moveOnMouseWheel",t,this._opt),u=t.wheelDelta,h=Math.abs(u),p=t.offsetX,m=t.offsetY;if(u===0||!a&&!s)return;if(a){var v=h>3?1.4:h>1?1.2:1.1,y=u>0?v:1/v;i(this,"zoom","zoomOnMouseWheel",t,{scale:y,originX:p,originY:m})}if(s){var E=Math.abs(u),T=(u>0?1:-1)*(E>3?.4:E>1?.15:.05);i(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:T,originX:p,originY:m})}}function r(t){if(A.isTaken(this._zr,"globalPan"))return;var a=t.pinchScale>1?1.1:1/1.1;i(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY})}function i(t,a,s,u,h){t.pointerChecker&&t.pointerChecker(u,h.originX,h.originY)&&(C.stop(u.event),n(t,a,s,u,h))}function n(t,a,s,u,h){h.isAvailableBehavior=O.bind(e,null,s,u),t.trigger(a,h)}function e(t,a,s){var u=s[t];return!t||u&&(!O.isString(u)||a.event[u+"Key"])}var l=S;H.exports=l},SgaC:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;function O(S,g){if(!(S instanceof g))throw new TypeError("Cannot call a class as a function")}function x(S,g){for(var f=0;f<g.length;f++){var c=g[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(S,c.key,c)}}function C(S,g,f){return g&&x(S.prototype,g),f&&x(S,f),S}var A=function(){function S(){O(this,S),this._subrects=0}return C(S,[{key:"decodeRect",value:function(f,c,o,r,i,n,e){if(this._subrects===0){if(i.rQwait("RRE",4+4))return!1;this._subrects=i.rQshift32();var l=i.rQshiftBytes(4);n.fillRect(f,c,o,r,l)}for(;this._subrects>0;){if(i.rQwait("RRE",4+8))return!1;var t=i.rQshiftBytes(4),a=i.rQshift16(),s=i.rQshift16(),u=i.rQshift16(),h=i.rQshift16();n.fillRect(f+a,c+s,u,h,t),this._subrects--}return!0}}]),S}();F.default=A},Sj0X:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("XuBP")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="DownOutlined";var c=A.forwardRef(f);F.default=c},Sj9i:function(H,F,d){var O=d("QBsz"),x=O.create,C=O.distSquare,A=Math.pow,S=Math.sqrt,g=1e-8,f=1e-4,c=S(3),o=1/3,r=x(),i=x(),n=x();function e(w){return w>-g&&w<g}function l(w){return w>g||w<-g}function t(w,_,I,L,N){var D=1-N;return D*D*(D*w+3*N*_)+N*N*(N*L+3*D*I)}function a(w,_,I,L,N){var D=1-N;return 3*(((_-w)*D+2*(I-_)*N)*D+(L-I)*N*N)}function s(w,_,I,L,N,D){var R=L+3*(_-I)-w,k=3*(I-_*2+w),M=3*(_-w),U=w-N,B=k*k-3*R*M,j=k*M-9*R*U,W=M*M-3*k*U,V=0;if(e(B)&&e(j))if(e(k))D[0]=0;else{var z=-M/k;z>=0&&z<=1&&(D[V++]=z)}else{var J=j*j-4*B*W;if(e(J)){var Z=j/B,z=-k/R+Z,de=-Z/2;z>=0&&z<=1&&(D[V++]=z),de>=0&&de<=1&&(D[V++]=de)}else if(J>0){var ie=S(J),ve=B*k+1.5*R*(-j+ie),xe=B*k+1.5*R*(-j-ie);ve<0?ve=-A(-ve,o):ve=A(ve,o),xe<0?xe=-A(-xe,o):xe=A(xe,o);var z=(-k-(ve+xe))/(3*R);z>=0&&z<=1&&(D[V++]=z)}else{var _e=(2*B*k-3*R*j)/(2*S(B*B*B)),Ue=Math.acos(_e)/3,fe=S(B),ke=Math.cos(Ue),z=(-k-2*fe*ke)/(3*R),de=(-k+fe*(ke+c*Math.sin(Ue)))/(3*R),se=(-k+fe*(ke-c*Math.sin(Ue)))/(3*R);z>=0&&z<=1&&(D[V++]=z),de>=0&&de<=1&&(D[V++]=de),se>=0&&se<=1&&(D[V++]=se)}}return V}function u(w,_,I,L,N){var D=6*I-12*_+6*w,R=9*_+3*L-3*w-9*I,k=3*_-3*w,M=0;if(e(R)){if(l(D)){var U=-k/D;U>=0&&U<=1&&(N[M++]=U)}}else{var B=D*D-4*R*k;if(e(B))N[0]=-D/(2*R);else if(B>0){var j=S(B),U=(-D+j)/(2*R),W=(-D-j)/(2*R);U>=0&&U<=1&&(N[M++]=U),W>=0&&W<=1&&(N[M++]=W)}}return M}function h(w,_,I,L,N,D){var R=(_-w)*N+w,k=(I-_)*N+_,M=(L-I)*N+I,U=(k-R)*N+R,B=(M-k)*N+k,j=(B-U)*N+U;D[0]=w,D[1]=R,D[2]=U,D[3]=j,D[4]=j,D[5]=B,D[6]=M,D[7]=L}function p(w,_,I,L,N,D,R,k,M,U,B){var j,W=.005,V=Infinity,z,J,Z,de;r[0]=M,r[1]=U;for(var ie=0;ie<1;ie+=.05)i[0]=t(w,I,N,R,ie),i[1]=t(_,L,D,k,ie),Z=C(r,i),Z<V&&(j=ie,V=Z);V=Infinity;for(var ve=0;ve<32&&!(W<f);ve++)z=j-W,J=j+W,i[0]=t(w,I,N,R,z),i[1]=t(_,L,D,k,z),Z=C(i,r),z>=0&&Z<V?(j=z,V=Z):(n[0]=t(w,I,N,R,J),n[1]=t(_,L,D,k,J),de=C(n,r),J<=1&&de<V?(j=J,V=de):W*=.5);return B&&(B[0]=t(w,I,N,R,j),B[1]=t(_,L,D,k,j)),S(V)}function m(w,_,I,L){var N=1-L;return N*(N*w+2*L*_)+L*L*I}function v(w,_,I,L){return 2*((1-L)*(_-w)+L*(I-_))}function y(w,_,I,L,N){var D=w-2*_+I,R=2*(_-w),k=w-L,M=0;if(e(D)){if(l(R)){var U=-k/R;U>=0&&U<=1&&(N[M++]=U)}}else{var B=R*R-4*D*k;if(e(B)){var U=-R/(2*D);U>=0&&U<=1&&(N[M++]=U)}else if(B>0){var j=S(B),U=(-R+j)/(2*D),W=(-R-j)/(2*D);U>=0&&U<=1&&(N[M++]=U),W>=0&&W<=1&&(N[M++]=W)}}return M}function E(w,_,I){var L=w+I-2*_;return L===0?.5:(w-_)/L}function T(w,_,I,L,N){var D=(_-w)*L+w,R=(I-_)*L+_,k=(R-D)*L+D;N[0]=w,N[1]=D,N[2]=k,N[3]=k,N[4]=R,N[5]=I}function b(w,_,I,L,N,D,R,k,M){var U,B=.005,j=Infinity;r[0]=R,r[1]=k;for(var W=0;W<1;W+=.05){i[0]=m(w,I,N,W),i[1]=m(_,L,D,W);var V=C(r,i);V<j&&(U=W,j=V)}j=Infinity;for(var z=0;z<32&&!(B<f);z++){var J=U-B,Z=U+B;i[0]=m(w,I,N,J),i[1]=m(_,L,D,J);var V=C(i,r);if(J>=0&&V<j)U=J,j=V;else{n[0]=m(w,I,N,Z),n[1]=m(_,L,D,Z);var de=C(n,r);Z<=1&&de<j?(U=Z,j=de):B*=.5}}return M&&(M[0]=m(w,I,N,U),M[1]=m(_,L,D,U)),S(j)}F.cubicAt=t,F.cubicDerivativeAt=a,F.cubicRootAt=s,F.cubicExtrema=u,F.cubicSubdivide=h,F.cubicProjectPoint=p,F.quadraticAt=m,F.quadraticDerivativeAt=v,F.quadraticRootAt=y,F.quadraticExtremum=E,F.quadraticSubdivide=T,F.quadraticProjectPoint=b},Sp2Z:function(H,F,d){var O=d("3LNs"),x=d("/y7N"),C=d("AVZG"),A=d("Znkb"),S=O.extend({makeElOption:function(r,i,n,e,l){var t=n.axis,a=t.grid,s=e.get("type"),u=g(a,t).getOtherAxis(t).getGlobalExtent(),h=t.toGlobalCoord(t.dataToCoord(i,!0));if(s&&s!=="none"){var p=x.buildElStyle(e),m=f[s](t,h,u);m.style=p,r.graphicKey=m.type,r.pointer=m}var v=C.layout(a.model,n);x.buildCartesianSingleLabelElOption(i,r,v,n,e,l)},getHandleTransform:function(r,i,n){var e=C.layout(i.axis.grid.model,i,{labelInside:!1});return e.labelMargin=n.get("handle.margin"),{position:x.getTransformedPosition(i.axis,r,e),rotation:e.rotation+(e.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(r,i,n,e){var l=n.axis,t=l.grid,a=l.getGlobalExtent(!0),s=g(t,l).getOtherAxis(l).getGlobalExtent(),u=l.dim==="x"?0:1,h=r.position;h[u]+=i[u],h[u]=Math.min(a[1],h[u]),h[u]=Math.max(a[0],h[u]);var p=(s[1]+s[0])/2,m=[p,p];m[u]=h[u];var v=[{verticalAlign:"middle"},{align:"center"}];return{position:h,rotation:r.rotation,cursorPoint:m,tooltipOption:v[u]}}});function g(r,i){var n={};return n[i.dim+"AxisIndex"]=i.index,r.getCartesian(n)}var f={line:function(r,i,n){var e=x.makeLineShape([i,n[0]],[i,n[1]],c(r));return{type:"Line",subPixelOptimize:!0,shape:e}},shadow:function(r,i,n){var e=Math.max(1,r.getBandWidth()),l=n[1]-n[0];return{type:"Rect",shape:x.makeRectShape([i-e/2,n[0]],[e,l],c(r))}}};function c(r){return r.dim==="x"?0:1}A.registerAxisPointerClass("CartesianAxisPointer",S);var o=S;H.exports=o},Sq3C:function(H,F,d){var O=d("sKgW"),x=d("zoYe"),C=d("wy8a"),A=d("quyA"),S=d("Z1HP"),g=d("Em2t"),f=Math.ceil;function c(o,r){r=r===void 0?" ":x(r);var i=r.length;if(i<2)return i?O(r,o):r;var n=O(r,f(o/S(r)));return A(r)?C(g(n),0,o).join(""):n.slice(0,o)}H.exports=c},SqI9:function(H,F,d){var O=d("y+Vt"),x=d("iXp4"),C=O.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:x(O.prototype.brush),buildPath:function(S,g){var f=g.cx,c=g.cy,o=Math.max(g.r0||0,0),r=Math.max(g.r,0),i=g.startAngle,n=g.endAngle,e=g.clockwise,l=Math.cos(i),t=Math.sin(i);S.moveTo(l*o+f,t*o+c),S.lineTo(l*r+f,t*r+c),S.arc(f,c,r,i,n,!e),S.lineTo(Math.cos(n)*o+f,Math.sin(n)*o+c),o!==0&&S.arc(f,c,o,n,i,e),S.closePath()}});H.exports=C},SrGk:function(H,F,d){var O=d("hydK"),x=O.createElement,C=d("bYtY"),A=d("y+Vt"),S=d("Dagg"),g=d("dqUG"),f=d("P47w"),c=f.path,o=f.image,r=f.text,i="0",n="1";function e(t,a,s,u,h){this._zrId=t,this._svgRoot=a,this._tagNames=typeof s=="string"?[s]:s,this._markLabel=u,this._domName=h||"_dom",this.nextId=0}e.prototype.createElement=x,e.prototype.getDefs=function(t){var a=this._svgRoot,s=this._svgRoot.getElementsByTagName("defs");return s.length===0?t?(s=a.insertBefore(this.createElement("defs"),a.firstChild),s.contains||(s.contains=function(u){var h=s.children;if(!h)return!1;for(var p=h.length-1;p>=0;--p)if(h[p]===u)return!0;return!1}),s):null:s[0]},e.prototype.update=function(t,a){if(!t)return;var s=this.getDefs(!1);if(t[this._domName]&&s.contains(t[this._domName]))typeof a=="function"&&a(t);else{var u=this.add(t);u&&(t[this._domName]=u)}},e.prototype.addDom=function(t){var a=this.getDefs(!0);a.appendChild(t)},e.prototype.removeDom=function(t){var a=this.getDefs(!1);a&&t[this._domName]&&(a.removeChild(t[this._domName]),t[this._domName]=null)},e.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var a=[];return C.each(this._tagNames,function(s){var u=t.getElementsByTagName(s);a=a.concat([].slice.call(u))}),a},e.prototype.markAllUnused=function(){var t=this.getDoms(),a=this;C.each(t,function(s){s[a._markLabel]=i})},e.prototype.markUsed=function(t){t&&(t[this._markLabel]=n)},e.prototype.removeUnused=function(){var t=this.getDefs(!1);if(!t)return;var a=this.getDoms(),s=this;C.each(a,function(u){u[s._markLabel]!==n&&t.removeChild(u)})},e.prototype.getSvgProxy=function(t){return t instanceof A?c:t instanceof S?o:t instanceof g?r:c},e.prototype.getTextSvgElement=function(t){return t.__textSvgEl},e.prototype.getSvgElement=function(t){return t.__svgEl};var l=e;H.exports=l},Swgg:function(H,F,d){var O=d("fc+c"),x=O.extend({type:"dataZoom.select"});H.exports=x},Sxd8:function(H,F,d){var O=d("ZCgT");function x(C){var A=O(C),S=A%1;return A===A?S?A-S:A:0}H.exports=x},T1rO:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("zdCA"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},T4UG:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=d("ItGF"),S=d("7aKB"),g=S.formatTime,f=S.encodeHTML,c=S.addCommas,o=S.getTooltipMarker,r=d("4NO4"),i=d("bLfw"),n=d("5Hur"),e=d("OKJ2"),l=d("+TT/"),t=l.getLayoutParams,a=l.mergeLayoutParam,s=d("9H2F"),u=s.createTask,h=d("D5nY"),p=h.prepareSource,m=h.getSource,v=d("KxfA"),y=v.retrieveRawValue,E=r.makeInner(),T=i.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(M,U,B,j){this.seriesIndex=this.componentIndex,this.dataTask=u({count:_,reset:I}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(M,B),p(this);var W=this.getInitialData(M,B);N(W,this),this.dataTask.context.data=W,E(this).dataBeforeProcessed=W,b(this)},mergeDefaultAndTheme:function(M,U){var B=this.layoutMode,j=B?t(M):{},W=this.subType;i.hasClass(W)&&(W+="Series"),C.merge(M,U.getTheme().get(this.subType)),C.merge(M,this.getDefaultOption()),r.defaultEmphasis(M,"label",["show"]),this.fillDataTextStyle(M.data),B&&a(M,j,B)},mergeOption:function(M,U){M=C.merge(this.option,M,!0),this.fillDataTextStyle(M.data);var B=this.layoutMode;B&&a(this.option,M,B),p(this);var j=this.getInitialData(M,U);N(j,this),this.dataTask.dirty(),this.dataTask.context.data=j,E(this).dataBeforeProcessed=j,b(this)},fillDataTextStyle:function(M){if(M&&!C.isTypedArray(M))for(var U=["show"],B=0;B<M.length;B++)M[B]&&M[B].label&&r.defaultEmphasis(M[B],"label",U)},getInitialData:function(){},appendData:function(M){var U=this.getRawData();U.appendData(M.data)},getData:function(M){var U=R(this);if(U){var B=U.context.data;return M==null?B:B.getLinkedData(M)}else return E(this).data},setData:function(M){var U=R(this);if(U){var B=U.context;B.data!==M&&U.modifyOutputEnd&&U.setOutputEnd(M.count()),B.outputData=M,U!==this.dataTask&&(B.data=M)}E(this).data=M},getSource:function(){return m(this)},getRawData:function(){return E(this).dataBeforeProcessed},getBaseAxis:function(){var M=this.coordinateSystem;return M&&M.getBaseAxis&&M.getBaseAxis()},formatTooltip:function(M,U,B,j){var W=this;j=j||"html";var V=j==="html"?"<br/>":`
|
|
|
`,z=j==="richText",J={},Z=0;function de(ue){var Ce=C.reduce(ue,function(Ge,gt,qe){var Le=ve.getDimensionInfo(qe);return Ge|=Le&&Le.tooltip!==!1&&Le.displayName!=null},0),Ie=[];xe.length?C.each(xe,function(Ge){ce(y(ve,M,Ge),Ge)}):C.each(ue,ce);function ce(Ge,gt){var qe=ve.getDimensionInfo(gt);if(!qe||qe.otherDims.tooltip===!1)return;var Le=qe.type,Ot="sub"+W.seriesIndex+"at"+Z,$e=o({color:ke,type:"subItem",renderMode:j,markerId:Ot}),xt=typeof $e=="string"?$e:$e.content,Ht=(Ce?xt+f(qe.displayName||"-")+": ":"")+f(Le==="ordinal"?Ge+"":Le==="time"?U?"":g("yyyy/MM/dd hh:mm:ss",Ge):c(Ge));Ht&&Ie.push(Ht),z&&(J[Ot]=ke,++Z)}var Ae=Ce?z?`
|
|
|
`:"<br/>":"",Te=Ae+Ie.join(Ae||", ");return{renderMode:j,content:Te,style:J}}function ie(ue){return{renderMode:j,content:f(c(ue)),style:J}}var ve=this.getData(),xe=ve.mapDimension("defaultedTooltip",!0),_e=xe.length,Ue=this.getRawValue(M),fe=C.isArray(Ue),ke=ve.getItemVisual(M,"color");C.isObject(ke)&&ke.colorStops&&(ke=(ke.colorStops[0]||{}).color),ke=ke||"transparent";var se=_e>1||fe&&!_e?de(Ue):ie(_e?y(ve,M,xe[0]):fe?Ue[0]:Ue),te=se.content,Ve=W.seriesIndex+"at"+Z,ae=o({color:ke,type:"item",renderMode:j,markerId:Ve});J[Ve]=ke,++Z;var Q=ve.getName(M),G=this.name;r.isNameSpecified(this)||(G=""),G=G?f(G)+(U?": ":V):"";var Y=typeof ae=="string"?ae:ae.content,me=U?Y+G+te:G+Y+(Q?f(Q)+": "+te:te);return{html:me,markers:J}},isAnimationEnabled:function(){if(A.node)return!1;var M=this.getShallow("animation");return M&&(this.getData().count()>this.getShallow("animationThreshold")&&(M=!1)),M},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(M,U,B){var j=this.ecModel,W=n.getColorFromPalette.call(this,M,U,B);return W||(W=j.getColorFromPalette(M,U,B)),W},coordDimToDataDim:function(M){return this.getRawData().mapDimension(M,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});C.mixin(T,e),C.mixin(T,n);function b(M){var U=M.name;r.isNameSpecified(M)||(M.name=w(M)||U)}function w(M){var U=M.getRawData(),B=U.mapDimension("seriesName",!0),j=[];return C.each(B,function(W){var V=U.getDimensionInfo(W);V.displayName&&j.push(V.displayName)}),j.join(" ")}function _(M){return M.model.getRawData().count()}function I(M){var U=M.model;return U.setData(U.getRawData().cloneShallow()),L}function L(M,U){U.outputData&&M.end>U.outputData.count()&&U.model.getRawData().cloneShallow(U.outputData)}function N(M,U){C.each(M.CHANGABLE_METHODS,function(B){M.wrapMethod(B,C.curry(D,U))})}function D(M){var U=R(M);U&&U.setOutputEnd(this.count())}function R(M){var U=(M.ecModel||{}).scheduler,B=U&&U.getPipeline(M.uid);if(B){var j=B.currentTask;if(j){var W=j.agentStubMap;W&&(j=W.get(M.uid))}return j}}var k=T;H.exports=k},T6xi:function(H,F,d){var O=d("YgsL"),x=d("nCxF");function C(A,S,g){var f=S.points,c=S.smooth;if(f&&f.length>=2){if(c&&c!=="spline"){var o=x(f,c,g,S.smoothConstraint);A.moveTo(f[0][0],f[0][1]);for(var r=f.length,i=0;i<(g?r:r-1);i++){var n=o[i*2],e=o[i*2+1],l=f[(i+1)%r];A.bezierCurveTo(n[0],n[1],e[0],e[1],l[0],l[1])}}else{c==="spline"&&(f=O(f,g)),A.moveTo(f[0][0],f[0][1]);for(var i=1,t=f.length;i<t;i++)A.lineTo(f[i][0],f[i][1])}g&&A.closePath()}}F.buildPath=C},TIY9:function(H,F,d){var O=d("bYtY"),x=O.each,C=d("vafp"),A=d("4NO4"),S=A.makeInner,g=d("Mgri"),f=d("F5Ls"),c=d("a9QJ"),o=d("p/La"),r=S(),i={load:function(e,l,t){var a=r(l).parsed;if(a)return a;var s=l.specialAreas||{},u=l.geoJSON,h;try{h=u?C(u,t):[]}catch(p){throw new Error(`Invalid geoJson format
|
|
|
`+p.message)}return g(e,h),x(h,function(p){var m=p.name;f(e,p),c(e,p),o(e,p);var v=s[m];v&&p.transformTo(v.left,v.top,v.width,v.height)}),r(l).parsed={regions:h,boundingRect:n(h)}}};function n(e){for(var l,t=0;t<e.length;t++){var a=e[t].getBoundingRect();l=l||a.clone(),l.union(a)}return l}H.exports=i},TJmX:function(H,F,d){var O=d("zM3Q"),x=["itemStyle","borderColor"],C=["itemStyle","borderColor0"],A=["itemStyle","color"],S=["itemStyle","color0"],g={seriesType:"candlestick",plan:O(),performRawSeries:!0,reset:function(f,c){var o=f.getData();if(o.setVisual({legendSymbol:"roundRect",colorP:n(1,f),colorN:n(-1,f),borderColorP:e(1,f),borderColorN:e(-1,f)}),c.isSeriesFiltered(f))return;var r=f.pipelineContext.large;return!r&&{progress:i};function i(l,t){for(var a;(a=l.next())!=null;){var s=t.getItemModel(a),u=t.getItemLayout(a).sign;t.setItemVisual(a,{color:n(u,s),borderColor:e(u,s)})}}function n(l,t){return t.get(l>0?A:S)}function e(l,t){return t.get(l>0?x:C)}}};H.exports=g},TNol:function(H,F,d){"use strict";var O=d("q1tI"),x=d.n(O),C=d("MNnm"),A=Object(C.a)()?O.useLayoutEffect:O.useEffect;F.a=A},TWL2:function(H,F,d){var O=d("IwbS"),x=d("bYtY"),C=d("6Ic6");function A(o,r){O.Group.call(this);var i=new O.Polygon,n=new O.Polyline,e=new O.Text;this.add(i),this.add(n),this.add(e),this.highDownOnUpdate=function(l,t){t==="emphasis"?(n.ignore=n.hoverIgnore,e.ignore=e.hoverIgnore):(n.ignore=n.normalIgnore,e.ignore=e.normalIgnore)},this.updateData(o,r,!0)}var S=A.prototype,g=["itemStyle","opacity"];S.updateData=function(o,r,i){var n=this.childAt(0),e=o.hostModel,l=o.getItemModel(r),t=o.getItemLayout(r),a=o.getItemModel(r).get(g);a=a==null?1:a,n.useStyle({}),i?(n.setShape({points:t.points}),n.setStyle({opacity:0}),O.initProps(n,{style:{opacity:a}},e,r)):O.updateProps(n,{style:{opacity:a},shape:{points:t.points}},e,r);var s=l.getModel("itemStyle"),u=o.getItemVisual(r,"color");n.setStyle(x.defaults({lineJoin:"round",fill:u},s.getItemStyle(["opacity"]))),n.hoverStyle=s.getModel("emphasis").getItemStyle(),this._updateLabel(o,r),O.setHoverStyle(this)},S._updateLabel=function(o,r){var i=this.childAt(1),n=this.childAt(2),e=o.hostModel,l=o.getItemModel(r),t=o.getItemLayout(r),a=t.label,s=o.getItemVisual(r,"color");O.updateProps(i,{shape:{points:a.linePoints||a.linePoints}},e,r),O.updateProps(n,{style:{x:a.x,y:a.y}},e,r),n.attr({rotation:a.rotation,origin:[a.x,a.y],z2:10});var u=l.getModel("label"),h=l.getModel("emphasis.label"),p=l.getModel("labelLine"),m=l.getModel("emphasis.labelLine"),s=o.getItemVisual(r,"color");O.setLabelStyle(n.style,n.hoverStyle={},u,h,{labelFetcher:o.hostModel,labelDataIndex:r,defaultText:o.getName(r),autoColor:s,useInsideStyle:!!a.inside},{textAlign:a.textAlign,textVerticalAlign:a.verticalAlign}),n.ignore=n.normalIgnore=!u.get("show"),n.hoverIgnore=!h.get("show"),i.ignore=i.normalIgnore=!p.get("show"),i.hoverIgnore=!m.get("show"),i.setStyle({stroke:s}),i.setStyle(p.getModel("lineStyle").getLineStyle()),i.hoverStyle=m.getModel("lineStyle").getLineStyle()},x.inherits(A,O.Group);var f=C.extend({type:"funnel",render:function(o,r,i){var n=o.getData(),e=this._data,l=this.group;n.diff(e).add(function(t){var a=new A(n,t);n.setItemGraphicEl(t,a),l.add(a)}).update(function(t,a){var s=e.getItemGraphicEl(a);s.updateData(n,t),l.add(s),n.setItemGraphicEl(t,s)}).remove(function(t){var a=e.getItemGraphicEl(t);l.remove(a)}).execute(),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),c=f;H.exports=c},TYVI:function(H,F,d){var O=d("5GtS"),x=d("T4UG"),C=x.extend({type:"series.gauge",getInitialData:function(S,g){return O(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=C;H.exports=A},Tghj:function(H,F,d){(function(O){var x;typeof window!="undefined"?x=window.__DEV__:typeof O!="undefined"&&(x=O.__DEV__),typeof x=="undefined"&&(x=!0);var C=x;F.__DEV__=C}).call(this,d("yLpj"))},ThAp:function(H,F,d){var O=d("bYtY"),x=d("5GtS"),C=d("T4UG"),A=d("7aKB"),S=A.encodeHTML,g=A.addCommas,f=d("cCMj"),c=d("KxfA"),o=c.retrieveRawAttr,r=d("W4dC"),i=d("D5nY"),n=i.makeSeriesEncodeForNameBased,e=C.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(t){for(var a=x(this,{coordDimensions:["value"],encodeDefaulter:O.curry(n,this)}),s=a.mapDimension("value"),u=O.createHashMap(),h=[],p=[],m=0,v=a.count();m<v;m++){var y=a.getName(m);u.set(y,!0),h.push({name:y,value:a.get(s,m),selected:o(a,m,"selected")})}var E=r.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return O.each(E.regions,function(T){var b=T.name;u.get(b)||(h.push({name:b}),p.push(b))}),this.updateSelectedMap(h),a.appendValues([],p),a},getHostGeoModel:function(){var t=this.option.geoIndex;return t!=null?this.dependentModels.geo[t]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(t){var a=this.getData();return a.get(a.mapDimension("value"),t)},getRegionModel:function(t){var a=this.getData();return a.getItemModel(a.indexOfName(t))},formatTooltip:function(t){for(var a=this.getData(),s=g(this.getRawValue(t)),u=a.getName(t),h=this.seriesGroup,p=[],m=0;m<h.length;m++){var v=h[m].originalData.indexOfName(u),y=a.mapDimension("value");isNaN(h[m].originalData.get(y,v))||p.push(S(h[m].name))}return p.join(", ")+"<br />"+S(u+" : "+s)},getTooltipPosition:function(t){if(t!=null){var a=this.getData().getName(t),s=this.coordinateSystem,u=s.getRegion(a);return u&&s.dataToPoint(u.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});O.mixin(e,f);var l=e;H.exports=l},TkdX:function(H,F,d){var O=d("bYtY"),x=d("IwbS"),C={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},A=2,S=4;function g(e,l,t){x.Group.call(this);var a=new x.Sector({z2:A});a.seriesIndex=l.seriesIndex;var s=new x.Text({z2:S,silent:e.getModel("label").get("silent")});this.add(a),this.add(s),this.updateData(!0,e,"normal",l,t);function u(){s.ignore=s.hoverIgnore}function h(){s.ignore=s.normalIgnore}this.on("emphasis",u).on("normal",h).on("mouseover",u).on("mouseout",h)}var f=g.prototype;f.updateData=function(e,l,t,a,s){this.node=l,l.piece=this,a=a||this._seriesModel,s=s||this._ecModel;var u=this.childAt(0);u.dataIndex=l.dataIndex;var h=l.getModel(),p=l.getLayout(),m=O.extend({},p);m.label=null;var v=o(l,a,s);n(l,a,v);var y=h.getModel("itemStyle").getItemStyle(),E;if(t==="normal")E=y;else{var T=h.getModel(t+".itemStyle").getItemStyle();E=O.merge(T,y)}E=O.defaults({lineJoin:"bevel",fill:E.fill||v},E),e?(u.setShape(m),u.shape.r=p.r0,x.updateProps(u,{shape:{r:p.r}},a,l.dataIndex),u.useStyle(E)):typeof E.fill=="object"&&E.fill.type||typeof u.style.fill=="object"&&u.style.fill.type?(x.updateProps(u,{shape:m},a),u.useStyle(E)):x.updateProps(u,{shape:m,style:E},a),this._updateLabel(a,v,t);var b=h.getShallow("cursor");if(b&&u.attr("cursor",b),e){var w=a.getShallow("highlightPolicy");this._initEvents(u,l,a,w)}this._seriesModel=a||this._seriesModel,this._ecModel=s||this._ecModel,x.setHoverStyle(this)},f.onEmphasis=function(e){var l=this;this.node.hostTree.root.eachNode(function(t){t.piece&&(l.node===t?t.piece.updateData(!1,t,"emphasis"):i(t,l.node,e)?t.piece.childAt(0).trigger("highlight"):e!==C.NONE&&t.piece.childAt(0).trigger("downplay"))})},f.onNormal=function(){this.node.hostTree.root.eachNode(function(e){e.piece&&e.piece.updateData(!1,e,"normal")})},f.onHighlight=function(){this.updateData(!1,this.node,"highlight")},f.onDownplay=function(){this.updateData(!1,this.node,"downplay")},f._updateLabel=function(e,l,t){var a=this.node.getModel(),s=a.getModel("label"),u=t==="normal"||t==="emphasis"?s:a.getModel(t+".label"),h=a.getModel("emphasis.label"),p=O.retrieve(e.getFormattedLabel(this.node.dataIndex,t,null,null,"label"),this.node.name);U("show")===!1&&(p="");var m=this.node.getLayout(),v=u.get("minAngle");v==null&&(v=s.get("minAngle")),v=v/180*Math.PI;var y=m.endAngle-m.startAngle;v!=null&&Math.abs(y)<v&&(p="");var E=this.childAt(1);x.setLabelStyle(E.style,E.hoverStyle||{},s,h,{defaultText:u.getShallow("show")?p:null,autoColor:l,useInsideStyle:!0});var T=(m.startAngle+m.endAngle)/2,b=Math.cos(T),w=Math.sin(T),_,I=U("position"),L=U("distance")||0,N=U("align");I==="outside"?(_=m.r+L,N=T>Math.PI/2?"right":"left"):!N||N==="center"?(_=(m.r+m.r0)/2,N="center"):N==="left"?(_=m.r0+L,T>Math.PI/2&&(N="right")):N==="right"&&(_=m.r-L,T>Math.PI/2&&(N="left")),E.attr("style",{text:p,textAlign:N,textVerticalAlign:U("verticalAlign")||"middle",opacity:U("opacity")});var D=_*b+m.cx,R=_*w+m.cy;E.attr("position",[D,R]);var k=U("rotate"),M=0;k==="radial"?(M=-T,M<-Math.PI/2&&(M+=Math.PI)):k==="tangential"?(M=Math.PI/2-T,M>Math.PI/2?M-=Math.PI:M<-Math.PI/2&&(M+=Math.PI)):typeof k=="number"&&(M=k*Math.PI/180),E.attr("rotation",M);function U(B){var j=u.get(B);return j==null?s.get(B):j}},f._initEvents=function(e,l,t,a){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var s=this,u=function(){s.onEmphasis(a)},h=function(){s.onNormal()},p=function(){s.onDownplay()},m=function(){s.onHighlight()};t.isAnimationEnabled()&&e.on("mouseover",u).on("mouseout",h).on("emphasis",u).on("normal",h).on("downplay",p).on("highlight",m)},O.inherits(g,x.Group);var c=g;function o(e,l,t){var a=e.getVisual("color"),s=e.getVisual("visualMeta");(!s||s.length===0)&&(a=null);var u=e.getModel("itemStyle").get("color");if(u)return u;if(a)return a;if(e.depth===0)return t.option.color[0];var h=t.option.color.length;return u=t.option.color[r(e)%h],u}function r(e){for(var l=e;l.depth>1;)l=l.parentNode;var t=e.getAncestors()[0];return O.indexOf(t.children,l)}function i(e,l,t){return t===C.NONE?!1:t===C.SELF?e===l:t===C.ANCESTOR?e===l||e.isAncestorOf(l):e===l||e.isDescendantOf(l)}function n(e,l,t){var a=l.getData();a.setItemVisual(e.dataIndex,"color",t)}H.exports=c},Tp9H:function(H,F,d){var O=d("ItGF"),x=d("Kagy"),C=d("IUWy"),A=x.toolbox.saveAsImage;function S(c){this.model=c}S.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()},S.prototype.unusable=!O.canvasSupported;var g=S.prototype;g.onclick=function(c,o){var r=this.model,i=r.get("name")||c.get("title.0.text")||"echarts",n=o.getZr().painter.getType()==="svg",e=n?"svg":r.get("type",!0)||"png",l=o.getConnectedDataURL({type:e,backgroundColor:r.get("backgroundColor",!0)||c.get("backgroundColor")||"#fff",connectedBackgroundColor:r.get("connectedBackgroundColor"),excludeComponents:r.get("excludeComponents"),pixelRatio:r.get("pixelRatio")});if(typeof MouseEvent=="function"&&!O.browser.ie&&!O.browser.edge){var t=document.createElement("a");t.download=i+"."+e,t.target="_blank",t.href=l;var a=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});t.dispatchEvent(a)}else if(window.navigator.msSaveOrOpenBlob){for(var s=atob(l.split(",")[1]),u=s.length,h=new Uint8Array(u);u--;)h[u]=s.charCodeAt(u);var p=new Blob([h]);window.navigator.msSaveOrOpenBlob(p,i+"."+e)}else{var m=r.get("lang"),v='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(m&&m[0]||"")+'" /></body>',y=window.open();y.document.write(v)}},C.register("saveAsImage",S);var f=S;H.exports=f},"U/Mo":function(H,F){function d(x){var C=x.coordinateSystem;if(C.type!=="view")return 1;var A=x.option.nodeScaleRatio,S=C.scale,g=S&&S[0]||1,f=C.getZoom(),c=(f-1)*A+1;return c/g}function O(x){var C=x.getVisual("symbolSize");return C instanceof Array&&(C=(C[0]+C[1])/2),+C}F.getNodeGlobalScale=d,F.getSymbolSize=O},UADf:function(H,F,d){},UESt:function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="RightOutlined";var f=F.a=x.forwardRef(g)},UOVi:function(H,F,d){var O=d("bYtY"),x=d("7aKB"),C=["x","y","z","radius","angle","single"],A=["cartesian2d","polar","singleAxis"];function S(o){return O.indexOf(A,o)>=0}function g(o,r){o=o.slice();var i=O.map(o,x.capitalFirst);r=(r||[]).slice();var n=O.map(r,x.capitalFirst);return function(e,l){O.each(o,function(t,a){for(var s={name:t,capital:i[a]},u=0;u<r.length;u++)s[r[u]]=t+n[u];e.call(l,s)})}}var f=g(C,["axisIndex","axis","index","id"]);function c(o,r,i){return function(t){var a={nodes:[],records:{}};if(r(function(h){a.records[h.name]={}}),!t)return a;l(t,a);var s;do s=!1,o(u);while(s);function u(h){!n(h,a)&&e(h,a)&&(l(h,a),s=!0)}return a};function n(t,a){return O.indexOf(a.nodes,t)>=0}function e(t,a){var s=!1;return r(function(u){O.each(i(t,u)||[],function(h){a.records[u.name][h]&&(s=!0)})}),s}function l(t,a){a.nodes.push(t),r(function(s){O.each(i(t,s)||[],function(u){a.records[s.name][u]=!0})})}}F.isCoordSupported=S,F.createNameEach=g,F.eachAxisDim=f,F.createLinkedNodesFinder=c},Uc92:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},UnoB:function(H,F,d){var O=d("bYtY"),x=d("OELB");function C(g,f){g.eachSeriesByType("themeRiver",function(c){var o=c.getData(),r=c.coordinateSystem,i={},n=r.getRect();i.rect=n;var e=c.get("boundaryGap"),l=r.getAxis();if(i.boundaryGap=e,l.orient==="horizontal"){e[0]=x.parsePercent(e[0],n.height),e[1]=x.parsePercent(e[1],n.height);var t=n.height-e[0]-e[1];A(o,c,t)}else{e[0]=x.parsePercent(e[0],n.width),e[1]=x.parsePercent(e[1],n.width);var a=n.width-e[0]-e[1];A(o,c,a)}o.setLayout("layoutInfo",i)})}function A(g,f,c){if(!g.count())return;for(var o=f.coordinateSystem,r=f.getLayerSeries(),i=g.mapDimension("single"),n=g.mapDimension("value"),e=O.map(r,function(v){return O.map(v.indices,function(y){var E=o.dataToPoint(g.get(i,y));return E[1]=g.get(n,y),E})}),l=S(e),t=l.y0,a=c/l.max,s=r.length,u=r[0].indices.length,h,p=0;p<u;++p){h=t[p]*a,g.setItemLayout(r[0].indices[p],{layerIndex:0,x:e[0][p][0],y0:h,y:e[0][p][1]*a});for(var m=1;m<s;++m)h+=e[m-1][p][1]*a,g.setItemLayout(r[m].indices[p],{layerIndex:m,x:e[m][p][0],y0:h,y:e[m][p][1]*a})}}function S(g){for(var f=g.length,c=g[0].length,o=[],r=[],i=0,n,e={},l=0;l<c;++l){for(var t=0,n=0;t<f;++t)n+=g[t][l][1];n>i&&(i=n),o.push(n)}for(var a=0;a<c;++a)r[a]=(i-o[a])/2;i=0;for(var s=0;s<c;++s){var u=o[s]+r[s];u>i&&(i=u)}return e.y0=r,e.max=i,e}H.exports=C},Urep:function(H,F,d){},V7ic:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("digP")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="FileTwoTone";var c=A.forwardRef(f);F.default=c},VFCP:function(H,F,d){d("dBmv"),d("KamJ")},VPsl:function(H,F){function d(O){O.eachSeriesByType("map",function(x){var C=x.get("color"),A=x.getModel("itemStyle"),S=A.get("areaColor"),g=A.get("color")||C[x.seriesIndex%C.length];x.getData().setVisual({areaColor:S,color:g})})}H.exports=d},VR9l:function(H,F,d){var O=d("KCsZ"),x=O([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),C={getItemStyle:function(A,S){var g=x(this,A,S),f=this.getBorderLineDash();return f&&(g.lineDash=f),g},getBorderLineDash:function(){var A=this.get("borderType");return A==="solid"||A==null?null:A==="dashed"?[5,5]:[1,1]}};H.exports=C},VSLf:function(H,F,d){d("I+Bx"),d("F0hE"),d("bBKM")},VSMT:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.decodeUTF8=O,F.encodeUTF8=x;function O(C){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(C))}catch(S){if(S instanceof URIError&&A)return C;throw S}}function x(C){return unescape(encodeURIComponent(C))}},VXYp:function(H,F,d){var O=d("bYtY"),x=d("SgGq"),C=d("iLNv"),A="\0_ec_dataZoom_roams";function S(e,l){var t=c(e),a=l.dataZoomId,s=l.coordId;O.each(t,function(p,m){var v=p.dataZoomInfos;v[a]&&O.indexOf(l.allCoordIds,s)<0&&(delete v[a],p.count--)}),r(t);var u=t[s];u||(u=t[s]={coordId:s,dataZoomInfos:{},count:0},u.controller=o(e,u),u.dispatchAction=O.curry(i,e)),!u.dataZoomInfos[a]&&u.count++,u.dataZoomInfos[a]=l;var h=n(u.dataZoomInfos);u.controller.enable(h.controlType,h.opt),u.controller.setPointerChecker(l.containsPoint),C.createOrUpdate(u,"dispatchAction",l.dataZoomModel.get("throttle",!0),"fixRate")}function g(e,l){var t=c(e);O.each(t,function(a){a.controller.dispose();var s=a.dataZoomInfos;s[l]&&(delete s[l],a.count--)}),r(t)}function f(e){return e.type+"\0_"+e.id}function c(e){var l=e.getZr();return l[A]||(l[A]={})}function o(e,l){var t=new x(e.getZr());return O.each(["pan","zoom","scrollMove"],function(a){t.on(a,function(s){var u=[];O.each(l.dataZoomInfos,function(h){if(!s.isAvailableBehavior(h.dataZoomModel.option))return;var p=(h.getRange||{})[a],m=p&&p(l.controller,s);!h.dataZoomModel.get("disabled",!0)&&m&&u.push({dataZoomId:h.dataZoomId,start:m[0],end:m[1]})}),u.length&&l.dispatchAction(u)})}),t}function r(e){O.each(e,function(l,t){l.count||(l.controller.dispose(),delete e[t])})}function i(e,l){e.dispatchAction({type:"dataZoom",batch:l})}function n(e){var l,t="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},s=!0;return O.each(e,function(u){var h=u.dataZoomModel,p=h.get("disabled",!0)?!1:h.get("zoomLock",!0)?"move":!0;a[t+p]>a[t+l]&&(l=p),s&=h.get("preventDefaultMouseMove",!0)}),{controlType:l,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!s}}}F.register=S,F.unregister=g,F.generateCoordId=f},VaxA:function(H,F,d){var O=d("bYtY");function x(g,f,c){if(g&&O.indexOf(f,g.type)>=0){var o=c.getData().tree.root,r=g.targetNode;if(typeof r=="string"&&(r=o.getNodeById(r)),r&&o.contains(r))return{node:r};var i=g.targetNodeId;if(i!=null&&(r=o.getNodeById(i)))return{node:r}}}function C(g){for(var f=[];g;)g=g.parentNode,g&&f.push(g);return f.reverse()}function A(g,f){var c=C(g);return O.indexOf(c,f)>=0}function S(g,f){for(var c=[];g;){var o=g.dataIndex;c.push({name:g.name,dataIndex:o,value:f.getRawValue(o)}),g=g.parentNode}return c.reverse(),c}F.retrieveTargetInfo=x,F.getPathToRoot=C,F.aboveViewRoot=A,F.wrapTreePathInfo=S},Vi4m:function(H,F,d){var O=d("bYtY");function x(A){A!=null&&O.extend(this,A),this.otherDims={}}var C=x;H.exports=C},Vl3Y:function(H,F,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("J4zp"),A=d.n(C),S=d("lSNA"),g=d.n(S),f=d("q1tI"),c=d("TSYQ"),o=d.n(c),r=d("85Yc"),i=d("H84U"),n=d("BGR+"),e=f.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),l=f.createContext({updateItemErrors:function(){}}),t=function(lt){var Ct=Object(n.default)(lt,["prefixCls"]);return f.createElement(r.FormProvider,Ct)};function a(ee){return typeof ee=="object"&&ee!=null&&ee.nodeType===1}function s(ee,lt){return(!lt||ee!=="hidden")&&ee!=="visible"&&ee!=="clip"}function u(ee,lt){if(ee.clientHeight<ee.scrollHeight||ee.clientWidth<ee.scrollWidth){var Ct=getComputedStyle(ee,null);return s(Ct.overflowY,lt)||s(Ct.overflowX,lt)||function(dt){var _t=function(ir){if(!ir.ownerDocument||!ir.ownerDocument.defaultView)return null;try{return ir.ownerDocument.defaultView.frameElement}catch($r){return null}}(dt);return!!_t&&(_t.clientHeight<dt.scrollHeight||_t.clientWidth<dt.scrollWidth)}(ee)}return!1}function h(ee,lt,Ct,dt,_t,ir,$r,nr){return ir<ee&&$r>lt||ir>ee&&$r<lt?0:ir<=ee&&nr<=Ct||$r>=lt&&nr>=Ct?ir-ee-dt:$r>lt&&nr<Ct||ir<ee&&nr>Ct?$r-lt+_t:0}var p=function(ee,lt){var Ct=window,dt=lt.scrollMode,_t=lt.block,ir=lt.inline,$r=lt.boundary,nr=lt.skipOverflowHiddenElements,lr=typeof $r=="function"?$r:function(Xn){return Xn!==$r};if(!a(ee))throw new TypeError("Invalid target");for(var zt=document.scrollingElement||document.documentElement,Ut=[],st=ee;a(st)&&lr(st);){if((st=st.parentElement)===zt){Ut.push(st);break}st!=null&&st===document.body&&u(st)&&!u(document.documentElement)||st!=null&&u(st,nr)&&Ut.push(st)}for(var Hr=Ct.visualViewport?Ct.visualViewport.width:innerWidth,mn=Ct.visualViewport?Ct.visualViewport.height:innerHeight,In=window.scrollX||pageXOffset,Yn=window.scrollY||pageYOffset,Mi=ee.getBoundingClientRect(),wn=Mi.height,Rn=Mi.width,kt=Mi.top,vt=Mi.right,Re=Mi.bottom,Ke=Mi.left,Pe=_t==="start"||_t==="nearest"?kt:_t==="end"?Re:kt+wn/2,nt=ir==="center"?Ke+Rn/2:ir==="end"?vt:Ke,yt=[],Dt=0;Dt<Ut.length;Dt++){var bt=Ut[Dt],It=bt.getBoundingClientRect(),gr=It.height,kr=It.width,wt=It.top,rt=It.right,tt=It.bottom,Rt=It.left;if(dt==="if-needed"&&kt>=0&&Ke>=0&&Re<=mn&&vt<=Hr&&kt>=wt&&Re<=tt&&Ke>=Rt&&vt<=rt)return yt;var Ft=getComputedStyle(bt),At=parseInt(Ft.borderLeftWidth,10),Wt=parseInt(Ft.borderTopWidth,10),ot=parseInt(Ft.borderRightWidth,10),Bt=parseInt(Ft.borderBottomWidth,10),Ar=0,rr=0,pr="offsetWidth"in bt?bt.offsetWidth-bt.clientWidth-At-ot:0,tn="offsetHeight"in bt?bt.offsetHeight-bt.clientHeight-Wt-Bt:0;if(zt===bt)Ar=_t==="start"?Pe:_t==="end"?Pe-mn:_t==="nearest"?h(Yn,Yn+mn,mn,Wt,Bt,Yn+Pe,Yn+Pe+wn,wn):Pe-mn/2,rr=ir==="start"?nt:ir==="center"?nt-Hr/2:ir==="end"?nt-Hr:h(In,In+Hr,Hr,At,ot,In+nt,In+nt+Rn,Rn),Ar=Math.max(0,Ar+Yn),rr=Math.max(0,rr+In);else{Ar=_t==="start"?Pe-wt-Wt:_t==="end"?Pe-tt+Bt+tn:_t==="nearest"?h(wt,tt,gr,Wt,Bt+tn,Pe,Pe+wn,wn):Pe-(wt+gr/2)+tn/2,rr=ir==="start"?nt-Rt-At:ir==="center"?nt-(Rt+kr/2)+pr/2:ir==="end"?nt-rt+ot+pr:h(Rt,rt,kr,At,ot+pr,nt,nt+Rn,Rn);var hn=bt.scrollLeft,Mn=bt.scrollTop;Pe+=Mn-(Ar=Math.max(0,Math.min(Mn+Ar,bt.scrollHeight-gr+tn))),nt+=hn-(rr=Math.max(0,Math.min(hn+rr,bt.scrollWidth-kr+pr)))}yt.push({el:bt,top:Ar,left:rr})}return yt};function m(ee){return ee===Object(ee)&&Object.keys(ee).length!==0}function v(ee,lt){lt===void 0&&(lt="auto");var Ct="scrollBehavior"in document.body.style;ee.forEach(function(dt){var _t=dt.el,ir=dt.top,$r=dt.left;_t.scroll&&Ct?_t.scroll({top:ir,left:$r,behavior:lt}):(_t.scrollTop=ir,_t.scrollLeft=$r)})}function y(ee){return ee===!1?{block:"end",inline:"nearest"}:m(ee)?ee:{block:"start",inline:"nearest"}}function E(ee,lt){var Ct=ee.isConnected||ee.ownerDocument.documentElement.contains(ee);if(m(lt)&&typeof lt.behavior=="function")return lt.behavior(Ct?p(ee,lt):[]);if(!Ct)return;var dt=y(lt);return v(p(ee,dt),dt.behavior)}var T=E;function b(ee){return ee===void 0||ee===!1?[]:Array.isArray(ee)?ee:[ee]}function w(ee,lt){if(!ee.length)return;var Ct=ee.join("_");return lt?"".concat(lt,"_").concat(Ct):Ct}function _(ee){var lt=b(ee);return lt.join("_")}function I(ee){var lt=Object(r.useForm)(),Ct=A()(lt,1),dt=Ct[0],_t=Object(f.useRef)({}),ir=Object(f.useMemo)(function(){return ee||x()(x()({},dt),{__INTERNAL__:{itemRef:function(nr){return function(lr){var zt=_(nr);lr?_t.current[zt]=lr:delete _t.current[zt]}}},scrollToField:function(nr){var lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},zt=b(nr),Ut=w(zt,ir.__INTERNAL__.name),st=Ut?document.getElementById(Ut):null;st&&T(st,x()({scrollMode:"if-needed",block:"nearest"},lr))},getFieldInstance:function(nr){var lr=_(nr);return _t.current[lr]}})},[ee,dt]);return[ir]}var L=d("3Nzz"),N=function(ee,lt){var Ct={};for(var dt in ee)Object.prototype.hasOwnProperty.call(ee,dt)&<.indexOf(dt)<0&&(Ct[dt]=ee[dt]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,dt=Object.getOwnPropertySymbols(ee);_t<dt.length;_t++)lt.indexOf(dt[_t])<0&&Object.prototype.propertyIsEnumerable.call(ee,dt[_t])&&(Ct[dt[_t]]=ee[dt[_t]]);return Ct},D=function(lt,Ct){var dt,_t=f.useContext(L.b),ir=f.useContext(i.b),$r=ir.getPrefixCls,nr=ir.direction,lr=lt.name,zt=lt.prefixCls,Ut=lt.className,st=Ut===void 0?"":Ut,Hr=lt.size,mn=Hr===void 0?_t:Hr,In=lt.form,Yn=lt.colon,Mi=lt.labelAlign,wn=lt.labelCol,Rn=lt.wrapperCol,kt=lt.hideRequiredMark,vt=lt.layout,Re=vt===void 0?"horizontal":vt,Ke=lt.scrollToFirstError,Pe=lt.requiredMark,nt=lt.onFinishFailed,yt=N(lt,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed"]),Dt=Object(f.useMemo)(function(){return Pe!==void 0?Pe:!kt},[kt,Pe]),bt=$r("form",zt),It=o()(bt,(dt={},g()(dt,"".concat(bt,"-").concat(Re),!0),g()(dt,"".concat(bt,"-hide-required-mark"),Dt===!1),g()(dt,"".concat(bt,"-rtl"),nr==="rtl"),g()(dt,"".concat(bt,"-").concat(mn),mn),dt),st),gr=I(In),kr=A()(gr,1),wt=kr[0],rt=wt.__INTERNAL__;rt.name=lr;var tt=Object(f.useMemo)(function(){return{name:lr,labelAlign:Mi,labelCol:wn,wrapperCol:Rn,vertical:Re==="vertical",colon:Yn,requiredMark:Dt,itemRef:rt.itemRef}},[lr,Mi,wn,Rn,Re,Yn,Dt]);f.useImperativeHandle(Ct,function(){return wt});var Rt=function(At){nt&&nt(At),Ke&&At.errorFields.length&&wt.scrollToField(At.errorFields[0].name)};return f.createElement(L.a,{size:mn},f.createElement(e.Provider,{value:tt},f.createElement(r.default,x()({id:lr},yt,{onFinishFailed:Rt,form:wt,className:It}))))},R=f.forwardRef(D),k=R,M=d("cDf5"),U=d.n(M),B=d("RIqP"),j=d.n(B),W=d("Y+p1"),V=d.n(W),z=d("KW7l"),J=d("c+Xe"),Z=d("qrJ5"),de=d("CWQg"),ie=d("uaoM"),ve=d("/kpp"),xe=d("YMnH"),_e=d("ZvpZ"),Ue=function(lt){var Ct=lt.prefixCls,dt=lt.label,_t=lt.htmlFor,ir=lt.labelCol,$r=lt.labelAlign,nr=lt.colon,lr=lt.required,zt=lt.requiredMark,Ut=Object(xe.b)("Form"),st=A()(Ut,1),Hr=st[0];return dt?f.createElement(e.Consumer,{key:"label"},function(mn){var In,Yn=mn.vertical,Mi=mn.labelAlign,wn=mn.labelCol,Rn=mn.colon,kt,vt=ir||wn||{},Re=$r||Mi,Ke="".concat(Ct,"-item-label"),Pe=o()(Ke,Re==="left"&&"".concat(Ke,"-left"),vt.className),nt=dt,yt=nr===!0||Rn!==!1&&nr!==!1,Dt=yt&&!Yn;Dt&&typeof dt=="string"&&dt.trim()!==""&&(nt=dt.replace(/[:|:]\s*$/,"")),zt==="optional"&&!lr&&(nt=f.createElement(f.Fragment,null,nt,f.createElement("span",{className:"".concat(Ct,"-item-optional")},(Hr==null?void 0:Hr.optional)||((kt=_e.a.Form)===null||kt===void 0?void 0:kt.optional))));var bt=o()((In={},g()(In,"".concat(Ct,"-item-required"),lr),g()(In,"".concat(Ct,"-item-required-mark-optional"),zt==="optional"),g()(In,"".concat(Ct,"-item-no-colon"),!yt),In));return f.createElement(ve.a,x()({},vt,{className:Pe}),f.createElement("label",{htmlFor:_t,className:bt,title:typeof dt=="string"?dt:""},nt))}):null},fe=Ue,ke=d("gZBC"),se=d.n(ke),te=d("kbBi"),Ve=d.n(te),ae=d("J84W"),Q=d.n(ae),G=d("sKbD"),Y=d.n(G),me=d("YrtM"),ue=d("HTfv"),Ce=d("hkKa");function Ie(ee,lt,Ct){var dt=f.useRef({errors:ee,visible:!!ee.length}),_t=Object(Ce.a)(),ir=function(){var nr=dt.current.visible,lr=!!ee.length,zt=dt.current.errors;dt.current.errors=ee,dt.current.visible=lr,nr!==lr?lt(lr):(zt.length!==ee.length||zt.some(function(Ut,st){return Ut!==ee[st]}))&&_t()};return f.useEffect(function(){if(!Ct){var $r=setTimeout(ir,10);return function(){return clearTimeout($r)}}},[ee]),Ct&&ir(),[dt.current.visible,dt.current.errors]}var ce={success:Q.a,warning:Y.a,error:Ve.a,validating:se.a},Ae=function(lt){var Ct=lt.prefixCls,dt=lt.wrapperCol,_t=lt.children,ir=lt.help,$r=lt.errors,nr=lt.onDomErrorVisibleChange,lr=lt.hasFeedback,zt=lt.validateStatus,Ut=lt.extra,st=Object(Ce.a)(),Hr="".concat(Ct,"-item"),mn=f.useContext(e),In=dt||mn.wrapperCol||{},Yn=o()("".concat(Hr,"-control"),In.className),Mi=Ie($r,function(nt){nt&&Promise.resolve().then(function(){nr(!0)}),st()},!!ir),wn=A()(Mi,2),Rn=wn[0],kt=wn[1];f.useEffect(function(){return function(){nr(!1)}},[]);var vt=Object(me.a)(function(){return kt},Rn,function(nt,yt){return yt}),Re=zt&&ce[zt],Ke=lr&&Re?f.createElement("span",{className:"".concat(Hr,"-children-icon")},f.createElement(Re,null)):null,Pe=x()({},mn);return delete Pe.labelCol,delete Pe.wrapperCol,f.createElement(e.Provider,{value:Pe},f.createElement(ve.a,x()({},In,{className:Yn}),f.createElement("div",{className:"".concat(Hr,"-control-input")},f.createElement("div",{className:"".concat(Hr,"-control-input-content")},_t),Ke),f.createElement(ue.default,{motionDeadline:500,visible:Rn,motionName:"show-help",onLeaveEnd:function(){nr(!1)},motionAppear:!0,removeOnLeave:!0},function(nt){var yt=nt.className;return f.createElement("div",{className:o()("".concat(Hr,"-explain"),yt),key:"help"},vt.map(function(Dt,bt){return f.createElement("div",{key:bt,role:"alert"},Dt)}))}),Ut&&f.createElement("div",{className:"".concat(Hr,"-extra")},Ut)))},Te=Ae,Ge=d("0n0R"),gt=d("xEkU"),qe=d.n(gt);function Le(ee){var lt=f.useState(ee),Ct=A()(lt,2),dt=Ct[0],_t=Ct[1],ir=Object(f.useRef)(null),$r=Object(f.useRef)([]),nr=Object(f.useRef)(!1);f.useEffect(function(){return function(){nr.current=!0,qe.a.cancel(ir.current)}},[]);function lr(zt){if(nr.current)return;ir.current===null&&($r.current=[],ir.current=qe()(function(){ir.current=null,_t(function(Ut){var st=Ut;return $r.current.forEach(function(Hr){st=Hr(st)}),st})})),$r.current.push(zt)}return[dt,lr]}function Ot(){var ee=f.useContext(e),lt=ee.itemRef,Ct=f.useRef({});function dt(_t,ir){var $r=ir&&U()(ir)==="object"&&ir.ref,nr=_t.join("_");return(Ct.current.name!==nr||Ct.current.originRef!==$r)&&(Ct.current.name=nr,Ct.current.originRef=$r,Ct.current.ref=Object(J.a)(lt(_t),$r)),Ct.current.ref}return dt}var $e=function(ee,lt){var Ct={};for(var dt in ee)Object.prototype.hasOwnProperty.call(ee,dt)&<.indexOf(dt)<0&&(Ct[dt]=ee[dt]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,dt=Object.getOwnPropertySymbols(ee);_t<dt.length;_t++)lt.indexOf(dt[_t])<0&&Object.prototype.propertyIsEnumerable.call(ee,dt[_t])&&(Ct[dt[_t]]=ee[dt[_t]]);return Ct},xt=Object(de.a)("success","warning","error","validating",""),Ht=f.memo(function(ee){var lt=ee.children;return lt},function(ee,lt){return ee.value===lt.value&&ee.update===lt.update});function tr(ee){return ee===null&&Object(ie.a)(!1,"Form.Item","`null` is passed as `name` property"),!(ee==null)}function Mt(ee){var lt=ee.name,Ct=ee.fieldKey,dt=ee.noStyle,_t=ee.dependencies,ir=ee.prefixCls,$r=ee.style,nr=ee.className,lr=ee.shouldUpdate,zt=ee.hasFeedback,Ut=ee.help,st=ee.rules,Hr=ee.validateStatus,mn=ee.children,In=ee.required,Yn=ee.label,Mi=ee.trigger,wn=Mi===void 0?"onChange":Mi,Rn=ee.validateTrigger,kt=ee.hidden,vt=$e(ee,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","trigger","validateTrigger","hidden"]),Re=f.useRef(!1),Ke=f.useContext(i.b),Pe=Ke.getPrefixCls,nt=f.useContext(e),yt=nt.name,Dt=nt.requiredMark,bt=f.useContext(l),It=bt.updateItemErrors,gr=f.useState(!!Ut),kr=A()(gr,2),wt=kr[0],rt=kr[1],tt=f.useRef(Hr),Rt=Le({}),Ft=A()(Rt,2),At=Ft[0],Wt=Ft[1],ot=f.useContext(z.b),Bt=ot.validateTrigger,Ar=Rn!==void 0?Rn:Bt;function rr(Qe){Re.current||rt(Qe)}var pr=tr(lt),tn=f.useRef([]);f.useEffect(function(){return function(){Re.current=!0,It(tn.current.join("__SPLIT__"),[])}},[]);var hn=Pe("form",ir),Mn=dt?It:function(Qe,we){Wt(function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return V()(Ne[Qe],we)?Ne:x()(x()({},Ne),g()({},Qe,we))})},Xn=Ot();function si(Qe,we,Ne,Fe){var Ye,We;if(dt&&!kt)return Qe;var Ze=[];Object.keys(At).forEach(function(Dr){Ze=[].concat(j()(Ze),j()(At[Dr]||[]))});var mt;Ut!=null?mt=b(Ut):(mt=Ne?Ne.errors:[],mt=[].concat(j()(mt),j()(Ze)));var it="";Hr!==void 0?it=Hr:(Ne==null?void 0:Ne.validating)?it="validating":((We=Ne==null?void 0:Ne.errors)===null||We===void 0?void 0:We.length)||Ze.length?it="error":(Ne==null?void 0:Ne.touched)&&(it="success"),wt&&Ut&&(tt.current=it);var Jt=(Ye={},g()(Ye,"".concat(hn,"-item"),!0),g()(Ye,"".concat(hn,"-item-with-help"),wt||Ut),g()(Ye,"".concat(nr),!!nr),g()(Ye,"".concat(hn,"-item-has-feedback"),it&&zt),g()(Ye,"".concat(hn,"-item-has-success"),it==="success"),g()(Ye,"".concat(hn,"-item-has-warning"),it==="warning"),g()(Ye,"".concat(hn,"-item-has-error"),it==="error"),g()(Ye,"".concat(hn,"-item-has-error-leave"),!Ut&&wt&&tt.current==="error"),g()(Ye,"".concat(hn,"-item-is-validating"),it==="validating"),g()(Ye,"".concat(hn,"-item-hidden"),kt),Ye);return f.createElement(Z.a,x()({className:o()(Jt),style:$r,key:"row"},Object(n.default)(vt,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","preserve","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),f.createElement(fe,x()({htmlFor:we,required:Fe,requiredMark:Dt},ee,{prefixCls:hn})),f.createElement(Te,x()({},ee,Ne,{errors:mt,prefixCls:hn,onDomErrorVisibleChange:rr,validateStatus:it}),f.createElement(l.Provider,{value:{updateItemErrors:Mn}},Qe)))}var vi=typeof mn=="function",xi=f.useRef(0);if(xi.current+=1,!pr&&!vi&&!_t)return si(mn);var _i={};return typeof Yn=="string"&&(_i.label=Yn),f.createElement(r.Field,x()({},ee,{messageVariables:_i,trigger:wn,validateTrigger:Ar,onReset:function(){rr(!1)}}),function(Qe,we,Ne){var Fe=we.errors,Ye=b(lt).length&&we?we.name:[],We=w(Ye,yt);if(dt){if(tn.current=j()(Ye),Ct){var Ze=Array.isArray(Ct)?Ct:[Ct];tn.current=[].concat(j()(Ye.slice(0,-1)),j()(Ze))}It(tn.current.join("__SPLIT__"),Fe)}var mt=In!==void 0?In:!!(st&&st.some(function(Br){if(Br&&U()(Br)==="object"&&Br.required)return!0;if(typeof Br=="function"){var $t=Br(Ne);return $t&&$t.required}return!1})),it=x()({},Qe),Jt=null;if(Object(ie.a)(!(lr&&_t),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(mn)&&pr)Object(ie.a)(!1,"Form.Item","`children` is array of render props cannot have `name`."),Jt=mn;else if(vi&&(!(lr||_t)||pr))Object(ie.a)(!!(lr||_t),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),Object(ie.a)(!pr,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if(_t&&!vi&&!pr)Object(ie.a)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");else if(Object(Ge.b)(mn)){Object(ie.a)(mn.props.defaultValue===void 0,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var Dr=x()(x()({},mn.props),it);Dr.id||(Dr.id=We),Object(J.c)(mn)&&(Dr.ref=Xn(Ye,mn));var Sr=new Set([].concat(j()(b(wn)),j()(b(Ar))));Sr.forEach(function(Br){Dr[Br]=function(){for(var $t,gn,or,ln,an,Rr=arguments.length,On=new Array(Rr),ci=0;ci<Rr;ci++)On[ci]=arguments[ci];(or=it[Br])===null||or===void 0||($t=or).call.apply($t,[it].concat(On)),(an=(ln=mn.props)[Br])===null||an===void 0||(gn=an).call.apply(gn,[ln].concat(On))}}),Jt=f.createElement(Ht,{value:it[ee.valuePropName||"value"],update:xi.current},Object(Ge.a)(mn,Dr))}else vi&&(lr||_t)&&!pr?Jt=mn(Ne):(Object(ie.a)(!Ye.length,"Form.Item","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),Jt=mn);return si(Jt,We,we,mt)})}var Tt=Mt,Xe=function(ee,lt){var Ct={};for(var dt in ee)Object.prototype.hasOwnProperty.call(ee,dt)&<.indexOf(dt)<0&&(Ct[dt]=ee[dt]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,dt=Object.getOwnPropertySymbols(ee);_t<dt.length;_t++)lt.indexOf(dt[_t])<0&&Object.prototype.propertyIsEnumerable.call(ee,dt[_t])&&(Ct[dt[_t]]=ee[dt[_t]]);return Ct},oe=function(lt){var Ct=lt.children,dt=Xe(lt,["children"]);return Object(ie.a)(!!dt.name,"Form.List","Miss `name` prop."),f.createElement(r.List,dt,function(_t,ir){return Ct(_t.map(function($r){return x()(x()({},$r),{fieldKey:$r.key})}),ir)})},X=oe,Be=k;Be.Item=Tt,Be.List=X,Be.useForm=I,Be.Provider=t,Be.create=function(){Object(ie.a)(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var Ee=F.a=Be},VpOo:function(H,F){function d(O,x){var C=x.x,A=x.y,S=x.width,g=x.height,f=x.r,c,o,r,i;S<0&&(C=C+S,S=-S),g<0&&(A=A+g,g=-g),typeof f=="number"?c=o=r=i=f:f instanceof Array?f.length===1?c=o=r=i=f[0]:f.length===2?(c=r=f[0],o=i=f[1]):f.length===3?(c=f[0],o=i=f[1],r=f[2]):(c=f[0],o=f[1],r=f[2],i=f[3]):c=o=r=i=0;var n;c+o>S&&(n=c+o,c*=S/n,o*=S/n),r+i>S&&(n=r+i,r*=S/n,i*=S/n),o+r>g&&(n=o+r,o*=g/n,r*=g/n),c+i>g&&(n=c+i,c*=g/n,i*=g/n),O.moveTo(C+c,A),O.lineTo(C+S-o,A),o!==0&&O.arc(C+S-o,A+o,o,-Math.PI/2,0),O.lineTo(C+S,A+g-r),r!==0&&O.arc(C+S-r,A+g-r,r,0,Math.PI/2),O.lineTo(C+i,A+g),i!==0&&O.arc(C+i,A+g-i,i,Math.PI/2,Math.PI),O.lineTo(C,A+c),c!==0&&O.arc(C+c,A+c,c,Math.PI,Math.PI*1.5)}F.buildPath=d},"VrN/":function(H,F,d){(function(O,x){H.exports=x()})(this,function(){"use strict";var O=navigator.userAgent,x=navigator.platform,C=/gecko\/\d/i.test(O),A=/MSIE \d/.test(O),S=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(O),g=/Edge\/(\d+)/.exec(O),f=A||S||g,c=f&&(A?document.documentMode||6:+(g||S)[1]),o=!g&&/WebKit\//.test(O),r=o&&/Qt\/\d+\.\d+/.test(O),i=!g&&/Chrome\//.test(O),n=/Opera\//.test(O),e=/Apple Computer/.test(navigator.vendor),l=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(O),t=/PhantomJS/.test(O),a=!g&&/AppleWebKit/.test(O)&&/Mobile\/\w+/.test(O),s=/Android/.test(O),u=a||s||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(O),h=a||/Mac/.test(x),p=/\bCrOS\b/.test(O),m=/win/i.test(x),v=n&&O.match(/Version\/(\d*\.\d*)/);v&&(v=Number(v[1])),v&&v>=15&&(n=!1,o=!0);var y=h&&(r||n&&(v==null||v<12.11)),E=C||f&&c>=9;function T(P){return new RegExp("(^|\\s)"+P+"(?:$|\\s)\\s*")}var b=function(K,$){var re=K.className,le=T($).exec(re);if(le){var Me=re.slice(le.index+le[0].length);K.className=re.slice(0,le.index)+(Me?le[1]+Me:"")}};function w(P){for(var K=P.childNodes.length;K>0;--K)P.removeChild(P.firstChild);return P}function _(P,K){return w(P).appendChild(K)}function I(P,K,$,re){var le=document.createElement(P);if($&&(le.className=$),re&&(le.style.cssText=re),typeof K=="string")le.appendChild(document.createTextNode(K));else if(K)for(var Me=0;Me<K.length;++Me)le.appendChild(K[Me]);return le}function L(P,K,$,re){var le=I(P,K,$,re);return le.setAttribute("role","presentation"),le}var N;document.createRange?N=function(K,$,re,le){var Me=document.createRange();return Me.setEnd(le||K,re),Me.setStart(K,$),Me}:N=function(K,$,re){var le=document.body.createTextRange();try{le.moveToElementText(K.parentNode)}catch(Me){return le}return le.collapse(!0),le.moveEnd("character",re),le.moveStart("character",$),le};function D(P,K){if(K.nodeType==3&&(K=K.parentNode),P.contains)return P.contains(K);do if(K.nodeType==11&&(K=K.host),K==P)return!0;while(K=K.parentNode)}function R(){var P;try{P=document.activeElement}catch(K){P=document.body||null}for(;P&&P.shadowRoot&&P.shadowRoot.activeElement;)P=P.shadowRoot.activeElement;return P}function k(P,K){var $=P.className;T(K).test($)||(P.className+=($?" ":"")+K)}function M(P,K){for(var $=P.split(" "),re=0;re<$.length;re++)$[re]&&!T($[re]).test(K)&&(K+=" "+$[re]);return K}var U=function(K){K.select()};a?U=function(K){K.selectionStart=0,K.selectionEnd=K.value.length}:f&&(U=function(K){try{K.select()}catch($){}});function B(P){var K=Array.prototype.slice.call(arguments,1);return function(){return P.apply(null,K)}}function j(P,K,$){K||(K={});for(var re in P)P.hasOwnProperty(re)&&($!==!1||!K.hasOwnProperty(re))&&(K[re]=P[re]);return K}function W(P,K,$,re,le){K==null&&(K=P.search(/[^\s\u00a0]/),K==-1&&(K=P.length));for(var Me=re||0,pt=le||0;;){var jt=P.indexOf(" ",Me);if(jt<0||jt>=K)return pt+(K-Me);pt+=jt-Me,pt+=$-pt%$,Me=jt+1}}var V=function(){this.id=null,this.f=null,this.time=0,this.handler=B(this.onTimeout,this)};V.prototype.onTimeout=function(P){P.id=0,P.time<=+new Date?P.f():setTimeout(P.handler,P.time-+new Date)},V.prototype.set=function(P,K){this.f=K;var $=+new Date+P;(!this.id||$<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,P),this.time=$)};function z(P,K){for(var $=0;$<P.length;++$)if(P[$]==K)return $;return-1}var J=50,Z={toString:function(){return"CodeMirror.Pass"}},de={scroll:!1},ie={origin:"*mouse"},ve={origin:"+move"};function xe(P,K,$){for(var re=0,le=0;;){var Me=P.indexOf(" ",re);Me==-1&&(Me=P.length);var pt=Me-re;if(Me==P.length||le+pt>=K)return re+Math.min(pt,K-le);if(le+=Me-re,le+=$-le%$,re=Me+1,le>=K)return re}}var _e=[""];function Ue(P){for(;_e.length<=P;)_e.push(fe(_e)+" ");return _e[P]}function fe(P){return P[P.length-1]}function ke(P,K){for(var $=[],re=0;re<P.length;re++)$[re]=K(P[re],re);return $}function se(P,K,$){for(var re=0,le=$(K);re<P.length&&$(P[re])<=le;)re++;P.splice(re,0,K)}function te(){}function Ve(P,K){var $;return Object.create?$=Object.create(P):(te.prototype=P,$=new te),K&&j(K,$),$}var ae=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Q(P){return/\w/.test(P)||P>"\x80"&&(P.toUpperCase()!=P.toLowerCase()||ae.test(P))}function G(P,K){return K?K.source.indexOf("\\w")>-1&&Q(P)?!0:K.test(P):Q(P)}function Y(P){for(var K in P)if(P.hasOwnProperty(K)&&P[K])return!1;return!0}var me=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ue(P){return P.charCodeAt(0)>=768&&me.test(P)}function Ce(P,K,$){for(;($<0?K>0:K<P.length)&&ue(P.charAt(K));)K+=$;return K}function Ie(P,K,$){for(var re=K>$?-1:1;;){if(K==$)return K;var le=(K+$)/2,Me=re<0?Math.ceil(le):Math.floor(le);if(Me==K)return P(Me)?K:$;P(Me)?$=Me:K=Me+re}}function ce(P,K,$,re){if(!P)return re(K,$,"ltr",0);for(var le=!1,Me=0;Me<P.length;++Me){var pt=P[Me];(pt.from<$&&pt.to>K||K==$&&pt.to==K)&&(re(Math.max(pt.from,K),Math.min(pt.to,$),pt.level==1?"rtl":"ltr",Me),le=!0)}le||re(K,$,"ltr")}var Ae=null;function Te(P,K,$){var re;Ae=null;for(var le=0;le<P.length;++le){var Me=P[le];if(Me.from<K&&Me.to>K)return le;Me.to==K&&(Me.from!=Me.to&&$=="before"?re=le:Ae=le),Me.from==K&&(Me.from!=Me.to&&$!="before"?re=le:Ae=le)}return re!=null?re:Ae}var Ge=function(){var P="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",K="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function $(cr){return cr<=247?P.charAt(cr):1424<=cr&&cr<=1524?"R":1536<=cr&&cr<=1785?K.charAt(cr-1536):1774<=cr&&cr<=2220?"r":8192<=cr&&cr<=8203?"w":cr==8204?"b":"L"}var re=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,le=/[stwN]/,Me=/[LRr]/,pt=/[Lb1n]/,jt=/[1n]/;function ar(cr,bn,Dn){this.level=cr,this.from=bn,this.to=Dn}return function(cr,bn){var Dn=bn=="ltr"?"L":"R";if(cr.length==0||bn=="ltr"&&!re.test(cr))return!1;for(var ui=cr.length,hi=[],Wi=0;Wi<ui;++Wi)hi.push($(cr.charCodeAt(Wi)));for(var ia=0,xa=Dn;ia<ui;++ia){var ba=hi[ia];ba=="m"?hi[ia]=xa:xa=ba}for(var va=0,Ua=Dn;va<ui;++va){var eo=hi[va];eo=="1"&&Ua=="r"?hi[va]="n":Me.test(eo)&&(Ua=eo,eo=="r"&&(hi[va]="R"))}for(var ko=1,To=hi[0];ko<ui-1;++ko){var ns=hi[ko];ns=="+"&&To=="1"&&hi[ko+1]=="1"?hi[ko]="1":ns==","&&To==hi[ko+1]&&(To=="1"||To=="n")&&(hi[ko]=To),To=ns}for(var Ss=0;Ss<ui;++Ss){var Hs=hi[Ss];if(Hs==",")hi[Ss]="N";else if(Hs=="%"){var Ls=void 0;for(Ls=Ss+1;Ls<ui&&hi[Ls]=="%";++Ls);for(var ul=Ss&&hi[Ss-1]=="!"||Ls<ui&&hi[Ls]=="1"?"1":"N",Sl=Ss;Sl<Ls;++Sl)hi[Sl]=ul;Ss=Ls-1}}for(var tl=0,xl=Dn;tl<ui;++tl){var cl=hi[tl];xl=="L"&&cl=="1"?hi[tl]="L":Me.test(cl)&&(xl=cl)}for(var Oa=0;Oa<ui;++Oa)if(le.test(hi[Oa])){var ks=void 0;for(ks=Oa+1;ks<ui&&le.test(hi[ks]);++ks);for(var Ps=(Oa?hi[Oa-1]:Dn)=="L",Ys=(ks<ui?hi[ks]:Dn)=="L",Lu=Ps==Ys?Ps?"L":"R":Dn,gs=Oa;gs<ks;++gs)hi[gs]=Lu;Oa=ks-1}for(var ts=[],zl,yl=0;yl<ui;)if(pt.test(hi[yl])){var Nu=yl;for(++yl;yl<ui&&pt.test(hi[yl]);++yl);ts.push(new ar(0,Nu,yl))}else{var du=yl,Vl=ts.length,Su=bn=="rtl"?1:0;for(++yl;yl<ui&&hi[yl]!="L";++yl);for(var Il=du;Il<yl;)if(jt.test(hi[Il])){du<Il&&(ts.splice(Vl,0,new ar(1,du,Il)),Vl+=Su);var hu=Il;for(++Il;Il<yl&&jt.test(hi[Il]);++Il);ts.splice(Vl,0,new ar(2,hu,Il)),Vl+=Su,du=Il}else++Il;du<yl&&ts.splice(Vl,0,new ar(1,du,yl))}return bn=="ltr"&&(ts[0].level==1&&(zl=cr.match(/^\s+/))&&(ts[0].from=zl[0].length,ts.unshift(new ar(0,0,zl[0].length))),fe(ts).level==1&&(zl=cr.match(/\s+$/))&&(fe(ts).to-=zl[0].length,ts.push(new ar(0,ui-zl[0].length,ui)))),bn=="rtl"?ts.reverse():ts}}();function gt(P,K){var $=P.order;return $==null&&($=P.order=Ge(P.text,K)),$}var qe=[],Le=function(K,$,re){if(K.addEventListener)K.addEventListener($,re,!1);else if(K.attachEvent)K.attachEvent("on"+$,re);else{var le=K._handlers||(K._handlers={});le[$]=(le[$]||qe).concat(re)}};function Ot(P,K){return P._handlers&&P._handlers[K]||qe}function $e(P,K,$){if(P.removeEventListener)P.removeEventListener(K,$,!1);else if(P.detachEvent)P.detachEvent("on"+K,$);else{var re=P._handlers,le=re&&re[K];if(le){var Me=z(le,$);Me>-1&&(re[K]=le.slice(0,Me).concat(le.slice(Me+1)))}}}function xt(P,K){var $=Ot(P,K);if(!$.length)return;for(var re=Array.prototype.slice.call(arguments,2),le=0;le<$.length;++le)$[le].apply(null,re)}function Ht(P,K,$){return typeof K=="string"&&(K={type:K,preventDefault:function(){this.defaultPrevented=!0}}),xt(P,$||K.type,P,K),X(K)||K.codemirrorIgnore}function tr(P){var K=P._handlers&&P._handlers.cursorActivity;if(!K)return;for(var $=P.curOp.cursorActivityHandlers||(P.curOp.cursorActivityHandlers=[]),re=0;re<K.length;++re)z($,K[re])==-1&&$.push(K[re])}function Mt(P,K){return Ot(P,K).length>0}function Tt(P){P.prototype.on=function(K,$){Le(this,K,$)},P.prototype.off=function(K,$){$e(this,K,$)}}function Xe(P){P.preventDefault?P.preventDefault():P.returnValue=!1}function oe(P){P.stopPropagation?P.stopPropagation():P.cancelBubble=!0}function X(P){return P.defaultPrevented!=null?P.defaultPrevented:P.returnValue==!1}function Be(P){Xe(P),oe(P)}function Ee(P){return P.target||P.srcElement}function ee(P){var K=P.which;return K==null&&(P.button&1?K=1:P.button&2?K=3:P.button&4&&(K=2)),h&&P.ctrlKey&&K==1&&(K=3),K}var lt=function(){if(f&&c<9)return!1;var P=I("div");return"draggable"in P||"dragDrop"in P}(),Ct;function dt(P){if(Ct==null){var K=I("span","\u200B");_(P,I("span",[K,document.createTextNode("x")])),P.firstChild.offsetHeight!=0&&(Ct=K.offsetWidth<=1&&K.offsetHeight>2&&!(f&&c<8))}var $=Ct?I("span","\u200B"):I("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return $.setAttribute("cm-text",""),$}var _t;function ir(P){if(_t!=null)return _t;var K=_(P,document.createTextNode("A\u062EA")),$=N(K,0,1).getBoundingClientRect(),re=N(K,1,2).getBoundingClientRect();return w(P),!$||$.left==$.right?!1:_t=re.right-$.right<3}var $r=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(P){for(var K=0,$=[],re=P.length;K<=re;){var le=P.indexOf(`
|
|
|
`,K);le==-1&&(le=P.length);var Me=P.slice(K,P.charAt(le-1)=="\r"?le-1:le),pt=Me.indexOf("\r");pt!=-1?($.push(Me.slice(0,pt)),K+=pt+1):($.push(Me),K=le+1)}return $}:function(P){return P.split(/\r\n?|\n/)},nr=window.getSelection?function(P){try{return P.selectionStart!=P.selectionEnd}catch(K){return!1}}:function(P){var K;try{K=P.ownerDocument.selection.createRange()}catch($){}return!K||K.parentElement()!=P?!1:K.compareEndPoints("StartToEnd",K)!=0},lr=function(){var P=I("div");return"oncopy"in P?!0:(P.setAttribute("oncopy","return;"),typeof P.oncopy=="function")}(),zt=null;function Ut(P){if(zt!=null)return zt;var K=_(P,I("span","x")),$=K.getBoundingClientRect(),re=N(K,0,1).getBoundingClientRect();return zt=Math.abs($.left-re.left)>1}var st={},Hr={};function mn(P,K){arguments.length>2&&(K.dependencies=Array.prototype.slice.call(arguments,2)),st[P]=K}function In(P,K){Hr[P]=K}function Yn(P){if(typeof P=="string"&&Hr.hasOwnProperty(P))P=Hr[P];else if(P&&typeof P.name=="string"&&Hr.hasOwnProperty(P.name)){var K=Hr[P.name];typeof K=="string"&&(K={name:K}),P=Ve(K,P),P.name=K.name}else{if(typeof P=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(P))return Yn("application/xml");if(typeof P=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(P))return Yn("application/json")}return typeof P=="string"?{name:P}:P||{name:"null"}}function Mi(P,K){K=Yn(K);var $=st[K.name];if(!$)return Mi(P,"text/plain");var re=$(P,K);if(wn.hasOwnProperty(K.name)){var le=wn[K.name];for(var Me in le){if(!le.hasOwnProperty(Me))continue;re.hasOwnProperty(Me)&&(re["_"+Me]=re[Me]),re[Me]=le[Me]}}if(re.name=K.name,K.helperType&&(re.helperType=K.helperType),K.modeProps)for(var pt in K.modeProps)re[pt]=K.modeProps[pt];return re}var wn={};function Rn(P,K){var $=wn.hasOwnProperty(P)?wn[P]:wn[P]={};j(K,$)}function kt(P,K){if(K===!0)return K;if(P.copyState)return P.copyState(K);var $={};for(var re in K){var le=K[re];le instanceof Array&&(le=le.concat([])),$[re]=le}return $}function vt(P,K){for(var $;P.innerMode&&!($=P.innerMode(K),!$||$.mode==P);)K=$.state,P=$.mode;return $||{mode:P,state:K}}function Re(P,K,$){return P.startState?P.startState(K,$):!0}var Ke=function(K,$,re){this.pos=this.start=0,this.string=K,this.tabSize=$||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=re};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(P){var K=this.string.charAt(this.pos),$;if(typeof P=="string"?$=K==P:$=K&&(P.test?P.test(K):P(K)),$)return++this.pos,K},Ke.prototype.eatWhile=function(P){for(var K=this.pos;this.eat(P););return this.pos>K},Ke.prototype.eatSpace=function(){for(var P=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>P},Ke.prototype.skipToEnd=function(){this.pos=this.string.length},Ke.prototype.skipTo=function(P){var K=this.string.indexOf(P,this.pos);if(K>-1)return this.pos=K,!0},Ke.prototype.backUp=function(P){this.pos-=P},Ke.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=W(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?W(this.string,this.lineStart,this.tabSize):0)},Ke.prototype.indentation=function(){return W(this.string,null,this.tabSize)-(this.lineStart?W(this.string,this.lineStart,this.tabSize):0)},Ke.prototype.match=function(P,K,$){if(typeof P=="string"){var re=function(jt){return $?jt.toLowerCase():jt},le=this.string.substr(this.pos,P.length);if(re(le)==re(P))return K!==!1&&(this.pos+=P.length),!0}else{var Me=this.string.slice(this.pos).match(P);return Me&&Me.index>0?null:(Me&&K!==!1&&(this.pos+=Me[0].length),Me)}},Ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ke.prototype.hideFirstChars=function(P,K){this.lineStart+=P;try{return K()}finally{this.lineStart-=P}},Ke.prototype.lookAhead=function(P){var K=this.lineOracle;return K&&K.lookAhead(P)},Ke.prototype.baseToken=function(){var P=this.lineOracle;return P&&P.baseToken(this.pos)};function Pe(P,K){if(K-=P.first,K<0||K>=P.size)throw new Error("There is no line "+(K+P.first)+" in the document.");for(var $=P;!$.lines;)for(var re=0;;++re){var le=$.children[re],Me=le.chunkSize();if(K<Me){$=le;break}K-=Me}return $.lines[K]}function nt(P,K,$){var re=[],le=K.line;return P.iter(K.line,$.line+1,function(Me){var pt=Me.text;le==$.line&&(pt=pt.slice(0,$.ch)),le==K.line&&(pt=pt.slice(K.ch)),re.push(pt),++le}),re}function yt(P,K,$){var re=[];return P.iter(K,$,function(le){re.push(le.text)}),re}function Dt(P,K){var $=K-P.height;if($)for(var re=P;re;re=re.parent)re.height+=$}function bt(P){if(P.parent==null)return null;for(var K=P.parent,$=z(K.lines,P),re=K.parent;re;K=re,re=re.parent)for(var le=0;!(re.children[le]==K);++le)$+=re.children[le].chunkSize();return $+K.first}function It(P,K){var $=P.first;e:do{for(var re=0;re<P.children.length;++re){var le=P.children[re],Me=le.height;if(K<Me){P=le;continue e}K-=Me,$+=le.chunkSize()}return $}while(!P.lines);for(var pt=0;pt<P.lines.length;++pt){var jt=P.lines[pt],ar=jt.height;if(K<ar)break;K-=ar}return $+pt}function gr(P,K){return K>=P.first&&K<P.first+P.size}function kr(P,K){return String(P.lineNumberFormatter(K+P.firstLineNumber))}function wt(P,K,$){if($===void 0&&($=null),!(this instanceof wt))return new wt(P,K,$);this.line=P,this.ch=K,this.sticky=$}function rt(P,K){return P.line-K.line||P.ch-K.ch}function tt(P,K){return P.sticky==K.sticky&&rt(P,K)==0}function Rt(P){return wt(P.line,P.ch)}function Ft(P,K){return rt(P,K)<0?K:P}function At(P,K){return rt(P,K)<0?P:K}function Wt(P,K){return Math.max(P.first,Math.min(K,P.first+P.size-1))}function ot(P,K){if(K.line<P.first)return wt(P.first,0);var $=P.first+P.size-1;return K.line>$?wt($,Pe(P,$).text.length):Bt(K,Pe(P,K.line).text.length)}function Bt(P,K){var $=P.ch;return $==null||$>K?wt(P.line,K):$<0?wt(P.line,0):P}function Ar(P,K){for(var $=[],re=0;re<K.length;re++)$[re]=ot(P,K[re]);return $}var rr=function(K,$){this.state=K,this.lookAhead=$},pr=function(K,$,re,le){this.state=$,this.doc=K,this.line=re,this.maxLookAhead=le||0,this.baseTokens=null,this.baseTokenPos=1};pr.prototype.lookAhead=function(P){var K=this.doc.getLine(this.line+P);return K!=null&&P>this.maxLookAhead&&(this.maxLookAhead=P),K},pr.prototype.baseToken=function(P){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=P;)this.baseTokenPos+=2;var K=this.baseTokens[this.baseTokenPos+1];return{type:K&&K.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-P}},pr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},pr.fromSaved=function(P,K,$){return K instanceof rr?new pr(P,kt(P.mode,K.state),$,K.lookAhead):new pr(P,kt(P.mode,K),$)},pr.prototype.save=function(P){var K=P!==!1?kt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new rr(K,this.maxLookAhead):K};function tn(P,K,$,re){var le=[P.state.modeGen],Me={};we(P,K.text,P.doc.mode,$,function(cr,bn){return le.push(cr,bn)},Me,re);for(var pt=$.state,jt=function(bn){$.baseTokens=le;var Dn=P.state.overlays[bn],ui=1,hi=0;$.state=!0,we(P,K.text,Dn.mode,$,function(Wi,ia){for(var xa=ui;hi<Wi;){var ba=le[ui];ba>Wi&&le.splice(ui,1,Wi,le[ui+1],ba),ui+=2,hi=Math.min(Wi,ba)}if(!ia)return;if(Dn.opaque)le.splice(xa,ui-xa,Wi,"overlay "+ia),ui=xa+2;else for(;xa<ui;xa+=2){var va=le[xa+1];le[xa+1]=(va?va+" ":"")+"overlay "+ia}},Me),$.state=pt,$.baseTokens=null,$.baseTokenPos=1},ar=0;ar<P.state.overlays.length;++ar)jt(ar);return{styles:le,classes:Me.bgClass||Me.textClass?Me:null}}function hn(P,K,$){if(!K.styles||K.styles[0]!=P.state.modeGen){var re=Mn(P,bt(K)),le=K.text.length>P.options.maxHighlightLength&&kt(P.doc.mode,re.state),Me=tn(P,K,re);le&&(re.state=le),K.stateAfter=re.save(!le),K.styles=Me.styles,Me.classes?K.styleClasses=Me.classes:K.styleClasses&&(K.styleClasses=null),$===P.doc.highlightFrontier&&(P.doc.modeFrontier=Math.max(P.doc.modeFrontier,++P.doc.highlightFrontier))}return K.styles}function Mn(P,K,$){var re=P.doc,le=P.display;if(!re.mode.startState)return new pr(re,!0,K);var Me=Ne(P,K,$),pt=Me>re.first&&Pe(re,Me-1).stateAfter,jt=pt?pr.fromSaved(re,pt,Me):new pr(re,Re(re.mode),Me);return re.iter(Me,K,function(ar){Xn(P,ar.text,jt);var cr=jt.line;ar.stateAfter=cr==K-1||cr%5==0||cr>=le.viewFrom&&cr<le.viewTo?jt.save():null,jt.nextLine()}),$&&(re.modeFrontier=jt.line),jt}function Xn(P,K,$,re){var le=P.doc.mode,Me=new Ke(K,P.options.tabSize,$);for(Me.start=Me.pos=re||0,K==""&&si(le,$.state);!Me.eol();)vi(le,Me,$.state),Me.start=Me.pos}function si(P,K){if(P.blankLine)return P.blankLine(K);if(!P.innerMode)return;var $=vt(P,K);if($.mode.blankLine)return $.mode.blankLine($.state)}function vi(P,K,$,re){for(var le=0;le<10;le++){re&&(re[0]=vt(P,$).mode);var Me=P.token(K,$);if(K.pos>K.start)return Me}throw new Error("Mode "+P.name+" failed to advance stream.")}var xi=function(K,$,re){this.start=K.start,this.end=K.pos,this.string=K.current(),this.type=$||null,this.state=re};function _i(P,K,$,re){var le=P.doc,Me=le.mode,pt;K=ot(le,K);var jt=Pe(le,K.line),ar=Mn(P,K.line,$),cr=new Ke(jt.text,P.options.tabSize,ar),bn;for(re&&(bn=[]);(re||cr.pos<K.ch)&&!cr.eol();)cr.start=cr.pos,pt=vi(Me,cr,ar.state),re&&bn.push(new xi(cr,pt,kt(le.mode,ar.state)));return re?bn:new xi(cr,pt,ar.state)}function Qe(P,K){if(P)for(;;){var $=P.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!$)break;P=P.slice(0,$.index)+P.slice($.index+$[0].length);var re=$[1]?"bgClass":"textClass";K[re]==null?K[re]=$[2]:new RegExp("(?:^|\\s)"+$[2]+"(?:$|\\s)").test(K[re])||(K[re]+=" "+$[2])}return P}function we(P,K,$,re,le,Me,pt){var jt=$.flattenSpans;jt==null&&(jt=P.options.flattenSpans);var ar=0,cr=null,bn=new Ke(K,P.options.tabSize,re),Dn,ui=P.options.addModeClass&&[null];for(K==""&&Qe(si($,re.state),Me);!bn.eol();){if(bn.pos>P.options.maxHighlightLength?(jt=!1,pt&&Xn(P,K,re,bn.pos),bn.pos=K.length,Dn=null):Dn=Qe(vi($,bn,re.state,ui),Me),ui){var hi=ui[0].name;hi&&(Dn="m-"+(Dn?hi+" "+Dn:hi))}if(!jt||cr!=Dn){for(;ar<bn.start;)ar=Math.min(bn.start,ar+5e3),le(ar,cr);cr=Dn}bn.start=bn.pos}for(;ar<bn.pos;){var Wi=Math.min(bn.pos,ar+5e3);le(Wi,cr),ar=Wi}}function Ne(P,K,$){for(var re,le,Me=P.doc,pt=$?-1:K-(P.doc.mode.innerMode?1e3:100),jt=K;jt>pt;--jt){if(jt<=Me.first)return Me.first;var ar=Pe(Me,jt-1),cr=ar.stateAfter;if(cr&&(!$||jt+(cr instanceof rr?cr.lookAhead:0)<=Me.modeFrontier))return jt;var bn=W(ar.text,null,P.options.tabSize);(le==null||re>bn)&&(le=jt-1,re=bn)}return le}function Fe(P,K){if(P.modeFrontier=Math.min(P.modeFrontier,K),P.highlightFrontier<K-10)return;for(var $=P.first,re=K-1;re>$;re--){var le=Pe(P,re).stateAfter;if(le&&(!(le instanceof rr)||re+le.lookAhead<K)){$=re+1;break}}P.highlightFrontier=Math.min(P.highlightFrontier,$)}var Ye=!1,We=!1;function Ze(){Ye=!0}function mt(){We=!0}function it(P,K,$){this.marker=P,this.from=K,this.to=$}function Jt(P,K){if(P)for(var $=0;$<P.length;++$){var re=P[$];if(re.marker==K)return re}}function Dr(P,K){for(var $,re=0;re<P.length;++re)P[re]!=K&&($||($=[])).push(P[re]);return $}function Sr(P,K){P.markedSpans=P.markedSpans?P.markedSpans.concat([K]):[K],K.marker.attachLine(P)}function Br(P,K,$){var re;if(P)for(var le=0;le<P.length;++le){var Me=P[le],pt=Me.marker,jt=Me.from==null||(pt.inclusiveLeft?Me.from<=K:Me.from<K);if(jt||Me.from==K&&pt.type=="bookmark"&&(!$||!Me.marker.insertLeft)){var ar=Me.to==null||(pt.inclusiveRight?Me.to>=K:Me.to>K);(re||(re=[])).push(new it(pt,Me.from,ar?null:Me.to))}}return re}function $t(P,K,$){var re;if(P)for(var le=0;le<P.length;++le){var Me=P[le],pt=Me.marker,jt=Me.to==null||(pt.inclusiveRight?Me.to>=K:Me.to>K);if(jt||Me.from==K&&pt.type=="bookmark"&&(!$||Me.marker.insertLeft)){var ar=Me.from==null||(pt.inclusiveLeft?Me.from<=K:Me.from<K);(re||(re=[])).push(new it(pt,ar?null:Me.from-K,Me.to==null?null:Me.to-K))}}return re}function gn(P,K){if(K.full)return null;var $=gr(P,K.from.line)&&Pe(P,K.from.line).markedSpans,re=gr(P,K.to.line)&&Pe(P,K.to.line).markedSpans;if(!$&&!re)return null;var le=K.from.ch,Me=K.to.ch,pt=rt(K.from,K.to)==0,jt=Br($,le,pt),ar=$t(re,Me,pt),cr=K.text.length==1,bn=fe(K.text).length+(cr?le:0);if(jt)for(var Dn=0;Dn<jt.length;++Dn){var ui=jt[Dn];if(ui.to==null){var hi=Jt(ar,ui.marker);hi?cr&&(ui.to=hi.to==null?null:hi.to+bn):ui.to=le}}if(ar)for(var Wi=0;Wi<ar.length;++Wi){var ia=ar[Wi];if(ia.to!=null&&(ia.to+=bn),ia.from==null){var xa=Jt(jt,ia.marker);xa||(ia.from=bn,cr&&(jt||(jt=[])).push(ia))}else ia.from+=bn,cr&&(jt||(jt=[])).push(ia)}jt&&(jt=or(jt)),ar&&ar!=jt&&(ar=or(ar));var ba=[jt];if(!cr){var va=K.text.length-2,Ua;if(va>0&&jt)for(var eo=0;eo<jt.length;++eo)jt[eo].to==null&&(Ua||(Ua=[])).push(new it(jt[eo].marker,null,null));for(var ko=0;ko<va;++ko)ba.push(Ua);ba.push(ar)}return ba}function or(P){for(var K=0;K<P.length;++K){var $=P[K];$.from!=null&&$.from==$.to&&$.marker.clearWhenEmpty!==!1&&P.splice(K--,1)}return P.length?P:null}function ln(P,K,$){var re=null;if(P.iter(K.line,$.line+1,function(hi){if(hi.markedSpans)for(var Wi=0;Wi<hi.markedSpans.length;++Wi){var ia=hi.markedSpans[Wi].marker;ia.readOnly&&(!re||z(re,ia)==-1)&&(re||(re=[])).push(ia)}}),!re)return null;for(var le=[{from:K,to:$}],Me=0;Me<re.length;++Me)for(var pt=re[Me],jt=pt.find(0),ar=0;ar<le.length;++ar){var cr=le[ar];if(rt(cr.to,jt.from)<0||rt(cr.from,jt.to)>0)continue;var bn=[ar,1],Dn=rt(cr.from,jt.from),ui=rt(cr.to,jt.to);(Dn<0||!pt.inclusiveLeft&&!Dn)&&bn.push({from:cr.from,to:jt.from}),(ui>0||!pt.inclusiveRight&&!ui)&&bn.push({from:jt.to,to:cr.to}),le.splice.apply(le,bn),ar+=bn.length-3}return le}function an(P){var K=P.markedSpans;if(!K)return;for(var $=0;$<K.length;++$)K[$].marker.detachLine(P);P.markedSpans=null}function Rr(P,K){if(!K)return;for(var $=0;$<K.length;++$)K[$].marker.attachLine(P);P.markedSpans=K}function On(P){return P.inclusiveLeft?-1:0}function ci(P){return P.inclusiveRight?1:0}function Ui(P,K){var $=P.lines.length-K.lines.length;if($!=0)return $;var re=P.find(),le=K.find(),Me=rt(re.from,le.from)||On(P)-On(K);if(Me)return-Me;var pt=rt(re.to,le.to)||ci(P)-ci(K);return pt||K.id-P.id}function ki(P,K){var $=We&&P.markedSpans,re;if($)for(var le=void 0,Me=0;Me<$.length;++Me)le=$[Me],le.marker.collapsed&&(K?le.from:le.to)==null&&(!re||Ui(re,le.marker)<0)&&(re=le.marker);return re}function Di(P){return ki(P,!0)}function Ki(P){return ki(P,!1)}function Ur(P,K){var $=We&&P.markedSpans,re;if($)for(var le=0;le<$.length;++le){var Me=$[le];Me.marker.collapsed&&(Me.from==null||Me.from<K)&&(Me.to==null||Me.to>K)&&(!re||Ui(re,Me.marker)<0)&&(re=Me.marker)}return re}function Tn(P,K,$,re,le){var Me=Pe(P,K),pt=We&&Me.markedSpans;if(pt)for(var jt=0;jt<pt.length;++jt){var ar=pt[jt];if(!ar.marker.collapsed)continue;var cr=ar.marker.find(0),bn=rt(cr.from,$)||On(ar.marker)-On(le),Dn=rt(cr.to,re)||ci(ar.marker)-ci(le);if(bn>=0&&Dn<=0||bn<=0&&Dn>=0)continue;if(bn<=0&&(ar.marker.inclusiveRight&&le.inclusiveLeft?rt(cr.to,$)>=0:rt(cr.to,$)>0)||bn>=0&&(ar.marker.inclusiveRight&&le.inclusiveLeft?rt(cr.from,re)<=0:rt(cr.from,re)<0))return!0}}function Mr(P){for(var K;K=Di(P);)P=K.find(-1,!0).line;return P}function mr(P){for(var K;K=Ki(P);)P=K.find(1,!0).line;return P}function Cr(P){for(var K,$;K=Ki(P);)P=K.find(1,!0).line,($||($=[])).push(P);return $}function Lt(P,K){var $=Pe(P,K),re=Mr($);return $==re?K:bt(re)}function wr(P,K){if(K>P.lastLine())return K;var $=Pe(P,K),re;if(!Vr(P,$))return K;for(;re=Ki($);)$=re.find(1,!0).line;return bt($)+1}function Vr(P,K){var $=We&&K.markedSpans;if($)for(var re=void 0,le=0;le<$.length;++le){if(re=$[le],!re.marker.collapsed)continue;if(re.from==null)return!0;if(re.marker.widgetNode)continue;if(re.from==0&&re.marker.inclusiveLeft&&jr(P,K,re))return!0}}function jr(P,K,$){if($.to==null){var re=$.marker.find(1,!0);return jr(P,re.line,Jt(re.line.markedSpans,$.marker))}if($.marker.inclusiveRight&&$.to==K.text.length)return!0;for(var le=void 0,Me=0;Me<K.markedSpans.length;++Me)if(le=K.markedSpans[Me],le.marker.collapsed&&!le.marker.widgetNode&&le.from==$.to&&(le.to==null||le.to!=$.from)&&(le.marker.inclusiveLeft||$.marker.inclusiveRight)&&jr(P,K,le))return!0}function qr(P){P=Mr(P);for(var K=0,$=P.parent,re=0;re<$.lines.length;++re){var le=$.lines[re];if(le==P)break;K+=le.height}for(var Me=$.parent;Me;$=Me,Me=$.parent)for(var pt=0;pt<Me.children.length;++pt){var jt=Me.children[pt];if(jt==$)break;K+=jt.height}return K}function oi(P){if(P.height==0)return 0;for(var K=P.text.length,$,re=P;$=Di(re);){var le=$.find(0,!0);re=le.from.line,K+=le.from.ch-le.to.ch}for(re=P;$=Ki(re);){var Me=$.find(0,!0);K-=re.text.length-Me.from.ch,re=Me.to.line,K+=re.text.length-Me.to.ch}return K}function Vn(P){var K=P.display,$=P.doc;K.maxLine=Pe($,$.first),K.maxLineLength=oi(K.maxLine),K.maxLineChanged=!0,$.iter(function(re){var le=oi(re);le>K.maxLineLength&&(K.maxLineLength=le,K.maxLine=re)})}var Ti=function(K,$,re){this.text=K,Rr(this,$),this.height=re?re(this):1};Ti.prototype.lineNo=function(){return bt(this)},Tt(Ti);function dn(P,K,$,re){P.text=K,P.stateAfter&&(P.stateAfter=null),P.styles&&(P.styles=null),P.order!=null&&(P.order=null),an(P),Rr(P,$);var le=re?re(P):1;le!=P.height&&Dt(P,le)}function _r(P){P.parent=null,an(P)}var xn={},Fn={};function zn(P,K){if(!P||/^\s*$/.test(P))return null;var $=K.addModeClass?Fn:xn;return $[P]||($[P]=P.replace(/\S+/g,"cm-$&"))}function qn(P,K){var $=L("span",null,null,o?"padding-right: .1px":null),re={pre:L("pre",[$],"CodeMirror-line"),content:$,col:0,pos:0,cm:P,trailingSpace:!1,splitSpaces:P.getOption("lineWrapping")};K.measure={};for(var le=0;le<=(K.rest?K.rest.length:0);le++){var Me=le?K.rest[le-1]:K.line,pt=void 0;re.pos=0,re.addToken=Li,ir(P.display.measure)&&(pt=gt(Me,P.doc.direction))&&(re.addToken=Ji(re.addToken,pt)),re.map=[];var jt=K!=P.display.externalMeasured&&bt(Me);la(Me,re,hn(P,Me,jt)),Me.styleClasses&&(Me.styleClasses.bgClass&&(re.bgClass=M(Me.styleClasses.bgClass,re.bgClass||"")),Me.styleClasses.textClass&&(re.textClass=M(Me.styleClasses.textClass,re.textClass||""))),re.map.length==0&&re.map.push(0,0,re.content.appendChild(dt(P.display.measure))),le==0?(K.measure.map=re.map,K.measure.cache={}):((K.measure.maps||(K.measure.maps=[])).push(re.map),(K.measure.caches||(K.measure.caches=[])).push({}))}if(o){var ar=re.content.lastChild;(/\bcm-tab\b/.test(ar.className)||ar.querySelector&&ar.querySelector(".cm-tab"))&&(re.content.className="cm-tab-wrap-hack")}return xt(P,"renderLine",P,K.line,re.pre),re.pre.className&&(re.textClass=M(re.pre.className,re.textClass||"")),re}function Oi(P){var K=I("span","\u2022","cm-invalidchar");return K.title="\\u"+P.charCodeAt(0).toString(16),K.setAttribute("aria-label",K.title),K}function Li(P,K,$,re,le,Me,pt){if(!K)return;var jt=P.splitSpaces?Ri(K,P.trailingSpace):K,ar=P.cm.state.specialChars,cr=!1,bn;if(!ar.test(K))P.col+=K.length,bn=document.createTextNode(jt),P.map.push(P.pos,P.pos+K.length,bn),f&&c<9&&(cr=!0),P.pos+=K.length;else{bn=document.createDocumentFragment();for(var Dn=0;;){ar.lastIndex=Dn;var ui=ar.exec(K),hi=ui?ui.index-Dn:K.length-Dn;if(hi){var Wi=document.createTextNode(jt.slice(Dn,Dn+hi));f&&c<9?bn.appendChild(I("span",[Wi])):bn.appendChild(Wi),P.map.push(P.pos,P.pos+hi,Wi),P.col+=hi,P.pos+=hi}if(!ui)break;Dn+=hi+1;var ia=void 0;if(ui[0]==" "){var xa=P.cm.options.tabSize,ba=xa-P.col%xa;ia=bn.appendChild(I("span",Ue(ba),"cm-tab")),ia.setAttribute("role","presentation"),ia.setAttribute("cm-text"," "),P.col+=ba}else ui[0]=="\r"||ui[0]==`
|
|
|
`?(ia=bn.appendChild(I("span",ui[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ia.setAttribute("cm-text",ui[0]),P.col+=1):(ia=P.cm.options.specialCharPlaceholder(ui[0]),ia.setAttribute("cm-text",ui[0]),f&&c<9?bn.appendChild(I("span",[ia])):bn.appendChild(ia),P.col+=1);P.map.push(P.pos,P.pos+1,ia),P.pos++}}if(P.trailingSpace=jt.charCodeAt(K.length-1)==32,$||re||le||cr||Me||pt){var va=$||"";re&&(va+=re),le&&(va+=le);var Ua=I("span",[bn],va,Me);if(pt)for(var eo in pt)pt.hasOwnProperty(eo)&&eo!="style"&&eo!="class"&&Ua.setAttribute(eo,pt[eo]);return P.content.appendChild(Ua)}P.content.appendChild(bn)}function Ri(P,K){if(P.length>1&&!/ /.test(P))return P;for(var $=K,re="",le=0;le<P.length;le++){var Me=P.charAt(le);Me==" "&&$&&(le==P.length-1||P.charCodeAt(le+1)==32)&&(Me="\xA0"),re+=Me,$=Me==" "}return re}function Ji(P,K){return function($,re,le,Me,pt,jt,ar){le=le?le+" cm-force-border":"cm-force-border";for(var cr=$.pos,bn=cr+re.length;;){for(var Dn=void 0,ui=0;ui<K.length&&!(Dn=K[ui],Dn.to>cr&&Dn.from<=cr);ui++);if(Dn.to>=bn)return P($,re,le,Me,pt,jt,ar);P($,re.slice(0,Dn.to-cr),le,Me,null,jt,ar),Me=null,re=re.slice(Dn.to-cr),cr=Dn.to}}}function ma(P,K,$,re){var le=!re&&$.widgetNode;le&&P.map.push(P.pos,P.pos+K,le),!re&&P.cm.display.input.needsContentAttribute&&(le||(le=P.content.appendChild(document.createElement("span"))),le.setAttribute("cm-marker",$.id)),le&&(P.cm.display.input.setUneditable(le),P.content.appendChild(le)),P.pos+=K,P.trailingSpace=!1}function la(P,K,$){var re=P.markedSpans,le=P.text,Me=0;if(!re){for(var pt=1;pt<$.length;pt+=2)K.addToken(K,le.slice(Me,Me=$[pt]),zn($[pt+1],K.cm.options));return}for(var jt=le.length,ar=0,cr=1,bn="",Dn,ui,hi=0,Wi,ia,xa,ba,va;;){if(hi==ar){Wi=ia=xa=ui="",va=null,ba=null,hi=Infinity;for(var Ua=[],eo=void 0,ko=0;ko<re.length;++ko){var To=re[ko],ns=To.marker;if(ns.type=="bookmark"&&To.from==ar&&ns.widgetNode)Ua.push(ns);else if(To.from<=ar&&(To.to==null||To.to>ar||ns.collapsed&&To.to==ar&&To.from==ar)){if(To.to!=null&&To.to!=ar&&hi>To.to&&(hi=To.to,ia=""),ns.className&&(Wi+=" "+ns.className),ns.css&&(ui=(ui?ui+";":"")+ns.css),ns.startStyle&&To.from==ar&&(xa+=" "+ns.startStyle),ns.endStyle&&To.to==hi&&(eo||(eo=[])).push(ns.endStyle,To.to),ns.title&&((va||(va={})).title=ns.title),ns.attributes)for(var Ss in ns.attributes)(va||(va={}))[Ss]=ns.attributes[Ss];ns.collapsed&&(!ba||Ui(ba.marker,ns)<0)&&(ba=To)}else To.from>ar&&hi>To.from&&(hi=To.from)}if(eo)for(var Hs=0;Hs<eo.length;Hs+=2)eo[Hs+1]==hi&&(ia+=" "+eo[Hs]);if(!ba||ba.from==ar)for(var Ls=0;Ls<Ua.length;++Ls)ma(K,0,Ua[Ls]);if(ba&&(ba.from||0)==ar){if(ma(K,(ba.to==null?jt+1:ba.to)-ar,ba.marker,ba.from==null),ba.to==null)return;ba.to==ar&&(ba=!1)}}if(ar>=jt)break;for(var ul=Math.min(jt,hi);;){if(bn){var Sl=ar+bn.length;if(!ba){var tl=Sl>ul?bn.slice(0,ul-ar):bn;K.addToken(K,tl,Dn?Dn+Wi:Wi,xa,ar+tl.length==hi?ia:"",ui,va)}if(Sl>=ul){bn=bn.slice(ul-ar),ar=ul;break}ar=Sl,xa=""}bn=le.slice(Me,Me=$[cr++]),Dn=zn($[cr++],K.cm.options)}}}function qa(P,K,$){this.line=K,this.rest=Cr(K),this.size=this.rest?bt(fe(this.rest))-$+1:1,this.node=this.text=null,this.hidden=Vr(P,K)}function bi(P,K,$){for(var re=[],le,Me=K;Me<$;Me=le){var pt=new qa(P.doc,Pe(P.doc,Me),Me);le=Me+pt.size,re.push(pt)}return re}var Sn=null;function zi(P){Sn?Sn.ops.push(P):P.ownsGroup=Sn={ops:[P],delayedCallbacks:[]}}function oa(P){var K=P.delayedCallbacks,$=0;do{for(;$<K.length;$++)K[$].call(null);for(var re=0;re<P.ops.length;re++){var le=P.ops[re];if(le.cursorActivityHandlers)for(;le.cursorActivityCalled<le.cursorActivityHandlers.length;)le.cursorActivityHandlers[le.cursorActivityCalled++].call(null,le.cm)}}while($<K.length)}function Yi(P,K){var $=P.ownsGroup;if(!$)return;try{oa($)}finally{Sn=null,K($)}}var ca=null;function Hi(P,K){var $=Ot(P,K);if(!$.length)return;var re=Array.prototype.slice.call(arguments,2),le;Sn?le=Sn.delayedCallbacks:ca?le=ca:(le=ca=[],setTimeout(Ia,0));for(var Me=function(ar){le.push(function(){return $[ar].apply(null,re)})},pt=0;pt<$.length;++pt)Me(pt)}function Ia(){var P=ca;ca=null;for(var K=0;K<P.length;++K)P[K]()}function Da(P,K,$,re){for(var le=0;le<K.changes.length;le++){var Me=K.changes[le];Me=="text"?Mo(P,K):Me=="gutter"?yo(P,K,$,re):Me=="class"?Fo(P,K):Me=="widget"&&Oo(P,K,re)}K.changes=null}function Qa(P){return P.node==P.text&&(P.node=I("div",null,null,"position: relative"),P.text.parentNode&&P.text.parentNode.replaceChild(P.node,P.text),P.node.appendChild(P.text),f&&c<8&&(P.node.style.zIndex=2)),P.node}function Wo(P,K){var $=K.bgClass?K.bgClass+" "+(K.line.bgClass||""):K.line.bgClass;if($&&($+=" CodeMirror-linebackground"),K.background)$?K.background.className=$:(K.background.parentNode.removeChild(K.background),K.background=null);else if($){var re=Qa(K);K.background=re.insertBefore(I("div",null,$),re.firstChild),P.display.input.setUneditable(K.background)}}function po(P,K){var $=P.display.externalMeasured;return $&&$.line==K.line?(P.display.externalMeasured=null,K.measure=$.measure,$.built):qn(P,K)}function Mo(P,K){var $=K.text.className,re=po(P,K);K.text==K.node&&(K.node=re.pre),K.text.parentNode.replaceChild(re.pre,K.text),K.text=re.pre,re.bgClass!=K.bgClass||re.textClass!=K.textClass?(K.bgClass=re.bgClass,K.textClass=re.textClass,Fo(P,K)):$&&(K.text.className=$)}function Fo(P,K){Wo(P,K),K.line.wrapClass?Qa(K).className=K.line.wrapClass:K.node!=K.text&&(K.node.className="");var $=K.textClass?K.textClass+" "+(K.line.textClass||""):K.line.textClass;K.text.className=$||""}function yo(P,K,$,re){if(K.gutter&&(K.node.removeChild(K.gutter),K.gutter=null),K.gutterBackground&&(K.node.removeChild(K.gutterBackground),K.gutterBackground=null),K.line.gutterClass){var le=Qa(K);K.gutterBackground=I("div",null,"CodeMirror-gutter-background "+K.line.gutterClass,"left: "+(P.options.fixedGutter?re.fixedPos:-re.gutterTotalWidth)+"px; width: "+re.gutterTotalWidth+"px"),P.display.input.setUneditable(K.gutterBackground),le.insertBefore(K.gutterBackground,K.text)}var Me=K.line.gutterMarkers;if(P.options.lineNumbers||Me){var pt=Qa(K),jt=K.gutter=I("div",null,"CodeMirror-gutter-wrapper","left: "+(P.options.fixedGutter?re.fixedPos:-re.gutterTotalWidth)+"px");if(P.display.input.setUneditable(jt),pt.insertBefore(jt,K.text),K.line.gutterClass&&(jt.className+=" "+K.line.gutterClass),P.options.lineNumbers&&(!Me||!Me["CodeMirror-linenumbers"])&&(K.lineNumber=jt.appendChild(I("div",kr(P.options,$),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+re.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+P.display.lineNumInnerWidth+"px"))),Me)for(var ar=0;ar<P.display.gutterSpecs.length;++ar){var cr=P.display.gutterSpecs[ar].className,bn=Me.hasOwnProperty(cr)&&Me[cr];bn&&jt.appendChild(I("div",[bn],"CodeMirror-gutter-elt","left: "+re.gutterLeft[cr]+"px; width: "+re.gutterWidth[cr]+"px"))}}}function Oo(P,K,$){K.alignable&&(K.alignable=null);for(var re=T("CodeMirror-linewidget"),le=K.node.firstChild,Me=void 0;le;le=Me)Me=le.nextSibling,re.test(le.className)&&K.node.removeChild(le);hs(P,K,$)}function sa(P,K,$,re){var le=po(P,K);return K.text=K.node=le.pre,le.bgClass&&(K.bgClass=le.bgClass),le.textClass&&(K.textClass=le.textClass),Fo(P,K),yo(P,K,$,re),hs(P,K,re),K.node}function hs(P,K,$){if(Jo(P,K.line,K,$,!0),K.rest)for(var re=0;re<K.rest.length;re++)Jo(P,K.rest[re],K,$,!1)}function Jo(P,K,$,re,le){if(!K.widgets)return;for(var Me=Qa($),pt=0,jt=K.widgets;pt<jt.length;++pt){var ar=jt[pt],cr=I("div",[ar.node],"CodeMirror-linewidget"+(ar.className?" "+ar.className:""));ar.handleMouseEvents||cr.setAttribute("cm-ignore-events","true"),wo(ar,cr,$,re),P.display.input.setUneditable(cr),le&&ar.above?Me.insertBefore(cr,$.gutter||$.text):Me.appendChild(cr),Hi(ar,"redraw")}}function wo(P,K,$,re){if(P.noHScroll){($.alignable||($.alignable=[])).push(K);var le=re.wrapperWidth;K.style.left=re.fixedPos+"px",P.coverGutter||(le-=re.gutterTotalWidth,K.style.paddingLeft=re.gutterTotalWidth+"px"),K.style.width=le+"px"}P.coverGutter&&(K.style.zIndex=5,K.style.position="relative",P.noHScroll||(K.style.marginLeft=-re.gutterTotalWidth+"px"))}function _o(P){if(P.height!=null)return P.height;var K=P.doc.cm;if(!K)return 0;if(!D(document.body,P.node)){var $="position: relative;";P.coverGutter&&($+="margin-left: -"+K.display.gutters.offsetWidth+"px;"),P.noHScroll&&($+="width: "+K.display.wrapper.clientWidth+"px;"),_(K.display.measure,I("div",[P.node],null,$))}return P.height=P.node.parentNode.offsetHeight}function Bo(P,K){for(var $=Ee(K);$!=P.wrapper;$=$.parentNode)if(!$||$.nodeType==1&&$.getAttribute("cm-ignore-events")=="true"||$.parentNode==P.sizer&&$!=P.mover)return!0}function Ds(P){return P.lineSpace.offsetTop}function Nr(P){return P.mover.offsetHeight-P.lineSpace.offsetHeight}function rn(P){if(P.cachedPaddingH)return P.cachedPaddingH;var K=_(P.measure,I("pre","x","CodeMirror-line-like")),$=window.getComputedStyle?window.getComputedStyle(K):K.currentStyle,re={left:parseInt($.paddingLeft),right:parseInt($.paddingRight)};return!isNaN(re.left)&&!isNaN(re.right)&&(P.cachedPaddingH=re),re}function En(P){return J-P.display.nativeBarWidth}function en(P){return P.display.scroller.clientWidth-En(P)-P.display.barWidth}function ur(P){return P.display.scroller.clientHeight-En(P)-P.display.barHeight}function on(P,K,$){var re=P.options.lineWrapping,le=re&&en(P);if(!K.measure.heights||re&&K.measure.width!=le){var Me=K.measure.heights=[];if(re){K.measure.width=le;for(var pt=K.text.firstChild.getClientRects(),jt=0;jt<pt.length-1;jt++){var ar=pt[jt],cr=pt[jt+1];Math.abs(ar.bottom-cr.bottom)>2&&Me.push((ar.bottom+cr.top)/2-$.top)}}Me.push($.bottom-$.top)}}function Bn(P,K,$){if(P.line==K)return{map:P.measure.map,cache:P.measure.cache};for(var re=0;re<P.rest.length;re++)if(P.rest[re]==K)return{map:P.measure.maps[re],cache:P.measure.caches[re]};for(var le=0;le<P.rest.length;le++)if(bt(P.rest[le])>$)return{map:P.measure.maps[le],cache:P.measure.caches[le],before:!0}}function Hn(P,K){K=Mr(K);var $=bt(K),re=P.display.externalMeasured=new qa(P.doc,K,$);re.lineN=$;var le=re.built=qn(P,re);return re.text=le.pre,_(P.display.lineMeasure,le.pre),re}function Ii(P,K,$,re){return mi(P,Jn(P,K),$,re)}function Ci(P,K){if(K>=P.display.viewFrom&&K<P.display.viewTo)return P.display.view[ji(P,K)];var $=P.display.externalMeasured;if($&&K>=$.lineN&&K<$.lineN+$.size)return $}function Jn(P,K){var $=bt(K),re=Ci(P,$);re&&!re.text?re=null:re&&re.changes&&(Da(P,re,$,Nn(P)),P.curOp.forceUpdate=!0),re||(re=Hn(P,K));var le=Bn(re,K,$);return{line:K,view:re,rect:null,map:le.map,cache:le.cache,before:le.before,hasHeights:!1}}function mi(P,K,$,re,le){K.before&&($=-1);var Me=$+(re||""),pt;return K.cache.hasOwnProperty(Me)?pt=K.cache[Me]:(K.rect||(K.rect=K.view.text.getBoundingClientRect()),K.hasHeights||(on(P,K.view,K.rect),K.hasHeights=!0),pt=Pa(P,K,$,re),pt.bogus||(K.cache[Me]=pt)),{left:pt.left,right:pt.right,top:le?pt.rtop:pt.top,bottom:le?pt.rbottom:pt.bottom}}var yi={left:0,right:0,top:0,bottom:0};function da(P,K,$){for(var re,le,Me,pt,jt,ar,cr=0;cr<P.length;cr+=3)if(jt=P[cr],ar=P[cr+1],K<jt?(le=0,Me=1,pt="left"):K<ar?(le=K-jt,Me=le+1):(cr==P.length-3||K==ar&&P[cr+3]>K)&&(Me=ar-jt,le=Me-1,K>=ar&&(pt="right")),le!=null){if(re=P[cr+2],jt==ar&&$==(re.insertLeft?"left":"right")&&(pt=$),$=="left"&&le==0)for(;cr&&P[cr-2]==P[cr-3]&&P[cr-1].insertLeft;)re=P[(cr-=3)+2],pt="left";if($=="right"&&le==ar-jt)for(;cr<P.length-3&&P[cr+3]==P[cr+4]&&!P[cr+5].insertLeft;)re=P[(cr+=3)+2],pt="right";break}return{node:re,start:le,end:Me,collapse:pt,coverStart:jt,coverEnd:ar}}function ha(P,K){var $=yi;if(K=="left")for(var re=0;re<P.length&&!(($=P[re]).left!=$.right);re++);else for(var le=P.length-1;le>=0&&!(($=P[le]).left!=$.right);le--);return $}function Pa(P,K,$,re){var le=da(K.map,$,re),Me=le.node,pt=le.start,jt=le.end,ar=le.collapse,cr;if(Me.nodeType==3){for(var bn=0;bn<4;bn++){for(;pt&&ue(K.line.text.charAt(le.coverStart+pt));)--pt;for(;le.coverStart+jt<le.coverEnd&&ue(K.line.text.charAt(le.coverStart+jt));)++jt;if(f&&c<9&&pt==0&&jt==le.coverEnd-le.coverStart?cr=Me.parentNode.getBoundingClientRect():cr=ha(N(Me,pt,jt).getClientRects(),re),cr.left||cr.right||pt==0)break;jt=pt,pt=pt-1,ar="right"}f&&c<11&&(cr=Ra(P.display.measure,cr))}else{pt>0&&(ar=re="right");var Dn;P.options.lineWrapping&&(Dn=Me.getClientRects()).length>1?cr=Dn[re=="right"?Dn.length-1:0]:cr=Me.getBoundingClientRect()}if(f&&c<9&&!pt&&(!cr||!cr.left&&!cr.right)){var ui=Me.parentNode.getClientRects()[0];ui?cr={left:ui.left,right:ui.left+Cn(P.display),top:ui.top,bottom:ui.bottom}:cr=yi}for(var hi=cr.top-K.rect.top,Wi=cr.bottom-K.rect.top,ia=(hi+Wi)/2,xa=K.view.measure.heights,ba=0;ba<xa.length-1&&!(ia<xa[ba]);ba++);var va=ba?xa[ba-1]:0,Ua=xa[ba],eo={left:(ar=="right"?cr.right:cr.left)-K.rect.left,right:(ar=="left"?cr.left:cr.right)-K.rect.left,top:va,bottom:Ua};return!cr.left&&!cr.right&&(eo.bogus=!0),P.options.singleCursorHeightPerLine||(eo.rtop=hi,eo.rbottom=Wi),eo}function Ra(P,K){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ut(P))return K;var $=screen.logicalXDPI/screen.deviceXDPI,re=screen.logicalYDPI/screen.deviceYDPI;return{left:K.left*$,right:K.right*$,top:K.top*re,bottom:K.bottom*re}}function so(P){if(P.measure&&(P.measure.cache={},P.measure.heights=null,P.rest))for(var K=0;K<P.rest.length;K++)P.measure.caches[K]={}}function La(P){P.display.externalMeasure=null,w(P.display.lineMeasure);for(var K=0;K<P.display.view.length;K++)so(P.display.view[K])}function lo(P){La(P),P.display.cachedCharWidth=P.display.cachedTextHeight=P.display.cachedPaddingH=null,P.options.lineWrapping||(P.display.maxLineChanged=!0),P.display.lineNumChars=null}function So(){return i&&s?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Xt(){return i&&s?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function zr(P){var K=0;if(P.widgets)for(var $=0;$<P.widgets.length;++$)P.widgets[$].above&&(K+=_o(P.widgets[$]));return K}function un(P,K,$,re,le){if(!le){var Me=zr(K);$.top+=Me,$.bottom+=Me}if(re=="line")return $;re||(re="local");var pt=qr(K);if(re=="local"?pt+=Ds(P.display):pt-=P.display.viewOffset,re=="page"||re=="window"){var jt=P.display.lineSpace.getBoundingClientRect();pt+=jt.top+(re=="window"?0:Xt());var ar=jt.left+(re=="window"?0:So());$.left+=ar,$.right+=ar}return $.top+=pt,$.bottom+=pt,$}function vn(P,K,$){if($=="div")return K;var re=K.left,le=K.top;if($=="page")re-=So(),le-=Xt();else if($=="local"||!$){var Me=P.display.sizer.getBoundingClientRect();re+=Me.left,le+=Me.top}var pt=P.display.lineSpace.getBoundingClientRect();return{left:re-pt.left,top:le-pt.top}}function ni(P,K,$,re,le){return re||(re=Pe(P.doc,K.line)),un(P,re,Ii(P,re,K.ch,le),$)}function li(P,K,$,re,le,Me){re=re||Pe(P.doc,K.line),le||(le=Jn(P,re));function pt(Wi,ia){var xa=mi(P,le,Wi,ia?"right":"left",Me);return ia?xa.left=xa.right:xa.right=xa.left,un(P,re,xa,$)}var jt=gt(re,P.doc.direction),ar=K.ch,cr=K.sticky;if(ar>=re.text.length?(ar=re.text.length,cr="before"):ar<=0&&(ar=0,cr="after"),!jt)return pt(cr=="before"?ar-1:ar,cr=="before");function bn(Wi,ia,xa){var ba=jt[ia],va=ba.level==1;return pt(xa?Wi-1:Wi,va!=xa)}var Dn=Te(jt,ar,cr),ui=Ae,hi=bn(ar,Dn,cr=="before");return ui!=null&&(hi.other=bn(ar,ui,cr!="before")),hi}function fi(P,K){var $=0;K=ot(P.doc,K),P.options.lineWrapping||($=Cn(P.display)*K.ch);var re=Pe(P.doc,K.line),le=qr(re)+Ds(P.display);return{left:$,right:$,top:le,bottom:le+re.height}}function di(P,K,$,re,le){var Me=wt(P,K,$);return Me.xRel=le,re&&(Me.outside=re),Me}function Yt(P,K,$){var re=P.doc;if($+=P.display.viewOffset,$<0)return di(re.first,0,null,-1,-1);var le=It(re,$),Me=re.first+re.size-1;if(le>Me)return di(re.first+re.size-1,Pe(re,Me).text.length,null,1,1);K<0&&(K=0);for(var pt=Pe(re,le);;){var jt=Zt(P,pt,le,K,$),ar=Ur(pt,jt.ch+(jt.xRel>0||jt.outside>0?1:0));if(!ar)return jt;var cr=ar.find(1);if(cr.line==le)return cr;pt=Pe(re,le=cr.line)}}function Et(P,K,$,re){re-=zr(K);var le=K.text.length,Me=Ie(function(pt){return mi(P,$,pt-1).bottom<=re},le,0);return le=Ie(function(pt){return mi(P,$,pt).top>re},Me,le),{begin:Me,end:le}}function yr(P,K,$,re){$||($=Jn(P,K));var le=un(P,K,mi(P,$,re),"line").top;return Et(P,K,$,le)}function ct(P,K,$,re){return P.bottom<=$?!1:P.top>$?!0:(re?P.left:P.right)>K}function Zt(P,K,$,re,le){le-=qr(K);var Me=Jn(P,K),pt=zr(K),jt=0,ar=K.text.length,cr=!0,bn=gt(K,P.doc.direction);if(bn){var Dn=(P.options.lineWrapping?Lr:dr)(P,K,$,Me,bn,re,le);cr=Dn.level!=1,jt=cr?Dn.from:Dn.to-1,ar=cr?Dn.to:Dn.from-1}var ui=null,hi=null,Wi=Ie(function(ko){var To=mi(P,Me,ko);return To.top+=pt,To.bottom+=pt,ct(To,re,le,!1)?(To.top<=le&&To.left<=re&&(ui=ko,hi=To),!0):!1},jt,ar),ia,xa,ba=!1;if(hi){var va=re-hi.left<hi.right-re,Ua=va==cr;Wi=ui+(Ua?0:1),xa=Ua?"after":"before",ia=va?hi.left:hi.right}else{!cr&&(Wi==ar||Wi==jt)&&Wi++,xa=Wi==0?"after":Wi==K.text.length?"before":mi(P,Me,Wi-(cr?1:0)).bottom+pt<=le==cr?"after":"before";var eo=li(P,wt($,Wi,xa),"line",K,Me);ia=eo.left,ba=le<eo.top?-1:le>=eo.bottom?1:0}return Wi=Ce(K.text,Wi,1),di($,Wi,xa,ba,re-ia)}function dr(P,K,$,re,le,Me,pt){var jt=Ie(function(Dn){var ui=le[Dn],hi=ui.level!=1;return ct(li(P,wt($,hi?ui.to:ui.from,hi?"before":"after"),"line",K,re),Me,pt,!0)},0,le.length-1),ar=le[jt];if(jt>0){var cr=ar.level!=1,bn=li(P,wt($,cr?ar.from:ar.to,cr?"after":"before"),"line",K,re);ct(bn,Me,pt,!0)&&bn.top>pt&&(ar=le[jt-1])}return ar}function Lr(P,K,$,re,le,Me,pt){var jt=Et(P,K,re,pt),ar=jt.begin,cr=jt.end;/\s/.test(K.text.charAt(cr-1))&&cr--;for(var bn=null,Dn=null,ui=0;ui<le.length;ui++){var hi=le[ui];if(hi.from>=cr||hi.to<=ar)continue;var Wi=hi.level!=1,ia=mi(P,re,Wi?Math.min(cr,hi.to)-1:Math.max(ar,hi.from)).right,xa=ia<Me?Me-ia+1e9:ia-Me;(!bn||Dn>xa)&&(bn=hi,Dn=xa)}return bn||(bn=le[le.length-1]),bn.from<ar&&(bn={from:ar,to:bn.to,level:bn.level}),bn.to>cr&&(bn={from:bn.from,to:cr,level:bn.level}),bn}var Jr;function fn(P){if(P.cachedTextHeight!=null)return P.cachedTextHeight;if(Jr==null){Jr=I("pre",null,"CodeMirror-line-like");for(var K=0;K<49;++K)Jr.appendChild(document.createTextNode("x")),Jr.appendChild(I("br"));Jr.appendChild(document.createTextNode("x"))}_(P.measure,Jr);var $=Jr.offsetHeight/50;return $>3&&(P.cachedTextHeight=$),w(P.measure),$||1}function Cn(P){if(P.cachedCharWidth!=null)return P.cachedCharWidth;var K=I("span","xxxxxxxxxx"),$=I("pre",[K],"CodeMirror-line-like");_(P.measure,$);var re=K.getBoundingClientRect(),le=(re.right-re.left)/10;return le>2&&(P.cachedCharWidth=le),le||10}function Nn(P){for(var K=P.display,$={},re={},le=K.gutters.clientLeft,Me=K.gutters.firstChild,pt=0;Me;Me=Me.nextSibling,++pt){var jt=P.display.gutterSpecs[pt].className;$[jt]=Me.offsetLeft+Me.clientLeft+le,re[jt]=Me.clientWidth}return{fixedPos:Zn(K),gutterTotalWidth:K.gutters.offsetWidth,gutterLeft:$,gutterWidth:re,wrapperWidth:K.wrapper.clientWidth}}function Zn(P){return P.scroller.getBoundingClientRect().left-P.sizer.getBoundingClientRect().left}function ii(P){var K=fn(P.display),$=P.options.lineWrapping,re=$&&Math.max(5,P.display.scroller.clientWidth/Cn(P.display)-3);return function(le){if(Vr(P.doc,le))return 0;var Me=0;if(le.widgets)for(var pt=0;pt<le.widgets.length;pt++)le.widgets[pt].height&&(Me+=le.widgets[pt].height);return $?Me+(Math.ceil(le.text.length/re)||1)*K:Me+K}}function pi(P){var K=P.doc,$=ii(P);K.iter(function(re){var le=$(re);le!=re.height&&Dt(re,le)})}function ri(P,K,$,re){var le=P.display;if(!$&&Ee(K).getAttribute("cm-not-content")=="true")return null;var Me,pt,jt=le.lineSpace.getBoundingClientRect();try{Me=K.clientX-jt.left,pt=K.clientY-jt.top}catch(Dn){return null}var ar=Yt(P,Me,pt),cr;if(re&&ar.xRel>0&&(cr=Pe(P.doc,ar.line).text).length==ar.ch){var bn=W(cr,cr.length,P.options.tabSize)-cr.length;ar=wt(ar.line,Math.max(0,Math.round((Me-rn(P.display).left)/Cn(P.display))-bn))}return ar}function ji(P,K){if(K>=P.display.viewTo)return null;if(K-=P.display.viewFrom,K<0)return null;for(var $=P.display.view,re=0;re<$.length;re++)if(K-=$[re].size,K<0)return re}function ei(P,K,$,re){K==null&&(K=P.doc.first),$==null&&($=P.doc.first+P.doc.size),re||(re=0);var le=P.display;if(re&&$<le.viewTo&&(le.updateLineNumbers==null||le.updateLineNumbers>K)&&(le.updateLineNumbers=K),P.curOp.viewChanged=!0,K>=le.viewTo)We&&Lt(P.doc,K)<le.viewTo&&Gt(P);else if($<=le.viewFrom)We&&wr(P.doc,$+re)>le.viewFrom?Gt(P):(le.viewFrom+=re,le.viewTo+=re);else if(K<=le.viewFrom&&$>=le.viewTo)Gt(P);else if(K<=le.viewFrom){var Me=vr(P,$,$+re,1);Me?(le.view=le.view.slice(Me.index),le.viewFrom=Me.lineN,le.viewTo+=re):Gt(P)}else if($>=le.viewTo){var pt=vr(P,K,K,-1);pt?(le.view=le.view.slice(0,pt.index),le.viewTo=pt.lineN):Gt(P)}else{var jt=vr(P,K,K,-1),ar=vr(P,$,$+re,1);jt&&ar?(le.view=le.view.slice(0,jt.index).concat(bi(P,jt.lineN,ar.lineN)).concat(le.view.slice(ar.index)),le.viewTo+=re):Gt(P)}var cr=le.externalMeasured;cr&&($<cr.lineN?cr.lineN+=re:K<cr.lineN+cr.size&&(le.externalMeasured=null))}function Je(P,K,$){P.curOp.viewChanged=!0;var re=P.display,le=P.display.externalMeasured;if(le&&K>=le.lineN&&K<le.lineN+le.size&&(re.externalMeasured=null),K<re.viewFrom||K>=re.viewTo)return;var Me=re.view[ji(P,K)];if(Me.node==null)return;var pt=Me.changes||(Me.changes=[]);z(pt,$)==-1&&pt.push($)}function Gt(P){P.display.viewFrom=P.display.viewTo=P.doc.first,P.display.view=[],P.display.viewOffset=0}function vr(P,K,$,re){var le=ji(P,K),Me,pt=P.display.view;if(!We||$==P.doc.first+P.doc.size)return{index:le,lineN:$};for(var jt=P.display.viewFrom,ar=0;ar<le;ar++)jt+=pt[ar].size;if(jt!=K){if(re>0){if(le==pt.length-1)return null;Me=jt+pt[le].size-K,le++}else Me=jt-K;K+=Me,$+=Me}for(;Lt(P.doc,$)!=$;){if(le==(re<0?0:pt.length-1))return null;$+=re*pt[le-(re<0?1:0)].size,le+=re}return{index:le,lineN:$}}function fr(P,K,$){var re=P.display,le=re.view;le.length==0||K>=re.viewTo||$<=re.viewFrom?(re.view=bi(P,K,$),re.viewFrom=K):(re.viewFrom>K?re.view=bi(P,K,re.viewFrom).concat(re.view):re.viewFrom<K&&(re.view=re.view.slice(ji(P,K))),re.viewFrom=K,re.viewTo<$?re.view=re.view.concat(bi(P,re.viewTo,$)):re.viewTo>$&&(re.view=re.view.slice(0,ji(P,$)))),re.viewTo=$}function Gr(P){for(var K=P.display.view,$=0,re=0;re<K.length;re++){var le=K[re];!le.hidden&&(!le.node||le.changes)&&++$}return $}function Pr(P){P.display.input.showSelection(P.display.input.prepareSelection())}function hr(P,K){K===void 0&&(K=!0);for(var $=P.doc,re={},le=re.cursors=document.createDocumentFragment(),Me=re.selection=document.createDocumentFragment(),pt=0;pt<$.sel.ranges.length;pt++){if(!K&&pt==$.sel.primIndex)continue;var jt=$.sel.ranges[pt];if(jt.from().line>=P.display.viewTo||jt.to().line<P.display.viewFrom)continue;var ar=jt.empty();(ar||P.options.showCursorWhenSelecting)&&An(P,jt.head,le),ar||pn(P,jt,Me)}return re}function An(P,K,$){var re=li(P,K,"div",null,null,!P.options.singleCursorHeightPerLine),le=$.appendChild(I("div","\xA0","CodeMirror-cursor"));if(le.style.left=re.left+"px",le.style.top=re.top+"px",le.style.height=Math.max(0,re.bottom-re.top)*P.options.cursorHeight+"px",re.other){var Me=$.appendChild(I("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Me.style.display="",Me.style.left=re.other.left+"px",Me.style.top=re.other.top+"px",Me.style.height=(re.other.bottom-re.other.top)*.85+"px"}}function br(P,K){return P.top-K.top||P.left-K.left}function pn(P,K,$){var re=P.display,le=P.doc,Me=document.createDocumentFragment(),pt=rn(P.display),jt=pt.left,ar=Math.max(re.sizerWidth,en(P)-re.sizer.offsetLeft)-pt.right,cr=le.direction=="ltr";function bn(Ua,eo,ko,To){eo<0&&(eo=0),eo=Math.round(eo),To=Math.round(To),Me.appendChild(I("div",null,"CodeMirror-selected","position: absolute; left: "+Ua+`px;
|
|
|
top: `+eo+"px; width: "+(ko==null?ar-Ua:ko)+`px;
|
|
|
height: `+(To-eo)+"px"))}function Dn(Ua,eo,ko){var To=Pe(le,Ua),ns=To.text.length,Ss,Hs;function Ls(tl,xl){return ni(P,wt(Ua,tl),"div",To,xl)}function ul(tl,xl,cl){var Oa=yr(P,To,null,tl),ks=xl=="ltr"==(cl=="after")?"left":"right",Ps=cl=="after"?Oa.begin:Oa.end-(/\s/.test(To.text.charAt(Oa.end-1))?2:1);return Ls(Ps,ks)[ks]}var Sl=gt(To,le.direction);return ce(Sl,eo||0,ko==null?ns:ko,function(tl,xl,cl,Oa){var ks=cl=="ltr",Ps=Ls(tl,ks?"left":"right"),Ys=Ls(xl-1,ks?"right":"left"),Lu=eo==null&&tl==0,gs=ko==null&&xl==ns,ts=Oa==0,zl=!Sl||Oa==Sl.length-1;if(Ys.top-Ps.top<=3){var yl=(cr?Lu:gs)&&ts,Nu=(cr?gs:Lu)&&zl,du=yl?jt:(ks?Ps:Ys).left,Vl=Nu?ar:(ks?Ys:Ps).right;bn(du,Ps.top,Vl-du,Ps.bottom)}else{var Su,Il,hu,ju;ks?(Su=cr&&Lu&&ts?jt:Ps.left,Il=cr?ar:ul(tl,cl,"before"),hu=cr?jt:ul(xl,cl,"after"),ju=cr&&gs&&zl?ar:Ys.right):(Su=cr?ul(tl,cl,"before"):jt,Il=!cr&&Lu&&ts?ar:Ps.right,hu=!cr&&gs&&zl?jt:Ys.left,ju=cr?ul(xl,cl,"after"):ar),bn(Su,Ps.top,Il-Su,Ps.bottom),Ps.bottom<Ys.top&&bn(jt,Ps.bottom,null,Ys.top),bn(hu,Ys.top,ju-hu,Ys.bottom)}(!Ss||br(Ps,Ss)<0)&&(Ss=Ps),br(Ys,Ss)<0&&(Ss=Ys),(!Hs||br(Ps,Hs)<0)&&(Hs=Ps),br(Ys,Hs)<0&&(Hs=Ys)}),{start:Ss,end:Hs}}var ui=K.from(),hi=K.to();if(ui.line==hi.line)Dn(ui.line,ui.ch,hi.ch);else{var Wi=Pe(le,ui.line),ia=Pe(le,hi.line),xa=Mr(Wi)==Mr(ia),ba=Dn(ui.line,ui.ch,xa?Wi.text.length+1:null).end,va=Dn(hi.line,xa?0:null,hi.ch).start;xa&&(ba.top<va.top-2?(bn(ba.right,ba.top,null,ba.bottom),bn(jt,va.top,va.left,va.bottom)):bn(ba.right,ba.top,va.left-ba.right,ba.bottom)),ba.bottom<va.top&&bn(jt,ba.bottom,null,va.top)}$.appendChild(Me)}function Kn(P){if(!P.state.focused)return;var K=P.display;clearInterval(K.blinker);var $=!0;K.cursorDiv.style.visibility="",P.options.cursorBlinkRate>0?K.blinker=setInterval(function(){P.hasFocus()||Un(P),K.cursorDiv.style.visibility=($=!$)?"":"hidden"},P.options.cursorBlinkRate):P.options.cursorBlinkRate<0&&(K.cursorDiv.style.visibility="hidden")}function Wn(P){P.state.focused||(P.display.input.focus(),$n(P))}function Ln(P){P.state.delayingBlurEvent=!0,setTimeout(function(){P.state.delayingBlurEvent&&(P.state.delayingBlurEvent=!1,Un(P))},100)}function $n(P,K){if(P.state.delayingBlurEvent&&(P.state.delayingBlurEvent=!1),P.options.readOnly=="nocursor")return;P.state.focused||(xt(P,"focus",P,K),P.state.focused=!0,k(P.display.wrapper,"CodeMirror-focused"),!P.curOp&&P.display.selForContextMenu!=P.doc.sel&&(P.display.input.reset(),o&&setTimeout(function(){return P.display.input.reset(!0)},20)),P.display.input.receivedFocus()),Kn(P)}function Un(P,K){if(P.state.delayingBlurEvent)return;P.state.focused&&(xt(P,"blur",P,K),P.state.focused=!1,b(P.display.wrapper,"CodeMirror-focused")),clearInterval(P.display.blinker),setTimeout(function(){P.state.focused||(P.display.shift=!1)},150)}function ti(P){for(var K=P.display,$=K.lineDiv.offsetTop,re=0;re<K.view.length;re++){var le=K.view[re],Me=P.options.lineWrapping,pt=void 0,jt=0;if(le.hidden)continue;if(f&&c<8){var ar=le.node.offsetTop+le.node.offsetHeight;pt=ar-$,$=ar}else{var cr=le.node.getBoundingClientRect();pt=cr.bottom-cr.top,!Me&&le.text.firstChild&&(jt=le.text.firstChild.getBoundingClientRect().right-cr.left-1)}var bn=le.line.height-pt;if((bn>.005||bn<-.005)&&(Dt(le.line,pt),Gn(le.line),le.rest))for(var Dn=0;Dn<le.rest.length;Dn++)Gn(le.rest[Dn]);if(jt>P.display.sizerWidth){var ui=Math.ceil(jt/Cn(P.display));ui>P.display.maxLineLength&&(P.display.maxLineLength=ui,P.display.maxLine=le.line,P.display.maxLineChanged=!0)}}}function Gn(P){if(P.widgets)for(var K=0;K<P.widgets.length;++K){var $=P.widgets[K],re=$.node.parentNode;re&&($.height=re.offsetHeight)}}function wi(P,K,$){var re=$&&$.top!=null?Math.max(0,$.top):P.scroller.scrollTop;re=Math.floor(re-Ds(P));var le=$&&$.bottom!=null?$.bottom:re+P.wrapper.clientHeight,Me=It(K,re),pt=It(K,le);if($&&$.ensure){var jt=$.ensure.from.line,ar=$.ensure.to.line;jt<Me?(Me=jt,pt=It(K,qr(Pe(K,jt))+P.wrapper.clientHeight)):Math.min(ar,K.lastLine())>=pt&&(Me=It(K,qr(Pe(K,ar))-P.wrapper.clientHeight),pt=ar)}return{from:Me,to:Math.max(pt,Me+1)}}function Ei(P,K){if(Ht(P,"scrollCursorIntoView"))return;var $=P.display,re=$.sizer.getBoundingClientRect(),le=null;if(K.top+re.top<0?le=!0:K.bottom+re.top>(window.innerHeight||document.documentElement.clientHeight)&&(le=!1),le!=null&&!t){var Me=I("div","\u200B",null,`position: absolute;
|
|
|
top: `+(K.top-$.viewOffset-Ds(P.display))+`px;
|
|
|
height: `+(K.bottom-K.top+En(P)+$.barHeight)+`px;
|
|
|
left: `+K.left+"px; width: "+Math.max(2,K.right-K.left)+"px;");P.display.lineSpace.appendChild(Me),Me.scrollIntoView(le),P.display.lineSpace.removeChild(Me)}}function Zi(P,K,$,re){re==null&&(re=0);var le;!P.options.lineWrapping&&K==$&&(K=K.ch?wt(K.line,K.sticky=="before"?K.ch-1:K.ch,"after"):K,$=K.sticky=="before"?wt(K.line,K.ch+1,"before"):K);for(var Me=0;Me<5;Me++){var pt=!1,jt=li(P,K),ar=!$||$==K?jt:li(P,$);le={left:Math.min(jt.left,ar.left),top:Math.min(jt.top,ar.top)-re,right:Math.max(jt.left,ar.left),bottom:Math.max(jt.bottom,ar.bottom)+re};var cr=Xi(P,le),bn=P.doc.scrollTop,Dn=P.doc.scrollLeft;if(cr.scrollTop!=null&&(aa(P,cr.scrollTop),Math.abs(P.doc.scrollTop-bn)>1&&(pt=!0)),cr.scrollLeft!=null&&(Aa(P,cr.scrollLeft),Math.abs(P.doc.scrollLeft-Dn)>1&&(pt=!0)),!pt)break}return le}function ua(P,K){var $=Xi(P,K);$.scrollTop!=null&&aa(P,$.scrollTop),$.scrollLeft!=null&&Aa(P,$.scrollLeft)}function Xi(P,K){var $=P.display,re=fn(P.display);K.top<0&&(K.top=0);var le=P.curOp&&P.curOp.scrollTop!=null?P.curOp.scrollTop:$.scroller.scrollTop,Me=ur(P),pt={};K.bottom-K.top>Me&&(K.bottom=K.top+Me);var jt=P.doc.height+Nr($),ar=K.top<re,cr=K.bottom>jt-re;if(K.top<le)pt.scrollTop=ar?0:K.top;else if(K.bottom>le+Me){var bn=Math.min(K.top,(cr?jt:K.bottom)-Me);bn!=le&&(pt.scrollTop=bn)}var Dn=P.options.fixedGutter?0:$.gutters.offsetWidth,ui=P.curOp&&P.curOp.scrollLeft!=null?P.curOp.scrollLeft:$.scroller.scrollLeft-Dn,hi=en(P)-$.gutters.offsetWidth,Wi=K.right-K.left>hi;return Wi&&(K.right=K.left+hi),K.left<10?pt.scrollLeft=0:K.left<ui?pt.scrollLeft=Math.max(0,K.left+Dn-(Wi?0:10)):K.right>hi+ui-3&&(pt.scrollLeft=K.right+(Wi?0:10)-hi),pt}function Gi(P,K){if(K==null)return;Ca(P),P.curOp.scrollTop=(P.curOp.scrollTop==null?P.doc.scrollTop:P.curOp.scrollTop)+K}function wa(P){Ca(P);var K=P.getCursor();P.curOp.scrollToPos={from:K,to:K,margin:P.options.cursorScrollMargin}}function na(P,K,$){(K!=null||$!=null)&&Ca(P),K!=null&&(P.curOp.scrollLeft=K),$!=null&&(P.curOp.scrollTop=$)}function mo(P,K){Ca(P),P.curOp.scrollToPos=K}function Ca(P){var K=P.curOp.scrollToPos;if(K){P.curOp.scrollToPos=null;var $=fi(P,K.from),re=fi(P,K.to);qi(P,$,re,K.margin)}}function qi(P,K,$,re){var le=Xi(P,{left:Math.min(K.left,$.left),top:Math.min(K.top,$.top)-re,right:Math.max(K.right,$.right),bottom:Math.max(K.bottom,$.bottom)+re});na(P,le.scrollLeft,le.scrollTop)}function aa(P,K){if(Math.abs(P.doc.scrollTop-K)<2)return;C||vo(P,{top:K}),$i(P,K,!0),C&&vo(P),Ea(P,100)}function $i(P,K,$){if(K=Math.max(0,Math.min(P.display.scroller.scrollHeight-P.display.scroller.clientHeight,K)),P.display.scroller.scrollTop==K&&!$)return;P.doc.scrollTop=K,P.display.scrollbars.setScrollTop(K),P.display.scroller.scrollTop!=K&&(P.display.scroller.scrollTop=K)}function Aa(P,K,$,re){if(K=Math.max(0,Math.min(K,P.display.scroller.scrollWidth-P.display.scroller.clientWidth)),($?K==P.doc.scrollLeft:Math.abs(P.doc.scrollLeft-K)<2)&&!re)return;P.doc.scrollLeft=K,Ja(P),P.display.scroller.scrollLeft!=K&&(P.display.scroller.scrollLeft=K),P.display.scrollbars.setScrollLeft(K)}function ya(P){var K=P.display,$=K.gutters.offsetWidth,re=Math.round(P.doc.height+Nr(P.display));return{clientHeight:K.scroller.clientHeight,viewHeight:K.wrapper.clientHeight,scrollWidth:K.scroller.scrollWidth,clientWidth:K.scroller.clientWidth,viewWidth:K.wrapper.clientWidth,barLeft:P.options.fixedGutter?$:0,docHeight:re,scrollHeight:re+En(P)+K.barHeight,nativeBarWidth:K.nativeBarWidth,gutterWidth:$}}var Ha=function(K,$,re){this.cm=re;var le=this.vert=I("div",[I("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Me=this.horiz=I("div",[I("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");le.tabIndex=Me.tabIndex=-1,K(le),K(Me),Le(le,"scroll",function(){le.clientHeight&&$(le.scrollTop,"vertical")}),Le(Me,"scroll",function(){Me.clientWidth&&$(Me.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,f&&c<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ha.prototype.update=function(P){var K=P.scrollWidth>P.clientWidth+1,$=P.scrollHeight>P.clientHeight+1,re=P.nativeBarWidth;if($){this.vert.style.display="block",this.vert.style.bottom=K?re+"px":"0";var le=P.viewHeight-(K?re:0);this.vert.firstChild.style.height=Math.max(0,P.scrollHeight-P.clientHeight+le)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(K){this.horiz.style.display="block",this.horiz.style.right=$?re+"px":"0",this.horiz.style.left=P.barLeft+"px";var Me=P.viewWidth-P.barLeft-($?re:0);this.horiz.firstChild.style.width=Math.max(0,P.scrollWidth-P.clientWidth+Me)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&P.clientHeight>0&&(re==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:$?re:0,bottom:K?re:0}},Ha.prototype.setScrollLeft=function(P){this.horiz.scrollLeft!=P&&(this.horiz.scrollLeft=P),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ha.prototype.setScrollTop=function(P){this.vert.scrollTop!=P&&(this.vert.scrollTop=P),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ha.prototype.zeroWidthHack=function(){var P=h&&!l?"12px":"18px";this.horiz.style.height=this.vert.style.width=P,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new V,this.disableVert=new V},Ha.prototype.enableZeroWidthBar=function(P,K,$){P.style.pointerEvents="auto";function re(){var le=P.getBoundingClientRect(),Me=$=="vert"?document.elementFromPoint(le.right-1,(le.top+le.bottom)/2):document.elementFromPoint((le.right+le.left)/2,le.bottom-1);Me!=P?P.style.pointerEvents="none":K.set(1e3,re)}K.set(1e3,re)},Ha.prototype.clear=function(){var P=this.horiz.parentNode;P.removeChild(this.horiz),P.removeChild(this.vert)};var ta=function(){};ta.prototype.update=function(){return{bottom:0,right:0}},ta.prototype.setScrollLeft=function(){},ta.prototype.setScrollTop=function(){},ta.prototype.clear=function(){};function ra(P,K){K||(K=ya(P));var $=P.display.barWidth,re=P.display.barHeight;_a(P,K);for(var le=0;le<4&&$!=P.display.barWidth||re!=P.display.barHeight;le++)$!=P.display.barWidth&&P.options.lineWrapping&&ti(P),_a(P,ya(P)),$=P.display.barWidth,re=P.display.barHeight}function _a(P,K){var $=P.display,re=$.scrollbars.update(K);$.sizer.style.paddingRight=($.barWidth=re.right)+"px",$.sizer.style.paddingBottom=($.barHeight=re.bottom)+"px",$.heightForcer.style.borderBottom=re.bottom+"px solid transparent",re.right&&re.bottom?($.scrollbarFiller.style.display="block",$.scrollbarFiller.style.height=re.bottom+"px",$.scrollbarFiller.style.width=re.right+"px"):$.scrollbarFiller.style.display="",re.bottom&&P.options.coverGutterNextToScrollbar&&P.options.fixedGutter?($.gutterFiller.style.display="block",$.gutterFiller.style.height=re.bottom+"px",$.gutterFiller.style.width=K.gutterWidth+"px"):$.gutterFiller.style.display=""}var Ka={native:Ha,null:ta};function bo(P){P.display.scrollbars&&(P.display.scrollbars.clear(),P.display.scrollbars.addClass&&b(P.display.wrapper,P.display.scrollbars.addClass)),P.display.scrollbars=new Ka[P.options.scrollbarStyle](function(K){P.display.wrapper.insertBefore(K,P.display.scrollbarFiller),Le(K,"mousedown",function(){P.state.focused&&setTimeout(function(){return P.display.input.focus()},0)}),K.setAttribute("cm-not-content","true")},function(K,$){$=="horizontal"?Aa(P,K):aa(P,K)},P),P.display.scrollbars.addClass&&k(P.display.wrapper,P.display.scrollbars.addClass)}var ga=0;function go(P){P.curOp={cm:P,viewChanged:!1,startHeight:P.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:++ga},zi(P.curOp)}function Sa(P){var K=P.curOp;K&&Yi(K,function($){for(var re=0;re<$.ops.length;re++)$.ops[re].cm.curOp=null;Va($)})}function Va(P){for(var K=P.ops,$=0;$<K.length;$++)uo(K[$]);for(var re=0;re<K.length;re++)No(K[re]);for(var le=0;le<K.length;le++)Po(K[le]);for(var Me=0;Me<K.length;Me++)to(K[Me]);for(var pt=0;pt<K.length;pt++)Uo(K[pt])}function uo(P){var K=P.cm,$=K.display;rs(K),P.updateMaxLine&&Vn(K),P.mustUpdate=P.viewChanged||P.forceUpdate||P.scrollTop!=null||P.scrollToPos&&(P.scrollToPos.from.line<$.viewFrom||P.scrollToPos.to.line>=$.viewTo)||$.maxLineChanged&&K.options.lineWrapping,P.update=P.mustUpdate&&new za(K,P.mustUpdate&&{top:P.scrollTop,ensure:P.scrollToPos},P.forceUpdate)}function No(P){P.updatedDisplay=P.mustUpdate&&Qo(P.cm,P.update)}function Po(P){var K=P.cm,$=K.display;P.updatedDisplay&&ti(K),P.barMeasure=ya(K),$.maxLineChanged&&!K.options.lineWrapping&&(P.adjustWidthTo=Ii(K,$.maxLine,$.maxLine.text.length).left+3,K.display.sizerWidth=P.adjustWidthTo,P.barMeasure.scrollWidth=Math.max($.scroller.clientWidth,$.sizer.offsetLeft+P.adjustWidthTo+En(K)+K.display.barWidth),P.maxScrollLeft=Math.max(0,$.sizer.offsetLeft+P.adjustWidthTo-en(K))),(P.updatedDisplay||P.selectionChanged)&&(P.preparedSelection=$.input.prepareSelection())}function to(P){var K=P.cm;P.adjustWidthTo!=null&&(K.display.sizer.style.minWidth=P.adjustWidthTo+"px",P.maxScrollLeft<K.doc.scrollLeft&&Aa(K,Math.min(K.display.scroller.scrollLeft,P.maxScrollLeft),!0),K.display.maxLineChanged=!1);var $=P.focus&&P.focus==R();P.preparedSelection&&K.display.input.showSelection(P.preparedSelection,$),(P.updatedDisplay||P.startHeight!=K.doc.height)&&ra(K,P.barMeasure),P.updatedDisplay&&Fa(K,P.barMeasure),P.selectionChanged&&Kn(K),K.state.focused&&P.updateInput&&K.display.input.reset(P.typing),$&&Wn(P.cm)}function Uo(P){var K=P.cm,$=K.display,re=K.doc;if(P.updatedDisplay&&Yo(K,P.update),$.wheelStartX!=null&&(P.scrollTop!=null||P.scrollLeft!=null||P.scrollToPos)&&($.wheelStartX=$.wheelStartY=null),P.scrollTop!=null&&$i(K,P.scrollTop,P.forceScroll),P.scrollLeft!=null&&Aa(K,P.scrollLeft,!0,!0),P.scrollToPos){var le=Zi(K,ot(re,P.scrollToPos.from),ot(re,P.scrollToPos.to),P.scrollToPos.margin);Ei(K,le)}var Me=P.maybeHiddenMarkers,pt=P.maybeUnhiddenMarkers;if(Me)for(var jt=0;jt<Me.length;++jt)Me[jt].lines.length||xt(Me[jt],"hide");if(pt)for(var ar=0;ar<pt.length;++ar)pt[ar].lines.length&&xt(pt[ar],"unhide");$.wrapper.offsetHeight&&(re.scrollTop=K.display.scroller.scrollTop),P.changeObjs&&xt(K,"changes",K,P.changeObjs),P.update&&P.update.finish()}function co(P,K){if(P.curOp)return K();go(P);try{return K()}finally{Sa(P)}}function fa(P,K){return function(){if(P.curOp)return K.apply(P,arguments);go(P);try{return K.apply(P,arguments)}finally{Sa(P)}}}function ro(P){return function(){if(this.curOp)return P.apply(this,arguments);go(this);try{return P.apply(this,arguments)}finally{Sa(this)}}}function Wa(P){return function(){var K=this.cm;if(!K||K.curOp)return P.apply(this,arguments);go(K);try{return P.apply(this,arguments)}finally{Sa(K)}}}function Ea(P,K){P.doc.highlightFrontier<P.display.viewTo&&P.state.highlight.set(K,B(Qr,P))}function Qr(P){var K=P.doc;if(K.highlightFrontier>=P.display.viewTo)return;var $=+new Date+P.options.workTime,re=Mn(P,K.highlightFrontier),le=[];K.iter(re.line,Math.min(K.first+K.size,P.display.viewTo+500),function(Me){if(re.line>=P.display.viewFrom){var pt=Me.styles,jt=Me.text.length>P.options.maxHighlightLength?kt(K.mode,re.state):null,ar=tn(P,Me,re,!0);jt&&(re.state=jt),Me.styles=ar.styles;var cr=Me.styleClasses,bn=ar.classes;bn?Me.styleClasses=bn:cr&&(Me.styleClasses=null);for(var Dn=!pt||pt.length!=Me.styles.length||cr!=bn&&(!cr||!bn||cr.bgClass!=bn.bgClass||cr.textClass!=bn.textClass),ui=0;!Dn&&ui<pt.length;++ui)Dn=pt[ui]!=Me.styles[ui];Dn&&le.push(re.line),Me.stateAfter=re.save(),re.nextLine()}else Me.text.length<=P.options.maxHighlightLength&&Xn(P,Me.text,re),Me.stateAfter=re.line%5==0?re.save():null,re.nextLine();if(+new Date>$)return Ea(P,P.options.workDelay),!0}),K.highlightFrontier=re.line,K.modeFrontier=Math.max(K.modeFrontier,re.line),le.length&&co(P,function(){for(var Me=0;Me<le.length;Me++)Je(P,le[Me],"text")})}var za=function(K,$,re){var le=K.display;this.viewport=$,this.visible=wi(le,K.doc,$),this.editorIsHidden=!le.wrapper.offsetWidth,this.wrapperHeight=le.wrapper.clientHeight,this.wrapperWidth=le.wrapper.clientWidth,this.oldDisplayWidth=en(K),this.force=re,this.dims=Nn(K),this.events=[]};za.prototype.signal=function(P,K){Mt(P,K)&&this.events.push(arguments)},za.prototype.finish=function(){for(var P=0;P<this.events.length;P++)xt.apply(null,this.events[P])};function rs(P){var K=P.display;!K.scrollbarsClipped&&K.scroller.offsetWidth&&(K.nativeBarWidth=K.scroller.offsetWidth-K.scroller.clientWidth,K.heightForcer.style.height=En(P)+"px",K.sizer.style.marginBottom=-K.nativeBarWidth+"px",K.sizer.style.borderRightWidth=En(P)+"px",K.scrollbarsClipped=!0)}function Vo(P){if(P.hasFocus())return null;var K=R();if(!K||!D(P.display.lineDiv,K))return null;var $={activeElt:K};if(window.getSelection){var re=window.getSelection();re.anchorNode&&re.extend&&D(P.display.lineDiv,re.anchorNode)&&($.anchorNode=re.anchorNode,$.anchorOffset=re.anchorOffset,$.focusNode=re.focusNode,$.focusOffset=re.focusOffset)}return $}function Go(P){if(!P||!P.activeElt||P.activeElt==R())return;if(P.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(P.activeElt.nodeName)&&P.anchorNode&&D(document.body,P.anchorNode)&&D(document.body,P.focusNode)){var K=window.getSelection(),$=document.createRange();$.setEnd(P.anchorNode,P.anchorOffset),$.collapse(!1),K.removeAllRanges(),K.addRange($),K.extend(P.focusNode,P.focusOffset)}}function Qo(P,K){var $=P.display,re=P.doc;if(K.editorIsHidden)return Gt(P),!1;if(!K.force&&K.visible.from>=$.viewFrom&&K.visible.to<=$.viewTo&&($.updateLineNumbers==null||$.updateLineNumbers>=$.viewTo)&&$.renderedView==$.view&&Gr(P)==0)return!1;ho(P)&&(Gt(P),K.dims=Nn(P));var le=re.first+re.size,Me=Math.max(K.visible.from-P.options.viewportMargin,re.first),pt=Math.min(le,K.visible.to+P.options.viewportMargin);$.viewFrom<Me&&Me-$.viewFrom<20&&(Me=Math.max(re.first,$.viewFrom)),$.viewTo>pt&&$.viewTo-pt<20&&(pt=Math.min(le,$.viewTo)),We&&(Me=Lt(P.doc,Me),pt=wr(P.doc,pt));var jt=Me!=$.viewFrom||pt!=$.viewTo||$.lastWrapHeight!=K.wrapperHeight||$.lastWrapWidth!=K.wrapperWidth;fr(P,Me,pt),$.viewOffset=qr(Pe(P.doc,$.viewFrom)),P.display.mover.style.top=$.viewOffset+"px";var ar=Gr(P);if(!jt&&ar==0&&!K.force&&$.renderedView==$.view&&($.updateLineNumbers==null||$.updateLineNumbers>=$.viewTo))return!1;var cr=Vo(P);return ar>4&&($.lineDiv.style.display="none"),Io(P,$.updateLineNumbers,K.dims),ar>4&&($.lineDiv.style.display=""),$.renderedView=$.view,Go(cr),w($.cursorDiv),w($.selectionDiv),$.gutters.style.height=$.sizer.style.minHeight=0,jt&&($.lastWrapHeight=K.wrapperHeight,$.lastWrapWidth=K.wrapperWidth,Ea(P,400)),$.updateLineNumbers=null,!0}function Yo(P,K){for(var $=K.viewport,re=!0;;re=!1){if(!re||!P.options.lineWrapping||K.oldDisplayWidth==en(P)){if($&&$.top!=null&&($={top:Math.min(P.doc.height+Nr(P.display)-ur(P),$.top)}),K.visible=wi(P.display,P.doc,$),K.visible.from>=P.display.viewFrom&&K.visible.to<=P.display.viewTo)break}else re&&(K.visible=wi(P.display,P.doc,$));if(!Qo(P,K))break;ti(P);var le=ya(P);Pr(P),ra(P,le),Fa(P,le),K.force=!1}K.signal(P,"update",P),(P.display.viewFrom!=P.display.reportedViewFrom||P.display.viewTo!=P.display.reportedViewTo)&&(K.signal(P,"viewportChange",P,P.display.viewFrom,P.display.viewTo),P.display.reportedViewFrom=P.display.viewFrom,P.display.reportedViewTo=P.display.viewTo)}function vo(P,K){var $=new za(P,K);if(Qo(P,$)){ti(P),Yo(P,$);var re=ya(P);Pr(P),ra(P,re),Fa(P,re),$.finish()}}function Io(P,K,$){var re=P.display,le=P.options.lineNumbers,Me=re.lineDiv,pt=Me.firstChild;function jt(Wi){var ia=Wi.nextSibling;return o&&h&&P.display.currentWheelTarget==Wi?Wi.style.display="none":Wi.parentNode.removeChild(Wi),ia}for(var ar=re.view,cr=re.viewFrom,bn=0;bn<ar.length;bn++){var Dn=ar[bn];if(!Dn.hidden)if(!Dn.node||Dn.node.parentNode!=Me){var ui=sa(P,Dn,cr,$);Me.insertBefore(ui,pt)}else{for(;pt!=Dn.node;)pt=jt(pt);var hi=le&&K!=null&&K<=cr&&Dn.lineNumber;Dn.changes&&(z(Dn.changes,"gutter")>-1&&(hi=!1),Da(P,Dn,cr,$)),hi&&(w(Dn.lineNumber),Dn.lineNumber.appendChild(document.createTextNode(kr(P.options,cr)))),pt=Dn.node.nextSibling}cr+=Dn.size}for(;pt;)pt=jt(pt)}function zo(P){var K=P.gutters.offsetWidth;P.sizer.style.marginLeft=K+"px"}function Fa(P,K){P.display.sizer.style.minHeight=K.docHeight+"px",P.display.heightForcer.style.top=K.docHeight+"px",P.display.gutters.style.height=K.docHeight+P.display.barHeight+En(P)+"px"}function Ja(P){var K=P.display,$=K.view;if(!K.alignWidgets&&(!K.gutters.firstChild||!P.options.fixedGutter))return;for(var re=Zn(K)-K.scroller.scrollLeft+P.doc.scrollLeft,le=K.gutters.offsetWidth,Me=re+"px",pt=0;pt<$.length;pt++)if(!$[pt].hidden){P.options.fixedGutter&&($[pt].gutter&&($[pt].gutter.style.left=Me),$[pt].gutterBackground&&($[pt].gutterBackground.style.left=Me));var jt=$[pt].alignable;if(jt)for(var ar=0;ar<jt.length;ar++)jt[ar].style.left=Me}P.options.fixedGutter&&(K.gutters.style.left=re+le+"px")}function ho(P){if(!P.options.lineNumbers)return!1;var K=P.doc,$=kr(P.options,K.first+K.size-1),re=P.display;if($.length!=re.lineNumChars){var le=re.measure.appendChild(I("div",[I("div",$)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Me=le.firstChild.offsetWidth,pt=le.offsetWidth-Me;return re.lineGutter.style.width="",re.lineNumInnerWidth=Math.max(Me,re.lineGutter.offsetWidth-pt)+1,re.lineNumWidth=re.lineNumInnerWidth+pt,re.lineNumChars=re.lineNumInnerWidth?$.length:-1,re.lineGutter.style.width=re.lineNumWidth+"px",zo(P.display),!0}return!1}function Ao(P,K){for(var $=[],re=!1,le=0;le<P.length;le++){var Me=P[le],pt=null;if(typeof Me!="string"&&(pt=Me.style,Me=Me.className),Me=="CodeMirror-linenumbers")if(K)re=!0;else continue;$.push({className:Me,style:pt})}return K&&!re&&$.push({className:"CodeMirror-linenumbers",style:null}),$}function $o(P){var K=P.gutters,$=P.gutterSpecs;w(K),P.lineGutter=null;for(var re=0;re<$.length;++re){var le=$[re],Me=le.className,pt=le.style,jt=K.appendChild(I("div",null,"CodeMirror-gutter "+Me));pt&&(jt.style.cssText=pt),Me=="CodeMirror-linenumbers"&&(P.lineGutter=jt,jt.style.width=(P.lineNumWidth||1)+"px")}K.style.display=$.length?"":"none",zo(P)}function ps(P){$o(P.display),ei(P),Ja(P)}function is(P,K,$,re){var le=this;this.input=$,le.scrollbarFiller=I("div",null,"CodeMirror-scrollbar-filler"),le.scrollbarFiller.setAttribute("cm-not-content","true"),le.gutterFiller=I("div",null,"CodeMirror-gutter-filler"),le.gutterFiller.setAttribute("cm-not-content","true"),le.lineDiv=L("div",null,"CodeMirror-code"),le.selectionDiv=I("div",null,null,"position: relative; z-index: 1"),le.cursorDiv=I("div",null,"CodeMirror-cursors"),le.measure=I("div",null,"CodeMirror-measure"),le.lineMeasure=I("div",null,"CodeMirror-measure"),le.lineSpace=L("div",[le.measure,le.lineMeasure,le.selectionDiv,le.cursorDiv,le.lineDiv],null,"position: relative; outline: none");var Me=L("div",[le.lineSpace],"CodeMirror-lines");le.mover=I("div",[Me],null,"position: relative"),le.sizer=I("div",[le.mover],"CodeMirror-sizer"),le.sizerWidth=null,le.heightForcer=I("div",null,null,"position: absolute; height: "+J+"px; width: 1px;"),le.gutters=I("div",null,"CodeMirror-gutters"),le.lineGutter=null,le.scroller=I("div",[le.sizer,le.heightForcer,le.gutters],"CodeMirror-scroll"),le.scroller.setAttribute("tabIndex","-1"),le.wrapper=I("div",[le.scrollbarFiller,le.gutterFiller,le.scroller],"CodeMirror"),f&&c<8&&(le.gutters.style.zIndex=-1,le.scroller.style.paddingRight=0),!o&&!(C&&u)&&(le.scroller.draggable=!0),P&&(P.appendChild?P.appendChild(le.wrapper):P(le.wrapper)),le.viewFrom=le.viewTo=K.first,le.reportedViewFrom=le.reportedViewTo=K.first,le.view=[],le.renderedView=null,le.externalMeasured=null,le.viewOffset=0,le.lastWrapHeight=le.lastWrapWidth=0,le.updateLineNumbers=null,le.nativeBarWidth=le.barHeight=le.barWidth=0,le.scrollbarsClipped=!1,le.lineNumWidth=le.lineNumInnerWidth=le.lineNumChars=null,le.alignWidgets=!1,le.cachedCharWidth=le.cachedTextHeight=le.cachedPaddingH=null,le.maxLine=null,le.maxLineLength=0,le.maxLineChanged=!1,le.wheelDX=le.wheelDY=le.wheelStartX=le.wheelStartY=null,le.shift=!1,le.selForContextMenu=null,le.activeTouch=null,le.gutterSpecs=Ao(re.gutters,re.lineNumbers),$o(le),$.init(le)}var Za=0,St=null;f?St=-.53:C?St=15:i?St=-.7:e&&(St=-1/3);function Pt(P){var K=P.wheelDeltaX,$=P.wheelDeltaY;return K==null&&P.detail&&P.axis==P.HORIZONTAL_AXIS&&(K=P.detail),$==null&&P.detail&&P.axis==P.VERTICAL_AXIS?$=P.detail:$==null&&($=P.wheelDelta),{x:K,y:$}}function Kr(P){var K=Pt(P);return K.x*=St,K.y*=St,K}function Pn(P,K){var $=Pt(K),re=$.x,le=$.y,Me=P.display,pt=Me.scroller,jt=pt.scrollWidth>pt.clientWidth,ar=pt.scrollHeight>pt.clientHeight;if(!(re&&jt||le&&ar))return;if(le&&h&&o){e:for(var cr=K.target,bn=Me.view;cr!=pt;cr=cr.parentNode)for(var Dn=0;Dn<bn.length;Dn++)if(bn[Dn].node==cr){P.display.currentWheelTarget=cr;break e}}if(re&&!C&&!n&&St!=null){le&&ar&&aa(P,Math.max(0,pt.scrollTop+le*St)),Aa(P,Math.max(0,pt.scrollLeft+re*St)),(!le||le&&ar)&&Xe(K),Me.wheelStartX=null;return}if(le&&St!=null){var ui=le*St,hi=P.doc.scrollTop,Wi=hi+Me.wrapper.clientHeight;ui<0?hi=Math.max(0,hi+ui-50):Wi=Math.min(P.doc.height,Wi+ui+50),vo(P,{top:hi,bottom:Wi})}Za<20&&(Me.wheelStartX==null?(Me.wheelStartX=pt.scrollLeft,Me.wheelStartY=pt.scrollTop,Me.wheelDX=re,Me.wheelDY=le,setTimeout(function(){if(Me.wheelStartX==null)return;var ia=pt.scrollLeft-Me.wheelStartX,xa=pt.scrollTop-Me.wheelStartY,ba=xa&&Me.wheelDY&&xa/Me.wheelDY||ia&&Me.wheelDX&&ia/Me.wheelDX;if(Me.wheelStartX=Me.wheelStartY=null,!ba)return;St=(St*Za+ba)/(Za+1),++Za},200)):(Me.wheelDX+=re,Me.wheelDY+=le))}var ut=function(K,$){this.ranges=K,this.primIndex=$};ut.prototype.primary=function(){return this.ranges[this.primIndex]},ut.prototype.equals=function(P){if(P==this)return!0;if(P.primIndex!=this.primIndex||P.ranges.length!=this.ranges.length)return!1;for(var K=0;K<this.ranges.length;K++){var $=this.ranges[K],re=P.ranges[K];if(!tt($.anchor,re.anchor)||!tt($.head,re.head))return!1}return!0},ut.prototype.deepCopy=function(){for(var P=[],K=0;K<this.ranges.length;K++)P[K]=new ne(Rt(this.ranges[K].anchor),Rt(this.ranges[K].head));return new ut(P,this.primIndex)},ut.prototype.somethingSelected=function(){for(var P=0;P<this.ranges.length;P++)if(!this.ranges[P].empty())return!0;return!1},ut.prototype.contains=function(P,K){K||(K=P);for(var $=0;$<this.ranges.length;$++){var re=this.ranges[$];if(rt(K,re.from())>=0&&rt(P,re.to())<=0)return $}return-1};var ne=function(K,$){this.anchor=K,this.head=$};ne.prototype.from=function(){return At(this.anchor,this.head)},ne.prototype.to=function(){return Ft(this.anchor,this.head)},ne.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function pe(P,K,$){var re=P&&P.options.selectionsMayTouch,le=K[$];K.sort(function(ui,hi){return rt(ui.from(),hi.from())}),$=z(K,le);for(var Me=1;Me<K.length;Me++){var pt=K[Me],jt=K[Me-1],ar=rt(jt.to(),pt.from());if(re&&!pt.empty()?ar>0:ar>=0){var cr=At(jt.from(),pt.from()),bn=Ft(jt.to(),pt.to()),Dn=jt.empty()?pt.from()==pt.head:jt.from()==jt.head;Me<=$&&--$,K.splice(--Me,2,new ne(Dn?bn:cr,Dn?cr:bn))}}return new ut(K,$)}function be(P,K){return new ut([new ne(P,K||P)],0)}function je(P){return P.text?wt(P.from.line+P.text.length-1,fe(P.text).length+(P.text.length==1?P.from.ch:0)):P.to}function ht(P,K){if(rt(P,K.from)<0)return P;if(rt(P,K.to)<=0)return je(K);var $=P.line+K.text.length-(K.to.line-K.from.line)-1,re=P.ch;return P.line==K.to.line&&(re+=je(K).ch-K.to.ch),wt($,re)}function Vt(P,K){for(var $=[],re=0;re<P.sel.ranges.length;re++){var le=P.sel.ranges[re];$.push(new ne(ht(le.anchor,K),ht(le.head,K)))}return pe(P.cm,$,P.sel.primIndex)}function Or(P,K,$){return P.line==K.line?wt($.line,P.ch-K.ch+$.ch):wt($.line+(P.line-K.line),P.ch)}function Yr(P,K,$){for(var re=[],le=wt(P.first,0),Me=le,pt=0;pt<K.length;pt++){var jt=K[pt],ar=Or(jt.from,le,Me),cr=Or(je(jt),le,Me);if(le=jt.to,Me=cr,$=="around"){var bn=P.sel.ranges[pt],Dn=rt(bn.head,bn.anchor)<0;re[pt]=new ne(Dn?cr:ar,Dn?ar:cr)}else re[pt]=new ne(ar,ar)}return new ut(re,P.sel.primIndex)}function cn(P){P.doc.mode=Mi(P.options,P.doc.modeOption),jn(P)}function jn(P){P.doc.iter(function(K){K.stateAfter&&(K.stateAfter=null),K.styles&&(K.styles=null)}),P.doc.modeFrontier=P.doc.highlightFrontier=P.doc.first,Ea(P,100),P.state.modeGen++,P.curOp&&ei(P)}function ai(P,K){return K.from.ch==0&&K.to.ch==0&&fe(K.text)==""&&(!P.cm||P.cm.options.wholeLineUpdateBefore)}function Qn(P,K,$,re){function le(va){return $?$[va]:null}function Me(va,Ua,eo){dn(va,Ua,eo,re),Hi(va,"change",va,K)}function pt(va,Ua){for(var eo=[],ko=va;ko<Ua;++ko)eo.push(new Ti(cr[ko],le(ko),re));return eo}var jt=K.from,ar=K.to,cr=K.text,bn=Pe(P,jt.line),Dn=Pe(P,ar.line),ui=fe(cr),hi=le(cr.length-1),Wi=ar.line-jt.line;if(K.full)P.insert(0,pt(0,cr.length)),P.remove(cr.length,P.size-cr.length);else if(ai(P,K)){var ia=pt(0,cr.length-1);Me(Dn,Dn.text,hi),Wi&&P.remove(jt.line,Wi),ia.length&&P.insert(jt.line,ia)}else if(bn==Dn)if(cr.length==1)Me(bn,bn.text.slice(0,jt.ch)+ui+bn.text.slice(ar.ch),hi);else{var xa=pt(1,cr.length-1);xa.push(new Ti(ui+bn.text.slice(ar.ch),hi,re)),Me(bn,bn.text.slice(0,jt.ch)+cr[0],le(0)),P.insert(jt.line+1,xa)}else if(cr.length==1)Me(bn,bn.text.slice(0,jt.ch)+cr[0]+Dn.text.slice(ar.ch),le(0)),P.remove(jt.line+1,Wi);else{Me(bn,bn.text.slice(0,jt.ch)+cr[0],le(0)),Me(Dn,ui+Dn.text.slice(ar.ch),hi);var ba=pt(1,cr.length-1);Wi>1&&P.remove(jt.line+1,Wi-1),P.insert(jt.line+1,ba)}Hi(P,"change",P,K)}function Ni(P,K,$){function re(le,Me,pt){if(le.linked)for(var jt=0;jt<le.linked.length;++jt){var ar=le.linked[jt];if(ar.doc==Me)continue;var cr=pt&&ar.sharedHist;if($&&!cr)continue;K(ar.doc,cr),re(ar.doc,le,cr)}}re(P,null,!0)}function Vi(P,K){if(K.cm)throw new Error("This document is already in use.");P.doc=K,K.cm=P,pi(P),cn(P),Ta(P),P.options.lineWrapping||Vn(P),P.options.mode=K.modeOption,ei(P)}function Ta(P){(P.doc.direction=="rtl"?k:b)(P.display.lineDiv,"CodeMirror-rtl")}function Ga(P){co(P,function(){Ta(P),ei(P)})}function ao(P){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=P||1}function Do(P,K){var $={from:Rt(K.from),to:je(K),text:nt(P,K.from,K.to)};return os(P,$,K.from.line,K.to.line+1),Ni(P,function(re){return os(re,$,K.from.line,K.to.line+1)},!0),$}function fo(P){for(;P.length;){var K=fe(P);if(K.ranges)P.pop();else break}}function as(P,K){if(K)return fo(P.done),fe(P.done);if(P.done.length&&!fe(P.done).ranges)return fe(P.done);if(P.done.length>1&&!P.done[P.done.length-2].ranges)return P.done.pop(),fe(P.done)}function io(P,K,$,re){var le=P.history;le.undone.length=0;var Me=+new Date,pt,jt;if((le.lastOp==re||le.lastOrigin==K.origin&&K.origin&&(K.origin.charAt(0)=="+"&&le.lastModTime>Me-(P.cm?P.cm.options.historyEventDelay:500)||K.origin.charAt(0)=="*"))&&(pt=as(le,le.lastOp==re)))jt=fe(pt.changes),rt(K.from,K.to)==0&&rt(K.from,jt.to)==0?jt.to=je(K):pt.changes.push(Do(P,K));else{var ar=fe(le.done);for((!ar||!ar.ranges)&&ka(P.sel,le.done),pt={changes:[Do(P,K)],generation:le.generation},le.done.push(pt);le.done.length>le.undoDepth;)le.done.shift(),le.done[0].ranges||le.done.shift()}le.done.push($),le.generation=++le.maxGeneration,le.lastModTime=le.lastSelTime=Me,le.lastOp=le.lastSelOp=re,le.lastOrigin=le.lastSelOrigin=K.origin,jt||xt(P,"historyAdded")}function Xa(P,K,$,re){var le=K.charAt(0);return le=="*"||le=="+"&&$.ranges.length==re.ranges.length&&$.somethingSelected()==re.somethingSelected()&&new Date-P.history.lastSelTime<=(P.cm?P.cm.options.historyEventDelay:500)}function Ya(P,K,$,re){var le=P.history,Me=re&&re.origin;$==le.lastSelOp||Me&&le.lastSelOrigin==Me&&(le.lastModTime==le.lastSelTime&&le.lastOrigin==Me||Xa(P,Me,fe(le.done),K))?le.done[le.done.length-1]=K:ka(K,le.done),le.lastSelTime=+new Date,le.lastSelOrigin=Me,le.lastSelOp=$,re&&re.clearRedo!==!1&&fo(le.undone)}function ka(P,K){var $=fe(K);$&&$.ranges&&$.equals(P)||K.push(P)}function os(P,K,$,re){var le=K["spans_"+P.id],Me=0;P.iter(Math.max(P.first,$),Math.min(P.first+P.size,re),function(pt){pt.markedSpans&&((le||(le=K["spans_"+P.id]={}))[Me]=pt.markedSpans),++Me})}function Es(P){if(!P)return null;for(var K,$=0;$<P.length;++$)P[$].marker.explicitlyCleared?K||(K=P.slice(0,$)):K&&K.push(P[$]);return K?K.length?K:null:P}function qo(P,K){var $=K["spans_"+P.id];if(!$)return null;for(var re=[],le=0;le<K.text.length;++le)re.push(Es($[le]));return re}function pa(P,K){var $=qo(P,K),re=gn(P,K);if(!$)return re;if(!re)return $;for(var le=0;le<$.length;++le){var Me=$[le],pt=re[le];if(Me&&pt){e:for(var jt=0;jt<pt.length;++jt){for(var ar=pt[jt],cr=0;cr<Me.length;++cr)if(Me[cr].marker==ar.marker)continue e;Me.push(ar)}}else pt&&($[le]=pt)}return $}function ls(P,K,$){for(var re=[],le=0;le<P.length;++le){var Me=P[le];if(Me.ranges){re.push($?ut.prototype.deepCopy.call(Me):Me);continue}var pt=Me.changes,jt=[];re.push({changes:jt});for(var ar=0;ar<pt.length;++ar){var cr=pt[ar],bn=void 0;if(jt.push({from:cr.from,to:cr.to,text:cr.text}),K)for(var Dn in cr)(bn=Dn.match(/^spans_(\d+)$/))&&(z(K,Number(bn[1]))>-1&&(fe(jt)[Dn]=cr[Dn],delete cr[Dn]))}}return re}function Os(P,K,$,re){if(re){var le=P.anchor;if($){var Me=rt(K,le)<0;Me!=rt($,le)<0?(le=K,K=$):Me!=rt(K,$)<0&&(K=$)}return new ne(le,K)}else return new ne($||K,K)}function ys(P,K,$,re,le){le==null&&(le=P.cm&&(P.cm.display.shift||P.extend)),fs(P,new ut([Os(P.sel.primary(),K,$,le)],0),re)}function ms(P,K,$){for(var re=[],le=P.cm&&(P.cm.display.shift||P.extend),Me=0;Me<P.sel.ranges.length;Me++)re[Me]=Os(P.sel.ranges[Me],K[Me],null,le);var pt=pe(P.cm,re,P.sel.primIndex);fs(P,pt,$)}function ws(P,K,$,re){var le=P.sel.ranges.slice(0);le[K]=$,fs(P,pe(P.cm,le,P.sel.primIndex),re)}function Pl(P,K,$,re){fs(P,be(K,$),re)}function ml(P,K,$){var re={ranges:K.ranges,update:function(Me){this.ranges=[];for(var pt=0;pt<Me.length;pt++)this.ranges[pt]=new ne(ot(P,Me[pt].anchor),ot(P,Me[pt].head))},origin:$&&$.origin};return xt(P,"beforeSelectionChange",P,re),P.cm&&xt(P.cm,"beforeSelectionChange",P.cm,re),re.ranges!=K.ranges?pe(P.cm,re.ranges,re.ranges.length-1):K}function Ws(P,K,$){var re=P.history.done,le=fe(re);le&&le.ranges?(re[re.length-1]=K,_s(P,K,$)):fs(P,K,$)}function fs(P,K,$){_s(P,K,$),Ya(P,P.sel,P.cm?P.cm.curOp.id:NaN,$)}function _s(P,K,$){(Mt(P,"beforeSelectionChange")||P.cm&&Mt(P.cm,"beforeSelectionChange"))&&(K=ml(P,K,$));var re=$&&$.bias||(rt(K.primary().head,P.sel.primary().head)<0?-1:1);gl(P,Us(P,K,re,!0)),!($&&$.scroll===!1)&&P.cm&&wa(P.cm)}function gl(P,K){if(K.equals(P.sel))return;P.sel=K,P.cm&&(P.cm.curOp.updateInput=1,P.cm.curOp.selectionChanged=!0,tr(P.cm)),Hi(P,"cursorActivity",P)}function Bs(P){gl(P,Us(P,P.sel,null,!1))}function Us(P,K,$,re){for(var le,Me=0;Me<K.ranges.length;Me++){var pt=K.ranges[Me],jt=K.ranges.length==P.sel.ranges.length&&P.sel.ranges[Me],ar=al(P,pt.anchor,jt&&jt.anchor,$,re),cr=al(P,pt.head,jt&&jt.head,$,re);(le||ar!=pt.anchor||cr!=pt.head)&&(le||(le=K.ranges.slice(0,Me)),le[Me]=new ne(ar,cr))}return le?pe(P.cm,le,K.primIndex):K}function Qs(P,K,$,re,le){var Me=Pe(P,K.line);if(Me.markedSpans)for(var pt=0;pt<Me.markedSpans.length;++pt){var jt=Me.markedSpans[pt],ar=jt.marker,cr="selectLeft"in ar?!ar.selectLeft:ar.inclusiveLeft,bn="selectRight"in ar?!ar.selectRight:ar.inclusiveRight;if((jt.from==null||(cr?jt.from<=K.ch:jt.from<K.ch))&&(jt.to==null||(bn?jt.to>=K.ch:jt.to>K.ch))){if(le&&(xt(ar,"beforeCursorEnter"),ar.explicitlyCleared))if(Me.markedSpans){--pt;continue}else break;if(!ar.atomic)continue;if($){var Dn=ar.find(re<0?1:-1),ui=void 0;if((re<0?bn:cr)&&(Dn=El(P,Dn,-re,Dn&&Dn.line==K.line?Me:null)),Dn&&Dn.line==K.line&&(ui=rt(Dn,$))&&(re<0?ui<0:ui>0))return Qs(P,Dn,K,re,le)}var hi=ar.find(re<0?-1:1);return(re<0?cr:bn)&&(hi=El(P,hi,re,hi.line==K.line?Me:null)),hi?Qs(P,hi,K,re,le):null}}return K}function al(P,K,$,re,le){var Me=re||1,pt=Qs(P,K,$,Me,le)||!le&&Qs(P,K,$,Me,!0)||Qs(P,K,$,-Me,le)||!le&&Qs(P,K,$,-Me,!0);return pt||(P.cantEdit=!0,wt(P.first,0))}function El(P,K,$,re){return $<0&&K.ch==0?K.line>P.first?ot(P,wt(K.line-1)):null:$>0&&K.ch==(re||Pe(P,K.line)).text.length?K.line<P.first+P.size-1?wt(K.line+1,0):null:new wt(K.line,K.ch+$)}function bl(P){P.setSelection(wt(P.firstLine(),0),wt(P.lastLine()),de)}function ol(P,K,$){var re={canceled:!1,from:K.from,to:K.to,text:K.text,origin:K.origin,cancel:function(){return re.canceled=!0}};return $&&(re.update=function(le,Me,pt,jt){le&&(re.from=ot(P,le)),Me&&(re.to=ot(P,Me)),pt&&(re.text=pt),jt!==void 0&&(re.origin=jt)}),xt(P,"beforeChange",P,re),P.cm&&xt(P.cm,"beforeChange",P.cm,re),re.canceled?(P.cm&&(P.cm.curOp.updateInput=2),null):{from:re.from,to:re.to,text:re.text,origin:re.origin}}function Gs(P,K,$){if(P.cm){if(!P.cm.curOp)return fa(P.cm,Gs)(P,K,$);if(P.cm.state.suppressEdits)return}if((Mt(P,"beforeChange")||P.cm&&Mt(P.cm,"beforeChange"))&&(K=ol(P,K,!0),!K))return;var re=Ye&&!$&&ln(P,K.from,K.to);if(re)for(var le=re.length-1;le>=0;--le)zs(P,{from:re[le].from,to:re[le].to,text:le?[""]:K.text,origin:K.origin});else zs(P,K)}function zs(P,K){if(K.text.length==1&&K.text[0]==""&&rt(K.from,K.to)==0)return;var $=Vt(P,K);io(P,K,$,P.cm?P.cm.curOp.id:NaN),sl(P,K,$,gn(P,K));var re=[];Ni(P,function(le,Me){!Me&&z(re,le.history)==-1&&(Rs(le.history,K),re.push(le.history)),sl(le,K,null,gn(le,K))})}function vl(P,K,$){var re=P.cm&&P.cm.state.suppressEdits;if(re&&!$)return;for(var le=P.history,Me,pt=P.sel,jt=K=="undo"?le.done:le.undone,ar=K=="undo"?le.undone:le.done,cr=0;cr<jt.length&&!(Me=jt[cr],$?Me.ranges&&!Me.equals(P.sel):!Me.ranges);cr++);if(cr==jt.length)return;for(le.lastOrigin=le.lastSelOrigin=null;;)if(Me=jt.pop(),Me.ranges){if(ka(Me,ar),$&&!Me.equals(P.sel)){fs(P,Me,{clearRedo:!1});return}pt=Me}else if(re){jt.push(Me);return}else break;var bn=[];ka(pt,ar),ar.push({changes:bn,generation:le.generation}),le.generation=Me.generation||++le.maxGeneration;for(var Dn=Mt(P,"beforeChange")||P.cm&&Mt(P.cm,"beforeChange"),ui=function(xa){var ba=Me.changes[xa];if(ba.origin=K,Dn&&!ol(P,ba,!1))return jt.length=0,{};bn.push(Do(P,ba));var va=xa?Vt(P,ba):fe(jt);sl(P,ba,va,pa(P,ba)),!xa&&P.cm&&P.cm.scrollIntoView({from:ba.from,to:je(ba)});var Ua=[];Ni(P,function(eo,ko){!ko&&z(Ua,eo.history)==-1&&(Rs(eo.history,ba),Ua.push(eo.history)),sl(eo,ba,null,pa(eo,ba))})},hi=Me.changes.length-1;hi>=0;--hi){var Wi=ui(hi);if(Wi)return Wi.v}}function Xs(P,K){if(K==0)return;if(P.first+=K,P.sel=new ut(ke(P.sel.ranges,function(le){return new ne(wt(le.anchor.line+K,le.anchor.ch),wt(le.head.line+K,le.head.ch))}),P.sel.primIndex),P.cm){ei(P.cm,P.first,P.first-K,K);for(var $=P.cm.display,re=$.viewFrom;re<$.viewTo;re++)Je(P.cm,re,"gutter")}}function sl(P,K,$,re){if(P.cm&&!P.cm.curOp)return fa(P.cm,sl)(P,K,$,re);if(K.to.line<P.first){Xs(P,K.text.length-1-(K.to.line-K.from.line));return}if(K.from.line>P.lastLine())return;if(K.from.line<P.first){var le=K.text.length-1-(P.first-K.from.line);Xs(P,le),K={from:wt(P.first,0),to:wt(K.to.line+le,K.to.ch),text:[fe(K.text)],origin:K.origin}}var Me=P.lastLine();K.to.line>Me&&(K={from:K.from,to:wt(Me,Pe(P,Me).text.length),text:[K.text[0]],origin:K.origin}),K.removed=nt(P,K.from,K.to),$||($=Vt(P,K)),P.cm?dl(P.cm,K,re):Qn(P,K,re),_s(P,$,de),P.cantEdit&&al(P,wt(P.firstLine(),0))&&(P.cantEdit=!1)}function dl(P,K,$){var re=P.doc,le=P.display,Me=K.from,pt=K.to,jt=!1,ar=Me.line;P.options.lineWrapping||(ar=bt(Mr(Pe(re,Me.line))),re.iter(ar,pt.line+1,function(hi){if(hi==le.maxLine)return jt=!0,!0})),re.sel.contains(K.from,K.to)>-1&&tr(P),Qn(re,K,$,ii(P)),P.options.lineWrapping||(re.iter(ar,Me.line+K.text.length,function(hi){var Wi=oi(hi);Wi>le.maxLineLength&&(le.maxLine=hi,le.maxLineLength=Wi,le.maxLineChanged=!0,jt=!1)}),jt&&(P.curOp.updateMaxLine=!0)),Fe(re,Me.line),Ea(P,400);var cr=K.text.length-(pt.line-Me.line)-1;K.full?ei(P):Me.line==pt.line&&K.text.length==1&&!ai(P.doc,K)?Je(P,Me.line,"text"):ei(P,Me.line,pt.line+1,cr);var bn=Mt(P,"changes"),Dn=Mt(P,"change");if(Dn||bn){var ui={from:Me,to:pt,text:K.text,removed:K.removed,origin:K.origin};Dn&&Hi(P,"change",P,ui),bn&&(P.curOp.changeObjs||(P.curOp.changeObjs=[])).push(ui)}P.display.selForContextMenu=null}function rl(P,K,$,re,le){var Me;re||(re=$),rt(re,$)<0&&(Me=[re,$],$=Me[0],re=Me[1]),typeof K=="string"&&(K=P.splitLines(K)),Gs(P,{from:$,to:re,text:K,origin:le})}function nl(P,K,$,re){$<P.line?P.line+=re:K<P.line&&(P.line=K,P.ch=0)}function Tl(P,K,$,re){for(var le=0;le<P.length;++le){var Me=P[le],pt=!0;if(Me.ranges){Me.copied||(Me=P[le]=Me.deepCopy(),Me.copied=!0);for(var jt=0;jt<Me.ranges.length;jt++)nl(Me.ranges[jt].anchor,K,$,re),nl(Me.ranges[jt].head,K,$,re);continue}for(var ar=0;ar<Me.changes.length;++ar){var cr=Me.changes[ar];if($<cr.from.line)cr.from=wt(cr.from.line+re,cr.from.ch),cr.to=wt(cr.to.line+re,cr.to.ch);else if(K<=cr.to.line){pt=!1;break}}pt||(P.splice(0,le+1),le=0)}}function Rs(P,K){var $=K.from.line,re=K.to.line,le=K.text.length-(re-$)-1;Tl(P.done,$,re,le),Tl(P.undone,$,re,le)}function bs(P,K,$,re){var le=K,Me=K;return typeof K=="number"?Me=Pe(P,Wt(P,K)):le=bt(K),le==null?null:(re(Me,le)&&P.cm&&Je(P.cm,le,$),Me)}function Ms(P){this.lines=P,this.parent=null;for(var K=0,$=0;$<P.length;++$)P[$].parent=this,K+=P[$].height;this.height=K}Ms.prototype={chunkSize:function(){return this.lines.length},removeInner:function(K,$){for(var re=K,le=K+$;re<le;++re){var Me=this.lines[re];this.height-=Me.height,_r(Me),Hi(Me,"delete")}this.lines.splice(K,$)},collapse:function(K){K.push.apply(K,this.lines)},insertInner:function(K,$,re){this.height+=re,this.lines=this.lines.slice(0,K).concat($).concat(this.lines.slice(K));for(var le=0;le<$.length;++le)$[le].parent=this},iterN:function(K,$,re){for(var le=K+$;K<le;++K)if(re(this.lines[K]))return!0}};function Ts(P){this.children=P;for(var K=0,$=0,re=0;re<P.length;++re){var le=P[re];K+=le.chunkSize(),$+=le.height,le.parent=this}this.size=K,this.height=$,this.parent=null}Ts.prototype={chunkSize:function(){return this.size},removeInner:function(K,$){this.size-=$;for(var re=0;re<this.children.length;++re){var le=this.children[re],Me=le.chunkSize();if(K<Me){var pt=Math.min($,Me-K),jt=le.height;if(le.removeInner(K,pt),this.height-=jt-le.height,Me==pt&&(this.children.splice(re--,1),le.parent=null),($-=pt)==0)break;K=0}else K-=Me}if(this.size-$<25&&(this.children.length>1||!(this.children[0]instanceof Ms))){var ar=[];this.collapse(ar),this.children=[new Ms(ar)],this.children[0].parent=this}},collapse:function(K){for(var $=0;$<this.children.length;++$)this.children[$].collapse(K)},insertInner:function(K,$,re){this.size+=$.length,this.height+=re;for(var le=0;le<this.children.length;++le){var Me=this.children[le],pt=Me.chunkSize();if(K<=pt){if(Me.insertInner(K,$,re),Me.lines&&Me.lines.length>50){for(var jt=Me.lines.length%25+25,ar=jt;ar<Me.lines.length;){var cr=new Ms(Me.lines.slice(ar,ar+=25));Me.height-=cr.height,this.children.splice(++le,0,cr),cr.parent=this}Me.lines=Me.lines.slice(0,jt),this.maybeSpill()}break}K-=pt}},maybeSpill:function(){if(this.children.length<=10)return;var K=this;do{var $=K.children.splice(K.children.length-5,5),re=new Ts($);if(K.parent){K.size-=re.size,K.height-=re.height;var Me=z(K.parent.children,K);K.parent.children.splice(Me+1,0,re)}else{var le=new Ts(K.children);le.parent=K,K.children=[le,re],K=le}re.parent=K.parent}while(K.children.length>10);K.parent.maybeSpill()},iterN:function(K,$,re){for(var le=0;le<this.children.length;++le){var Me=this.children[le],pt=Me.chunkSize();if(K<pt){var jt=Math.min($,pt-K);if(Me.iterN(K,jt,re))return!0;if(($-=jt)==0)break;K=0}else K-=pt}}};var Zs=function(K,$,re){if(re)for(var le in re)re.hasOwnProperty(le)&&(this[le]=re[le]);this.doc=K,this.node=$};Zs.prototype.clear=function(){var P=this.doc.cm,K=this.line.widgets,$=this.line,re=bt($);if(re==null||!K)return;for(var le=0;le<K.length;++le)K[le]==this&&K.splice(le--,1);K.length||($.widgets=null);var Me=_o(this);Dt($,Math.max(0,$.height-Me)),P&&(co(P,function(){hl(P,$,-Me),Je(P,re,"widget")}),Hi(P,"lineWidgetCleared",P,this,re))},Zs.prototype.changed=function(){var P=this,K=this.height,$=this.doc.cm,re=this.line;this.height=null;var le=_o(this)-K;if(!le)return;Vr(this.doc,re)||Dt(re,re.height+le),$&&co($,function(){$.curOp.forceUpdate=!0,hl($,re,le),Hi($,"lineWidgetChanged",$,P,bt(re))})},Tt(Zs);function hl(P,K,$){qr(K)<(P.curOp&&P.curOp.scrollTop||P.doc.scrollTop)&&Gi(P,$)}function wl(P,K,$,re){var le=new Zs(P,$,re),Me=P.cm;return Me&&le.noHScroll&&(Me.display.alignWidgets=!0),bs(P,K,"widget",function(pt){var jt=pt.widgets||(pt.widgets=[]);if(le.insertAt==null?jt.push(le):jt.splice(Math.min(jt.length-1,Math.max(0,le.insertAt)),0,le),le.line=pt,Me&&!Vr(P,pt)){var ar=qr(pt)<P.scrollTop;Dt(pt,pt.height+_o(le)),ar&&Gi(Me,le.height),Me.curOp.forceUpdate=!0}return!0}),Me&&Hi(Me,"lineWidgetAdded",Me,le,typeof K=="number"?K:bt(K)),le}var Kl=0,il=function(K,$){this.lines=[],this.type=$,this.doc=K,this.id=++Kl};il.prototype.clear=function(){if(this.explicitlyCleared)return;var P=this.doc.cm,K=P&&!P.curOp;if(K&&go(P),Mt(this,"clear")){var $=this.find();$&&Hi(this,"clear",$.from,$.to)}for(var re=null,le=null,Me=0;Me<this.lines.length;++Me){var pt=this.lines[Me],jt=Jt(pt.markedSpans,this);P&&!this.collapsed?Je(P,bt(pt),"text"):P&&(jt.to!=null&&(le=bt(pt)),jt.from!=null&&(re=bt(pt))),pt.markedSpans=Dr(pt.markedSpans,jt),jt.from==null&&this.collapsed&&!Vr(this.doc,pt)&&P&&Dt(pt,fn(P.display))}if(P&&this.collapsed&&!P.options.lineWrapping)for(var ar=0;ar<this.lines.length;++ar){var cr=Mr(this.lines[ar]),bn=oi(cr);bn>P.display.maxLineLength&&(P.display.maxLine=cr,P.display.maxLineLength=bn,P.display.maxLineChanged=!0)}re!=null&&P&&this.collapsed&&ei(P,re,le+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,P&&Bs(P.doc)),P&&Hi(P,"markerCleared",P,this,re,le),K&&Sa(P),this.parent&&this.parent.clear()},il.prototype.find=function(P,K){P==null&&this.type=="bookmark"&&(P=1);for(var $,re,le=0;le<this.lines.length;++le){var Me=this.lines[le],pt=Jt(Me.markedSpans,this);if(pt.from!=null&&($=wt(K?Me:bt(Me),pt.from),P==-1))return $;if(pt.to!=null&&(re=wt(K?Me:bt(Me),pt.to),P==1))return re}return $&&{from:$,to:re}},il.prototype.changed=function(){var P=this,K=this.find(-1,!0),$=this,re=this.doc.cm;if(!K||!re)return;co(re,function(){var le=K.line,Me=bt(K.line),pt=Ci(re,Me);if(pt&&(so(pt),re.curOp.selectionChanged=re.curOp.forceUpdate=!0),re.curOp.updateMaxLine=!0,!Vr($.doc,le)&&$.height!=null){var jt=$.height;$.height=null;var ar=_o($)-jt;ar&&Dt(le,le.height+ar)}Hi(re,"markerChanged",re,P)})},il.prototype.attachLine=function(P){if(!this.lines.length&&this.doc.cm){var K=this.doc.cm.curOp;(!K.maybeHiddenMarkers||z(K.maybeHiddenMarkers,this)==-1)&&(K.maybeUnhiddenMarkers||(K.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(P)},il.prototype.detachLine=function(P){if(this.lines.splice(z(this.lines,P),1),!this.lines.length&&this.doc.cm){var K=this.doc.cm.curOp;(K.maybeHiddenMarkers||(K.maybeHiddenMarkers=[])).push(this)}},Tt(il);function fl(P,K,$,re,le){if(re&&re.shared)return gu(P,K,$,re,le);if(P.cm&&!P.cm.curOp)return fa(P.cm,fl)(P,K,$,re,le);var Me=new il(P,le),pt=rt(K,$);if(re&&j(re,Me,!1),pt>0||pt==0&&Me.clearWhenEmpty!==!1)return Me;if(Me.replacedWith&&(Me.collapsed=!0,Me.widgetNode=L("span",[Me.replacedWith],"CodeMirror-widget"),re.handleMouseEvents||Me.widgetNode.setAttribute("cm-ignore-events","true"),re.insertLeft&&(Me.widgetNode.insertLeft=!0)),Me.collapsed){if(Tn(P,K.line,K,$,Me)||K.line!=$.line&&Tn(P,$.line,K,$,Me))throw new Error("Inserting collapsed marker partially overlapping an existing one");mt()}Me.addToHistory&&io(P,{from:K,to:$,origin:"markText"},P.sel,NaN);var jt=K.line,ar=P.cm,cr;if(P.iter(jt,$.line+1,function(Dn){ar&&Me.collapsed&&!ar.options.lineWrapping&&Mr(Dn)==ar.display.maxLine&&(cr=!0),Me.collapsed&&jt!=K.line&&Dt(Dn,0),Sr(Dn,new it(Me,jt==K.line?K.ch:null,jt==$.line?$.ch:null)),++jt}),Me.collapsed&&P.iter(K.line,$.line+1,function(Dn){Vr(P,Dn)&&Dt(Dn,0)}),Me.clearOnEnter&&Le(Me,"beforeCursorEnter",function(){return Me.clear()}),Me.readOnly&&(Ze(),(P.history.done.length||P.history.undone.length)&&P.clearHistory()),Me.collapsed&&(Me.id=++Kl,Me.atomic=!0),ar){if(cr&&(ar.curOp.updateMaxLine=!0),Me.collapsed)ei(ar,K.line,$.line+1);else if(Me.className||Me.startStyle||Me.endStyle||Me.css||Me.attributes||Me.title)for(var bn=K.line;bn<=$.line;bn++)Je(ar,bn,"text");Me.atomic&&Bs(ar.doc),Hi(ar,"markerAdded",ar,Me)}return Me}var kl=function(K,$){this.markers=K,this.primary=$;for(var re=0;re<K.length;++re)K[re].parent=this};kl.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var P=0;P<this.markers.length;++P)this.markers[P].clear();Hi(this,"clear")},kl.prototype.find=function(P,K){return this.primary.find(P,K)},Tt(kl);function gu(P,K,$,re,le){re=j(re),re.shared=!1;var Me=[fl(P,K,$,re,le)],pt=Me[0],jt=re.widgetNode;return Ni(P,function(ar){jt&&(re.widgetNode=jt.cloneNode(!0)),Me.push(fl(ar,ot(ar,K),ot(ar,$),re,le));for(var cr=0;cr<ar.linked.length;++cr)if(ar.linked[cr].isParent)return;pt=fe(Me)}),new kl(Me,pt)}function Jl(P){return P.findMarks(wt(P.first,0),P.clipPos(wt(P.lastLine())),function(K){return K.parent})}function Zl(P,K){for(var $=0;$<K.length;$++){var re=K[$],le=re.find(),Me=P.clipPos(le.from),pt=P.clipPos(le.to);if(rt(Me,pt)){var jt=fl(P,Me,pt,re.primary,re.primary.type);re.markers.push(jt),jt.parent=re}}}function $l(P){for(var K=function(le){var Me=P[le],pt=[Me.primary.doc];Ni(Me.primary.doc,function(cr){return pt.push(cr)});for(var jt=0;jt<Me.markers.length;jt++){var ar=Me.markers[jt];z(pt,ar.doc)==-1&&(ar.parent=null,Me.markers.splice(jt--,1))}},$=0;$<P.length;$++)K($)}var Gl=0,$s=function P(K,$,re,le,Me){if(!(this instanceof P))return new P(K,$,re,le,Me);re==null&&(re=0),Ts.call(this,[new Ms([new Ti("",null)])]),this.first=re,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=re;var pt=wt(re,0);this.sel=be(pt),this.history=new ao(null),this.id=++Gl,this.modeOption=$,this.lineSep=le,this.direction=Me=="rtl"?"rtl":"ltr",this.extend=!1,typeof K=="string"&&(K=this.splitLines(K)),Qn(this,{from:pt,to:pt,text:K}),fs(this,be(pt),de)};$s.prototype=Ve(Ts.prototype,{constructor:$s,iter:function(K,$,re){re?this.iterN(K-this.first,$-K,re):this.iterN(this.first,this.first+this.size,K)},insert:function(K,$){for(var re=0,le=0;le<$.length;++le)re+=$[le].height;this.insertInner(K-this.first,$,re)},remove:function(K,$){this.removeInner(K-this.first,$)},getValue:function(K){var $=yt(this,this.first,this.first+this.size);return K===!1?$:$.join(K||this.lineSeparator())},setValue:Wa(function(P){var K=wt(this.first,0),$=this.first+this.size-1;Gs(this,{from:K,to:wt($,Pe(this,$).text.length),text:this.splitLines(P),origin:"setValue",full:!0},!0),this.cm&&na(this.cm,0,0),fs(this,be(K),de)}),replaceRange:function(K,$,re,le){$=ot(this,$),re=re?ot(this,re):$,rl(this,K,$,re,le)},getRange:function(K,$,re){var le=nt(this,ot(this,K),ot(this,$));return re===!1?le:le.join(re||this.lineSeparator())},getLine:function(K){var $=this.getLineHandle(K);return $&&$.text},getLineHandle:function(K){if(gr(this,K))return Pe(this,K)},getLineNumber:function(K){return bt(K)},getLineHandleVisualStart:function(K){return typeof K=="number"&&(K=Pe(this,K)),Mr(K)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(K){return ot(this,K)},getCursor:function(K){var $=this.sel.primary(),re;return K==null||K=="head"?re=$.head:K=="anchor"?re=$.anchor:K=="end"||K=="to"||K===!1?re=$.to():re=$.from(),re},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Wa(function(P,K,$){Pl(this,ot(this,typeof P=="number"?wt(P,K||0):P),null,$)}),setSelection:Wa(function(P,K,$){Pl(this,ot(this,P),ot(this,K||P),$)}),extendSelection:Wa(function(P,K,$){ys(this,ot(this,P),K&&ot(this,K),$)}),extendSelections:Wa(function(P,K){ms(this,Ar(this,P),K)}),extendSelectionsBy:Wa(function(P,K){var $=ke(this.sel.ranges,P);ms(this,Ar(this,$),K)}),setSelections:Wa(function(P,K,$){if(!P.length)return;for(var re=[],le=0;le<P.length;le++)re[le]=new ne(ot(this,P[le].anchor),ot(this,P[le].head));K==null&&(K=Math.min(P.length-1,this.sel.primIndex)),fs(this,pe(this.cm,re,K),$)}),addSelection:Wa(function(P,K,$){var re=this.sel.ranges.slice(0);re.push(new ne(ot(this,P),ot(this,K||P))),fs(this,pe(this.cm,re,re.length-1),$)}),getSelection:function(K){for(var $=this.sel.ranges,re,le=0;le<$.length;le++){var Me=nt(this,$[le].from(),$[le].to());re=re?re.concat(Me):Me}return K===!1?re:re.join(K||this.lineSeparator())},getSelections:function(K){for(var $=[],re=this.sel.ranges,le=0;le<re.length;le++){var Me=nt(this,re[le].from(),re[le].to());K!==!1&&(Me=Me.join(K||this.lineSeparator())),$[le]=Me}return $},replaceSelection:function(K,$,re){for(var le=[],Me=0;Me<this.sel.ranges.length;Me++)le[Me]=K;this.replaceSelections(le,$,re||"+input")},replaceSelections:Wa(function(P,K,$){for(var re=[],le=this.sel,Me=0;Me<le.ranges.length;Me++){var pt=le.ranges[Me];re[Me]={from:pt.from(),to:pt.to(),text:this.splitLines(P[Me]),origin:$}}for(var jt=K&&K!="end"&&Yr(this,re,K),ar=re.length-1;ar>=0;ar--)Gs(this,re[ar]);jt?Ws(this,jt):this.cm&&wa(this.cm)}),undo:Wa(function(){vl(this,"undo")}),redo:Wa(function(){vl(this,"redo")}),undoSelection:Wa(function(){vl(this,"undo",!0)}),redoSelection:Wa(function(){vl(this,"redo",!0)}),setExtending:function(K){this.extend=K},getExtending:function(){return this.extend},historySize:function(){for(var K=this.history,$=0,re=0,le=0;le<K.done.length;le++)K.done[le].ranges||++$;for(var Me=0;Me<K.undone.length;Me++)K.undone[Me].ranges||++re;return{undo:$,redo:re}},clearHistory:function(){var K=this;this.history=new ao(this.history.maxGeneration),Ni(this,function($){return $.history=K.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(K){return K&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(K){return this.history.generation==(K||this.cleanGeneration)},getHistory:function(){return{done:ls(this.history.done),undone:ls(this.history.undone)}},setHistory:function(K){var $=this.history=new ao(this.history.maxGeneration);$.done=ls(K.done.slice(0),null,!0),$.undone=ls(K.undone.slice(0),null,!0)},setGutterMarker:Wa(function(P,K,$){return bs(this,P,"gutter",function(re){var le=re.gutterMarkers||(re.gutterMarkers={});return le[K]=$,!$&&Y(le)&&(re.gutterMarkers=null),!0})}),clearGutter:Wa(function(P){var K=this;this.iter(function($){$.gutterMarkers&&$.gutterMarkers[P]&&bs(K,$,"gutter",function(){return $.gutterMarkers[P]=null,Y($.gutterMarkers)&&($.gutterMarkers=null),!0})})}),lineInfo:function(K){var $;if(typeof K=="number"){if(!gr(this,K))return null;if($=K,K=Pe(this,K),!K)return null}else if($=bt(K),$==null)return null;return{line:$,handle:K,text:K.text,gutterMarkers:K.gutterMarkers,textClass:K.textClass,bgClass:K.bgClass,wrapClass:K.wrapClass,widgets:K.widgets}},addLineClass:Wa(function(P,K,$){return bs(this,P,K=="gutter"?"gutter":"class",function(re){var le=K=="text"?"textClass":K=="background"?"bgClass":K=="gutter"?"gutterClass":"wrapClass";if(!re[le])re[le]=$;else{if(T($).test(re[le]))return!1;re[le]+=" "+$}return!0})}),removeLineClass:Wa(function(P,K,$){return bs(this,P,K=="gutter"?"gutter":"class",function(re){var le=K=="text"?"textClass":K=="background"?"bgClass":K=="gutter"?"gutterClass":"wrapClass",Me=re[le];if(Me)if($==null)re[le]=null;else{var pt=Me.match(T($));if(!pt)return!1;var jt=pt.index+pt[0].length;re[le]=Me.slice(0,pt.index)+(!pt.index||jt==Me.length?"":" ")+Me.slice(jt)||null}else return!1;return!0})}),addLineWidget:Wa(function(P,K,$){return wl(this,P,K,$)}),removeLineWidget:function(K){K.clear()},markText:function(K,$,re){return fl(this,ot(this,K),ot(this,$),re,re&&re.type||"range")},setBookmark:function(K,$){var re={replacedWith:$&&($.nodeType==null?$.widget:$),insertLeft:$&&$.insertLeft,clearWhenEmpty:!1,shared:$&&$.shared,handleMouseEvents:$&&$.handleMouseEvents};return K=ot(this,K),fl(this,K,K,re,"bookmark")},findMarksAt:function(K){K=ot(this,K);var $=[],re=Pe(this,K.line).markedSpans;if(re)for(var le=0;le<re.length;++le){var Me=re[le];(Me.from==null||Me.from<=K.ch)&&(Me.to==null||Me.to>=K.ch)&&$.push(Me.marker.parent||Me.marker)}return $},findMarks:function(K,$,re){K=ot(this,K),$=ot(this,$);var le=[],Me=K.line;return this.iter(K.line,$.line+1,function(pt){var jt=pt.markedSpans;if(jt)for(var ar=0;ar<jt.length;ar++){var cr=jt[ar];!(cr.to!=null&&Me==K.line&&K.ch>=cr.to||cr.from==null&&Me!=K.line||cr.from!=null&&Me==$.line&&cr.from>=$.ch)&&(!re||re(cr.marker))&&le.push(cr.marker.parent||cr.marker)}++Me}),le},getAllMarks:function(){var K=[];return this.iter(function($){var re=$.markedSpans;if(re)for(var le=0;le<re.length;++le)re[le].from!=null&&K.push(re[le].marker)}),K},posFromIndex:function(K){var $,re=this.first,le=this.lineSeparator().length;return this.iter(function(Me){var pt=Me.text.length+le;if(pt>K)return $=K,!0;K-=pt,++re}),ot(this,wt(re,$))},indexFromPos:function(K){K=ot(this,K);var $=K.ch;if(K.line<this.first||K.ch<0)return 0;var re=this.lineSeparator().length;return this.iter(this.first,K.line,function(le){$+=le.text.length+re}),$},copy:function(K){var $=new $s(yt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return $.scrollTop=this.scrollTop,$.scrollLeft=this.scrollLeft,$.sel=this.sel,$.extend=!1,K&&($.history.undoDepth=this.history.undoDepth,$.setHistory(this.getHistory())),$},linkedDoc:function(K){K||(K={});var $=this.first,re=this.first+this.size;K.from!=null&&K.from>$&&($=K.from),K.to!=null&&K.to<re&&(re=K.to);var le=new $s(yt(this,$,re),K.mode||this.modeOption,$,this.lineSep,this.direction);return K.sharedHist&&(le.history=this.history),(this.linked||(this.linked=[])).push({doc:le,sharedHist:K.sharedHist}),le.linked=[{doc:this,isParent:!0,sharedHist:K.sharedHist}],Zl(le,Jl(this)),le},unlinkDoc:function(K){if(K instanceof Er&&(K=K.doc),this.linked)for(var $=0;$<this.linked.length;++$){var re=this.linked[$];if(re.doc!=K)continue;this.linked.splice($,1),K.unlinkDoc(this),$l(Jl(this));break}if(K.history==this.history){var le=[K.id];Ni(K,function(Me){return le.push(Me.id)},!0),K.history=new ao(null),K.history.done=ls(this.history.done,le),K.history.undone=ls(this.history.undone,le)}},iterLinkedDocs:function(K){Ni(this,K)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(K){return this.lineSep?K.split(this.lineSep):$r(K)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Wa(function(P){if(P!="rtl"&&(P="ltr"),P==this.direction)return;this.direction=P,this.iter(function(K){return K.order=null}),this.cm&&Ga(this.cm)})}),$s.prototype.eachLine=$s.prototype.iter;var ll=0;function pl(P){var K=this;if(ql(K),Ht(K,P)||Bo(K.display,P))return;Xe(P),f&&(ll=+new Date);var $=ri(K,P,!0),re=P.dataTransfer.files;if(!$||K.isReadOnly())return;if(re&&re.length&&window.FileReader&&window.File)for(var le=re.length,Me=Array(le),pt=0,jt=function(){++pt==le&&fa(K,function(){$=ot(K.doc,$);var Wi={from:$,to:$,text:K.doc.splitLines(Me.filter(function(ia){return ia!=null}).join(K.doc.lineSeparator())),origin:"paste"};Gs(K.doc,Wi),Ws(K.doc,be(ot(K.doc,$),ot(K.doc,je(Wi))))})()},ar=function(Wi,ia){if(K.options.allowDropFileTypes&&z(K.options.allowDropFileTypes,Wi.type)==-1){jt();return}var xa=new FileReader;xa.onerror=function(){return jt()},xa.onload=function(){var ba=xa.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ba)){jt();return}Me[ia]=ba,jt()},xa.readAsText(Wi)},cr=0;cr<re.length;cr++)ar(re[cr],cr);else{if(K.state.draggingText&&K.doc.sel.contains($)>-1){K.state.draggingText(P),setTimeout(function(){return K.display.input.focus()},20);return}try{var bn=P.dataTransfer.getData("Text");if(bn){var Dn;if(K.state.draggingText&&!K.state.draggingText.copy&&(Dn=K.listSelections()),_s(K.doc,be($,$)),Dn)for(var ui=0;ui<Dn.length;++ui)rl(K.doc,"",Dn[ui].anchor,Dn[ui].head,"drag");K.replaceSelection(bn,"around","paste"),K.display.input.focus()}}catch(hi){}}}function Nl(P,K){if(f&&(!P.state.draggingText||+new Date-ll<100)){Be(K);return}if(Ht(P,K)||Bo(P.display,K))return;if(K.dataTransfer.setData("Text",P.getSelection()),K.dataTransfer.effectAllowed="copyMove",K.dataTransfer.setDragImage&&!e){var $=I("img",null,null,"position: fixed; left: 0; top: 0;");$.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",n&&($.width=$.height=1,P.display.wrapper.appendChild($),$._top=$.offsetTop),K.dataTransfer.setDragImage($,0,0),n&&$.parentNode.removeChild($)}}function ou(P,K){var $=ri(P,K);if(!$)return;var re=document.createDocumentFragment();An(P,$,re),P.display.dragCursor||(P.display.dragCursor=I("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),P.display.lineSpace.insertBefore(P.display.dragCursor,P.display.cursorDiv)),_(P.display.dragCursor,re)}function ql(P){P.display.dragCursor&&(P.display.lineSpace.removeChild(P.display.dragCursor),P.display.dragCursor=null)}function eu(P){if(!document.getElementsByClassName)return;for(var K=document.getElementsByClassName("CodeMirror"),$=[],re=0;re<K.length;re++){var le=K[re].CodeMirror;le&&$.push(le)}$.length&&$[0].operation(function(){for(var Me=0;Me<$.length;Me++)P($[Me])})}var el=!1;function tu(){if(el)return;ru(),el=!0}function ru(){var P;Le(window,"resize",function(){P==null&&(P=setTimeout(function(){P=null,eu(su)},100))}),Le(window,"blur",function(){return eu(Un)})}function su(P){var K=P.display;K.cachedCharWidth=K.cachedTextHeight=K.cachedPaddingH=null,K.scrollbarsClipped=!1,P.setSize()}for(var Cl={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"},Dl=0;Dl<10;Dl++)Cl[Dl+48]=Cl[Dl+96]=String(Dl);for(var Fl=65;Fl<=90;Fl++)Cl[Fl]=String.fromCharCode(Fl);for(var Xl=1;Xl<=12;Xl++)Cl[Xl+111]=Cl[Xl+63235]="F"+Xl;var jo={};jo.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"},jo.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"},jo.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"},jo.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"]},jo.default=h?jo.macDefault:jo.pcDefault;function Ho(P){var K=P.split(/-(?!$)/);P=K[K.length-1];for(var $,re,le,Me,pt=0;pt<K.length-1;pt++){var jt=K[pt];if(/^(cmd|meta|m)$/i.test(jt))Me=!0;else if(/^a(lt)?$/i.test(jt))$=!0;else if(/^(c|ctrl|control)$/i.test(jt))re=!0;else if(/^s(hift)?$/i.test(jt))le=!0;else throw new Error("Unrecognized modifier name: "+jt)}return $&&(P="Alt-"+P),re&&(P="Ctrl-"+P),Me&&(P="Cmd-"+P),le&&(P="Shift-"+P),P}function us(P){var K={};for(var $ in P)if(P.hasOwnProperty($)){var re=P[$];if(/^(name|fallthrough|(de|at)tach)$/.test($))continue;if(re=="..."){delete P[$];continue}for(var le=ke($.split(" "),Ho),Me=0;Me<le.length;Me++){var pt=void 0,jt=void 0;Me==le.length-1?(jt=le.join(" "),pt=re):(jt=le.slice(0,Me+1).join(" "),pt="...");var ar=K[jt];if(!ar)K[jt]=pt;else if(ar!=pt)throw new Error("Inconsistent bindings for "+jt)}delete P[$]}for(var cr in K)P[cr]=K[cr];return P}function cs(P,K,$,re){K=ss(K);var le=K.call?K.call(P,re):K[P];if(le===!1)return"nothing";if(le==="...")return"multi";if(le!=null&&$(le))return"handled";if(K.fallthrough){if(Object.prototype.toString.call(K.fallthrough)!="[object Array]")return cs(P,K.fallthrough,$,re);for(var Me=0;Me<K.fallthrough.length;Me++){var pt=cs(P,K.fallthrough[Me],$,re);if(pt)return pt}}}function Cs(P){var K=typeof P=="string"?P:Cl[P.keyCode];return K=="Ctrl"||K=="Alt"||K=="Shift"||K=="Mod"}function ds(P,K,$){var re=P;return K.altKey&&re!="Alt"&&(P="Alt-"+P),(y?K.metaKey:K.ctrlKey)&&re!="Ctrl"&&(P="Ctrl-"+P),(y?K.ctrlKey:K.metaKey)&&re!="Mod"&&(P="Cmd-"+P),!$&&K.shiftKey&&re!="Shift"&&(P="Shift-"+P),P}function Js(P,K){if(n&&P.keyCode==34&&P.char)return!1;var $=Cl[P.keyCode];return $==null||P.altGraphKey?!1:(P.keyCode==3&&P.code&&($=P.code),ds($,P,K))}function ss(P){return typeof P=="string"?jo[P]:P}function Is(P,K){for(var $=P.doc.sel.ranges,re=[],le=0;le<$.length;le++){for(var Me=K($[le]);re.length&&rt(Me.from,fe(re).to)<=0;){var pt=re.pop();if(rt(pt.from,Me.from)<0){Me.from=pt.from;break}}re.push(Me)}co(P,function(){for(var jt=re.length-1;jt>=0;jt--)rl(P.doc,"",re[jt].from,re[jt].to,"+delete");wa(P)})}function Al(P,K,$){var re=Ce(P.text,K+$,$);return re<0||re>P.text.length?null:re}function lu(P,K,$){var re=Al(P,K.ch,$);return re==null?null:new wt(K.line,re,$<0?"after":"before")}function uu(P,K,$,re,le){if(P){K.doc.direction=="rtl"&&(le=-le);var Me=gt($,K.doc.direction);if(Me){var pt=le<0?fe(Me):Me[0],jt=le<0==(pt.level==1),ar=jt?"after":"before",cr;if(pt.level>0||K.doc.direction=="rtl"){var bn=Jn(K,$);cr=le<0?$.text.length-1:0;var Dn=mi(K,bn,cr).top;cr=Ie(function(ui){return mi(K,bn,ui).top==Dn},le<0==(pt.level==1)?pt.from:pt.to-1,cr),ar=="before"&&(cr=Al($,cr,1))}else cr=le<0?pt.to:pt.from;return new wt(re,cr,ar)}}return new wt(re,le<0?$.text.length:0,le<0?"before":"after")}function Yl(P,K,$,re){var le=gt(K,P.doc.direction);if(!le)return lu(K,$,re);$.ch>=K.text.length?($.ch=K.text.length,$.sticky="before"):$.ch<=0&&($.ch=0,$.sticky="after");var Me=Te(le,$.ch,$.sticky),pt=le[Me];if(P.doc.direction=="ltr"&&pt.level%2==0&&(re>0?pt.to>$.ch:pt.from<$.ch))return lu(K,$,re);var jt=function(va,Ua){return Al(K,va instanceof wt?va.ch:va,Ua)},ar,cr=function(va){return P.options.lineWrapping?(ar=ar||Jn(P,K),yr(P,K,ar,va)):{begin:0,end:K.text.length}},bn=cr($.sticky=="before"?jt($,-1):$.ch);if(P.doc.direction=="rtl"||pt.level==1){var Dn=pt.level==1==re<0,ui=jt($,Dn?1:-1);if(ui!=null&&(Dn?ui<=pt.to&&ui<=bn.end:ui>=pt.from&&ui>=bn.begin)){var hi=Dn?"before":"after";return new wt($.line,ui,hi)}}var Wi=function(va,Ua,eo){for(var ko=function(Ls,ul){return ul?new wt($.line,jt(Ls,1),"before"):new wt($.line,Ls,"after")};va>=0&&va<le.length;va+=Ua){var To=le[va],ns=Ua>0==(To.level!=1),Ss=ns?eo.begin:jt(eo.end,-1);if(To.from<=Ss&&Ss<To.to)return ko(Ss,ns);if(Ss=ns?To.from:jt(To.to,-1),eo.begin<=Ss&&Ss<eo.end)return ko(Ss,ns)}},ia=Wi(Me+re,re,bn);if(ia)return ia;var xa=re>0?bn.end:jt(bn.begin,-1);return xa!=null&&!(re>0&&xa==K.text.length)&&(ia=Wi(re>0?0:le.length-1,re,cr(xa)),ia)?ia:null}var nu={selectAll:bl,singleSelection:function(K){return K.setSelection(K.getCursor("anchor"),K.getCursor("head"),de)},killLine:function(K){return Is(K,function($){if($.empty()){var re=Pe(K.doc,$.head.line).text.length;return $.head.ch==re&&$.head.line<K.lastLine()?{from:$.head,to:wt($.head.line+1,0)}:{from:$.head,to:wt($.head.line,re)}}else return{from:$.from(),to:$.to()}})},deleteLine:function(K){return Is(K,function($){return{from:wt($.from().line,0),to:ot(K.doc,wt($.to().line+1,0))}})},delLineLeft:function(K){return Is(K,function($){return{from:wt($.from().line,0),to:$.from()}})},delWrappedLineLeft:function(K){return Is(K,function($){var re=K.charCoords($.head,"div").top+5,le=K.coordsChar({left:0,top:re},"div");return{from:le,to:$.from()}})},delWrappedLineRight:function(K){return Is(K,function($){var re=K.charCoords($.head,"div").top+5,le=K.coordsChar({left:K.display.lineDiv.offsetWidth+100,top:re},"div");return{from:$.from(),to:le}})},undo:function(K){return K.undo()},redo:function(K){return K.redo()},undoSelection:function(K){return K.undoSelection()},redoSelection:function(K){return K.redoSelection()},goDocStart:function(K){return K.extendSelection(wt(K.firstLine(),0))},goDocEnd:function(K){return K.extendSelection(wt(K.lastLine()))},goLineStart:function(K){return K.extendSelectionsBy(function($){return vu(K,$.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(K){return K.extendSelectionsBy(function($){return bu(K,$.head)},{origin:"+move",bias:1})},goLineEnd:function(K){return K.extendSelectionsBy(function($){return yu(K,$.head.line)},{origin:"+move",bias:-1})},goLineRight:function(K){return K.extendSelectionsBy(function($){var re=K.cursorCoords($.head,"div").top+5;return K.coordsChar({left:K.display.lineDiv.offsetWidth+100,top:re},"div")},ve)},goLineLeft:function(K){return K.extendSelectionsBy(function($){var re=K.cursorCoords($.head,"div").top+5;return K.coordsChar({left:0,top:re},"div")},ve)},goLineLeftSmart:function(K){return K.extendSelectionsBy(function($){var re=K.cursorCoords($.head,"div").top+5,le=K.coordsChar({left:0,top:re},"div");return le.ch<K.getLine(le.line).search(/\S/)?bu(K,$.head):le},ve)},goLineUp:function(K){return K.moveV(-1,"line")},goLineDown:function(K){return K.moveV(1,"line")},goPageUp:function(K){return K.moveV(-1,"page")},goPageDown:function(K){return K.moveV(1,"page")},goCharLeft:function(K){return K.moveH(-1,"char")},goCharRight:function(K){return K.moveH(1,"char")},goColumnLeft:function(K){return K.moveH(-1,"column")},goColumnRight:function(K){return K.moveH(1,"column")},goWordLeft:function(K){return K.moveH(-1,"word")},goGroupRight:function(K){return K.moveH(1,"group")},goGroupLeft:function(K){return K.moveH(-1,"group")},goWordRight:function(K){return K.moveH(1,"word")},delCharBefore:function(K){return K.deleteH(-1,"codepoint")},delCharAfter:function(K){return K.deleteH(1,"char")},delWordBefore:function(K){return K.deleteH(-1,"word")},delWordAfter:function(K){return K.deleteH(1,"word")},delGroupBefore:function(K){return K.deleteH(-1,"group")},delGroupAfter:function(K){return K.deleteH(1,"group")},indentAuto:function(K){return K.indentSelection("smart")},indentMore:function(K){return K.indentSelection("add")},indentLess:function(K){return K.indentSelection("subtract")},insertTab:function(K){return K.replaceSelection(" ")},insertSoftTab:function(K){for(var $=[],re=K.listSelections(),le=K.options.tabSize,Me=0;Me<re.length;Me++){var pt=re[Me].from(),jt=W(K.getLine(pt.line),pt.ch,le);$.push(Ue(le-jt%le))}K.replaceSelections($)},defaultTab:function(K){K.somethingSelected()?K.indentSelection("add"):K.execCommand("insertTab")},transposeChars:function(K){return co(K,function(){for(var $=K.listSelections(),re=[],le=0;le<$.length;le++){if(!$[le].empty())continue;var Me=$[le].head,pt=Pe(K.doc,Me.line).text;if(pt){if(Me.ch==pt.length&&(Me=new wt(Me.line,Me.ch-1)),Me.ch>0)Me=new wt(Me.line,Me.ch+1),K.replaceRange(pt.charAt(Me.ch-1)+pt.charAt(Me.ch-2),wt(Me.line,Me.ch-2),Me,"+transpose");else if(Me.line>K.doc.first){var jt=Pe(K.doc,Me.line-1).text;jt&&(Me=new wt(Me.line,1),K.replaceRange(pt.charAt(0)+K.doc.lineSeparator()+jt.charAt(jt.length-1),wt(Me.line-1,jt.length-1),Me,"+transpose"))}}re.push(new ne(Me,Me))}K.setSelections(re)})},newlineAndIndent:function(K){return co(K,function(){for(var $=K.listSelections(),re=$.length-1;re>=0;re--)K.replaceRange(K.doc.lineSeparator(),$[re].anchor,$[re].head,"+input");$=K.listSelections();for(var le=0;le<$.length;le++)K.indentLine($[le].from().line,null,!0);wa(K)})},openLine:function(K){return K.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(K){return K.toggleOverwrite()}};function vu(P,K){var $=Pe(P.doc,K),re=Mr($);return re!=$&&(K=bt(re)),uu(!0,P,re,K,1)}function yu(P,K){var $=Pe(P.doc,K),re=mr($);return re!=$&&(K=bt(re)),uu(!0,P,$,K,-1)}function bu(P,K){var $=vu(P,K.line),re=Pe(P.doc,$.line),le=gt(re,P.doc.direction);if(!le||le[0].level==0){var Me=Math.max($.ch,re.text.search(/\S/)),pt=K.line==$.line&&K.ch<=Me&&K.ch;return wt($.line,pt?0:Me,$.sticky)}return $}function _l(P,K,$){if(typeof K=="string"&&(K=nu[K],!K))return!1;P.display.input.ensurePolled();var re=P.display.shift,le=!1;try{P.isReadOnly()&&(P.state.suppressEdits=!0),$&&(P.display.shift=!1),le=K(P)!=Z}finally{P.display.shift=re,P.state.suppressEdits=!1}return le}function Rl(P,K,$){for(var re=0;re<P.state.keyMaps.length;re++){var le=cs(K,P.state.keyMaps[re],$,P);if(le)return le}return P.options.extraKeys&&cs(K,P.options.extraKeys,$,P)||cs(K,P.options.keyMap,$,P)}var Wl=new V;function es(P,K,$,re){var le=P.state.keySeq;if(le){if(Cs(K))return"handled";if(/\'$/.test(K)?P.state.keySeq=null:Wl.set(50,function(){P.state.keySeq==le&&(P.state.keySeq=null,P.display.input.reset())}),$a(P,le+" "+K,$,re))return!0}return $a(P,K,$,re)}function $a(P,K,$,re){var le=Rl(P,K,re);return le=="multi"&&(P.state.keySeq=K),le=="handled"&&Hi(P,"keyHandled",P,K,$),(le=="handled"||le=="multi")&&(Xe($),Kn(P)),!!le}function Eo(P,K){var $=Js(K,!0);return $?K.shiftKey&&!P.state.keySeq?es(P,"Shift-"+$,K,function(re){return _l(P,re,!0)})||es(P,$,K,function(re){if(typeof re=="string"?/^go[A-Z]/.test(re):re.motion)return _l(P,re)}):es(P,$,K,function(re){return _l(P,re)}):!1}function Ko(P,K,$){return es(P,"'"+$+"'",K,function(re){return _l(P,re,!0)})}var js=null;function Bl(P){var K=this;if(P.target&&P.target!=K.display.input.getField())return;if(K.curOp.focus=R(),Ht(K,P))return;f&&c<11&&P.keyCode==27&&(P.returnValue=!1);var $=P.keyCode;K.display.shift=$==16||P.shiftKey;var re=Eo(K,P);n&&(js=re?$:null,!re&&$==88&&!lr&&(h?P.metaKey:P.ctrlKey)&&K.replaceSelection("",null,"cut")),C&&!h&&!re&&$==46&&P.shiftKey&&!P.ctrlKey&&document.execCommand&&document.execCommand("cut"),$==18&&!/\bCodeMirror-crosshair\b/.test(K.display.lineDiv.className)&&Ul(K)}function Ul(P){var K=P.display.lineDiv;k(K,"CodeMirror-crosshair");function $(re){(re.keyCode==18||!re.altKey)&&(b(K,"CodeMirror-crosshair"),$e(document,"keyup",$),$e(document,"mouseover",$))}Le(document,"keyup",$),Le(document,"mouseover",$)}function Ol(P){P.keyCode==16&&(this.doc.sel.shift=!1),Ht(this,P)}function Ll(P){var K=this;if(P.target&&P.target!=K.display.input.getField())return;if(Bo(K.display,P)||Ht(K,P)||P.ctrlKey&&!P.altKey||h&&P.metaKey)return;var $=P.keyCode,re=P.charCode;if(n&&$==js){js=null,Xe(P);return}if(n&&(!P.which||P.which<10)&&Eo(K,P))return;var le=String.fromCharCode(re==null?$:re);if(le=="\b")return;if(Ko(K,P,le))return;K.display.input.onKeyPress(P)}var jl=400,Hl=function(K,$,re){this.time=K,this.pos=$,this.button=re};Hl.prototype.compare=function(P,K,$){return this.time+jl>P&&rt(K,this.pos)==0&&$==this.button};var Vs,cu;function wu(P,K){var $=+new Date;return cu&&cu.compare($,P,K)?(Vs=cu=null,"triple"):Vs&&Vs.compare($,P,K)?(cu=new Hl($,P,K),Vs=null,"double"):(Vs=new Hl($,P,K),cu=null,"single")}function Au(P){var K=this,$=K.display;if(Ht(K,P)||$.activeTouch&&$.input.supportsTouch())return;if($.input.ensurePolled(),$.shift=P.shiftKey,Bo($,P)){o||($.scroller.draggable=!1,setTimeout(function(){return $.scroller.draggable=!0},100));return}if(Uu(K,P))return;var re=ri(K,P),le=ee(P),Me=re?wu(re,le):"single";if(window.focus(),le==1&&K.state.selectingText&&K.state.selectingText(P),re&&_u(K,le,re,Me,P))return;le==1?re?Fu(K,re,Me,P):Ee(P)==$.scroller&&Xe(P):le==2?(re&&ys(K.doc,re),setTimeout(function(){return $.input.focus()},20)):le==3&&(E?K.display.input.onContextMenu(P):Ln(K))}function _u(P,K,$,re,le){var Me="Click";return re=="double"?Me="Double"+Me:re=="triple"&&(Me="Triple"+Me),Me=(K==1?"Left":K==2?"Middle":"Right")+Me,es(P,ds(Me,le),le,function(pt){if(typeof pt=="string"&&(pt=nu[pt]),!pt)return!1;var jt=!1;try{P.isReadOnly()&&(P.state.suppressEdits=!0),jt=pt(P,$)!=Z}finally{P.state.suppressEdits=!1}return jt})}function Vu(P,K,$){var re=P.getOption("configureMouse"),le=re?re(P,K,$):{};if(le.unit==null){var Me=p?$.shiftKey&&$.metaKey:$.altKey;le.unit=Me?"rectangle":K=="single"?"char":K=="double"?"word":"line"}return(le.extend==null||P.doc.extend)&&(le.extend=P.doc.extend||$.shiftKey),le.addNew==null&&(le.addNew=h?$.metaKey:$.ctrlKey),le.moveOnDrag==null&&(le.moveOnDrag=!(h?$.altKey:$.ctrlKey)),le}function Fu(P,K,$,re){f?setTimeout(B(Wn,P),0):P.curOp.focus=R();var le=Vu(P,$,re),Me=P.doc.sel,pt;P.options.dragDrop&<&&!P.isReadOnly()&&$=="single"&&(pt=Me.contains(K))>-1&&(rt((pt=Me.ranges[pt]).from(),K)<0||K.xRel>0)&&(rt(pt.to(),K)>0||K.xRel<0)?ec(P,re,K,le):Gu(P,re,K,le)}function ec(P,K,$,re){var le=P.display,Me=!1,pt=fa(P,function(cr){o&&(le.scroller.draggable=!1),P.state.draggingText=!1,$e(le.wrapper.ownerDocument,"mouseup",pt),$e(le.wrapper.ownerDocument,"mousemove",jt),$e(le.scroller,"dragstart",ar),$e(le.scroller,"drop",pt),Me||(Xe(cr),re.addNew||ys(P.doc,$,null,null,re.extend),o&&!e||f&&c==9?setTimeout(function(){le.wrapper.ownerDocument.body.focus({preventScroll:!0}),le.input.focus()},20):le.input.focus())}),jt=function(bn){Me=Me||Math.abs(K.clientX-bn.clientX)+Math.abs(K.clientY-bn.clientY)>=10},ar=function(){return Me=!0};o&&(le.scroller.draggable=!0),P.state.draggingText=pt,pt.copy=!re.moveOnDrag,le.scroller.dragDrop&&le.scroller.dragDrop(),Le(le.wrapper.ownerDocument,"mouseup",pt),Le(le.wrapper.ownerDocument,"mousemove",jt),Le(le.scroller,"dragstart",ar),Le(le.scroller,"drop",pt),Ln(P),setTimeout(function(){return le.input.focus()},20)}function Bu(P,K,$){if($=="char")return new ne(K,K);if($=="word")return P.findWordAt(K);if($=="line")return new ne(wt(K.line,0),ot(P.doc,wt(K.line+1,0)));var re=$(P,K);return new ne(re.from,re.to)}function Gu(P,K,$,re){var le=P.display,Me=P.doc;Xe(K);var pt,jt,ar=Me.sel,cr=ar.ranges;if(re.addNew&&!re.extend?(jt=Me.sel.contains($),jt>-1?pt=cr[jt]:pt=new ne($,$)):(pt=Me.sel.primary(),jt=Me.sel.primIndex),re.unit=="rectangle")re.addNew||(pt=new ne($,$)),$=ri(P,K,!0,!0),jt=-1;else{var bn=Bu(P,$,re.unit);re.extend?pt=Os(pt,bn.anchor,bn.head,re.extend):pt=bn}re.addNew?jt==-1?(jt=cr.length,fs(Me,pe(P,cr.concat([pt]),jt),{scroll:!1,origin:"*mouse"})):cr.length>1&&cr[jt].empty()&&re.unit=="char"&&!re.extend?(fs(Me,pe(P,cr.slice(0,jt).concat(cr.slice(jt+1)),0),{scroll:!1,origin:"*mouse"}),ar=Me.sel):ws(Me,jt,pt,ie):(jt=0,fs(Me,new ut([pt],0),ie),ar=Me.sel);var Dn=$;function ui(Ua){if(rt(Dn,Ua)==0)return;if(Dn=Ua,re.unit=="rectangle"){for(var eo=[],ko=P.options.tabSize,To=W(Pe(Me,$.line).text,$.ch,ko),ns=W(Pe(Me,Ua.line).text,Ua.ch,ko),Ss=Math.min(To,ns),Hs=Math.max(To,ns),Ls=Math.min($.line,Ua.line),ul=Math.min(P.lastLine(),Math.max($.line,Ua.line));Ls<=ul;Ls++){var Sl=Pe(Me,Ls).text,tl=xe(Sl,Ss,ko);Ss==Hs?eo.push(new ne(wt(Ls,tl),wt(Ls,tl))):Sl.length>tl&&eo.push(new ne(wt(Ls,tl),wt(Ls,xe(Sl,Hs,ko))))}eo.length||eo.push(new ne($,$)),fs(Me,pe(P,ar.ranges.slice(0,jt).concat(eo),jt),{origin:"*mouse",scroll:!1}),P.scrollIntoView(Ua)}else{var xl=pt,cl=Bu(P,Ua,re.unit),Oa=xl.anchor,ks;rt(cl.anchor,Oa)>0?(ks=cl.head,Oa=At(xl.from(),cl.anchor)):(ks=cl.anchor,Oa=Ft(xl.to(),cl.head));var Ps=ar.ranges.slice(0);Ps[jt]=Xu(P,new ne(ot(Me,Oa),ks)),fs(Me,pe(P,Ps,jt),ie)}}var hi=le.wrapper.getBoundingClientRect(),Wi=0;function ia(Ua){var eo=++Wi,ko=ri(P,Ua,!0,re.unit=="rectangle");if(!ko)return;if(rt(ko,Dn)!=0){P.curOp.focus=R(),ui(ko);var To=wi(le,Me);(ko.line>=To.to||ko.line<To.from)&&setTimeout(fa(P,function(){Wi==eo&&ia(Ua)}),150)}else{var ns=Ua.clientY<hi.top?-20:Ua.clientY>hi.bottom?20:0;ns&&setTimeout(fa(P,function(){if(Wi!=eo)return;le.scroller.scrollTop+=ns,ia(Ua)}),50)}}function xa(Ua){P.state.selectingText=!1,Wi=Infinity,Ua&&(Xe(Ua),le.input.focus()),$e(le.wrapper.ownerDocument,"mousemove",ba),$e(le.wrapper.ownerDocument,"mouseup",va),Me.history.lastSelOrigin=null}var ba=fa(P,function(Ua){Ua.buttons===0||!ee(Ua)?xa(Ua):ia(Ua)}),va=fa(P,xa);P.state.selectingText=va,Le(le.wrapper.ownerDocument,"mousemove",ba),Le(le.wrapper.ownerDocument,"mouseup",va)}function Xu(P,K){var $=K.anchor,re=K.head,le=Pe(P.doc,$.line);if(rt($,re)==0&&$.sticky==re.sticky)return K;var Me=gt(le);if(!Me)return K;var pt=Te(Me,$.ch,$.sticky),jt=Me[pt];if(jt.from!=$.ch&&jt.to!=$.ch)return K;var ar=pt+(jt.from==$.ch==(jt.level!=1)?0:1);if(ar==0||ar==Me.length)return K;var cr;if(re.line!=$.line)cr=(re.line-$.line)*(P.doc.direction=="ltr"?1:-1)>0;else{var bn=Te(Me,re.ch,re.sticky),Dn=bn-pt||(re.ch-$.ch)*(jt.level==1?-1:1);bn==ar-1||bn==ar?cr=Dn<0:cr=Dn>0}var ui=Me[ar+(cr?-1:0)],hi=cr==(ui.level==1),Wi=hi?ui.from:ui.to,ia=hi?"after":"before";return $.ch==Wi&&$.sticky==ia?K:new ne(new wt($.line,Wi,ia),re)}function Yu(P,K,$,re){var le,Me;if(K.touches)le=K.touches[0].clientX,Me=K.touches[0].clientY;else try{le=K.clientX,Me=K.clientY}catch(ui){return!1}if(le>=Math.floor(P.display.gutters.getBoundingClientRect().right))return!1;re&&Xe(K);var pt=P.display,jt=pt.lineDiv.getBoundingClientRect();if(Me>jt.bottom||!Mt(P,$))return X(K);Me-=jt.top-pt.viewOffset;for(var ar=0;ar<P.display.gutterSpecs.length;++ar){var cr=pt.gutters.childNodes[ar];if(cr&&cr.getBoundingClientRect().right>=le){var bn=It(P.doc,Me),Dn=P.display.gutterSpecs[ar];return xt(P,$,P,bn,Dn.className,K),X(K)}}}function Uu(P,K){return Yu(P,K,"gutterClick",!0)}function Ou(P,K){if(Bo(P.display,K)||Ql(P,K))return;if(Ht(P,K,"contextmenu"))return;E||P.display.input.onContextMenu(K)}function Ql(P,K){return Mt(P,"gutterContextMenu")?Yu(P,K,"gutterContextMenu",!1):!1}function Iu(P){P.display.wrapper.className=P.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+P.options.theme.replace(/(^|\s)\s*/g," cm-s-"),lo(P)}var iu={toString:function(){return"CodeMirror.Init"}},Eu={},ge={};function He(P){var K=P.optionHandlers;function $(re,le,Me,pt){P.defaults[re]=le,Me&&(K[re]=pt?function(jt,ar,cr){cr!=iu&&Me(jt,ar,cr)}:Me)}P.defineOption=$,P.Init=iu,$("value","",function(re,le){return re.setValue(le)},!0),$("mode",null,function(re,le){re.doc.modeOption=le,cn(re)},!0),$("indentUnit",2,cn,!0),$("indentWithTabs",!1),$("smartIndent",!0),$("tabSize",4,function(re){jn(re),lo(re),ei(re)},!0),$("lineSeparator",null,function(re,le){if(re.doc.lineSep=le,!le)return;var Me=[],pt=re.doc.first;re.doc.iter(function(ar){for(var cr=0;;){var bn=ar.text.indexOf(le,cr);if(bn==-1)break;cr=bn+le.length,Me.push(wt(pt,bn))}pt++});for(var jt=Me.length-1;jt>=0;jt--)rl(re.doc,le,Me[jt],wt(Me[jt].line,Me[jt].ch+le.length))}),$("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(re,le,Me){re.state.specialChars=new RegExp(le.source+(le.test(" ")?"":"| "),"g"),Me!=iu&&re.refresh()}),$("specialCharPlaceholder",Oi,function(re){return re.refresh()},!0),$("electricChars",!0),$("inputStyle",u?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),$("spellcheck",!1,function(re,le){return re.getInputField().spellcheck=le},!0),$("autocorrect",!1,function(re,le){return re.getInputField().autocorrect=le},!0),$("autocapitalize",!1,function(re,le){return re.getInputField().autocapitalize=le},!0),$("rtlMoveVisually",!m),$("wholeLineUpdateBefore",!0),$("theme","default",function(re){Iu(re),ps(re)},!0),$("keyMap","default",function(re,le,Me){var pt=ss(le),jt=Me!=iu&&ss(Me);jt&&jt.detach&&jt.detach(re,pt),pt.attach&&pt.attach(re,jt||null)}),$("extraKeys",null),$("configureMouse",null),$("lineWrapping",!1,er,!0),$("gutters",[],function(re,le){re.display.gutterSpecs=Ao(le,re.options.lineNumbers),ps(re)},!0),$("fixedGutter",!0,function(re,le){re.display.gutters.style.left=le?Zn(re.display)+"px":"0",re.refresh()},!0),$("coverGutterNextToScrollbar",!1,function(re){return ra(re)},!0),$("scrollbarStyle","native",function(re){bo(re),ra(re),re.display.scrollbars.setScrollTop(re.doc.scrollTop),re.display.scrollbars.setScrollLeft(re.doc.scrollLeft)},!0),$("lineNumbers",!1,function(re,le){re.display.gutterSpecs=Ao(re.options.gutters,le),ps(re)},!0),$("firstLineNumber",1,ps,!0),$("lineNumberFormatter",function(re){return re},ps,!0),$("showCursorWhenSelecting",!1,Pr,!0),$("resetSelectionOnContextMenu",!0),$("lineWiseCopyCut",!0),$("pasteLinesPerSelection",!0),$("selectionsMayTouch",!1),$("readOnly",!1,function(re,le){le=="nocursor"&&(Un(re),re.display.input.blur()),re.display.input.readOnlyChanged(le)}),$("screenReaderLabel",null,function(re,le){le=le===""?null:le,re.display.input.screenReaderLabelChanged(le)}),$("disableInput",!1,function(re,le){le||re.display.input.reset()},!0),$("dragDrop",!0,ft),$("allowDropFileTypes",null),$("cursorBlinkRate",530),$("cursorScrollMargin",0),$("cursorHeight",1,Pr,!0),$("singleCursorHeightPerLine",!0,Pr,!0),$("workTime",100),$("workDelay",100),$("flattenSpans",!0,jn,!0),$("addModeClass",!1,jn,!0),$("pollInterval",100),$("undoDepth",200,function(re,le){return re.doc.history.undoDepth=le}),$("historyEventDelay",1250),$("viewportMargin",10,function(re){return re.refresh()},!0),$("maxHighlightLength",1e4,jn,!0),$("moveInputWithCursor",!0,function(re,le){le||re.display.input.resetPosition()}),$("tabindex",null,function(re,le){return re.display.input.getField().tabIndex=le||""}),$("autofocus",null),$("direction","ltr",function(re,le){return re.doc.setDirection(le)},!0),$("phrases",null)}function ft(P,K,$){var re=$&&$!=iu;if(!K!=!re){var le=P.display.dragFunctions,Me=K?Le:$e;Me(P.display.scroller,"dragstart",le.start),Me(P.display.scroller,"dragenter",le.enter),Me(P.display.scroller,"dragover",le.over),Me(P.display.scroller,"dragleave",le.leave),Me(P.display.scroller,"drop",le.drop)}}function er(P){P.options.lineWrapping?(k(P.display.wrapper,"CodeMirror-wrap"),P.display.sizer.style.minWidth="",P.display.sizerWidth=null):(b(P.display.wrapper,"CodeMirror-wrap"),Vn(P)),pi(P),ei(P),lo(P),setTimeout(function(){return ra(P)},100)}function Er(P,K){var $=this;if(!(this instanceof Er))return new Er(P,K);this.options=K=K?j(K):{},j(Eu,K,!1);var re=K.value;typeof re=="string"?re=new $s(re,K.mode,null,K.lineSeparator,K.direction):K.mode&&(re.modeOption=K.mode),this.doc=re;var le=new Er.inputStyles[K.inputStyle](this),Me=this.display=new is(P,re,le,K);Me.wrapper.CodeMirror=this,Iu(this),K.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),bo(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new V,keySeq:null,specialChars:null},K.autofocus&&!u&&Me.input.focus(),f&&c<11&&setTimeout(function(){return $.display.input.reset(!0)},20),Xr(this),tu(),go(this),this.curOp.forceUpdate=!0,Vi(this,re),K.autofocus&&!u||this.hasFocus()?setTimeout(function(){$.hasFocus()&&!$.state.focused&&$n($)},20):Un(this);for(var pt in ge)ge.hasOwnProperty(pt)&&ge[pt](this,K[pt],iu);ho(this),K.finishInit&&K.finishInit(this);for(var jt=0;jt<Oe.length;++jt)Oe[jt](this);Sa(this),o&&K.lineWrapping&&getComputedStyle(Me.lineDiv).textRendering=="optimizelegibility"&&(Me.lineDiv.style.textRendering="auto")}Er.defaults=Eu,Er.optionHandlers=ge;function Xr(P){var K=P.display;Le(K.scroller,"mousedown",fa(P,Au)),f&&c<11?Le(K.scroller,"dblclick",fa(P,function(ar){if(Ht(P,ar))return;var cr=ri(P,ar);if(!cr||Uu(P,ar)||Bo(P.display,ar))return;Xe(ar);var bn=P.findWordAt(cr);ys(P.doc,bn.anchor,bn.head)})):Le(K.scroller,"dblclick",function(ar){return Ht(P,ar)||Xe(ar)}),Le(K.scroller,"contextmenu",function(ar){return Ou(P,ar)}),Le(K.input.getField(),"contextmenu",function(ar){K.scroller.contains(ar.target)||Ou(P,ar)});var $,re={end:0};function le(){K.activeTouch&&($=setTimeout(function(){return K.activeTouch=null},1e3),re=K.activeTouch,re.end=+new Date)}function Me(ar){if(ar.touches.length!=1)return!1;var cr=ar.touches[0];return cr.radiusX<=1&&cr.radiusY<=1}function pt(ar,cr){if(cr.left==null)return!0;var bn=cr.left-ar.left,Dn=cr.top-ar.top;return bn*bn+Dn*Dn>20*20}Le(K.scroller,"touchstart",function(ar){if(!Ht(P,ar)&&!Me(ar)&&!Uu(P,ar)){K.input.ensurePolled(),clearTimeout($);var cr=+new Date;K.activeTouch={start:cr,moved:!1,prev:cr-re.end<=300?re:null},ar.touches.length==1&&(K.activeTouch.left=ar.touches[0].pageX,K.activeTouch.top=ar.touches[0].pageY)}}),Le(K.scroller,"touchmove",function(){K.activeTouch&&(K.activeTouch.moved=!0)}),Le(K.scroller,"touchend",function(ar){var cr=K.activeTouch;if(cr&&!Bo(K,ar)&&cr.left!=null&&!cr.moved&&new Date-cr.start<300){var bn=P.coordsChar(K.activeTouch,"page"),Dn;!cr.prev||pt(cr,cr.prev)?Dn=new ne(bn,bn):!cr.prev.prev||pt(cr,cr.prev.prev)?Dn=P.findWordAt(bn):Dn=new ne(wt(bn.line,0),ot(P.doc,wt(bn.line+1,0))),P.setSelection(Dn.anchor,Dn.head),P.focus(),Xe(ar)}le()}),Le(K.scroller,"touchcancel",le),Le(K.scroller,"scroll",function(){K.scroller.clientHeight&&(aa(P,K.scroller.scrollTop),Aa(P,K.scroller.scrollLeft,!0),xt(P,"scroll",P))}),Le(K.scroller,"mousewheel",function(ar){return Pn(P,ar)}),Le(K.scroller,"DOMMouseScroll",function(ar){return Pn(P,ar)}),Le(K.wrapper,"scroll",function(){return K.wrapper.scrollTop=K.wrapper.scrollLeft=0}),K.dragFunctions={enter:function(cr){Ht(P,cr)||Be(cr)},over:function(cr){Ht(P,cr)||(ou(P,cr),Be(cr))},start:function(cr){return Nl(P,cr)},drop:fa(P,pl),leave:function(cr){Ht(P,cr)||ql(P)}};var jt=K.input.getField();Le(jt,"keyup",function(ar){return Ol.call(P,ar)}),Le(jt,"keydown",fa(P,Bl)),Le(jt,"keypress",fa(P,Ll)),Le(jt,"focus",function(ar){return $n(P,ar)}),Le(jt,"blur",function(ar){return Un(P,ar)})}var Oe=[];Er.defineInitHook=function(P){return Oe.push(P)};function q(P,K,$,re){var le=P.doc,Me;$==null&&($="add"),$=="smart"&&(le.mode.indent?Me=Mn(P,K).state:$="prev");var pt=P.options.tabSize,jt=Pe(le,K),ar=W(jt.text,null,pt);jt.stateAfter&&(jt.stateAfter=null);var cr=jt.text.match(/^\s*/)[0],bn;if(!re&&!/\S/.test(jt.text))bn=0,$="not";else if($=="smart"&&(bn=le.mode.indent(Me,jt.text.slice(cr.length),jt.text),bn==Z||bn>150)){if(!re)return;$="prev"}$=="prev"?K>le.first?bn=W(Pe(le,K-1).text,null,pt):bn=0:$=="add"?bn=ar+P.options.indentUnit:$=="subtract"?bn=ar-P.options.indentUnit:typeof $=="number"&&(bn=ar+$),bn=Math.max(0,bn);var Dn="",ui=0;if(P.options.indentWithTabs)for(var hi=Math.floor(bn/pt);hi;--hi)ui+=pt,Dn+=" ";if(ui<bn&&(Dn+=Ue(bn-ui)),Dn!=cr)return rl(le,Dn,wt(K,0),wt(K,cr.length),"+input"),jt.stateAfter=null,!0;for(var Wi=0;Wi<le.sel.ranges.length;Wi++){var ia=le.sel.ranges[Wi];if(ia.head.line==K&&ia.head.ch<cr.length){var xa=wt(K,cr.length);ws(le,Wi,new ne(xa,xa));break}}}var ye=null;function ze(P){ye=P}function at(P,K,$,re,le){var Me=P.doc;P.display.shift=!1,re||(re=Me.sel);var pt=+new Date-200,jt=le=="paste"||P.state.pasteIncoming>pt,ar=$r(K),cr=null;if(jt&&re.ranges.length>1)if(ye&&ye.text.join(`
|
|
|
`)==K){if(re.ranges.length%ye.text.length==0){cr=[];for(var bn=0;bn<ye.text.length;bn++)cr.push(Me.splitLines(ye.text[bn]))}}else ar.length==re.ranges.length&&P.options.pasteLinesPerSelection&&(cr=ke(ar,function(ba){return[ba]}));for(var Dn=P.curOp.updateInput,ui=re.ranges.length-1;ui>=0;ui--){var hi=re.ranges[ui],Wi=hi.from(),ia=hi.to();hi.empty()&&($&&$>0?Wi=wt(Wi.line,Wi.ch-$):P.state.overwrite&&!jt?ia=wt(ia.line,Math.min(Pe(Me,ia.line).text.length,ia.ch+fe(ar).length)):jt&&ye&&ye.lineWise&&ye.text.join(`
|
|
|
`)==ar.join(`
|
|
|
`)&&(Wi=ia=wt(Wi.line,0)));var xa={from:Wi,to:ia,text:cr?cr[ui%cr.length]:ar,origin:le||(jt?"paste":P.state.cutIncoming>pt?"cut":"+input")};Gs(P.doc,xa),Hi(P,"inputRead",P,xa)}K&&!jt&&Kt(P,K),wa(P),P.curOp.updateInput<2&&(P.curOp.updateInput=Dn),P.curOp.typing=!0,P.state.pasteIncoming=P.state.cutIncoming=-1}function Nt(P,K){var $=P.clipboardData&&P.clipboardData.getData("Text");if($)return P.preventDefault(),!K.isReadOnly()&&!K.options.disableInput&&co(K,function(){return at(K,$,0,null,"paste")}),!0}function Kt(P,K){if(!P.options.electricChars||!P.options.smartIndent)return;for(var $=P.doc.sel,re=$.ranges.length-1;re>=0;re--){var le=$.ranges[re];if(le.head.ch>100||re&&$.ranges[re-1].head.line==le.head.line)continue;var Me=P.getModeAt(le.head),pt=!1;if(Me.electricChars){for(var jt=0;jt<Me.electricChars.length;jt++)if(K.indexOf(Me.electricChars.charAt(jt))>-1){pt=q(P,le.head.line,"smart");break}}else Me.electricInput&&(Me.electricInput.test(Pe(P.doc,le.head.line).text.slice(0,le.head.ch))&&(pt=q(P,le.head.line,"smart")));pt&&Hi(P,"electricInput",P,le.head.line)}}function Qt(P){for(var K=[],$=[],re=0;re<P.doc.sel.ranges.length;re++){var le=P.doc.sel.ranges[re].head.line,Me={anchor:wt(le,0),head:wt(le+1,0)};$.push(Me),K.push(P.getRange(Me.anchor,Me.head))}return{text:K,ranges:$}}function Ir(P,K,$,re){P.setAttribute("autocorrect",$?"":"off"),P.setAttribute("autocapitalize",re?"":"off"),P.setAttribute("spellcheck",!!K)}function Zr(){var P=I("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),K=I("div",[P],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return o?P.style.width="1000px":P.setAttribute("wrap","off"),a&&(P.style.border="1px solid black"),Ir(P),K}function Tr(P){var K=P.optionHandlers,$=P.helpers={};P.prototype={constructor:P,focus:function(){window.focus(),this.display.input.focus()},setOption:function(le,Me){var pt=this.options,jt=pt[le];if(pt[le]==Me&&le!="mode")return;pt[le]=Me,K.hasOwnProperty(le)&&fa(this,K[le])(this,Me,jt),xt(this,"optionChange",this,le)},getOption:function(le){return this.options[le]},getDoc:function(){return this.doc},addKeyMap:function(le,Me){this.state.keyMaps[Me?"push":"unshift"](ss(le))},removeKeyMap:function(le){for(var Me=this.state.keyMaps,pt=0;pt<Me.length;++pt)if(Me[pt]==le||Me[pt].name==le)return Me.splice(pt,1),!0},addOverlay:ro(function(re,le){var Me=re.token?re:P.getMode(this.options,re);if(Me.startState)throw new Error("Overlays may not be stateful.");se(this.state.overlays,{mode:Me,modeSpec:re,opaque:le&&le.opaque,priority:le&&le.priority||0},function(pt){return pt.priority}),this.state.modeGen++,ei(this)}),removeOverlay:ro(function(re){for(var le=this.state.overlays,Me=0;Me<le.length;++Me){var pt=le[Me].modeSpec;if(pt==re||typeof re=="string"&&pt.name==re){le.splice(Me,1),this.state.modeGen++,ei(this);return}}}),indentLine:ro(function(re,le,Me){typeof le!="string"&&typeof le!="number"&&(le==null?le=this.options.smartIndent?"smart":"prev":le=le?"add":"subtract"),gr(this.doc,re)&&q(this,re,le,Me)}),indentSelection:ro(function(re){for(var le=this.doc.sel.ranges,Me=-1,pt=0;pt<le.length;pt++){var jt=le[pt];if(jt.empty())jt.head.line>Me&&(q(this,jt.head.line,re,!0),Me=jt.head.line,pt==this.doc.sel.primIndex&&wa(this));else{var ar=jt.from(),cr=jt.to(),bn=Math.max(Me,ar.line);Me=Math.min(this.lastLine(),cr.line-(cr.ch?0:1))+1;for(var Dn=bn;Dn<Me;++Dn)q(this,Dn,re);var ui=this.doc.sel.ranges;ar.ch==0&&le.length==ui.length&&ui[pt].from().ch>0&&ws(this.doc,pt,new ne(ar,ui[pt].to()),de)}}}),getTokenAt:function(le,Me){return _i(this,le,Me)},getLineTokens:function(le,Me){return _i(this,wt(le),Me,!0)},getTokenTypeAt:function(le){le=ot(this.doc,le);var Me=hn(this,Pe(this.doc,le.line)),pt=0,jt=(Me.length-1)/2,ar=le.ch,cr;if(ar==0)cr=Me[2];else for(;;){var bn=pt+jt>>1;if((bn?Me[bn*2-1]:0)>=ar)jt=bn;else if(Me[bn*2+1]<ar)pt=bn+1;else{cr=Me[bn*2+2];break}}var Dn=cr?cr.indexOf("overlay "):-1;return Dn<0?cr:Dn==0?null:cr.slice(0,Dn-1)},getModeAt:function(le){var Me=this.doc.mode;return Me.innerMode?P.innerMode(Me,this.getTokenAt(le).state).mode:Me},getHelper:function(le,Me){return this.getHelpers(le,Me)[0]},getHelpers:function(le,Me){var pt=[];if(!$.hasOwnProperty(Me))return pt;var jt=$[Me],ar=this.getModeAt(le);if(typeof ar[Me]=="string")jt[ar[Me]]&&pt.push(jt[ar[Me]]);else if(ar[Me])for(var cr=0;cr<ar[Me].length;cr++){var bn=jt[ar[Me][cr]];bn&&pt.push(bn)}else ar.helperType&&jt[ar.helperType]?pt.push(jt[ar.helperType]):jt[ar.name]&&pt.push(jt[ar.name]);for(var Dn=0;Dn<jt._global.length;Dn++){var ui=jt._global[Dn];ui.pred(ar,this)&&z(pt,ui.val)==-1&&pt.push(ui.val)}return pt},getStateAfter:function(le,Me){var pt=this.doc;return le=Wt(pt,le==null?pt.first+pt.size-1:le),Mn(this,le+1,Me).state},cursorCoords:function(le,Me){var pt,jt=this.doc.sel.primary();return le==null?pt=jt.head:typeof le=="object"?pt=ot(this.doc,le):pt=le?jt.from():jt.to(),li(this,pt,Me||"page")},charCoords:function(le,Me){return ni(this,ot(this.doc,le),Me||"page")},coordsChar:function(le,Me){return le=vn(this,le,Me||"page"),Yt(this,le.left,le.top)},lineAtHeight:function(le,Me){return le=vn(this,{top:le,left:0},Me||"page").top,It(this.doc,le+this.display.viewOffset)},heightAtLine:function(le,Me,pt){var jt=!1,ar;if(typeof le=="number"){var cr=this.doc.first+this.doc.size-1;le<this.doc.first?le=this.doc.first:le>cr&&(le=cr,jt=!0),ar=Pe(this.doc,le)}else ar=le;return un(this,ar,{top:0,left:0},Me||"page",pt||jt).top+(jt?this.doc.height-qr(ar):0)},defaultTextHeight:function(){return fn(this.display)},defaultCharWidth:function(){return Cn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(le,Me,pt,jt,ar){var cr=this.display;le=li(this,ot(this.doc,le));var bn=le.bottom,Dn=le.left;if(Me.style.position="absolute",Me.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Me),cr.sizer.appendChild(Me),jt=="over")bn=le.top;else if(jt=="above"||jt=="near"){var ui=Math.max(cr.wrapper.clientHeight,this.doc.height),hi=Math.max(cr.sizer.clientWidth,cr.lineSpace.clientWidth);(jt=="above"||le.bottom+Me.offsetHeight>ui)&&le.top>Me.offsetHeight?bn=le.top-Me.offsetHeight:le.bottom+Me.offsetHeight<=ui&&(bn=le.bottom),Dn+Me.offsetWidth>hi&&(Dn=hi-Me.offsetWidth)}Me.style.top=bn+"px",Me.style.left=Me.style.right="",ar=="right"?(Dn=cr.sizer.clientWidth-Me.offsetWidth,Me.style.right="0px"):(ar=="left"?Dn=0:ar=="middle"&&(Dn=(cr.sizer.clientWidth-Me.offsetWidth)/2),Me.style.left=Dn+"px"),pt&&ua(this,{left:Dn,top:bn,right:Dn+Me.offsetWidth,bottom:bn+Me.offsetHeight})},triggerOnKeyDown:ro(Bl),triggerOnKeyPress:ro(Ll),triggerOnKeyUp:Ol,triggerOnMouseDown:ro(Au),execCommand:function(le){if(nu.hasOwnProperty(le))return nu[le].call(null,this)},triggerElectric:ro(function(re){Kt(this,re)}),findPosH:function(le,Me,pt,jt){var ar=1;Me<0&&(ar=-1,Me=-Me);for(var cr=ot(this.doc,le),bn=0;bn<Me&&!(cr=xr(this.doc,cr,ar,pt,jt),cr.hitSide);++bn);return cr},moveH:ro(function(re,le){var Me=this;this.extendSelectionsBy(function(pt){return Me.display.shift||Me.doc.extend||pt.empty()?xr(Me.doc,pt.head,re,le,Me.options.rtlMoveVisually):re<0?pt.from():pt.to()},ve)}),deleteH:ro(function(re,le){var Me=this.doc.sel,pt=this.doc;Me.somethingSelected()?pt.replaceSelection("",null,"+delete"):Is(this,function(jt){var ar=xr(pt,jt.head,re,le,!1);return re<0?{from:ar,to:jt.head}:{from:jt.head,to:ar}})}),findPosV:function(le,Me,pt,jt){var ar=1,cr=jt;Me<0&&(ar=-1,Me=-Me);for(var bn=ot(this.doc,le),Dn=0;Dn<Me;++Dn){var ui=li(this,bn,"div");if(cr==null?cr=ui.left:ui.left=cr,bn=Wr(this,ui,ar,pt),bn.hitSide)break}return bn},moveV:ro(function(re,le){var Me=this,pt=this.doc,jt=[],ar=!this.display.shift&&!pt.extend&&pt.sel.somethingSelected();if(pt.extendSelectionsBy(function(bn){if(ar)return re<0?bn.from():bn.to();var Dn=li(Me,bn.head,"div");bn.goalColumn!=null&&(Dn.left=bn.goalColumn),jt.push(Dn.left);var ui=Wr(Me,Dn,re,le);return le=="page"&&bn==pt.sel.primary()&&Gi(Me,ni(Me,ui,"div").top-Dn.top),ui},ve),jt.length)for(var cr=0;cr<pt.sel.ranges.length;cr++)pt.sel.ranges[cr].goalColumn=jt[cr]}),findWordAt:function(le){var Me=this.doc,pt=Pe(Me,le.line).text,jt=le.ch,ar=le.ch;if(pt){var cr=this.getHelper(le,"wordChars");(le.sticky=="before"||ar==pt.length)&&jt?--jt:++ar;for(var bn=pt.charAt(jt),Dn=G(bn,cr)?function(ui){return G(ui,cr)}:/\s/.test(bn)?function(ui){return/\s/.test(ui)}:function(ui){return!/\s/.test(ui)&&!G(ui)};jt>0&&Dn(pt.charAt(jt-1));)--jt;for(;ar<pt.length&&Dn(pt.charAt(ar));)++ar}return new ne(wt(le.line,jt),wt(le.line,ar))},toggleOverwrite:function(le){if(le!=null&&le==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?k(this.display.cursorDiv,"CodeMirror-overwrite"):b(this.display.cursorDiv,"CodeMirror-overwrite"),xt(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==R()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ro(function(re,le){na(this,re,le)}),getScrollInfo:function(){var le=this.display.scroller;return{left:le.scrollLeft,top:le.scrollTop,height:le.scrollHeight-En(this)-this.display.barHeight,width:le.scrollWidth-En(this)-this.display.barWidth,clientHeight:ur(this),clientWidth:en(this)}},scrollIntoView:ro(function(re,le){re==null?(re={from:this.doc.sel.primary().head,to:null},le==null&&(le=this.options.cursorScrollMargin)):typeof re=="number"?re={from:wt(re,0),to:null}:re.from==null&&(re={from:re,to:null}),re.to||(re.to=re.from),re.margin=le||0,re.from.line!=null?mo(this,re):qi(this,re.from,re.to,re.margin)}),setSize:ro(function(re,le){var Me=this,pt=function(cr){return typeof cr=="number"||/^\d+$/.test(String(cr))?cr+"px":cr};re!=null&&(this.display.wrapper.style.width=pt(re)),le!=null&&(this.display.wrapper.style.height=pt(le)),this.options.lineWrapping&&La(this);var jt=this.display.viewFrom;this.doc.iter(jt,this.display.viewTo,function(ar){if(ar.widgets){for(var cr=0;cr<ar.widgets.length;cr++)if(ar.widgets[cr].noHScroll){Je(Me,jt,"widget");break}}++jt}),this.curOp.forceUpdate=!0,xt(this,"refresh",this)}),operation:function(le){return co(this,le)},startOperation:function(){return go(this)},endOperation:function(){return Sa(this)},refresh:ro(function(){var re=this.display.cachedTextHeight;ei(this),this.curOp.forceUpdate=!0,lo(this),na(this,this.doc.scrollLeft,this.doc.scrollTop),zo(this.display),(re==null||Math.abs(re-fn(this.display))>.5||this.options.lineWrapping)&&pi(this),xt(this,"refresh",this)}),swapDoc:ro(function(re){var le=this.doc;return le.cm=null,this.state.selectingText&&this.state.selectingText(),Vi(this,re),lo(this),this.display.input.reset(),na(this,re.scrollLeft,re.scrollTop),this.curOp.forceScroll=!0,Hi(this,"swapDoc",this,le),le}),phrase:function(le){var Me=this.options.phrases;return Me&&Object.prototype.hasOwnProperty.call(Me,le)?Me[le]:le},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}},Tt(P),P.registerHelper=function(re,le,Me){$.hasOwnProperty(re)||($[re]=P[re]={_global:[]}),$[re][le]=Me},P.registerGlobalHelper=function(re,le,Me,pt){P.registerHelper(re,le,pt),$[re]._global.push({pred:Me,val:pt})}}function xr(P,K,$,re,le){var Me=K,pt=$,jt=Pe(P,K.line),ar=le&&P.direction=="rtl"?-$:$;function cr(){var va=K.line+ar;return va<P.first||va>=P.first+P.size?!1:(K=new wt(va,K.ch,K.sticky),jt=Pe(P,va))}function bn(va){var Ua;if(re=="codepoint"){var eo=jt.text.charCodeAt(K.ch+(re>0?0:-1));isNaN(eo)?Ua=null:Ua=new wt(K.line,Math.max(0,Math.min(jt.text.length,K.ch+$*(eo>=55296&&eo<56320?2:1))),-$)}else le?Ua=Yl(P.cm,jt,K,$):Ua=lu(jt,K,$);if(Ua==null)if(!va&&cr())K=uu(le,P.cm,jt,K.line,ar);else return!1;else K=Ua;return!0}if(re=="char"||re=="codepoint")bn();else if(re=="column")bn(!0);else if(re=="word"||re=="group")for(var Dn=null,ui=re=="group",hi=P.cm&&P.cm.getHelper(K,"wordChars"),Wi=!0;!($<0&&!bn(!Wi));Wi=!1){var ia=jt.text.charAt(K.ch)||`
|
|
|
`,xa=G(ia,hi)?"w":ui&&ia==`
|
|
|
`?"n":!ui||/\s/.test(ia)?null:"p";if(ui&&!Wi&&!xa&&(xa="s"),Dn&&Dn!=xa){$<0&&($=1,bn(),K.sticky="after");break}if(xa&&(Dn=xa),$>0&&!bn(!Wi))break}var ba=al(P,K,Me,pt,!0);return tt(Me,ba)&&(ba.hitSide=!0),ba}function Wr(P,K,$,re){var le=P.doc,Me=K.left,pt;if(re=="page"){var jt=Math.min(P.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ar=Math.max(jt-.5*fn(P.display),3);pt=($>0?K.bottom:K.top)+$*ar}else re=="line"&&(pt=$>0?K.bottom+3:K.top-3);for(var cr;!(cr=Yt(P,Me,pt),!cr.outside);){if($<0?pt<=0:pt>=le.height){cr.hitSide=!0;break}pt+=$*5}return cr}var nn=function(K){this.cm=K,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};nn.prototype.init=function(P){var K=this,$=this,re=$.cm,le=$.div=P.lineDiv;Ir(le,re.options.spellcheck,re.options.autocorrect,re.options.autocapitalize);function Me(jt){for(var ar=jt.target;ar;ar=ar.parentNode){if(ar==le)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ar.className))break}return!1}Le(le,"paste",function(jt){if(!Me(jt)||Ht(re,jt)||Nt(jt,re))return;c<=11&&setTimeout(fa(re,function(){return K.updateFromDOM()}),20)}),Le(le,"compositionstart",function(jt){K.composing={data:jt.data,done:!1}}),Le(le,"compositionupdate",function(jt){K.composing||(K.composing={data:jt.data,done:!1})}),Le(le,"compositionend",function(jt){K.composing&&(jt.data!=K.composing.data&&K.readFromDOMSoon(),K.composing.done=!0)}),Le(le,"touchstart",function(){return $.forceCompositionEnd()}),Le(le,"input",function(){K.composing||K.readFromDOMSoon()});function pt(jt){if(!Me(jt)||Ht(re,jt))return;if(re.somethingSelected())ze({lineWise:!1,text:re.getSelections()}),jt.type=="cut"&&re.replaceSelection("",null,"cut");else if(re.options.lineWiseCopyCut){var ar=Qt(re);ze({lineWise:!0,text:ar.text}),jt.type=="cut"&&re.operation(function(){re.setSelections(ar.ranges,0,de),re.replaceSelection("",null,"cut")})}else return;if(jt.clipboardData){jt.clipboardData.clearData();var cr=ye.text.join(`
|
|
|
`);if(jt.clipboardData.setData("Text",cr),jt.clipboardData.getData("Text")==cr){jt.preventDefault();return}}var bn=Zr(),Dn=bn.firstChild;re.display.lineSpace.insertBefore(bn,re.display.lineSpace.firstChild),Dn.value=ye.text.join(`
|
|
|
`);var ui=document.activeElement;U(Dn),setTimeout(function(){re.display.lineSpace.removeChild(bn),ui.focus(),ui==le&&$.showPrimarySelection()},50)}Le(le,"copy",pt),Le(le,"cut",pt)},nn.prototype.screenReaderLabelChanged=function(P){P?this.div.setAttribute("aria-label",P):this.div.removeAttribute("aria-label")},nn.prototype.prepareSelection=function(){var P=hr(this.cm,!1);return P.focus=document.activeElement==this.div,P},nn.prototype.showSelection=function(P,K){if(!P||!this.cm.display.view.length)return;(P.focus||K)&&this.showPrimarySelection(),this.showMultipleSelections(P)},nn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},nn.prototype.showPrimarySelection=function(){var P=this.getSelection(),K=this.cm,$=K.doc.sel.primary(),re=$.from(),le=$.to();if(K.display.viewTo==K.display.viewFrom||re.line>=K.display.viewTo||le.line<K.display.viewFrom){P.removeAllRanges();return}var Me=Bi(K,P.anchorNode,P.anchorOffset),pt=Bi(K,P.focusNode,P.focusOffset);if(Me&&!Me.bad&&pt&&!pt.bad&&rt(At(Me,pt),re)==0&&rt(Ft(Me,pt),le)==0)return;var jt=K.display.view,ar=re.line>=K.display.viewFrom&&_n(K,re)||{node:jt[0].measure.map[2],offset:0},cr=le.line<K.display.viewTo&&_n(K,le);if(!cr){var bn=jt[jt.length-1].measure,Dn=bn.maps?bn.maps[bn.maps.length-1]:bn.map;cr={node:Dn[Dn.length-1],offset:Dn[Dn.length-2]-Dn[Dn.length-3]}}if(!ar||!cr){P.removeAllRanges();return}var ui=P.rangeCount&&P.getRangeAt(0),hi;try{hi=N(ar.node,ar.offset,cr.offset,cr.node)}catch(Wi){}hi&&(!C&&K.state.focused?(P.collapse(ar.node,ar.offset),hi.collapsed||(P.removeAllRanges(),P.addRange(hi))):(P.removeAllRanges(),P.addRange(hi)),ui&&P.anchorNode==null?P.addRange(ui):C&&this.startGracePeriod()),this.rememberSelection()},nn.prototype.startGracePeriod=function(){var P=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){P.gracePeriod=!1,P.selectionChanged()&&P.cm.operation(function(){return P.cm.curOp.selectionChanged=!0})},20)},nn.prototype.showMultipleSelections=function(P){_(this.cm.display.cursorDiv,P.cursors),_(this.cm.display.selectionDiv,P.selection)},nn.prototype.rememberSelection=function(){var P=this.getSelection();this.lastAnchorNode=P.anchorNode,this.lastAnchorOffset=P.anchorOffset,this.lastFocusNode=P.focusNode,this.lastFocusOffset=P.focusOffset},nn.prototype.selectionInEditor=function(){var P=this.getSelection();if(!P.rangeCount)return!1;var K=P.getRangeAt(0).commonAncestorContainer;return D(this.div,K)},nn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},nn.prototype.blur=function(){this.div.blur()},nn.prototype.getField=function(){return this.div},nn.prototype.supportsTouch=function(){return!0},nn.prototype.receivedFocus=function(){var P=this;this.selectionInEditor()?this.pollSelection():co(this.cm,function(){return P.cm.curOp.selectionChanged=!0});function K(){P.cm.state.focused&&(P.pollSelection(),P.polling.set(P.cm.options.pollInterval,K))}this.polling.set(this.cm.options.pollInterval,K)},nn.prototype.selectionChanged=function(){var P=this.getSelection();return P.anchorNode!=this.lastAnchorNode||P.anchorOffset!=this.lastAnchorOffset||P.focusNode!=this.lastFocusNode||P.focusOffset!=this.lastFocusOffset},nn.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var P=this.getSelection(),K=this.cm;if(s&&i&&this.cm.display.gutterSpecs.length&&gi(P.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var $=Bi(K,P.anchorNode,P.anchorOffset),re=Bi(K,P.focusNode,P.focusOffset);$&&re&&co(K,function(){fs(K.doc,be($,re),de),($.bad||re.bad)&&(K.curOp.selectionChanged=!0)})},nn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var P=this.cm,K=P.display,$=P.doc.sel.primary(),re=$.from(),le=$.to();if(re.ch==0&&re.line>P.firstLine()&&(re=wt(re.line-1,Pe(P.doc,re.line-1).length)),le.ch==Pe(P.doc,le.line).text.length&&le.line<P.lastLine()&&(le=wt(le.line+1,0)),re.line<K.viewFrom||le.line>K.viewTo-1)return!1;var Me,pt,jt;re.line==K.viewFrom||(Me=ji(P,re.line))==0?(pt=bt(K.view[0].line),jt=K.view[0].node):(pt=bt(K.view[Me].line),jt=K.view[Me-1].node.nextSibling);var ar=ji(P,le.line),cr,bn;if(ar==K.view.length-1?(cr=K.viewTo-1,bn=K.lineDiv.lastChild):(cr=bt(K.view[ar+1].line)-1,bn=K.view[ar+1].node.previousSibling),!jt)return!1;for(var Dn=P.doc.splitLines(Qi(P,jt,bn,pt,cr)),ui=nt(P.doc,wt(pt,0),wt(cr,Pe(P.doc,cr).text.length));Dn.length>1&&ui.length>1;)if(fe(Dn)==fe(ui))Dn.pop(),ui.pop(),cr--;else if(Dn[0]==ui[0])Dn.shift(),ui.shift(),pt++;else break;for(var hi=0,Wi=0,ia=Dn[0],xa=ui[0],ba=Math.min(ia.length,xa.length);hi<ba&&ia.charCodeAt(hi)==xa.charCodeAt(hi);)++hi;for(var va=fe(Dn),Ua=fe(ui),eo=Math.min(va.length-(Dn.length==1?hi:0),Ua.length-(ui.length==1?hi:0));Wi<eo&&va.charCodeAt(va.length-Wi-1)==Ua.charCodeAt(Ua.length-Wi-1);)++Wi;if(Dn.length==1&&ui.length==1&&pt==re.line)for(;hi&&hi>re.ch&&va.charCodeAt(va.length-Wi-1)==Ua.charCodeAt(Ua.length-Wi-1);)hi--,Wi++;Dn[Dn.length-1]=va.slice(0,va.length-Wi).replace(/^\u200b+/,""),Dn[0]=Dn[0].slice(hi).replace(/\u200b+$/,"");var ko=wt(pt,hi),To=wt(cr,ui.length?fe(ui).length-Wi:0);if(Dn.length>1||Dn[0]||rt(ko,To))return rl(P.doc,Dn,ko,To,"+input"),!0},nn.prototype.ensurePolled=function(){this.forceCompositionEnd()},nn.prototype.reset=function(){this.forceCompositionEnd()},nn.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},nn.prototype.readFromDOMSoon=function(){var P=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(P.readDOMTimeout=null,P.composing)if(P.composing.done)P.composing=null;else return;P.updateFromDOM()},80)},nn.prototype.updateFromDOM=function(){var P=this;(this.cm.isReadOnly()||!this.pollContent())&&co(this.cm,function(){return ei(P.cm)})},nn.prototype.setUneditable=function(P){P.contentEditable="false"},nn.prototype.onKeyPress=function(P){if(P.charCode==0||this.composing)return;P.preventDefault(),this.cm.isReadOnly()||fa(this.cm,at)(this.cm,String.fromCharCode(P.charCode==null?P.keyCode:P.charCode),0)},nn.prototype.readOnlyChanged=function(P){this.div.contentEditable=String(P!="nocursor")},nn.prototype.onContextMenu=function(){},nn.prototype.resetPosition=function(){},nn.prototype.needsContentAttribute=!0;function _n(P,K){var $=Ci(P,K.line);if(!$||$.hidden)return null;var re=Pe(P.doc,K.line),le=Bn($,re,K.line),Me=gt(re,P.doc.direction),pt="left";if(Me){var jt=Te(Me,K.ch);pt=jt%2?"right":"left"}var ar=da(le.map,K.ch,pt);return ar.offset=ar.collapse=="right"?ar.end:ar.start,ar}function gi(P){for(var K=P;K;K=K.parentNode)if(/CodeMirror-gutter-wrapper/.test(K.className))return!0;return!1}function Ai(P,K){return K&&(P.bad=!0),P}function Qi(P,K,$,re,le){var Me="",pt=!1,jt=P.doc.lineSeparator(),ar=!1;function cr(hi){return function(Wi){return Wi.id==hi}}function bn(){pt&&(Me+=jt,ar&&(Me+=jt),pt=ar=!1)}function Dn(hi){hi&&(bn(),Me+=hi)}function ui(hi){if(hi.nodeType==1){var Wi=hi.getAttribute("cm-text");if(Wi){Dn(Wi);return}var ia=hi.getAttribute("cm-marker"),xa;if(ia){var ba=P.findMarks(wt(re,0),wt(le+1,0),cr(+ia));ba.length&&(xa=ba[0].find(0))&&Dn(nt(P.doc,xa.from,xa.to).join(jt));return}if(hi.getAttribute("contenteditable")=="false")return;var va=/^(pre|div|p|li|table|br)$/i.test(hi.nodeName);if(!/^br$/i.test(hi.nodeName)&&hi.textContent.length==0)return;va&&bn();for(var Ua=0;Ua<hi.childNodes.length;Ua++)ui(hi.childNodes[Ua]);/^(pre|p)$/i.test(hi.nodeName)&&(ar=!0),va&&(pt=!0)}else hi.nodeType==3&&Dn(hi.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(ui(K),K==$);)K=K.nextSibling,ar=!1;return Me}function Bi(P,K,$){var re;if(K==P.display.lineDiv){if(re=P.display.lineDiv.childNodes[$],!re)return Ai(P.clipPos(wt(P.display.viewTo-1)),!0);K=null,$=0}else for(re=K;;re=re.parentNode){if(!re||re==P.display.lineDiv)return null;if(re.parentNode&&re.parentNode==P.display.lineDiv)break}for(var le=0;le<P.display.view.length;le++){var Me=P.display.view[le];if(Me.node==re)return Ma(Me,K,$)}}function Ma(P,K,$){var re=P.text.firstChild,le=!1;if(!K||!D(re,K))return Ai(wt(bt(P.line),0),!0);if(K==re&&(le=!0,K=re.childNodes[$],$=0,!K)){var Me=P.rest?fe(P.rest):P.line;return Ai(wt(bt(Me),Me.text.length),le)}var pt=K.nodeType==3?K:null,jt=K;for(!pt&&K.childNodes.length==1&&K.firstChild.nodeType==3&&(pt=K.firstChild,$&&($=pt.nodeValue.length));jt.parentNode!=re;)jt=jt.parentNode;var ar=P.measure,cr=ar.maps;function bn(xa,ba,va){for(var Ua=-1;Ua<(cr?cr.length:0);Ua++)for(var eo=Ua<0?ar.map:cr[Ua],ko=0;ko<eo.length;ko+=3){var To=eo[ko+2];if(To==xa||To==ba){var ns=bt(Ua<0?P.line:P.rest[Ua]),Ss=eo[ko]+va;return(va<0||To!=xa)&&(Ss=eo[ko+(va?1:0)]),wt(ns,Ss)}}}var Dn=bn(pt,jt,$);if(Dn)return Ai(Dn,le);for(var ui=jt.nextSibling,hi=pt?pt.nodeValue.length-$:0;ui;ui=ui.nextSibling){if(Dn=bn(ui,ui.firstChild,0),Dn)return Ai(wt(Dn.line,Dn.ch-hi),le);hi+=ui.textContent.length}for(var Wi=jt.previousSibling,ia=$;Wi;Wi=Wi.previousSibling){if(Dn=bn(Wi,Wi.firstChild,-1),Dn)return Ai(wt(Dn.line,Dn.ch+ia),le);ia+=Wi.textContent.length}}var ea=function(K){this.cm=K,this.prevInput="",this.pollingFast=!1,this.polling=new V,this.hasSelection=!1,this.composing=null};ea.prototype.init=function(P){var K=this,$=this,re=this.cm;this.createField(P);var le=this.textarea;P.wrapper.insertBefore(this.wrapper,P.wrapper.firstChild),a&&(le.style.width="0px"),Le(le,"input",function(){f&&c>=9&&K.hasSelection&&(K.hasSelection=null),$.poll()}),Le(le,"paste",function(pt){if(Ht(re,pt)||Nt(pt,re))return;re.state.pasteIncoming=+new Date,$.fastPoll()});function Me(pt){if(Ht(re,pt))return;if(re.somethingSelected())ze({lineWise:!1,text:re.getSelections()});else if(re.options.lineWiseCopyCut){var jt=Qt(re);ze({lineWise:!0,text:jt.text}),pt.type=="cut"?re.setSelections(jt.ranges,null,de):($.prevInput="",le.value=jt.text.join(`
|
|
|
`),U(le))}else return;pt.type=="cut"&&(re.state.cutIncoming=+new Date)}Le(le,"cut",Me),Le(le,"copy",Me),Le(P.scroller,"paste",function(pt){if(Bo(P,pt)||Ht(re,pt))return;if(!le.dispatchEvent){re.state.pasteIncoming=+new Date,$.focus();return}var jt=new Event("paste");jt.clipboardData=pt.clipboardData,le.dispatchEvent(jt)}),Le(P.lineSpace,"selectstart",function(pt){Bo(P,pt)||Xe(pt)}),Le(le,"compositionstart",function(){var pt=re.getCursor("from");$.composing&&$.composing.range.clear(),$.composing={start:pt,range:re.markText(pt,re.getCursor("to"),{className:"CodeMirror-composing"})}}),Le(le,"compositionend",function(){$.composing&&($.poll(),$.composing.range.clear(),$.composing=null)})},ea.prototype.createField=function(P){this.wrapper=Zr(),this.textarea=this.wrapper.firstChild},ea.prototype.screenReaderLabelChanged=function(P){P?this.textarea.setAttribute("aria-label",P):this.textarea.removeAttribute("aria-label")},ea.prototype.prepareSelection=function(){var P=this.cm,K=P.display,$=P.doc,re=hr(P);if(P.options.moveInputWithCursor){var le=li(P,$.sel.primary().head,"div"),Me=K.wrapper.getBoundingClientRect(),pt=K.lineDiv.getBoundingClientRect();re.teTop=Math.max(0,Math.min(K.wrapper.clientHeight-10,le.top+pt.top-Me.top)),re.teLeft=Math.max(0,Math.min(K.wrapper.clientWidth-10,le.left+pt.left-Me.left))}return re},ea.prototype.showSelection=function(P){var K=this.cm,$=K.display;_($.cursorDiv,P.cursors),_($.selectionDiv,P.selection),P.teTop!=null&&(this.wrapper.style.top=P.teTop+"px",this.wrapper.style.left=P.teLeft+"px")},ea.prototype.reset=function(P){if(this.contextMenuPending||this.composing)return;var K=this.cm;if(K.somethingSelected()){this.prevInput="";var $=K.getSelection();this.textarea.value=$,K.state.focused&&U(this.textarea),f&&c>=9&&(this.hasSelection=$)}else P||(this.prevInput=this.textarea.value="",f&&c>=9&&(this.hasSelection=null))},ea.prototype.getField=function(){return this.textarea},ea.prototype.supportsTouch=function(){return!1},ea.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!u||R()!=this.textarea))try{this.textarea.focus()}catch(P){}},ea.prototype.blur=function(){this.textarea.blur()},ea.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ea.prototype.receivedFocus=function(){this.slowPoll()},ea.prototype.slowPoll=function(){var P=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){P.poll(),P.cm.state.focused&&P.slowPoll()})},ea.prototype.fastPoll=function(){var P=!1,K=this;K.pollingFast=!0;function $(){var re=K.poll();!re&&!P?(P=!0,K.polling.set(60,$)):(K.pollingFast=!1,K.slowPoll())}K.polling.set(20,$)},ea.prototype.poll=function(){var P=this,K=this.cm,$=this.textarea,re=this.prevInput;if(this.contextMenuPending||!K.state.focused||nr($)&&!re&&!this.composing||K.isReadOnly()||K.options.disableInput||K.state.keySeq)return!1;var le=$.value;if(le==re&&!K.somethingSelected())return!1;if(f&&c>=9&&this.hasSelection===le||h&&/[\uf700-\uf7ff]/.test(le))return K.display.input.reset(),!1;if(K.doc.sel==K.display.selForContextMenu){var Me=le.charCodeAt(0);if(Me==8203&&!re&&(re="\u200B"),Me==8666)return this.reset(),this.cm.execCommand("undo")}for(var pt=0,jt=Math.min(re.length,le.length);pt<jt&&re.charCodeAt(pt)==le.charCodeAt(pt);)++pt;return co(K,function(){at(K,le.slice(pt),re.length-pt,null,P.composing?"*compose":null),le.length>1e3||le.indexOf(`
|
|
|
`)>-1?$.value=P.prevInput="":P.prevInput=le,P.composing&&(P.composing.range.clear(),P.composing.range=K.markText(P.composing.start,K.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ea.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ea.prototype.onKeyPress=function(){f&&c>=9&&(this.hasSelection=null),this.fastPoll()},ea.prototype.onContextMenu=function(P){var K=this,$=K.cm,re=$.display,le=K.textarea;K.contextMenuPending&&K.contextMenuPending();var Me=ri($,P),pt=re.scroller.scrollTop;if(!Me||n)return;var jt=$.options.resetSelectionOnContextMenu;jt&&$.doc.sel.contains(Me)==-1&&fa($,fs)($.doc,be(Me),de);var ar=le.style.cssText,cr=K.wrapper.style.cssText,bn=K.wrapper.offsetParent.getBoundingClientRect();K.wrapper.style.cssText="position: static",le.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(P.clientY-bn.top-5)+"px; left: "+(P.clientX-bn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(f?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Dn;o&&(Dn=window.scrollY),re.input.focus(),o&&window.scrollTo(null,Dn),re.input.reset(),$.somethingSelected()||(le.value=K.prevInput=" "),K.contextMenuPending=hi,re.selForContextMenu=$.doc.sel,clearTimeout(re.detectingSelectAll);function ui(){if(le.selectionStart!=null){var ia=$.somethingSelected(),xa="\u200B"+(ia?le.value:"");le.value="\u21DA",le.value=xa,K.prevInput=ia?"":"\u200B",le.selectionStart=1,le.selectionEnd=xa.length,re.selForContextMenu=$.doc.sel}}function hi(){if(K.contextMenuPending!=hi)return;if(K.contextMenuPending=!1,K.wrapper.style.cssText=cr,le.style.cssText=ar,f&&c<9&&re.scrollbars.setScrollTop(re.scroller.scrollTop=pt),le.selectionStart!=null){(!f||f&&c<9)&&ui();var ia=0,xa=function ba(){re.selForContextMenu==$.doc.sel&&le.selectionStart==0&&le.selectionEnd>0&&K.prevInput=="\u200B"?fa($,bl)($):ia++<10?re.detectingSelectAll=setTimeout(ba,500):(re.selForContextMenu=null,re.input.reset())};re.detectingSelectAll=setTimeout(xa,200)}}if(f&&c>=9&&ui(),E){Be(P);var Wi=function ia(){$e(window,"mouseup",ia),setTimeout(hi,20)};Le(window,"mouseup",Wi)}else setTimeout(hi,50)},ea.prototype.readOnlyChanged=function(P){P||this.reset(),this.textarea.disabled=P=="nocursor",this.textarea.readOnly=!!P},ea.prototype.setUneditable=function(){},ea.prototype.needsContentAttribute=!1;function oo(P,K){if(K=K?j(K):{},K.value=P.value,!K.tabindex&&P.tabIndex&&(K.tabindex=P.tabIndex),!K.placeholder&&P.placeholder&&(K.placeholder=P.placeholder),K.autofocus==null){var $=R();K.autofocus=$==P||P.getAttribute("autofocus")!=null&&$==document.body}function re(){P.value=jt.getValue()}var le;if(P.form&&(Le(P.form,"submit",re),!K.leaveSubmitMethodAlone)){var Me=P.form;le=Me.submit;try{var pt=Me.submit=function(){re(),Me.submit=le,Me.submit(),Me.submit=pt}}catch(ar){}}K.finishInit=function(ar){ar.save=re,ar.getTextArea=function(){return P},ar.toTextArea=function(){ar.toTextArea=isNaN,re(),P.parentNode.removeChild(ar.getWrapperElement()),P.style.display="",P.form&&($e(P.form,"submit",re),!K.leaveSubmitMethodAlone&&typeof P.form.submit=="function"&&(P.form.submit=le))}},P.style.display="none";var jt=Er(function(ar){return P.parentNode.insertBefore(ar,P.nextSibling)},K);return jt}function Ba(P){P.off=$e,P.on=Le,P.wheelEventPixels=Kr,P.Doc=$s,P.splitLines=$r,P.countColumn=W,P.findColumn=xe,P.isWordChar=Q,P.Pass=Z,P.signal=xt,P.Line=Ti,P.changeEnd=je,P.scrollbarModel=Ka,P.Pos=wt,P.cmpPos=rt,P.modes=st,P.mimeModes=Hr,P.resolveMode=Yn,P.getMode=Mi,P.modeExtensions=wn,P.extendMode=Rn,P.copyState=kt,P.startState=Re,P.innerMode=vt,P.commands=nu,P.keyMap=jo,P.keyName=Js,P.isModifierKey=Cs,P.lookupKey=cs,P.normalizeKeyMap=us,P.StringStream=Ke,P.SharedTextMarker=kl,P.TextMarker=il,P.LineWidget=Zs,P.e_preventDefault=Xe,P.e_stopPropagation=oe,P.e_stop=Be,P.addClass=k,P.contains=D,P.rmClass=b,P.keyNames=Cl}He(Er),Tr(Er);var Ro="iter insert remove copy getEditor constructor".split(" ");for(var Zo in $s.prototype)$s.prototype.hasOwnProperty(Zo)&&z(Ro,Zo)<0&&(Er.prototype[Zo]=function(P){return function(){return P.apply(this.doc,arguments)}}($s.prototype[Zo]));return Tt($s),Er.inputStyles={textarea:ea,contenteditable:nn},Er.defineMode=function(P){!Er.defaults.mode&&P!="null"&&(Er.defaults.mode=P),mn.apply(this,arguments)},Er.defineMIME=In,Er.defineMode("null",function(){return{token:function(K){return K.skipToEnd()}}}),Er.defineMIME("text/plain","null"),Er.defineExtension=function(P,K){Er.prototype[P]=K},Er.defineDocExtension=function(P,K){$s.prototype[P]=K},Er.fromTextArea=oo,Ba(Er),Er.version="5.58.2",Er})},Vy0f:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("iYpf"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},W2nI:function(H,F,d){var O=d("IwbS"),x=d("ProS"),C=d("bYtY"),A=["itemStyle","opacity"],S=["emphasis","itemStyle","opacity"],g=["lineStyle","opacity"],f=["emphasis","lineStyle","opacity"];function c(l,t){return l.getVisual("opacity")||l.getModel().get(t)}function o(l,t,a){var s=l.getGraphicEl(),u=c(l,t);a!=null&&(u==null&&(u=1),u*=a),s.downplay&&s.downplay(),s.traverse(function(h){h.type!=="group"&&h.setStyle("opacity",u)})}function r(l,t){var a=c(l,t),s=l.getGraphicEl();s.traverse(function(u){u.type!=="group"&&u.setStyle("opacity",a)}),s.highlight&&s.highlight()}var i=O.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(l,t){var a=t.extent;l.moveTo(t.x1,t.y1),l.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient==="vertical"?(l.lineTo(t.x2+a,t.y2),l.bezierCurveTo(t.cpx2+a,t.cpy2,t.cpx1+a,t.cpy1,t.x1+a,t.y1)):(l.lineTo(t.x2,t.y2+a),l.bezierCurveTo(t.cpx2,t.cpy2+a,t.cpx1,t.cpy1+a,t.x1,t.y1+a)),l.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),n=x.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(l,t,a){var s=this,u=l.getGraph(),h=this.group,p=l.layoutInfo,m=p.width,v=p.height,y=l.getData(),E=l.getData("edge"),T=l.get("orient");this._model=l,h.removeAll(),h.attr("position",[p.x,p.y]),u.eachEdge(function(b){var w=new i;w.dataIndex=b.dataIndex,w.seriesIndex=l.seriesIndex,w.dataType="edge";var _=b.getModel("lineStyle"),I=_.get("curveness"),L=b.node1.getLayout(),N=b.node1.getModel(),D=N.get("localX"),R=N.get("localY"),k=b.node2.getLayout(),M=b.node2.getModel(),U=M.get("localX"),B=M.get("localY"),j=b.getLayout(),W,V,z,J,Z,de,ie,ve;w.shape.extent=Math.max(1,j.dy),w.shape.orient=T,T==="vertical"?(W=(D!=null?D*m:L.x)+j.sy,V=(R!=null?R*v:L.y)+L.dy,z=(U!=null?U*m:k.x)+j.ty,J=B!=null?B*v:k.y,Z=W,de=V*(1-I)+J*I,ie=z,ve=V*I+J*(1-I)):(W=(D!=null?D*m:L.x)+L.dx,V=(R!=null?R*v:L.y)+j.sy,z=U!=null?U*m:k.x,J=(B!=null?B*v:k.y)+j.ty,Z=W*(1-I)+z*I,de=V,ie=W*I+z*(1-I),ve=J),w.setShape({x1:W,y1:V,x2:z,y2:J,cpx1:Z,cpy1:de,cpx2:ie,cpy2:ve}),w.setStyle(_.getItemStyle());switch(w.style.fill){case"source":w.style.fill=b.node1.getVisual("color");break;case"target":w.style.fill=b.node2.getVisual("color");break}O.setHoverStyle(w,b.getModel("emphasis.lineStyle").getItemStyle()),h.add(w),E.setItemGraphicEl(b.dataIndex,w)}),u.eachNode(function(b){var w=b.getLayout(),_=b.getModel(),I=_.get("localX"),L=_.get("localY"),N=_.getModel("label"),D=_.getModel("emphasis.label"),R=new O.Rect({shape:{x:I!=null?I*m:w.x,y:L!=null?L*v:w.y,width:w.dx,height:w.dy},style:_.getModel("itemStyle").getItemStyle()}),k=b.getModel("emphasis.itemStyle").getItemStyle();O.setLabelStyle(R.style,k,N,D,{labelFetcher:l,labelDataIndex:b.dataIndex,defaultText:b.id,isRectText:!0}),R.setStyle("fill",b.getVisual("color")),O.setHoverStyle(R,k),h.add(R),y.setItemGraphicEl(b.dataIndex,R),R.dataType="node"}),y.eachItemGraphicEl(function(b,w){var _=y.getItemModel(w);_.get("draggable")&&(b.drift=function(I,L){s._focusAdjacencyDisabled=!0,this.shape.x+=I,this.shape.y+=L,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:l.id,dataIndex:y.getRawIndex(w),localX:this.shape.x/m,localY:this.shape.y/v})},b.ondragend=function(){s._focusAdjacencyDisabled=!1},b.draggable=!0,b.cursor="move"),b.highlight=function(){this.trigger("emphasis")},b.downplay=function(){this.trigger("normal")},b.focusNodeAdjHandler&&b.off("mouseover",b.focusNodeAdjHandler),b.unfocusNodeAdjHandler&&b.off("mouseout",b.unfocusNodeAdjHandler),_.get("focusNodeAdjacency")&&(b.on("mouseover",b.focusNodeAdjHandler=function(){s._focusAdjacencyDisabled||(s._clearTimer(),a.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,dataIndex:b.dataIndex}))}),b.on("mouseout",b.unfocusNodeAdjHandler=function(){s._focusAdjacencyDisabled||s._dispatchUnfocus(a)}))}),E.eachItemGraphicEl(function(b,w){var _=E.getItemModel(w);b.focusNodeAdjHandler&&b.off("mouseover",b.focusNodeAdjHandler),b.unfocusNodeAdjHandler&&b.off("mouseout",b.unfocusNodeAdjHandler),_.get("focusNodeAdjacency")&&(b.on("mouseover",b.focusNodeAdjHandler=function(){s._focusAdjacencyDisabled||(s._clearTimer(),a.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,edgeDataIndex:b.dataIndex}))}),b.on("mouseout",b.unfocusNodeAdjHandler=function(){s._focusAdjacencyDisabled||s._dispatchUnfocus(a)}))}),!this._data&&l.get("animation")&&h.setClipPath(e(h.getBoundingRect(),l,function(){h.removeClipPath()})),this._data=l.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(l){var t=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){t._unfocusDelayTimer=null,l.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(l,t,a,s){var u=l.getData(),h=u.graph,p=s.dataIndex,m=u.getItemModel(p),v=s.edgeDataIndex;if(p==null&&v==null)return;var y=h.getNodeByIndex(p),E=h.getEdgeByIndex(v);if(h.eachNode(function(b){o(b,A,.1)}),h.eachEdge(function(b){o(b,g,.1)}),y){r(y,S);var T=m.get("focusNodeAdjacency");T==="outEdges"?C.each(y.outEdges,function(b){if(b.dataIndex<0)return;r(b,f),r(b.node2,S)}):T==="inEdges"?C.each(y.inEdges,function(b){if(b.dataIndex<0)return;r(b,f),r(b.node1,S)}):T==="allEdges"&&C.each(y.edges,function(b){if(b.dataIndex<0)return;r(b,f),b.node1!==y&&r(b.node1,S),b.node2!==y&&r(b.node2,S)})}E&&(r(E,f),r(E.node1,S),r(E.node2,S))},unfocusNodeAdjacency:function(l,t,a,s){var u=l.getGraph();u.eachNode(function(h){o(h,A)}),u.eachEdge(function(h){o(h,g)})}});function e(l,t,a){var s=new O.Rect({shape:{x:l.x-10,y:l.y-10,width:0,height:l.height+20}});return O.initProps(s,{shape:{width:l.width+20}},t,a),s}H.exports=n},W4dC:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=C.each,S=C.createHashMap,g=d("7DRL"),f=d("TIY9"),c=d("yS9w"),o=d("mFDi"),r={geoJSON:f,svg:c},i={load:function(t,a,s){var u=[],h=S(),p=S(),m,v=l(t);return A(v,function(y){var E=r[y.type].load(t,y,s);A(E.regions,function(b){var w=b.name;a&&a.hasOwnProperty(w)&&(b=b.cloneShallow(w=a[w])),u.push(b),h.set(w,b),p.set(w,b.center)});var T=E.boundingRect;T&&(m?m.union(T):m=T.clone())}),{regions:u,regionsMap:h,nameCoordMap:p,boundingRect:m||new o(0,0,0,0)}},makeGraphic:n("makeGraphic"),removeGraphic:n("removeGraphic")};function n(t){return function(a,s){var u=l(a),h=[];return A(u,function(p){var m=r[p.type][t];m&&h.push(m(a,p,s))}),h}}function e(t){}function l(t){var a=g.retrieveMap(t)||[];return a}H.exports=i},WGYa:function(H,F,d){var O=d("7yuC"),x=O.forceLayout,C=d("HF/U"),A=C.simpleLayout,S=d("lOQZ"),g=S.circularLayout,f=d("OELB"),c=f.linearMap,o=d("QBsz"),r=d("bYtY");function i(n){n.eachSeriesByType("graph",function(e){var l=e.coordinateSystem;if(l&&l.type!=="view")return;if(e.get("layout")==="force"){var t=e.preservedPoints||{},a=e.getGraph(),s=a.data,u=a.edgeData,h=e.getModel("force"),p=h.get("initLayout");e.preservedPoints?s.each(function(N){var D=s.getId(N);s.setItemLayout(N,t[D]||[NaN,NaN])}):!p||p==="none"?A(e):p==="circular"&&g(e,"value");var m=s.getDataExtent("value"),v=u.getDataExtent("value"),y=h.get("repulsion"),E=h.get("edgeLength");r.isArray(y)||(y=[y,y]),r.isArray(E)||(E=[E,E]),E=[E[1],E[0]];var T=s.mapArray("value",function(N,D){var R=s.getItemLayout(D),k=c(N,m,y);return isNaN(k)&&(k=(y[0]+y[1])/2),{w:k,rep:k,fixed:s.getItemModel(D).get("fixed"),p:!R||isNaN(R[0])||isNaN(R[1])?null:R}}),b=u.mapArray("value",function(N,D){var R=a.getEdgeByIndex(D),k=c(N,v,E);isNaN(k)&&(k=(E[0]+E[1])/2);var M=R.getModel();return{n1:T[R.node1.dataIndex],n2:T[R.node2.dataIndex],d:k,curveness:M.get("lineStyle.curveness")||0,ignoreForceLayout:M.get("ignoreForceLayout")}}),l=e.coordinateSystem,w=l.getBoundingRect(),_=x(T,b,{rect:w,gravity:h.get("gravity"),friction:h.get("friction")}),I=_.step;_.step=function(N){for(var D=0,R=T.length;D<R;D++)T[D].fixed&&o.copy(T[D].p,a.getNodeByIndex(D).getLayout());I(function(k,M,U){for(var B=0,j=k.length;B<j;B++)k[B].fixed||a.getNodeByIndex(B).setLayout(k[B].p),t[s.getId(B)]=k[B].p;for(var B=0,j=M.length;B<j;B++){var W=M[B],V=a.getEdgeByIndex(B),z=W.n1.p,J=W.n2.p,Z=V.getLayout();Z=Z?Z.slice():[],Z[0]=Z[0]||[],Z[1]=Z[1]||[],o.copy(Z[0],z),o.copy(Z[1],J),+W.curveness&&(Z[2]=[(z[0]+J[0])/2-(z[1]-J[1])*W.curveness,(z[1]+J[1])/2-(J[0]-z[0])*W.curveness]),V.setLayout(Z)}N&&N(U)})},e.forceLayout=_,e.preservedPoints=t,_.step()}else e.forceLayout=null})}H.exports=i},"WN+l":function(H,F,d){var O=d("bYtY"),x=d("IwbS");function C(S,g,f,c){var o=f.axis;if(o.scale.isBlank())return;var r=f.getModel("splitArea"),i=r.getModel("areaStyle"),n=i.get("color"),e=c.coordinateSystem.getRect(),l=o.getTicksCoords({tickModel:r,clamp:!0});if(!l.length)return;var t=n.length,a=S.__splitAreaColors,s=O.createHashMap(),u=0;if(a)for(var h=0;h<l.length;h++){var p=a.get(l[h].tickValue);if(p!=null){u=(p+(t-1)*h)%t;break}}var m=o.toGlobalCoord(l[0].coord),v=i.getAreaStyle();n=O.isArray(n)?n:[n];for(var h=1;h<l.length;h++){var y=o.toGlobalCoord(l[h].coord),E,T,b,w;o.isHorizontal()?(E=m,T=e.y,b=y-E,w=e.height,m=E+b):(E=e.x,T=m,b=e.width,w=y-T,m=T+w);var _=l[h-1].tickValue;_!=null&&s.set(_,u),g.add(new x.Rect({anid:_!=null?"area_"+_:null,shape:{x:E,y:T,width:b,height:w},style:O.defaults({fill:n[u]},v),silent:!0})),u=(u+1)%t}S.__splitAreaColors=s}function A(S){S.__splitAreaColors=null}F.rectCoordAxisBuildSplitArea=C,F.rectCoordAxisHandleRemove=A},WXVj:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("Bqw1")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="MinusSquareOutlined";var c=A.forwardRef(f);F.default=c},WYAk:function(H,F,d){(function(O,x){H.exports=F=x(d("Ib8C"))})(this,function(O){(function(){var x=O,C=x.lib,A=C.Base,S=x.enc,g=S.Utf8,f=x.algo,c=f.HMAC=A.extend({init:function(r,i){r=this._hasher=new r.init,typeof i=="string"&&(i=g.parse(i));var n=r.blockSize,e=n*4;i.sigBytes>e&&(i=r.finalize(i)),i.clamp();for(var l=this._oKey=i.clone(),t=this._iKey=i.clone(),a=l.words,s=t.words,u=0;u<n;u++)a[u]^=1549556828,s[u]^=909522486;l.sigBytes=t.sigBytes=e,this.reset()},reset:function(){var r=this._hasher;r.reset(),r.update(this._iKey)},update:function(r){return this._hasher.update(r),this},finalize:function(r){var i=this._hasher,n=i.finalize(r);i.reset();var e=i.finalize(this._oKey.clone().concat(n));return e}})})()})},Wqna:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=C.isObject,S=C.each,g=C.map,f=C.indexOf,c=C.retrieve,o=d("+TT/"),r=o.getLayoutRect,i=d("aX7z"),n=i.createScaleByModel,e=i.ifAxisCrossZero,l=i.niceScaleExtent,t=i.estimateLabelUnionRect,a=d("y+lR"),s=d("7AJT"),u=d("IDmD"),h=d("7hqr"),p=h.getStackedDimension;d("jtI2");function m(N,D,R){return N.getCoordSysModel()===D}function v(N,D,R){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(N,D,R),this.model=N}var y=v.prototype;y.type="grid",y.axisPointerEnabled=!0,y.getRect=function(){return this._rect},y.update=function(N,D){var R=this._axesMap;this._updateScale(N,this.model),S(R.x,function(M){l(M.scale,M.model)}),S(R.y,function(M){l(M.scale,M.model)});var k={};S(R.x,function(M){E(R,"y",M,k)}),S(R.y,function(M){E(R,"x",M,k)}),this.resize(this.model,D)};function E(N,D,R,k){R.getAxesOnZeroOf=function(){return U?[U]:[]};var M=N[D],U,B=R.model,j=B.get("axisLine.onZero"),W=B.get("axisLine.onZeroAxisIndex");if(!j)return;if(W!=null)T(M[W])&&(U=M[W]);else for(var V in M)if(M.hasOwnProperty(V)&&T(M[V])&&!k[z(M[V])]){U=M[V];break}U&&(k[z(U)]=!0);function z(J){return J.dim+"_"+J.index}}function T(N){return N&&N.type!=="category"&&N.type!=="time"&&e(N)}y.resize=function(N,D,R){var k=r(N.getBoxLayoutParams(),{width:D.getWidth(),height:D.getHeight()});this._rect=k;var M=this._axesList;U(),!R&&N.get("containLabel")&&(S(M,function(B){if(!B.model.get("axisLabel.inside")){var j=t(B);if(j){var W=B.isHorizontal()?"height":"width",V=B.model.get("axisLabel.margin");k[W]-=j[W]+V,B.position==="top"?k.y+=j.height+V:B.position==="left"&&(k.x+=j.width+V)}}}),U());function U(){S(M,function(B){var j=B.isHorizontal(),W=j?[0,k.width]:[0,k.height],V=B.inverse?1:0;B.setExtent(W[V],W[1-V]),b(B,j?k.x:k.y)})}},y.getAxis=function(N,D){var R=this._axesMap[N];if(R!=null){if(D==null){for(var k in R)if(R.hasOwnProperty(k))return R[k]}return R[D]}},y.getAxes=function(){return this._axesList.slice()},y.getCartesian=function(N,D){if(N!=null&&D!=null){var R="x"+N+"y"+D;return this._coordsMap[R]}A(N)&&(D=N.yAxisIndex,N=N.xAxisIndex);for(var k=0,M=this._coordsList;k<M.length;k++)if(M[k].getAxis("x").index===N||M[k].getAxis("y").index===D)return M[k]},y.getCartesians=function(){return this._coordsList.slice()},y.convertToPixel=function(N,D,R){var k=this._findConvertTarget(N,D);return k.cartesian?k.cartesian.dataToPoint(R):k.axis?k.axis.toGlobalCoord(k.axis.dataToCoord(R)):null},y.convertFromPixel=function(N,D,R){var k=this._findConvertTarget(N,D);return k.cartesian?k.cartesian.pointToData(R):k.axis?k.axis.coordToData(k.axis.toLocalCoord(R)):null},y._findConvertTarget=function(N,D){var R=D.seriesModel,k=D.xAxisModel||R&&R.getReferringComponents("xAxis")[0],M=D.yAxisModel||R&&R.getReferringComponents("yAxis")[0],U=D.gridModel,B=this._coordsList,j,W;if(R)j=R.coordinateSystem,f(B,j)<0&&(j=null);else if(k&&M)j=this.getCartesian(k.componentIndex,M.componentIndex);else if(k)W=this.getAxis("x",k.componentIndex);else if(M)W=this.getAxis("y",M.componentIndex);else if(U){var V=U.coordinateSystem;V===this&&(j=this._coordsList[0])}return{cartesian:j,axis:W}},y.containPoint=function(N){var D=this._coordsList[0];if(D)return D.containPoint(N)},y._initCartesian=function(N,D,R){var k={left:!1,right:!1,top:!1,bottom:!1},M={x:{},y:{}},U={x:0,y:0};if(D.eachComponent("xAxis",B("x"),this),D.eachComponent("yAxis",B("y"),this),!U.x||!U.y){this._axesMap={},this._axesList=[];return}this._axesMap=M,S(M.x,function(j,W){S(M.y,function(V,z){var J="x"+W+"y"+z,Z=new a(J);Z.grid=this,Z.model=N,this._coordsMap[J]=Z,this._coordsList.push(Z),Z.addAxis(j),Z.addAxis(V)},this)},this);function B(j){return function(W,V){if(!m(W,N,D))return;var z=W.get("position");j==="x"?z!=="top"&&z!=="bottom"&&(z=k.bottom?"top":"bottom"):z!=="left"&&z!=="right"&&(z=k.left?"right":"left"),k[z]=!0;var J=new s(j,n(W),[0,0],W.get("type"),z),Z=J.type==="category";J.onBand=Z&&W.get("boundaryGap"),J.inverse=W.get("inverse"),W.axis=J,J.model=W,J.grid=this,J.index=V,this._axesList.push(J),M[j][V]=J,U[j]++}}},y._updateScale=function(N,D){S(this._axesList,function(k){k.scale.setExtent(Infinity,-Infinity)}),N.eachSeries(function(k){if(I(k)){var M=_(k,N),U=M[0],B=M[1];if(!m(U,D,N)||!m(B,D,N))return;var j=this.getCartesian(U.componentIndex,B.componentIndex),W=k.getData(),V=j.getAxis("x"),z=j.getAxis("y");W.type==="list"&&(R(W,V,k),R(W,z,k))}},this);function R(k,M,U){S(k.mapDimension(M.dim,!0),function(B){M.scale.unionExtentFromData(k,p(k,B))})}},y.getTooltipAxes=function(N){var D=[],R=[];return S(this.getCartesians(),function(k){var M=N!=null&&N!=="auto"?k.getAxis(N):k.getBaseAxis(),U=k.getOtherAxis(M);f(D,M)<0&&D.push(M),f(R,U)<0&&R.push(U)}),{baseAxes:D,otherAxes:R}};function b(N,D){var R=N.getExtent(),k=R[0]+R[1];N.toGlobalCoord=N.dim==="x"?function(M){return M+D}:function(M){return k-M+D},N.toLocalCoord=N.dim==="x"?function(M){return M-D}:function(M){return k-M+D}}var w=["xAxis","yAxis"];function _(N,D){return g(w,function(R){var k=N.getReferringComponents(R)[0];return k})}function I(N){return N.get("coordinateSystem")==="cartesian2d"}v.create=function(N,D){var R=[];return N.eachComponent("grid",function(k,M){var U=new v(k,N,D);U.name="grid_"+M,U.resize(k,D,!0),k.coordinateSystem=U,R.push(U)}),N.eachSeries(function(k){if(!I(k))return;var M=_(k,N),U=M[0],B=M[1],j=U.getCoordSysModel(),W=j.coordinateSystem;k.coordinateSystem=W.getCartesian(U.componentIndex,B.componentIndex)}),R},v.dimensions=v.prototype.dimensions=a.prototype.dimensions,u.register("cartesian2d",v);var L=v;H.exports=L},"X+im":function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("KQeH")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="DownloadOutlined";var c=A.forwardRef(f);F.default=c},"X2/X":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},XAae:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("hwYd"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},XOKv:function(H,F,d){d("OXB0"),d("SA4+")},Xmg4:function(H,F,d){var O=d("bYtY"),x=d("LPTA"),C=x.devicePixelRatio,A=d("K2GJ"),S=d("3C/r");function g(){return!1}function f(r,i,n){var e=O.createCanvas(),l=i.getWidth(),t=i.getHeight(),a=e.style;return a&&(a.position="absolute",a.left=0,a.top=0,a.width=l+"px",a.height=t+"px",e.setAttribute("data-zr-dom-id",r)),e.width=l*n,e.height=t*n,e}var c=function(i,n,e){var l;e=e||C,typeof i=="string"?l=f(i,n,e):O.isObject(i)&&(l=i,i=l.id),this.id=i,this.dom=l;var t=l.style;t&&(l.onselectstart=g,t["-webkit-user-select"]="none",t["user-select"]="none",t["-webkit-touch-callout"]="none",t["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",t.padding=0,t.margin=0,t["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=n,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=e};c.prototype={constructor:c,__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 i=this.dpr;this.domBack=f("back-"+this.id,this.painter,i),this.ctxBack=this.domBack.getContext("2d"),i!==1&&this.ctxBack.scale(i,i)},resize:function(i,n){var e=this.dpr,l=this.dom,t=l.style,a=this.domBack;t&&(t.width=i+"px",t.height=n+"px"),l.width=i*e,l.height=n*e,a&&(a.width=i*e,a.height=n*e,e!==1&&this.ctxBack.scale(e,e))},clear:function(i,n){var e=this.dom,l=this.ctx,t=e.width,a=e.height,n=n||this.clearColor,s=this.motionBlur&&!i,u=this.lastFrameAlpha,h=this.dpr;if(s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,t/h,a/h)),l.clearRect(0,0,t,a),n&&n!=="transparent"){var p;n.colorStops?(p=n.__canvasGradient||A.getGradient(l,n,{x:0,y:0,width:t,height:a}),n.__canvasGradient=p):n.image&&(p=S.prototype.getCanvasPattern.call(n,l)),l.save(),l.fillStyle=p||n,l.fillRect(0,0,t,a),l.restore()}if(s){var m=this.domBack;l.save(),l.globalAlpha=u,l.drawImage(m,0,0,t,a),l.restore()}}};var o=c;H.exports=o},Xnb7:function(H,F,d){var O=d("1RvN"),x=new O(50);function C(f){if(typeof f=="string"){var c=x.get(f);return c&&c.image}else return f}function A(f,c,o,r,i){if(f)if(typeof f=="string"){if(c&&c.__zrImageSrc===f||!o)return c;var n=x.get(f),e={hostEl:o,cb:r,cbPayload:i};return n?(c=n.image,!g(c)&&n.pending.push(e)):(c=new Image,c.onload=c.onerror=S,x.put(f,c.__cachedImgObj={image:c,pending:[e]}),c.src=c.__zrImageSrc=f),c}else return f;else return c}function S(){var f=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var c=0;c<f.pending.length;c++){var o=f.pending[c],r=o.cb;r&&r(this,o.cbPayload),o.hostEl.dirty()}f.pending.length=0}function g(f){return f&&f.width&&f.height}F.findExistImage=C,F.createOrUpdateImage=A,F.isImageReady=g},XpcN:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("bYtY"),S=d("oVpE"),g=S.createSymbol,f=d("IwbS"),c=d("eRkO"),o=c.makeBackground,r=d("+TT/"),i=A.curry,n=A.each,e=f.Group,l=C.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(h,p,m){var v=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!h.get("show",!0))return;var y=h.get("align"),E=h.get("orient");(!y||y==="auto")&&(y=h.get("left")==="right"&&E==="vertical"?"right":"left");var T=h.get("selector",!0),b=h.get("selectorPosition",!0);T&&(!b||b==="auto")&&(b=E==="horizontal"?"end":"start"),this.renderInner(y,h,p,m,T,E,b);var w=h.getBoxLayoutParams(),_={width:m.getWidth(),height:m.getHeight()},I=h.get("padding"),L=r.getLayoutRect(w,_,I),N=this.layoutInner(h,y,L,v,T,b),D=r.getLayoutRect(A.defaults({width:N.width,height:N.height},w),_,I);this.group.attr("position",[D.x-N.x,D.y-N.y]),this.group.add(this._backgroundEl=o(N,h))},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(h,p,m,v,y,E,T){var b=this.getContentGroup(),w=A.createHashMap(),_=p.get("selectedMode"),I=[];m.eachRawSeries(function(L){!L.get("legendHoverLink")&&I.push(L.id)}),n(p.getData(),function(L,N){var D=L.get("name");if(!this.newlineDisabled&&(D===""||D===`
|
|
|
`)){b.add(new e({newline:!0}));return}var R=m.getSeriesByName(D)[0];if(w.get(D))return;if(R){var k=R.getData(),M=k.getVisual("color"),U=k.getVisual("borderColor");typeof M=="function"&&(M=M(R.getDataParams(0))),typeof U=="function"&&(U=U(R.getDataParams(0)));var B=k.getVisual("legendSymbol")||"roundRect",j=k.getVisual("symbol"),W=this._createItem(D,N,L,p,B,j,h,M,U,_);W.on("click",i(a,D,null,v,I)).on("mouseover",i(s,R.name,null,v,I)).on("mouseout",i(u,R.name,null,v,I)),w.set(D,!0)}else m.eachRawSeries(function(V){if(w.get(D))return;if(V.legendVisualProvider){var z=V.legendVisualProvider;if(!z.containName(D))return;var J=z.indexOfName(D),Z=z.getItemVisual(J,"color"),de=z.getItemVisual(J,"borderColor"),ie="roundRect",ve=this._createItem(D,N,L,p,ie,null,h,Z,de,_);ve.on("click",i(a,null,D,v,I)).on("mouseover",i(s,null,D,v,I)).on("mouseout",i(u,null,D,v,I)),w.set(D,!0)}},this)},this),y&&this._createSelector(y,p,v,E,T)},_createSelector:function(h,p,m,v,y){var E=this.getSelectorGroup();n(h,function(b){T(b)});function T(b){var w=b.type,_=new f.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){m.dispatchAction({type:w==="all"?"legendAllSelect":"legendInverseSelect"})}});E.add(_);var I=p.getModel("selectorLabel"),L=p.getModel("emphasis.selectorLabel");f.setLabelStyle(_.style,_.hoverStyle={},I,L,{defaultText:b.title,isRectText:!1}),f.setHoverStyle(_)}},_createItem:function(h,p,m,v,y,E,T,b,w,_){var I=v.get("itemWidth"),L=v.get("itemHeight"),N=v.get("inactiveColor"),D=v.get("inactiveBorderColor"),R=v.get("symbolKeepAspect"),k=v.getModel("itemStyle"),M=v.isSelected(h),U=new e,B=m.getModel("textStyle"),j=m.get("icon"),W=m.getModel("tooltip"),V=W.parentModel;y=j||y;var z=g(y,0,0,I,L,M?b:N,R==null?!0:R);if(U.add(t(z,y,k,w,D,M)),!j&&E&&(E!==y||E==="none")){var J=L*.8;E==="none"&&(E="circle");var Z=g(E,(I-J)/2,(L-J)/2,J,J,M?b:N,R==null?!0:R);U.add(t(Z,E,k,w,D,M))}var de=T==="left"?I+5:-5,ie=T,ve=v.get("formatter"),xe=h;typeof ve=="string"&&ve?xe=ve.replace("{name}",h!=null?h:""):typeof ve=="function"&&(xe=ve(h)),U.add(new f.Text({style:f.setTextStyle({},B,{text:xe,x:de,y:L/2,textFill:M?B.getTextColor():N,textAlign:ie,textVerticalAlign:"middle"})}));var _e=new f.Rect({shape:U.getBoundingRect(),invisible:!0,tooltip:W.get("show")?A.extend({content:h,formatter:V.get("formatter",!0)||function(){return h},formatterParams:{componentType:"legend",legendIndex:v.componentIndex,name:h,$vars:["name"]}},W.option):null});return U.add(_e),U.eachChild(function(Ue){Ue.silent=!0}),_e.silent=!_,this.getContentGroup().add(U),f.setHoverStyle(U),U.__legendDataIndex=p,U},layoutInner:function(h,p,m,v,y,E){var T=this.getContentGroup(),b=this.getSelectorGroup();r.box(h.get("orient"),T,h.get("itemGap"),m.width,m.height);var w=T.getBoundingRect(),_=[-w.x,-w.y];if(y){r.box("horizontal",b,h.get("selectorItemGap",!0));var I=b.getBoundingRect(),L=[-I.x,-I.y],N=h.get("selectorButtonGap",!0),D=h.getOrient().index,R=D===0?"width":"height",k=D===0?"height":"width",M=D===0?"y":"x";E==="end"?L[D]+=w[R]+N:_[D]+=I[R]+N,L[1-D]+=w[k]/2-I[k]/2,b.attr("position",L),T.attr("position",_);var U={x:0,y:0};return U[R]=w[R]+N+I[R],U[k]=Math.max(w[k],I[k]),U[M]=Math.min(0,I[M]+L[1-D]),U}else return T.attr("position",_),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function t(h,p,m,v,y,E){var T;return p!=="line"&&p.indexOf("empty")<0?(T=m.getItemStyle(),h.style.stroke=v,E||(T.stroke=y)):T=m.getItemStyle(["borderWidth","borderColor"]),h.setStyle(T)}function a(h,p,m,v){u(h,p,m,v),m.dispatchAction({type:"legendToggleSelect",name:h!=null?h:p}),s(h,p,m,v)}function s(h,p,m,v){var y=m.getZr().storage.getDisplayList()[0];y&&y.useHoverLayer||m.dispatchAction({type:"highlight",seriesName:h,name:p,excludeSeriesId:v})}function u(h,p,m,v){var y=m.getZr().storage.getDisplayList()[0];y&&y.useHoverLayer||m.dispatchAction({type:"downplay",seriesName:h,name:p,excludeSeriesId:v})}H.exports=l},XuBP:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},XxSj:function(H,F,d){var O=d("bYtY"),x=d("Qe9p"),C=d("OELB"),A=C.linearMap,S=O.each,g=O.isObject,f=-1,c=function(E){var T=E.mappingMethod,b=E.type,w=this.option=O.clone(E);this.type=b,this.mappingMethod=T,this._normalizeData=m[T];var _=o[b];this.applyVisual=_.applyVisual,this.getColorMapper=_.getColorMapper,this._doMap=_._doMap[T],T==="piecewise"?(n(w),r(w)):T==="category"?w.categories?i(w):n(w,!0):(O.assert(T!=="linear"||w.dataExtent),n(w))};c.prototype={constructor:c,mapValueToVisual:function(E){var T=this._normalizeData(E);return this._doMap(T,E)},getNormalizer:function(){return O.bind(this._normalizeData,this)}};var o=c.visualHandlers={color:{applyVisual:t("color"),getColorMapper:function(){var E=this.option;return O.bind(E.mappingMethod==="category"?function(T,b){return!b&&(T=this._normalizeData(T)),a.call(this,T)}:function(T,b,w){var _=!!w;return!b&&(T=this._normalizeData(T)),w=x.fastLerp(T,E.parsedVisual,w),_?w:x.stringify(w,"rgba")},this)},_doMap:{linear:function(E){return x.stringify(x.fastLerp(E,this.option.parsedVisual),"rgba")},category:a,piecewise:function(E,T){var b=h.call(this,T);return b==null&&(b=x.stringify(x.fastLerp(E,this.option.parsedVisual),"rgba")),b},fixed:s}},colorHue:e(function(E,T){return x.modifyHSL(E,T)}),colorSaturation:e(function(E,T){return x.modifyHSL(E,null,T)}),colorLightness:e(function(E,T){return x.modifyHSL(E,null,null,T)}),colorAlpha:e(function(E,T){return x.modifyAlpha(E,T)}),opacity:{applyVisual:t("opacity"),_doMap:u([0,1])},liftZ:{applyVisual:t("liftZ"),_doMap:{linear:s,category:s,piecewise:s,fixed:s}},symbol:{applyVisual:function(E,T,b){var w=this.mapValueToVisual(E);if(O.isString(w))b("symbol",w);else if(g(w))for(var _ in w)w.hasOwnProperty(_)&&b(_,w[_])},_doMap:{linear:l,category:a,piecewise:function(E,T){var b=h.call(this,T);return b==null&&(b=l.call(this,E)),b},fixed:s}},symbolSize:{applyVisual:t("symbolSize"),_doMap:u([0,1])}};function r(E){var T=E.pieceList;E.hasSpecialVisual=!1,O.each(T,function(b,w){b.originIndex=w,b.visual!=null&&(E.hasSpecialVisual=!0)})}function i(E){var T=E.categories,b=E.visual,w=E.categoryMap={};if(S(T,function(L,N){w[L]=N}),!O.isArray(b)){var _=[];O.isObject(b)?S(b,function(L,N){var D=w[N];_[D!=null?D:f]=L}):_[f]=b,b=p(E,_)}for(var I=T.length-1;I>=0;I--)b[I]==null&&(delete w[T[I]],T.pop())}function n(E,T){var b=E.visual,w=[];O.isObject(b)?S(b,function(I){w.push(I)}):b!=null&&w.push(b);var _={color:1,symbol:1};!T&&w.length===1&&!_.hasOwnProperty(E.type)&&(w[1]=w[0]),p(E,w)}function e(E){return{applyVisual:function(T,b,w){T=this.mapValueToVisual(T),w("color",E(b("color"),T))},_doMap:u([0,1])}}function l(E){var T=this.option.visual;return T[Math.round(A(E,[0,1],[0,T.length-1],!0))]||{}}function t(E){return function(T,b,w){w(E,this.mapValueToVisual(T))}}function a(E){var T=this.option.visual;return T[this.option.loop&&E!==f?E%T.length:E]}function s(){return this.option.visual[0]}function u(E){return{linear:function(T){return A(T,E,this.option.visual,!0)},category:a,piecewise:function(T,b){var w=h.call(this,b);return w==null&&(w=A(T,E,this.option.visual,!0)),w},fixed:s}}function h(E){var T=this.option,b=T.pieceList;if(T.hasSpecialVisual){var w=c.findPieceIndex(E,b),_=b[w];if(_&&_.visual)return _.visual[this.type]}}function p(E,T){return E.visual=T,E.type==="color"&&(E.parsedVisual=O.map(T,function(b){return x.parse(b)})),T}var m={linear:function(E){return A(E,this.option.dataExtent,[0,1],!0)},piecewise:function(E){var T=this.option.pieceList,b=c.findPieceIndex(E,T,!0);if(b!=null)return A(b,[0,T.length-1],[0,1],!0)},category:function(E){var T=this.option.categories?this.option.categoryMap[E]:E;return T==null?f:T},fixed:O.noop};c.listVisualTypes=function(){var E=[];return O.each(o,function(T,b){E.push(b)}),E},c.addVisualHandler=function(E,T){o[E]=T},c.isValidType=function(E){return o.hasOwnProperty(E)},c.eachVisual=function(E,T,b){O.isObject(E)?O.each(E,T,b):T.call(b,E)},c.mapVisual=function(E,T,b){var w,_=O.isArray(E)?[]:O.isObject(E)?{}:(w=!0,null);return c.eachVisual(E,function(I,L){var N=T.call(b,I,L);w?_=N:_[L]=N}),_},c.retrieveVisuals=function(E){var T={},b;return E&&S(o,function(w,_){E.hasOwnProperty(_)&&(T[_]=E[_],b=!0)}),b?T:null},c.prepareVisualTypes=function(E){if(g(E)){var T=[];S(E,function(b,w){T.push(w)}),E=T}else if(O.isArray(E))E=E.slice();else return[];return E.sort(function(b,w){return w==="color"&&b!=="color"&&b.indexOf("color")===0?1:-1}),E},c.dependsOn=function(E,T){return T==="color"?!!(E&&E.indexOf(T)===0):E===T},c.findPieceIndex=function(E,T,b){for(var w,_=Infinity,I=0,L=T.length;I<L;I++){var N=T[I].value;if(N!=null){if(N===E||typeof N=="string"&&N===E+"")return I;b&&M(N,I)}}for(var I=0,L=T.length;I<L;I++){var D=T[I],R=D.interval,k=D.close;if(R){if(R[0]===-Infinity){if(v(k[1],E,R[1]))return I}else if(R[1]===Infinity){if(v(k[0],R[0],E))return I}else if(v(k[0],R[0],E)&&v(k[1],E,R[1]))return I;b&&M(R[0],I),b&&M(R[1],I)}}if(b)return E===Infinity?T.length-1:E===-Infinity?0:w;function M(U,B){var j=Math.abs(U-E);j<_&&(_=j,w=B)}};function v(E,T,b){return E?T<=b:T<b}var y=c;H.exports=y},XzQk:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("KpQ+"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},Y1PL:function(H,F,d){"use strict";d.r(F),d.d(F,"ResizableTextArea",function(){return y});var O=d("wx14"),x=d("1OyB"),C=d("vuIU"),A=d("Ji7U"),S=d("LK+K"),g=d("q1tI"),f=d("VTBJ"),c=d("rePB"),o=d("t23M");function r(b,w){var _=Object(f.a)({},b);return Array.isArray(w)&&w.forEach(function(I){delete _[I]}),_}var i=d("TSYQ"),n=d.n(i),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"],t={},a;function s(b){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_=b.getAttribute("id")||b.getAttribute("data-reactid")||b.getAttribute("name");if(w&&t[_])return t[_];var I=window.getComputedStyle(b),L=I.getPropertyValue("box-sizing")||I.getPropertyValue("-moz-box-sizing")||I.getPropertyValue("-webkit-box-sizing"),N=parseFloat(I.getPropertyValue("padding-bottom"))+parseFloat(I.getPropertyValue("padding-top")),D=parseFloat(I.getPropertyValue("border-bottom-width"))+parseFloat(I.getPropertyValue("border-top-width")),R=l.map(function(M){return"".concat(M,":").concat(I.getPropertyValue(M))}).join(";"),k={sizingStyle:R,paddingSize:N,borderSize:D,boxSizing:L};return w&&_&&(t[_]=k),k}function u(b){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;a||(a=document.createElement("textarea"),a.setAttribute("tab-index","-1"),a.setAttribute("aria-hidden","true"),document.body.appendChild(a)),b.getAttribute("wrap")?a.setAttribute("wrap",b.getAttribute("wrap")):a.removeAttribute("wrap");var L=s(b,w),N=L.paddingSize,D=L.borderSize,R=L.boxSizing,k=L.sizingStyle;a.setAttribute("style","".concat(k,";").concat(e)),a.value=b.value||b.placeholder||"";var M=Number.MIN_SAFE_INTEGER,U=Number.MAX_SAFE_INTEGER,B=a.scrollHeight,j;if(R==="border-box"?B+=D:R==="content-box"&&(B-=N),_!==null||I!==null){a.value=" ";var W=a.scrollHeight-N;_!==null&&(M=W*_,R==="border-box"&&(M=M+N+D),B=Math.max(M,B)),I!==null&&(U=W*I,R==="border-box"&&(U=U+N+D),j=B>U?"":"hidden",B=Math.min(U,B))}return{height:B,minHeight:M,maxHeight:U,overflowY:j,resize:"none"}}var h=d("Gytx"),p=d.n(h),m;(function(b){b[b.NONE=0]="NONE",b[b.RESIZING=1]="RESIZING",b[b.RESIZED=2]="RESIZED"})(m||(m={}));var v=function(b){Object(A.a)(_,b);var w=Object(S.a)(_);function _(I){var L;return Object(x.a)(this,_),L=w.call(this,I),L.nextFrameActionId=void 0,L.resizeFrameId=void 0,L.textArea=void 0,L.saveTextArea=function(N){L.textArea=N},L.handleResize=function(N){var D=L.state.resizeStatus,R=L.props,k=R.autoSize,M=R.onResize;if(D!==m.NONE)return;typeof M=="function"&&M(N),k&&L.resizeOnNextFrame()},L.resizeOnNextFrame=function(){cancelAnimationFrame(L.nextFrameActionId),L.nextFrameActionId=requestAnimationFrame(L.resizeTextarea)},L.resizeTextarea=function(){var N=L.props.autoSize;if(!N||!L.textArea)return;var D=N.minRows,R=N.maxRows,k=u(L.textArea,!1,D,R);L.setState({textareaStyles:k,resizeStatus:m.RESIZING},function(){cancelAnimationFrame(L.resizeFrameId),L.resizeFrameId=requestAnimationFrame(function(){L.setState({resizeStatus:m.RESIZED},function(){L.resizeFrameId=requestAnimationFrame(function(){L.setState({resizeStatus:m.NONE}),L.fixFirefoxAutoScroll()})})})})},L.renderTextArea=function(){var N=L.props,D=N.prefixCls,R=D===void 0?"rc-textarea":D,k=N.autoSize,M=N.onResize,U=N.className,B=N.disabled,j=L.state,W=j.textareaStyles,V=j.resizeStatus,z=r(L.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),J=n()(R,U,Object(c.a)({},"".concat(R,"-disabled"),B));"value"in z&&(z.value=z.value||"");var Z=Object(f.a)(Object(f.a)(Object(f.a)({},L.props.style),W),V===m.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return g.createElement(o.a,{onResize:L.handleResize,disabled:!(k||M)},g.createElement("textarea",Object(O.a)({},z,{className:J,style:Z,ref:L.saveTextArea})))},L.state={textareaStyles:{},resizeStatus:m.NONE},L}return Object(C.a)(_,[{key:"componentDidUpdate",value:function(L){(L.value!==this.props.value||!p()(L.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 L=this.textArea.selectionStart,N=this.textArea.selectionEnd;this.textArea.setSelectionRange(L,N)}}catch(D){}}},{key:"render",value:function(){return this.renderTextArea()}}]),_}(g.Component),y=v,E=function(b){Object(A.a)(_,b);var w=Object(S.a)(_);function _(I){var L;Object(x.a)(this,_),L=w.call(this,I),L.resizableTextArea=void 0,L.focus=function(){L.resizableTextArea.textArea.focus()},L.saveTextArea=function(D){L.resizableTextArea=D},L.handleChange=function(D){var R=L.props.onChange;L.setValue(D.target.value,function(){L.resizableTextArea.resizeTextarea()}),R&&R(D)},L.handleKeyDown=function(D){var R=L.props,k=R.onPressEnter,M=R.onKeyDown;D.keyCode===13&&k&&k(D),M&&M(D)};var N=typeof I.value=="undefined"||I.value===null?I.defaultValue:I.value;return L.state={value:N},L}return Object(C.a)(_,[{key:"setValue",value:function(L,N){"value"in this.props||this.setState({value:L},N)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return g.createElement(y,Object(O.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(L){return"value"in L?{value:L.value}:null}}]),_}(g.Component),T=F.default=E},YH21:function(H,F,d){var O=d("H6uX");F.Dispatcher=O;var x=d("ItGF"),C=d("Ze12"),A=C.isCanvasEl,S=C.transformCoordWithViewport,g=typeof window!="undefined"&&!!window.addEventListener,f=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,c=[];function o(u,h,p,m){return p=p||{},m||!x.canvasSupported?r(u,h,p):x.browser.firefox&&h.layerX!=null&&h.layerX!==h.offsetX?(p.zrX=h.layerX,p.zrY=h.layerY):h.offsetX!=null?(p.zrX=h.offsetX,p.zrY=h.offsetY):r(u,h,p),p}function r(u,h,p){if(x.domSupported&&u.getBoundingClientRect){var m=h.clientX,v=h.clientY;if(A(u)){var y=u.getBoundingClientRect();p.zrX=m-y.left,p.zrY=v-y.top;return}else if(S(c,u,m,v)){p.zrX=c[0],p.zrY=c[1];return}}p.zrX=p.zrY=0}function i(u){return u||window.event}function n(u,h,p){if(h=i(h),h.zrX!=null)return h;var m=h.type,v=m&&m.indexOf("touch")>=0;if(!v)o(u,h,h,p),h.zrDelta=h.wheelDelta?h.wheelDelta/120:-(h.detail||0)/3;else{var y=m!=="touchend"?h.targetTouches[0]:h.changedTouches[0];y&&o(u,y,h,p)}var E=h.button;return h.which==null&&E!==void 0&&f.test(h.type)&&(h.which=E&1?1:E&2?3:E&4?2:0),h}function e(u,h,p,m){g?u.addEventListener(h,p,m):u.attachEvent("on"+h,p)}function l(u,h,p,m){g?u.removeEventListener(h,p,m):u.detachEvent("on"+h,p)}var t=g?function(u){u.preventDefault(),u.stopPropagation(),u.cancelBubble=!0}:function(u){u.returnValue=!1,u.cancelBubble=!0};function a(u){return u.which===2||u.which===3}function s(u){return u.which>1}F.clientToLocal=o,F.getNativeEvent=i,F.normalizeEvent=n,F.addEventListener=e,F.removeEventListener=l,F.stop=t,F.isMiddleOrRightButtonOnMouseUpDown=a,F.notLeftMouse=s},YJ9k:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;function O(S,g){if(!(S instanceof g))throw new TypeError("Cannot call a class as a function")}function x(S,g){for(var f=0;f<g.length;f++){var c=g[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(S,c.key,c)}}function C(S,g,f){return g&&x(S.prototype,g),f&&x(S,f),S}var A=function(){function S(){O(this,S),this._listeners=new Map}return C(S,[{key:"addEventListener",value:function(f,c){this._listeners.has(f)||this._listeners.set(f,new Set),this._listeners.get(f).add(c)}},{key:"removeEventListener",value:function(f,c){this._listeners.has(f)&&this._listeners.get(f).delete(c)}},{key:"dispatchEvent",value:function(f){var c=this;return this._listeners.has(f.type)?(this._listeners.get(f.type).forEach(function(o){return o.call(c,f)}),!f.defaultPrevented):!0}}]),S}();F.default=A},YJCA:function(H,F,d){"use strict";d.d(F,"a",function(){return Y}),d.d(F,"b",function(){return Ce});var O=d("wx14"),x=d("ODXe"),C=d("vpQ4"),A=d("1OyB"),S=d("vuIU"),g=d("md7G"),f=d("foSv"),c=d("Ji7U"),o=d("JX7q"),r=d("rePB"),i=d("q1tI"),n=d.n(i),e=d("17x9"),l=d.n(e),t=d("i8i4"),a=d.n(t),s=d("QLaP"),u=d.n(s),h=d("KQm4"),p=function(){function Ie(){Object(A.a)(this,Ie),Object(r.a)(this,"refs",{})}return Object(S.a)(Ie,[{key:"add",value:function(Ae,Te){this.refs[Ae]||(this.refs[Ae]=[]),this.refs[Ae].push(Te)}},{key:"remove",value:function(Ae,Te){var Ge=this.getIndex(Ae,Te);Ge!==-1&&this.refs[Ae].splice(Ge,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var Ae=this;return this.refs[this.active.collection].find(function(Te){var Ge=Te.node;return Ge.sortableInfo.index==Ae.active.index})}},{key:"getIndex",value:function(Ae,Te){return this.refs[Ae].indexOf(Te)}},{key:"getOrderedRefs",value:function(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[Ae].sort(m)}}]),Ie}();function m(Ie,ce){var Ae=Ie.node.sortableInfo.index,Te=ce.node.sortableInfo.index;return Ae-Te}function v(Ie,ce,Ae){return Ie=Ie.slice(),Ie.splice(Ae<0?Ie.length+Ae:Ae,0,Ie.splice(ce,1)[0]),Ie}function y(Ie,ce){return Object.keys(Ie).reduce(function(Ae,Te){return ce.indexOf(Te)===-1&&(Ae[Te]=Ie[Te]),Ae},{})}var E={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},T=function(){if(typeof window=="undefined"||typeof document=="undefined")return"";var Ie=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],ce=(Array.prototype.slice.call(Ie).join("").match(/-(moz|webkit|ms)-/)||Ie.OLink===""&&["","o"])[1];switch(ce){case"ms":return"ms";default:return ce&&ce.length?ce[0].toUpperCase()+ce.substr(1):""}}();function b(Ie,ce){Object.keys(ce).forEach(function(Ae){Ie.style[Ae]=ce[Ae]})}function w(Ie,ce){Ie.style["".concat(T,"Transform")]=ce==null?"":"translate3d(".concat(ce.x,"px,").concat(ce.y,"px,0)")}function _(Ie,ce){Ie.style["".concat(T,"TransitionDuration")]=ce==null?"":"".concat(ce,"ms")}function I(Ie,ce){for(;Ie;){if(ce(Ie))return Ie;Ie=Ie.parentNode}return null}function L(Ie,ce,Ae){return Math.max(Ie,Math.min(Ae,ce))}function N(Ie){return Ie.substr(-2)==="px"?parseFloat(Ie):0}function D(Ie){var ce=window.getComputedStyle(Ie);return{bottom:N(ce.marginBottom),left:N(ce.marginLeft),right:N(ce.marginRight),top:N(ce.marginTop)}}function R(Ie,ce){var Ae=ce.displayName||ce.name;return Ae?"".concat(Ie,"(").concat(Ae,")"):Ie}function k(Ie,ce){var Ae=Ie.getBoundingClientRect();return{top:Ae.top+ce.top,left:Ae.left+ce.left}}function M(Ie){return Ie.touches&&Ie.touches.length?{x:Ie.touches[0].pageX,y:Ie.touches[0].pageY}:Ie.changedTouches&&Ie.changedTouches.length?{x:Ie.changedTouches[0].pageX,y:Ie.changedTouches[0].pageY}:{x:Ie.pageX,y:Ie.pageY}}function U(Ie){return Ie.touches&&Ie.touches.length||Ie.changedTouches&&Ie.changedTouches.length}function B(Ie,ce){var Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!Ie)return;var Te={left:Ae.left+Ie.offsetLeft,top:Ae.top+Ie.offsetTop};return Ie.parentNode===ce?Te:B(Ie.parentNode,ce,Te)}function j(Ie,ce,Ae){return Ie<Ae&&Ie>ce?Ie-1:Ie>Ae&&Ie<ce?Ie+1:Ie}function W(Ie){var ce=Ie.lockOffset,Ae=Ie.width,Te=Ie.height,Ge=ce,gt=ce,qe="px";if(typeof ce=="string"){var Le=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(ce);u()(Le!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',ce),Ge=parseFloat(ce),gt=parseFloat(ce),qe=Le[1]}return u()(isFinite(Ge)&&isFinite(gt),"lockOffset value should be a finite. Given %s",ce),qe==="%"&&(Ge=Ge*Ae/100,gt=gt*Te/100),{x:Ge,y:gt}}function V(Ie){var ce=Ie.height,Ae=Ie.width,Te=Ie.lockOffset,Ge=Array.isArray(Te)?Te:[Te,Te];u()(Ge.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",Te);var gt=Object(x.a)(Ge,2),qe=gt[0],Le=gt[1];return[W({height:ce,lockOffset:qe,width:Ae}),W({height:ce,lockOffset:Le,width:Ae})]}function z(Ie){var ce=window.getComputedStyle(Ie),Ae=/(auto|scroll)/,Te=["overflow","overflowX","overflowY"];return Te.find(function(Ge){return Ae.test(ce[Ge])})}function J(Ie){return Ie instanceof HTMLElement?z(Ie)?Ie:J(Ie.parentNode):null}function Z(Ie){var ce=window.getComputedStyle(Ie);return ce.display==="grid"?{x:N(ce.gridColumnGap),y:N(ce.gridRowGap)}:{x:0,y:0}}var de={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},ie={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function ve(Ie){var ce="input, textarea, select, canvas, [contenteditable]",Ae=Ie.querySelectorAll(ce),Te=Ie.cloneNode(!0),Ge=Object(h.a)(Te.querySelectorAll(ce));return Ge.forEach(function(gt,qe){if(gt.type!=="file"&&(gt.value=Ae[qe].value),gt.type==="radio"&>.name&&(gt.name="__sortableClone__".concat(gt.name)),gt.tagName===ie.Canvas&&Ae[qe].width>0&&Ae[qe].height>0){var Le=gt.getContext("2d");Le.drawImage(Ae[qe],0,0)}}),Te}function xe(Ie){var ce,Ae,Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return Ae=ce=function(Ge){Object(c.a)(gt,Ge);function gt(){return Object(A.a)(this,gt),Object(g.a)(this,Object(f.a)(gt).apply(this,arguments))}return Object(S.a)(gt,[{key:"componentDidMount",value:function(){var Le=Object(t.findDOMNode)(this);Le.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return u()(Te.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 Le=Te.withRef?"wrappedInstance":null;return Object(i.createElement)(Ie,Object(O.a)({ref:Le},this.props))}}]),gt}(i.Component),Object(r.a)(ce,"displayName",R("sortableHandle",Ie)),Ae}function _e(Ie){return Ie.sortableHandle!=null}var Ue=function(){function Ie(ce,Ae){Object(A.a)(this,Ie),this.container=ce,this.onScrollCallback=Ae}return Object(S.a)(Ie,[{key:"clear",value:function(){if(this.interval==null)return;clearInterval(this.interval),this.interval=null}},{key:"update",value:function(Ae){var Te=this,Ge=Ae.translate,gt=Ae.minTranslate,qe=Ae.maxTranslate,Le=Ae.width,Ot=Ae.height,$e={x:0,y:0},xt={x:1,y:1},Ht={x:10,y:10},tr=this.container,Mt=tr.scrollTop,Tt=tr.scrollLeft,Xe=tr.scrollHeight,oe=tr.scrollWidth,X=tr.clientHeight,Be=tr.clientWidth,Ee=Mt===0,ee=Xe-Mt-X===0,lt=Tt===0,Ct=oe-Tt-Be===0;Ge.y>=qe.y-Ot/2&&!ee?($e.y=1,xt.y=Ht.y*Math.abs((qe.y-Ot/2-Ge.y)/Ot)):Ge.x>=qe.x-Le/2&&!Ct?($e.x=1,xt.x=Ht.x*Math.abs((qe.x-Le/2-Ge.x)/Le)):Ge.y<=gt.y+Ot/2&&!Ee?($e.y=-1,xt.y=Ht.y*Math.abs((Ge.y-Ot/2-gt.y)/Ot)):Ge.x<=gt.x+Le/2&&!lt&&($e.x=-1,xt.x=Ht.x*Math.abs((Ge.x-Le/2-gt.x)/Le)),this.interval&&(this.clear(),this.isAutoScrolling=!1),($e.x!==0||$e.y!==0)&&(this.interval=setInterval(function(){Te.isAutoScrolling=!0;var dt={left:xt.x*$e.x,top:xt.y*$e.y};Te.container.scrollTop+=dt.top,Te.container.scrollLeft+=dt.left,Te.onScrollCallback(dt)},5))}}]),Ie}();function fe(Ie){var ce=Ie.node;return{height:ce.offsetHeight,width:ce.offsetWidth}}function ke(Ie){var ce=[ie.Input,ie.Textarea,ie.Select,ie.Option,ie.Button];return ce.indexOf(Ie.target.tagName)!==-1?!0:!!I(Ie.target,function(Ae){return Ae.contentEditable==="true"})}var se={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},te={lift:[de.SPACE],drop:[de.SPACE],cancel:[de.ESC],up:[de.UP,de.LEFT],down:[de.DOWN,de.RIGHT]},Ve={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:fe,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:te,shouldCancelStart:ke,transitionDuration:300,useWindowAsScrollContainer:!1},ae=Object.keys(se);function Q(Ie){u()(!(Ie.distance&&Ie.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 G(Ie,ce){try{var Ae=Ie()}catch(Te){return ce(!0,Te)}return Ae&&Ae.then?Ae.then(ce.bind(null,!1),ce.bind(null,!0)):ce(!1,value)}function Y(Ie){var ce,Ae,Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return Ae=ce=function(Ge){Object(c.a)(gt,Ge);function gt(qe){var Le;return Object(A.a)(this,gt),Le=Object(g.a)(this,Object(f.a)(gt).call(this,qe)),Object(r.a)(Object(o.a)(Object(o.a)(Le)),"state",{}),Object(r.a)(Object(o.a)(Object(o.a)(Le)),"handleStart",function(Ot){var $e=Le.props,xt=$e.distance,Ht=$e.shouldCancelStart;if(Ot.button===2||Ht(Ot))return;Le.touched=!0,Le.position=M(Ot);var tr=I(Ot.target,function(Be){return Be.sortableInfo!=null});if(tr&&tr.sortableInfo&&Le.nodeIsChild(tr)&&!Le.state.sorting){var Mt=Le.props.useDragHandle,Tt=tr.sortableInfo,Xe=Tt.index,oe=Tt.collection,X=Tt.disabled;if(X)return;if(Mt&&!I(Ot.target,_e))return;Le.manager.active={collection:oe,index:Xe},!U(Ot)&&Ot.target.tagName===ie.Anchor&&Ot.preventDefault(),xt||(Le.props.pressDelay===0?Le.handlePress(Ot):Le.pressTimer=setTimeout(function(){return Le.handlePress(Ot)},Le.props.pressDelay))}}),Object(r.a)(Object(o.a)(Object(o.a)(Le)),"nodeIsChild",function(Ot){return Ot.sortableInfo.manager===Le.manager}),Object(r.a)(Object(o.a)(Object(o.a)(Le)),"handleMove",function(Ot){var $e=Le.props,xt=$e.distance,Ht=$e.pressThreshold;if(!Le.state.sorting&&Le.touched&&!Le._awaitingUpdateBeforeSortStart){var tr=M(Ot),Mt={x:Le.position.x-tr.x,y:Le.position.y-tr.y},Tt=Math.abs(Mt.x)+Math.abs(Mt.y);Le.delta=Mt,!xt&&(!Ht||Tt>=Ht)?(clearTimeout(Le.cancelTimer),Le.cancelTimer=setTimeout(Le.cancel,0)):xt&&Tt>=xt&&Le.manager.isActive()&&Le.handlePress(Ot)}}),Object(r.a)(Object(o.a)(Object(o.a)(Le)),"handleEnd",function(){Le.touched=!1,Le.cancel()}),Object(r.a)(Object(o.a)(Object(o.a)(Le)),"cancel",function(){var Ot=Le.props.distance,$e=Le.state.sorting;$e||(Ot||clearTimeout(Le.pressTimer),Le.manager.active=null)}),Object(r.a)(Object(o.a)(Object(o.a)(Le)),"handlePress",function(Ot){try{var $e=Le.manager.getActive(),xt=function(){if($e){var Ht=function(){var ir=ee.sortableInfo.index,$r=D(ee),nr=Z(Le.container),lr=Le.scrollContainer.getBoundingClientRect(),zt=Tt({index:ir,node:ee,collection:lt});if(Le.node=ee,Le.margin=$r,Le.gridGap=nr,Le.width=zt.width,Le.height=zt.height,Le.marginOffset={x:Le.margin.left+Le.margin.right+Le.gridGap.x,y:Math.max(Le.margin.top,Le.margin.bottom,Le.gridGap.y)},Le.boundingClientRect=ee.getBoundingClientRect(),Le.containerBoundingRect=lr,Le.index=ir,Le.newIndex=ir,Le.axis={x:Mt.indexOf("x")>=0,y:Mt.indexOf("y")>=0},Le.offsetEdge=B(ee,Le.container),Ct?Le.initialOffset=M(Object(C.a)({},Ot,{pageX:Le.boundingClientRect.left,pageY:Le.boundingClientRect.top})):Le.initialOffset=M(Ot),Le.initialScroll={left:Le.scrollContainer.scrollLeft,top:Le.scrollContainer.scrollTop},Le.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},Le.helper=Le.helperContainer.appendChild(ve(ee)),b(Le.helper,{boxSizing:"border-box",height:"".concat(Le.height,"px"),left:"".concat(Le.boundingClientRect.left-$r.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(Le.boundingClientRect.top-$r.top,"px"),width:"".concat(Le.width,"px")}),Ct&&Le.helper.focus(),oe&&(Le.sortableGhost=ee,b(ee,{opacity:0,visibility:"hidden"})),Le.minTranslate={},Le.maxTranslate={},Ct){var Ut=Ee?{top:0,left:0,width:Le.contentWindow.innerWidth,height:Le.contentWindow.innerHeight}:Le.containerBoundingRect,st=Ut.top,Hr=Ut.left,mn=Ut.width,In=Ut.height,Yn=st+In,Mi=Hr+mn;Le.axis.x&&(Le.minTranslate.x=Hr-Le.boundingClientRect.left,Le.maxTranslate.x=Mi-(Le.boundingClientRect.left+Le.width)),Le.axis.y&&(Le.minTranslate.y=st-Le.boundingClientRect.top,Le.maxTranslate.y=Yn-(Le.boundingClientRect.top+Le.height))}else Le.axis.x&&(Le.minTranslate.x=(Ee?0:lr.left)-Le.boundingClientRect.left-Le.width/2,Le.maxTranslate.x=(Ee?Le.contentWindow.innerWidth:lr.left+lr.width)-Le.boundingClientRect.left-Le.width/2),Le.axis.y&&(Le.minTranslate.y=(Ee?0:lr.top)-Le.boundingClientRect.top-Le.height/2,Le.maxTranslate.y=(Ee?Le.contentWindow.innerHeight:lr.top+lr.height)-Le.boundingClientRect.top-Le.height/2);Xe&&Xe.split(" ").forEach(function(wn){return Le.helper.classList.add(wn)}),Le.listenerNode=Ot.touches?ee:Le.contentWindow,Ct?(Le.listenerNode.addEventListener("wheel",Le.handleKeyEnd,!0),Le.listenerNode.addEventListener("mousedown",Le.handleKeyEnd,!0),Le.listenerNode.addEventListener("keydown",Le.handleKeyDown)):(E.move.forEach(function(wn){return Le.listenerNode.addEventListener(wn,Le.handleSortMove,!1)}),E.end.forEach(function(wn){return Le.listenerNode.addEventListener(wn,Le.handleSortEnd,!1)})),Le.setState({sorting:!0,sortingIndex:ir}),Be&&Be({node:ee,index:ir,collection:lt,isKeySorting:Ct,nodes:Le.manager.getOrderedRefs(),helper:Le.helper},Ot),Ct&&Le.keyMove(0)},tr=Le.props,Mt=tr.axis,Tt=tr.getHelperDimensions,Xe=tr.helperClass,oe=tr.hideSortableGhost,X=tr.updateBeforeSortStart,Be=tr.onSortStart,Ee=tr.useWindowAsScrollContainer,ee=$e.node,lt=$e.collection,Ct=Le.manager.isKeySorting,dt=function(){if(typeof X=="function"){Le._awaitingUpdateBeforeSortStart=!0;var _t=G(function(){var ir=ee.sortableInfo.index;return Promise.resolve(X({collection:lt,index:ir,node:ee,isKeySorting:Ct},Ot)).then(function(){})},function(ir,$r){if(Le._awaitingUpdateBeforeSortStart=!1,ir)throw $r;return $r});if(_t&&_t.then)return _t.then(function(){})}}();return dt&&dt.then?dt.then(Ht):Ht(dt)}}();return Promise.resolve(xt&&xt.then?xt.then(function(){}):void 0)}catch(Ht){return Promise.reject(Ht)}}),Object(r.a)(Object(o.a)(Object(o.a)(Le)),"handleSortMove",function(Ot){var $e=Le.props.onSortMove;typeof Ot.preventDefault=="function"&&Ot.preventDefault(),Le.updateHelperPosition(Ot),Le.animateNodes(),Le.autoscroll(),$e&&$e(Ot)}),Object(r.a)(Object(o.a)(Object(o.a)(Le)),"handleSortEnd",function(Ot){var $e=Le.props,xt=$e.hideSortableGhost,Ht=$e.onSortEnd,tr=Le.manager,Mt=tr.active.collection,Tt=tr.isKeySorting,Xe=Le.manager.getOrderedRefs();Le.listenerNode&&(Tt?(Le.listenerNode.removeEventListener("wheel",Le.handleKeyEnd,!0),Le.listenerNode.removeEventListener("mousedown",Le.handleKeyEnd,!0),Le.listenerNode.removeEventListener("keydown",Le.handleKeyDown)):(E.move.forEach(function(ee){return Le.listenerNode.removeEventListener(ee,Le.handleSortMove)}),E.end.forEach(function(ee){return Le.listenerNode.removeEventListener(ee,Le.handleSortEnd)}))),Le.helper.parentNode.removeChild(Le.helper),xt&&Le.sortableGhost&&b(Le.sortableGhost,{opacity:"",visibility:""});for(var oe=0,X=Xe.length;oe<X;oe++){var Be=Xe[oe],Ee=Be.node;Be.edgeOffset=null,Be.boundingClientRect=null,w(Ee,null),_(Ee,null),Be.translate=null}Le.autoScroller.clear(),Le.manager.active=null,Le.manager.isKeySorting=!1,Le.setState({sorting:!1,sortingIndex:null}),typeof Ht=="function"&&Ht({collection:Mt,newIndex:Le.newIndex,oldIndex:Le.index,isKeySorting:Tt,nodes:Xe},Ot),Le.touched=!1}),Object(r.a)(Object(o.a)(Object(o.a)(Le)),"autoscroll",function(){var Ot=Le.props.disableAutoscroll,$e=Le.manager.isKeySorting;if(Ot){Le.autoScroller.clear();return}if($e){var xt=Object(C.a)({},Le.translate),Ht=0,tr=0;Le.axis.x&&(xt.x=Math.min(Le.maxTranslate.x,Math.max(Le.minTranslate.x,Le.translate.x)),Ht=Le.translate.x-xt.x),Le.axis.y&&(xt.y=Math.min(Le.maxTranslate.y,Math.max(Le.minTranslate.y,Le.translate.y)),tr=Le.translate.y-xt.y),Le.translate=xt,w(Le.helper,Le.translate),Le.scrollContainer.scrollLeft+=Ht,Le.scrollContainer.scrollTop+=tr;return}Le.autoScroller.update({height:Le.height,maxTranslate:Le.maxTranslate,minTranslate:Le.minTranslate,translate:Le.translate,width:Le.width})}),Object(r.a)(Object(o.a)(Object(o.a)(Le)),"onAutoScroll",function(Ot){Le.translate.x+=Ot.left,Le.translate.y+=Ot.top,Le.animateNodes()}),Object(r.a)(Object(o.a)(Object(o.a)(Le)),"handleKeyDown",function(Ot){var $e=Ot.keyCode,xt=Le.props,Ht=xt.shouldCancelStart,tr=xt.keyCodes,Mt=tr===void 0?{}:tr,Tt=Object(C.a)({},te,Mt);if(Le.manager.active&&!Le.manager.isKeySorting||!Le.manager.active&&(!Tt.lift.includes($e)||Ht(Ot)||!Le.isValidSortingTarget(Ot)))return;Ot.stopPropagation(),Ot.preventDefault(),Tt.lift.includes($e)&&!Le.manager.active?Le.keyLift(Ot):Tt.drop.includes($e)&&Le.manager.active?Le.keyDrop(Ot):Tt.cancel.includes($e)?(Le.newIndex=Le.manager.active.index,Le.keyDrop(Ot)):Tt.up.includes($e)?Le.keyMove(-1):Tt.down.includes($e)&&Le.keyMove(1)}),Object(r.a)(Object(o.a)(Object(o.a)(Le)),"keyLift",function(Ot){var $e=Ot.target,xt=I($e,function(Tt){return Tt.sortableInfo!=null}),Ht=xt.sortableInfo,tr=Ht.index,Mt=Ht.collection;Le.initialFocusedNode=$e,Le.manager.isKeySorting=!0,Le.manager.active={index:tr,collection:Mt},Le.handlePress(Ot)}),Object(r.a)(Object(o.a)(Object(o.a)(Le)),"keyMove",function(Ot){var $e=Le.manager.getOrderedRefs(),xt=$e[$e.length-1].node.sortableInfo.index,Ht=Le.newIndex+Ot,tr=Le.newIndex;if(Ht<0||Ht>xt)return;Le.prevIndex=tr,Le.newIndex=Ht;var Mt=j(Le.newIndex,Le.prevIndex,Le.index),Tt=$e.find(function(Ct){var dt=Ct.node;return dt.sortableInfo.index===Mt}),Xe=Tt.node,oe=Le.containerScrollDelta,X=Tt.boundingClientRect||k(Xe,oe),Be=Tt.translate||{x:0,y:0},Ee={top:X.top+Be.y-oe.top,left:X.left+Be.x-oe.left},ee=tr<Ht,lt={x:ee&&Le.axis.x?Xe.offsetWidth-Le.width:0,y:ee&&Le.axis.y?Xe.offsetHeight-Le.height:0};Le.handleSortMove({pageX:Ee.left+lt.x,pageY:Ee.top+lt.y,ignoreTransition:Ot===0})}),Object(r.a)(Object(o.a)(Object(o.a)(Le)),"keyDrop",function(Ot){Le.handleSortEnd(Ot),Le.initialFocusedNode&&Le.initialFocusedNode.focus()}),Object(r.a)(Object(o.a)(Object(o.a)(Le)),"handleKeyEnd",function(Ot){Le.manager.active&&Le.keyDrop(Ot)}),Object(r.a)(Object(o.a)(Object(o.a)(Le)),"isValidSortingTarget",function(Ot){var $e=Le.props.useDragHandle,xt=Ot.target,Ht=I(xt,function(tr){return tr.sortableInfo!=null});return Ht&&Ht.sortableInfo&&!Ht.sortableInfo.disabled&&($e?_e(xt):xt.sortableInfo)}),Q(qe),Le.manager=new p,Le.events={end:Le.handleEnd,move:Le.handleMove,start:Le.handleStart},Le}return Object(S.a)(gt,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var Le=this,Ot=this.props.useWindowAsScrollContainer,$e=this.getContainer();Promise.resolve($e).then(function(xt){Le.container=xt,Le.document=Le.container.ownerDocument||document;var Ht=Le.props.contentWindow||Le.document.defaultView||window;Le.contentWindow=typeof Ht=="function"?Ht():Ht,Le.scrollContainer=Ot?Le.document.scrollingElement||Le.document.documentElement:J(Le.container)||Le.container,Le.autoScroller=new Ue(Le.scrollContainer,Le.onAutoScroll),Object.keys(Le.events).forEach(function(tr){return E[tr].forEach(function(Mt){return Le.container.addEventListener(Mt,Le.events[tr],!1)})}),Le.container.addEventListener("keydown",Le.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var Le=this;if(this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),!this.container)return;Object.keys(this.events).forEach(function(Ot){return E[Ot].forEach(function($e){return Le.container.removeEventListener($e,Le.events[Ot])})}),this.container.removeEventListener("keydown",this.handleKeyDown)}},{key:"updateHelperPosition",value:function(Le){var Ot=this.props,$e=Ot.lockAxis,xt=Ot.lockOffset,Ht=Ot.lockToContainerEdges,tr=Ot.transitionDuration,Mt=Ot.keyboardSortingTransitionDuration,Tt=Mt===void 0?tr:Mt,Xe=this.manager.isKeySorting,oe=Le.ignoreTransition,X=M(Le),Be={x:X.x-this.initialOffset.x,y:X.y-this.initialOffset.y};if(Be.y-=window.pageYOffset-this.initialWindowScroll.top,Be.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=Be,Ht){var Ee=V({height:this.height,lockOffset:xt,width:this.width}),ee=Object(x.a)(Ee,2),lt=ee[0],Ct=ee[1],dt={x:this.width/2-lt.x,y:this.height/2-lt.y},_t={x:this.width/2-Ct.x,y:this.height/2-Ct.y};Be.x=L(this.minTranslate.x+dt.x,this.maxTranslate.x-_t.x,Be.x),Be.y=L(this.minTranslate.y+dt.y,this.maxTranslate.y-_t.y,Be.y)}$e==="x"?Be.y=0:$e==="y"&&(Be.x=0),Xe&&Tt&&!oe&&_(this.helper,Tt),w(this.helper,Be)}},{key:"animateNodes",value:function(){var Le=this.props,Ot=Le.transitionDuration,$e=Le.hideSortableGhost,xt=Le.onSortOver,Ht=this.containerScrollDelta,tr=this.windowScrollDelta,Mt=this.manager.getOrderedRefs(),Tt={left:this.offsetEdge.left+this.translate.x+Ht.left,top:this.offsetEdge.top+this.translate.y+Ht.top},Xe=this.manager.isKeySorting,oe=this.newIndex;this.newIndex=null;for(var X=0,Be=Mt.length;X<Be;X++){var Ee=Mt[X].node,ee=Ee.sortableInfo.index,lt=Ee.offsetWidth,Ct=Ee.offsetHeight,dt={height:this.height>Ct?Ct/2:this.height/2,width:this.width>lt?lt/2:this.width/2},_t=Xe&&ee>this.index&&ee<=oe,ir=Xe&&ee<this.index&&ee>=oe,$r={x:0,y:0},nr=Mt[X].edgeOffset;nr||(nr=B(Ee,this.container),Mt[X].edgeOffset=nr,Xe&&(Mt[X].boundingClientRect=k(Ee,Ht)));var lr=X<Mt.length-1&&Mt[X+1],zt=X>0&&Mt[X-1];if(lr&&!lr.edgeOffset&&(lr.edgeOffset=B(lr.node,this.container),Xe&&(lr.boundingClientRect=k(lr.node,Ht))),ee===this.index){$e&&(this.sortableGhost=Ee,b(Ee,{opacity:0,visibility:"hidden"}));continue}Ot&&_(Ee,Ot),this.axis.x?this.axis.y?ir||ee<this.index&&(Tt.left+tr.left-dt.width<=nr.left&&Tt.top+tr.top<=nr.top+dt.height||Tt.top+tr.top+dt.height<=nr.top)?($r.x=this.width+this.marginOffset.x,nr.left+$r.x>this.containerBoundingRect.width-dt.width&&(lr&&($r.x=lr.edgeOffset.left-nr.left,$r.y=lr.edgeOffset.top-nr.top)),this.newIndex===null&&(this.newIndex=ee)):(_t||ee>this.index&&(Tt.left+tr.left+dt.width>=nr.left&&Tt.top+tr.top+dt.height>=nr.top||Tt.top+tr.top+dt.height>=nr.top+Ct))&&($r.x=-(this.width+this.marginOffset.x),nr.left+$r.x<this.containerBoundingRect.left+dt.width&&(zt&&($r.x=zt.edgeOffset.left-nr.left,$r.y=zt.edgeOffset.top-nr.top)),this.newIndex=ee):_t||ee>this.index&&Tt.left+tr.left+dt.width>=nr.left?($r.x=-(this.width+this.marginOffset.x),this.newIndex=ee):(ir||ee<this.index&&Tt.left+tr.left<=nr.left+dt.width)&&($r.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=ee)):this.axis.y&&(_t||ee>this.index&&Tt.top+tr.top+dt.height>=nr.top?($r.y=-(this.height+this.marginOffset.y),this.newIndex=ee):(ir||ee<this.index&&Tt.top+tr.top<=nr.top+dt.height)&&($r.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=ee))),w(Ee,$r),Mt[X].translate=$r}this.newIndex==null&&(this.newIndex=this.index),Xe&&(this.newIndex=oe);var Ut=Xe?this.prevIndex:oe;xt&&this.newIndex!==Ut&&xt({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:Ut,isKeySorting:Xe,nodes:Mt,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return u()(Te.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 Le=this.props.getContainer;return typeof Le!="function"?Object(t.findDOMNode)(this):Le(Te.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var Le=Te.withRef?"wrappedInstance":null;return Object(i.createElement)(Ie,Object(O.a)({ref:Le},y(this.props,ae)))}},{key:"helperContainer",get:function(){var Le=this.props.helperContainer;return typeof Le=="function"?Le():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var Le=this.props.useWindowAsScrollContainer;return Le?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),gt}(i.Component),Object(r.a)(ce,"displayName",R("sortableList",Ie)),Object(r.a)(ce,"defaultProps",Ve),Object(r.a)(ce,"propTypes",se),Object(r.a)(ce,"childContextTypes",{manager:l.a.object.isRequired}),Ae}var me={index:l.a.number.isRequired,collection:l.a.oneOfType([l.a.number,l.a.string]),disabled:l.a.bool},ue=Object.keys(me);function Ce(Ie){var ce,Ae,Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return Ae=ce=function(Ge){Object(c.a)(gt,Ge);function gt(){return Object(A.a)(this,gt),Object(g.a)(this,Object(f.a)(gt).apply(this,arguments))}return Object(S.a)(gt,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(Le){this.node&&(Le.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),Le.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),Le.collection!==this.props.collection&&(this.unregister(Le.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var Le=this.props,Ot=Le.collection,$e=Le.disabled,xt=Le.index,Ht=Object(t.findDOMNode)(this);Ht.sortableInfo={collection:Ot,disabled:$e,index:xt,manager:this.context.manager},this.node=Ht,this.ref={node:Ht},this.context.manager.add(Ot,this.ref)}},{key:"unregister",value:function(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(Le,this.ref)}},{key:"getWrappedInstance",value:function(){return u()(Te.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 Le=Te.withRef?"wrappedInstance":null;return Object(i.createElement)(Ie,Object(O.a)({ref:Le},y(this.props,ue)))}}]),gt}(i.Component),Object(r.a)(ce,"displayName",R("sortableElement",Ie)),Object(r.a)(ce,"contextTypes",{manager:l.a.object.isRequired}),Object(r.a)(ce,"propTypes",me),Object(r.a)(ce,"defaultProps",{collection:0}),Ae}},YNAk:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("QyFq")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="CaretDownFilled";var c=A.forwardRef(f);F.default=c},YNf1:function(H,F,d){var O=d("IwbS"),x=d("6Ic6"),C=.3,A=x.extend({type:"parallel",init:function(){this._dataGroup=new O.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(n,e,l,t){var a=this._dataGroup,s=n.getData(),u=this._data,h=n.coordinateSystem,p=h.dimensions,m=c(n);s.diff(u).add(v).update(y).remove(E).execute();function v(b){var w=f(s,a,b,p,h);o(w,s,b,m)}function y(b,w){var _=u.getItemGraphicEl(w),I=g(s,b,p,h);s.setItemGraphicEl(b,_);var L=t&&t.animation===!1?null:n;O.updateProps(_,{shape:{points:I}},L,b),o(_,s,b,m)}function E(b){var w=u.getItemGraphicEl(b);a.remove(w)}if(!this._initialized){this._initialized=!0;var T=S(h,n,function(){setTimeout(function(){a.removeClipPath()})});a.setClipPath(T)}this._data=s},incrementalPrepareRender:function(n,e,l){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(n,e,l){for(var t=e.getData(),a=e.coordinateSystem,s=a.dimensions,u=c(e),h=n.start;h<n.end;h++){var p=f(t,this._dataGroup,h,s,a);p.incremental=!0,o(p,t,h,u)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function S(n,e,l){var t=n.model,a=n.getRect(),s=new O.Rect({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),u=t.get("layout")==="horizontal"?"width":"height";return s.setShape(u,0),O.initProps(s,{shape:{width:a.width,height:a.height}},e,l),s}function g(n,e,l,t){for(var a=[],s=0;s<l.length;s++){var u=l[s],h=n.get(n.mapDimension(u),e);r(h,t.getAxis(u).type)||a.push(t.dataToPoint(h,u))}return a}function f(n,e,l,t,a){var s=g(n,l,t,a),u=new O.Polyline({shape:{points:s},silent:!0,z2:10});return e.add(u),n.setItemGraphicEl(l,u),u}function c(n){var e=n.get("smooth",!0);return e===!0&&(e=C),{lineStyle:n.getModel("lineStyle").getLineStyle(),smooth:e!=null?e:C}}function o(n,e,l,t){var a=t.lineStyle;if(e.hasItemOption){var s=e.getItemModel(l).getModel("lineStyle");a=s.getLineStyle()}n.useStyle(a);var u=n.style;u.fill=null,u.stroke=e.getItemVisual(l,"color"),u.opacity=e.getItemVisual(l,"opacity"),t.smooth&&(n.shape.smooth=t.smooth)}function r(n,e){return e==="category"?n==null:n==null||isNaN(n)}var i=A;H.exports=i},YOMW:function(H,F,d){var O=d("bYtY"),x={get:function(S,g,f){var c=O.clone((C[S]||{})[g]);return f&&O.isArray(c)?c[c.length-1]:c}},C={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=x;H.exports=A},YXkt:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=d("Qxkt"),S=d("gPAo"),g=d("7G+c"),f=d("KxfA"),c=f.defaultDimValueGetters,o=f.DefaultDataProvider,r=d("L0Ub"),i=r.summarizeDimensions,n=d("Vi4m"),e=C.isObject,l="undefined",t=-1,a="e\0\0",s={float:typeof Float64Array===l?Array:Float64Array,int:typeof Int32Array===l?Array:Int32Array,ordinal:Array,number:Array,time:Array},u=typeof Uint32Array===l?Array:Uint32Array,h=typeof Int32Array===l?Array:Int32Array,p=typeof Uint16Array===l?Array:Uint16Array;function m(z){return z._rawCount>65535?u:p}function v(z){var J=z.constructor;return J===Array?z.slice():new J(z)}var y=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],E=["_extent","_approximateExtent","_rawExtent"];function T(z,J){C.each(y.concat(J.__wrappedMethods||[]),function(Z){J.hasOwnProperty(Z)&&(z[Z]=J[Z])}),z.__wrappedMethods=J.__wrappedMethods,C.each(E,function(Z){z[Z]=C.clone(J[Z])}),z._calculationInfo=C.extend(J._calculationInfo)}var b=function(z,J){z=z||["x","y"];for(var Z={},de=[],ie={},ve=0;ve<z.length;ve++){var xe=z[ve];C.isString(xe)?xe=new n({name:xe}):xe instanceof n||(xe=new n(xe));var _e=xe.name;xe.type=xe.type||"float",xe.coordDim||(xe.coordDim=_e,xe.coordDimIndex=0),xe.otherDims=xe.otherDims||{},de.push(_e),Z[_e]=xe,xe.index=ve,xe.createInvertedIndices&&(ie[_e]=[])}this.dimensions=de,this._dimensionInfos=Z,this.hostModel=J,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=i(this),this._invertedIndicesMap=ie,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},w=b.prototype;w.type="list",w.hasItemOption=!0,w.getDimension=function(z){return(typeof z=="number"||!isNaN(z)&&!this._dimensionInfos.hasOwnProperty(z))&&(z=this.dimensions[z]),z},w.getDimensionInfo=function(z){return this._dimensionInfos[this.getDimension(z)]},w.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},w.mapDimension=function(z,J){var Z=this._dimensionsSummary;if(J==null)return Z.encodeFirstDimNotExtra[z];var de=Z.encode[z];return J===!0?(de||[]).slice():de&&de[J]},w.initData=function(z,J,Z){var de=g.isInstance(z)||C.isArrayLike(z);de&&(z=new o(z,this.dimensions.length)),this._rawData=z,this._storage={},this._indices=null,this._nameList=J||[],this._idList=[],this._nameRepeatCount={},Z||(this.hasItemOption=!1),this.defaultDimValueGetter=c[this._rawData.getSource().sourceFormat],this._dimValueGetter=Z=Z||this.defaultDimValueGetter,this._dimValueGetterArrayRows=c.arrayRows,this._rawExtent={},this._initDataFromProvider(0,z.count()),z.pure&&(this.hasItemOption=!1)},w.getProvider=function(){return this._rawData},w.appendData=function(z){var J=this._rawData,Z=this.count();J.appendData(z);var de=J.count();J.persistent||(de+=Z),this._initDataFromProvider(Z,de)},w.appendValues=function(z,J){for(var Z=this._chunkSize,de=this._storage,ie=this.dimensions,ve=ie.length,xe=this._rawExtent,_e=this.count(),Ue=_e+Math.max(z.length,J?J.length:0),fe=this._chunkCount,ke=0;ke<ve;ke++){var se=ie[ke];xe[se]||(xe[se]=j()),de[se]||(de[se]=[]),_(de,this._dimensionInfos[se],Z,fe,Ue),this._chunkCount=de[se].length}for(var te=new Array(ve),Ve=_e;Ve<Ue;Ve++){for(var ae=Ve-_e,Q=Math.floor(Ve/Z),G=Ve%Z,Y=0;Y<ve;Y++){var se=ie[Y],me=this._dimValueGetterArrayRows(z[ae]||te,se,ae,Y);de[se][Q][G]=me;var ue=xe[se];me<ue[0]&&(ue[0]=me),me>ue[1]&&(ue[1]=me)}J&&(this._nameList[Ve]=J[ae])}this._rawCount=this._count=Ue,this._extent={},I(this)},w._initDataFromProvider=function(z,J){if(z>=J)return;for(var Z=this._chunkSize,de=this._rawData,ie=this._storage,ve=this.dimensions,xe=ve.length,_e=this._dimensionInfos,Ue=this._nameList,fe=this._idList,ke=this._rawExtent,se=this._nameRepeatCount={},te,Ve=this._chunkCount,ae=0;ae<xe;ae++){var Q=ve[ae];ke[Q]||(ke[Q]=j());var G=_e[Q];G.otherDims.itemName===0&&(te=this._nameDimIdx=ae),G.otherDims.itemId===0&&(this._idDimIdx=ae),ie[Q]||(ie[Q]=[]),_(ie,G,Z,Ve,J),this._chunkCount=ie[Q].length}for(var Y=new Array(xe),me=z;me<J;me++){Y=de.getItem(me,Y);for(var ue=Math.floor(me/Z),Ce=me%Z,Ie=0;Ie<xe;Ie++){var Q=ve[Ie],ce=ie[Q][ue],Ae=this._dimValueGetter(Y,Q,me,Ie);ce[Ce]=Ae;var Te=ke[Q];Ae<Te[0]&&(Te[0]=Ae),Ae>Te[1]&&(Te[1]=Ae)}if(!de.pure){var Ge=Ue[me];if(Y&&Ge==null){if(Y.name!=null)Ue[me]=Ge=Y.name;else if(te!=null){var gt=ve[te],qe=ie[gt][ue];if(qe){Ge=qe[Ce];var Le=_e[gt].ordinalMeta;Le&&Le.categories.length&&(Ge=Le.categories[Ge])}}}var Ot=Y==null?null:Y.id;Ot==null&&Ge!=null&&(se[Ge]=se[Ge]||0,Ot=Ge,se[Ge]>0&&(Ot+="__ec__"+se[Ge]),se[Ge]++),Ot!=null&&(fe[me]=Ot)}}!de.persistent&&de.clean&&de.clean(),this._rawCount=this._count=J,this._extent={},I(this)};function _(z,J,Z,de,ie){var ve=s[J.type],xe=de-1,_e=J.name,Ue=z[_e][xe];if(Ue&&Ue.length<Z){for(var fe=new ve(Math.min(ie-xe*Z,Z)),ke=0;ke<Ue.length;ke++)fe[ke]=Ue[ke];z[_e][xe]=fe}for(var se=de*Z;se<ie;se+=Z)z[_e].push(new ve(Math.min(ie-se,Z)))}function I(z){var J=z._invertedIndicesMap;C.each(J,function(Z,de){var ie=z._dimensionInfos[de],ve=ie.ordinalMeta;if(ve){Z=J[de]=new h(ve.categories.length);for(var xe=0;xe<Z.length;xe++)Z[xe]=t;for(var xe=0;xe<z._count;xe++)Z[z.get(de,xe)]=xe}})}function L(z,J,Z){var de;if(J!=null){var ie=z._chunkSize,ve=Math.floor(Z/ie),xe=Z%ie,_e=z.dimensions[J],Ue=z._storage[_e][ve];if(Ue){de=Ue[xe];var fe=z._dimensionInfos[_e].ordinalMeta;fe&&fe.categories.length&&(de=fe.categories[de])}}return de}w.count=function(){return this._count},w.getIndices=function(){var z,J=this._indices;if(J){var Z=J.constructor,de=this._count;if(Z===Array){z=new Z(de);for(var ie=0;ie<de;ie++)z[ie]=J[ie]}else z=new Z(J.buffer,0,de)}else for(var Z=m(this),z=new Z(this.count()),ie=0;ie<z.length;ie++)z[ie]=ie;return z},w.get=function(z,J){if(!(J>=0&&J<this._count))return NaN;var Z=this._storage;if(!Z[z])return NaN;J=this.getRawIndex(J);var de=Math.floor(J/this._chunkSize),ie=J%this._chunkSize,ve=Z[z][de],xe=ve[ie];return xe},w.getByRawIndex=function(z,J){if(!(J>=0&&J<this._rawCount))return NaN;var Z=this._storage[z];if(!Z)return NaN;var de=Math.floor(J/this._chunkSize),ie=J%this._chunkSize,ve=Z[de];return ve[ie]},w._getFast=function(z,J){var Z=Math.floor(J/this._chunkSize),de=J%this._chunkSize,ie=this._storage[z][Z];return ie[de]},w.getValues=function(z,J){var Z=[];C.isArray(z)||(J=z,z=this.dimensions);for(var de=0,ie=z.length;de<ie;de++)Z.push(this.get(z[de],J));return Z},w.hasValue=function(z){for(var J=this._dimensionsSummary.dataDimsOnCoord,Z=0,de=J.length;Z<de;Z++)if(isNaN(this.get(J[Z],z)))return!1;return!0},w.getDataExtent=function(z){z=this.getDimension(z);var J=this._storage[z],Z=j();if(!J)return Z;var de=this.count(),ie=!this._indices,ve;if(ie)return this._rawExtent[z].slice();if(ve=this._extent[z],ve)return ve.slice();ve=Z;for(var xe=ve[0],_e=ve[1],Ue=0;Ue<de;Ue++){var fe=this._getFast(z,this.getRawIndex(Ue));fe<xe&&(xe=fe),fe>_e&&(_e=fe)}return ve=[xe,_e],this._extent[z]=ve,ve},w.getApproximateExtent=function(z){return z=this.getDimension(z),this._approximateExtent[z]||this.getDataExtent(z)},w.setApproximateExtent=function(z,J){J=this.getDimension(J),this._approximateExtent[J]=z.slice()},w.getCalculationInfo=function(z){return this._calculationInfo[z]},w.setCalculationInfo=function(z,J){e(z)?C.extend(this._calculationInfo,z):this._calculationInfo[z]=J},w.getSum=function(z){var J=this._storage[z],Z=0;if(J)for(var de=0,ie=this.count();de<ie;de++){var ve=this.get(z,de);isNaN(ve)||(Z+=ve)}return Z},w.getMedian=function(z){var J=[];this.each(z,function(ie,ve){isNaN(ie)||J.push(ie)});var Z=[].concat(J).sort(function(ie,ve){return ie-ve}),de=this.count();return de===0?0:de%2===1?Z[(de-1)/2]:(Z[de/2]+Z[de/2-1])/2},w.rawIndexOf=function(z,J){var Z=z&&this._invertedIndicesMap[z],de=Z[J];return de==null||isNaN(de)?t:de},w.indexOfName=function(z){for(var J=0,Z=this.count();J<Z;J++)if(this.getName(J)===z)return J;return-1},w.indexOfRawIndex=function(z){if(z>=this._rawCount||z<0)return-1;if(!this._indices)return z;var J=this._indices,Z=J[z];if(Z!=null&&Z<this._count&&Z===z)return z;for(var de=0,ie=this._count-1;de<=ie;){var ve=(de+ie)/2|0;if(J[ve]<z)de=ve+1;else if(J[ve]>z)ie=ve-1;else return ve}return-1},w.indicesOfNearest=function(z,J,Z){var de=this._storage,ie=de[z],ve=[];if(!ie)return ve;Z==null&&(Z=Infinity);for(var xe=Infinity,_e=-1,Ue=0,fe=0,ke=this.count();fe<ke;fe++){var se=J-this.get(z,fe),te=Math.abs(se);te<=Z&&((te<xe||te===xe&&se>=0&&_e<0)&&(xe=te,_e=se,Ue=0),se===_e&&(ve[Ue++]=fe))}return ve.length=Ue,ve},w.getRawIndex=N;function N(z){return z}function D(z){return z<this._count&&z>=0?this._indices[z]:-1}w.getRawDataItem=function(z){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(z));for(var J=[],Z=0;Z<this.dimensions.length;Z++){var de=this.dimensions[Z];J.push(this.get(de,z))}return J},w.getName=function(z){var J=this.getRawIndex(z);return this._nameList[J]||L(this,this._nameDimIdx,J)||""},w.getId=function(z){return R(this,this.getRawIndex(z))};function R(z,J){var Z=z._idList[J];return Z==null&&(Z=L(z,z._idDimIdx,J)),Z==null&&(Z=a+J),Z}function k(z){return C.isArray(z)||(z=[z]),z}function M(z,J){for(var Z=0;Z<J.length;Z++)z._dimensionInfos[J[Z]]||console.error("Unkown dimension "+J[Z])}w.each=function(z,J,Z,de){"use strict";if(!this._count)return;typeof z=="function"&&(de=Z,Z=J,J=z,z=[]),Z=Z||de||this,z=C.map(k(z),this.getDimension,this);for(var ie=z.length,ve=0;ve<this.count();ve++)switch(ie){case 0:J.call(Z,ve);break;case 1:J.call(Z,this.get(z[0],ve),ve);break;case 2:J.call(Z,this.get(z[0],ve),this.get(z[1],ve),ve);break;default:for(var xe=0,_e=[];xe<ie;xe++)_e[xe]=this.get(z[xe],ve);_e[xe]=ve,J.apply(Z,_e)}},w.filterSelf=function(z,J,Z,de){"use strict";if(!this._count)return;typeof z=="function"&&(de=Z,Z=J,J=z,z=[]),Z=Z||de||this,z=C.map(k(z),this.getDimension,this);for(var ie=this.count(),ve=m(this),xe=new ve(ie),_e=[],Ue=z.length,fe=0,ke=z[0],se=0;se<ie;se++){var te,Ve=this.getRawIndex(se);if(Ue===0)te=J.call(Z,se);else if(Ue===1){var ae=this._getFast(ke,Ve);te=J.call(Z,ae,se)}else{for(var Q=0;Q<Ue;Q++)_e[Q]=this._getFast(ke,Ve);_e[Q]=se,te=J.apply(Z,_e)}te&&(xe[fe++]=Ve)}return fe<ie&&(this._indices=xe),this._count=fe,this._extent={},this.getRawIndex=this._indices?D:N,this},w.selectRange=function(z){"use strict";if(!this._count)return;var J=[];for(var Z in z)z.hasOwnProperty(Z)&&J.push(Z);var de=J.length;if(!de)return;var ie=this.count(),ve=m(this),xe=new ve(ie),_e=0,Ue=J[0],fe=z[Ue][0],ke=z[Ue][1],se=!1;if(!this._indices){var te=0;if(de===1){for(var Ve=this._storage[J[0]],ae=0;ae<this._chunkCount;ae++)for(var Q=Ve[ae],G=Math.min(this._count-ae*this._chunkSize,this._chunkSize),Y=0;Y<G;Y++){var me=Q[Y];(me>=fe&&me<=ke||isNaN(me))&&(xe[_e++]=te),te++}se=!0}else if(de===2){for(var Ve=this._storage[Ue],ue=this._storage[J[1]],Ce=z[J[1]][0],Ie=z[J[1]][1],ae=0;ae<this._chunkCount;ae++)for(var Q=Ve[ae],ce=ue[ae],G=Math.min(this._count-ae*this._chunkSize,this._chunkSize),Y=0;Y<G;Y++){var me=Q[Y],Ae=ce[Y];(me>=fe&&me<=ke||isNaN(me))&&(Ae>=Ce&&Ae<=Ie||isNaN(Ae))&&(xe[_e++]=te),te++}se=!0}}if(!se)if(de===1)for(var Y=0;Y<ie;Y++){var Te=this.getRawIndex(Y),me=this._getFast(Ue,Te);(me>=fe&&me<=ke||isNaN(me))&&(xe[_e++]=Te)}else for(var Y=0;Y<ie;Y++){for(var Ge=!0,Te=this.getRawIndex(Y),ae=0;ae<de;ae++){var gt=J[ae],me=this._getFast(Z,Te);(me<z[gt][0]||me>z[gt][1])&&(Ge=!1)}Ge&&(xe[_e++]=this.getRawIndex(Y))}return _e<ie&&(this._indices=xe),this._count=_e,this._extent={},this.getRawIndex=this._indices?D:N,this},w.mapArray=function(z,J,Z,de){"use strict";typeof z=="function"&&(de=Z,Z=J,J=z,z=[]),Z=Z||de||this;var ie=[];return this.each(z,function(){ie.push(J&&J.apply(this,arguments))},Z),ie};function U(z,J){var Z=z.dimensions,de=new b(C.map(Z,z.getDimensionInfo,z),z.hostModel);T(de,z);for(var ie=de._storage={},ve=z._storage,xe=0;xe<Z.length;xe++){var _e=Z[xe];ve[_e]&&(C.indexOf(J,_e)>=0?(ie[_e]=B(ve[_e]),de._rawExtent[_e]=j(),de._extent[_e]=null):ie[_e]=ve[_e])}return de}function B(z){for(var J=new Array(z.length),Z=0;Z<z.length;Z++)J[Z]=v(z[Z]);return J}function j(){return[Infinity,-Infinity]}w.map=function(z,J,Z,de){"use strict";Z=Z||de||this,z=C.map(k(z),this.getDimension,this);var ie=U(this,z);ie._indices=this._indices,ie.getRawIndex=ie._indices?D:N;for(var ve=ie._storage,xe=[],_e=this._chunkSize,Ue=z.length,fe=this.count(),ke=[],se=ie._rawExtent,te=0;te<fe;te++){for(var Ve=0;Ve<Ue;Ve++)ke[Ve]=this.get(z[Ve],te);ke[Ue]=te;var ae=J&&J.apply(Z,ke);if(ae!=null){typeof ae!="object"&&(xe[0]=ae,ae=xe);for(var Q=this.getRawIndex(te),G=Math.floor(Q/_e),Y=Q%_e,me=0;me<ae.length;me++){var ue=z[me],Ce=ae[me],Ie=se[ue],ce=ve[ue];ce&&(ce[G][Y]=Ce),Ce<Ie[0]&&(Ie[0]=Ce),Ce>Ie[1]&&(Ie[1]=Ce)}}}return ie},w.downSample=function(z,J,Z,de){for(var ie=U(this,[z]),ve=ie._storage,xe=[],_e=Math.floor(1/J),Ue=ve[z],fe=this.count(),ke=this._chunkSize,se=ie._rawExtent[z],te=new(m(this))(fe),Ve=0,ae=0;ae<fe;ae+=_e){_e>fe-ae&&(_e=fe-ae,xe.length=_e);for(var Q=0;Q<_e;Q++){var G=this.getRawIndex(ae+Q),Y=Math.floor(G/ke),me=G%ke;xe[Q]=Ue[Y][me]}var ue=Z(xe),Ce=this.getRawIndex(Math.min(ae+de(xe,ue)||0,fe-1)),Ie=Math.floor(Ce/ke),ce=Ce%ke;Ue[Ie][ce]=ue,ue<se[0]&&(se[0]=ue),ue>se[1]&&(se[1]=ue),te[Ve++]=Ce}return ie._count=Ve,ie._indices=te,ie.getRawIndex=D,ie},w.getItemModel=function(z){var J=this.hostModel;return new A(this.getRawDataItem(z),J,J&&J.ecModel)},w.diff=function(z){var J=this;return new S(z?z.getIndices():[],this.getIndices(),function(Z){return R(z,Z)},function(Z){return R(J,Z)})},w.getVisual=function(z){var J=this._visual;return J&&J[z]},w.setVisual=function(z,J){if(e(z)){for(var Z in z)z.hasOwnProperty(Z)&&this.setVisual(Z,z[Z]);return}this._visual=this._visual||{},this._visual[z]=J},w.setLayout=function(z,J){if(e(z)){for(var Z in z)z.hasOwnProperty(Z)&&this.setLayout(Z,z[Z]);return}this._layout[z]=J},w.getLayout=function(z){return this._layout[z]},w.getItemLayout=function(z){return this._itemLayouts[z]},w.setItemLayout=function(z,J,Z){this._itemLayouts[z]=Z?C.extend(this._itemLayouts[z]||{},J):J},w.clearItemLayouts=function(){this._itemLayouts.length=0},w.getItemVisual=function(z,J,Z){var de=this._itemVisuals[z],ie=de&&de[J];return ie==null&&!Z?this.getVisual(J):ie},w.setItemVisual=function(z,J,Z){var de=this._itemVisuals[z]||{},ie=this.hasItemVisual;if(this._itemVisuals[z]=de,e(J)){for(var ve in J)J.hasOwnProperty(ve)&&(de[ve]=J[ve],ie[ve]=!0);return}de[J]=Z,ie[J]=!0},w.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var W=function(z){z.seriesIndex=this.seriesIndex,z.dataIndex=this.dataIndex,z.dataType=this.dataType};w.setItemGraphicEl=function(z,J){var Z=this.hostModel;J&&(J.dataIndex=z,J.dataType=this.dataType,J.seriesIndex=Z&&Z.seriesIndex,J.type==="group"&&J.traverse(W,J)),this._graphicEls[z]=J},w.getItemGraphicEl=function(z){return this._graphicEls[z]},w.eachItemGraphicEl=function(z,J){C.each(this._graphicEls,function(Z,de){Z&&(z&&z.call(J,Z,de))})},w.cloneShallow=function(z){if(!z){var J=C.map(this.dimensions,this.getDimensionInfo,this);z=new b(J,this.hostModel)}if(z._storage=this._storage,T(z,this),this._indices){var Z=this._indices.constructor;z._indices=new Z(this._indices)}else z._indices=null;return z.getRawIndex=z._indices?D:N,z},w.wrapMethod=function(z,J){var Z=this[z];if(typeof Z!="function")return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(z),this[z]=function(){var de=Z.apply(this,arguments);return J.apply(this,[de].concat(C.slice(arguments)))}},w.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],w.CHANGABLE_METHODS=["filterSelf","selectRange"];var V=b;H.exports=V},YgsL:function(H,F,d){var O=d("QBsz"),x=O.distance;function C(S,g,f,c,o,r,i){var n=(f-S)*.5,e=(c-g)*.5;return(2*(g-f)+n+e)*i+(-3*(g-f)-2*n-e)*r+n*o+g}function A(S,g){for(var f=S.length,c=[],o=0,r=1;r<f;r++)o+=x(S[r-1],S[r]);var i=o/2;i=i<f?f:i;for(var r=0;r<i;r++){var n=r/(i-1)*(g?f:f-1),e=Math.floor(n),l=n-e,t,a=S[e%f],s,u;g?(t=S[(e-1+f)%f],s=S[(e+1)%f],u=S[(e+2)%f]):(t=S[e===0?e:e-1],s=S[e>f-2?f-1:e+1],u=S[e>f-3?f-1:e+2]);var h=l*l,p=l*h;c.push([C(t[0],a[0],s[0],u[0],l,h,p),C(t[1],a[1],s[1],u[1],l,h,p)])}return c}H.exports=A},Yl7c:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=".",S="___EC__COMPONENT__CONTAINER___";function g(t){var a={main:"",sub:""};return t&&(t=t.split(A),a.main=t[0]||"",a.sub=t[1]||""),a}function f(t){C.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function c(t,a){t.$constructor=t,t.extend=function(s){var u=this,h=function(){s.$constructor?s.$constructor.apply(this,arguments):u.apply(this,arguments)};return C.extend(h.prototype,s),h.extend=this.extend,h.superCall=i,h.superApply=n,C.inherits(h,this),h.superClass=u,h}}var o=0;function r(t){var a=["__\0is_clz",o++,Math.random().toFixed(3)].join("_");t.prototype[a]=!0,t.isInstance=function(s){return!!(s&&s[a])}}function i(t,a){var s=C.slice(arguments,2);return this.superClass.prototype[a].apply(t,s)}function n(t,a,s){return this.superClass.prototype[a].apply(t,s)}function e(t,a){a=a||{};var s={};t.registerClass=function(p,m){if(m){if(f(m),m=g(m),!m.sub)s[m.main]=p;else if(m.sub!==S){var v=u(m);v[m.sub]=p}}return p},t.getClass=function(p,m,v){var y=s[p];if(y&&y[S]&&(y=m?y[m]:null),v&&!y)throw new Error(m?"Component "+p+"."+(m||"")+" not exists. Load it first.":p+".type should be specified.");return y},t.getClassesByMainType=function(p){p=g(p);var m=[],v=s[p.main];return v&&v[S]?C.each(v,function(y,E){E!==S&&m.push(y)}):m.push(v),m},t.hasClass=function(p){return p=g(p),!!s[p.main]},t.getAllClassMainTypes=function(){var p=[];return C.each(s,function(m,v){p.push(v)}),p},t.hasSubTypes=function(p){p=g(p);var m=s[p.main];return m&&m[S]},t.parseClassType=g;function u(p){var m=s[p.main];return(!m||!m[S])&&(m=s[p.main]={},m[S]=!0),m}if(a.registerWhenExtend){var h=t.extend;h&&(t.extend=function(p){var m=h.call(this,p);return t.registerClass(m,p.type)})}return t}function l(t,a){}F.parseClassType=g,F.enableClassExtend=c,F.enableClassCheck=r,F.enableClassManagement=e,F.setReadOnly=l},Ynxi:function(H,F,d){var O=d("bYtY"),x=d("ProS"),C=d("IwbS"),A=d("+TT/"),S=A.getLayoutRect,g=d("7aKB"),f=g.windowOpen;x.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"}}}),x.extendComponentView({type:"title",render:function(c,o,r){if(this.group.removeAll(),!c.get("show"))return;var i=this.group,n=c.getModel("textStyle"),e=c.getModel("subtextStyle"),l=c.get("textAlign"),t=O.retrieve2(c.get("textBaseline"),c.get("textVerticalAlign")),a=new C.Text({style:C.setTextStyle({},n,{text:c.get("text"),textFill:n.getTextColor()},{disableBox:!0}),z2:10}),s=a.getBoundingRect(),u=c.get("subtext"),h=new C.Text({style:C.setTextStyle({},e,{text:u,textFill:e.getTextColor(),y:s.height+c.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),p=c.get("link"),m=c.get("sublink"),v=c.get("triggerEvent",!0);a.silent=!p&&!v,h.silent=!m&&!v,p&&a.on("click",function(){f(p,"_"+c.get("target"))}),m&&h.on("click",function(){f(p,"_"+c.get("subtarget"))}),a.eventData=h.eventData=v?{componentType:"title",componentIndex:c.componentIndex}:null,i.add(a),u&&i.add(h);var y=i.getBoundingRect(),E=c.getBoxLayoutParams();E.width=y.width,E.height=y.height;var T=S(E,{width:r.getWidth(),height:r.getHeight()},c.get("padding"));l||(l=c.get("left")||c.get("right"),l==="middle"&&(l="center"),l==="right"?T.x+=T.width:l==="center"&&(T.x+=T.width/2)),t||(t=c.get("top")||c.get("bottom"),t==="center"&&(t="middle"),t==="bottom"?T.y+=T.height:t==="middle"&&(T.y+=T.height/2),t=t||"top"),i.attr("position",[T.x,T.y]);var b={textAlign:l,textVerticalAlign:t};a.setStyle(b),h.setStyle(b),y=i.getBoundingRect();var w=T.margin,_=c.getItemStyle(["color","opacity"]);_.fill=c.get("backgroundColor");var I=new C.Rect({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:c.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(I)}})},Ywus:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("DO2E")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="DeleteOutlined";var c=A.forwardRef(f);F.default=c},Z0Lh:function(H,F,d){"use strict";var O=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var x=O(d("pVnL")),C=O(d("HjOm")),A=O(d("Z6rY")),S={lang:(0,x.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"]},C.default),timePickerLocale:(0,x.default)({},A.default)};S.lang.ok="\u786E \u5B9A";var g=S;F.default=g},Z1HP:function(H,F,d){var O=d("ycre"),x=d("quyA"),C=d("q4HE");function A(S){return x(S)?C(S):O(S)}H.exports=A},Z1r0:function(H,F){function d(O){var x=O.findComponents({mainType:"legend"});if(!x||!x.length)return;O.eachSeriesByType("graph",function(C){var A=C.getCategoriesData(),S=C.getGraph(),g=S.data,f=A.mapArray(A.getName);g.filterSelf(function(c){var o=g.getItemModel(c),r=o.getShallow("category");if(r!=null){typeof r=="number"&&(r=f[r]);for(var i=0;i<x.length;i++)if(!x[i].isSelected(r))return!1}return!0})},this)}H.exports=d},Z1wy:function(H,F,d){var O=d("ProS");d("ThAp"),d("pmaE"),d("SehX"),d("7uqq");var x=d("zuHt"),C=d("VPsl"),A=d("9u0u"),S=d("lELe"),g=d("d4KN");O.registerLayout(x),O.registerVisual(C),O.registerProcessor(O.PRIORITY.PROCESSOR.STATISTIC,A),O.registerPreprocessor(S),g("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},Z6js:function(H,F,d){var O=d("MwEJ"),x=d("T4UG"),C=x.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(A,S){return O(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}});H.exports=C},Z6rY:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},x=O;F.default=x},Z8zF:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("bYtY"),S=d("IwbS"),g=d("56rv"),f=g.setLabel,c=d("Qxkt"),o=d("tceW"),r=d("y+Vt"),i=d("4fz+"),n=d("iLNv"),e=n.throttle,l=d("sK/D"),t=l.createClipPath,a=d("wr5s"),s=["itemStyle","barBorderWidth"],u=[0,0];A.extend(c.prototype,o);function h(W,V){var z=W.getArea&&W.getArea();if(W.type==="cartesian2d"){var J=W.getBaseAxis();if(J.type!=="category"||!J.onBand){var Z=V.getLayout("bandWidth");J.isHorizontal()?(z.x-=Z,z.width+=Z*2):(z.y-=Z,z.height+=Z*2)}}return z}var p=C.extendChartView({type:"bar",render:function(W,V,z){this._updateDrawMode(W);var J=W.get("coordinateSystem");return(J==="cartesian2d"||J==="polar")&&(this._isLargeDraw?this._renderLarge(W,V,z):this._renderNormal(W,V,z)),this.group},incrementalPrepareRender:function(W,V,z){this._clear(),this._updateDrawMode(W)},incrementalRender:function(W,V,z,J){this._incrementalRenderLarge(W,V)},_updateDrawMode:function(W){var V=W.pipelineContext.large;(this._isLargeDraw==null||V^this._isLargeDraw)&&(this._isLargeDraw=V,this._clear())},_renderNormal:function(W,V,z){var J=this.group,Z=W.getData(),de=this._data,ie=W.coordinateSystem,ve=ie.getBaseAxis(),xe;ie.type==="cartesian2d"?xe=ve.isHorizontal():ie.type==="polar"&&(xe=ve.dim==="angle");var _e=W.isAnimationEnabled()?W:null,Ue=W.get("clip",!0),fe=h(ie,Z);J.removeClipPath();var ke=W.get("roundCap",!0),se=W.get("showBackground",!0),te=W.getModel("backgroundStyle"),Ve=te.get("barBorderRadius")||0,ae=[],Q=this._backgroundEls||[];Z.diff(de).add(function(me){var ue=Z.getItemModel(me),Ce=w[ie.type](Z,me,ue);if(se){var Ie=w[ie.type](Z,me),ce=j(ie,xe,Ie);ce.useStyle(te.getBarItemStyle()),ie.type==="cartesian2d"&&ce.setShape("r",Ve),ae[me]=ce}if(!Z.hasValue(me))return;if(Ue){var Ae=y[ie.type](fe,Ce);if(Ae){J.remove(Te);return}}var Te=E[ie.type](me,Ce,xe,_e,!1,ke);Z.setItemGraphicEl(me,Te),J.add(Te),I(Te,Z,me,ue,Ce,W,xe,ie.type==="polar")}).update(function(me,ue){var Ce=Z.getItemModel(me),Ie=w[ie.type](Z,me,Ce);if(se){var ce=Q[ue];ce.useStyle(te.getBarItemStyle()),ie.type==="cartesian2d"&&ce.setShape("r",Ve),ae[me]=ce;var Ae=w[ie.type](Z,me),Te=B(xe,Ae,ie);S.updateProps(ce,{shape:Te},_e,me)}var Ge=de.getItemGraphicEl(ue);if(!Z.hasValue(me)){J.remove(Ge);return}if(Ue){var gt=y[ie.type](fe,Ie);if(gt){J.remove(Ge);return}}Ge?S.updateProps(Ge,{shape:Ie},_e,me):Ge=E[ie.type](me,Ie,xe,_e,!0,ke),Z.setItemGraphicEl(me,Ge),J.add(Ge),I(Ge,Z,me,Ce,Ie,W,xe,ie.type==="polar")}).remove(function(me){var ue=de.getItemGraphicEl(me);ie.type==="cartesian2d"?ue&&T(me,_e,ue):ue&&b(me,_e,ue)}).execute();var G=this._backgroundGroup||(this._backgroundGroup=new i);G.removeAll();for(var Y=0;Y<ae.length;++Y)G.add(ae[Y]);J.add(G),this._backgroundEls=ae,this._data=Z},_renderLarge:function(W,V,z){this._clear(),D(W,this.group);var J=W.get("clip",!0)?t(W.coordinateSystem,!1,W):null;J?this.group.setClipPath(J):this.group.removeClipPath()},_incrementalRenderLarge:function(W,V){this._removeBackground(),D(V,this.group,!0)},dispose:A.noop,remove:function(W){this._clear(W)},_clear:function(W){var V=this.group,z=this._data;W&&W.get("animation")&&z&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],z.eachItemGraphicEl(function(J){J.type==="sector"?b(J.dataIndex,W,J):T(J.dataIndex,W,J)})):V.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),m=Math.max,v=Math.min,y={cartesian2d:function(W,V){var z=V.width<0?-1:1,J=V.height<0?-1:1;z<0&&(V.x+=V.width,V.width=-V.width),J<0&&(V.y+=V.height,V.height=-V.height);var Z=m(V.x,W.x),de=v(V.x+V.width,W.x+W.width),ie=m(V.y,W.y),ve=v(V.y+V.height,W.y+W.height);V.x=Z,V.y=ie,V.width=de-Z,V.height=ve-ie;var xe=V.width<0||V.height<0;return z<0&&(V.x+=V.width,V.width=-V.width),J<0&&(V.y+=V.height,V.height=-V.height),xe},polar:function(W){return!1}},E={cartesian2d:function(W,V,z,J,Z){var de=new S.Rect({shape:A.extend({},V),z2:1});if(de.name="item",J){var ie=de.shape,ve=z?"height":"width",xe={};ie[ve]=0,xe[ve]=V[ve],S[Z?"updateProps":"initProps"](de,{shape:xe},J,W)}return de},polar:function(W,V,z,J,Z,de){var ie=V.startAngle<V.endAngle,ve=!z&&de?a:S.Sector,xe=new ve({shape:A.defaults({clockwise:ie},V),z2:1});if(xe.name="item",J){var _e=xe.shape,Ue=z?"r":"endAngle",fe={};_e[Ue]=z?0:V.startAngle,fe[Ue]=V[Ue],S[Z?"updateProps":"initProps"](xe,{shape:fe},J,W)}return xe}};function T(W,V,z){z.style.text=null,S.updateProps(z,{shape:{width:0}},V,W,function(){z.parent&&z.parent.remove(z)})}function b(W,V,z){z.style.text=null,S.updateProps(z,{shape:{r:z.shape.r0}},V,W,function(){z.parent&&z.parent.remove(z)})}var w={cartesian2d:function(W,V,z){var J=W.getItemLayout(V),Z=z?L(z,J):0,de=J.width>0?1:-1,ie=J.height>0?1:-1;return{x:J.x+de*Z/2,y:J.y+ie*Z/2,width:J.width-de*Z,height:J.height-ie*Z}},polar:function(W,V,z){var J=W.getItemLayout(V);return{cx:J.cx,cy:J.cy,r0:J.r0,r:J.r,startAngle:J.startAngle,endAngle:J.endAngle}}};function _(W){return W.startAngle!=null&&W.endAngle!=null&&W.startAngle===W.endAngle}function I(W,V,z,J,Z,de,ie,ve){var xe=V.getItemVisual(z,"color"),_e=V.getItemVisual(z,"opacity"),Ue=V.getVisual("borderColor"),fe=J.getModel("itemStyle"),ke=J.getModel("emphasis.itemStyle").getBarItemStyle();ve||W.setShape("r",fe.get("barBorderRadius")||0),W.useStyle(A.defaults({stroke:_(Z)?"none":Ue,fill:_(Z)?"none":xe,opacity:_e},fe.getBarItemStyle()));var se=J.getShallow("cursor");se&&W.attr("cursor",se);var te=ie?Z.height>0?"bottom":"top":Z.width>0?"left":"right";ve||f(W.style,ke,J,xe,de,z,te),_(Z)&&(ke.fill=ke.stroke="none"),S.setHoverStyle(W,ke)}function L(W,V){var z=W.get(s)||0,J=isNaN(V.width)?Number.MAX_VALUE:Math.abs(V.width),Z=isNaN(V.height)?Number.MAX_VALUE:Math.abs(V.height);return Math.min(z,J,Z)}var N=r.extend({type:"largeBar",shape:{points:[]},buildPath:function(W,V){for(var z=V.points,J=this.__startPoint,Z=this.__baseDimIdx,de=0;de<z.length;de+=2)J[Z]=z[de+Z],W.moveTo(J[0],J[1]),W.lineTo(z[de],z[de+1])}});function D(W,V,z){var J=W.getData(),Z=[],de=J.getLayout("valueAxisHorizontal")?1:0;Z[1-de]=J.getLayout("valueAxisStart");var ie=J.getLayout("largeDataIndices"),ve=J.getLayout("barWidth"),xe=W.getModel("backgroundStyle"),_e=W.get("showBackground",!0);if(_e){var Ue=J.getLayout("largeBackgroundPoints"),fe=[];fe[1-de]=J.getLayout("backgroundStart");var ke=new N({shape:{points:Ue},incremental:!!z,__startPoint:fe,__baseDimIdx:de,__largeDataIndices:ie,__barWidth:ve,silent:!0,z2:0});U(ke,xe,J),V.add(ke)}var se=new N({shape:{points:J.getLayout("largePoints")},incremental:!!z,__startPoint:Z,__baseDimIdx:de,__largeDataIndices:ie,__barWidth:ve});V.add(se),M(se,W,J),se.seriesIndex=W.seriesIndex,W.get("silent")||(se.on("mousedown",R),se.on("mousemove",R))}var R=e(function(W){var V=this,z=k(V,W.offsetX,W.offsetY);V.dataIndex=z>=0?z:null},30,!1);function k(W,V,z){var J=W.__baseDimIdx,Z=1-J,de=W.shape.points,ie=W.__largeDataIndices,ve=Math.abs(W.__barWidth/2),xe=W.__startPoint[Z];u[0]=V,u[1]=z;for(var _e=u[J],Ue=u[1-J],fe=_e-ve,ke=_e+ve,se=0,te=de.length/2;se<te;se++){var Ve=se*2,ae=de[Ve+J],Q=de[Ve+Z];if(ae>=fe&&ae<=ke&&(xe<=Q?Ue>=xe&&Ue<=Q:Ue>=Q&&Ue<=xe))return ie[se]}return-1}function M(W,V,z){var J=z.getVisual("borderColor")||z.getVisual("color"),Z=V.getModel("itemStyle").getItemStyle(["color","borderColor"]);W.useStyle(Z),W.style.fill=null,W.style.stroke=J,W.style.lineWidth=z.getLayout("barWidth")}function U(W,V,z){var J=V.get("borderColor")||V.get("color"),Z=V.getItemStyle(["color","borderColor"]);W.useStyle(Z),W.style.fill=null,W.style.stroke=J,W.style.lineWidth=z.getLayout("barWidth")}function B(W,V,z){var J,Z=z.type==="polar";return Z?J=z.getArea():J=z.grid.getRect(),Z?{cx:J.cx,cy:J.cy,r0:W?J.r0:V.r0,r:W?J.r:V.r,startAngle:W?V.startAngle:0,endAngle:W?V.endAngle:Math.PI*2}:{x:W?V.x:J.x,y:W?J.y:V.y,width:W?V.width:J.width,height:W?J.height:V.height}}function j(W,V,z){var J=W.type==="polar"?S.Sector:S.Rect;return new J({shape:B(V,z,W),silent:!0,z2:0})}H.exports=p},ZCgT:function(H,F,d){var O=d("tLB3"),x=1/0,C=17976931348623157e292;function A(S){if(!S)return S===0?S:0;if(S=O(S),S===x||S===-x){var g=S<0?-1:1;return g*C}return S===S?S:0}H.exports=A},ZLWo:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},ZMnZ:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("2oIt")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="UpOutlined";var c=A.forwardRef(f);F.default=c},ZTPi:function(H,F,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),S=d("q1tI"),g=d.n(S),f=d("rePB"),c=d("ODXe"),o=d("Ff2n"),r=d("VTBJ"),i=d("TSYQ"),n=d.n(i),e=d("TOwV");function l(Nr){var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},En=[];return g.a.Children.forEach(Nr,function(en){if(en==null&&!rn.keepEmpty)return;Array.isArray(en)?En=En.concat(l(en)):Object(e.isFragment)(en)&&en.props?En=En.concat(l(en.props.children,rn)):En.push(en)}),En}function t(Nr){var rn=S.useRef();rn.current=Nr;var En=S.useCallback(function(){for(var en,ur=arguments.length,on=new Array(ur),Bn=0;Bn<ur;Bn++)on[Bn]=arguments[Bn];return(en=rn.current)===null||en===void 0?void 0:en.call.apply(en,[rn].concat(on))},[]);return En}function a(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var s=a()?S.useLayoutEffect:S.useEffect,u=s,h=function(rn,En){var en=S.useRef(!0);s(function(){if(!en.current)return rn()},En),s(function(){return en.current=!1,function(){en.current=!0}},[])};function p(Nr){var rn=S.useRef(!1),En=S.useState(Nr),en=Object(c.a)(En,2),ur=en[0],on=en[1];S.useEffect(function(){return rn.current=!1,function(){rn.current=!0}},[]);function Bn(Hn,Ii){if(Ii&&rn.current)return;on(Hn)}return[ur,Bn]}var m;(function(Nr){Nr[Nr.INNER=0]="INNER",Nr[Nr.PROP=1]="PROP"})(m||(m={}));function v(Nr){return Nr!==void 0}function y(Nr,rn){var En=rn||{},en=En.defaultValue,ur=En.value,on=En.onChange,Bn=En.postState,Hn=p(function(){var Ra=void 0,so;return v(ur)?(Ra=ur,so=m.PROP):v(en)?(Ra=typeof en=="function"?en():en,so=m.PROP):(Ra=typeof Nr=="function"?Nr():Nr,so=m.INNER),[Ra,so,Ra]}),Ii=Object(c.a)(Hn,2),Ci=Ii[0],Jn=Ii[1],mi=v(ur)?ur:Ci[0],yi=Bn?Bn(mi):mi;h(function(){Jn(function(Ra){var so=Object(c.a)(Ra,1),La=so[0];return[ur,m.PROP,La]})},[ur]);var da=S.useRef(),ha=t(function(Ra,so){Jn(function(La){var lo=Object(c.a)(La,3),So=lo[0],Xt=lo[1],zr=lo[2],un=typeof Ra=="function"?Ra(So):Ra;if(un===So)return La;var vn=Xt===m.INNER&&da.current!==zr?zr:So;return[un,m.INNER,vn]},so)}),Pa=t(on);return u(function(){var Ra=Object(c.a)(Ci,3),so=Ra[0],La=Ra[1],lo=Ra[2];so!==lo&&La===m.INNER&&(Pa(so,lo),da.current=lo)},[Ci]),[yi,ha]}var E=d("KQm4"),T=d("xEkU"),b=d.n(T),w=d("1OyB"),_=d("vuIU"),I=d("Ji7U"),L=d("LK+K"),N=d("i8i4"),D=d.n(N);function R(Nr){return Nr instanceof HTMLElement?Nr:D.a.findDOMNode(Nr)}var k={};function M(Nr,rn){}function U(Nr,rn){}function B(){k={}}function j(Nr,rn,En){!rn&&!k[En]&&(Nr(!1,En),k[En]=!0)}function W(Nr,rn){j(M,Nr,rn)}function V(Nr,rn){j(U,Nr,rn)}var z=W,J=d("U8pU");function Z(Nr,rn,En){var en=S.useRef({});return(!("value"in en.current)||En(en.current.condition,rn))&&(en.current.value=Nr(),en.current.condition=rn),en.current.value}function de(Nr,rn){typeof Nr=="function"?Nr(rn):Object(J.a)(Nr)==="object"&&Nr&&"current"in Nr&&(Nr.current=rn)}function ie(){for(var Nr=arguments.length,rn=new Array(Nr),En=0;En<Nr;En++)rn[En]=arguments[En];var en=rn.filter(function(ur){return ur});return en.length<=1?en[0]:function(ur){rn.forEach(function(on){de(on,ur)})}}function ve(){for(var Nr=arguments.length,rn=new Array(Nr),En=0;En<Nr;En++)rn[En]=arguments[En];return Z(function(){return ie.apply(void 0,rn)},rn,function(en,ur){return en.length===ur.length&&en.every(function(on,Bn){return on===ur[Bn]})})}function xe(Nr){var rn,En,en=Object(e.isMemo)(Nr)?Nr.type.type:Nr.type;return typeof en=="function"&&!((rn=en.prototype)===null||rn===void 0?void 0:rn.render)?!1:!(typeof Nr=="function"&&!((En=Nr.prototype)===null||En===void 0?void 0:En.render))}var _e=d("bdgK"),Ue="rc-observer-key",fe=function(Nr){Object(I.a)(En,Nr);var rn=Object(L.a)(En);function En(){var en;return Object(w.a)(this,En),en=rn.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(ur){var on=en.props.onResize,Bn=ur[0].target,Hn=Bn.getBoundingClientRect(),Ii=Hn.width,Ci=Hn.height,Jn=Bn.offsetWidth,mi=Bn.offsetHeight,yi=Math.floor(Ii),da=Math.floor(Ci);if(en.state.width!==yi||en.state.height!==da||en.state.offsetWidth!==Jn||en.state.offsetHeight!==mi){var ha={width:yi,height:da,offsetWidth:Jn,offsetHeight:mi};en.setState(ha),on&&Promise.resolve().then(function(){on(Object(r.a)(Object(r.a)({},ha),{},{offsetWidth:Jn,offsetHeight:mi}))})}},en.setChildNode=function(ur){en.childNode=ur},en}return Object(_.a)(En,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var ur=this.props.disabled;if(ur){this.destroyObserver();return}var on=R(this.childNode||this),Bn=on!==this.currentElement;Bn&&(this.destroyObserver(),this.currentElement=on),!this.resizeObserver&&on&&(this.resizeObserver=new _e.default(this.onResize),this.resizeObserver.observe(on))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var ur=this.props.children,on=l(ur);if(on.length>1)z(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(on.length===0)return z(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Bn=on[0];if(S.isValidElement(Bn)&&xe(Bn)){var Hn=Bn.ref;on[0]=S.cloneElement(Bn,{ref:ie(Hn,this.setChildNode)})}return on.length===1?on[0]:on.map(function(Ii,Ci){return!S.isValidElement(Ii)||"key"in Ii&&Ii.key!==null?Ii:S.cloneElement(Ii,{key:"".concat(Ue,"-").concat(Ci)})})}}]),En}(S.Component);fe.displayName="ResizeObserver";var ke=fe;function se(Nr){var rn=Object(S.useRef)(),En=Object(S.useRef)(!1);function en(){for(var ur=arguments.length,on=new Array(ur),Bn=0;Bn<ur;Bn++)on[Bn]=arguments[Bn];En.current||(b.a.cancel(rn.current),rn.current=b()(function(){Nr.apply(void 0,on)}))}return Object(S.useEffect)(function(){return function(){En.current=!0,b.a.cancel(rn.current)}},[]),en}function te(Nr){var rn=Object(S.useRef)([]),En=Object(S.useState)({}),en=Object(c.a)(En,2),ur=en[1],on=Object(S.useRef)(typeof Nr=="function"?Nr():Nr),Bn=se(function(){var Ii=on.current;rn.current.forEach(function(Ci){Ii=Ci(Ii)}),rn.current=[],on.current=Ii,ur({})});function Hn(Ii){rn.current.push(Ii),Bn()}return[on.current,Hn]}var Ve={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(rn){var En=rn.keyCode;if(rn.altKey&&!rn.ctrlKey||rn.metaKey||En>=Ve.F1&&En<=Ve.F12)return!1;switch(En){case Ve.ALT:case Ve.CAPS_LOCK:case Ve.CONTEXT_MENU:case Ve.CTRL:case Ve.DOWN:case Ve.END:case Ve.ESC:case Ve.HOME:case Ve.INSERT:case Ve.LEFT:case Ve.MAC_FF_META:case Ve.META:case Ve.NUMLOCK:case Ve.NUM_CENTER:case Ve.PAGE_DOWN:case Ve.PAGE_UP:case Ve.PAUSE:case Ve.PRINT_SCREEN:case Ve.RIGHT:case Ve.SHIFT:case Ve.UP:case Ve.WIN_KEY:case Ve.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(rn){if(rn>=Ve.ZERO&&rn<=Ve.NINE)return!0;if(rn>=Ve.NUM_ZERO&&rn<=Ve.NUM_MULTIPLY)return!0;if(rn>=Ve.A&&rn<=Ve.Z)return!0;if(window.navigator.userAgent.indexOf("WebKit")!==-1&&rn===0)return!0;switch(rn){case Ve.SPACE:case Ve.QUESTION_MARK:case Ve.NUM_PLUS:case Ve.NUM_MINUS:case Ve.NUM_PERIOD:case Ve.NUM_DIVISION:case Ve.SEMICOLON:case Ve.DASH:case Ve.EQUALS:case Ve.COMMA:case Ve.PERIOD:case Ve.SLASH:case Ve.APOSTROPHE:case Ve.SINGLE_QUOTE:case Ve.OPEN_SQUARE_BRACKET:case Ve.BACKSLASH:case Ve.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ae=Ve;function Q(Nr,rn){var En,en=Nr.prefixCls,ur=Nr.id,on=Nr.active,Bn=Nr.rtl,Hn=Nr.tab,Ii=Hn.key,Ci=Hn.tab,Jn=Hn.disabled,mi=Hn.closeIcon,yi=Nr.tabBarGutter,da=Nr.tabPosition,ha=Nr.closable,Pa=Nr.renderWrapper,Ra=Nr.removeAriaLabel,so=Nr.editable,La=Nr.onClick,lo=Nr.onRemove,So=Nr.onFocus,Xt="".concat(en,"-tab");S.useEffect(function(){return lo},[]);var zr={};da==="top"||da==="bottom"?zr[Bn?"marginLeft":"marginRight"]=yi:zr.marginBottom=yi;var un=so&&ha!==!1&&!Jn;function vn(fi){if(Jn)return;La(fi)}function ni(fi){fi.preventDefault(),fi.stopPropagation(),so.onEdit("remove",{key:Ii,event:fi})}var li=S.createElement("div",{key:Ii,ref:rn,className:n()(Xt,(En={},Object(f.a)(En,"".concat(Xt,"-with-remove"),un),Object(f.a)(En,"".concat(Xt,"-active"),on),Object(f.a)(En,"".concat(Xt,"-disabled"),Jn),En)),style:zr,onClick:vn},S.createElement("div",{role:"tab","aria-selected":on,id:ur&&"".concat(ur,"-tab-").concat(Ii),className:"".concat(Xt,"-btn"),"aria-controls":ur&&"".concat(ur,"-panel-").concat(Ii),"aria-disabled":Jn,tabIndex:Jn?null:0,onClick:function(di){di.stopPropagation(),vn(di)},onKeyDown:function(di){[ae.SPACE,ae.ENTER].includes(di.which)&&(di.preventDefault(),vn(di))},onFocus:So},Ci),un&&S.createElement("button",{type:"button","aria-label":Ra||"remove",tabIndex:0,className:"".concat(Xt,"-remove"),onClick:function(di){di.stopPropagation(),ni(di)}},mi||so.removeIcon||"\xD7"));return Pa&&(li=Pa(li)),li}var G=S.forwardRef(Q),Y={width:0,height:0,left:0,top:0};function me(Nr,rn,En){return Object(S.useMemo)(function(){for(var en,ur=new Map,on=rn.get((en=Nr[0])===null||en===void 0?void 0:en.key)||Y,Bn=on.left+on.width,Hn=0;Hn<Nr.length;Hn+=1){var Ii=Nr[Hn].key,Ci=rn.get(Ii);if(!Ci){var Jn;Ci=rn.get((Jn=Nr[Hn-1])===null||Jn===void 0?void 0:Jn.key)||Y}var mi=ur.get(Ii)||Object(r.a)({},Ci);mi.right=Bn-mi.left-mi.width,ur.set(Ii,mi)}return ur},[Nr.map(function(en){return en.key}).join("_"),rn,En])}var ue={width:0,height:0,left:0,top:0,right:0};function Ce(Nr,rn,En,en,ur){var on=ur.tabs,Bn=ur.tabPosition,Hn=ur.rtl,Ii,Ci,Jn;["top","bottom"].includes(Bn)?(Ii="width",Ci=Hn?"right":"left",Jn=Math.abs(rn.left)):(Ii="height",Ci="top",Jn=-rn.top);var mi=rn[Ii],yi=En[Ii],da=en[Ii],ha=mi;return yi+da>mi&&(ha=mi-da),Object(S.useMemo)(function(){if(!on.length)return[0,0];for(var Pa=on.length,Ra=Pa,so=0;so<Pa;so+=1){var La=Nr.get(on[so].key)||ue;if(La[Ci]+La[Ii]>Jn+ha){Ra=so-1;break}}for(var lo=0,So=Pa-1;So>=0;So-=1){var Xt=Nr.get(on[So].key)||ue;if(Xt[Ci]<Jn){lo=So+1;break}}return[lo,Ra]},[Nr,Jn,ha,Bn,on.map(function(Pa){return Pa.key}).join("_"),Hn])}var Ie=d("wx14"),ce=d("JX7q"),Ae=d("I8Z2");function Te(Nr,rn){var En=Object(r.a)({},Nr);return Array.isArray(rn)&&rn.forEach(function(en){delete En[en]}),En}var Ge={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(rn){var En=rn.keyCode;if(rn.altKey&&!rn.ctrlKey||rn.metaKey||En>=Ge.F1&&En<=Ge.F12)return!1;switch(En){case Ge.ALT:case Ge.CAPS_LOCK:case Ge.CONTEXT_MENU:case Ge.CTRL:case Ge.DOWN:case Ge.END:case Ge.ESC:case Ge.HOME:case Ge.INSERT:case Ge.LEFT:case Ge.MAC_FF_META:case Ge.META:case Ge.NUMLOCK:case Ge.NUM_CENTER:case Ge.PAGE_DOWN:case Ge.PAGE_UP:case Ge.PAUSE:case Ge.PRINT_SCREEN:case Ge.RIGHT:case Ge.SHIFT:case Ge.UP:case Ge.WIN_KEY:case Ge.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(rn){if(rn>=Ge.ZERO&&rn<=Ge.NINE)return!0;if(rn>=Ge.NUM_ZERO&&rn<=Ge.NUM_MULTIPLY)return!0;if(rn>=Ge.A&&rn<=Ge.Z)return!0;if(window.navigator.userAgent.indexOf("WebKit")!==-1&&rn===0)return!0;switch(rn){case Ge.SPACE:case Ge.QUESTION_MARK:case Ge.NUM_PLUS:case Ge.NUM_MINUS:case Ge.NUM_PERIOD:case Ge.NUM_DIVISION:case Ge.SEMICOLON:case Ge.DASH:case Ge.EQUALS:case Ge.COMMA:case Ge.PERIOD:case Ge.SLASH:case Ge.APOSTROPHE:case Ge.SINGLE_QUOTE:case Ge.OPEN_SQUARE_BRACKET:case Ge.BACKSLASH:case Ge.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},gt=Ge;function qe(){var Nr=[].slice.call(arguments,0);return Nr.length===1?Nr[0]:function(){for(var En=0;En<Nr.length;En++)Nr[En]&&Nr[En].apply&&Nr[En].apply(this,arguments)}}function Le(Nr){var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},En=[];return g.a.Children.forEach(Nr,function(en){if(en==null&&!rn.keepEmpty)return;Array.isArray(en)?En=En.concat(Le(en)):Object(e.isFragment)(en)&&en.props?En=En.concat(Le(en.props.children,rn)):En.push(en)}),En}var Ot=d("Gytx"),$e=d.n(Ot),xt=/iPhone/i,Ht=/iPod/i,tr=/iPad/i,Mt=/\bAndroid(?:.+)Mobile\b/i,Tt=/Android/i,Xe=/\bAndroid(?:.+)SD4930UR\b/i,oe=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,X=/Windows Phone/i,Be=/\bWindows(?:.+)ARM\b/i,Ee=/BlackBerry/i,ee=/BB10/i,lt=/Opera Mini/i,Ct=/\b(CriOS|Chrome)(?:.+)Mobile/i,dt=/Mobile(?:.+)Firefox\b/i;function _t(Nr,rn){return Nr.test(rn)}function ir(Nr){var rn=Nr||(typeof navigator!="undefined"?navigator.userAgent:""),En=(rn||"").split("[FBAN");if(typeof En[1]!="undefined"){var en=En,ur=Object(c.a)(en,1);rn=ur[0]}if(En=rn.split("Twitter"),typeof En[1]!="undefined"){var on=En,Bn=Object(c.a)(on,1);rn=Bn[0]}var Hn={apple:{phone:_t(xt,rn)&&!_t(X,rn),ipod:_t(Ht,rn),tablet:!_t(xt,rn)&&_t(tr,rn)&&!_t(X,rn),device:(_t(xt,rn)||_t(Ht,rn)||_t(tr,rn))&&!_t(X,rn)},amazon:{phone:_t(Xe,rn),tablet:!_t(Xe,rn)&&_t(oe,rn),device:_t(Xe,rn)||_t(oe,rn)},android:{phone:!_t(X,rn)&&_t(Xe,rn)||!_t(X,rn)&&_t(Mt,rn),tablet:!_t(X,rn)&&!_t(Xe,rn)&&!_t(Mt,rn)&&(_t(oe,rn)||_t(Tt,rn)),device:!_t(X,rn)&&(_t(Xe,rn)||_t(oe,rn)||_t(Mt,rn)||_t(Tt,rn))||_t(/\bokhttp\b/i,rn)},windows:{phone:_t(X,rn),tablet:_t(Be,rn),device:_t(X,rn)||_t(Be,rn)},other:{blackberry:_t(Ee,rn),blackberry10:_t(ee,rn),opera:_t(lt,rn),firefox:_t(dt,rn),chrome:_t(Ct,rn),device:_t(Ee,rn)||_t(ee,rn)||_t(lt,rn)||_t(dt,rn)||_t(Ct,rn)},any:null,phone:null,tablet:null};return Hn.any=Hn.apple.device||Hn.android.device||Hn.windows.device||Hn.other.device,Hn.phone=Hn.apple.phone||Hn.android.phone||Hn.windows.phone,Hn.tablet=Hn.apple.tablet||Hn.android.tablet||Hn.windows.tablet,Hn}var $r=Object(r.a)(Object(r.a)({},ir()),{},{isMobile:ir}),nr=$r;function lr(){}function zt(Nr,rn,En){var en=rn||"";return Nr.key||"".concat(en,"item_").concat(En)}function Ut(Nr){return"".concat(Nr,"-menu-")}function st(Nr,rn){var En=-1;S.Children.forEach(Nr,function(en){En+=1,en&&en.type&&en.type.isMenuItemGroup?S.Children.forEach(en.props.children,function(ur){En+=1,rn(ur,En)}):rn(en,En)})}function Hr(Nr,rn,En){if(!Nr||En.find)return;S.Children.forEach(Nr,function(en){if(en){var ur=en.type;if(!ur||!(ur.isSubMenu||ur.isMenuItem||ur.isMenuItemGroup))return;rn.indexOf(en.key)!==-1?En.find=!0:en.props.children&&Hr(en.props.children,rn,En)}})}var mn=["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"],In=function(rn){var En=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,en=rn&&typeof rn.getBoundingClientRect=="function"&&rn.getBoundingClientRect().width;if(en){if(En){var ur=getComputedStyle(rn),on=ur.marginLeft,Bn=ur.marginRight;en+=+on.replace("px","")+ +Bn.replace("px","")}en=+en.toFixed(6)}return en||0},Yn=function(rn,En,en){rn&&Object(J.a)(rn.style)==="object"&&(rn.style[En]=en)},Mi=function(){return nr.any},wn=d("uciX"),Rn=function(rn){return+setTimeout(rn,16)},kt=function(rn){return clearTimeout(rn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Rn=function(rn){return window.requestAnimationFrame(rn)},kt=function(rn){return window.cancelAnimationFrame(rn)});var vt=0,Re=new Map;function Ke(Nr){Re.delete(Nr)}function Pe(Nr){var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;vt+=1;var En=vt;function en(ur){if(ur===0)Ke(En),Nr();else{var on=Rn(function(){en(ur-1)});Re.set(En,on)}}return en(rn),En}Pe.cancel=function(Nr){var rn=Re.get(Nr);return Ke(rn),kt(rn)};var nt=d("8XRh"),yt={adjustX:1,adjustY:1},Dt={topLeft:{points:["bl","tl"],overflow:yt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:yt,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:yt,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:yt,offset:[4,0]}},bt={topLeft:{points:["bl","tl"],overflow:yt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:yt,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:yt,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:yt,offset:[4,0]}},It=Dt,gr=0,kr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},wt=function(rn,En,en){var ur=Ut(En),on=rn.getState();rn.setState({defaultActiveFirst:Object(r.a)(Object(r.a)({},on.defaultActiveFirst),{},Object(f.a)({},ur,en))})},rt=function(Nr){Object(I.a)(En,Nr);var rn=Object(L.a)(En);function En(en){var ur;Object(w.a)(this,En),ur=rn.call(this,en),ur.onDestroy=function(Jn){ur.props.onDestroy(Jn)},ur.onKeyDown=function(Jn){var mi=Jn.keyCode,yi=ur.menuInstance,da=ur.props.store,ha=ur.getVisible();if(mi===gt.ENTER)return ur.onTitleClick(Jn),wt(da,ur.props.eventKey,!0),!0;if(mi===gt.RIGHT)return ha?yi.onKeyDown(Jn):(ur.triggerOpenChange(!0),wt(da,ur.props.eventKey,!0)),!0;if(mi===gt.LEFT){var Pa;if(ha)Pa=yi.onKeyDown(Jn);else return;return Pa||(ur.triggerOpenChange(!1),Pa=!0),Pa}return ha&&(mi===gt.UP||mi===gt.DOWN)?yi.onKeyDown(Jn):void 0},ur.onOpenChange=function(Jn){ur.props.onOpenChange(Jn)},ur.onPopupVisibleChange=function(Jn){ur.triggerOpenChange(Jn,Jn?"mouseenter":"mouseleave")},ur.onMouseEnter=function(Jn){var mi=ur.props,yi=mi.eventKey,da=mi.onMouseEnter,ha=mi.store;wt(ha,ur.props.eventKey,!1),da({key:yi,domEvent:Jn})},ur.onMouseLeave=function(Jn){var mi=ur.props,yi=mi.parentMenu,da=mi.eventKey,ha=mi.onMouseLeave;yi.subMenuInstance=Object(ce.a)(ur),ha({key:da,domEvent:Jn})},ur.onTitleMouseEnter=function(Jn){var mi=ur.props,yi=mi.eventKey,da=mi.onItemHover,ha=mi.onTitleMouseEnter;da({key:yi,hover:!0}),ha({key:yi,domEvent:Jn})},ur.onTitleMouseLeave=function(Jn){var mi=ur.props,yi=mi.parentMenu,da=mi.eventKey,ha=mi.onItemHover,Pa=mi.onTitleMouseLeave;yi.subMenuInstance=Object(ce.a)(ur),ha({key:da,hover:!1}),Pa({key:da,domEvent:Jn})},ur.onTitleClick=function(Jn){var mi=Object(ce.a)(ur),yi=mi.props;if(yi.onTitleClick({key:yi.eventKey,domEvent:Jn}),yi.triggerSubMenuAction==="hover")return;ur.triggerOpenChange(!ur.getVisible(),"click"),wt(yi.store,ur.props.eventKey,!1)},ur.onSubMenuClick=function(Jn){typeof ur.props.onClick=="function"&&ur.props.onClick(ur.addKeyPath(Jn))},ur.onSelect=function(Jn){ur.props.onSelect(Jn)},ur.onDeselect=function(Jn){ur.props.onDeselect(Jn)},ur.getPrefixCls=function(){return"".concat(ur.props.rootPrefixCls,"-submenu")},ur.getActiveClassName=function(){return"".concat(ur.getPrefixCls(),"-active")},ur.getDisabledClassName=function(){return"".concat(ur.getPrefixCls(),"-disabled")},ur.getSelectedClassName=function(){return"".concat(ur.getPrefixCls(),"-selected")},ur.getOpenClassName=function(){return"".concat(ur.props.rootPrefixCls,"-submenu-open")},ur.getVisible=function(){return ur.state.isOpen},ur.getMode=function(){return ur.state.mode},ur.saveMenuInstance=function(Jn){ur.menuInstance=Jn},ur.addKeyPath=function(Jn){return Object(r.a)(Object(r.a)({},Jn),{},{keyPath:(Jn.keyPath||[]).concat(ur.props.eventKey)})},ur.triggerOpenChange=function(Jn,mi){var yi=ur.props.eventKey,da=function(){ur.onOpenChange({key:yi,item:Object(ce.a)(ur),trigger:mi,open:Jn})};mi==="mouseenter"?ur.mouseenterTimeout=setTimeout(function(){da()},0):da()},ur.isChildrenSelected=function(){var Jn={find:!1};return Hr(ur.props.children,ur.props.selectedKeys,Jn),Jn.find},ur.isInlineMode=function(){return ur.getMode()==="inline"},ur.adjustWidth=function(){if(!ur.subMenuTitle||!ur.menuInstance)return;var Jn=N.findDOMNode(ur.menuInstance);if(Jn.offsetWidth>=ur.subMenuTitle.offsetWidth)return;Jn.style.minWidth="".concat(ur.subMenuTitle.offsetWidth,"px")},ur.saveSubMenuTitle=function(Jn){ur.subMenuTitle=Jn},ur.getBaseProps=function(){var Jn=Object(ce.a)(ur),mi=Jn.props,yi=ur.getMode();return{mode:yi==="horizontal"?"vertical":yi,visible:ur.getVisible(),level:mi.level+1,inlineIndent:mi.inlineIndent,focusable:!1,onClick:ur.onSubMenuClick,onSelect:ur.onSelect,onDeselect:ur.onDeselect,onDestroy:ur.onDestroy,selectedKeys:mi.selectedKeys,eventKey:"".concat(mi.eventKey,"-menu-"),openKeys:mi.openKeys,motion:mi.motion,onOpenChange:ur.onOpenChange,subMenuOpenDelay:mi.subMenuOpenDelay,parentMenu:Object(ce.a)(ur),subMenuCloseDelay:mi.subMenuCloseDelay,forceSubMenuRender:mi.forceSubMenuRender,triggerSubMenuAction:mi.triggerSubMenuAction,builtinPlacements:mi.builtinPlacements,defaultActiveFirst:mi.store.getState().defaultActiveFirst[Ut(mi.eventKey)],multiple:mi.multiple,prefixCls:mi.rootPrefixCls,id:ur.internalMenuId,manualRef:ur.saveMenuInstance,itemIcon:mi.itemIcon,expandIcon:mi.expandIcon,direction:mi.direction}},ur.getMotion=function(Jn,mi){var yi=Object(ce.a)(ur),da=yi.haveRendered,ha=ur.props,Pa=ha.motion,Ra=ha.rootPrefixCls,so=Object(r.a)(Object(r.a)({},Pa),{},{leavedClassName:"".concat(Ra,"-hidden"),removeOnLeave:!1,motionAppear:da||!mi||Jn!=="inline"});return so};var on=en.store,Bn=en.eventKey,Hn=on.getState(),Ii=Hn.defaultActiveFirst;ur.isRootMenu=!1;var Ci=!1;return Ii&&(Ci=Ii[Bn]),wt(on,Bn,Ci),ur.state={mode:en.mode,isOpen:en.isOpen},ur}return Object(_.a)(En,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ur=this,on=this.props,Bn=on.mode,Hn=on.parentMenu,Ii=on.manualRef,Ci=on.isOpen,Jn=function(){ur.setState({mode:Bn,isOpen:Ci})},mi=Ci!==this.state.isOpen,yi=Bn!==this.state.mode;if((yi||mi)&&(Pe.cancel(this.updateStateRaf),yi?this.updateStateRaf=Pe(Jn):Jn()),Ii&&Ii(this),Bn!=="horizontal"||!(Hn==null?void 0:Hn.isRootMenu)||!Ci)return;this.minWidthTimeout=setTimeout(function(){return ur.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ur=this.props,on=ur.onDestroy,Bn=ur.eventKey;on&&on(Bn),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Pe.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(ur,on){var Bn=this.getBaseProps();return S.createElement(Xn,Object(Ie.a)({},Bn,{id:this.internalMenuId,className:ur,style:on}),this.props.children)}},{key:"renderChildren",value:function(){var ur=this,on=this.getBaseProps(),Bn=on.mode,Hn=on.visible,Ii=on.forceSubMenuRender,Ci=on.direction,Jn=this.getMotion(Bn,Hn);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Hn||Ii,!this.haveOpened)return S.createElement("div",null);var mi=n()("".concat(on.prefixCls,"-sub"),Object(f.a)({},"".concat(on.prefixCls,"-rtl"),Ci==="rtl"));return this.isInlineMode()?S.createElement(nt.b,Object(Ie.a)({visible:on.visible,forceRender:Ii},Jn),function(yi){var da=yi.className,ha=yi.style,Pa=n()(mi,da);return ur.renderPopupMenu(Pa,ha)}):this.renderPopupMenu(mi)}},{key:"render",value:function(){var ur,on,Bn,Hn=Object(r.a)({},this.props),Ii=this.getVisible(),Ci=this.getPrefixCls(),Jn=this.isInlineMode(),mi=this.getMode(),yi=n()(Ci,"".concat(Ci,"-").concat(mi),(ur={},Object(f.a)(ur,Hn.className,!!Hn.className),Object(f.a)(ur,this.getOpenClassName(),Ii),Object(f.a)(ur,this.getActiveClassName(),Hn.active||Ii&&!Jn),Object(f.a)(ur,this.getDisabledClassName(),Hn.disabled),Object(f.a)(ur,this.getSelectedClassName(),this.isChildrenSelected()),ur));this.internalMenuId||(Hn.eventKey?this.internalMenuId="".concat(Hn.eventKey,"$Menu"):(gr+=1,this.internalMenuId="$__$".concat(gr,"$Menu")));var da={},ha={},Pa={};Hn.disabled||(da={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},ha={onClick:this.onTitleClick},Pa={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Ra={},so=Hn.direction,La=so==="rtl";Jn&&(La?Ra.paddingRight=Hn.inlineIndent*Hn.level:Ra.paddingLeft=Hn.inlineIndent*Hn.level);var lo={};this.getVisible()&&(lo={"aria-owns":this.internalMenuId});var So=null;mi!=="horizontal"&&(So=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(So=S.createElement(this.props.expandIcon,Object(r.a)({},this.props))));var Xt=S.createElement("div",Object(Ie.a)({ref:this.saveSubMenuTitle,style:Ra,className:"".concat(Ci,"-title"),role:"button"},Pa,ha,{"aria-expanded":Ii},lo,{"aria-haspopup":"true",title:typeof Hn.title=="string"?Hn.title:void 0}),Hn.title,So||S.createElement("i",{className:"".concat(Ci,"-arrow")})),zr=this.renderChildren(),un=((on=Hn.parentMenu)===null||on===void 0?void 0:on.isRootMenu)?Hn.parentMenu.props.getPopupContainer:function(Jr){return Jr.parentNode},vn=kr[mi],ni=Hn.popupOffset?{offset:Hn.popupOffset}:{},li=n()((Bn={},Object(f.a)(Bn,Hn.popupClassName,Hn.popupClassName&&!Jn),Object(f.a)(Bn,"".concat(Ci,"-rtl"),La),Bn)),fi=Hn.disabled,di=Hn.triggerSubMenuAction,Yt=Hn.subMenuOpenDelay,Et=Hn.forceSubMenuRender,yr=Hn.subMenuCloseDelay,ct=Hn.builtinPlacements;mn.forEach(function(Jr){return delete Hn[Jr]}),delete Hn.onClick;var Zt=La?Object(r.a)(Object(r.a)({},bt),ct):Object(r.a)(Object(r.a)({},Dt),ct);delete Hn.direction;var dr=this.getBaseProps(),Lr=Jn?null:this.getMotion(dr.mode,dr.visible);return S.createElement("li",Object(Ie.a)({},Hn,da,{className:yi,role:"menuitem"}),S.createElement(wn.a,{prefixCls:Ci,popupClassName:n()("".concat(Ci,"-popup"),li),getPopupContainer:un,builtinPlacements:Zt,popupPlacement:vn,popupVisible:Jn?!1:Ii,popupAlign:ni,popup:Jn?null:zr,action:fi||Jn?[]:[di],mouseEnterDelay:Yt,mouseLeaveDelay:yr,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Et,popupMotion:Lr},Xt),Jn?zr:null)}}]),En}(S.Component);rt.defaultProps={onMouseEnter:lr,onMouseLeave:lr,onTitleMouseEnter:lr,onTitleMouseLeave:lr,onTitleClick:lr,manualRef:lr,mode:"vertical",title:""};var tt=Object(Ae.b)(function(Nr,rn){var En=Nr.openKeys,en=Nr.activeKey,ur=Nr.selectedKeys,on=rn.eventKey,Bn=rn.subMenuKey;return{isOpen:En.indexOf(on)>-1,active:en[Bn]===on,selectedKeys:ur}})(rt);tt.isSubMenu=!0;var Rt=tt,Ft="menuitem-overflowed",At=.5,Wt=function(Nr){Object(I.a)(En,Nr);var rn=Object(L.a)(En);function En(){var en;return Object(w.a)(this,En),en=rn.apply(this,arguments),en.resizeObserver=null,en.mutationObserver=null,en.originalTotalWidth=0,en.overflowedItems=[],en.menuItemSizes=[],en.cancelFrameId=null,en.state={lastVisibleIndex:void 0},en.childRef=S.createRef(),en.getMenuItemNodes=function(){var ur=en.props.prefixCls,on=en.childRef.current;return on?[].slice.call(on.children).filter(function(Bn){return Bn.className.split(" ").indexOf("".concat(ur,"-overflowed-submenu"))<0}):[]},en.getOverflowedSubMenuItem=function(ur,on,Bn){var Hn=en.props,Ii=Hn.overflowedIndicator,Ci=Hn.level,Jn=Hn.mode,mi=Hn.prefixCls,yi=Hn.theme;if(Ci!==1||Jn!=="horizontal")return null;var da=en.props.children[0],ha=da.props,Pa=ha.children,Ra=ha.title,so=ha.style,La=Object(o.a)(ha,["children","title","style"]),lo=Object(r.a)({},so),So="".concat(ur,"-overflowed-indicator"),Xt="".concat(ur,"-overflowed-indicator");on.length===0&&Bn!==!0?lo=Object(r.a)(Object(r.a)({},lo),{},{display:"none"}):Bn&&(lo=Object(r.a)(Object(r.a)({},lo),{},{visibility:"hidden",position:"absolute"}),So="".concat(So,"-placeholder"),Xt="".concat(Xt,"-placeholder"));var zr=yi?"".concat(mi,"-").concat(yi):"",un={};return mn.forEach(function(vn){La[vn]!==void 0&&(un[vn]=La[vn])}),S.createElement(Rt,Object(Ie.a)({title:Ii,className:"".concat(mi,"-overflowed-submenu"),popupClassName:zr},un,{key:So,eventKey:Xt,disabled:!1,style:lo}),on)},en.setChildrenWidthAndResize=function(){if(en.props.mode!=="horizontal")return;var ur=en.childRef.current;if(!ur)return;var on=ur.children;if(!on||on.length===0)return;var Bn=ur.children[on.length-1];Yn(Bn,"display","inline-block");var Hn=en.getMenuItemNodes(),Ii=Hn.filter(function(Ci){return Ci.className.split(" ").indexOf(Ft)>=0});Ii.forEach(function(Ci){Yn(Ci,"display","inline-block")}),en.menuItemSizes=Hn.map(function(Ci){return In(Ci,!0)}),Ii.forEach(function(Ci){Yn(Ci,"display","none")}),en.overflowedIndicatorWidth=In(ur.children[ur.children.length-1],!0),en.originalTotalWidth=en.menuItemSizes.reduce(function(Ci,Jn){return Ci+Jn},0),en.handleResize(),Yn(Bn,"display","none")},en.handleResize=function(){if(en.props.mode!=="horizontal")return;var ur=en.childRef.current;if(!ur)return;var on=In(ur);en.overflowedItems=[];var Bn=0,Hn;en.originalTotalWidth>on+At&&(Hn=-1,en.menuItemSizes.forEach(function(Ii){Bn+=Ii,Bn+en.overflowedIndicatorWidth<=on&&(Hn+=1)})),en.setState({lastVisibleIndex:Hn})},en}return Object(_.a)(En,[{key:"componentDidMount",value:function(){var ur=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var on=this.childRef.current;if(!on)return;this.resizeObserver=new _e.default(function(Bn){Bn.forEach(function(){var Hn=ur.cancelFrameId;cancelAnimationFrame(Hn),ur.cancelFrameId=requestAnimationFrame(ur.setChildrenWidthAndResize)})}),[].slice.call(on.children).concat(on).forEach(function(Bn){ur.resizeObserver.observe(Bn)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ur.resizeObserver.disconnect(),[].slice.call(on.children).concat(on).forEach(function(Bn){ur.resizeObserver.observe(Bn)}),ur.setChildrenWidthAndResize()}),this.mutationObserver.observe(on,{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(ur){var on=this,Bn=this.state.lastVisibleIndex;return(ur||[]).reduce(function(Hn,Ii,Ci){var Jn=Ii;if(on.props.mode==="horizontal"){var mi=on.getOverflowedSubMenuItem(Ii.props.eventKey,[]);Bn!==void 0&&on.props.className.indexOf("".concat(on.props.prefixCls,"-root"))!==-1&&(Ci>Bn&&(Jn=S.cloneElement(Ii,{style:{display:"none"},eventKey:"".concat(Ii.props.eventKey,"-hidden"),className:"".concat(Ft)})),Ci===Bn+1&&(on.overflowedItems=ur.slice(Bn+1).map(function(da){return S.cloneElement(da,{key:da.props.eventKey,mode:"vertical-left"})}),mi=on.getOverflowedSubMenuItem(Ii.props.eventKey,on.overflowedItems)));var yi=[].concat(Object(E.a)(Hn),[mi,Jn]);return Ci===ur.length-1&&yi.push(on.getOverflowedSubMenuItem(Ii.props.eventKey,[],!0)),yi}return[].concat(Object(E.a)(Hn),[Jn])},[])}},{key:"render",value:function(){var ur=this.props,on=ur.visible,Bn=ur.prefixCls,Hn=ur.overflowedIndicator,Ii=ur.mode,Ci=ur.level,Jn=ur.tag,mi=ur.children,yi=ur.theme,da=Object(o.a)(ur,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),ha=Jn;return S.createElement(ha,Object(Ie.a)({ref:this.childRef},da),this.renderChildren(mi))}}]),En}(S.Component);Wt.defaultProps={tag:"div",className:""};var ot=Wt;function Bt(Nr){return Nr.length?Nr.every(function(rn){return!!rn.props.disabled}):!0}function Ar(Nr,rn,En){var en=Nr.getState();Nr.setState({activeKey:Object(r.a)(Object(r.a)({},en.activeKey),{},Object(f.a)({},rn,En))})}function rr(Nr){return Nr.eventKey||"0-menu-"}function pr(Nr,rn){var En=rn,en=Nr.children,ur=Nr.eventKey;if(En){var on;if(st(en,function(Bn,Hn){Bn&&Bn.props&&!Bn.props.disabled&&En===zt(Bn,ur,Hn)&&(on=!0)}),on)return En}return En=null,Nr.defaultActiveFirst&&st(en,function(Bn,Hn){!En&&Bn&&!Bn.props.disabled&&(En=zt(Bn,ur,Hn))}),En}function tn(Nr){if(!Nr)return;var rn=this.instanceArray.indexOf(Nr);rn!==-1?this.instanceArray[rn]=Nr:this.instanceArray.push(Nr)}var hn=function(Nr){Object(I.a)(En,Nr);var rn=Object(L.a)(En);function En(en){var ur;return Object(w.a)(this,En),ur=rn.call(this,en),ur.onKeyDown=function(on,Bn){var Hn=on.keyCode,Ii;if(ur.getFlatInstanceArray().forEach(function(Jn){Jn&&Jn.props.active&&Jn.onKeyDown&&(Ii=Jn.onKeyDown(on))}),Ii)return 1;var Ci=null;return(Hn===gt.UP||Hn===gt.DOWN)&&(Ci=ur.step(Hn===gt.UP?-1:1)),Ci?(on.preventDefault(),Ar(ur.props.store,rr(ur.props),Ci.props.eventKey),typeof Bn=="function"&&Bn(Ci),1):void 0},ur.onItemHover=function(on){var Bn=on.key,Hn=on.hover;Ar(ur.props.store,rr(ur.props),Hn?Bn:null)},ur.onDeselect=function(on){ur.props.onDeselect(on)},ur.onSelect=function(on){ur.props.onSelect(on)},ur.onClick=function(on){ur.props.onClick(on)},ur.onOpenChange=function(on){ur.props.onOpenChange(on)},ur.onDestroy=function(on){ur.props.onDestroy(on)},ur.getFlatInstanceArray=function(){return ur.instanceArray},ur.step=function(on){var Bn=ur.getFlatInstanceArray(),Hn=ur.props.store.getState().activeKey[rr(ur.props)],Ii=Bn.length;if(!Ii)return null;on<0&&(Bn=Bn.concat().reverse());var Ci=-1;if(Bn.every(function(da,ha){return da&&da.props.eventKey===Hn?(Ci=ha,!1):!0}),!ur.props.defaultActiveFirst&&Ci!==-1&&Bt(Bn.slice(Ci,Ii-1)))return;var Jn=(Ci+1)%Ii,mi=Jn;do{var yi=Bn[mi];if(!yi||yi.props.disabled)mi=(mi+1)%Ii;else return yi}while(mi!==Jn);return null},ur.renderCommonMenuItem=function(on,Bn,Hn){var Ii=ur.props.store.getState(),Ci=Object(ce.a)(ur),Jn=Ci.props,mi=zt(on,Jn.eventKey,Bn),yi=on.props;if(!yi||typeof on.type=="string")return on;var da=mi===Ii.activeKey,ha=Object(r.a)(Object(r.a)({mode:yi.mode||Jn.mode,level:Jn.level,inlineIndent:Jn.inlineIndent,renderMenuItem:ur.renderMenuItem,rootPrefixCls:Jn.prefixCls,index:Bn,parentMenu:Jn.parentMenu,manualRef:yi.disabled?void 0:qe(on.ref,tn.bind(Object(ce.a)(ur))),eventKey:mi,active:!yi.disabled&&da,multiple:Jn.multiple,onClick:function(Ra){(yi.onClick||lr)(Ra),ur.onClick(Ra)},onItemHover:ur.onItemHover,motion:Jn.motion,subMenuOpenDelay:Jn.subMenuOpenDelay,subMenuCloseDelay:Jn.subMenuCloseDelay,forceSubMenuRender:Jn.forceSubMenuRender,onOpenChange:ur.onOpenChange,onDeselect:ur.onDeselect,onSelect:ur.onSelect,builtinPlacements:Jn.builtinPlacements,itemIcon:yi.itemIcon||ur.props.itemIcon,expandIcon:yi.expandIcon||ur.props.expandIcon},Hn),{},{direction:Jn.direction});return(Jn.mode==="inline"||Mi())&&(ha.triggerSubMenuAction="click"),S.cloneElement(on,Object(r.a)(Object(r.a)({},ha),{},{key:mi||Bn}))},ur.renderMenuItem=function(on,Bn,Hn){if(!on)return null;var Ii=ur.props.store.getState(),Ci={openKeys:Ii.openKeys,selectedKeys:Ii.selectedKeys,triggerSubMenuAction:ur.props.triggerSubMenuAction,subMenuKey:Hn};return ur.renderCommonMenuItem(on,Bn,Ci)},en.store.setState({activeKey:Object(r.a)(Object(r.a)({},en.store.getState().activeKey),{},Object(f.a)({},en.eventKey,pr(en,en.activeKey)))}),ur.instanceArray=[],ur}return Object(_.a)(En,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(ur){return this.props.visible||ur.visible||this.props.className!==ur.className||!$e()(this.props.style,ur.style)}},{key:"componentDidUpdate",value:function(ur){var on=this.props,Bn="activeKey"in on?on.activeKey:on.store.getState().activeKey[rr(on)],Hn=pr(on,Bn);if(Hn!==Bn)Ar(on.store,rr(on),Hn);else if("activeKey"in ur){var Ii=pr(ur,ur.activeKey);Hn!==Ii&&Ar(on.store,rr(on),Hn)}}},{key:"render",value:function(){var ur=this,on=Object(Ie.a)({},this.props);this.instanceArray=[];var Bn=n()(on.prefixCls,on.className,"".concat(on.prefixCls,"-").concat(on.mode)),Hn={className:Bn,role:on.role||"menu"};on.id&&(Hn.id=on.id),on.focusable&&(Hn.tabIndex=0,Hn.onKeyDown=this.onKeyDown);var Ii=on.prefixCls,Ci=on.eventKey,Jn=on.visible,mi=on.level,yi=on.mode,da=on.overflowedIndicator,ha=on.theme;return mn.forEach(function(Pa){return delete on[Pa]}),delete on.onClick,S.createElement(ot,Object(Ie.a)({},on,{prefixCls:Ii,mode:yi,tag:"ul",level:mi,theme:ha,visible:Jn,overflowedIndicator:da},Hn),Le(on.children).map(function(Pa,Ra){return ur.renderMenuItem(Pa,Ra,Ci||"0-menu-")}))}}]),En}(S.Component);hn.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:lr};var Mn=Object(Ae.b)()(hn),Xn=Mn,si={};function vi(Nr,rn){}function xi(Nr,rn){}function _i(){si={}}function Qe(Nr,rn,En){!rn&&!si[En]&&(Nr(!1,En),si[En]=!0)}function we(Nr,rn){Qe(vi,Nr,rn)}function Ne(Nr,rn){Qe(xi,Nr,rn)}var Fe=we;function Ye(Nr,rn,En){var en=Nr.prefixCls,ur=Nr.motion,on=Nr.defaultMotions,Bn=on===void 0?{}:on,Hn=Nr.openAnimation,Ii=Nr.openTransitionName,Ci=rn.switchingModeFromInline;if(ur)return ur;if(Object(J.a)(Hn)==="object"&&Hn)Fe(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Hn=="string")return{motionName:"".concat(en,"-open-").concat(Hn)};if(Ii)return{motionName:Ii};var Jn=Bn[En];return Jn||(Ci?null:Bn.other)}var We=function(Nr){Object(I.a)(En,Nr);var rn=Object(L.a)(En);function En(en){var ur;Object(w.a)(this,En),ur=rn.call(this,en),ur.onSelect=function(Hn){var Ii=Object(ce.a)(ur),Ci=Ii.props;if(Ci.selectable){var Jn=ur.store.getState(),mi=Jn.selectedKeys,yi=Hn.key;Ci.multiple?mi=mi.concat([yi]):mi=[yi],"selectedKeys"in Ci||ur.store.setState({selectedKeys:mi}),Ci.onSelect(Object(r.a)(Object(r.a)({},Hn),{},{selectedKeys:mi}))}},ur.onClick=function(Hn){var Ii=ur.getRealMenuMode(),Ci=Object(ce.a)(ur),Jn=Ci.store,mi=Ci.props.onOpenChange;Ii!=="inline"&&!("openKeys"in ur.props)&&(Jn.setState({openKeys:[]}),mi([])),ur.props.onClick(Hn)},ur.onKeyDown=function(Hn,Ii){ur.innerMenu.getWrappedInstance().onKeyDown(Hn,Ii)},ur.onOpenChange=function(Hn){var Ii=Object(ce.a)(ur),Ci=Ii.props,Jn=ur.store.getState().openKeys.concat(),mi=!1,yi=function(ha){var Pa=!1;if(ha.open)Pa=Jn.indexOf(ha.key)===-1,Pa&&Jn.push(ha.key);else{var Ra=Jn.indexOf(ha.key);Pa=Ra!==-1,Pa&&Jn.splice(Ra,1)}mi=mi||Pa};Array.isArray(Hn)?Hn.forEach(yi):yi(Hn),mi&&("openKeys"in ur.props||ur.store.setState({openKeys:Jn}),Ci.onOpenChange(Jn))},ur.onDeselect=function(Hn){var Ii=Object(ce.a)(ur),Ci=Ii.props;if(Ci.selectable){var Jn=ur.store.getState().selectedKeys.concat(),mi=Hn.key,yi=Jn.indexOf(mi);yi!==-1&&Jn.splice(yi,1),"selectedKeys"in Ci||ur.store.setState({selectedKeys:Jn}),Ci.onDeselect(Object(r.a)(Object(r.a)({},Hn),{},{selectedKeys:Jn}))}},ur.onMouseEnter=function(Hn){ur.restoreModeVerticalFromInline();var Ii=ur.props.onMouseEnter;Ii&&Ii(Hn)},ur.onTransitionEnd=function(Hn){var Ii=Hn.propertyName==="width"&&Hn.target===Hn.currentTarget,Ci=Hn.target.className,Jn=Object.prototype.toString.call(Ci)==="[object SVGAnimatedString]"?Ci.animVal:Ci,mi=Hn.propertyName==="font-size"&&Jn.indexOf("anticon")>=0;(Ii||mi)&&ur.restoreModeVerticalFromInline()},ur.setInnerMenu=function(Hn){ur.innerMenu=Hn},ur.isRootMenu=!0;var on=en.defaultSelectedKeys,Bn=en.defaultOpenKeys;return"selectedKeys"in en&&(on=en.selectedKeys||[]),"openKeys"in en&&(Bn=en.openKeys||[]),ur.store=Object(Ae.c)({selectedKeys:on,openKeys:Bn,activeKey:{"0-menu-":pr(en,en.activeKey)}}),ur.state={switchingModeFromInline:!1,prevProps:en,inlineOpenKeys:[],store:ur.store},ur}return Object(_.a)(En,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ur){var on=this.props,Bn=on.siderCollapsed,Hn=on.inlineCollapsed,Ii=on.onOpenChange;(!ur.inlineCollapsed&&Hn||!ur.siderCollapsed&&Bn)&&Ii([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var ur=this.props.collapsedWidth,on=this.store,Bn=this.prevOpenKeys,Hn=this.getInlineCollapsed()&&(ur===0||ur==="0"||ur==="0px");Hn?(this.prevOpenKeys=on.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Bn&&(this.store.setState({openKeys:Bn}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ur=this.props.mode,on=this.state.switchingModeFromInline,Bn=this.getInlineCollapsed();return on&&Bn?"inline":Bn?"vertical":ur}},{key:"getInlineCollapsed",value:function(){var ur=this.props,on=ur.inlineCollapsed,Bn=ur.siderCollapsed;return Bn!==void 0?Bn:on}},{key:"restoreModeVerticalFromInline",value:function(){var ur=this.state.switchingModeFromInline;ur&&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 ur=Object(r.a)({},Te(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),on=this.getRealMenuMode();return ur.className+=" ".concat(ur.prefixCls,"-root"),ur.direction==="rtl"&&(ur.className+=" ".concat(ur.prefixCls,"-rtl")),ur=Object(r.a)(Object(r.a)({},ur),{},{mode:on,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ye(this.props,this.state,on)}),delete ur.openAnimation,delete ur.openTransitionName,S.createElement(Ae.a,{store:this.store},S.createElement(Xn,Object(Ie.a)({},ur,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(ur,on){var Bn=on.prevProps,Hn=on.store,Ii=Hn.getState(),Ci={},Jn={prevProps:ur};return Bn.mode==="inline"&&ur.mode!=="inline"&&(Jn.switchingModeFromInline=!0),"openKeys"in ur?Ci.openKeys=ur.openKeys||[]:((ur.inlineCollapsed&&!Bn.inlineCollapsed||ur.siderCollapsed&&!Bn.siderCollapsed)&&(Jn.switchingModeFromInline=!0,Jn.inlineOpenKeys=Ii.openKeys,Ci.openKeys=[]),(!ur.inlineCollapsed&&Bn.inlineCollapsed||!ur.siderCollapsed&&Bn.siderCollapsed)&&(Ci.openKeys=on.inlineOpenKeys,Jn.inlineOpenKeys=[])),Object.keys(Ci).length&&Hn.setState(Ci),Jn}}]),En}(S.Component);We.defaultProps={selectable:!0,onClick:lr,onSelect:lr,onOpenChange:lr,onDeselect:lr,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:S.createElement("span",null,"\xB7\xB7\xB7")};var Ze=We,mt=function(Nr){Object(I.a)(En,Nr);var rn=Object(L.a)(En);function En(){var en;return Object(w.a)(this,En),en=rn.apply(this,arguments),en.onKeyDown=function(ur){var on=ur.keyCode;return on===gt.ENTER?(en.onClick(ur),!0):void 0},en.onMouseLeave=function(ur){var on=en.props,Bn=on.eventKey,Hn=on.onItemHover,Ii=on.onMouseLeave;Hn({key:Bn,hover:!1}),Ii({key:Bn,domEvent:ur})},en.onMouseEnter=function(ur){var on=en.props,Bn=on.eventKey,Hn=on.onItemHover,Ii=on.onMouseEnter;Hn({key:Bn,hover:!0}),Ii({key:Bn,domEvent:ur})},en.onClick=function(ur){var on=en.props,Bn=on.eventKey,Hn=on.multiple,Ii=on.onClick,Ci=on.onSelect,Jn=on.onDeselect,mi=on.isSelected,yi={key:Bn,keyPath:[Bn],item:Object(ce.a)(en),domEvent:ur};Ii(yi),Hn?mi?Jn(yi):Ci(yi):mi||Ci(yi)},en.saveNode=function(ur){en.node=ur},en}return Object(_.a)(En,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var ur=this.props;ur.onDestroy&&ur.onDestroy(ur.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 ur,on=Object(r.a)({},this.props),Bn=n()(this.getPrefixCls(),on.className,(ur={},Object(f.a)(ur,this.getActiveClassName(),!on.disabled&&on.active),Object(f.a)(ur,this.getSelectedClassName(),on.isSelected),Object(f.a)(ur,this.getDisabledClassName(),on.disabled),ur)),Hn=Object(r.a)(Object(r.a)({},on.attribute),{},{title:typeof on.title=="string"?on.title:void 0,className:Bn,role:on.role||"menuitem","aria-disabled":on.disabled});on.role==="option"?Hn=Object(r.a)(Object(r.a)({},Hn),{},{role:"option","aria-selected":on.isSelected}):(on.role===null||on.role==="none")&&(Hn.role="none");var Ii={onClick:on.disabled?null:this.onClick,onMouseLeave:on.disabled?null:this.onMouseLeave,onMouseEnter:on.disabled?null:this.onMouseEnter},Ci=Object(r.a)({},on.style);on.mode==="inline"&&(on.direction==="rtl"?Ci.paddingRight=on.inlineIndent*on.level:Ci.paddingLeft=on.inlineIndent*on.level),mn.forEach(function(mi){return delete on[mi]}),delete on.direction;var Jn=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Jn=S.createElement(this.props.itemIcon,this.props)),S.createElement("li",Object(Ie.a)({},Te(on,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Hn,Ii,{style:Ci,ref:this.saveNode}),on.children,Jn)}}]),En}(S.Component);mt.isMenuItem=!0,mt.defaultProps={onSelect:lr,onMouseEnter:lr,onMouseLeave:lr,manualRef:lr};var it=Object(Ae.b)(function(Nr,rn){var En=Nr.activeKey,en=Nr.selectedKeys,ur=rn.eventKey,on=rn.subMenuKey;return{active:En[on]===ur,isSelected:Array.isArray(en)?en.indexOf(ur)!==-1:en===ur}})(mt),Jt=it,Dr=function(Nr){Object(I.a)(En,Nr);var rn=Object(L.a)(En);function En(){var en;return Object(w.a)(this,En),en=rn.apply(this,arguments),en.renderInnerMenuItem=function(ur){var on=en.props,Bn=on.renderMenuItem,Hn=on.index;return Bn(ur,Hn,en.props.subMenuKey)},en}return Object(_.a)(En,[{key:"render",value:function(){var ur=Object(Ie.a)({},this.props),on=ur.className,Bn=on===void 0?"":on,Hn=ur.rootPrefixCls,Ii="".concat(Hn,"-item-group-title"),Ci="".concat(Hn,"-item-group-list"),Jn=ur.title,mi=ur.children;return mn.forEach(function(yi){return delete ur[yi]}),delete ur.direction,S.createElement("li",Object(Ie.a)({},ur,{onClick:function(da){return da.stopPropagation()},className:"".concat(Bn," ").concat(Hn,"-item-group")}),S.createElement("div",{className:Ii,title:typeof Jn=="string"?Jn:void 0},Jn),S.createElement("ul",{className:Ci},S.Children.map(mi,this.renderInnerMenuItem)))}}]),En}(S.Component);Dr.isMenuItemGroup=!0,Dr.defaultProps={disabled:!0};var Sr=Dr,Br=function(rn){var En=rn.className,en=rn.rootPrefixCls,ur=rn.style;return S.createElement("li",{className:"".concat(En," ").concat(en,"-item-divider"),style:ur})};Br.defaultProps={disabled:!0,className:"",style:{}};var $t=Br,gn=Ze,or={adjustX:1,adjustY:1},ln=[0,0],an={topLeft:{points:["bl","tl"],overflow:or,offset:[0,-4],targetOffset:ln},topCenter:{points:["bc","tc"],overflow:or,offset:[0,-4],targetOffset:ln},topRight:{points:["br","tr"],overflow:or,offset:[0,-4],targetOffset:ln},bottomLeft:{points:["tl","bl"],overflow:or,offset:[0,4],targetOffset:ln},bottomCenter:{points:["tc","bc"],overflow:or,offset:[0,4],targetOffset:ln},bottomRight:{points:["tr","br"],overflow:or,offset:[0,4],targetOffset:ln}},Rr=an,On={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(rn){var En=rn.keyCode;if(rn.altKey&&!rn.ctrlKey||rn.metaKey||En>=On.F1&&En<=On.F12)return!1;switch(En){case On.ALT:case On.CAPS_LOCK:case On.CONTEXT_MENU:case On.CTRL:case On.DOWN:case On.END:case On.ESC:case On.HOME:case On.INSERT:case On.LEFT:case On.MAC_FF_META:case On.META:case On.NUMLOCK:case On.NUM_CENTER:case On.PAGE_DOWN:case On.PAGE_UP:case On.PAUSE:case On.PRINT_SCREEN:case On.RIGHT:case On.SHIFT:case On.UP:case On.WIN_KEY:case On.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(rn){if(rn>=On.ZERO&&rn<=On.NINE)return!0;if(rn>=On.NUM_ZERO&&rn<=On.NUM_MULTIPLY)return!0;if(rn>=On.A&&rn<=On.Z)return!0;if(window.navigator.userAgent.indexOf("WebKit")!==-1&&rn===0)return!0;switch(rn){case On.SPACE:case On.QUESTION_MARK:case On.NUM_PLUS:case On.NUM_MINUS:case On.NUM_PERIOD:case On.NUM_DIVISION:case On.SEMICOLON:case On.DASH:case On.EQUALS:case On.COMMA:case On.PERIOD:case On.SLASH:case On.APOSTROPHE:case On.SINGLE_QUOTE:case On.OPEN_SQUARE_BRACKET:case On.BACKSLASH:case On.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ci=On,Ui=function(rn){return+setTimeout(rn,16)},ki=function(rn){return clearTimeout(rn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Ui=function(rn){return window.requestAnimationFrame(rn)},ki=function(rn){return window.cancelAnimationFrame(rn)});var Di=0,Ki=new Map;function Ur(Nr){Ki.delete(Nr)}function Tn(Nr){var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Di+=1;var En=Di;function en(ur){if(ur===0)Ur(En),Nr();else{var on=Ui(function(){en(ur-1)});Ki.set(En,on)}}return en(rn),En}Tn.cancel=function(Nr){var rn=Ki.get(Nr);return Ur(rn),ki(rn)};var Mr=ci.ESC,mr=ci.TAB;function Cr(Nr){var rn=Nr.visible,En=Nr.setTriggerVisible,en=Nr.triggerRef,ur=Nr.menuRef,on=Nr.onVisibleChange,Bn=Nr.autoFocus,Hn=S.useRef(!1),Ii=function(){if(rn&&en.current){var yi,da,ha,Pa;(yi=en.current)===null||yi===void 0||((da=yi.triggerRef)===null||da===void 0||((ha=da.current)===null||ha===void 0||((Pa=ha.focus)===null||Pa===void 0)))||Pa.call(ha),En(!1),typeof on=="function"&&on(!1)}},Ci=function(){var yi,da;(yi=ur.current)===null||yi===void 0||((da=yi.focus)===null||da===void 0)||da.call(yi),Hn.current=!0},Jn=function(yi){var da;switch(yi.keyCode){case Mr:Ii();break;case mr:!Hn.current&&((da=ur.current)===null||da===void 0?void 0:da.focus)?(yi.preventDefault(),Ci()):Ii();break}};S.useEffect(function(){return rn?(window.addEventListener("keydown",Jn),Bn&&Tn(Ci,3),function(){window.removeEventListener("keydown",Jn),Hn.current=!1}):function(){Hn.current=!1}},[rn])}function Lt(Nr,rn,En){var en=S.useRef({});return(!("value"in en.current)||En(en.current.condition,rn))&&(en.current.value=Nr(),en.current.condition=rn),en.current.value}function wr(Nr,rn){typeof Nr=="function"?Nr(rn):Object(J.a)(Nr)==="object"&&Nr&&"current"in Nr&&(Nr.current=rn)}function Vr(){for(var Nr=arguments.length,rn=new Array(Nr),En=0;En<Nr;En++)rn[En]=arguments[En];var en=rn.filter(function(ur){return ur});return en.length<=1?en[0]:function(ur){rn.forEach(function(on){wr(on,ur)})}}function jr(){for(var Nr=arguments.length,rn=new Array(Nr),En=0;En<Nr;En++)rn[En]=arguments[En];return Lt(function(){return Vr.apply(void 0,rn)},rn,function(en,ur){return en.length===ur.length&&en.every(function(on,Bn){return on===ur[Bn]})})}function qr(Nr){var rn,En,en=Object(e.isMemo)(Nr)?Nr.type.type:Nr.type;return typeof en=="function"&&!((rn=en.prototype)===null||rn===void 0?void 0:rn.render)?!1:!(typeof Nr=="function"&&!((En=Nr.prototype)===null||En===void 0?void 0:En.render))}var oi=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function Vn(Nr,rn){var En=Nr.arrow,en=En===void 0?!1:En,ur=Nr.prefixCls,on=ur===void 0?"rc-dropdown":ur,Bn=Nr.transitionName,Hn=Nr.animation,Ii=Nr.align,Ci=Nr.placement,Jn=Ci===void 0?"bottomLeft":Ci,mi=Nr.placements,yi=mi===void 0?Rr:mi,da=Nr.getPopupContainer,ha=Nr.showAction,Pa=Nr.hideAction,Ra=Nr.overlayClassName,so=Nr.overlayStyle,La=Nr.visible,lo=Nr.trigger,So=lo===void 0?["hover"]:lo,Xt=Nr.autoFocus,zr=Object(o.a)(Nr,oi),un=S.useState(),vn=Object(c.a)(un,2),ni=vn[0],li=vn[1],fi="visible"in Nr?La:ni,di=S.useRef(null);S.useImperativeHandle(rn,function(){return di.current});var Yt=S.useRef(null),Et="".concat(on,"-menu");Cr({visible:fi,setTriggerVisible:li,triggerRef:di,menuRef:Yt,onVisibleChange:Nr.onVisibleChange,autoFocus:Xt});var yr=function(){var ii=Nr.overlay,pi;return typeof ii=="function"?pi=ii():pi=ii,pi},ct=function(ii){var pi=Nr.onOverlayClick,ri=yr().props;li(!1),pi&&pi(ii),ri.onClick&&ri.onClick(ii)},Zt=function(ii){var pi=Nr.onVisibleChange;li(ii),typeof pi=="function"&&pi(ii)},dr=function(){var ii,pi=yr(),ri=Vr(Yt,pi.ref),ji=(ii={prefixCls:Et},Object(f.a)(ii,"data-dropdown-inject",!0),Object(f.a)(ii,"onClick",ct),Object(f.a)(ii,"ref",qr(pi)?ri:void 0),ii);return typeof pi.type=="string"&&(delete ji.prefixCls,delete ji["data-dropdown-inject"]),S.createElement(S.Fragment,null,en&&S.createElement("div",{className:"".concat(on,"-arrow")}),S.cloneElement(pi,ji))},Lr=function(){var ii=Nr.overlay;return typeof ii=="function"?dr:dr()},Jr=function(){var ii=Nr.minOverlayWidthMatchTrigger,pi=Nr.alignPoint;return"minOverlayWidthMatchTrigger"in Nr?ii:!pi},fn=function(){var ii=Nr.openClassName;return ii!==void 0?ii:"".concat(on,"-open")},Cn=function(){var ii=Nr.children,pi=ii.props?ii.props:{},ri=n()(pi.className,fn());return fi&&ii?S.cloneElement(ii,{className:ri}):ii},Nn=Pa;return!Nn&&So.indexOf("contextMenu")!==-1&&(Nn=["click"]),S.createElement(wn.a,Object(r.a)(Object(r.a)({builtinPlacements:yi},zr),{},{prefixCls:on,ref:di,popupClassName:n()(Ra,Object(f.a)({},"".concat(on,"-show-arrow"),en)),popupStyle:so,action:So,showAction:ha,hideAction:Nn||[],popupPlacement:Jn,popupAlign:Ii,popupTransitionName:Bn,popupAnimation:Hn,popupVisible:fi,stretch:Jr()?"minWidth":"",popup:Lr(),onPopupVisibleChange:Zt,getPopupContainer:da}),Cn())}var Ti=S.forwardRef(Vn),dn=Ti;function _r(Nr,rn){var En=Nr.prefixCls,en=Nr.editable,ur=Nr.locale,on=Nr.style;return!en||en.showAdd===!1?null:S.createElement("button",{ref:rn,type:"button",className:"".concat(En,"-nav-add"),style:on,"aria-label":(ur==null?void 0:ur.addAriaLabel)||"Add tab",onClick:function(Hn){en.onEdit("add",{event:Hn})}},en.addIcon||"+")}var xn=S.forwardRef(_r);function Fn(Nr,rn){var En=Nr.prefixCls,en=Nr.id,ur=Nr.tabs,on=Nr.locale,Bn=Nr.mobile,Hn=Nr.moreIcon,Ii=Hn===void 0?"More":Hn,Ci=Nr.moreTransitionName,Jn=Nr.style,mi=Nr.className,yi=Nr.editable,da=Nr.tabBarGutter,ha=Nr.rtl,Pa=Nr.onTabClick,Ra=Object(S.useState)(!1),so=Object(c.a)(Ra,2),La=so[0],lo=so[1],So=Object(S.useState)(null),Xt=Object(c.a)(So,2),zr=Xt[0],un=Xt[1],vn="".concat(en,"-more-popup"),ni="".concat(En,"-dropdown"),li=zr!==null?"".concat(vn,"-").concat(zr):null,fi=on==null?void 0:on.dropdownAriaLabel,di=S.createElement(gn,{onClick:function(Lr){var Jr=Lr.key,fn=Lr.domEvent;Pa(Jr,fn),lo(!1)},id:vn,tabIndex:-1,role:"listbox","aria-activedescendant":li,selectedKeys:[zr],"aria-label":fi!==void 0?fi:"expanded dropdown"},ur.map(function(dr){return S.createElement(Jt,{key:dr.key,id:"".concat(vn,"-").concat(dr.key),role:"option","aria-controls":en&&"".concat(en,"-panel-").concat(dr.key),disabled:dr.disabled},dr.tab)}));function Yt(dr){for(var Lr=ur.filter(function(Zn){return!Zn.disabled}),Jr=Lr.findIndex(function(Zn){return Zn.key===zr})||0,fn=Lr.length,Cn=0;Cn<fn;Cn+=1){Jr=(Jr+dr+fn)%fn;var Nn=Lr[Jr];if(!Nn.disabled){un(Nn.key);return}}}function Et(dr){var Lr=dr.which;if(!La){[ae.DOWN,ae.SPACE,ae.ENTER].includes(Lr)&&(lo(!0),dr.preventDefault());return}switch(Lr){case ae.UP:Yt(-1),dr.preventDefault();break;case ae.DOWN:Yt(1),dr.preventDefault();break;case ae.ESC:lo(!1);break;case ae.SPACE:case ae.ENTER:zr!==null&&Pa(zr,dr);break}}Object(S.useEffect)(function(){var dr=document.getElementById(li);dr&&dr.scrollIntoView&&dr.scrollIntoView(!1)},[zr]),Object(S.useEffect)(function(){La||un(null)},[La]);var yr=Object(f.a)({},ha?"marginLeft":"marginRight",da);ur.length||(yr.visibility="hidden",yr.order=1);var ct=n()(Object(f.a)({},"".concat(ni,"-rtl"),ha)),Zt=Bn?null:S.createElement(dn,{prefixCls:ni,overlay:di,trigger:["hover"],visible:La,transitionName:Ci,onVisibleChange:lo,overlayClassName:ct,mouseEnterDelay:.1,mouseLeaveDelay:.1},S.createElement("button",{type:"button",className:"".concat(En,"-nav-more"),style:yr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":vn,id:"".concat(en,"-more"),"aria-expanded":La,onKeyDown:Et},Ii));return S.createElement("div",{className:n()("".concat(En,"-nav-operations"),mi),style:Jn,ref:rn},Zt,S.createElement(xn,{prefixCls:En,locale:on,editable:yi}))}var zn=S.forwardRef(Fn),qn=Object(S.createContext)(null),Oi=.1,Li=.01,Ri=20,Ji=Math.pow(.995,Ri);function ma(){var Nr=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(Nr)||/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(Nr.substr(0,4)))}function la(Nr,rn){var En=Object(S.useState)(),en=Object(c.a)(En,2),ur=en[0],on=en[1],Bn=Object(S.useState)(0),Hn=Object(c.a)(Bn,2),Ii=Hn[0],Ci=Hn[1],Jn=Object(S.useState)(0),mi=Object(c.a)(Jn,2),yi=mi[0],da=mi[1],ha=Object(S.useState)(),Pa=Object(c.a)(ha,2),Ra=Pa[0],so=Pa[1],La=Object(S.useRef)();function lo(fi){var di=fi.touches[0],Yt=di.screenX,Et=di.screenY;on({x:Yt,y:Et}),window.clearInterval(La.current)}function So(fi){if(!ur)return;fi.preventDefault();var di=fi.touches[0],Yt=di.screenX,Et=di.screenY;on({x:Yt,y:Et});var yr=Yt-ur.x,ct=Et-ur.y;rn(yr,ct);var Zt=Date.now();Ci(Zt),da(Zt-Ii),so({x:yr,y:ct})}function Xt(){if(!ur)return;if(on(null),so(null),Ra){var fi=Ra.x/yi,di=Ra.y/yi,Yt=Math.abs(fi),Et=Math.abs(di);if(Math.max(Yt,Et)<Oi)return;var yr=fi,ct=di;La.current=window.setInterval(function(){if(Math.abs(yr)<Li&&Math.abs(ct)<Li){window.clearInterval(La.current);return}yr*=Ji,ct*=Ji,rn(yr*Ri,ct*Ri)},Ri)}}var zr=Object(S.useRef)(0),un=Object(S.useRef)(!1),vn=Object(S.useRef)();function ni(fi){var di=fi.deltaX,Yt=fi.deltaY,Et=0,yr=Math.abs(di),ct=Math.abs(Yt);yr===ct?Et=vn.current==="x"?di:Yt:yr>ct?(Et=di,vn.current="x"):(Et=Yt,vn.current="y");var Zt=Date.now();Zt-zr.current>100&&(un.current=!1),(rn(-Et,-Et)||un.current)&&(fi.preventDefault(),un.current=!0),zr.current=Zt}var li=Object(S.useRef)(null);li.current={onTouchStart:lo,onTouchMove:So,onTouchEnd:Xt,onWheel:ni},S.useEffect(function(){function fi(yr){li.current.onTouchStart(yr)}function di(yr){li.current.onTouchMove(yr)}function Yt(yr){li.current.onTouchEnd(yr)}function Et(yr){li.current.onWheel(yr)}return document.addEventListener("touchmove",di,{passive:!1}),document.addEventListener("touchend",Yt,{passive:!1}),Nr.current.addEventListener("touchstart",fi,{passive:!1}),Nr.current.addEventListener("wheel",Et),function(){document.removeEventListener("touchmove",di),document.removeEventListener("touchend",Yt)}},[])}function qa(){var Nr=Object(S.useRef)(new Map);function rn(en){return Nr.current.has(en)||Nr.current.set(en,S.createRef()),Nr.current.get(en)}function En(en){Nr.current.delete(en)}return[rn,En]}function bi(Nr,rn){var En=S.useRef(Nr),en=S.useState({}),ur=Object(c.a)(en,2),on=ur[1];function Bn(Hn){var Ii=typeof Hn=="function"?Hn(En.current):Hn;Ii!==En.current&&rn(Ii,En.current),En.current=Ii,on({})}return[En.current,Bn]}var Sn=function(rn){var En=rn.position,en=rn.prefixCls,ur=rn.extra;if(!ur)return null;var on,Bn=ur;return En==="right"&&(on=Bn.right||!Bn.left&&Bn||null),En==="left"&&(on=Bn.left||null),on?S.createElement("div",{className:"".concat(en,"-extra-content")},on):null};function zi(Nr,rn){var En,en=S.useContext(qn),ur=en.prefixCls,on=en.tabs,Bn=Nr.className,Hn=Nr.style,Ii=Nr.id,Ci=Nr.animated,Jn=Nr.activeKey,mi=Nr.rtl,yi=Nr.extra,da=Nr.editable,ha=Nr.locale,Pa=Nr.tabPosition,Ra=Nr.tabBarGutter,so=Nr.children,La=Nr.onTabClick,lo=Nr.onTabScroll,So=Object(S.useRef)(),Xt=Object(S.useRef)(),zr=Object(S.useRef)(),un=Object(S.useRef)(),vn=qa(),ni=Object(c.a)(vn,2),li=ni[0],fi=ni[1],di=Pa==="top"||Pa==="bottom",Yt=bi(0,function(Fa,Ja){di&&lo&&lo({direction:Fa>Ja?"left":"right"})}),Et=Object(c.a)(Yt,2),yr=Et[0],ct=Et[1],Zt=bi(0,function(Fa,Ja){!di&&lo&&lo({direction:Fa>Ja?"top":"bottom"})}),dr=Object(c.a)(Zt,2),Lr=dr[0],Jr=dr[1],fn=Object(S.useState)(0),Cn=Object(c.a)(fn,2),Nn=Cn[0],Zn=Cn[1],ii=Object(S.useState)(0),pi=Object(c.a)(ii,2),ri=pi[0],ji=pi[1],ei=Object(S.useState)(0),Je=Object(c.a)(ei,2),Gt=Je[0],vr=Je[1],fr=Object(S.useState)(0),Gr=Object(c.a)(fr,2),Pr=Gr[0],hr=Gr[1],An=Object(S.useState)(null),br=Object(c.a)(An,2),pn=br[0],Kn=br[1],Wn=Object(S.useState)(null),Ln=Object(c.a)(Wn,2),$n=Ln[0],Un=Ln[1],ti=Object(S.useState)(0),Gn=Object(c.a)(ti,2),wi=Gn[0],Ei=Gn[1],Zi=Object(S.useState)(0),ua=Object(c.a)(Zi,2),Xi=ua[0],Gi=ua[1],wa=te(new Map),na=Object(c.a)(wa,2),mo=na[0],Ca=na[1],qi=me(on,mo,Nn),aa="".concat(ur,"-nav-operations-hidden"),$i=0,Aa=0;di?mi?($i=0,Aa=Math.max(0,Nn-pn)):($i=Math.min(0,pn-Nn),Aa=0):($i=Math.min(0,$n-ri),Aa=0);function ya(Fa){return Fa<$i?[$i,!1]:Fa>Aa?[Aa,!1]:[Fa,!0]}var Ha=Object(S.useRef)(),ta=Object(S.useState)(),ra=Object(c.a)(ta,2),_a=ra[0],Ka=ra[1];function bo(){Ka(Date.now())}function ga(){window.clearTimeout(Ha.current)}la(So,function(Fa,Ja){var ho=!1;function Ao($o,ps){$o(function(is){var Za=ya(is+ps),St=Object(c.a)(Za,2),Pt=St[0],Kr=St[1];return ho=Kr,Pt})}if(di){if(pn>=Nn)return ho;Ao(ct,Fa)}else{if($n>=ri)return ho;Ao(Jr,Ja)}return ga(),bo(),ho}),Object(S.useEffect)(function(){return ga(),_a&&(Ha.current=window.setTimeout(function(){Ka(0)},100)),ga},[_a]);function go(){var Fa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jn,Ja=qi.get(Fa);if(!Ja)return;if(di){var ho=yr;mi?Ja.right<yr?ho=Ja.right:Ja.right+Ja.width>yr+pn&&(ho=Ja.right+Ja.width-pn):Ja.left<-yr?ho=-Ja.left:Ja.left+Ja.width>-yr+pn&&(ho=-(Ja.left+Ja.width-pn)),Jr(0),ct(ya(ho)[0])}else{var Ao=Lr;Ja.top<-Lr?Ao=-Ja.top:Ja.top+Ja.height>-Lr+$n&&(Ao=-(Ja.top+Ja.height-$n)),ct(0),Jr(ya(Ao)[0])}}var Sa=Ce(qi,{width:pn,height:$n,left:yr,top:Lr},{width:Gt,height:Pr},{width:wi,height:Xi},Object(r.a)(Object(r.a)({},Nr),{},{tabs:on})),Va=Object(c.a)(Sa,2),uo=Va[0],No=Va[1],Po=on.map(function(Fa){var Ja=Fa.key;return S.createElement(G,{id:Ii,prefixCls:ur,key:Ja,rtl:mi,tab:Fa,closable:Fa.closable,editable:da,active:Ja===Jn,tabPosition:Pa,tabBarGutter:Ra,renderWrapper:so,removeAriaLabel:ha==null?void 0:ha.removeAriaLabel,ref:li(Ja),onClick:function(Ao){La(Ja,Ao)},onRemove:function(){fi(Ja)},onFocus:function(){go(Ja),bo(),mi||(So.current.scrollLeft=0),So.current.scrollTop=0}})}),to=se(function(){var Fa,Ja,ho,Ao,$o,ps,is,Za,St,Pt=((Fa=So.current)===null||Fa===void 0?void 0:Fa.offsetWidth)||0,Kr=((Ja=So.current)===null||Ja===void 0?void 0:Ja.offsetHeight)||0,Pn=((ho=un.current)===null||ho===void 0?void 0:ho.offsetWidth)||0,ut=((Ao=un.current)===null||Ao===void 0?void 0:Ao.offsetHeight)||0,ne=(($o=zr.current)===null||$o===void 0?void 0:$o.offsetWidth)||0,pe=((ps=zr.current)===null||ps===void 0?void 0:ps.offsetHeight)||0;Kn(Pt),Un(Kr),Ei(Pn),Gi(ut);var be=(((is=Xt.current)===null||is===void 0?void 0:is.offsetWidth)||0)-Pn,je=(((Za=Xt.current)===null||Za===void 0?void 0:Za.offsetHeight)||0)-ut;Zn(be),ji(je);var ht=(St=zr.current)===null||St===void 0?void 0:St.className.includes(aa);vr(be-(ht?0:ne)),hr(je-(ht?0:pe)),Ca(function(){var Vt=new Map;return on.forEach(function(Or){var Yr=Or.key,cn=li(Yr).current;cn&&Vt.set(Yr,{width:cn.offsetWidth,height:cn.offsetHeight,left:cn.offsetLeft,top:cn.offsetTop})}),Vt})}),Uo=on.slice(0,uo),co=on.slice(No+1),fa=[].concat(Object(E.a)(Uo),Object(E.a)(co)),ro=Object(S.useState)(),Wa=Object(c.a)(ro,2),Ea=Wa[0],Qr=Wa[1],za=qi.get(Jn),rs=Object(S.useRef)();function Vo(){b.a.cancel(rs.current)}Object(S.useEffect)(function(){var Fa={};return za&&(di?(mi?Fa.right=za.right:Fa.left=za.left,Fa.width=za.width):(Fa.top=za.top,Fa.height=za.height)),Vo(),rs.current=b()(function(){Qr(Fa)}),Vo},[za,di,mi]),Object(S.useEffect)(function(){go()},[Jn,za,qi,di]),Object(S.useEffect)(function(){to()},[mi,Ra,Jn,on.map(function(Fa){return Fa.key}).join("_")]);var Go=!!fa.length,Qo="".concat(ur,"-nav-wrap"),Yo,vo,Io,zo;return di?mi?(vo=yr>0,Yo=yr+pn<Nn):(Yo=yr<0,vo=-yr+pn<Nn):(Io=Lr<0,zo=-Lr+$n<ri),S.createElement("div",{ref:rn,role:"tablist",className:n()("".concat(ur,"-nav"),Bn),style:Hn,onKeyDown:function(){bo()}},S.createElement(Sn,{position:"left",extra:yi,prefixCls:ur}),S.createElement(ke,{onResize:to},S.createElement("div",{className:n()(Qo,(En={},Object(f.a)(En,"".concat(Qo,"-ping-left"),Yo),Object(f.a)(En,"".concat(Qo,"-ping-right"),vo),Object(f.a)(En,"".concat(Qo,"-ping-top"),Io),Object(f.a)(En,"".concat(Qo,"-ping-bottom"),zo),En)),ref:So},S.createElement(ke,{onResize:to},S.createElement("div",{ref:Xt,className:"".concat(ur,"-nav-list"),style:{transform:"translate(".concat(yr,"px, ").concat(Lr,"px)"),transition:_a?"none":void 0}},Po,S.createElement(xn,{ref:un,prefixCls:ur,locale:ha,editable:da,style:{visibility:Go?"hidden":null}}),S.createElement("div",{className:n()("".concat(ur,"-ink-bar"),Object(f.a)({},"".concat(ur,"-ink-bar-animated"),Ci.inkBar)),style:Ea}))))),S.createElement(zn,Object.assign({},Nr,{ref:zr,prefixCls:ur,tabs:fa,className:!Go&&aa})),S.createElement(Sn,{position:"right",extra:yi,prefixCls:ur}))}var oa=S.forwardRef(zi);function Yi(Nr){var rn=Nr.id,En=Nr.activeKey,en=Nr.animated,ur=Nr.tabPosition,on=Nr.rtl,Bn=Nr.destroyInactiveTabPane,Hn=S.useContext(qn),Ii=Hn.prefixCls,Ci=Hn.tabs,Jn=en.tabPane,mi=Ci.findIndex(function(yi){return yi.key===En});return S.createElement("div",{className:n()("".concat(Ii,"-content-holder"))},S.createElement("div",{className:n()("".concat(Ii,"-content"),"".concat(Ii,"-content-").concat(ur),Object(f.a)({},"".concat(Ii,"-content-animated"),Jn)),style:mi&&Jn?Object(f.a)({},on?"marginRight":"marginLeft","-".concat(mi,"00%")):null},Ci.map(function(yi){return S.cloneElement(yi.node,{key:yi.key,prefixCls:Ii,tabKey:yi.key,id:rn,animated:Jn,active:yi.key===En,destroyInactiveTabPane:Bn})})))}function ca(Nr){var rn=Nr.prefixCls,En=Nr.forceRender,en=Nr.className,ur=Nr.style,on=Nr.id,Bn=Nr.active,Hn=Nr.animated,Ii=Nr.destroyInactiveTabPane,Ci=Nr.tabKey,Jn=Nr.children,mi=S.useState(En),yi=Object(c.a)(mi,2),da=yi[0],ha=yi[1];S.useEffect(function(){Bn?ha(!0):Ii&&ha(!1)},[Bn,Ii]);var Pa={};return Bn||(Hn?(Pa.visibility="hidden",Pa.height=0,Pa.overflowY="hidden"):Pa.display="none"),S.createElement("div",{id:on&&"".concat(on,"-panel-").concat(Ci),role:"tabpanel",tabIndex:Bn?0:-1,"aria-labelledby":on&&"".concat(on,"-tab-").concat(Ci),"aria-hidden":!Bn,style:Object(r.a)(Object(r.a)({},Pa),ur),className:n()("".concat(rn,"-tabpane"),Bn&&"".concat(rn,"-tabpane-active"),en)},(Bn||da||En)&&Jn)}var Hi=0;function Ia(Nr){return l(Nr).map(function(rn){if(S.isValidElement(rn)){var En=rn.key!==void 0?String(rn.key):void 0;return Object(r.a)(Object(r.a)({key:En},rn.props),{},{node:rn})}return null}).filter(function(rn){return rn})}function Da(Nr,rn){var En,en=Nr.id,ur=Nr.prefixCls,on=ur===void 0?"rc-tabs":ur,Bn=Nr.className,Hn=Nr.children,Ii=Nr.direction,Ci=Nr.activeKey,Jn=Nr.defaultActiveKey,mi=Nr.editable,yi=Nr.animated,da=Nr.tabPosition,ha=da===void 0?"top":da,Pa=Nr.tabBarGutter,Ra=Nr.tabBarStyle,so=Nr.tabBarExtraContent,La=Nr.locale,lo=Nr.moreIcon,So=Nr.moreTransitionName,Xt=Nr.destroyInactiveTabPane,zr=Nr.renderTabBar,un=Nr.onChange,vn=Nr.onTabClick,ni=Nr.onTabScroll,li=Object(o.a)(Nr,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),fi=Ia(Hn),di=Ii==="rtl",Yt;yi===!1?Yt={inkBar:!1,tabPane:!1}:Yt=Object(r.a)({inkBar:!0,tabPane:!1},yi!==!0?yi:null);var Et=Object(S.useState)(!1),yr=Object(c.a)(Et,2),ct=yr[0],Zt=yr[1];Object(S.useEffect)(function(){Zt(ma())},[]);var dr=y(function(){var Pr;return(Pr=fi[0])===null||Pr===void 0?void 0:Pr.key},{value:Ci,defaultValue:Jn}),Lr=Object(c.a)(dr,2),Jr=Lr[0],fn=Lr[1],Cn=Object(S.useState)(function(){return fi.findIndex(function(Pr){return Pr.key===Jr})}),Nn=Object(c.a)(Cn,2),Zn=Nn[0],ii=Nn[1];Object(S.useEffect)(function(){var Pr=fi.findIndex(function(An){return An.key===Jr});if(Pr===-1){var hr;Pr=Math.max(0,Math.min(Zn,fi.length-1)),fn((hr=fi[Pr])===null||hr===void 0?void 0:hr.key)}ii(Pr)},[fi.map(function(Pr){return Pr.key}).join("_"),Jr,Zn]);var pi=y(null,{value:en}),ri=Object(c.a)(pi,2),ji=ri[0],ei=ri[1],Je=ha;ct&&!["left","right"].includes(ha)&&(Je="top"),Object(S.useEffect)(function(){en||(ei("rc-tabs-".concat(Hi)),Hi+=1)},[]);function Gt(Pr,hr){vn==null||vn(Pr,hr),fn(Pr),un==null||un(Pr)}var vr={id:ji,activeKey:Jr,animated:Yt,tabPosition:Je,rtl:di,mobile:ct},fr,Gr=Object(r.a)(Object(r.a)({},vr),{},{editable:mi,locale:La,moreIcon:lo,moreTransitionName:So,tabBarGutter:Pa,onTabClick:Gt,onTabScroll:ni,extra:so,style:Ra,panes:Hn});return zr?fr=zr(Gr,oa):fr=S.createElement(oa,Object.assign({},Gr)),S.createElement(qn.Provider,{value:{tabs:fi,prefixCls:on}},S.createElement("div",Object.assign({ref:rn,id:en,className:n()(on,"".concat(on,"-").concat(Je),(En={},Object(f.a)(En,"".concat(on,"-mobile"),ct),Object(f.a)(En,"".concat(on,"-editable"),mi),Object(f.a)(En,"".concat(on,"-rtl"),di),En),Bn)},li),fr,S.createElement(Yi,Object.assign({destroyInactiveTabPane:Xt},vr,{animated:Yt}))))}var Qa=S.forwardRef(Da);Qa.TabPane=ca;var Wo=Qa,po=Wo,Mo=d("cCPh"),Fo=d.n(Mo),yo=d("fNCr"),Oo=d.n(yo),sa=d("V/uB"),hs=d.n(sa),Jo=d("uaoM"),wo=d("H84U"),_o=function(Nr,rn){var En={};for(var en in Nr)Object.prototype.hasOwnProperty.call(Nr,en)&&rn.indexOf(en)<0&&(En[en]=Nr[en]);if(Nr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ur=0,en=Object.getOwnPropertySymbols(Nr);ur<en.length;ur++)rn.indexOf(en[ur])<0&&Object.prototype.propertyIsEnumerable.call(Nr,en[ur])&&(En[en[ur]]=Nr[en[ur]]);return En};function Bo(Nr){var rn,En=Nr.type,en=Nr.className,ur=Nr.size,on=Nr.onEdit,Bn=Nr.hideAdd,Hn=Nr.centered,Ii=Nr.addIcon,Ci=_o(Nr,["type","className","size","onEdit","hideAdd","centered","addIcon"]),Jn=Ci.prefixCls,mi=S.useContext(wo.b),yi=mi.getPrefixCls,da=mi.direction,ha=yi("tabs",Jn),Pa;return En==="editable-card"&&(Pa={onEdit:function(so,La){var lo=La.key,So=La.event;on==null||on(so==="add"?So:lo,so)},removeIcon:S.createElement(hs.a,null),addIcon:Ii||S.createElement(Oo.a,null),showAdd:Bn!==!0}),Object(Jo.a)(!("onPrevClick"in Ci)&&!("onNextClick"in Ci),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),S.createElement(po,x()({direction:da},Ci,{moreTransitionName:"slide-up",className:n()(en,(rn={},A()(rn,"".concat(ha,"-").concat(ur),ur),A()(rn,"".concat(ha,"-card"),["card","editable-card"].includes(En)),A()(rn,"".concat(ha,"-editable-card"),En==="editable-card"),A()(rn,"".concat(ha,"-centered"),Hn),rn)),editable:Pa,moreIcon:S.createElement(Fo.a,null),prefixCls:ha}))}Bo.TabPane=ca;var Ds=F.a=Bo},ZTW2:function(H,F,d){},ZWlE:function(H,F,d){var O=d("bYtY"),x=d("4NO4");function C(g){A(g),S(g)}function A(g){if(g.parallel)return;var f=!1;O.each(g.series,function(c){c&&c.type==="parallel"&&(f=!0)}),f&&(g.parallel=[{}])}function S(g){var f=x.normalizeToArray(g.parallelAxis);O.each(f,function(c){if(!O.isObject(c))return;var o=c.parallelIndex||0,r=x.normalizeToArray(g.parallel)[o];r&&r.parallelAxisDefault&&O.merge(c,r.parallelAxisDefault,!1)})}H.exports=C},ZX9x:function(H,F,d){"use strict";d.d(F,"a",function(){return I}),d.d(F,"b",function(){return D});var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),S=d("lwsE"),g=d.n(S),f=d("W8MJ"),c=d.n(f),o=d("7W2i"),r=d.n(o),i=d("LQ03"),n=d.n(i),e=d("q1tI"),l=d("TSYQ"),t=d.n(l),a=d("BGR+"),s=d("T1rO"),u=d.n(s),h=d("fEPi"),p=d.n(h),m=d("DFhj"),v=d.n(m),y=d("PKem"),E=d("H84U"),T=function(k){return!isNaN(parseFloat(k))&&isFinite(k)},b=T,w=function(R,k){var M={};for(var U in R)Object.prototype.hasOwnProperty.call(R,U)&&k.indexOf(U)<0&&(M[U]=R[U]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,U=Object.getOwnPropertySymbols(R);B<U.length;B++)k.indexOf(U[B])<0&&Object.prototype.propertyIsEnumerable.call(R,U[B])&&(M[U[B]]=R[U[B]]);return M},_={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},I=e.createContext({}),L=function(){var R=0;return function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return R+=1,"".concat(k).concat(R)}}(),N=function(R){r()(M,R);var k=n()(M);function M(U){var B;g()(this,M),B=k.call(this,U),B.responsiveHandler=function(V){B.setState({below:V.matches});var z=B.props.onBreakpoint,J=B.state.collapsed;z&&z(V.matches),J!==V.matches&&B.setCollapsed(V.matches,"responsive")},B.setCollapsed=function(V,z){"collapsed"in B.props||B.setState({collapsed:V});var J=B.props.onCollapse;J&&J(V,z)},B.toggle=function(){var V=!B.state.collapsed;B.setCollapsed(V,"clickTrigger")},B.renderSider=function(V){var z,J=V.getPrefixCls,Z=B.props,de=Z.prefixCls,ie=Z.className,ve=Z.theme,xe=Z.collapsible,_e=Z.reverseArrow,Ue=Z.trigger,fe=Z.style,ke=Z.width,se=Z.collapsedWidth,te=Z.zeroWidthTriggerStyle,Ve=Z.children,ae=w(Z,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle","children"]),Q=B.state,G=Q.collapsed,Y=Q.below,me=J("layout-sider",de),ue=Object(a.default)(ae,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),Ce=G?se:ke,Ie=b(Ce)?"".concat(Ce,"px"):String(Ce),ce=parseFloat(String(se||0))===0?e.createElement("span",{onClick:B.toggle,className:t()("".concat(me,"-zero-width-trigger"),"".concat(me,"-zero-width-trigger-").concat(_e?"right":"left")),style:te},Ue||e.createElement(u.a,null)):null,Ae={expanded:_e?e.createElement(p.a,null):e.createElement(v.a,null),collapsed:_e?e.createElement(v.a,null):e.createElement(p.a,null)},Te=G?"collapsed":"expanded",Ge=Ae[Te],gt=Ue!==null?ce||e.createElement("div",{className:"".concat(me,"-trigger"),onClick:B.toggle,style:{width:Ie}},Ue||Ge):null,qe=A()(A()({},fe),{flex:"0 0 ".concat(Ie),maxWidth:Ie,minWidth:Ie,width:Ie}),Le=t()(ie,me,"".concat(me,"-").concat(ve),(z={},x()(z,"".concat(me,"-collapsed"),!!G),x()(z,"".concat(me,"-has-trigger"),xe&&Ue!==null&&!ce),x()(z,"".concat(me,"-below"),!!Y),x()(z,"".concat(me,"-zero-width"),parseFloat(Ie)===0),z));return e.createElement("aside",A()({className:Le},ue,{style:qe}),e.createElement("div",{className:"".concat(me,"-children")},Ve),xe||Y&&ce?gt:null)},B.uniqueId=L("ant-sider-");var j;typeof window!="undefined"&&(j=window.matchMedia),j&&U.breakpoint&&U.breakpoint in _&&(B.mql=j("(max-width: ".concat(_[U.breakpoint],")")));var W;return"collapsed"in U?W=U.collapsed:W=U.defaultCollapsed,B.state={collapsed:W,below:!1},B}return c()(M,[{key:"componentDidMount",value:function(){var B;this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),(B=this.props)===null||B===void 0||B.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){var B,j;(B=this===null||this===void 0?void 0:this.mql)===null||B===void 0||B.removeListener(this.responsiveHandler),(j=this.props)===null||j===void 0||j.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var B=this.state.collapsed,j=this.props.collapsedWidth;return e.createElement(I.Provider,{value:{siderCollapsed:B,collapsedWidth:j}},e.createElement(E.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(B){return"collapsed"in B?{collapsed:B.collapsed}:null}}]),M}(e.Component);N.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var D=function(R){r()(M,R);var k=n()(M);function M(){return g()(this,M),k.apply(this,arguments)}return c()(M,[{key:"render",value:function(){var B=this;return e.createElement(y.a.Consumer,null,function(j){return e.createElement(N,A()({},j,B.props))})}}]),M}(e.Component)},ZYIC:function(H,F,d){var O=d("zM3Q"),x={seriesType:"lines",plan:O(),reset:function(C){var A=C.coordinateSystem,S=C.get("polyline"),g=C.pipelineContext.large;function f(c,o){var r=[];if(g){var i,n=c.end-c.start;if(S){for(var e=0,l=c.start;l<c.end;l++)e+=C.getLineCoordsCount(l);i=new Float32Array(n+e*2)}else i=new Float32Array(n*4);for(var t=0,a=[],l=c.start;l<c.end;l++){var s=C.getLineCoords(l,r);S&&(i[t++]=s);for(var u=0;u<s;u++)a=A.dataToPoint(r[u],!1,a),i[t++]=a[0],i[t++]=a[1]}o.setLayout("linesPoints",i)}else for(var l=c.start;l<c.end;l++){var h=o.getItemModel(l),s=C.getLineCoords(l,r),p=[];if(S)for(var m=0;m<s;m++)p.push(A.dataToPoint(r[m]));else{p[0]=A.dataToPoint(r[0]),p[1]=A.dataToPoint(r[1]);var v=h.get("lineStyle.curveness");+v&&(p[2]=[(p[0][0]+p[1][0])/2-(p[0][1]-p[1][1])*v,(p[0][1]+p[1][1])/2-(p[1][0]-p[0][0])*v])}o.setItemLayout(l,p)}}return{progress:f}}};H.exports=x},Ze12:function(H,F,d){var O=d("ItGF"),x=d("hOwI"),C=x.buildTransformer,A="___zrEVENTSAVED",S=[];function g(i,n,e,l,t){return f(S,n,l,t,!0)&&f(i,e,S[0],S[1])}function f(i,n,e,l,t){if(n.getBoundingClientRect&&O.domSupported&&!r(n)){var a=n[A]||(n[A]={}),s=c(n,a),u=o(s,a,t);if(u)return u(i,e,l),!0}return!1}function c(i,n){var e=n.markers;if(e)return e;e=n.markers=[];for(var l=["left","right"],t=["top","bottom"],a=0;a<4;a++){var s=document.createElement("div"),u=s.style,h=a%2,p=(a>>1)%2;u.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",l[h]+":0",t[p]+":0",l[1-h]+":auto",t[1-p]+":auto",""].join("!important;"),i.appendChild(s),e.push(s)}return e}function o(i,n,e){for(var l=e?"invTrans":"trans",t=n[l],a=n.srcCoords,s=!0,u=[],h=[],p=0;p<4;p++){var m=i[p].getBoundingClientRect(),v=2*p,y=m.left,E=m.top;u.push(y,E),s=s&&a&&y===a[v]&&E===a[v+1],h.push(i[p].offsetLeft,i[p].offsetTop)}return s&&t?t:(n.srcCoords=u,n[l]=e?C(h,u):C(u,h))}function r(i){return i.nodeName.toUpperCase()==="CANVAS"}F.transformLocalCoord=g,F.transformCoordWithViewport=f,F.isCanvasEl=r},Zm9Q:function(H,F,d){"use strict";d.d(F,"a",function(){return S});var O=d("q1tI"),x=d.n(O),C=d("TOwV"),A=d.n(C);function S(g){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=[];return x.a.Children.forEach(g,function(o){if(o==null&&!f.keepEmpty)return;Array.isArray(o)?c=c.concat(S(o)):Object(C.isFragment)(o)&&o.props?c=c.concat(S(o.props.children,f)):c.push(o)}),c}},Znkb:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("zTMp"),S=C.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(r,i,n,e){this.axisPointerClass&&A.fixValue(r),S.superApply(this,"render",arguments),g(this,r,i,n,e,!0)},updateAxisPointer:function(r,i,n,e,l){g(this,r,i,n,e,!1)},remove:function(r,i){var n=this._axisPointer;n&&n.remove(i),S.superApply(this,"remove",arguments)},dispose:function(r,i){f(this,i),S.superApply(this,"dispose",arguments)}});function g(r,i,n,e,l,t){var a=S.getAxisPointerClass(r.axisPointerClass);if(!a)return;var s=A.getAxisPointerModel(i);s?(r._axisPointer||(r._axisPointer=new a)).render(i,s,e,t):f(r,e)}function f(r,i,n){var e=r._axisPointer;e&&e.dispose(i,n),r._axisPointer=null}var c=[];S.registerAxisPointerClass=function(r,i){c[r]=i},S.getAxisPointerClass=function(r){return r&&c[r]};var o=S;H.exports=o},"Znn+":function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("9ama"),A=d.n(C)},ZqQs:function(H,F,d){var O=d("bYtY");function x(g){var f=g&&g.timeline;O.isArray(f)||(f=f?[f]:[]),O.each(f,function(c){if(!c)return;C(c)})}function C(g){var f=g.type,c={number:"value",time:"time"};if(c[f]&&(g.axisType=c[f],delete g.type),A(g),S(g,"controlPosition")){var o=g.controlStyle||(g.controlStyle={});S(o,"position")||(o.position=g.controlPosition),o.position==="none"&&!S(o,"show")&&(o.show=!1,delete o.position),delete g.controlPosition}O.each(g.data||[],function(r){O.isObject(r)&&!O.isArray(r)&&(!S(r,"value")&&S(r,"name")&&(r.value=r.name),A(r))})}function A(g){var f=g.itemStyle||(g.itemStyle={}),c=f.emphasis||(f.emphasis={}),o=g.label||g.label||{},r=o.normal||(o.normal={}),i={normal:1,emphasis:1};O.each(o,function(n,e){!i[e]&&!S(r,e)&&(r[e]=n)}),c.label&&!S(o,"emphasis")&&(o.emphasis=c.label,delete c.label)}function S(g,f){return g.hasOwnProperty(f)}H.exports=x},Zss7:function(H,F,d){var O;(function(x){var C=/^\s+/,A=/\s+$/,S=0,g=x.round,f=x.min,c=x.max,o=x.random;function r(fe,ke){if(fe=fe||"",ke=ke||{},fe instanceof r)return fe;if(!(this instanceof r))return new r(fe,ke);var se=i(fe);this._originalInput=fe,this._r=se.r,this._g=se.g,this._b=se.b,this._a=se.a,this._roundA=g(100*this._a)/100,this._format=ke.format||se.format,this._gradientType=ke.gradientType,this._r<1&&(this._r=g(this._r)),this._g<1&&(this._g=g(this._g)),this._b<1&&(this._b=g(this._b)),this._ok=se.ok,this._tc_id=S++}r.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 ke=this.toRgb();return(ke.r*299+ke.g*587+ke.b*114)/1e3},getLuminance:function(){var ke=this.toRgb(),se,te,Ve,ae,Q,G;return se=ke.r/255,te=ke.g/255,Ve=ke.b/255,se<=.03928?ae=se/12.92:ae=x.pow((se+.055)/1.055,2.4),te<=.03928?Q=te/12.92:Q=x.pow((te+.055)/1.055,2.4),Ve<=.03928?G=Ve/12.92:G=x.pow((Ve+.055)/1.055,2.4),.2126*ae+.7152*Q+.0722*G},setAlpha:function(ke){return this._a=U(ke),this._roundA=g(100*this._a)/100,this},toHsv:function(){var ke=t(this._r,this._g,this._b);return{h:ke.h*360,s:ke.s,v:ke.v,a:this._a}},toHsvString:function(){var ke=t(this._r,this._g,this._b),se=g(ke.h*360),te=g(ke.s*100),Ve=g(ke.v*100);return this._a==1?"hsv("+se+", "+te+"%, "+Ve+"%)":"hsva("+se+", "+te+"%, "+Ve+"%, "+this._roundA+")"},toHsl:function(){var ke=e(this._r,this._g,this._b);return{h:ke.h*360,s:ke.s,l:ke.l,a:this._a}},toHslString:function(){var ke=e(this._r,this._g,this._b),se=g(ke.h*360),te=g(ke.s*100),Ve=g(ke.l*100);return this._a==1?"hsl("+se+", "+te+"%, "+Ve+"%)":"hsla("+se+", "+te+"%, "+Ve+"%, "+this._roundA+")"},toHex:function(ke){return s(this._r,this._g,this._b,ke)},toHexString:function(ke){return"#"+this.toHex(ke)},toHex8:function(ke){return u(this._r,this._g,this._b,this._a,ke)},toHex8String:function(ke){return"#"+this.toHex8(ke)},toRgb:function(){return{r:g(this._r),g:g(this._g),b:g(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+g(this._r)+", "+g(this._g)+", "+g(this._b)+")":"rgba("+g(this._r)+", "+g(this._g)+", "+g(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:g(B(this._r,255)*100)+"%",g:g(B(this._g,255)*100)+"%",b:g(B(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+g(B(this._r,255)*100)+"%, "+g(B(this._g,255)*100)+"%, "+g(B(this._b,255)*100)+"%)":"rgba("+g(B(this._r,255)*100)+"%, "+g(B(this._g,255)*100)+"%, "+g(B(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:k[s(this._r,this._g,this._b,!0)]||!1},toFilter:function(ke){var se="#"+h(this._r,this._g,this._b,this._a),te=se,Ve=this._gradientType?"GradientType = 1, ":"";if(ke){var ae=r(ke);te="#"+h(ae._r,ae._g,ae._b,ae._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ve+"startColorstr="+se+",endColorstr="+te+")"},toString:function(ke){var se=!!ke;ke=ke||this._format;var te=!1,Ve=this._a<1&&this._a>=0,ae=!se&&Ve&&(ke==="hex"||ke==="hex6"||ke==="hex3"||ke==="hex4"||ke==="hex8"||ke==="name");return ae?ke==="name"&&this._a===0?this.toName():this.toRgbString():(ke==="rgb"&&(te=this.toRgbString()),ke==="prgb"&&(te=this.toPercentageRgbString()),(ke==="hex"||ke==="hex6")&&(te=this.toHexString()),ke==="hex3"&&(te=this.toHexString(!0)),ke==="hex4"&&(te=this.toHex8String(!0)),ke==="hex8"&&(te=this.toHex8String()),ke==="name"&&(te=this.toName()),ke==="hsl"&&(te=this.toHslString()),ke==="hsv"&&(te=this.toHsvString()),te||this.toHexString())},clone:function(){return r(this.toString())},_applyModification:function(ke,se){var te=ke.apply(null,[this].concat([].slice.call(se)));return this._r=te._r,this._g=te._g,this._b=te._b,this.setAlpha(te._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(E,arguments)},darken:function(){return this._applyModification(T,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(ke,se){return ke.apply(null,[this].concat([].slice.call(se)))},analogous:function(){return this._applyCombination(N,arguments)},complement:function(){return this._applyCombination(w,arguments)},monochromatic:function(){return this._applyCombination(D,arguments)},splitcomplement:function(){return this._applyCombination(L,arguments)},triad:function(){return this._applyCombination(_,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},r.fromRatio=function(fe,ke){if(typeof fe=="object"){var se={};for(var te in fe)fe.hasOwnProperty(te)&&(te==="a"?se[te]=fe[te]:se[te]=Z(fe[te]));fe=se}return r(fe,ke)};function i(fe){var ke={r:0,g:0,b:0},se=1,te=null,Ve=null,ae=null,Q=!1,G=!1;return typeof fe=="string"&&(fe=_e(fe)),typeof fe=="object"&&(xe(fe.r)&&xe(fe.g)&&xe(fe.b)?(ke=n(fe.r,fe.g,fe.b),Q=!0,G=String(fe.r).substr(-1)==="%"?"prgb":"rgb"):xe(fe.h)&&xe(fe.s)&&xe(fe.v)?(te=Z(fe.s),Ve=Z(fe.v),ke=a(fe.h,te,Ve),Q=!0,G="hsv"):xe(fe.h)&&xe(fe.s)&&xe(fe.l)&&(te=Z(fe.s),ae=Z(fe.l),ke=l(fe.h,te,ae),Q=!0,G="hsl"),fe.hasOwnProperty("a")&&(se=fe.a)),se=U(se),{ok:Q,format:fe.format||G,r:f(255,c(ke.r,0)),g:f(255,c(ke.g,0)),b:f(255,c(ke.b,0)),a:se}}function n(fe,ke,se){return{r:B(fe,255)*255,g:B(ke,255)*255,b:B(se,255)*255}}function e(fe,ke,se){fe=B(fe,255),ke=B(ke,255),se=B(se,255);var te=c(fe,ke,se),Ve=f(fe,ke,se),ae,Q,G=(te+Ve)/2;if(te==Ve)ae=Q=0;else{var Y=te-Ve;Q=G>.5?Y/(2-te-Ve):Y/(te+Ve);switch(te){case fe:ae=(ke-se)/Y+(ke<se?6:0);break;case ke:ae=(se-fe)/Y+2;break;case se:ae=(fe-ke)/Y+4;break}ae/=6}return{h:ae,s:Q,l:G}}function l(fe,ke,se){var te,Ve,ae;fe=B(fe,360),ke=B(ke,100),se=B(se,100);function Q(me,ue,Ce){return Ce<0&&(Ce+=1),Ce>1&&(Ce-=1),Ce<1/6?me+(ue-me)*6*Ce:Ce<1/2?ue:Ce<2/3?me+(ue-me)*(2/3-Ce)*6:me}if(ke===0)te=Ve=ae=se;else{var G=se<.5?se*(1+ke):se+ke-se*ke,Y=2*se-G;te=Q(Y,G,fe+1/3),Ve=Q(Y,G,fe),ae=Q(Y,G,fe-1/3)}return{r:te*255,g:Ve*255,b:ae*255}}function t(fe,ke,se){fe=B(fe,255),ke=B(ke,255),se=B(se,255);var te=c(fe,ke,se),Ve=f(fe,ke,se),ae,Q,G=te,Y=te-Ve;if(Q=te===0?0:Y/te,te==Ve)ae=0;else{switch(te){case fe:ae=(ke-se)/Y+(ke<se?6:0);break;case ke:ae=(se-fe)/Y+2;break;case se:ae=(fe-ke)/Y+4;break}ae/=6}return{h:ae,s:Q,v:G}}function a(fe,ke,se){fe=B(fe,360)*6,ke=B(ke,100),se=B(se,100);var te=x.floor(fe),Ve=fe-te,ae=se*(1-ke),Q=se*(1-Ve*ke),G=se*(1-(1-Ve)*ke),Y=te%6,me=[se,Q,ae,ae,G,se][Y],ue=[G,se,se,Q,ae,ae][Y],Ce=[ae,ae,G,se,se,Q][Y];return{r:me*255,g:ue*255,b:Ce*255}}function s(fe,ke,se,te){var Ve=[J(g(fe).toString(16)),J(g(ke).toString(16)),J(g(se).toString(16))];return te&&Ve[0].charAt(0)==Ve[0].charAt(1)&&Ve[1].charAt(0)==Ve[1].charAt(1)&&Ve[2].charAt(0)==Ve[2].charAt(1)?Ve[0].charAt(0)+Ve[1].charAt(0)+Ve[2].charAt(0):Ve.join("")}function u(fe,ke,se,te,Ve){var ae=[J(g(fe).toString(16)),J(g(ke).toString(16)),J(g(se).toString(16)),J(de(te))];return Ve&&ae[0].charAt(0)==ae[0].charAt(1)&&ae[1].charAt(0)==ae[1].charAt(1)&&ae[2].charAt(0)==ae[2].charAt(1)&&ae[3].charAt(0)==ae[3].charAt(1)?ae[0].charAt(0)+ae[1].charAt(0)+ae[2].charAt(0)+ae[3].charAt(0):ae.join("")}function h(fe,ke,se,te){var Ve=[J(de(te)),J(g(fe).toString(16)),J(g(ke).toString(16)),J(g(se).toString(16))];return Ve.join("")}r.equals=function(fe,ke){return!fe||!ke?!1:r(fe).toRgbString()==r(ke).toRgbString()},r.random=function(){return r.fromRatio({r:o(),g:o(),b:o()})};function p(fe,ke){ke=ke===0?0:ke||10;var se=r(fe).toHsl();return se.s-=ke/100,se.s=j(se.s),r(se)}function m(fe,ke){ke=ke===0?0:ke||10;var se=r(fe).toHsl();return se.s+=ke/100,se.s=j(se.s),r(se)}function v(fe){return r(fe).desaturate(100)}function y(fe,ke){ke=ke===0?0:ke||10;var se=r(fe).toHsl();return se.l+=ke/100,se.l=j(se.l),r(se)}function E(fe,ke){ke=ke===0?0:ke||10;var se=r(fe).toRgb();return se.r=c(0,f(255,se.r-g(255*-(ke/100)))),se.g=c(0,f(255,se.g-g(255*-(ke/100)))),se.b=c(0,f(255,se.b-g(255*-(ke/100)))),r(se)}function T(fe,ke){ke=ke===0?0:ke||10;var se=r(fe).toHsl();return se.l-=ke/100,se.l=j(se.l),r(se)}function b(fe,ke){var se=r(fe).toHsl(),te=(se.h+ke)%360;return se.h=te<0?360+te:te,r(se)}function w(fe){var ke=r(fe).toHsl();return ke.h=(ke.h+180)%360,r(ke)}function _(fe){var ke=r(fe).toHsl(),se=ke.h;return[r(fe),r({h:(se+120)%360,s:ke.s,l:ke.l}),r({h:(se+240)%360,s:ke.s,l:ke.l})]}function I(fe){var ke=r(fe).toHsl(),se=ke.h;return[r(fe),r({h:(se+90)%360,s:ke.s,l:ke.l}),r({h:(se+180)%360,s:ke.s,l:ke.l}),r({h:(se+270)%360,s:ke.s,l:ke.l})]}function L(fe){var ke=r(fe).toHsl(),se=ke.h;return[r(fe),r({h:(se+72)%360,s:ke.s,l:ke.l}),r({h:(se+216)%360,s:ke.s,l:ke.l})]}function N(fe,ke,se){ke=ke||6,se=se||30;var te=r(fe).toHsl(),Ve=360/se,ae=[r(fe)];for(te.h=(te.h-(Ve*ke>>1)+720)%360;--ke;)te.h=(te.h+Ve)%360,ae.push(r(te));return ae}function D(fe,ke){ke=ke||6;for(var se=r(fe).toHsv(),te=se.h,Ve=se.s,ae=se.v,Q=[],G=1/ke;ke--;)Q.push(r({h:te,s:Ve,v:ae})),ae=(ae+G)%1;return Q}r.mix=function(fe,ke,se){se=se===0?0:se||50;var te=r(fe).toRgb(),Ve=r(ke).toRgb(),ae=se/100,Q={r:(Ve.r-te.r)*ae+te.r,g:(Ve.g-te.g)*ae+te.g,b:(Ve.b-te.b)*ae+te.b,a:(Ve.a-te.a)*ae+te.a};return r(Q)},r.readability=function(fe,ke){var se=r(fe),te=r(ke);return(x.max(se.getLuminance(),te.getLuminance())+.05)/(x.min(se.getLuminance(),te.getLuminance())+.05)},r.isReadable=function(fe,ke,se){var te=r.readability(fe,ke),Ve,ae;ae=!1,Ve=Ue(se);switch(Ve.level+Ve.size){case"AAsmall":case"AAAlarge":ae=te>=4.5;break;case"AAlarge":ae=te>=3;break;case"AAAsmall":ae=te>=7;break}return ae},r.mostReadable=function(fe,ke,se){var te=null,Ve=0,ae,Q,G,Y;se=se||{},Q=se.includeFallbackColors,G=se.level,Y=se.size;for(var me=0;me<ke.length;me++)ae=r.readability(fe,ke[me]),ae>Ve&&(Ve=ae,te=r(ke[me]));return r.isReadable(fe,te,{level:G,size:Y})||!Q?te:(se.includeFallbackColors=!1,r.mostReadable(fe,["#fff","#000"],se))};var R=r.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"},k=r.hexNames=M(R);function M(fe){var ke={};for(var se in fe)fe.hasOwnProperty(se)&&(ke[fe[se]]=se);return ke}function U(fe){return fe=parseFloat(fe),(isNaN(fe)||fe<0||fe>1)&&(fe=1),fe}function B(fe,ke){V(fe)&&(fe="100%");var se=z(fe);return fe=f(ke,c(0,parseFloat(fe))),se&&(fe=parseInt(fe*ke,10)/100),x.abs(fe-ke)<1e-6?1:fe%ke/parseFloat(ke)}function j(fe){return f(1,c(0,fe))}function W(fe){return parseInt(fe,16)}function V(fe){return typeof fe=="string"&&fe.indexOf(".")!=-1&&parseFloat(fe)===1}function z(fe){return typeof fe=="string"&&fe.indexOf("%")!=-1}function J(fe){return fe.length==1?"0"+fe:""+fe}function Z(fe){return fe<=1&&(fe=fe*100+"%"),fe}function de(fe){return x.round(parseFloat(fe)*255).toString(16)}function ie(fe){return W(fe)/255}var ve=function(){var fe="[-\\+]?\\d+%?",ke="[-\\+]?\\d*\\.\\d+%?",se="(?:"+ke+")|(?:"+fe+")",te="[\\s|\\(]+("+se+")[,|\\s]+("+se+")[,|\\s]+("+se+")\\s*\\)?",Ve="[\\s|\\(]+("+se+")[,|\\s]+("+se+")[,|\\s]+("+se+")[,|\\s]+("+se+")\\s*\\)?";return{CSS_UNIT:new RegExp(se),rgb:new RegExp("rgb"+te),rgba:new RegExp("rgba"+Ve),hsl:new RegExp("hsl"+te),hsla:new RegExp("hsla"+Ve),hsv:new RegExp("hsv"+te),hsva:new RegExp("hsva"+Ve),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 xe(fe){return!!ve.CSS_UNIT.exec(fe)}function _e(fe){fe=fe.replace(C,"").replace(A,"").toLowerCase();var ke=!1;if(R[fe])fe=R[fe],ke=!0;else if(fe=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var se;return(se=ve.rgb.exec(fe))?{r:se[1],g:se[2],b:se[3]}:(se=ve.rgba.exec(fe))?{r:se[1],g:se[2],b:se[3],a:se[4]}:(se=ve.hsl.exec(fe))?{h:se[1],s:se[2],l:se[3]}:(se=ve.hsla.exec(fe))?{h:se[1],s:se[2],l:se[3],a:se[4]}:(se=ve.hsv.exec(fe))?{h:se[1],s:se[2],v:se[3]}:(se=ve.hsva.exec(fe))?{h:se[1],s:se[2],v:se[3],a:se[4]}:(se=ve.hex8.exec(fe))?{r:W(se[1]),g:W(se[2]),b:W(se[3]),a:ie(se[4]),format:ke?"name":"hex8"}:(se=ve.hex6.exec(fe))?{r:W(se[1]),g:W(se[2]),b:W(se[3]),format:ke?"name":"hex"}:(se=ve.hex4.exec(fe))?{r:W(se[1]+""+se[1]),g:W(se[2]+""+se[2]),b:W(se[3]+""+se[3]),a:ie(se[4]+""+se[4]),format:ke?"name":"hex8"}:(se=ve.hex3.exec(fe))?{r:W(se[1]+""+se[1]),g:W(se[2]+""+se[2]),b:W(se[3]+""+se[3]),format:ke?"name":"hex"}:!1}function Ue(fe){var ke,se;return fe=fe||{level:"AA",size:"small"},ke=(fe.level||"AA").toUpperCase(),se=(fe.size||"small").toLowerCase(),ke!=="AA"&&ke!=="AAA"&&(ke="AA"),se!=="small"&&se!=="large"&&(se="small"),{level:ke,size:se}}H.exports?H.exports=r:!(O=function(){return r}.call(F,d,F,H),O!==void 0&&(H.exports=O))})(Math)},Zvw2:function(H,F,d){var O=d("bYtY"),x=d("hM6l"),C=function(S,g,f,c,o){x.call(this,S,g,f),this.type=c||"value",this.position=o||"bottom",this.orient=null};C.prototype={constructor:C,model:null,isHorizontal:function(){var S=this.position;return S==="top"||S==="bottom"},pointToData:function(S,g){return this.coordinateSystem.pointToData(S,g)[0]},toGlobalCoord:null,toLocalCoord:null},O.inherits(C,x);var A=C;H.exports=A},a7Wl:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},a9QJ:function(H,F){var d={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function O(x,C){if(x==="world"){var A=d[C.name];if(A){var S=C.center;S[0]=A[0],S[1]=A[1]}}}H.exports=O},aHsQ:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("6D9b"),A=d.n(C)},aKvl:function(H,F,d){var O=d("Sj9i"),x=O.quadraticProjectPoint;function C(A,S,g,f,c,o,r,i,n){if(r===0)return!1;var e=r;if(n>S+e&&n>f+e&&n>o+e||n<S-e&&n<f-e&&n<o-e||i>A+e&&i>g+e&&i>c+e||i<A-e&&i<g-e&&i<c-e)return!1;var l=x(A,S,g,f,c,o,i,n,null);return l<=e/2}F.containStroke=C},aTJb:function(H,F,d){var O=d("bLfw");O.registerSubTypeDefaulter("dataZoom",function(){return"slider"})},aX58:function(H,F,d){var O=d("3gBT"),x=d("ItGF"),C=d("bYtY"),A=d("0s+r"),S=d("r6Bn"),g=d("7SHv"),f=d("MKOG"),c=d("zarK");/*!
|
|
|
* ZRender, a high performance 2d drawing library.
|
|
|
*
|
|
|
* Copyright (c) 2013, Baidu Inc.
|
|
|
* All rights reserved.
|
|
|
*
|
|
|
* LICENSE
|
|
|
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
|
*/var o=!x.canvasSupported,r={canvas:g},i={},n="4.3.1";function e(h,p){var m=new u(O(),h,p);return i[m.id]=m,m}function l(h){if(h)h.dispose();else{for(var p in i)i.hasOwnProperty(p)&&i[p].dispose();i={}}return this}function t(h){return i[h]}function a(h,p){r[h]=p}function s(h){delete i[h]}var u=function(p,m,v){v=v||{},this.dom=m,this.id=p;var y=this,E=new S,T=v.renderer;if(o){if(!r.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");T="vml"}else(!T||!r[T])&&(T="canvas");var b=new r[T](m,E,v,p);this.storage=E,this.painter=b;var w=!x.node&&!x.worker?new c(b.getViewportRoot(),b.root):null;this.handler=new A(E,b,w,b.root),this.animation=new f({stage:{update:C.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var _=E.delFromStorage,I=E.addToStorage;E.delFromStorage=function(L){_.call(E,L),L&&L.removeSelfFromZr(y)},E.addToStorage=function(L){I.call(E,L),L.addSelfToZr(y)}};u.prototype={constructor:u,getId:function(){return this.id},add:function(p){this.storage.addRoot(p),this._needsRefresh=!0},remove:function(p){this.storage.delRoot(p),this._needsRefresh=!0},configLayer:function(p,m){this.painter.configLayer&&this.painter.configLayer(p,m),this._needsRefresh=!0},setBackgroundColor:function(p){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(p),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 p;this._needsRefresh&&(p=!0,this.refreshImmediately()),this._needsRefreshHover&&(p=!0,this.refreshHoverImmediately()),p&&this.trigger("rendered")},addHover:function(p,m){if(this.painter.addHover){var v=this.painter.addHover(p,m);return this.refreshHover(),v}},removeHover:function(p){this.painter.removeHover&&(this.painter.removeHover(p),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(p){p=p||{},this.painter.resize(p.width,p.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(p,m){return this.painter.pathToImage(p,m)},setCursorStyle:function(p){this.handler.setCursorStyle(p)},findHover:function(p,m){return this.handler.findHover(p,m)},on:function(p,m,v){this.handler.on(p,m,v)},off:function(p,m){this.handler.off(p,m)},trigger:function(p,m){this.handler.trigger(p,m)},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,s(this.id)}},F.version=n,F.init=e,F.dispose=l,F.getInstance=t,F.registerPainter=a},aX7z:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=d("GMDS"),S=d("ieMj"),g=d("4NgU"),f=d("OELB"),c=d("nVfU"),o=c.prepareLayoutBarSeries,r=c.makeColumnLayout,i=c.retrieveColumnLayout,n=d("mFDi");d("IWp7"),d("jCoz");function e(E,T){var b=E.type,w=T.getMin(),_=T.getMax(),I=E.getExtent(),L,N,D;b==="ordinal"?L=T.getCategories().length:(N=T.get("boundaryGap"),C.isArray(N)||(N=[N||0,N||0]),typeof N[0]=="boolean"&&(N=[0,0]),N[0]=f.parsePercent(N[0],1),N[1]=f.parsePercent(N[1],1),D=I[1]-I[0]||Math.abs(I[0])),w==="dataMin"?w=I[0]:typeof w=="function"&&(w=w({min:I[0],max:I[1]})),_==="dataMax"?_=I[1]:typeof _=="function"&&(_=_({min:I[0],max:I[1]}));var R=w!=null,k=_!=null;w==null&&(w=b==="ordinal"?L?0:NaN:I[0]-N[0]*D),_==null&&(_=b==="ordinal"?L?L-1:NaN:I[1]+N[1]*D),(w==null||!isFinite(w))&&(w=NaN),(_==null||!isFinite(_))&&(_=NaN),E.setBlank(C.eqNaN(w)||C.eqNaN(_)||b==="ordinal"&&!E.getOrdinalMeta().categories.length),T.getNeedCrossZero()&&(w>0&&_>0&&!R&&(w=0),w<0&&_<0&&!k&&(_=0));var M=T.ecModel;if(M&&b==="time"){var U=o("bar",M),B;if(C.each(U,function(V){B|=V.getBaseAxis()===T.axis}),B){var j=r(U),W=l(w,_,T,j);w=W.min,_=W.max}}return{extent:[w,_],fixMin:R,fixMax:k}}function l(E,T,b,w){var _=b.axis.getExtent(),I=_[1]-_[0],L=i(w,b.axis);if(L===void 0)return{min:E,max:T};var N=Infinity;C.each(L,function(B){N=Math.min(B.offset,N)});var D=-Infinity;C.each(L,function(B){D=Math.max(B.offset+B.width,D)}),N=Math.abs(N),D=Math.abs(D);var R=N+D,k=T-E,M=1-(N+D)/I,U=k/M-k;return T+=U*(D/R),E-=U*(N/R),{min:E,max:T}}function t(E,T){var b=e(E,T),w=b.extent,_=T.get("splitNumber");E.type==="log"&&(E.base=T.get("logBase"));var I=E.type;E.setExtent(w[0],w[1]),E.niceExtent({splitNumber:_,fixMin:b.fixMin,fixMax:b.fixMax,minInterval:I==="interval"||I==="time"?T.get("minInterval"):null,maxInterval:I==="interval"||I==="time"?T.get("maxInterval"):null});var L=T.get("interval");L!=null&&(E.setInterval&&E.setInterval(L))}function a(E,T){if(T=T||E.get("type"),T)switch(T){case"category":return new A(E.getOrdinalMeta?E.getOrdinalMeta():E.getCategories(),[Infinity,-Infinity]);case"value":return new S;default:return(g.getClass(T)||S).create(E)}}function s(E){var T=E.scale.getExtent(),b=T[0],w=T[1];return!(b>0&&w>0||b<0&&w<0)}function u(E){var T=E.getLabelModel().get("formatter"),b=E.type==="category"?E.scale.getExtent()[0]:null;return typeof T=="string"?(T=function(w){return function(_){return _=E.scale.getLabel(_),w.replace("{value}",_!=null?_:"")}}(T),T):typeof T=="function"?function(w,_){return b!=null&&(_=w-b),T(h(E,w),_)}:function(w){return E.scale.getLabel(w)}}function h(E,T){return E.type==="category"?E.scale.getLabel(T):T}function p(E){var T=E.model,b=E.scale;if(!T.get("axisLabel.show")||b.isBlank())return;var w=E.type==="category",_,I,L=b.getExtent();w?I=b.count():(_=b.getTicks(),I=_.length);var N=E.getLabelModel(),D=u(E),R,k=1;I>40&&(k=Math.ceil(I/40));for(var M=0;M<I;M+=k){var U=_?_[M]:L[0]+M,B=D(U),j=N.getTextRect(B),W=m(j,N.get("rotate")||0);R?R.union(W):R=W}return R}function m(E,T){var b=T*Math.PI/180,w=E.plain(),_=w.width,I=w.height,L=_*Math.cos(b)+I*Math.sin(b),N=_*Math.sin(b)+I*Math.cos(b),D=new n(w.x,w.y,L,N);return D}function v(E){var T=E.get("interval");return T==null?"auto":T}function y(E){return E.type==="category"&&v(E.getLabelModel())===0}F.getScaleExtent=e,F.niceScaleExtent=t,F.createScaleByModel=a,F.ifAxisCrossZero=s,F.makeLabelFormatter=u,F.getAxisRawValue=h,F.estimateLabelUnionRect=p,F.getOptionCategoryInterval=v,F.shouldShowAllLabels=y},"af/B":function(H,F,d){var O=d("bYtY"),x=O.each,C=O.map,A=O.isFunction,S=O.createHashMap,g=O.noop,f=d("9H2F"),c=f.createTask,o=d("iRjW"),r=o.getUID,i=d("fmMI"),n=d("hD7B"),e=d("4NO4"),l=e.normalizeToArray;function t(B,j,W,V){this.ecInstance=B,this.api=j,this.unfinished;var W=this._dataProcessorHandlers=W.slice(),V=this._visualHandlers=V.slice();this._allHandlers=W.concat(V),this._stageTaskMap=S()}var a=t.prototype;a.restoreData=function(B,j){B.restoreData(j),this._stageTaskMap.each(function(W){var V=W.overallTask;V&&V.dirty()})},a.getPerformArgs=function(B,j){if(!B.__pipeline)return;var W=this._pipelineMap.get(B.__pipeline.id),V=W.context,z=!j&&W.progressiveEnabled&&(!V||V.progressiveRender)&&B.__idxInPipeline>W.blockIndex,J=z?W.step:null,Z=V&&V.modDataCount,de=Z!=null?Math.ceil(Z/J):null;return{step:J,modBy:de,modDataCount:Z}},a.getPipeline=function(B){return this._pipelineMap.get(B)},a.updateStreamModes=function(B,j){var W=this._pipelineMap.get(B.uid),V=B.getData(),z=V.count(),J=W.progressiveEnabled&&j.incrementalPrepareRender&&z>=W.threshold,Z=B.get("large")&&z>=B.get("largeThreshold"),de=B.get("progressiveChunkMode")==="mod"?z:null;B.pipelineContext=W.context={progressiveRender:J,modDataCount:de,large:Z}},a.restorePipelines=function(B){var j=this,W=j._pipelineMap=S();B.eachSeries(function(V){var z=V.getProgressive(),J=V.uid;W.set(J,{id:J,head:null,tail:null,threshold:V.getProgressiveThreshold(),progressiveEnabled:z&&!(V.preventIncremental&&V.preventIncremental()),blockIndex:-1,step:Math.round(z||700),count:0}),L(j,V,V.dataTask)})},a.prepareStageTasks=function(){var B=this._stageTaskMap,j=this.ecInstance.getModel(),W=this.api;x(this._allHandlers,function(V){var z=B.get(V.uid)||B.set(V.uid,[]);V.reset&&h(this,V,z,j,W),V.overallReset&&p(this,V,z,j,W)},this)},a.prepareView=function(B,j,W,V){var z=B.renderTask,J=z.context;J.model=j,J.ecModel=W,J.api=V,z.__block=!B.incrementalPrepareRender,L(this,j,z)},a.performDataProcessorTasks=function(B,j){s(this,this._dataProcessorHandlers,B,j,{block:!0})},a.performVisualTasks=function(B,j,W){s(this,this._visualHandlers,B,j,W)};function s(B,j,W,V,z){z=z||{};var J;x(j,function(de,ie){if(z.visualType&&z.visualType!==de.visualType)return;var ve=B._stageTaskMap.get(de.uid),xe=ve.seriesTaskMap,_e=ve.overallTask;if(_e){var Ue,fe=_e.agentStubMap;fe.each(function(se){Z(z,se)&&(se.dirty(),Ue=!0)}),Ue&&_e.dirty(),u(_e,V);var ke=B.getPerformArgs(_e,z.block);fe.each(function(se){se.perform(ke)}),J|=_e.perform(ke)}else xe&&xe.each(function(se,te){Z(z,se)&&se.dirty();var Ve=B.getPerformArgs(se,z.block);Ve.skip=!de.performRawSeries&&W.isSeriesFiltered(se.context.model),u(se,V),J|=se.perform(Ve)})});function Z(de,ie){return de.setDirty&&(!de.dirtyMap||de.dirtyMap.get(ie.__pipeline.id))}B.unfinished|=J}a.performSeriesTasks=function(B){var j;B.eachSeries(function(W){j|=W.dataTask.perform()}),this.unfinished|=j},a.plan=function(){this._pipelineMap.each(function(B){var j=B.tail;do{if(j.__block){B.blockIndex=j.__idxInPipeline;break}j=j.getUpstream()}while(j)})};var u=a.updatePayload=function(B,j){j!=="remain"&&(B.context.payload=j)};function h(B,j,W,V,z){var J=W.seriesTaskMap||(W.seriesTaskMap=S()),Z=j.seriesType,de=j.getTargetSeries;j.createOnAllSeries?V.eachRawSeries(ie):Z?V.eachRawSeriesByType(Z,ie):de&&de(V,z).each(ie);function ie(xe){var _e=xe.uid,Ue=J.get(_e)||J.set(_e,c({plan:T,reset:b,count:I}));Ue.context={model:xe,ecModel:V,api:z,useClearVisual:j.isVisual&&!j.isLayout,plan:j.plan,reset:j.reset,scheduler:B},L(B,xe,Ue)}var ve=B._pipelineMap;J.each(function(xe,_e){ve.get(_e)||(xe.dispose(),J.removeKey(_e))})}function p(B,j,W,V,z){var J=W.overallTask=W.overallTask||c({reset:m});J.context={ecModel:V,api:z,overallReset:j.overallReset,scheduler:B};var Z=J.agentStubMap=J.agentStubMap||S(),de=j.seriesType,ie=j.getTargetSeries,ve=!0,xe=j.modifyOutputEnd;de?V.eachRawSeriesByType(de,_e):ie?ie(V,z).each(_e):(ve=!1,x(V.getSeries(),_e));function _e(fe){var ke=fe.uid,se=Z.get(ke);se||(se=Z.set(ke,c({reset:v,onDirty:E})),J.dirty()),se.context={model:fe,overallProgress:ve,modifyOutputEnd:xe},se.agent=J,se.__block=ve,L(B,fe,se)}var Ue=B._pipelineMap;Z.each(function(fe,ke){Ue.get(ke)||(fe.dispose(),J.dirty(),Z.removeKey(ke))})}function m(B){B.overallReset(B.ecModel,B.api,B.payload)}function v(B,j){return B.overallProgress&&y}function y(){this.agent.dirty(),this.getDownstream().dirty()}function E(){this.agent&&this.agent.dirty()}function T(B){return B.plan&&B.plan(B.model,B.ecModel,B.api,B.payload)}function b(B){B.useClearVisual&&B.data.clearAllVisual();var j=B.resetDefines=l(B.reset(B.model,B.ecModel,B.api,B.payload));return j.length>1?C(j,function(W,V){return _(V)}):w}var w=_(0);function _(B){return function(j,W){var V=W.data,z=W.resetDefines[B];if(z&&z.dataEach)for(var J=j.start;J<j.end;J++)z.dataEach(V,J);else z&&z.progress&&z.progress(j,V)}}function I(B){return B.data.count()}function L(B,j,W){var V=j.uid,z=B._pipelineMap.get(V);!z.head&&(z.head=W),z.tail&&z.tail.pipe(W),z.tail=W,W.__idxInPipeline=z.count++,W.__pipeline=z}t.wrapStageHandler=function(B,j){return A(B)&&(B={overallReset:B,seriesType:N(B)}),B.uid=r("stageHandler"),j&&(B.visualType=j),B};function N(B){k=null;try{B(D,R)}catch(j){}return k}var D={},R={},k;M(D,i),M(R,n),D.eachSeriesByType=D.eachRawSeriesByType=function(B){k=B},D.eachComponent=function(B){B.mainType==="series"&&B.subType&&(k=B.subType)};function M(B,j){for(var W in j.prototype)B[W]=g}var U=t;H.exports=U},akwb:function(H,F,d){var O=d("RSch"),x=d("bYtY"),C=d("D9ME"),A=d("QBsz");function S(c,o,r){C.call(this,c,o,r),this._lastFrame=0,this._lastFramePercent=0}var g=S.prototype;g.createLine=function(c,o,r){return new O(c,o,r)},g.updateAnimationPoints=function(c,o){this._points=o;for(var r=[0],i=0,n=1;n<o.length;n++){var e=o[n-1],l=o[n];i+=A.dist(e,l),r.push(i)}if(i===0)return;for(var n=0;n<r.length;n++)r[n]/=i;this._offsets=r,this._length=i},g.getLineLength=function(c){return this._length},g.updateSymbolPosition=function(c){var o=c.__t,r=this._points,i=this._offsets,n=r.length;if(!i)return;var e=this._lastFrame,l;if(o<this._lastFramePercent){var t=Math.min(e+1,n-1);for(l=t;l>=0&&!(i[l]<=o);l--);l=Math.min(l,n-2)}else{for(var l=e;l<n&&!(i[l]>o);l++);l=Math.min(l-1,n-2)}A.lerp(c.position,r[l],r[l+1],(o-i[l])/(i[l+1]-i[l]));var a=r[l+1][0]-r[l][0],s=r[l+1][1]-r[l][1];c.rotation=-Math.atan2(s,a)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=o,c.ignore=!1},x.inherits(S,C);var f=S;H.exports=f},apAg:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("bsht")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="SearchOutlined";var c=A.forwardRef(f);F.default=c},as94:function(H,F,d){var O=d("7aKB"),x=d("3LNs"),C=d("IwbS"),A=d("/y7N"),S=d("Fofx"),g=d("+rIm"),f=d("Znkb"),c=x.extend({makeElOption:function(n,e,l,t,a){var s=l.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var u=s.polar,h=u.getOtherAxis(s),p=h.getExtent(),m;m=s["dataTo"+O.capitalFirst(s.dim)](e);var v=t.get("type");if(v&&v!=="none"){var y=A.buildElStyle(t),E=r[v](s,u,m,p,y);E.style=y,n.graphicKey=E.type,n.pointer=E}var T=t.get("label.margin"),b=o(e,l,t,u,T);A.buildLabelElOption(n,l,t,a,b)}});function o(n,e,l,t,a){var s=e.axis,u=s.dataToCoord(n),h=t.getAngleAxis().getExtent()[0];h=h/180*Math.PI;var p=t.getRadiusAxis().getExtent(),m,v,y;if(s.dim==="radius"){var E=S.create();S.rotate(E,E,h),S.translate(E,E,[t.cx,t.cy]),m=C.applyTransform([u,-a],E);var T=e.getModel("axisLabel").get("rotate")||0,b=g.innerTextLayout(h,T*Math.PI/180,-1);v=b.textAlign,y=b.textVerticalAlign}else{var w=p[1];m=t.coordToPoint([w+a,u]);var _=t.cx,I=t.cy;v=Math.abs(m[0]-_)/w<.3?"center":m[0]>_?"left":"right",y=Math.abs(m[1]-I)/w<.3?"middle":m[1]>I?"top":"bottom"}return{position:m,align:v,verticalAlign:y}}var r={line:function(n,e,l,t,a){return n.dim==="angle"?{type:"Line",shape:A.makeLineShape(e.coordToPoint([t[0],l]),e.coordToPoint([t[1],l]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:l}}},shadow:function(n,e,l,t,a){var s=Math.max(1,n.getBandWidth()),u=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:A.makeSectorShape(e.cx,e.cy,t[0],t[1],(-l-s/2)*u,(-l+s/2)*u)}:{type:"Sector",shape:A.makeSectorShape(e.cx,e.cy,l-s/2,l+s/2,0,Math.PI*2)}}};f.registerAxisPointerClass("PolarAxisPointer",c);var i=c;H.exports=i},b56q:function(H,F,d){},b80e:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("gKaM")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="DoubleLeftOutlined";var c=A.forwardRef(f);F.default=c},b9oc:function(H,F,d){var O=d("bYtY"),x=O.each,C="\0_ec_hist_store";function A(o,r){var i=c(o);x(r,function(n,e){for(var l=i.length-1;l>=0;l--){var t=i[l];if(t[e])break}if(l<0){var a=o.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0];if(a){var s=a.getPercentRange();i[0][e]={dataZoomId:e,start:s[0],end:s[1]}}}}),i.push(r)}function S(o){var r=c(o),i=r[r.length-1];r.length>1&&r.pop();var n={};return x(i,function(e,l){for(var t=r.length-1;t>=0;t--){var e=r[t][l];if(e){n[l]=e;break}}}),n}function g(o){o[C]=null}function f(o){return c(o).length}function c(o){var r=o[C];return r||(r=o[C]=[{}]),r}F.push=A,F.pop=S,F.clear=g,F.count=f},bBKM:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("bYtY"),S=d("+rIm"),g=d("IwbS"),f=["axisLine","axisTickLabel","axisName"],c=C.extendComponentView({type:"radar",render:function(o,r,i){var n=this.group;n.removeAll(),this._buildAxes(o),this._buildSplitLineAndArea(o)},_buildAxes:function(o){var r=o.coordinateSystem,i=r.getIndicatorAxes(),n=A.map(i,function(e){var l=new S(e.model,{position:[r.cx,r.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});A.each(n,function(e){A.each(f,e.add,e),this.group.add(e.getGroup())},this)},_buildSplitLineAndArea:function(o){var r=o.coordinateSystem,i=r.getIndicatorAxes();if(!i.length)return;var n=o.get("shape"),e=o.getModel("splitLine"),l=o.getModel("splitArea"),t=e.getModel("lineStyle"),a=l.getModel("areaStyle"),s=e.get("show"),u=l.get("show"),h=t.get("color"),p=a.get("color");h=A.isArray(h)?h:[h],p=A.isArray(p)?p:[p];var m=[],v=[];function y(U,B,j){var W=j%B.length;return U[W]=U[W]||[],W}if(n==="circle")for(var E=i[0].getTicksCoords(),T=r.cx,b=r.cy,w=0;w<E.length;w++){if(s){var _=y(m,h,w);m[_].push(new g.Circle({shape:{cx:T,cy:b,r:E[w].coord}}))}if(u&&w<E.length-1){var _=y(v,p,w);v[_].push(new g.Ring({shape:{cx:T,cy:b,r0:E[w].coord,r:E[w+1].coord}}))}}else for(var I,L=A.map(i,function(U,B){var j=U.getTicksCoords();return I=I==null?j.length-1:Math.min(j.length-1,I),A.map(j,function(W){return r.coordToPoint(W.coord,B)})}),N=[],w=0;w<=I;w++){for(var D=[],R=0;R<i.length;R++)D.push(L[R][w]);if(D[0]&&D.push(D[0].slice()),s){var _=y(m,h,w);m[_].push(new g.Polyline({shape:{points:D}}))}if(u&&N){var _=y(v,p,w-1);v[_].push(new g.Polygon({shape:{points:D.concat(N)}}))}N=D.slice().reverse()}var k=t.getLineStyle(),M=a.getAreaStyle();A.each(v,function(U,B){this.group.add(g.mergePath(U,{style:A.defaults({stroke:"none",fill:p[B%p.length]},M),silent:!0}))},this),A.each(m,function(U,B){this.group.add(g.mergePath(U,{style:A.defaults({fill:"none",stroke:h[B%h.length]},k),silent:!0}))},this)}});H.exports=c},bBL8:function(H,F,d){var O=d("ProS");d("LPzL"),d("rfSb"),d("JVwQ");var x=d("UnoB"),C=d("cbJ4"),A=d("0/Rx");O.registerLayout(x),O.registerVisual(C),O.registerProcessor(A("themeRiver"))},bE4E:function(H,F,d){},bE4q:function(H,F,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),S=d("RIqP"),g=d.n(S),f=d("q1tI"),c=d("TSYQ"),o=d.n(c),r=d("Zm9Q"),i=d("HQEm"),n=d.n(i),e=d("XBQK"),l=d("H84U"),t=function(N,D){var R={};for(var k in N)Object.prototype.hasOwnProperty.call(N,k)&&D.indexOf(k)<0&&(R[k]=N[k]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,k=Object.getOwnPropertySymbols(N);M<k.length;M++)D.indexOf(k[M])<0&&Object.prototype.propertyIsEnumerable.call(N,k[M])&&(R[k[M]]=N[k[M]]);return R},a=function(D){var R=D.prefixCls,k=D.separator,M=k===void 0?"/":k,U=D.children,B=D.overlay,j=D.dropdownProps,W=t(D,["prefixCls","separator","children","overlay","dropdownProps"]),V=f.useContext(l.b),z=V.getPrefixCls,J=z("breadcrumb",R),Z=function(ve){return B?f.createElement(e.a,x()({overlay:B,placement:"bottomCenter"},j),f.createElement("span",{className:"".concat(J,"-overlay-link")},ve,f.createElement(n.a,null))):ve},de;return"href"in W?de=f.createElement("a",x()({className:"".concat(J,"-link")},W),U):de=f.createElement("span",x()({className:"".concat(J,"-link")},W),U),de=Z(de),U?f.createElement("span",null,de,M&&M!==""&&f.createElement("span",{className:"".concat(J,"-separator")},M)):null};a.__ANT_BREADCRUMB_ITEM=!0;var s=a,u=function(D){var R=D.children,k=f.useContext(l.b),M=k.getPrefixCls,U=M("breadcrumb");return f.createElement("span",{className:"".concat(U,"-separator")},R||"/")};u.__ANT_BREADCRUMB_SEPARATOR=!0;var h=u,p=d("BvKs"),m=d("uaoM"),v=d("0n0R"),y=function(N,D){var R={};for(var k in N)Object.prototype.hasOwnProperty.call(N,k)&&D.indexOf(k)<0&&(R[k]=N[k]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,k=Object.getOwnPropertySymbols(N);M<k.length;M++)D.indexOf(k[M])<0&&Object.prototype.propertyIsEnumerable.call(N,k[M])&&(R[k[M]]=N[k[M]]);return R};function E(N,D){if(!N.breadcrumbName)return null;var R=Object.keys(D).join("|"),k=N.breadcrumbName.replace(new RegExp(":(".concat(R,")"),"g"),function(M,U){return D[U]||M});return k}function T(N,D,R,k){var M=R.indexOf(N)===R.length-1,U=E(N,D);return M?f.createElement("span",null,U):f.createElement("a",{href:"#/".concat(k.join("/"))},U)}var b=function(D,R){return D=(D||"").replace(/^\//,""),Object.keys(R).forEach(function(k){D=D.replace(":".concat(k),R[k])}),D},w=function(D){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",k=arguments.length>2?arguments[2]:void 0,M=g()(D),U=b(R,k);return U&&M.push(U),M},_=function(D){var R=D.prefixCls,k=D.separator,M=k===void 0?"/":k,U=D.style,B=D.className,j=D.routes,W=D.children,V=D.itemRender,z=V===void 0?T:V,J=D.params,Z=J===void 0?{}:J,de=y(D,["prefixCls","separator","style","className","routes","children","itemRender","params"]),ie=f.useContext(l.b),ve=ie.getPrefixCls,xe=ie.direction,_e,Ue=ve("breadcrumb",R);if(j&&j.length>0){var fe=[];_e=j.map(function(se){var te=b(se.path,Z);te&&fe.push(te);var Ve;return se.children&&se.children.length&&(Ve=f.createElement(p.a,null,se.children.map(function(ae){return f.createElement(p.a.Item,{key:ae.path||ae.breadcrumbName},z(ae,Z,j,w(fe,ae.path,Z)))}))),f.createElement(s,{overlay:Ve,separator:M,key:te||se.breadcrumbName},z(se,Z,j,fe))})}else W&&(_e=Object(r.a)(W).map(function(se,te){return se&&(Object(m.a)(se.type&&(se.type.__ANT_BREADCRUMB_ITEM===!0||se.type.__ANT_BREADCRUMB_SEPARATOR===!0),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Object(v.a)(se,{separator:M,key:te}))}));var ke=o()(B,Ue,A()({},"".concat(Ue,"-rtl"),xe==="rtl"));return f.createElement("div",x()({className:ke,style:U},de),_e)};_.Item=s,_.Separator=h;var I=_,L=F.a=I},bKJz:function(H,F,d){},bLfw:function(H,F,d){var O=d("bYtY"),x=d("Qxkt"),C=d("iRjW"),A=d("Yl7c"),S=A.enableClassManagement,g=A.parseClassType,f=d("4NO4"),c=f.makeInner,o=d("+TT/"),r=d("3hzK"),i=c(),n=x.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,a,s,u){x.call(this,t,a,s,u),this.uid=C.getUID("ec_cpt_model")},init:function(t,a,s,u){this.mergeDefaultAndTheme(t,s)},mergeDefaultAndTheme:function(t,a){var s=this.layoutMode,u=s?o.getLayoutParams(t):{},h=a.getTheme();O.merge(t,h.get(this.mainType)),O.merge(t,this.getDefaultOption()),s&&o.mergeLayoutParam(t,u,s)},mergeOption:function(t,a){O.merge(this.option,t,!0);var s=this.layoutMode;s&&o.mergeLayoutParam(this.option,t,s)},optionUpdated:function(t,a){},getDefaultOption:function(){var t=i(this);if(!t.defaultOption){for(var a=[],s=this.constructor;s;){var u=s.prototype.defaultOption;u&&a.push(u),s=s.superClass}for(var h={},p=a.length-1;p>=0;p--)h=O.merge(h,a[p],!0);t.defaultOption=h}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});S(n,{registerWhenExtend:!0}),C.enableSubTypeDefaulter(n),C.enableTopologicalTravel(n,e);function e(t){var a=[];return O.each(n.getClassesByMainType(t),function(s){a=a.concat(s.prototype.dependencies||[])}),a=O.map(a,function(s){return g(s).main}),t!=="dataset"&&O.indexOf(a,"dataset")<=0&&a.unshift("dataset"),a}O.mixin(n,r);var l=n;H.exports=l},bMXI:function(H,F,d){var O=d("bYtY"),x=d("QBsz"),C=d("Fofx"),A=d("mFDi"),S=d("DN4a"),g=x.applyTransform;function f(){S.call(this)}O.mixin(f,S);function c(i){this.name=i,this.zoomLimit,S.call(this),this._roamTransformable=new f,this._rawTransformable=new f,this._center,this._zoom}c.prototype={constructor:c,type:"view",dimensions:["x","y"],setBoundingRect:function(i,n,e,l){return this._rect=new A(i,n,e,l),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(i,n,e,l){this.transformTo(i,n,e,l),this._viewRect=new A(i,n,e,l)},transformTo:function(i,n,e,l){var t=this.getBoundingRect(),a=this._rawTransformable;a.transform=t.calculateTransform(new A(i,n,e,l)),a.decomposeTransform(),this._updateTransform()},setCenter:function(i){if(!i)return;this._center=i,this._updateCenterAndZoom()},setZoom:function(i){i=i||1;var n=this.zoomLimit;n&&(n.max!=null&&(i=Math.min(n.max,i)),n.min!=null&&(i=Math.max(n.min,i))),this._zoom=i,this._updateCenterAndZoom()},getDefaultCenter:function(){var i=this.getBoundingRect(),n=i.x+i.width/2,e=i.y+i.height/2;return[n,e]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var i=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,e=this.getDefaultCenter(),l=this.getCenter(),t=this.getZoom();l=x.applyTransform([],l,i),e=x.applyTransform([],e,i),n.origin=l,n.position=[e[0]-l[0],e[1]-l[1]],n.scale=[t,t],this._updateTransform()},_updateTransform:function(){var i=this._roamTransformable,n=this._rawTransformable;n.parent=i,i.updateTransform(),n.updateTransform(),C.copy(this.transform||(this.transform=[]),n.transform||C.create()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],C.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var i=this._roamTransformable.transform,n=this._rawTransformable;return{roamTransform:i?O.slice(i):C.create(),rawScale:O.slice(n.scale),rawPosition:O.slice(n.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var i=this.getBoundingRect().clone();return i.applyTransform(this.transform),i},dataToPoint:function(i,n,e){var l=n?this._rawTransform:this.transform;return e=e||[],l?g(e,i,l):x.copy(e,i)},pointToData:function(i){var n=this.invTransform;return n?g([],i,n):[i[0],i[1]]},convertToPixel:O.curry(o,"dataToPoint"),convertFromPixel:O.curry(o,"pointToData"),containPoint:function(i){return this.getViewRectAfterRoam().contain(i[0],i[1])}},O.mixin(c,S);function o(i,n,e,l){var t=e.seriesModel,a=t?t.coordinateSystem:null;return a===this?a[i](l):null}var r=c;H.exports=r},bNin:function(H,F,d){var O=d("bYtY"),x=d("IwbS"),C=d("FBjb"),A=d("Itpr"),S=A.radialCoordinate,g=d("ProS"),f=d("4mN7"),c=d("bMXI"),o=d("Ae+d"),r=d("SgGq"),i=d("xSat"),n=i.onIrrelevantElement,e=d("Tghj"),l=e.__DEV__,t=d("OELB"),a=t.parsePercent,s=x.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(T,b){var w=b.childPoints,_=w.length,I=b.parentPoint,L=w[0],N=w[_-1];if(_===1){T.moveTo(I[0],I[1]),T.lineTo(L[0],L[1]);return}var D=b.orient,R=D==="TB"||D==="BT"?0:1,k=1-R,M=a(b.forkPosition,1),U=[];U[R]=I[R],U[k]=I[k]+(N[k]-I[k])*M,T.moveTo(I[0],I[1]),T.lineTo(U[0],U[1]),T.moveTo(L[0],L[1]),U[R]=L[R],T.lineTo(U[0],U[1]),U[R]=N[R],T.lineTo(U[0],U[1]),T.lineTo(N[0],N[1]);for(var B=1;B<_-1;B++){var j=w[B];T.moveTo(j[0],j[1]),U[R]=j[R],T.lineTo(U[0],U[1])}}}),u=g.extendChartView({type:"tree",init:function(T,b){this._oldTree,this._mainGroup=new x.Group,this._controller=new r(b.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(T,b,w,_){var I=T.getData(),L=T.layoutInfo,N=this._mainGroup,D=T.get("layout");D==="radial"?N.attr("position",[L.x+L.width/2,L.y+L.height/2]):N.attr("position",[L.x,L.y]),this._updateViewCoordSys(T,L,D),this._updateController(T,b,w);var R=this._data,k={expandAndCollapse:T.get("expandAndCollapse"),layout:D,edgeShape:T.get("edgeShape"),edgeForkPosition:T.get("edgeForkPosition"),orient:T.getOrient(),curvature:T.get("lineStyle.curveness"),symbolRotate:T.get("symbolRotate"),symbolOffset:T.get("symbolOffset"),hoverAnimation:T.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};I.diff(R).add(function(M){h(I,M)&&m(I,M,null,N,T,k)}).update(function(M,U){var B=R.getItemGraphicEl(U);if(!h(I,M)){B&&y(R,U,B,N,T,k);return}m(I,M,B,N,T,k)}).remove(function(M){var U=R.getItemGraphicEl(M);U&&y(R,M,U,N,T,k)}).execute(),this._nodeScaleRatio=T.get("nodeScaleRatio"),this._updateNodeAndLinkScale(T),k.expandAndCollapse===!0&&I.eachItemGraphicEl(function(M,U){M.off("click").on("click",function(){w.dispatchAction({type:"treeExpandAndCollapse",seriesId:T.id,dataIndex:U})})}),this._data=I},_updateViewCoordSys:function(T){var b=T.getData(),w=[];b.each(function(R){var k=b.getItemLayout(R);k&&!isNaN(k.x)&&!isNaN(k.y)&&w.push([+k.x,+k.y])});var _=[],I=[];f.fromPoints(w,_,I);var L=this._min,N=this._max;I[0]-_[0]===0&&(_[0]=L?L[0]:_[0]-1,I[0]=N?N[0]:I[0]+1),I[1]-_[1]===0&&(_[1]=L?L[1]:_[1]-1,I[1]=N?N[1]:I[1]+1);var D=T.coordinateSystem=new c;D.zoomLimit=T.get("scaleLimit"),D.setBoundingRect(_[0],_[1],I[0]-_[0],I[1]-_[1]),D.setCenter(T.get("center")),D.setZoom(T.get("zoom")),this.group.attr({position:D.position,scale:D.scale}),this._viewCoordSys=D,this._min=_,this._max=I},_updateController:function(T,b,w){var _=this._controller,I=this._controllerHost,L=this.group;_.setPointerChecker(function(N,D,R){var k=L.getBoundingRect();return k.applyTransform(L.transform),k.contain(D,R)&&!n(N,w,T)}),_.enable(T.get("roam")),I.zoomLimit=T.get("scaleLimit"),I.zoom=T.coordinateSystem.getZoom(),_.off("pan").off("zoom").on("pan",function(N){o.updateViewOnPan(I,N.dx,N.dy),w.dispatchAction({seriesId:T.id,type:"treeRoam",dx:N.dx,dy:N.dy})},this).on("zoom",function(N){o.updateViewOnZoom(I,N.scale,N.originX,N.originY),w.dispatchAction({seriesId:T.id,type:"treeRoam",zoom:N.scale,originX:N.originX,originY:N.originY}),this._updateNodeAndLinkScale(T)},this)},_updateNodeAndLinkScale:function(T){var b=T.getData(),w=this._getNodeGlobalScale(T),_=[w,w];b.eachItemGraphicEl(function(I,L){I.attr("scale",_)})},_getNodeGlobalScale:function(T){var b=T.coordinateSystem;if(b.type!=="view")return 1;var w=this._nodeScaleRatio,_=b.scale,I=_&&_[0]||1,L=b.getZoom(),N=(L-1)*w+1;return N/I},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function h(T,b){var w=T.getItemLayout(b);return w&&!isNaN(w.x)&&!isNaN(w.y)&&T.getItemVisual(b,"symbol")!=="none"}function p(T,b,w){return w.itemModel=b,w.itemStyle=b.getModel("itemStyle").getItemStyle(),w.hoverItemStyle=b.getModel("emphasis.itemStyle").getItemStyle(),w.lineStyle=b.getModel("lineStyle").getLineStyle(),w.labelModel=b.getModel("label"),w.hoverLabelModel=b.getModel("emphasis.label"),T.isExpand===!1&&T.children.length!==0?w.symbolInnerColor=w.itemStyle.fill:w.symbolInnerColor="#fff",w}function m(T,b,w,_,I,L){var N=!w,D=T.tree.getNodeByDataIndex(b),R=D.getModel(),L=p(D,R,L),k=T.tree.root,M=D.parentNode===k?D:D.parentNode||D,U=T.getItemGraphicEl(M.dataIndex),B=M.getLayout(),j=U?{x:U.position[0],y:U.position[1],rawX:U.__radialOldRawX,rawY:U.__radialOldRawY}:B,W=D.getLayout();N?(w=new C(T,b,L),w.attr("position",[j.x,j.y])):w.updateData(T,b,L),w.__radialOldRawX=w.__radialRawX,w.__radialOldRawY=w.__radialRawY,w.__radialRawX=W.rawX,w.__radialRawY=W.rawY,_.add(w),T.setItemGraphicEl(b,w),x.updateProps(w,{position:[W.x,W.y]},I);var V=w.getSymbolPath();if(L.layout==="radial"){var z=k.children[0],J=z.getLayout(),Z=z.children.length,de,ie;if(W.x===J.x&&D.isExpand===!0){var ve={};ve.x=(z.children[0].getLayout().x+z.children[Z-1].getLayout().x)/2,ve.y=(z.children[0].getLayout().y+z.children[Z-1].getLayout().y)/2,de=Math.atan2(ve.y-J.y,ve.x-J.x),de<0&&(de=Math.PI*2+de),ie=ve.x<J.x,ie&&(de=de-Math.PI)}else de=Math.atan2(W.y-J.y,W.x-J.x),de<0&&(de=Math.PI*2+de),D.children.length===0||D.children.length!==0&&D.isExpand===!1?(ie=W.x<J.x,ie&&(de=de-Math.PI)):(ie=W.x>J.x,ie||(de=de-Math.PI));var xe=ie?"left":"right",_e=L.labelModel.get("rotate"),Ue=_e*(Math.PI/180);V.setStyle({textPosition:L.labelModel.get("position")||xe,textRotation:_e==null?-de:Ue,textOrigin:"center",verticalAlign:"middle"})}v(I,D,k,w,j,B,W,_,L)}function v(T,b,w,_,I,L,N,D,R){var k=R.edgeShape,M=_.__edge;if(k==="curve")b.parentNode&&b.parentNode!==w&&(M||(M=_.__edge=new x.BezierCurve({shape:E(R,I,I),style:O.defaults({opacity:0,strokeNoScale:!0},R.lineStyle)})),x.updateProps(M,{shape:E(R,L,N),style:{opacity:1}},T));else if(k==="polyline"&&(R.layout==="orthogonal"&&(b!==w&&b.children&&b.children.length!==0&&b.isExpand===!0))){for(var U=b.children,B=[],j=0;j<U.length;j++){var W=U[j].getLayout();B.push([W.x,W.y])}M||(M=_.__edge=new s({shape:{parentPoint:[N.x,N.y],childPoints:[[N.x,N.y]],orient:R.orient,forkPosition:R.edgeForkPosition},style:O.defaults({opacity:0,strokeNoScale:!0},R.lineStyle)})),x.updateProps(M,{shape:{parentPoint:[N.x,N.y],childPoints:B},style:{opacity:1}},T)}D.add(M)}function y(T,b,w,_,I,L){for(var N=T.tree.getNodeByDataIndex(b),D=T.tree.root,R=N.getModel(),L=p(N,R,L),k=N.parentNode===D?N:N.parentNode||N,M=L.edgeShape,U;U=k.getLayout(),U==null;)k=k.parentNode===D?k:k.parentNode||k;x.updateProps(w,{position:[U.x+1,U.y+1]},I,function(){_.remove(w),T.setItemGraphicEl(b,null)}),w.fadeOut(null,{keepLabel:!0});var B=T.getItemGraphicEl(k.dataIndex),j=B.__edge,W=w.__edge||(k.isExpand===!1||k.children.length===1?j:void 0),M=L.edgeShape;W&&(M==="curve"?x.updateProps(W,{shape:E(L,U,U),style:{opacity:0}},I,function(){_.remove(W)}):M==="polyline"&&L.layout==="orthogonal"&&x.updateProps(W,{shape:{parentPoint:[U.x,U.y],childPoints:[[U.x,U.y]]},style:{opacity:0}},I,function(){_.remove(W)}))}function E(T,b,w){var _,I,L,N,D=T.orient,R,k,M,U;if(T.layout==="radial"){R=b.rawX,M=b.rawY,k=w.rawX,U=w.rawY;var B=S(R,M),j=S(R,M+(U-M)*T.curvature),W=S(k,U+(M-U)*T.curvature),V=S(k,U);return{x1:B.x,y1:B.y,x2:V.x,y2:V.y,cpx1:j.x,cpy1:j.y,cpx2:W.x,cpy2:W.y}}else R=b.x,M=b.y,k=w.x,U=w.y,(D==="LR"||D==="RL")&&(_=R+(k-R)*T.curvature,I=M,L=k+(R-k)*T.curvature,N=U),(D==="TB"||D==="BT")&&(_=R,I=M+(U-M)*T.curvature,L=k,N=U+(M-U)*T.curvature);return{x1:R,y1:M,x2:k,y2:U,cpx1:_,cpy1:I,cpx2:L,cpy2:N}}H.exports=u},bQjk:function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("OLod"))})(this,function(O){return function(x){var C=O,A=C.lib,S=A.CipherParams,g=C.enc,f=g.Hex,c=C.format,o=c.Hex={stringify:function(i){return i.ciphertext.toString(f)},parse:function(i){var n=f.parse(i);return S.create({ciphertext:n})}}}(),O.format.Hex})},bYtY:function(H,F){var d={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},O={"[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},x=Object.prototype.toString,C=Array.prototype,A=C.forEach,S=C.filter,g=C.slice,f=C.map,c=C.reduce,o={};function r(se,te){se==="createCanvas"&&(s=null),o[se]=te}function i(se){if(se==null||typeof se!="object")return se;var te=se,Ve=x.call(se);if(Ve==="[object Array]"){if(!xe(se)){te=[];for(var ae=0,Q=se.length;ae<Q;ae++)te[ae]=i(se[ae])}}else if(O[Ve]){if(!xe(se)){var G=se.constructor;if(se.constructor.from)te=G.from(se);else{te=new G(se.length);for(var ae=0,Q=se.length;ae<Q;ae++)te[ae]=i(se[ae])}}}else if(!d[Ve]&&!xe(se)&&!U(se)){te={};for(var Y in se)se.hasOwnProperty(Y)&&(te[Y]=i(se[Y]))}return te}function n(se,te,Ve){if(!R(te)||!R(se))return Ve?i(te):se;for(var ae in te)if(te.hasOwnProperty(ae)){var Q=se[ae],G=te[ae];R(G)&&R(Q)&&!L(G)&&!L(Q)&&!U(G)&&!U(Q)&&!k(G)&&!k(Q)&&!xe(G)&&!xe(Q)?n(Q,G,Ve):(Ve||!(ae in se))&&(se[ae]=i(te[ae],!0))}return se}function e(se,te){for(var Ve=se[0],ae=1,Q=se.length;ae<Q;ae++)Ve=n(Ve,se[ae],te);return Ve}function l(se,te){for(var Ve in te)te.hasOwnProperty(Ve)&&(se[Ve]=te[Ve]);return se}function t(se,te,Ve){for(var ae in te)te.hasOwnProperty(ae)&&(Ve?te[ae]!=null:se[ae]==null)&&(se[ae]=te[ae]);return se}var a=function(){return o.createCanvas()};o.createCanvas=function(){return document.createElement("canvas")};var s;function u(){return s||(s=a().getContext("2d")),s}function h(se,te){if(se){if(se.indexOf)return se.indexOf(te);for(var Ve=0,ae=se.length;Ve<ae;Ve++)if(se[Ve]===te)return Ve}return-1}function p(se,te){var Ve=se.prototype;function ae(){}ae.prototype=te.prototype,se.prototype=new ae;for(var Q in Ve)Ve.hasOwnProperty(Q)&&(se.prototype[Q]=Ve[Q]);se.prototype.constructor=se,se.superClass=te}function m(se,te,Ve){se="prototype"in se?se.prototype:se,te="prototype"in te?te.prototype:te,t(se,te,Ve)}function v(se){return se?typeof se=="string"?!1:typeof se.length=="number":void 0}function y(se,te,Ve){if(!(se&&te))return;if(se.forEach&&se.forEach===A)se.forEach(te,Ve);else if(se.length===+se.length)for(var ae=0,Q=se.length;ae<Q;ae++)te.call(Ve,se[ae],ae,se);else for(var G in se)se.hasOwnProperty(G)&&te.call(Ve,se[G],G,se)}function E(se,te,Ve){if(!(se&&te))return;if(se.map&&se.map===f)return se.map(te,Ve);for(var ae=[],Q=0,G=se.length;Q<G;Q++)ae.push(te.call(Ve,se[Q],Q,se));return ae}function T(se,te,Ve,ae){if(!(se&&te))return;if(se.reduce&&se.reduce===c)return se.reduce(te,Ve,ae);for(var Q=0,G=se.length;Q<G;Q++)Ve=te.call(ae,Ve,se[Q],Q,se);return Ve}function b(se,te,Ve){if(!(se&&te))return;if(se.filter&&se.filter===S)return se.filter(te,Ve);for(var ae=[],Q=0,G=se.length;Q<G;Q++)te.call(Ve,se[Q],Q,se)&&ae.push(se[Q]);return ae}function w(se,te,Ve){if(!(se&&te))return;for(var ae=0,Q=se.length;ae<Q;ae++)if(te.call(Ve,se[ae],ae,se))return se[ae]}function _(se,te){var Ve=g.call(arguments,2);return function(){return se.apply(te,Ve.concat(g.call(arguments)))}}function I(se){var te=g.call(arguments,1);return function(){return se.apply(this,te.concat(g.call(arguments)))}}function L(se){return x.call(se)==="[object Array]"}function N(se){return typeof se=="function"}function D(se){return x.call(se)==="[object String]"}function R(se){var te=typeof se;return te==="function"||!!se&&te==="object"}function k(se){return!!d[x.call(se)]}function M(se){return!!O[x.call(se)]}function U(se){return typeof se=="object"&&typeof se.nodeType=="number"&&typeof se.ownerDocument=="object"}function B(se){return se!==se}function j(se){for(var te=0,Ve=arguments.length;te<Ve;te++)if(arguments[te]!=null)return arguments[te]}function W(se,te){return se!=null?se:te}function V(se,te,Ve){return se!=null?se:te!=null?te:Ve}function z(){return Function.call.apply(g,arguments)}function J(se){if(typeof se=="number")return[se,se,se,se];var te=se.length;return te===2?[se[0],se[1],se[0],se[1]]:te===3?[se[0],se[1],se[2],se[1]]:se}function Z(se,te){if(!se)throw new Error(te)}function de(se){return se==null?null:typeof se.trim=="function"?se.trim():se.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ie="__ec_primitive__";function ve(se){se[ie]=!0}function xe(se){return se[ie]}function _e(se){var te=L(se);this.data={};var Ve=this;se instanceof _e?se.each(ae):se&&y(se,ae);function ae(Q,G){te?Ve.set(Q,G):Ve.set(G,Q)}}_e.prototype={constructor:_e,get:function(te){return this.data.hasOwnProperty(te)?this.data[te]:null},set:function(te,Ve){return this.data[te]=Ve},each:function(te,Ve){Ve!==void 0&&(te=_(te,Ve));for(var ae in this.data)this.data.hasOwnProperty(ae)&&te(this.data[ae],ae)},removeKey:function(te){delete this.data[te]}};function Ue(se){return new _e(se)}function fe(se,te){for(var Ve=new se.constructor(se.length+te.length),ae=0;ae<se.length;ae++)Ve[ae]=se[ae];var Q=se.length;for(ae=0;ae<te.length;ae++)Ve[ae+Q]=te[ae];return Ve}function ke(){}F.$override=r,F.clone=i,F.merge=n,F.mergeAll=e,F.extend=l,F.defaults=t,F.createCanvas=a,F.getContext=u,F.indexOf=h,F.inherits=p,F.mixin=m,F.isArrayLike=v,F.each=y,F.map=E,F.reduce=T,F.filter=b,F.find=w,F.bind=_,F.curry=I,F.isArray=L,F.isFunction=N,F.isString=D,F.isObject=R,F.isBuiltInObject=k,F.isTypedArray=M,F.isDom=U,F.eqNaN=B,F.retrieve=j,F.retrieve2=W,F.retrieve3=V,F.slice=z,F.normalizeCssArray=J,F.assert=Z,F.trim=de,F.setAsPrimitive=ve,F.isPrimitive=xe,F.createHashMap=Ue,F.concatArray=fe,F.noop=ke},bZqE:function(H,F){function d(x,C,A){for(var S=[x],g=[],f;f=S.pop();)if(g.push(f),f.isExpand){var c=f.children;if(c.length)for(var o=0;o<c.length;o++)S.push(c[o])}for(;f=g.pop();)C(f,A)}function O(x,C){for(var A=[x],S;S=A.pop();)if(C(S),S.isExpand){var g=S.children;if(g.length)for(var f=g.length-1;f>=0;f--)A.push(g[f])}}F.eachAfter=d,F.eachBefore=O},bahg:function(H,F){function d(O){return O.split("")}H.exports=d},bbsP:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("CWI+"),A=d.n(C)},bogI:function(H,F,d){"use strict";d.d(F,"a",function(){return O});var O=function(C){if(!C)return null;var A=typeof C=="function";return A?C():C}},bsht:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},bx4M:function(H,F,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),S=d("q1tI"),g=d("TSYQ"),f=d.n(g),c=d("BGR+"),o=d("H84U"),r=function(E,T){var b={};for(var w in E)Object.prototype.hasOwnProperty.call(E,w)&&T.indexOf(w)<0&&(b[w]=E[w]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,w=Object.getOwnPropertySymbols(E);_<w.length;_++)T.indexOf(w[_])<0&&Object.prototype.propertyIsEnumerable.call(E,w[_])&&(b[w[_]]=E[w[_]]);return b},i=function(T){return S.createElement(o.a,null,function(b){var w=b.getPrefixCls,_=T.prefixCls,I=T.className,L=T.hoverable,N=L===void 0?!0:L,D=r(T,["prefixCls","className","hoverable"]),R=w("card",_),k=f()("".concat(R,"-grid"),I,x()({},"".concat(R,"-grid-hoverable"),N));return S.createElement("div",A()({},D,{className:k}))})},n=i,e=function(E,T){var b={};for(var w in E)Object.prototype.hasOwnProperty.call(E,w)&&T.indexOf(w)<0&&(b[w]=E[w]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,w=Object.getOwnPropertySymbols(E);_<w.length;_++)T.indexOf(w[_])<0&&Object.prototype.propertyIsEnumerable.call(E,w[_])&&(b[w[_]]=E[w[_]]);return b},l=function(T){return S.createElement(o.a,null,function(b){var w=b.getPrefixCls,_=T.prefixCls,I=T.className,L=T.avatar,N=T.title,D=T.description,R=e(T,["prefixCls","className","avatar","title","description"]),k=w("card",_),M=f()("".concat(k,"-meta"),I),U=L?S.createElement("div",{className:"".concat(k,"-meta-avatar")},L):null,B=N?S.createElement("div",{className:"".concat(k,"-meta-title")},N):null,j=D?S.createElement("div",{className:"".concat(k,"-meta-description")},D):null,W=B||j?S.createElement("div",{className:"".concat(k,"-meta-detail")},B,j):null;return S.createElement("div",A()({},R,{className:M}),U,W)})},t=l,a=d("ZTPi"),s=d("BMrR"),u=d("kPKH"),h=d("3Nzz"),p=function(E,T){var b={};for(var w in E)Object.prototype.hasOwnProperty.call(E,w)&&T.indexOf(w)<0&&(b[w]=E[w]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,w=Object.getOwnPropertySymbols(E);_<w.length;_++)T.indexOf(w[_])<0&&Object.prototype.propertyIsEnumerable.call(E,w[_])&&(b[w[_]]=E[w[_]]);return b};function m(E){var T=E.map(function(b,w){return S.createElement("li",{style:{width:"".concat(100/E.length,"%")},key:"action-".concat(w)},S.createElement("span",null,b))});return T}var v=function(T){var b,w,_=S.useContext(o.b),I=_.getPrefixCls,L=_.direction,N=S.useContext(h.b),D=function(Ht){T.onTabChange&&T.onTabChange(Ht)},R=function(){var Ht;return S.Children.forEach(T.children,function(tr){tr&&tr.type&&tr.type===n&&(Ht=!0)}),Ht},k=T.prefixCls,M=T.className,U=T.extra,B=T.headStyle,j=B===void 0?{}:B,W=T.bodyStyle,V=W===void 0?{}:W,z=T.title,J=T.loading,Z=T.bordered,de=Z===void 0?!0:Z,ie=T.size,ve=T.type,xe=T.cover,_e=T.actions,Ue=T.tabList,fe=T.children,ke=T.activeTabKey,se=T.defaultActiveTabKey,te=T.tabBarExtraContent,Ve=T.hoverable,ae=T.tabProps,Q=ae===void 0?{}:ae,G=p(T,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),Y=I("card",k),me=V.padding===0||V.padding==="0px"?{padding:24}:void 0,ue=S.createElement("div",{className:"".concat(Y,"-loading-block")}),Ce=S.createElement("div",{className:"".concat(Y,"-loading-content"),style:me},S.createElement(s.a,{gutter:8},S.createElement(u.a,{span:22},ue)),S.createElement(s.a,{gutter:8},S.createElement(u.a,{span:8},ue),S.createElement(u.a,{span:15},ue)),S.createElement(s.a,{gutter:8},S.createElement(u.a,{span:6},ue),S.createElement(u.a,{span:18},ue)),S.createElement(s.a,{gutter:8},S.createElement(u.a,{span:13},ue),S.createElement(u.a,{span:9},ue)),S.createElement(s.a,{gutter:8},S.createElement(u.a,{span:4},ue),S.createElement(u.a,{span:3},ue),S.createElement(u.a,{span:16},ue))),Ie=ke!==void 0,ce=A()(A()({},Q),(b={},x()(b,Ie?"activeKey":"defaultActiveKey",Ie?ke:se),x()(b,"tabBarExtraContent",te),b)),Ae,Te=Ue&&Ue.length?S.createElement(a.a,A()({size:"large"},ce,{className:"".concat(Y,"-head-tabs"),onChange:D}),Ue.map(function(xt){return S.createElement(a.a.TabPane,{tab:xt.tab,disabled:xt.disabled,key:xt.key})})):null;(z||U||Te)&&(Ae=S.createElement("div",{className:"".concat(Y,"-head"),style:j},S.createElement("div",{className:"".concat(Y,"-head-wrapper")},z&&S.createElement("div",{className:"".concat(Y,"-head-title")},z),U&&S.createElement("div",{className:"".concat(Y,"-extra")},U)),Te));var Ge=xe?S.createElement("div",{className:"".concat(Y,"-cover")},xe):null,gt=S.createElement("div",{className:"".concat(Y,"-body"),style:V},J?Ce:fe),qe=_e&&_e.length?S.createElement("ul",{className:"".concat(Y,"-actions")},m(_e)):null,Le=Object(c.default)(G,["onTabChange"]),Ot=ie||N,$e=f()(Y,M,(w={},x()(w,"".concat(Y,"-loading"),J),x()(w,"".concat(Y,"-bordered"),de),x()(w,"".concat(Y,"-hoverable"),Ve),x()(w,"".concat(Y,"-contain-grid"),R()),x()(w,"".concat(Y,"-contain-tabs"),Ue&&Ue.length),x()(w,"".concat(Y,"-").concat(Ot),Ot),x()(w,"".concat(Y,"-type-").concat(ve),!!ve),x()(w,"".concat(Y,"-rtl"),L==="rtl"),w));return S.createElement("div",A()({},Le,{className:$e}),Ae,Ge,gt,qe)};v.Grid=n,v.Meta=t;var y=F.a=v},c2i1:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=d("Yl7c"),S=A.enableClassCheck;function g(e){return"_EC_"+e}var f=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},c=f.prototype;c.type="graph",c.isDirected=function(){return this._directed},c.addNode=function(e,l){e=e==null?""+l:""+e;var t=this._nodesMap;if(t[g(e)])return;var a=new o(e,l);return a.hostGraph=this,this.nodes.push(a),t[g(e)]=a,a},c.getNodeByIndex=function(e){var l=this.data.getRawIndex(e);return this.nodes[l]},c.getNodeById=function(e){return this._nodesMap[g(e)]},c.addEdge=function(e,l,t){var a=this._nodesMap,s=this._edgesMap;if(typeof e=="number"&&(e=this.nodes[e]),typeof l=="number"&&(l=this.nodes[l]),o.isInstance(e)||(e=a[g(e)]),o.isInstance(l)||(l=a[g(l)]),!e||!l)return;var u=e.id+"-"+l.id;if(s[u])return;var h=new r(e,l,t);return h.hostGraph=this,this._directed&&(e.outEdges.push(h),l.inEdges.push(h)),e.edges.push(h),e!==l&&l.edges.push(h),this.edges.push(h),s[u]=h,h},c.getEdgeByIndex=function(e){var l=this.edgeData.getRawIndex(e);return this.edges[l]},c.getEdge=function(e,l){o.isInstance(e)&&(e=e.id),o.isInstance(l)&&(l=l.id);var t=this._edgesMap;return this._directed?t[e+"-"+l]:t[e+"-"+l]||t[l+"-"+e]},c.eachNode=function(e,l){for(var t=this.nodes,a=t.length,s=0;s<a;s++)t[s].dataIndex>=0&&e.call(l,t[s],s)},c.eachEdge=function(e,l){for(var t=this.edges,a=t.length,s=0;s<a;s++)t[s].dataIndex>=0&&t[s].node1.dataIndex>=0&&t[s].node2.dataIndex>=0&&e.call(l,t[s],s)},c.breadthFirstTraverse=function(e,l,t,a){if(o.isInstance(l)||(l=this._nodesMap[g(l)]),!l)return;for(var s=t==="out"?"outEdges":t==="in"?"inEdges":"edges",u=0;u<this.nodes.length;u++)this.nodes[u].__visited=!1;if(e.call(a,l,null))return;for(var h=[l];h.length;)for(var p=h.shift(),m=p[s],u=0;u<m.length;u++){var v=m[u],y=v.node1===p?v.node2:v.node1;if(!y.__visited){if(e.call(a,y,p))return;h.push(y),y.__visited=!0}}},c.update=function(){for(var e=this.data,l=this.edgeData,t=this.nodes,a=this.edges,s=0,u=t.length;s<u;s++)t[s].dataIndex=-1;for(var s=0,u=e.count();s<u;s++)t[e.getRawIndex(s)].dataIndex=s;l.filterSelf(function(h){var p=a[l.getRawIndex(h)];return p.node1.dataIndex>=0&&p.node2.dataIndex>=0});for(var s=0,u=a.length;s<u;s++)a[s].dataIndex=-1;for(var s=0,u=l.count();s<u;s++)a[l.getRawIndex(s)].dataIndex=s},c.clone=function(){for(var e=new f(this._directed),l=this.nodes,t=this.edges,a=0;a<l.length;a++)e.addNode(l[a].id,l[a].dataIndex);for(var a=0;a<t.length;a++){var s=t[a];e.addEdge(s.node1.id,s.node2.id,s.dataIndex)}return e};function o(e,l){this.id=e==null?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=l==null?-1:l}o.prototype={constructor:o,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(e){if(this.dataIndex<0)return;var l=this.hostGraph,t=l.data.getItemModel(this.dataIndex);return t.getModel(e)}};function r(e,l,t){this.node1=e,this.node2=l,this.dataIndex=t==null?-1:t}r.prototype.getModel=function(e){if(this.dataIndex<0)return;var l=this.hostGraph,t=l.edgeData.getItemModel(this.dataIndex);return t.getModel(e)};var i=function(e,l){return{getValue:function(t){var a=this[e][l];return a.get(a.getDimension(t||"value"),this.dataIndex)},setVisual:function(t,a){this.dataIndex>=0&&this[e][l].setItemVisual(this.dataIndex,t,a)},getVisual:function(t,a){return this[e][l].getItemVisual(this.dataIndex,t,a)},setLayout:function(t,a){this.dataIndex>=0&&this[e][l].setItemLayout(this.dataIndex,t,a)},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)}}};C.mixin(o,i("hostGraph","data")),C.mixin(r,i("hostGraph","edgeData")),f.Node=o,f.Edge=r,S(o),S(r);var n=f;H.exports=n},c3jg:function(H,F,d){"use strict";d.d(F,"e",function(){return r}),d.d(F,"c",function(){return n}),d.d(F,"d",function(){return e}),d.d(F,"a",function(){return t}),d.d(F,"f",function(){return a}),d.d(F,"b",function(){return s});var O=d("KQm4"),x=d("VTBJ"),C=d("Ff2n"),A=d("q1tI"),S=d.n(A),g=d("TOwV");function f(u){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=[];return S.a.Children.forEach(u,function(m){if(m==null&&!h.keepEmpty)return;Array.isArray(m)?p=p.concat(f(m)):Object(g.isFragment)(m)&&m.props?p=p.concat(f(m.props.children,h)):p.push(m)}),p}var c=d("xroW"),o=d("wPhX");function r(u,h){return u!=null?u:h}function i(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],h=new Map;function p(m){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(m||[]).forEach(function(y){var E=y.key,T=y.children;Object(c.a)(E!=null,"Tree node must have a certain key: [".concat(v).concat(E,"]"));var b=String(E);Object(c.a)(!h.has(b)||E===null||E===void 0,"Same 'key' exist in the Tree: ".concat(b)),h.set(b,!0),p(T,"".concat(v).concat(b," > "))})}p(u)}function n(u){function h(p){var m=f(p);return m.map(function(v){if(!Object(o.i)(v))return Object(c.a)(!v,"Tree/TreeNode can only accept TreeNode as children."),null;var y=v.key,E=v.props,T=E.children,b=Object(C.a)(E,["children"]),w=Object(x.a)({key:y},b),_=h(T);return _.length&&(w.children=_),w}).filter(function(v){return v})}return h(u)}function e(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],p=new Set(h===!0?[]:h),m=[];function v(y){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return y.map(function(T,b){var w=Object(o.h)(E?E.pos:"0",b),_=r(T.key,w),I=Object(x.a)(Object(x.a)({},T),{},{parent:E,pos:w,children:null,data:T,isStart:[].concat(Object(O.a)(E?E.isStart:[]),[b===0]),isEnd:[].concat(Object(O.a)(E?E.isEnd:[]),[b===y.length-1])});return m.push(I),h===!0||p.has(_)?I.children=v(T.children||[],I):I.children=[],I})}return v(u),m}function l(u,h,p){var m;p?typeof p=="string"?m=function(E){return E[p]}:typeof p=="function"&&(m=function(E){return p(E)}):m=function(E,T){return r(E.key,T)};function v(y,E,T){var b=y?y.children:u,w=y?Object(o.h)(T.pos,E):"0";if(y){var _=m(y,w),I={node:y,index:E,pos:w,key:_,parentPos:T.node?T.pos:null,level:T.level+1};h(I)}b&&b.forEach(function(L,N){v(L,N,{node:y,pos:w,level:T?T.level+1:-1})})}v(null)}function t(u){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=h.initWrapper,m=h.processEntity,v=h.onProcessFinished,y=arguments.length>2?arguments[2]:void 0,E={},T={},b={posEntities:E,keyEntities:T};return p&&(b=p(b)||b),l(u,function(w){var _=w.node,I=w.index,L=w.pos,N=w.key,D=w.parentPos,R=w.level,k={node:_,index:I,key:N,pos:L,level:R},M=r(N,L);E[L]=k,T[M]=k,k.parent=E[D],k.parent&&(k.parent.children=k.parent.children||[],k.parent.children.push(k)),m&&m(k,b)},y),v&&v(b),b}function a(u,h){var p=h.expandedKeys,m=h.selectedKeys,v=h.loadedKeys,y=h.loadingKeys,E=h.checkedKeys,T=h.halfCheckedKeys,b=h.dragOverNodeKey,w=h.dropPosition,_=h.keyEntities,I=_[u],L={eventKey:u,expanded:p.indexOf(u)!==-1,selected:m.indexOf(u)!==-1,loaded:v.indexOf(u)!==-1,loading:y.indexOf(u)!==-1,checked:E.indexOf(u)!==-1,halfChecked:T.indexOf(u)!==-1,pos:String(I?I.pos:""),dragOver:b===u&&w===0,dragOverGapTop:b===u&&w===-1,dragOverGapBottom:b===u&&w===1};return L}function s(u){var h=u.data,p=u.expanded,m=u.selected,v=u.checked,y=u.loaded,E=u.loading,T=u.halfChecked,b=u.dragOver,w=u.dragOverGapTop,_=u.dragOverGapBottom,I=u.pos,L=u.active,N=Object(x.a)(Object(x.a)({},h),{},{expanded:p,selected:m,checked:v,loaded:y,loading:E,halfChecked:T,dragOver:b,dragOverGapTop:w,dragOverGapBottom:_,pos:I,active:L});return"props"in N||Object.defineProperty(N,"props",{get:function(){return Object(c.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),u}}),N}},c5Ni:function(H,F,d){},c5fP:function(H,F,d){"use strict";function O($e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(Ht){return typeof Ht}:O=function(Ht){return Ht&&typeof Symbol=="function"&&Ht.constructor===Symbol&&Ht!==Symbol.prototype?"symbol":typeof Ht},O($e)}Object.defineProperty(F,"__esModule",{value:!0}),F._tr_init=Ge,F._tr_stored_block=gt,F._tr_flush_block=Le,F._tr_tally=Ot,F._tr_align=qe;var x=A(d("6BzB"));function C(){if(typeof WeakMap!="function")return null;var $e=new WeakMap;return C=function(){return $e},$e}function A($e){if($e&&$e.__esModule)return $e;if($e===null||O($e)!=="object"&&typeof $e!="function")return{default:$e};var xt=C();if(xt&&xt.has($e))return xt.get($e);var Ht={},tr=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Mt in $e)if(Object.prototype.hasOwnProperty.call($e,Mt)){var Tt=tr?Object.getOwnPropertyDescriptor($e,Mt):null;Tt&&(Tt.get||Tt.set)?Object.defineProperty(Ht,Mt,Tt):Ht[Mt]=$e[Mt]}return Ht.default=$e,xt&&xt.set($e,Ht),Ht}var S=4,g=0,f=1,c=2;function o($e){for(var xt=$e.length;--xt>=0;)$e[xt]=0}var r=0,i=1,n=2,e=3,l=258,t=29,a=256,s=a+1+t,u=30,h=19,p=2*s+1,m=15,v=16,y=7,E=256,T=16,b=17,w=18,_=[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],L=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],D=512,R=new Array((s+2)*2);o(R);var k=new Array(u*2);o(k);var M=new Array(D);o(M);var U=new Array(l-e+1);o(U);var B=new Array(t);o(B);var j=new Array(u);o(j);function W($e,xt,Ht,tr,Mt){this.static_tree=$e,this.extra_bits=xt,this.extra_base=Ht,this.elems=tr,this.max_length=Mt,this.has_stree=$e&&$e.length}var V,z,J;function Z($e,xt){this.dyn_tree=$e,this.max_code=0,this.stat_desc=xt}function de($e){return $e<256?M[$e]:M[256+($e>>>7)]}function ie($e,xt){$e.pending_buf[$e.pending++]=xt&255,$e.pending_buf[$e.pending++]=xt>>>8&255}function ve($e,xt,Ht){$e.bi_valid>v-Ht?($e.bi_buf|=xt<<$e.bi_valid&65535,ie($e,$e.bi_buf),$e.bi_buf=xt>>v-$e.bi_valid,$e.bi_valid+=Ht-v):($e.bi_buf|=xt<<$e.bi_valid&65535,$e.bi_valid+=Ht)}function xe($e,xt,Ht){ve($e,Ht[xt*2],Ht[xt*2+1])}function _e($e,xt){var Ht=0;do Ht|=$e&1,$e>>>=1,Ht<<=1;while(--xt>0);return Ht>>>1}function Ue($e){$e.bi_valid===16?(ie($e,$e.bi_buf),$e.bi_buf=0,$e.bi_valid=0):$e.bi_valid>=8&&($e.pending_buf[$e.pending++]=$e.bi_buf&255,$e.bi_buf>>=8,$e.bi_valid-=8)}function fe($e,xt){var Ht=xt.dyn_tree,tr=xt.max_code,Mt=xt.stat_desc.static_tree,Tt=xt.stat_desc.has_stree,Xe=xt.stat_desc.extra_bits,oe=xt.stat_desc.extra_base,X=xt.stat_desc.max_length,Be,Ee,ee,lt,Ct,dt,_t=0;for(lt=0;lt<=m;lt++)$e.bl_count[lt]=0;for(Ht[$e.heap[$e.heap_max]*2+1]=0,Be=$e.heap_max+1;Be<p;Be++){if(Ee=$e.heap[Be],lt=Ht[Ht[Ee*2+1]*2+1]+1,lt>X&&(lt=X,_t++),Ht[Ee*2+1]=lt,Ee>tr)continue;$e.bl_count[lt]++,Ct=0,Ee>=oe&&(Ct=Xe[Ee-oe]),dt=Ht[Ee*2],$e.opt_len+=dt*(lt+Ct),Tt&&($e.static_len+=dt*(Mt[Ee*2+1]+Ct))}if(_t===0)return;do{for(lt=X-1;$e.bl_count[lt]===0;)lt--;$e.bl_count[lt]--,$e.bl_count[lt+1]+=2,$e.bl_count[X]--,_t-=2}while(_t>0);for(lt=X;lt!==0;lt--)for(Ee=$e.bl_count[lt];Ee!==0;){if(ee=$e.heap[--Be],ee>tr)continue;Ht[ee*2+1]!==lt&&($e.opt_len+=(lt-Ht[ee*2+1])*Ht[ee*2],Ht[ee*2+1]=lt),Ee--}}function ke($e,xt,Ht){var tr=new Array(m+1),Mt=0,Tt,Xe;for(Tt=1;Tt<=m;Tt++)tr[Tt]=Mt=Mt+Ht[Tt-1]<<1;for(Xe=0;Xe<=xt;Xe++){var oe=$e[Xe*2+1];if(oe===0)continue;$e[Xe*2]=_e(tr[oe]++,oe)}}function se(){var $e,xt,Ht,tr,Mt,Tt=new Array(m+1);for(Ht=0,tr=0;tr<t-1;tr++)for(B[tr]=Ht,$e=0;$e<1<<_[tr];$e++)U[Ht++]=tr;for(U[Ht-1]=tr,Mt=0,tr=0;tr<16;tr++)for(j[tr]=Mt,$e=0;$e<1<<I[tr];$e++)M[Mt++]=tr;for(Mt>>=7;tr<u;tr++)for(j[tr]=Mt<<7,$e=0;$e<1<<I[tr]-7;$e++)M[256+Mt++]=tr;for(xt=0;xt<=m;xt++)Tt[xt]=0;for($e=0;$e<=143;)R[$e*2+1]=8,$e++,Tt[8]++;for(;$e<=255;)R[$e*2+1]=9,$e++,Tt[9]++;for(;$e<=279;)R[$e*2+1]=7,$e++,Tt[7]++;for(;$e<=287;)R[$e*2+1]=8,$e++,Tt[8]++;for(ke(R,s+1,Tt),$e=0;$e<u;$e++)k[$e*2+1]=5,k[$e*2]=_e($e,5);V=new W(R,_,a+1,s,m),z=new W(k,I,0,u,m),J=new W(new Array(0),L,0,h,y)}function te($e){var xt;for(xt=0;xt<s;xt++)$e.dyn_ltree[xt*2]=0;for(xt=0;xt<u;xt++)$e.dyn_dtree[xt*2]=0;for(xt=0;xt<h;xt++)$e.bl_tree[xt*2]=0;$e.dyn_ltree[E*2]=1,$e.opt_len=$e.static_len=0,$e.last_lit=$e.matches=0}function Ve($e){$e.bi_valid>8?ie($e,$e.bi_buf):$e.bi_valid>0&&($e.pending_buf[$e.pending++]=$e.bi_buf),$e.bi_buf=0,$e.bi_valid=0}function ae($e,xt,Ht,tr){Ve($e),tr&&(ie($e,Ht),ie($e,~Ht)),x.arraySet($e.pending_buf,$e.window,xt,Ht,$e.pending),$e.pending+=Ht}function Q($e,xt,Ht,tr){var Mt=xt*2,Tt=Ht*2;return $e[Mt]<$e[Tt]||$e[Mt]===$e[Tt]&&tr[xt]<=tr[Ht]}function G($e,xt,Ht){for(var tr=$e.heap[Ht],Mt=Ht<<1;Mt<=$e.heap_len&&!(Mt<$e.heap_len&&Q(xt,$e.heap[Mt+1],$e.heap[Mt],$e.depth)&&Mt++,Q(xt,tr,$e.heap[Mt],$e.depth));)$e.heap[Ht]=$e.heap[Mt],Ht=Mt,Mt<<=1;$e.heap[Ht]=tr}function Y($e,xt,Ht){var tr,Mt,Tt=0,Xe,oe;if($e.last_lit!==0)do tr=$e.pending_buf[$e.d_buf+Tt*2]<<8|$e.pending_buf[$e.d_buf+Tt*2+1],Mt=$e.pending_buf[$e.l_buf+Tt],Tt++,tr===0?xe($e,Mt,xt):(Xe=U[Mt],xe($e,Xe+a+1,xt),oe=_[Xe],oe!==0&&(Mt-=B[Xe],ve($e,Mt,oe)),tr--,Xe=de(tr),xe($e,Xe,Ht),oe=I[Xe],oe!==0&&(tr-=j[Xe],ve($e,tr,oe)));while(Tt<$e.last_lit);xe($e,E,xt)}function me($e,xt){var Ht=xt.dyn_tree,tr=xt.stat_desc.static_tree,Mt=xt.stat_desc.has_stree,Tt=xt.stat_desc.elems,Xe,oe,X=-1,Be;for($e.heap_len=0,$e.heap_max=p,Xe=0;Xe<Tt;Xe++)Ht[Xe*2]!==0?($e.heap[++$e.heap_len]=X=Xe,$e.depth[Xe]=0):Ht[Xe*2+1]=0;for(;$e.heap_len<2;)Be=$e.heap[++$e.heap_len]=X<2?++X:0,Ht[Be*2]=1,$e.depth[Be]=0,$e.opt_len--,Mt&&($e.static_len-=tr[Be*2+1]);for(xt.max_code=X,Xe=$e.heap_len>>1;Xe>=1;Xe--)G($e,Ht,Xe);Be=Tt;do Xe=$e.heap[1],$e.heap[1]=$e.heap[$e.heap_len--],G($e,Ht,1),oe=$e.heap[1],$e.heap[--$e.heap_max]=Xe,$e.heap[--$e.heap_max]=oe,Ht[Be*2]=Ht[Xe*2]+Ht[oe*2],$e.depth[Be]=($e.depth[Xe]>=$e.depth[oe]?$e.depth[Xe]:$e.depth[oe])+1,Ht[Xe*2+1]=Ht[oe*2+1]=Be,$e.heap[1]=Be++,G($e,Ht,1);while($e.heap_len>=2);$e.heap[--$e.heap_max]=$e.heap[1],fe($e,xt),ke(Ht,X,$e.bl_count)}function ue($e,xt,Ht){var tr,Mt=-1,Tt,Xe=xt[0*2+1],oe=0,X=7,Be=4;for(Xe===0&&(X=138,Be=3),xt[(Ht+1)*2+1]=65535,tr=0;tr<=Ht;tr++){if(Tt=Xe,Xe=xt[(tr+1)*2+1],++oe<X&&Tt===Xe)continue;oe<Be?$e.bl_tree[Tt*2]+=oe:Tt!==0?(Tt!==Mt&&$e.bl_tree[Tt*2]++,$e.bl_tree[T*2]++):oe<=10?$e.bl_tree[b*2]++:$e.bl_tree[w*2]++,oe=0,Mt=Tt,Xe===0?(X=138,Be=3):Tt===Xe?(X=6,Be=3):(X=7,Be=4)}}function Ce($e,xt,Ht){var tr,Mt=-1,Tt,Xe=xt[0*2+1],oe=0,X=7,Be=4;for(Xe===0&&(X=138,Be=3),tr=0;tr<=Ht;tr++){if(Tt=Xe,Xe=xt[(tr+1)*2+1],++oe<X&&Tt===Xe)continue;if(oe<Be)do xe($e,Tt,$e.bl_tree);while(--oe!==0);else Tt!==0?(Tt!==Mt&&(xe($e,Tt,$e.bl_tree),oe--),xe($e,T,$e.bl_tree),ve($e,oe-3,2)):oe<=10?(xe($e,b,$e.bl_tree),ve($e,oe-3,3)):(xe($e,w,$e.bl_tree),ve($e,oe-11,7));oe=0,Mt=Tt,Xe===0?(X=138,Be=3):Tt===Xe?(X=6,Be=3):(X=7,Be=4)}}function Ie($e){var xt;for(ue($e,$e.dyn_ltree,$e.l_desc.max_code),ue($e,$e.dyn_dtree,$e.d_desc.max_code),me($e,$e.bl_desc),xt=h-1;xt>=3&&!($e.bl_tree[N[xt]*2+1]!==0);xt--);return $e.opt_len+=3*(xt+1)+5+5+4,xt}function ce($e,xt,Ht,tr){var Mt;for(ve($e,xt-257,5),ve($e,Ht-1,5),ve($e,tr-4,4),Mt=0;Mt<tr;Mt++)ve($e,$e.bl_tree[N[Mt]*2+1],3);Ce($e,$e.dyn_ltree,xt-1),Ce($e,$e.dyn_dtree,Ht-1)}function Ae($e){var xt=4093624447,Ht;for(Ht=0;Ht<=31;Ht++,xt>>>=1)if(xt&1&&$e.dyn_ltree[Ht*2]!==0)return g;if($e.dyn_ltree[9*2]!==0||$e.dyn_ltree[10*2]!==0||$e.dyn_ltree[13*2]!==0)return f;for(Ht=32;Ht<a;Ht++)if($e.dyn_ltree[Ht*2]!==0)return f;return g}var Te=!1;function Ge($e){Te||(se(),Te=!0),$e.l_desc=new Z($e.dyn_ltree,V),$e.d_desc=new Z($e.dyn_dtree,z),$e.bl_desc=new Z($e.bl_tree,J),$e.bi_buf=0,$e.bi_valid=0,te($e)}function gt($e,xt,Ht,tr){ve($e,(r<<1)+(tr?1:0),3),ae($e,xt,Ht,!0)}function qe($e){ve($e,i<<1,3),xe($e,E,R),Ue($e)}function Le($e,xt,Ht,tr){var Mt,Tt,Xe=0;$e.level>0?($e.strm.data_type===c&&($e.strm.data_type=Ae($e)),me($e,$e.l_desc),me($e,$e.d_desc),Xe=Ie($e),Mt=$e.opt_len+3+7>>>3,Tt=$e.static_len+3+7>>>3,Tt<=Mt&&(Mt=Tt)):Mt=Tt=Ht+5,Ht+4<=Mt&&xt!==-1?gt($e,xt,Ht,tr):$e.strategy===S||Tt===Mt?(ve($e,(i<<1)+(tr?1:0),3),Y($e,R,k)):(ve($e,(n<<1)+(tr?1:0),3),ce($e,$e.l_desc.max_code+1,$e.d_desc.max_code+1,Xe+1),Y($e,$e.dyn_ltree,$e.dyn_dtree)),te($e),tr&&Ve($e)}function Ot($e,xt,Ht){return $e.pending_buf[$e.d_buf+$e.last_lit*2]=xt>>>8&255,$e.pending_buf[$e.d_buf+$e.last_lit*2+1]=xt&255,$e.pending_buf[$e.l_buf+$e.last_lit]=Ht&255,$e.last_lit++,xt===0?$e.dyn_ltree[Ht*2]++:($e.matches++,xt--,$e.dyn_ltree[(U[Ht]+a+1)*2]++,$e.dyn_dtree[de(xt)*2]++),$e.last_lit===$e.lit_bufsize-1}},c8qY:function(H,F,d){var O=d("IwbS"),x=d("fls0");function C(n){this._ctor=n||x,this.group=new O.Group}var A=C.prototype;A.isPersistent=function(){return!0},A.updateData=function(n){var e=this,l=e.group,t=e._lineData;e._lineData=n,t||l.removeAll();var a=c(n);n.diff(t).add(function(s){S(e,n,s,a)}).update(function(s,u){g(e,t,n,u,s,a)}).remove(function(s){l.remove(t.getItemGraphicEl(s))}).execute()};function S(n,e,l,t){var a=e.getItemLayout(l);if(!r(a))return;var s=new n._ctor(e,l,t);e.setItemGraphicEl(l,s),n.group.add(s)}function g(n,e,l,t,a,s){var u=e.getItemGraphicEl(t);if(!r(l.getItemLayout(a))){n.group.remove(u);return}u?u.updateData(l,a,s):u=new n._ctor(l,a,s),l.setItemGraphicEl(a,u),n.group.add(u)}A.updateLayout=function(){var n=this._lineData;if(!n)return;n.eachItemGraphicEl(function(e,l){e.updateLayout(n,l)},this)},A.incrementalPrepareUpdate=function(n){this._seriesScope=c(n),this._lineData=null,this.group.removeAll()};function f(n){return n.animators&&n.animators.length>0}A.incrementalUpdate=function(n,e){function l(u){!u.isGroup&&!f(u)&&(u.incremental=u.useHoverLayer=!0)}for(var t=n.start;t<n.end;t++){var a=e.getItemLayout(t);if(r(a)){var s=new this._ctor(e,t,this._seriesScope);s.traverse(l),this.group.add(s),e.setItemGraphicEl(t,s)}}};function c(n){var e=n.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 n=this._incremental;n&&n.clearDisplaybles()};function o(n){return isNaN(n[0])||isNaN(n[1])}function r(n){return!o(n[0])&&!o(n[1])}var i=C;H.exports=i},cCMj:function(H,F,d){var O=d("bYtY"),x={updateSelectedMap:function(C){this._targetList=O.isArray(C)?C.slice():[],this._selectTargetMap=O.reduce(C||[],function(A,S){return A.set(S.name,S),A},O.createHashMap())},select:function(C,A){var S=A!=null?this._targetList[A]:this._selectTargetMap.get(C),g=this.get("selectedMode");g==="single"&&this._selectTargetMap.each(function(f){f.selected=!1}),S&&(S.selected=!0)},unSelect:function(C,A){var S=A!=null?this._targetList[A]:this._selectTargetMap.get(C);S&&(S.selected=!1)},toggleSelected:function(C,A){var S=A!=null?this._targetList[A]:this._selectTargetMap.get(C);if(S!=null)return this[S.selected?"unSelect":"select"](C,A),S.selected},isSelected:function(C,A){var S=A!=null?this._targetList[A]:this._selectTargetMap.get(C);return S&&S.selected}};H.exports=x},cVA7:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=d("MT78"),x=S(O),C=d("t3Fx"),A=S(C);function S(r){return r&&r.__esModule?r:{default:r}}function g(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function f(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function c(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var o=function(r){c(i,r);function i(n){g(this,i);var e=f(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,n));return e.echartsLib=x.default,e}return i}(A.default);F.default=o},cWXX:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("oIFs"),A=d.n(C)},ca2m:function(H,F,d){var O=d("bYtY"),x={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)"]}}},C={};C.categoryAxis=O.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},x),C.valueAxis=O.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},x),C.timeAxis=O.defaults({scale:!0,min:"dataMin",max:"dataMax"},C.valueAxis),C.logAxis=O.defaults({scale:!0,logBase:10},C.valueAxis);var A=C;H.exports=A},cbJ4:function(H,F,d){var O=d("bYtY"),x=O.createHashMap;function C(A){A.eachSeriesByType("themeRiver",function(S){var g=S.getData(),f=S.getRawData(),c=S.get("color"),o=x();g.each(function(r){o.set(g.getRawIndex(r),r)}),f.each(function(r){var i=f.getName(r),n=c[(S.nameMap.get(i)-1)%c.length];f.setItemVisual(r,"color",n);var e=o.get(r);e!=null&&g.setItemVisual(e,"color",n)})})}H.exports=C},chpo:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=1,x=function(){return"".concat(O++)};F.default=x},cpOr:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("T4UG"),A=d("YXkt"),S=d("bYtY"),g=S.concatArray,f=S.mergeAll,c=S.map,o=d("7aKB"),r=o.encodeHTML,i=d("IDmD"),n=typeof Uint32Array=="undefined"?Array:Uint32Array,e=typeof Float64Array=="undefined"?Array:Float64Array;function l(s){var u=s.data;u&&u[0]&&u[0][0]&&u[0][0].coord&&(s.data=c(u,function(h){var p=[h[0].coord,h[1].coord],m={coords:p};return h[0].name&&(m.fromName=h[0].name),h[1].name&&(m.toName=h[1].name),f([m,h[0],h[1]])}))}var t=C.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(s){s.data=s.data||[],l(s);var u=this._processFlatCoordsArray(s.data);this._flatCoords=u.flatCoords,this._flatCoordsOffset=u.flatCoordsOffset,u.flatCoords&&(s.data=new Float32Array(u.count)),t.superApply(this,"init",arguments)},mergeOption:function(s){if(s.data=s.data||[],l(s),s.data){var u=this._processFlatCoordsArray(s.data);this._flatCoords=u.flatCoords,this._flatCoordsOffset=u.flatCoordsOffset,u.flatCoords&&(s.data=new Float32Array(u.count))}t.superApply(this,"mergeOption",arguments)},appendData:function(s){var u=this._processFlatCoordsArray(s.data);u.flatCoords&&(this._flatCoords?(this._flatCoords=g(this._flatCoords,u.flatCoords),this._flatCoordsOffset=g(this._flatCoordsOffset,u.flatCoordsOffset)):(this._flatCoords=u.flatCoords,this._flatCoordsOffset=u.flatCoordsOffset),s.data=new Float32Array(u.count)),this.getRawData().appendData(s.data)},_getCoordsFromItemModel:function(s){var u=this.getData().getItemModel(s),h=u.option instanceof Array?u.option:u.getShallow("coords");return h},getLineCoordsCount:function(s){return this._flatCoordsOffset?this._flatCoordsOffset[s*2+1]:this._getCoordsFromItemModel(s).length},getLineCoords:function(s,u){if(this._flatCoordsOffset){for(var h=this._flatCoordsOffset[s*2],p=this._flatCoordsOffset[s*2+1],m=0;m<p;m++)u[m]=u[m]||[],u[m][0]=this._flatCoords[h+m*2],u[m][1]=this._flatCoords[h+m*2+1];return p}else{for(var v=this._getCoordsFromItemModel(s),m=0;m<v.length;m++)u[m]=u[m]||[],u[m][0]=v[m][0],u[m][1]=v[m][1];return v.length}},_processFlatCoordsArray:function(s){var u=0;if(this._flatCoords&&(u=this._flatCoords.length),typeof s[0]=="number"){for(var h=s.length,p=new n(h),m=new e(h),v=0,y=0,E=0,T=0;T<h;){E++;var b=s[T++];p[y++]=v+u,p[y++]=b;for(var w=0;w<b;w++){var _=s[T++],I=s[T++];m[v++]=_,m[v++]=I,T>h}}return{flatCoordsOffset:new Uint32Array(p.buffer,0,y),flatCoords:m,count:E}}return{flatCoordsOffset:null,flatCoords:null,count:s.length}},getInitialData:function(s,u){var h=new A(["value"],this);return h.hasItemOption=!1,h.initData(s.data,[],function(p,m,v,y){if(p instanceof Array)return NaN;h.hasItemOption=!0;var E=p.value;if(E!=null)return E instanceof Array?E[y]:E}),h},formatTooltip:function(s){var u=this.getData(),h=u.getItemModel(s),p=h.get("name");if(p)return p;var m=h.get("fromName"),v=h.get("toName"),y=[];return m!=null&&y.push(m),v!=null&&y.push(v),r(y.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var s=this.option.progressive;return s==null?this.option.large?1e4:this.get("progressive"):s},getProgressiveThreshold:function(){var s=this.option.progressiveThreshold;return s==null?this.option.large?2e4:this.get("progressiveThreshold"):s},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}}}),a=t;H.exports=a},crZl:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("IwbS"),A=d("7aKB"),S=d("+TT/"),g=d("XxSj"),f=O.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(c,o){this.ecModel=c,this.api=o,this.visualMapModel},render:function(c,o,r,i){if(this.visualMapModel=c,c.get("show")===!1){this.group.removeAll();return}this.doRender.apply(this,arguments)},renderBackground:function(c){var o=this.visualMapModel,r=A.normalizeCssArray(o.get("padding")||0),i=c.getBoundingRect();c.add(new C.Rect({z2:-1,silent:!0,shape:{x:i.x-r[3],y:i.y-r[0],width:i.width+r[3]+r[1],height:i.height+r[0]+r[2]},style:{fill:o.get("backgroundColor"),stroke:o.get("borderColor"),lineWidth:o.get("borderWidth")}}))},getControllerVisual:function(c,o,r){r=r||{};var i=r.forceState,n=this.visualMapModel,e={};if(o==="symbol"&&(e.symbol=n.get("itemSymbol")),o==="color"){var l=n.get("contentColor");e.color=l}function t(h){return e[h]}function a(h,p){e[h]=p}var s=n.controllerVisuals[i||n.getValueState(c)],u=g.prepareVisualTypes(s);return x.each(u,function(h){var p=s[h];r.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",p=s.__alphaForOpacity),g.dependsOn(h,o)&&(p&&p.applyVisual(c,t,a))}),e[o]},positionGroup:function(c){var o=this.visualMapModel,r=this.api;S.positionElement(c,o.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})},doRender:x.noop});H.exports=f},crp1:function(H,F,d){"use strict";d.d(F,"b",function(){return Ut}),d.d(F,"a",function(){return In});var O={},x=function(rt,tt,Rt,Ft,At){var Wt=O[tt]||(O[tt]=URL.createObjectURL(new Blob([rt],{type:"text/javascript"}))),ot=new Worker(Wt);return ot.onerror=function(Bt){return At(Bt.error,null)},ot.onmessage=function(Bt){return At(null,Bt.data)},ot.postMessage(Rt,Ft),ot},C=Uint8Array,A=Uint16Array,S=Uint32Array,g=new C([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]),f=new C([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),c=new C([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),o=function(rt,tt){for(var Rt=new A(31),Ft=0;Ft<31;++Ft)Rt[Ft]=tt+=1<<rt[Ft-1];for(var At=new S(Rt[30]),Ft=1;Ft<30;++Ft)for(var Wt=Rt[Ft];Wt<Rt[Ft+1];++Wt)At[Wt]=Wt-Rt[Ft]<<5|Ft;return[Rt,At]},r=o(g,2),i=r[0],n=r[1];i[28]=258,n[258]=28;for(var e=o(f,0),l=e[0],t=e[1],a=new A(32768),s=0;s<32768;++s){var u=(s&43690)>>>1|(s&21845)<<1;u=(u&52428)>>>2|(u&13107)<<2,u=(u&61680)>>>4|(u&3855)<<4,a[s]=((u&65280)>>>8|(u&255)<<8)>>>1}for(var h=function(rt,tt,Rt){for(var Ft=rt.length,At=0,Wt=new A(tt);At<Ft;++At)++Wt[rt[At]-1];var ot=new A(tt);for(At=0;At<tt;++At)ot[At]=ot[At-1]+Wt[At-1]<<1;var Bt;if(Rt){Bt=new A(1<<tt);var Ar=15-tt;for(At=0;At<Ft;++At)if(rt[At])for(var rr=At<<4|rt[At],pr=tt-rt[At],tn=ot[rt[At]-1]++<<pr,hn=tn|(1<<pr)-1;tn<=hn;++tn)Bt[a[tn]>>>Ar]=rr}else for(Bt=new A(Ft),At=0;At<Ft;++At)Bt[At]=a[ot[rt[At]-1]++]>>>15-rt[At];return Bt},p=new C(288),s=0;s<144;++s)p[s]=8;for(var s=144;s<256;++s)p[s]=9;for(var s=256;s<280;++s)p[s]=7;for(var s=280;s<288;++s)p[s]=8;for(var m=new C(32),s=0;s<32;++s)m[s]=5;var v=h(p,9,0),y=h(p,9,1),E=h(m,5,0),T=h(m,5,1),b=function(rt){for(var tt=rt[0],Rt=1;Rt<rt.length;++Rt)rt[Rt]>tt&&(tt=rt[Rt]);return tt},w=function(rt,tt,Rt){var Ft=tt/8>>0;return(rt[Ft]|rt[Ft+1]<<8)>>>(tt&7)&Rt},_=function(rt,tt){var Rt=tt/8>>0;return(rt[Rt]|rt[Rt+1]<<8|rt[Rt+2]<<16)>>>(tt&7)},I=function(rt){return(rt/8>>0)+(rt&7&&1)},L=function(rt,tt,Rt){(tt==null||tt<0)&&(tt=0),(Rt==null||Rt>rt.length)&&(Rt=rt.length);var Ft=new(rt instanceof A?A:rt instanceof S?S:C)(Rt-tt);return Ft.set(rt.subarray(tt,Rt)),Ft},N=function(rt,tt,Rt){var Ft=rt.length,At=!tt||Rt,Wt=!Rt||Rt.i;Rt||(Rt={}),tt||(tt=new C(Ft*3));var ot=function(Ki){var Ur=tt.length;if(Ki>Ur){var Tn=new C(Math.max(Ur*2,Ki));Tn.set(tt),tt=Tn}},Bt=Rt.f||0,Ar=Rt.p||0,rr=Rt.b||0,pr=Rt.l,tn=Rt.d,hn=Rt.m,Mn=Rt.n,Xn=Ft*8;do{if(!pr){Rt.f=Bt=w(rt,Ar,1);var si=w(rt,Ar+1,3);if(Ar+=3,si)if(si==1)pr=y,tn=T,hn=9,Mn=5;else if(si==2){var Qe=w(rt,Ar,31)+257,we=w(rt,Ar+10,15)+4,Ne=Qe+w(rt,Ar+5,31)+1;Ar+=14;for(var Fe=new C(Ne),Ye=new C(19),We=0;We<we;++We)Ye[c[We]]=w(rt,Ar+We*3,7);Ar+=we*3;var Ze=b(Ye),mt=(1<<Ze)-1;if(!Wt&&Ar+Ne*(Ze+7)>Xn)break;for(var it=h(Ye,Ze,1),We=0;We<Ne;){var Jt=it[w(rt,Ar,mt)];Ar+=Jt&15;var vi=Jt>>>4;if(vi<16)Fe[We++]=vi;else{var Dr=0,Sr=0;for(vi==16?(Sr=3+w(rt,Ar,3),Ar+=2,Dr=Fe[We-1]):vi==17?(Sr=3+w(rt,Ar,7),Ar+=3):vi==18&&(Sr=11+w(rt,Ar,127),Ar+=7);Sr--;)Fe[We++]=Dr}}var Br=Fe.subarray(0,Qe),$t=Fe.subarray(Qe);hn=b(Br),Mn=b($t),pr=h(Br,hn,1),tn=h($t,Mn,1)}else throw"invalid block type";else{var vi=I(Ar)+4,xi=rt[vi-4]|rt[vi-3]<<8,_i=vi+xi;if(_i>Ft){if(Wt)throw"unexpected EOF";break}At&&ot(rr+xi),tt.set(rt.subarray(vi,_i),rr),Rt.b=rr+=xi,Rt.p=Ar=_i*8;continue}if(Ar>Xn)throw"unexpected EOF"}At&&ot(rr+131072);for(var gn=(1<<hn)-1,or=(1<<Mn)-1,ln=hn+Mn+18;Wt||Ar+ln<Xn;){var Dr=pr[_(rt,Ar)&gn],an=Dr>>>4;if(Ar+=Dr&15,Ar>Xn)throw"unexpected EOF";if(!Dr)throw"invalid length/literal";if(an<256)tt[rr++]=an;else if(an==256){pr=null;break}else{var Rr=an-254;if(an>264){var We=an-257,On=g[We];Rr=w(rt,Ar,(1<<On)-1)+i[We],Ar+=On}var ci=tn[_(rt,Ar)&or],Ui=ci>>>4;if(!ci)throw"invalid distance";Ar+=ci&15;var $t=l[Ui];if(Ui>3){var On=f[Ui];$t+=_(rt,Ar)&(1<<On)-1,Ar+=On}if(Ar>Xn)throw"unexpected EOF";At&&ot(rr+131072);for(var ki=rr+Rr;rr<ki;rr+=4)tt[rr]=tt[rr-$t],tt[rr+1]=tt[rr+1-$t],tt[rr+2]=tt[rr+2-$t],tt[rr+3]=tt[rr+3-$t];rr=ki}}Rt.l=pr,Rt.p=Ar,Rt.b=rr,pr&&(Bt=1,Rt.m=hn,Rt.d=tn,Rt.n=Mn)}while(!Bt);return rr==tt.length?tt:L(tt,0,rr)},D=function(rt,tt,Rt){Rt<<=tt&7;var Ft=tt/8>>0;rt[Ft]|=Rt,rt[Ft+1]|=Rt>>>8},R=function(rt,tt,Rt){Rt<<=tt&7;var Ft=tt/8>>0;rt[Ft]|=Rt,rt[Ft+1]|=Rt>>>8,rt[Ft+2]|=Rt>>>16},k=function(rt,tt){for(var Rt=[],Ft=0;Ft<rt.length;++Ft)rt[Ft]&&Rt.push({s:Ft,f:rt[Ft]});var At=Rt.length,Wt=Rt.slice();if(!At)return[new C(0),0];if(At==1){var ot=new C(Rt[0].s+1);return ot[Rt[0].s]=1,[ot,1]}Rt.sort(function(Ne,Fe){return Ne.f-Fe.f}),Rt.push({s:-1,f:25001});var Bt=Rt[0],Ar=Rt[1],rr=0,pr=1,tn=2;for(Rt[0]={s:-1,f:Bt.f+Ar.f,l:Bt,r:Ar};pr!=At-1;)Bt=Rt[Rt[rr].f<Rt[tn].f?rr++:tn++],Ar=Rt[rr!=pr&&Rt[rr].f<Rt[tn].f?rr++:tn++],Rt[pr++]={s:-1,f:Bt.f+Ar.f,l:Bt,r:Ar};for(var hn=Wt[0].s,Ft=1;Ft<At;++Ft)Wt[Ft].s>hn&&(hn=Wt[Ft].s);var Mn=new A(hn+1),Xn=M(Rt[pr-1],Mn,0);if(Xn>tt){var Ft=0,si=0,vi=Xn-tt,xi=1<<vi;for(Wt.sort(function(Fe,Ye){return Mn[Ye.s]-Mn[Fe.s]||Fe.f-Ye.f});Ft<At;++Ft){var _i=Wt[Ft].s;if(Mn[_i]>tt)si+=xi-(1<<Xn-Mn[_i]),Mn[_i]=tt;else break}for(si>>>=vi;si>0;){var Qe=Wt[Ft].s;Mn[Qe]<tt?si-=1<<tt-Mn[Qe]++-1:++Ft}for(;Ft>=0&&si;--Ft){var we=Wt[Ft].s;Mn[we]==tt&&(--Mn[we],++si)}Xn=tt}return[new C(Mn),Xn]},M=function wt(rt,tt,Rt){return rt.s==-1?Math.max(wt(rt.l,tt,Rt+1),wt(rt.r,tt,Rt+1)):tt[rt.s]=Rt},U=function(rt){for(var tt=rt.length;tt&&!rt[--tt];);for(var Rt=new A(++tt),Ft=0,At=rt[0],Wt=1,ot=function(rr){Rt[Ft++]=rr},Bt=1;Bt<=tt;++Bt)if(rt[Bt]==At&&Bt!=tt)++Wt;else{if(!At&&Wt>2){for(;Wt>138;Wt-=138)ot(32754);Wt>2&&(ot(Wt>10?Wt-11<<5|28690:Wt-3<<5|12305),Wt=0)}else if(Wt>3){for(ot(At),--Wt;Wt>6;Wt-=6)ot(8304);Wt>2&&(ot(Wt-3<<5|8208),Wt=0)}for(;Wt--;)ot(At);Wt=1,At=rt[Bt]}return[Rt.subarray(0,Ft),tt]},B=function(rt,tt){for(var Rt=0,Ft=0;Ft<tt.length;++Ft)Rt+=rt[Ft]*tt[Ft];return Rt},j=function(rt,tt,Rt){var Ft=Rt.length,At=I(tt+2);rt[At]=Ft&255,rt[At+1]=Ft>>>8,rt[At+2]=rt[At]^255,rt[At+3]=rt[At+1]^255;for(var Wt=0;Wt<Ft;++Wt)rt[At+Wt+4]=Rt[Wt];return(At+4+Ft)*8},W=function(rt,tt,Rt,Ft,At,Wt,ot,Bt,Ar,rr,pr){D(tt,pr++,Rt),++At[256];for(var tn=k(At,15),hn=tn[0],Mn=tn[1],Xn=k(Wt,15),si=Xn[0],vi=Xn[1],xi=U(hn),_i=xi[0],Qe=xi[1],we=U(si),Ne=we[0],Fe=we[1],Ye=new A(19),We=0;We<_i.length;++We)Ye[_i[We]&31]++;for(var We=0;We<Ne.length;++We)Ye[Ne[We]&31]++;for(var Ze=k(Ye,7),mt=Ze[0],it=Ze[1],Jt=19;Jt>4&&!mt[c[Jt-1]];--Jt);var Dr=rr+5<<3,Sr=B(At,p)+B(Wt,m)+ot,Br=B(At,hn)+B(Wt,si)+ot+14+3*Jt+B(Ye,mt)+(2*Ye[16]+3*Ye[17]+7*Ye[18]);if(Dr<=Sr&&Dr<=Br)return j(tt,pr,rt.subarray(Ar,Ar+rr));var $t,gn,or,ln;if(D(tt,pr,1+(Br<Sr)),pr+=2,Br<Sr){$t=h(hn,Mn,0),gn=hn,or=h(si,vi,0),ln=si;var an=h(mt,it,0);D(tt,pr,Qe-257),D(tt,pr+5,Fe-1),D(tt,pr+10,Jt-4),pr+=14;for(var We=0;We<Jt;++We)D(tt,pr+3*We,mt[c[We]]);pr+=3*Jt;for(var Rr=[_i,Ne],On=0;On<2;++On)for(var ci=Rr[On],We=0;We<ci.length;++We){var Ui=ci[We]&31;D(tt,pr,an[Ui]),pr+=mt[Ui],Ui>15&&(D(tt,pr,ci[We]>>>5&127),pr+=ci[We]>>>12)}}else $t=v,gn=p,or=E,ln=m;for(var We=0;We<Bt;++We)if(Ft[We]>255){var Ui=Ft[We]>>>18&31;R(tt,pr,$t[Ui+257]),pr+=gn[Ui+257],Ui>7&&(D(tt,pr,Ft[We]>>>23&31),pr+=g[Ui]);var ki=Ft[We]&31;R(tt,pr,or[ki]),pr+=ln[ki],ki>3&&(R(tt,pr,Ft[We]>>>5&8191),pr+=f[ki])}else R(tt,pr,$t[Ft[We]]),pr+=gn[Ft[We]];return R(tt,pr,$t[256]),pr+gn[256]},V=new S([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),z=new C(0),J=function(rt,tt,Rt,Ft,At,Wt){var ot=rt.length,Bt=new C(Ft+ot+5*(1+Math.floor(ot/7e3))+At),Ar=Bt.subarray(Ft,Bt.length-At),rr=0;if(!tt||ot<8)for(var pr=0;pr<=ot;pr+=65535){var tn=pr+65535;tn<ot?rr=j(Ar,rr,rt.subarray(pr,tn)):(Ar[pr]=Wt,rr=j(Ar,rr,rt.subarray(pr,ot)))}else{for(var hn=V[tt-1],Mn=hn>>>13,Xn=hn&8191,si=(1<<Rt)-1,vi=new A(32768),xi=new A(si+1),_i=Math.ceil(Rt/3),Qe=2*_i,we=function(Vr){return(rt[Vr]^rt[Vr+1]<<_i^rt[Vr+2]<<Qe)&si},Ne=new S(25e3),Fe=new A(288),Ye=new A(32),We=0,Ze=0,pr=0,mt=0,it=0,Jt=0;pr<ot;++pr){var Dr=we(pr),Sr=pr&32767,Br=xi[Dr];if(vi[Sr]=Br,xi[Dr]=Sr,it<=pr){var $t=ot-pr;if((We>7e3||mt>24576)&&$t>423){rr=W(rt,Ar,0,Ne,Fe,Ye,Ze,mt,Jt,pr-Jt,rr),mt=We=Ze=0,Jt=pr;for(var gn=0;gn<286;++gn)Fe[gn]=0;for(var gn=0;gn<30;++gn)Ye[gn]=0}var or=2,ln=0,an=Xn,Rr=Sr-Br&32767;if($t>2&&Dr==we(pr-Rr))for(var On=Math.min(Mn,$t)-1,ci=Math.min(32767,pr),Ui=Math.min(258,$t);Rr<=ci&&--an&&Sr!=Br;){if(rt[pr+or]==rt[pr+or-Rr]){for(var ki=0;ki<Ui&&rt[pr+ki]==rt[pr+ki-Rr];++ki);if(ki>or){if(or=ki,ln=Rr,ki>On)break;for(var Di=Math.min(Rr,ki-2),Ki=0,gn=0;gn<Di;++gn){var Ur=pr-Rr+gn+32768&32767,Tn=vi[Ur],Mr=Ur-Tn+32768&32767;Mr>Ki&&(Ki=Mr,Br=Ur)}}}Sr=Br,Br=vi[Sr],Rr+=Sr-Br+32768&32767}if(ln){Ne[mt++]=268435456|n[or]<<18|t[ln];var mr=n[or]&31,Cr=t[ln]&31;Ze+=g[mr]+f[Cr],++Fe[257+mr],++Ye[Cr],it=pr+or,++We}else Ne[mt++]=rt[pr],++Fe[rt[pr]]}}rr=W(rt,Ar,Wt,Ne,Fe,Ye,Ze,mt,Jt,pr-Jt,rr),Wt||(rr=j(Ar,rr,z))}return L(Bt,0,Ft+I(rr)+At)},Z=function(){for(var wt=new S(256),rt=0;rt<256;++rt){for(var tt=rt,Rt=9;--Rt;)tt=(tt&1&&3988292384)^tt>>>1;wt[rt]=tt}return wt}(),de=function(){var rt=4294967295;return{p:function(Rt){for(var Ft=rt,At=0;At<Rt.length;++At)Ft=Z[Ft&255^Rt[At]]^Ft>>>8;rt=Ft},d:function(){return rt^4294967295}}},ie=function(){var rt=1,tt=0;return{p:function(Ft){for(var At=rt,Wt=tt,ot=Ft.length,Bt=0;Bt!=ot;){for(var Ar=Math.min(Bt+5552,ot);Bt<Ar;++Bt)At+=Ft[Bt],Wt+=At;At%=65521,Wt%=65521}rt=At,tt=Wt},d:function(){return(rt>>>8<<16|(tt&255)<<8|tt>>>8)+((rt&255)<<23)*2}}},ve=function(rt,tt,Rt,Ft,At){return J(rt,tt.level==null?6:tt.level,tt.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(rt.length)))*1.5):12+tt.mem,Rt,Ft,!At)},xe=function(rt,tt){var Rt={};for(var Ft in rt)Rt[Ft]=rt[Ft];for(var Ft in tt)Rt[Ft]=tt[Ft];return Rt},_e=function(rt,tt,Rt){for(var Ft=rt(),At=rt.toString(),Wt=At.slice(At.indexOf("[")+1,At.lastIndexOf("]")).replace(/ /g,"").split(","),ot=0;ot<Ft.length;++ot){var Bt=Ft[ot],Ar=Wt[ot];if(typeof Bt=="function"){tt+=";"+Ar+"=";var rr=Bt.toString();if(Bt.prototype)if(rr.indexOf("[native code]")!=-1){var pr=rr.indexOf(" ",8)+1;tt+=rr.slice(pr,rr.indexOf("(",pr))}else{tt+=rr;for(var tn in Bt.prototype)tt+=";"+Ar+".prototype."+tn+"="+Bt.prototype[tn].toString()}else tt+=rr}else Rt[Ar]=Bt}return[tt,Rt]},Ue=[],fe=function(rt){var tt=[];for(var Rt in rt)(rt[Rt]instanceof C||rt[Rt]instanceof A||rt[Rt]instanceof S)&&tt.push((rt[Rt]=new rt[Rt].constructor(rt[Rt])).buffer);return tt},ke=function(rt,tt,Rt,Ft){var At;if(!Ue[Rt]){for(var Wt="",ot={},Bt=rt.length-1,Ar=0;Ar<Bt;++Ar)At=_e(rt[Ar],Wt,ot),Wt=At[0],ot=At[1];Ue[Rt]=_e(rt[Bt],Wt,ot)}var rr=xe({},Ue[Rt][1]);return x(Ue[Rt][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+tt.toString()+"}",Rt,rr,fe(rr),Ft)},se=function(){return[C,A,S,g,f,c,i,l,y,T,a,h,b,w,_,I,L,N,Be,Y,me]},te=function(){return[C,A,S,g,f,c,n,t,v,p,E,m,a,V,z,h,D,R,k,M,U,B,j,W,I,L,J,ve,Tt,Y]},Ve=function(){return[Ge,Le,Te,de,Z]},ae=function(){return[gt,qe]},Q=function(){return[Ot,Te,ie]},G=function(){return[$e]},Y=function(rt){return postMessage(rt,[rt.buffer])},me=function(rt){return rt&&rt.size&&new C(rt.size)},ue=function(rt,tt,Rt,Ft,At,Wt){var ot=ke(Rt,Ft,At,function(Bt,Ar){ot.terminate(),Wt(Bt,Ar)});return tt.consume||(rt=new C(rt)),ot.postMessage([rt,tt],[rt.buffer]),function(){ot.terminate()}},Ce=function(rt){return rt.ondata=function(tt,Rt){return postMessage([tt,Rt],[tt.buffer])},function(tt){return rt.push(tt.data[0],tt.data[1])}},Ie=function(rt,tt,Rt,Ft,At){var Wt,ot=ke(rt,Ft,At,function(Bt,Ar){Bt?(ot.terminate(),tt.ondata.call(tt,Bt)):(Ar[1]&&ot.terminate(),tt.ondata.call(tt,Bt,Ar[0],Ar[1]))});ot.postMessage(Rt),tt.push=function(Bt,Ar){if(Wt)throw"stream finished";if(!tt.ondata)throw"no stream handler";ot.postMessage([Bt,Wt=Ar],[Bt.buffer])},tt.terminate=function(){ot.terminate()}},ce=function(rt,tt){return rt[tt]|rt[tt+1]<<8},Ae=function(rt,tt){return(rt[tt]|rt[tt+1]<<8|rt[tt+2]<<16)+(rt[tt+3]<<23)*2},Te=function(rt,tt,Rt){for(;Rt;++tt)rt[tt]=Rt,Rt>>>=8},Ge=function(rt,tt){var Rt=tt.filename;if(rt[0]=31,rt[1]=139,rt[2]=8,rt[8]=tt.level<2?4:tt.level==9?2:0,rt[9]=3,tt.mtime!=0&&Te(rt,4,Math.floor(new Date(tt.mtime||Date.now())/1e3)),Rt){rt[3]=8;for(var Ft=0;Ft<=Rt.length;++Ft)rt[Ft+10]=Rt.charCodeAt(Ft)}},gt=function(rt){if(rt[0]!=31||rt[1]!=139||rt[2]!=8)throw"invalid gzip data";var tt=rt[3],Rt=10;tt&4&&(Rt+=rt[10]|(rt[11]<<8)+2);for(var Ft=(tt>>3&1)+(tt>>4&1);Ft>0;Ft-=!rt[Rt++]);return Rt+(tt&2)},qe=function(rt){var tt=rt.length;return(rt[tt-4]|rt[tt-3]<<8|rt[tt-2]<<16)+2*(rt[tt-1]<<23)},Le=function(rt){return 10+(rt.filename&&rt.filename.length+1||0)},Ot=function(rt,tt){var Rt=tt.level,Ft=Rt==0?0:Rt<6?1:Rt==9?3:2;rt[0]=120,rt[1]=Ft<<6|(Ft?32-2*Ft:1)},$e=function(rt){if((rt[0]&15)!=8||rt[0]>>>4>7||(rt[0]<<8|rt[1])%31)throw"invalid zlib data";if(rt[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function xt(wt,rt){return!rt&&typeof wt=="function"&&(rt=wt,wt={}),this.ondata=rt,wt}var Ht=function(){function wt(rt,tt){!tt&&typeof rt=="function"&&(tt=rt,rt={}),this.ondata=tt,this.o=rt||{}}return wt.prototype.p=function(rt,tt){this.ondata(ve(rt,this.o,0,0,!tt),tt)},wt.prototype.push=function(rt,tt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=tt,this.p(rt,tt||!1)},wt}(),tr=function(){function wt(rt,tt){Ie([te,function(){return[Ce,Ht]}],this,xt.call(this,rt,tt),function(Rt){var Ft=new Ht(Rt.data);onmessage=Ce(Ft)},6)}return wt}();function Mt(wt,rt,tt){if(tt||(tt=rt,rt={}),typeof tt!="function")throw"no callback";return ue(wt,rt,[te],function(Rt){return Y(Tt(Rt.data[0],Rt.data[1]))},0,tt)}function Tt(wt,rt){return rt===void 0&&(rt={}),ve(wt,rt,0,0)}var Xe=function(){function wt(rt){this.s={},this.p=new C(0),this.ondata=rt}return wt.prototype.e=function(rt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var tt=this.p.length,Rt=new C(tt+rt.length);Rt.set(this.p),Rt.set(rt,tt),this.p=Rt},wt.prototype.c=function(rt){this.d=this.s.i=rt||!1;var tt=this.s.b,Rt=N(this.p,this.o,this.s);this.ondata(L(Rt,tt,this.s.b),this.d),this.o=L(Rt,this.s.b-32768),this.s.b=this.o.length,this.p=L(this.p,this.s.p/8>>0),this.s.p&=7},wt.prototype.push=function(rt,tt){this.e(rt),this.c(tt)},wt}(),oe=function(){function wt(rt){this.ondata=rt,Ie([se,function(){return[Ce,Xe]}],this,0,function(){var tt=new Xe;onmessage=Ce(tt)},7)}return wt}();function X(wt,rt,tt){if(tt||(tt=rt,rt={}),typeof tt!="function")throw"no callback";return ue(wt,rt,[se],function(Rt){return Y(Be(Rt.data[0],me(Rt.data[1])))},1,tt)}function Be(wt,rt){return N(wt,rt)}var Ee=function(){function wt(rt,tt){this.c=de(),this.l=0,this.v=1,Ht.call(this,rt,tt)}return wt.prototype.push=function(rt,tt){Ht.prototype.push.call(this,rt,tt)},wt.prototype.p=function(rt,tt){this.c.p(rt),this.l+=rt.length;var Rt=ve(rt,this.o,this.v&&Le(this.o),tt&&8,!tt);this.v&&(Ge(Rt,this.o),this.v=0),tt&&(Te(Rt,Rt.length-8,this.c.d()),Te(Rt,Rt.length-4,this.l)),this.ondata(Rt,tt)},wt}(),ee=function(){function wt(rt,tt){Ie([te,Ve,function(){return[Ce,Ht,Ee]}],this,xt.call(this,rt,tt),function(Rt){var Ft=new Ee(Rt.data);onmessage=Ce(Ft)},8)}return wt}();function lt(wt,rt,tt){if(tt||(tt=rt,rt={}),typeof tt!="function")throw"no callback";return ue(wt,rt,[te,Ve,function(){return[Ct]}],function(Rt){return Y(Ct(Rt.data[0],Rt.data[1]))},2,tt)}function Ct(wt,rt){rt===void 0&&(rt={});var tt=de(),Rt=wt.length;tt.p(wt);var Ft=ve(wt,rt,Le(rt),8),At=Ft.length;return Ge(Ft,rt),Te(Ft,At-8,tt.d()),Te(Ft,At-4,Rt),Ft}var dt=function(){function wt(rt){this.v=1,Xe.call(this,rt)}return wt.prototype.push=function(rt,tt){if(Xe.prototype.e.call(this,rt),this.v){var Rt=gt(this.p);if(Rt>=this.p.length&&!tt)return;this.p=this.p.subarray(Rt),this.v=0}if(tt){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Xe.prototype.c.call(this,tt)},wt}(),_t=function(){function wt(rt){this.ondata=rt,Ie([se,ae,function(){return[Ce,Xe,dt]}],this,0,function(){var tt=new dt;onmessage=Ce(tt)},9)}return wt}();function ir(wt,rt,tt){if(tt||(tt=rt,rt={}),typeof tt!="function")throw"no callback";return ue(wt,rt,[se,ae,function(){return[$r]}],function(Rt){return Y($r(Rt.data[0]))},3,tt)}function $r(wt,rt){return N(wt.subarray(gt(wt),-8),rt||new C(qe(wt)))}var nr=function(){function wt(rt,tt){this.c=ie(),this.v=1,Ht.call(this,rt,tt)}return wt.prototype.push=function(rt,tt){Ht.prototype.push.call(this,rt,tt)},wt.prototype.p=function(rt,tt){this.c.p(rt);var Rt=ve(rt,this.o,this.v&&2,tt&&4,!tt);this.v&&(Ot(Rt,this.o),this.v=0),tt&&Te(Rt,Rt.length-4,this.c.d()),this.ondata(Rt,tt)},wt}(),lr=function(){function wt(rt,tt){Ie([te,Q,function(){return[Ce,Ht,nr]}],this,xt.call(this,rt,tt),function(Rt){var Ft=new nr(Rt.data);onmessage=Ce(Ft)},10)}return wt}();function zt(wt,rt,tt){if(tt||(tt=rt,rt={}),typeof tt!="function")throw"no callback";return ue(wt,rt,[te,Q,function(){return[Ut]}],function(Rt){return Y(Ut(Rt.data[0],Rt.data[1]))},4,tt)}function Ut(wt,rt){rt===void 0&&(rt={});var tt=ie();tt.p(wt);var Rt=ve(wt,rt,2,4);return Ot(Rt,rt),Te(Rt,Rt.length-4,tt.d()),Rt}var st=function(){function wt(rt){this.v=1,Xe.call(this,rt)}return wt.prototype.push=function(rt,tt){if(Xe.prototype.e.call(this,rt),this.v){if(this.p.length<2&&!tt)return;this.p=this.p.subarray(2),this.v=0}if(tt){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Xe.prototype.c.call(this,tt)},wt}(),Hr=function(){function wt(rt){this.ondata=rt,Ie([se,G,function(){return[Ce,Xe,st]}],this,0,function(){var tt=new st;onmessage=Ce(tt)},11)}return wt}();function mn(wt,rt,tt){if(tt||(tt=rt,rt={}),typeof tt!="function")throw"no callback";return ue(wt,rt,[se,G,function(){return[In]}],function(Rt){return Y(In(Rt.data[0],me(Rt.data[1])))},5,tt)}function In(wt,rt){return N(($e(wt),wt.subarray(2,-4)),rt)}var Yn=function(){function wt(rt){this.G=dt,this.I=Xe,this.Z=st,this.ondata=rt}return wt.prototype.push=function(rt,tt){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(rt,tt);else{if(this.p&&this.p.length){var Rt=new C(this.p.length+rt.length);Rt.set(this.p),Rt.set(rt,this.p.length)}else this.p=rt;if(this.p.length>2){var Ft=this,At=function(){Ft.ondata.apply(Ft,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(At):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(At):new this.Z(At),this.s.push(this.p,tt),this.p=null}}},wt}(),Mi=function(){function wt(rt){this.G=_t,this.I=oe,this.Z=Hr,this.ondata=rt}return wt.prototype.push=function(rt,tt){Yn.prototype.push.call(this,rt,tt)},wt}();function wn(wt,rt,tt){if(tt||(tt=rt,rt={}),typeof tt!="function")throw"no callback";return wt[0]==31&&wt[1]==139&&wt[2]==8?ir(wt,rt,tt):(wt[0]&15)!=8||wt[0]>>4>7||(wt[0]<<8|wt[1])%31?X(wt,rt,tt):mn(wt,rt,tt)}function Rn(wt,rt){return wt[0]==31&&wt[1]==139&&wt[2]==8?$r(wt,rt):(wt[0]&15)!=8||wt[0]>>4>7||(wt[0]<<8|wt[1])%31?Be(wt,rt):In(wt,rt)}var kt=function wt(rt,tt,Rt,Ft){for(var At in rt){var Wt=rt[At],ot=tt+At;Wt instanceof C?Rt[ot]=[Wt,Ft]:Array.isArray(Wt)?Rt[ot]=[Wt[0],xe(Ft,Wt[1])]:wt(Wt,ot+"/",Rt,Ft)}};function vt(wt,rt){var tt=wt.length;if(!rt&&typeof TextEncoder!="undefined")return new TextEncoder().encode(wt);for(var Rt=new C(wt.length+(wt.length>>>1)),Ft=0,At=function(rr){Rt[Ft++]=rr},Wt=0;Wt<tt;++Wt){if(Ft+5>Rt.length){var ot=new C(Ft+8+(tt-Wt<<1));ot.set(Rt),Rt=ot}var Bt=wt.charCodeAt(Wt);Bt<128||rt?At(Bt):Bt<2048?(At(192|Bt>>>6),At(128|Bt&63)):Bt>55295&&Bt<57344?(Bt=65536+(Bt&1023<<10)|wt.charCodeAt(++Wt)&1023,At(240|Bt>>>18),At(128|Bt>>>12&63),At(128|Bt>>>6&63),At(128|Bt&63)):(At(224|Bt>>>12),At(128|Bt>>>6&63),At(128|Bt&63))}return L(Rt,0,Ft)}function Re(wt,rt){var tt="";if(!rt&&typeof TextDecoder!="undefined")return new TextDecoder().decode(wt);for(var Rt=0;Rt<wt.length;){var Ft=wt[Rt++];Ft<128||rt?tt+=String.fromCharCode(Ft):Ft<224?tt+=String.fromCharCode((Ft&31)<<6|wt[Rt++]&63):Ft<240?tt+=String.fromCharCode((Ft&15)<<12|(wt[Rt++]&63)<<6|wt[Rt++]&63):(Ft=((Ft&15)<<18|(wt[Rt++]&63)<<12|(wt[Rt++]&63)<<6|wt[Rt++]&63)-65536,tt+=String.fromCharCode(55296|Ft>>10,56320|Ft&1023))}return tt}var Ke=function(rt,tt){return tt+30+ce(rt,tt+26)+ce(rt,tt+28)},Pe=function(rt,tt,Rt){var Ft=ce(rt,tt+28),At=Re(rt.subarray(tt+46,tt+46+Ft),!(ce(rt,tt+8)&2048)),Wt=tt+46+Ft,ot=Rt?nt(rt,Wt):[Ae(rt,tt+20),Ae(rt,tt+24),Ae(rt,tt+42)],Bt=ot[0],Ar=ot[1],rr=ot[2];return[ce(rt,tt+10),Bt,Ar,At,Wt+ce(rt,tt+30)+ce(rt,tt+32),rr]},nt=function(rt,tt){for(;ce(rt,tt)!=1;tt+=4+ce(rt,tt+2));return[Ae(rt,tt+12),Ae(rt,tt+4),Ae(rt,tt+20)]},yt=function(rt,tt,Rt,Ft,At,Wt,ot,Bt,Ar,rr){var pr=Wt.length,tn=Ft.length;Te(rt,tt,Ar!=null?33639248:67324752),tt+=4,Ar!=null&&(rt[tt]=20,tt+=2),rt[tt]=20,tt+=2,rt[tt++]=rr==8&&(Bt.level==1?6:Bt.level<6?4:Bt.level==9?2:0),rt[tt++]=ot&&8,rt[tt]=rr,tt+=2;var hn=new Date(Bt.mtime||Date.now()),Mn=hn.getFullYear()-1980;if(Mn<0||Mn>119)throw"date not in range 1980-2099";Te(rt,tt,(Mn<<24)*2|hn.getMonth()+1<<21|hn.getDate()<<16|hn.getHours()<<11|hn.getMinutes()<<5|hn.getSeconds()>>>1),tt+=4,Te(rt,tt,Rt),Te(rt,tt+4,tn),Te(rt,tt+8,At),Te(rt,tt+12,pr),tt+=16,Ar!=null&&(Te(rt,tt+=10,Ar),tt+=4),rt.set(Wt,tt),tt+=pr,Ar==null&&rt.set(Ft,tt)},Dt=function(rt,tt,Rt,Ft,At){Te(rt,tt,101010256),Te(rt,tt+8,Rt),Te(rt,tt+10,Rt),Te(rt,tt+12,Ft),Te(rt,tt+16,At)};function bt(wt,rt,tt){if(tt||(tt=rt,rt={}),typeof tt!="function")throw"no callback";var Rt={};kt(wt,"",Rt,rt);var Ft=Object.keys(Rt),At=Ft.length,Wt=0,ot=0,Bt=At,Ar=new Array(At),rr=[],pr=function(){for(var si=0;si<rr.length;++si)rr[si]()},tn=function(){var si=new C(ot+22),vi=Wt,xi=ot-Wt;ot=0;for(var _i=0;_i<Bt;++_i){var Qe=Ar[_i];try{yt(si,ot,Qe.c,Qe.d,Qe.m,Qe.n,Qe.u,Qe.p,null,Qe.t),yt(si,Wt,Qe.c,Qe.d,Qe.m,Qe.n,Qe.u,Qe.p,ot,Qe.t),Wt+=46+Qe.n.length,ot+=30+Qe.n.length+Qe.d.length}catch(we){return tt(we,null)}}Dt(si,Wt,Ar.length,xi,vi),tt(null,si)};At||tn();for(var hn=function(si){var vi=Ft[si],xi=Rt[vi],_i=xi[0],Qe=xi[1],we=de(),Ne=_i.length;we.p(_i);var Fe=vt(vi),Ye=Fe.length,We=Qe.level==0?0:8,Ze=function(it,Jt){if(it)pr(),tt(it,null);else{var Dr=Jt.length;Ar[si]={t:We,d:Jt,m:Ne,c:we.d(),u:vi.length!=Dr,n:Fe,p:Qe},Wt+=30+Ye+Dr,ot+=76+2*Ye+Dr,--At||tn()}};if(Fe.length>65535&&Ze("filename too long",null),!We)Ze(null,_i);else if(Ne<16e4)try{Ze(null,Tt(_i,Qe))}catch(mt){Ze(mt,null)}else rr.push(Mt(_i,Qe,Ze))},Mn=0;Mn<Bt;++Mn)hn(Mn);return pr}function It(wt,rt){rt===void 0&&(rt={});var tt={},Rt=[];kt(wt,"",tt,rt);var Ft=0,At=0;for(var Wt in tt){var ot=tt[Wt],Bt=ot[0],Ar=ot[1],rr=Ar.level==0?0:8,pr=vt(Wt),tn=pr.length;if(pr.length>65535)throw"filename too long";var hn=rr?Tt(Bt,Ar):Bt,Mn=hn.length,Xn=de();Xn.p(Bt),Rt.push({t:rr,d:hn,m:Bt.length,c:Xn.d(),u:Wt.length!=tn,n:pr,o:Ft,p:Ar}),Ft+=30+tn+Mn,At+=76+2*tn+Mn}for(var si=new C(At+22),vi=Ft,xi=At-Ft,_i=0;_i<Rt.length;++_i){var Qe=Rt[_i];yt(si,Qe.o,Qe.c,Qe.d,Qe.m,Qe.n,Qe.u,Qe.p,null,Qe.t),yt(si,Ft,Qe.c,Qe.d,Qe.m,Qe.n,Qe.u,Qe.p,Qe.o,Qe.t),Ft+=46+Qe.n.length}return Dt(si,Ft,Rt.length,xi,vi),si}function gr(wt,rt){if(typeof rt!="function")throw"no callback";for(var tt=[],Rt=function(){for(var hn=0;hn<tt.length;++hn)tt[hn]()},Ft={},At=wt.length-22;Ae(wt,At)!=101010256;--At)if(!At||wt.length-At>65558){rt("invalid zip file",null);return}var Wt=ce(wt,At+8);Wt||rt(null,{});var ot=Wt,Bt=Ae(wt,At+16),Ar=Bt==4294967295;if(Ar){if(At=Ae(wt,At-12),Ae(wt,At)!=101075792)throw"invalid zip file";ot=Wt=Ae(wt,At+32),Bt=Ae(wt,At+48)}for(var rr=function(hn){var Mn=Pe(wt,Bt,Ar),Xn=Mn[0],si=Mn[1],vi=Mn[2],xi=Mn[3],_i=Mn[4],Qe=Mn[5],we=Ke(wt,Qe);Bt=_i;var Ne=function(We,Ze){We?(Rt(),rt(We,null)):(Ft[xi]=Ze,--Wt||rt(null,Ft))};if(!Xn)Ne(null,L(wt,we,we+si));else if(Xn==8){var Fe=wt.subarray(we,we+si);if(si<32e4)try{Ne(null,Be(Fe,new C(vi)))}catch(Ye){Ne(Ye,null)}else tt.push(X(Fe,{size:vi},Ne))}else Ne("unknown compression type "+Xn,null)},pr=0;pr<ot;++pr)rr(pr);return Rt}function kr(wt){for(var rt={},tt=wt.length-22;Ae(wt,tt)!=101010256;--tt)if(!tt||wt.length-tt>65558)throw"invalid zip file";var Rt=ce(wt,tt+8);if(!Rt)return{};var Ft=Ae(wt,tt+16),At=Ft==4294967295;if(At){if(tt=Ae(wt,tt-12),Ae(wt,tt)!=101075792)throw"invalid zip file";Rt=Ae(wt,tt+32),Ft=Ae(wt,tt+48)}for(var Wt=0;Wt<Rt;++Wt){var ot=Pe(wt,Ft,At),Bt=ot[0],Ar=ot[1],rr=ot[2],pr=ot[3],tn=ot[4],hn=ot[5],Mn=Ke(wt,hn);if(Ft=tn,!Bt)rt[pr]=L(wt,Mn,Mn+Ar);else if(Bt==8)rt[pr]=Be(wt.subarray(Mn,Mn+Ar),new C(rr));else throw"unknown compression type "+Bt}return rt}},cv67:function(H,F,d){(function(O,x){H.exports=F=x(d("Ib8C"))})(this,function(O){return function(x){var C=O,A=C.lib,S=A.WordArray,g=A.Hasher,f=C.algo,c=[];(function(){for(var l=0;l<64;l++)c[l]=x.abs(x.sin(l+1))*4294967296|0})();var o=f.MD5=g.extend({_doReset:function(){this._hash=new S.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,a){for(var s=0;s<16;s++){var u=a+s,h=t[u];t[u]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360}var p=this._hash.words,m=t[a+0],v=t[a+1],y=t[a+2],E=t[a+3],T=t[a+4],b=t[a+5],w=t[a+6],_=t[a+7],I=t[a+8],L=t[a+9],N=t[a+10],D=t[a+11],R=t[a+12],k=t[a+13],M=t[a+14],U=t[a+15],B=p[0],j=p[1],W=p[2],V=p[3];B=r(B,j,W,V,m,7,c[0]),V=r(V,B,j,W,v,12,c[1]),W=r(W,V,B,j,y,17,c[2]),j=r(j,W,V,B,E,22,c[3]),B=r(B,j,W,V,T,7,c[4]),V=r(V,B,j,W,b,12,c[5]),W=r(W,V,B,j,w,17,c[6]),j=r(j,W,V,B,_,22,c[7]),B=r(B,j,W,V,I,7,c[8]),V=r(V,B,j,W,L,12,c[9]),W=r(W,V,B,j,N,17,c[10]),j=r(j,W,V,B,D,22,c[11]),B=r(B,j,W,V,R,7,c[12]),V=r(V,B,j,W,k,12,c[13]),W=r(W,V,B,j,M,17,c[14]),j=r(j,W,V,B,U,22,c[15]),B=i(B,j,W,V,v,5,c[16]),V=i(V,B,j,W,w,9,c[17]),W=i(W,V,B,j,D,14,c[18]),j=i(j,W,V,B,m,20,c[19]),B=i(B,j,W,V,b,5,c[20]),V=i(V,B,j,W,N,9,c[21]),W=i(W,V,B,j,U,14,c[22]),j=i(j,W,V,B,T,20,c[23]),B=i(B,j,W,V,L,5,c[24]),V=i(V,B,j,W,M,9,c[25]),W=i(W,V,B,j,E,14,c[26]),j=i(j,W,V,B,I,20,c[27]),B=i(B,j,W,V,k,5,c[28]),V=i(V,B,j,W,y,9,c[29]),W=i(W,V,B,j,_,14,c[30]),j=i(j,W,V,B,R,20,c[31]),B=n(B,j,W,V,b,4,c[32]),V=n(V,B,j,W,I,11,c[33]),W=n(W,V,B,j,D,16,c[34]),j=n(j,W,V,B,M,23,c[35]),B=n(B,j,W,V,v,4,c[36]),V=n(V,B,j,W,T,11,c[37]),W=n(W,V,B,j,_,16,c[38]),j=n(j,W,V,B,N,23,c[39]),B=n(B,j,W,V,k,4,c[40]),V=n(V,B,j,W,m,11,c[41]),W=n(W,V,B,j,E,16,c[42]),j=n(j,W,V,B,w,23,c[43]),B=n(B,j,W,V,L,4,c[44]),V=n(V,B,j,W,R,11,c[45]),W=n(W,V,B,j,U,16,c[46]),j=n(j,W,V,B,y,23,c[47]),B=e(B,j,W,V,m,6,c[48]),V=e(V,B,j,W,_,10,c[49]),W=e(W,V,B,j,M,15,c[50]),j=e(j,W,V,B,b,21,c[51]),B=e(B,j,W,V,R,6,c[52]),V=e(V,B,j,W,E,10,c[53]),W=e(W,V,B,j,N,15,c[54]),j=e(j,W,V,B,v,21,c[55]),B=e(B,j,W,V,I,6,c[56]),V=e(V,B,j,W,U,10,c[57]),W=e(W,V,B,j,w,15,c[58]),j=e(j,W,V,B,k,21,c[59]),B=e(B,j,W,V,T,6,c[60]),V=e(V,B,j,W,D,10,c[61]),W=e(W,V,B,j,y,15,c[62]),j=e(j,W,V,B,L,21,c[63]),p[0]=p[0]+B|0,p[1]=p[1]+j|0,p[2]=p[2]+W|0,p[3]=p[3]+V|0},_doFinalize:function(){var t=this._data,a=t.words,s=this._nDataBytes*8,u=t.sigBytes*8;a[u>>>5]|=128<<24-u%32;var h=x.floor(s/4294967296),p=s;a[(u+64>>>9<<4)+15]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,a[(u+64>>>9<<4)+14]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,t.sigBytes=(a.length+1)*4,this._process();for(var m=this._hash,v=m.words,y=0;y<4;y++){var E=v[y];v[y]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}return m},clone:function(){var t=g.clone.call(this);return t._hash=this._hash.clone(),t}});function r(l,t,a,s,u,h,p){var m=l+(t&a|~t&s)+u+p;return(m<<h|m>>>32-h)+t}function i(l,t,a,s,u,h,p){var m=l+(t&s|a&~s)+u+p;return(m<<h|m>>>32-h)+t}function n(l,t,a,s,u,h,p){var m=l+(t^a^s)+u+p;return(m<<h|m>>>32-h)+t}function e(l,t,a,s,u,h,p){var m=l+(a^(t|~s))+u+p;return(m<<h|m>>>32-h)+t}C.MD5=g._createHelper(o),C.HmacMD5=g._createHmacHelper(o)}(Math),O.MD5})},czTT:function(H,F,d){},d4KN:function(H,F,d){var O=d("ProS"),x=d("bYtY");function C(A,S){x.each(S,function(g){g.update="updateView",O.registerAction(g,function(f,c){var o={};return c.eachComponent({mainType:"series",subType:A,query:f},function(r){r[g.method]&&r[g.method](f.name,f.dataIndex);var i=r.getData();i.each(function(n){var e=i.getName(n);o[e]=r.isSelected(e)||!1})}),{name:f.name,selected:o,seriesId:f.seriesId}})})}H.exports=C},dBmv:function(H,F,d){var O=d("ProS"),x=d("szbU");d("vF/C"),d("qwVE"),d("MHoB"),d("PNag"),d("1u/T"),O.registerPreprocessor(x)},"dF/Y":function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="DownloadOutlined";var f=F.a=x.forwardRef(g)},dMvE:function(H,F){var d={linear:function(C){return C},quadraticIn:function(C){return C*C},quadraticOut:function(C){return C*(2-C)},quadraticInOut:function(C){return(C*=2)<1?.5*C*C:-.5*(--C*(C-2)-1)},cubicIn:function(C){return C*C*C},cubicOut:function(C){return--C*C*C+1},cubicInOut:function(C){return(C*=2)<1?.5*C*C*C:.5*((C-=2)*C*C+2)},quarticIn:function(C){return C*C*C*C},quarticOut:function(C){return 1- --C*C*C*C},quarticInOut:function(C){return(C*=2)<1?.5*C*C*C*C:-.5*((C-=2)*C*C*C-2)},quinticIn:function(C){return C*C*C*C*C},quinticOut:function(C){return--C*C*C*C*C+1},quinticInOut:function(C){return(C*=2)<1?.5*C*C*C*C*C:.5*((C-=2)*C*C*C*C+2)},sinusoidalIn:function(C){return 1-Math.cos(C*Math.PI/2)},sinusoidalOut:function(C){return Math.sin(C*Math.PI/2)},sinusoidalInOut:function(C){return .5*(1-Math.cos(Math.PI*C))},exponentialIn:function(C){return C===0?0:Math.pow(1024,C-1)},exponentialOut:function(C){return C===1?1:1-Math.pow(2,-10*C)},exponentialInOut:function(C){return C===0?0:C===1?1:(C*=2)<1?.5*Math.pow(1024,C-1):.5*(-Math.pow(2,-10*(C-1))+2)},circularIn:function(C){return 1-Math.sqrt(1-C*C)},circularOut:function(C){return Math.sqrt(1- --C*C)},circularInOut:function(C){return(C*=2)<1?-.5*(Math.sqrt(1-C*C)-1):.5*(Math.sqrt(1-(C-=2)*C)+1)},elasticIn:function(C){var A,S=.1,g=.4;return C===0?0:C===1?1:(!S||S<1?(S=1,A=g/4):A=g*Math.asin(1/S)/(2*Math.PI),-(S*Math.pow(2,10*(C-=1))*Math.sin((C-A)*(2*Math.PI)/g)))},elasticOut:function(C){var A,S=.1,g=.4;return C===0?0:C===1?1:(!S||S<1?(S=1,A=g/4):A=g*Math.asin(1/S)/(2*Math.PI),S*Math.pow(2,-10*C)*Math.sin((C-A)*(2*Math.PI)/g)+1)},elasticInOut:function(C){var A,S=.1,g=.4;return C===0?0:C===1?1:(!S||S<1?(S=1,A=g/4):A=g*Math.asin(1/S)/(2*Math.PI),(C*=2)<1?-.5*(S*Math.pow(2,10*(C-=1))*Math.sin((C-A)*(2*Math.PI)/g)):S*Math.pow(2,-10*(C-=1))*Math.sin((C-A)*(2*Math.PI)/g)*.5+1)},backIn:function(C){var A=1.70158;return C*C*((A+1)*C-A)},backOut:function(C){var A=1.70158;return--C*C*((A+1)*C+A)+1},backInOut:function(C){var A=1.70158*1.525;return(C*=2)<1?.5*(C*C*((A+1)*C-A)):.5*((C-=2)*C*((A+1)*C+A)+2)},bounceIn:function(C){return 1-d.bounceOut(1-C)},bounceOut:function(C){return C<1/2.75?7.5625*C*C:C<2/2.75?7.5625*(C-=1.5/2.75)*C+.75:C<2.5/2.75?7.5625*(C-=2.25/2.75)*C+.9375:7.5625*(C-=2.625/2.75)*C+.984375},bounceInOut:function(C){return C<.5?d.bounceIn(C*2)*.5:d.bounceOut(C*2-1)*.5+.5}},O=d;H.exports=O},diRs:function(H,F,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("q1tI"),A=d.n(C),S=d("3S7+"),g=d("H84U"),f=d("bogI"),c=function(r,i){var n={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&i.indexOf(e)<0&&(n[e]=r[e]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,e=Object.getOwnPropertySymbols(r);l<e.length;l++)i.indexOf(e[l])<0&&Object.prototype.propertyIsEnumerable.call(r,e[l])&&(n[e[l]]=r[e[l]]);return n},o=C.forwardRef(function(r,i){var n=r.prefixCls,e=r.title,l=r.content,t=c(r,["prefixCls","title","content"]),a=C.useContext(g.b),s=a.getPrefixCls,u=function(m){return C.createElement(C.Fragment,null,e&&C.createElement("div",{className:"".concat(m,"-title")},Object(f.a)(e)),C.createElement("div",{className:"".concat(m,"-inner-content")},Object(f.a)(l)))},h=s("popover",n);return C.createElement(S.a,x()({},t,{prefixCls:h,ref:i,overlay:u(h)}))});o.displayName="Popover",o.defaultProps={placement:"top",transitionName:"zoom-big",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}},F.a=o},digP:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={icon:function(C,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:C}}]}},name:"file",theme:"twotone"};F.default=O},dm2S:function(H,F,d){"use strict";d.d(F,"a",function(){return A});var O=d("ODXe"),x=d("q1tI"),C=d.n(x);function A(S){var g=x.useRef(!1),f=x.useState(S),c=Object(O.a)(f,2),o=c[0],r=c[1];x.useEffect(function(){return g.current=!1,function(){g.current=!0}},[]);function i(n,e){if(e&&g.current)return;r(n)}return[o,i]}},dmGj:function(H,F,d){var O=d("DEFe"),x=d("ProS"),C=x.extendComponentView({type:"geo",init:function(A,S){var g=new O(S,!0);this._mapDraw=g,this.group.add(g.group)},render:function(A,S,g,f){if(f&&f.type==="geoToggleSelect"&&f.from===this.uid)return;var c=this._mapDraw;A.get("show")?c.draw(A,S,g,this,f):this._mapDraw.group.removeAll(),this.group.silent=A.get("silent")},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});H.exports=C},dnwI:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("YH21"),A=d("Kagy"),S=d("IUWy"),g=A.toolbox.dataView,f=new Array(60).join("-"),c=" ";function o(v){var y={},E=[],T=[];return v.eachRawSeries(function(b){var w=b.coordinateSystem;if(w&&(w.type==="cartesian2d"||w.type==="polar")){var _=w.getBaseAxis();if(_.type==="category"){var I=_.dim+"_"+_.index;y[I]||(y[I]={categoryAxis:_,valueAxis:w.getOtherAxis(_),series:[]},T.push({axisDim:_.dim,axisIndex:_.index})),y[I].series.push(b)}else E.push(b)}else E.push(b)}),{seriesGroupByCategoryAxis:y,other:E,meta:T}}function r(v){var y=[];return x.each(v,function(E,T){var b=E.categoryAxis,w=E.valueAxis,_=w.dim,I=[" "].concat(x.map(E.series,function(M){return M.name})),L=[b.model.getCategories()];x.each(E.series,function(M){L.push(M.getRawData().mapArray(_,function(U){return U}))});for(var N=[I.join(c)],D=0;D<L[0].length;D++){for(var R=[],k=0;k<L.length;k++)R.push(L[k][D]);N.push(R.join(c))}y.push(N.join(`
|
|
|
`))}),y.join(`
|
|
|
|
|
|
`+f+`
|
|
|
|
|
|
`)}function i(v){return x.map(v,function(y){var E=y.getRawData(),T=[y.name],b=[];return E.each(E.dimensions,function(){for(var w=arguments.length,_=arguments[w-1],I=E.getName(_),L=0;L<w-1;L++)b[L]=arguments[L];T.push((I?I+c:"")+b.join(c))}),T.join(`
|
|
|
`)}).join(`
|
|
|
|
|
|
`+f+`
|
|
|
|
|
|
`)}function n(v){var y=o(v);return{value:x.filter([r(y.seriesGroupByCategoryAxis),i(y.other)],function(E){return E.replace(/[\n\t\s]/g,"")}).join(`
|
|
|
|
|
|
`+f+`
|
|
|
|
|
|
`),meta:y.meta}}function e(v){return v.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function l(v){var y=v.slice(0,v.indexOf(`
|
|
|
`));if(y.indexOf(c)>=0)return!0}var t=new RegExp("["+c+"]+","g");function a(v){for(var y=v.split(/\n+/g),E=e(y.shift()).split(t),T=[],b=x.map(E,function(L){return{name:L,data:[]}}),w=0;w<y.length;w++){var _=e(y[w]).split(t);T.push(_.shift());for(var I=0;I<_.length;I++)b[I]&&(b[I].data[w]=_[I])}return{series:b,categories:T}}function s(v){for(var y=v.split(/\n+/g),E=e(y.shift()),T=[],b=0;b<y.length;b++){var w=e(y[b]).split(t),_="",I,L=!1;isNaN(w[0])?(L=!0,_=w[0],w=w.slice(1),T[b]={name:_,value:[]},I=T[b].value):I=T[b]=[];for(var N=0;N<w.length;N++)I.push(+w[N]);I.length===1&&(L?T[b].value=I[0]:T[b]=I[0])}return{name:E,data:T}}function u(v,y){var E=v.split(new RegExp(`
|
|
|
*`+f+`
|
|
|
*`,"g")),T={series:[]};return x.each(E,function(b,w){if(l(b)){var _=a(b),I=y[w],L=I.axisDim+"Axis";I&&(T[L]=T[L]||[],T[L][I.axisIndex]={data:_.categories},T.series=T.series.concat(_.series))}else{var _=s(b);T.series.push(_)}}),T}function h(v){this._dom=null,this.model=v}h.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:x.clone(g.title),lang:x.clone(g.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},h.prototype.onclick=function(v,y){var E=y.getDom(),T=this.model;this._dom&&E.removeChild(this._dom);var b=document.createElement("div");b.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",b.style.backgroundColor=T.get("backgroundColor")||"#fff";var w=document.createElement("h4"),_=T.get("lang")||[];w.innerHTML=_[0]||T.get("title"),w.style.cssText="margin: 10px 20px;",w.style.color=T.get("textColor");var I=document.createElement("div"),L=document.createElement("textarea");I.style.cssText="display:block;width:100%;overflow:auto;";var N=T.get("optionToContent"),D=T.get("contentToOption"),R=n(v);if(typeof N=="function"){var k=N(y.getOption());typeof k=="string"?I.innerHTML=k:x.isDom(k)&&I.appendChild(k)}else I.appendChild(L),L.readOnly=T.get("readOnly"),L.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",L.style.color=T.get("textColor"),L.style.borderColor=T.get("textareaBorderColor"),L.style.backgroundColor=T.get("textareaColor"),L.value=R.value;var M=R.meta,U=document.createElement("div");U.style.cssText="position:absolute;bottom:0;left:0;right:0;";var B="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",j=document.createElement("div"),W=document.createElement("div");B+=";background-color:"+T.get("buttonColor"),B+=";color:"+T.get("buttonTextColor");var V=this;function z(){E.removeChild(b),V._dom=null}C.addEventListener(j,"click",z),C.addEventListener(W,"click",function(){var J;try{typeof D=="function"?J=D(I,y.getOption()):J=u(L.value,M)}catch(Z){throw z(),new Error("Data view format error "+Z)}J&&y.dispatchAction({type:"changeDataView",newOption:J}),z()}),j.innerHTML=_[1],W.innerHTML=_[2],W.style.cssText=B,j.style.cssText=B,!T.get("readOnly")&&U.appendChild(W),U.appendChild(j),b.appendChild(w),b.appendChild(I),b.appendChild(U),I.style.height=E.clientHeight-80+"px",E.appendChild(b),this._dom=b},h.prototype.remove=function(v,y){this._dom&&y.getDom().removeChild(this._dom)},h.prototype.dispose=function(v,y){this.remove(v,y)};function p(v,y){return x.map(v,function(E,T){var b=y&&y[T];return x.isObject(b)&&!x.isArray(b)?(x.isObject(E)&&!x.isArray(E)&&(E=E.value),x.defaults({value:E},b)):E})}S.register("dataView",h),O.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(v,y){var E=[];x.each(v.newOption.series,function(T){var b=y.getSeriesByName(T.name)[0];if(!b)E.push(x.extend({type:"scatter"},T));else{var w=b.get("data");E.push({name:T.name,data:p(T.data,w)})}}),y.mergeOption(x.defaults({series:E},v.newOption))});var m=h;H.exports=m},dqUG:function(H,F,d){var O=d("Gev7"),x=d("bYtY"),C=d("6GrX"),A=d("pzxd"),S=d("gut8"),g=S.ContextCachedBy,f=function(r){O.call(this,r)};f.prototype={constructor:f,type:"text",brush:function(r,i){var n=this.style;this.__dirty&&A.normalizeTextStyle(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var e=n.text;if(e!=null&&(e+=""),!A.needDrawText(e,n)){r.__attrCachedBy=g.NONE;return}this.setTransform(r),A.renderText(this,r,e,n,null,i),this.restoreTransform(r)},getBoundingRect:function(){var r=this.style;if(this.__dirty&&A.normalizeTextStyle(r,!0),!this._rect){var i=r.text;i!=null?i+="":i="";var n=C.getBoundingRect(r.text+"",r.font,r.textAlign,r.textVerticalAlign,r.textPadding,r.textLineHeight,r.rich);if(n.x+=r.x||0,n.y+=r.y||0,A.getStroke(r.textStroke,r.textStrokeWidth)){var e=r.textStrokeWidth;n.x-=e/2,n.y-=e/2,n.width+=e,n.height+=e}this._rect=n}return this._rect}},x.inherits(f,O);var c=f;H.exports=c},dt0z:function(H,F,d){var O=d("zoYe");function x(C){return C==null?"":O(C)}H.exports=x},dtIV:function(H,F,d){"use strict";d.r(F),function(O){d.d(F,"AcroForm",function(){return Ee}),d.d(F,"AcroFormAppearance",function(){return X}),d.d(F,"AcroFormButton",function(){return xt}),d.d(F,"AcroFormCheckBox",function(){return Tt}),d.d(F,"AcroFormChoiceField",function(){return qe}),d.d(F,"AcroFormComboBox",function(){return Ot}),d.d(F,"AcroFormEditBox",function(){return $e}),d.d(F,"AcroFormListBox",function(){return Le}),d.d(F,"AcroFormPasswordField",function(){return oe}),d.d(F,"AcroFormPushButton",function(){return Ht}),d.d(F,"AcroFormRadioButton",function(){return tr}),d.d(F,"AcroFormTextField",function(){return Xe}),d.d(F,"GState",function(){return k}),d.d(F,"ShadingPattern",function(){return U}),d.d(F,"TilingPattern",function(){return B}),d.d(F,"jsPDF",function(){return j});var x=d("cDf5"),C=d.n(x),A=d("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 S=function(){return typeof window!="undefined"?window:typeof O!="undefined"?O:typeof self!="undefined"?self:this}();function g(){S.console&&typeof S.console.log=="function"&&S.console.log.apply(S.console,arguments)}var f={log:g,warn:function(we){S.console&&(typeof S.console.warn=="function"?S.console.warn.apply(S.console,arguments):g.call(null,arguments))},error:function(we){S.console&&(typeof S.console.error=="function"?S.console.error.apply(S.console,arguments):g(we))}};function c(Qe,we,Ne){var Fe=new XMLHttpRequest;Fe.open("GET",Qe),Fe.responseType="blob",Fe.onload=function(){e(Fe.response,we,Ne)},Fe.onerror=function(){f.error("could not download file")},Fe.send()}function o(Qe){var we=new XMLHttpRequest;we.open("HEAD",Qe,!1);try{we.send()}catch(Ne){}return we.status>=200&&we.status<=299}function r(Qe){try{Qe.dispatchEvent(new MouseEvent("click"))}catch(Ne){var we=document.createEvent("MouseEvents");we.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Qe.dispatchEvent(we)}}var i,n,e=S.saveAs||((typeof window=="undefined"?"undefined":C()(window))!=="object"||window!==S?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(Qe,we,Ne){var Fe=S.URL||S.webkitURL,Ye=document.createElement("a");we=we||Qe.name||"download",Ye.download=we,Ye.rel="noopener",typeof Qe=="string"?(Ye.href=Qe,Ye.origin!==location.origin?o(Ye.href)?c(Qe,we,Ne):r(Ye,Ye.target="_blank"):r(Ye)):(Ye.href=Fe.createObjectURL(Qe),setTimeout(function(){Fe.revokeObjectURL(Ye.href)},4e4),setTimeout(function(){r(Ye)},0))}:"msSaveOrOpenBlob"in navigator?function(Qe,we,Ne){if(we=we||Qe.name||"download",typeof Qe=="string")if(o(Qe))c(Qe,we,Ne);else{var Fe=document.createElement("a");Fe.href=Qe,Fe.target="_blank",setTimeout(function(){r(Fe)})}else navigator.msSaveOrOpenBlob(function(Ye,We){return We===void 0?We={autoBom:!1}:C()(We)!=="object"&&(f.warn("Deprecated: Expected third argument to be a object"),We={autoBom:!We}),We.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Ye.type)?new Blob([String.fromCharCode(65279),Ye],{type:Ye.type}):Ye}(Qe,Ne),we)}:function(Qe,we,Ne,Fe){if((Fe=Fe||open("","_blank"))&&(Fe.document.title=Fe.document.body.innerText="downloading..."),typeof Qe=="string")return c(Qe,we,Ne);var Ye=Qe.type==="application/octet-stream",We=/constructor/i.test(S.HTMLElement)||S.safari,Ze=/CriOS\/[\d]+/.test(navigator.userAgent);if((Ze||Ye&&We)&&(typeof FileReader=="undefined"?"undefined":C()(FileReader))==="object"){var mt=new FileReader;mt.onloadend=function(){var Dr=mt.result;Dr=Ze?Dr:Dr.replace(/^data:[^;]*;/,"data:attachment/file;"),Fe?Fe.location.href=Dr:location=Dr,Fe=null},mt.readAsDataURL(Qe)}else{var it=S.URL||S.webkitURL,Jt=it.createObjectURL(Qe);Fe?Fe.location=Jt:location.href=Jt,Fe=null,setTimeout(function(){it.revokeObjectURL(Jt)},4e4)}});/**
|
|
|
* A class to parse color values
|
|
|
* @author Stoyan Stefanov <sstoo@gmail.com>
|
|
|
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
|
|
|
* @license Use it if you like it
|
|
|
*/function l(Qe){var we;Qe=Qe||"",this.ok=!1,Qe.charAt(0)=="#"&&(Qe=Qe.substr(1,6)),Qe={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[Qe=(Qe=Qe.replace(/ /g,"")).toLowerCase()]||Qe;for(var Ne=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(it){return[parseInt(it[1]),parseInt(it[2]),parseInt(it[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(it){return[parseInt(it[1],16),parseInt(it[2],16),parseInt(it[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(it){return[parseInt(it[1]+it[1],16),parseInt(it[2]+it[2],16),parseInt(it[3]+it[3],16)]}}],Fe=0;Fe<Ne.length;Fe++){var Ye=Ne[Fe].re,We=Ne[Fe].process,Ze=Ye.exec(Qe);Ze&&(we=We(Ze),this.r=we[0],this.g=we[1],this.b=we[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 mt=this.r.toString(16),it=this.g.toString(16),Jt=this.b.toString(16);return mt.length==1&&(mt="0"+mt),it.length==1&&(it="0"+it),Jt.length==1&&(Jt="0"+Jt),"#"+mt+it+Jt}}/**
|
|
|
* @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 t(Qe,we){var Ne=Qe[0],Fe=Qe[1],Ye=Qe[2],We=Qe[3];Ne=s(Ne,Fe,Ye,We,we[0],7,-680876936),We=s(We,Ne,Fe,Ye,we[1],12,-389564586),Ye=s(Ye,We,Ne,Fe,we[2],17,606105819),Fe=s(Fe,Ye,We,Ne,we[3],22,-1044525330),Ne=s(Ne,Fe,Ye,We,we[4],7,-176418897),We=s(We,Ne,Fe,Ye,we[5],12,1200080426),Ye=s(Ye,We,Ne,Fe,we[6],17,-1473231341),Fe=s(Fe,Ye,We,Ne,we[7],22,-45705983),Ne=s(Ne,Fe,Ye,We,we[8],7,1770035416),We=s(We,Ne,Fe,Ye,we[9],12,-1958414417),Ye=s(Ye,We,Ne,Fe,we[10],17,-42063),Fe=s(Fe,Ye,We,Ne,we[11],22,-1990404162),Ne=s(Ne,Fe,Ye,We,we[12],7,1804603682),We=s(We,Ne,Fe,Ye,we[13],12,-40341101),Ye=s(Ye,We,Ne,Fe,we[14],17,-1502002290),Ne=u(Ne,Fe=s(Fe,Ye,We,Ne,we[15],22,1236535329),Ye,We,we[1],5,-165796510),We=u(We,Ne,Fe,Ye,we[6],9,-1069501632),Ye=u(Ye,We,Ne,Fe,we[11],14,643717713),Fe=u(Fe,Ye,We,Ne,we[0],20,-373897302),Ne=u(Ne,Fe,Ye,We,we[5],5,-701558691),We=u(We,Ne,Fe,Ye,we[10],9,38016083),Ye=u(Ye,We,Ne,Fe,we[15],14,-660478335),Fe=u(Fe,Ye,We,Ne,we[4],20,-405537848),Ne=u(Ne,Fe,Ye,We,we[9],5,568446438),We=u(We,Ne,Fe,Ye,we[14],9,-1019803690),Ye=u(Ye,We,Ne,Fe,we[3],14,-187363961),Fe=u(Fe,Ye,We,Ne,we[8],20,1163531501),Ne=u(Ne,Fe,Ye,We,we[13],5,-1444681467),We=u(We,Ne,Fe,Ye,we[2],9,-51403784),Ye=u(Ye,We,Ne,Fe,we[7],14,1735328473),Ne=h(Ne,Fe=u(Fe,Ye,We,Ne,we[12],20,-1926607734),Ye,We,we[5],4,-378558),We=h(We,Ne,Fe,Ye,we[8],11,-2022574463),Ye=h(Ye,We,Ne,Fe,we[11],16,1839030562),Fe=h(Fe,Ye,We,Ne,we[14],23,-35309556),Ne=h(Ne,Fe,Ye,We,we[1],4,-1530992060),We=h(We,Ne,Fe,Ye,we[4],11,1272893353),Ye=h(Ye,We,Ne,Fe,we[7],16,-155497632),Fe=h(Fe,Ye,We,Ne,we[10],23,-1094730640),Ne=h(Ne,Fe,Ye,We,we[13],4,681279174),We=h(We,Ne,Fe,Ye,we[0],11,-358537222),Ye=h(Ye,We,Ne,Fe,we[3],16,-722521979),Fe=h(Fe,Ye,We,Ne,we[6],23,76029189),Ne=h(Ne,Fe,Ye,We,we[9],4,-640364487),We=h(We,Ne,Fe,Ye,we[12],11,-421815835),Ye=h(Ye,We,Ne,Fe,we[15],16,530742520),Ne=p(Ne,Fe=h(Fe,Ye,We,Ne,we[2],23,-995338651),Ye,We,we[0],6,-198630844),We=p(We,Ne,Fe,Ye,we[7],10,1126891415),Ye=p(Ye,We,Ne,Fe,we[14],15,-1416354905),Fe=p(Fe,Ye,We,Ne,we[5],21,-57434055),Ne=p(Ne,Fe,Ye,We,we[12],6,1700485571),We=p(We,Ne,Fe,Ye,we[3],10,-1894986606),Ye=p(Ye,We,Ne,Fe,we[10],15,-1051523),Fe=p(Fe,Ye,We,Ne,we[1],21,-2054922799),Ne=p(Ne,Fe,Ye,We,we[8],6,1873313359),We=p(We,Ne,Fe,Ye,we[15],10,-30611744),Ye=p(Ye,We,Ne,Fe,we[6],15,-1560198380),Fe=p(Fe,Ye,We,Ne,we[13],21,1309151649),Ne=p(Ne,Fe,Ye,We,we[4],6,-145523070),We=p(We,Ne,Fe,Ye,we[11],10,-1120210379),Ye=p(Ye,We,Ne,Fe,we[2],15,718787259),Fe=p(Fe,Ye,We,Ne,we[9],21,-343485551),Qe[0]=_(Ne,Qe[0]),Qe[1]=_(Fe,Qe[1]),Qe[2]=_(Ye,Qe[2]),Qe[3]=_(We,Qe[3])}function a(Qe,we,Ne,Fe,Ye,We){return we=_(_(we,Qe),_(Fe,We)),_(we<<Ye|we>>>32-Ye,Ne)}function s(Qe,we,Ne,Fe,Ye,We,Ze){return a(we&Ne|~we&Fe,Qe,we,Ye,We,Ze)}function u(Qe,we,Ne,Fe,Ye,We,Ze){return a(we&Fe|Ne&~Fe,Qe,we,Ye,We,Ze)}function h(Qe,we,Ne,Fe,Ye,We,Ze){return a(we^Ne^Fe,Qe,we,Ye,We,Ze)}function p(Qe,we,Ne,Fe,Ye,We,Ze){return a(Ne^(we|~Fe),Qe,we,Ye,We,Ze)}function m(Qe){var we,Ne=Qe.length,Fe=[1732584193,-271733879,-1732584194,271733878];for(we=64;we<=Qe.length;we+=64)t(Fe,v(Qe.substring(we-64,we)));Qe=Qe.substring(we-64);var Ye=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(we=0;we<Qe.length;we++)Ye[we>>2]|=Qe.charCodeAt(we)<<(we%4<<3);if(Ye[we>>2]|=128<<(we%4<<3),we>55)for(t(Fe,Ye),we=0;we<16;we++)Ye[we]=0;return Ye[14]=8*Ne,t(Fe,Ye),Fe}function v(Qe){var we,Ne=[];for(we=0;we<64;we+=4)Ne[we>>2]=Qe.charCodeAt(we)+(Qe.charCodeAt(we+1)<<8)+(Qe.charCodeAt(we+2)<<16)+(Qe.charCodeAt(we+3)<<24);return Ne}i=S.atob.bind(S),n=S.btoa.bind(S);var y="0123456789abcdef".split("");function E(Qe){for(var we="",Ne=0;Ne<4;Ne++)we+=y[Qe>>8*Ne+4&15]+y[Qe>>8*Ne&15];return we}function T(Qe){return String.fromCharCode((255&Qe)>>0,(65280&Qe)>>8,(16711680&Qe)>>16,(4278190080&Qe)>>24)}function b(Qe){return m(Qe).map(T).join("")}var w=function(Qe){for(var we=0;we<Qe.length;we++)Qe[we]=E(Qe[we]);return Qe.join("")}(m("hello"))!="5d41402abc4b2a76b9719d911017c592";function _(Qe,we){if(w){var Ne=(65535&Qe)+(65535&we);return(Qe>>16)+(we>>16)+(Ne>>16)<<16|65535&Ne}return Qe+we&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(Qe,we){var Ne,Fe,Ye,We;if(Qe!==Ne){for(var Ze=(Ye=Qe,We=1+(256/Qe.length>>0),new Array(We+1).join(Ye)),mt=[],it=0;it<256;it++)mt[it]=it;var Jt=0;for(it=0;it<256;it++){var Dr=mt[it];Jt=(Jt+Dr+Ze.charCodeAt(it))%256,mt[it]=mt[Jt],mt[Jt]=Dr}Ne=Qe,Fe=mt}else mt=Fe;var Sr=we.length,Br=0,$t=0,gn="";for(it=0;it<Sr;it++)$t=($t+(Dr=mt[Br=(Br+1)%256]))%256,mt[Br]=mt[$t],mt[$t]=Dr,Ze=mt[(mt[Br]+mt[$t])%256],gn+=String.fromCharCode(we.charCodeAt(it)^Ze);return gn}/**
|
|
|
* @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 L={print:4,modify:8,copy:16,"annot-forms":32};function N(Qe,we,Ne,Fe){this.v=1,this.r=2;var Ye=192;Qe.forEach(function(mt){if(L.perm!==void 0)throw new Error("Invalid permission: "+mt);Ye+=L[mt]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var We=(we+this.padding).substr(0,32),Ze=(Ne+this.padding).substr(0,32);this.O=this.processOwnerPassword(We,Ze),this.P=-(1+(255^Ye)),this.encryptionKey=b(We+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(Fe)).substr(0,5),this.U=I(this.encryptionKey,this.padding)}function D(Qe){if(/[^\u0000-\u00ff]/.test(Qe))throw new Error("Invalid PDF Name Object: "+Qe+", Only accept ASCII characters.");for(var we="",Ne=Qe.length,Fe=0;Fe<Ne;Fe++){var Ye=Qe.charCodeAt(Fe);Ye<33||Ye===35||Ye===37||Ye===40||Ye===41||Ye===47||Ye===60||Ye===62||Ye===91||Ye===93||Ye===123||Ye===125||Ye>126?we+="#"+("0"+Ye.toString(16)).slice(-2):we+=Qe[Fe]}return we}function R(Qe){if(C()(Qe)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var we={};this.subscribe=function(Ne,Fe,Ye){if(Ye=Ye||!1,typeof Ne!="string"||typeof Fe!="function"||typeof Ye!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");we.hasOwnProperty(Ne)||(we[Ne]={});var We=Math.random().toString(35);return we[Ne][We]=[Fe,!!Ye],We},this.unsubscribe=function(Ne){for(var Fe in we)if(we[Fe][Ne])return delete we[Fe][Ne],Object.keys(we[Fe]).length===0&&delete we[Fe],!0;return!1},this.publish=function(Ne){if(we.hasOwnProperty(Ne)){var Fe=Array.prototype.slice.call(arguments,1),Ye=[];for(var We in we[Ne]){var Ze=we[Ne][We];try{Ze[0].apply(Qe,Fe)}catch(mt){S.console&&f.error("jsPDF PubSub Error",mt.message,mt)}Ze[1]&&Ye.push(We)}Ye.length&&Ye.forEach(this.unsubscribe)}},this.getTopics=function(){return we}}function k(Qe){if(!(this instanceof k))return new k(Qe);var we="opacity,stroke-opacity".split(",");for(var Ne in Qe)Qe.hasOwnProperty(Ne)&&we.indexOf(Ne)>=0&&(this[Ne]=Qe[Ne]);this.id="",this.objectNumber=-1}function M(Qe,we){this.gState=Qe,this.matrix=we,this.id="",this.objectNumber=-1}function U(Qe,we,Ne,Fe,Ye){if(!(this instanceof U))return new U(Qe,we,Ne,Fe,Ye);this.type=Qe==="axial"?2:3,this.coords=we,this.colors=Ne,M.call(this,Fe,Ye)}function B(Qe,we,Ne,Fe,Ye){if(!(this instanceof B))return new B(Qe,we,Ne,Fe,Ye);this.boundingBox=Qe,this.xStep=we,this.yStep=Ne,this.stream="",this.cloneIndex=0,M.call(this,Fe,Ye)}function j(Qe){var we,Ne=typeof arguments[0]=="string"?arguments[0]:"p",Fe=arguments[1],Ye=arguments[2],We=arguments[3],Ze=[],mt=1,it=16,Jt="S",Dr=null;C()(Qe=Qe||{})==="object"&&(Ne=Qe.orientation,Fe=Qe.unit||Fe,Ye=Qe.format||Ye,We=Qe.compress||Qe.compressPdf||We,(Dr=Qe.encryption||null)!==null&&(Dr.userPassword=Dr.userPassword||"",Dr.ownerPassword=Dr.ownerPassword||"",Dr.userPermissions=Dr.userPermissions||[]),mt=typeof Qe.userUnit=="number"?Math.abs(Qe.userUnit):1,Qe.precision!==void 0&&(we=Qe.precision),Qe.floatPrecision!==void 0&&(it=Qe.floatPrecision),Jt=Qe.defaultPathOperation||"S"),Ze=Qe.filters||(We===!0?["FlateEncode"]:Ze),Fe=Fe||"mm",Ne=(""+(Ne||"P")).toLowerCase();var Sr=Qe.putOnlyUsedFonts||!1,Br={},$t={internal:{},__private__:{}};$t.__private__.PubSub=R;var gn="1.3",or=$t.__private__.getPdfVersion=function(){return gn};$t.__private__.setPdfVersion=function(St){gn=St};var ln={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]};$t.__private__.getPageFormats=function(){return ln};var an=$t.__private__.getPageFormat=function(St){return ln[St]};Ye=Ye||"a4";var Rr={COMPAT:"compat",ADVANCED:"advanced"},On=Rr.COMPAT;function ci(){this.saveGraphicsState(),Sn(new yi(sa,0,0,-sa,0,is()*sa).toString()+" cm"),this.setFontSize(this.getFontSize()/sa),Jt="n",On=Rr.ADVANCED}function Ui(){this.restoreGraphicsState(),Jt="S",On=Rr.COMPAT}var ki=$t.__private__.combineFontStyleAndFontWeight=function(St,Pt){if(St=="bold"&&Pt=="normal"||St=="bold"&&Pt==400||St=="normal"&&Pt=="italic"||St=="bold"&&Pt=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Pt&&(St=Pt==400||Pt==="normal"?St==="italic"?"italic":"normal":Pt!=700&&Pt!=="bold"||St!=="normal"?(Pt==700?"bold":Pt)+""+St:"bold"),St};$t.advancedAPI=function(St){var Pt=On===Rr.COMPAT;return Pt&&ci.call(this),typeof St!="function"||(St(this),Pt&&Ui.call(this)),this},$t.compatAPI=function(St){var Pt=On===Rr.ADVANCED;return Pt&&Ui.call(this),typeof St!="function"||(St(this),Pt&&ci.call(this)),this},$t.isAdvancedAPI=function(){return On===Rr.ADVANCED};var Di,Ki=function(Pt){if(On!==Rr.ADVANCED)throw new Error(Pt+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Ur=$t.roundToPrecision=$t.__private__.roundToPrecision=function(St,Pt){var Kr=we||Pt;if(isNaN(St)||isNaN(Kr))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return St.toFixed(Kr).replace(/0+$/,"")};Di=$t.hpf=$t.__private__.hpf=typeof it=="number"?function(St){if(isNaN(St))throw new Error("Invalid argument passed to jsPDF.hpf");return Ur(St,it)}:it==="smart"?function(St){if(isNaN(St))throw new Error("Invalid argument passed to jsPDF.hpf");return Ur(St,St>-1&&St<1?16:5)}:function(St){if(isNaN(St))throw new Error("Invalid argument passed to jsPDF.hpf");return Ur(St,16)};var Tn=$t.f2=$t.__private__.f2=function(St){if(isNaN(St))throw new Error("Invalid argument passed to jsPDF.f2");return Ur(St,2)},Mr=$t.__private__.f3=function(St){if(isNaN(St))throw new Error("Invalid argument passed to jsPDF.f3");return Ur(St,3)},mr=$t.scale=$t.__private__.scale=function(St){if(isNaN(St))throw new Error("Invalid argument passed to jsPDF.scale");return On===Rr.COMPAT?St*sa:On===Rr.ADVANCED?St:void 0},Cr=function(Pt){return On===Rr.COMPAT?is()-Pt:On===Rr.ADVANCED?Pt:void 0},Lt=function(Pt){return mr(Cr(Pt))};$t.__private__.setPrecision=$t.setPrecision=function(St){typeof parseInt(St,10)=="number"&&(we=parseInt(St,10))};var wr,Vr="00000000000000000000000000000000",jr=$t.__private__.getFileId=function(){return Vr},qr=$t.__private__.setFileId=function(St){return Vr=St!==void 0&&/^[a-fA-F0-9]{32}$/.test(St)?St.toUpperCase():Vr.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),Dr!==null&&(Gi=new N(Dr.userPermissions,Dr.userPassword,Dr.ownerPassword,Vr)),Vr};$t.setFileId=function(St){return qr(St),this},$t.getFileId=function(){return jr()};var oi=$t.__private__.convertDateToPDFDate=function(St){var Pt=St.getTimezoneOffset(),Kr=Pt<0?"+":"-",Pn=Math.floor(Math.abs(Pt/60)),ut=Math.abs(Pt%60),ne=[Kr,xn(Pn),"'",xn(ut),"'"].join("");return["D:",St.getFullYear(),xn(St.getMonth()+1),xn(St.getDate()),xn(St.getHours()),xn(St.getMinutes()),xn(St.getSeconds()),ne].join("")},Vn=$t.__private__.convertPDFDateToDate=function(St){var Pt=parseInt(St.substr(2,4),10),Kr=parseInt(St.substr(6,2),10)-1,Pn=parseInt(St.substr(8,2),10),ut=parseInt(St.substr(10,2),10),ne=parseInt(St.substr(12,2),10),pe=parseInt(St.substr(14,2),10);return new Date(Pt,Kr,Pn,ut,ne,pe,0)},Ti=$t.__private__.setCreationDate=function(St){var Pt;if(St===void 0&&(St=new Date),St instanceof Date)Pt=oi(St);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(St))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Pt=St}return wr=Pt},dn=$t.__private__.getCreationDate=function(St){var Pt=wr;return St==="jsDate"&&(Pt=Vn(wr)),Pt};$t.setCreationDate=function(St){return Ti(St),this},$t.getCreationDate=function(St){return dn(St)};var _r,xn=$t.__private__.padd2=function(St){return("0"+parseInt(St)).slice(-2)},Fn=$t.__private__.padd2Hex=function(St){return("00"+(St=St.toString())).substr(St.length)},zn=0,qn=[],Oi=[],Li=0,Ri=[],Ji=[],ma=!1,la=Oi,qa=function(){zn=0,Li=0,Oi=[],qn=[],Ri=[],So=so(),Xt=so()};$t.__private__.setCustomOutputDestination=function(St){ma=!0,la=St};var bi=function(Pt){ma||(la=Pt)};$t.__private__.resetCustomOutputDestination=function(){ma=!1,la=Oi};var Sn=$t.__private__.out=function(St){return St=St.toString(),Li+=St.length+1,la.push(St),la},zi=$t.__private__.write=function(St){return Sn(arguments.length===1?St.toString():Array.prototype.join.call(arguments," "))},oa=$t.__private__.getArrayBuffer=function(St){for(var Pt=St.length,Kr=new ArrayBuffer(Pt),Pn=new Uint8Array(Kr);Pt--;)Pn[Pt]=St.charCodeAt(Pt);return Kr},Yi=[["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]];$t.__private__.getStandardFonts=function(){return Yi};var ca=Qe.fontSize||16;$t.__private__.setFontSize=$t.setFontSize=function(St){return ca=On===Rr.ADVANCED?St/sa:St,this};var Hi,Ia=$t.__private__.getFontSize=$t.getFontSize=function(){return On===Rr.COMPAT?ca:ca*sa},Da=Qe.R2L||!1;$t.__private__.setR2L=$t.setR2L=function(St){return Da=St,this},$t.__private__.getR2L=$t.getR2L=function(){return Da};var Qa,Wo=$t.__private__.setZoomMode=function(St){var Pt=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(St))Hi=St;else if(isNaN(St)){if(Pt.indexOf(St)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+St+'" is not recognized.');Hi=St}else Hi=parseInt(St,10)};$t.__private__.getZoomMode=function(){return Hi};var po,Mo=$t.__private__.setPageMode=function(St){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(St)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+St+'" is not recognized.');Qa=St};$t.__private__.getPageMode=function(){return Qa};var Fo=$t.__private__.setLayoutMode=function(St){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(St)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+St+'" is not recognized.');po=St};$t.__private__.getLayoutMode=function(){return po},$t.__private__.setDisplayMode=$t.setDisplayMode=function(St,Pt,Kr){return Wo(St),Fo(Pt),Mo(Kr),this};var yo={title:"",subject:"",author:"",keywords:"",creator:""};$t.__private__.getDocumentProperty=function(St){if(Object.keys(yo).indexOf(St)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return yo[St]},$t.__private__.getDocumentProperties=function(){return yo},$t.__private__.setDocumentProperties=$t.setProperties=$t.setDocumentProperties=function(St){for(var Pt in yo)yo.hasOwnProperty(Pt)&&St[Pt]&&(yo[Pt]=St[Pt]);return this},$t.__private__.setDocumentProperty=function(St,Pt){if(Object.keys(yo).indexOf(St)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return yo[St]=Pt};var Oo,sa,hs,Jo,wo,_o={},Bo={},Ds=[],Nr={},rn={},En={},en={},ur=null,on=0,Bn=[],Hn=new R($t),Ii=Qe.hotfixes||[],Ci={},Jn={},mi=[],yi=function St(Pt,Kr,Pn,ut,ne,pe){if(!(this instanceof St))return new St(Pt,Kr,Pn,ut,ne,pe);isNaN(Pt)&&(Pt=1),isNaN(Kr)&&(Kr=0),isNaN(Pn)&&(Pn=0),isNaN(ut)&&(ut=1),isNaN(ne)&&(ne=0),isNaN(pe)&&(pe=0),this._matrix=[Pt,Kr,Pn,ut,ne,pe]};Object.defineProperty(yi.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Pt){this._matrix[0]=Pt}}),Object.defineProperty(yi.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Pt){this._matrix[1]=Pt}}),Object.defineProperty(yi.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Pt){this._matrix[2]=Pt}}),Object.defineProperty(yi.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Pt){this._matrix[3]=Pt}}),Object.defineProperty(yi.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Pt){this._matrix[4]=Pt}}),Object.defineProperty(yi.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Pt){this._matrix[5]=Pt}}),Object.defineProperty(yi.prototype,"a",{get:function(){return this._matrix[0]},set:function(Pt){this._matrix[0]=Pt}}),Object.defineProperty(yi.prototype,"b",{get:function(){return this._matrix[1]},set:function(Pt){this._matrix[1]=Pt}}),Object.defineProperty(yi.prototype,"c",{get:function(){return this._matrix[2]},set:function(Pt){this._matrix[2]=Pt}}),Object.defineProperty(yi.prototype,"d",{get:function(){return this._matrix[3]},set:function(Pt){this._matrix[3]=Pt}}),Object.defineProperty(yi.prototype,"e",{get:function(){return this._matrix[4]},set:function(Pt){this._matrix[4]=Pt}}),Object.defineProperty(yi.prototype,"f",{get:function(){return this._matrix[5]},set:function(Pt){this._matrix[5]=Pt}}),Object.defineProperty(yi.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(yi.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(yi.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(yi.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),yi.prototype.join=function(St){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Di).join(St)},yi.prototype.multiply=function(St){var Pt=St.sx*this.sx+St.shy*this.shx,Kr=St.sx*this.shy+St.shy*this.sy,Pn=St.shx*this.sx+St.sy*this.shx,ut=St.shx*this.shy+St.sy*this.sy,ne=St.tx*this.sx+St.ty*this.shx+this.tx,pe=St.tx*this.shy+St.ty*this.sy+this.ty;return new yi(Pt,Kr,Pn,ut,ne,pe)},yi.prototype.decompose=function(){var St=this.sx,Pt=this.shy,Kr=this.shx,Pn=this.sy,ut=this.tx,ne=this.ty,pe=Math.sqrt(St*St+Pt*Pt),be=(St/=pe)*Kr+(Pt/=pe)*Pn;Kr-=St*be,Pn-=Pt*be;var je=Math.sqrt(Kr*Kr+Pn*Pn);return be/=je,St*(Pn/=je)<Pt*(Kr/=je)&&(St=-St,Pt=-Pt,be=-be,pe=-pe),{scale:new yi(pe,0,0,je,0,0),translate:new yi(1,0,0,1,ut,ne),rotate:new yi(St,Pt,-Pt,St,0,0),skew:new yi(1,0,be,1,0,0)}},yi.prototype.toString=function(St){return this.join(" ")},yi.prototype.inversed=function(){var St=this.sx,Pt=this.shy,Kr=this.shx,Pn=this.sy,ut=this.tx,ne=this.ty,pe=1/(St*Pn-Pt*Kr),be=Pn*pe,je=-Pt*pe,ht=-Kr*pe,Vt=St*pe;return new yi(be,je,ht,Vt,-be*ut-ht*ne,-je*ut-Vt*ne)},yi.prototype.applyToPoint=function(St){var Pt=St.x*this.sx+St.y*this.shx+this.tx,Kr=St.x*this.shy+St.y*this.sy+this.ty;return new Io(Pt,Kr)},yi.prototype.applyToRectangle=function(St){var Pt=this.applyToPoint(St),Kr=this.applyToPoint(new Io(St.x+St.w,St.y+St.h));return new zo(Pt.x,Pt.y,Kr.x-Pt.x,Kr.y-Pt.y)},yi.prototype.clone=function(){var St=this.sx,Pt=this.shy,Kr=this.shx,Pn=this.sy,ut=this.tx,ne=this.ty;return new yi(St,Pt,Kr,Pn,ut,ne)},$t.Matrix=yi;var da=$t.matrixMult=function(St,Pt){return Pt.multiply(St)},ha=new yi(1,0,0,1,0,0);$t.unitMatrix=$t.identityMatrix=ha;var Pa=function(Pt,Kr){if(!rn[Pt]){var Pn=(Kr instanceof U?"Sh":"P")+(Object.keys(Nr).length+1).toString(10);Kr.id=Pn,rn[Pt]=Pn,Nr[Pn]=Kr,Hn.publish("addPattern",Kr)}};$t.ShadingPattern=U,$t.TilingPattern=B,$t.addShadingPattern=function(St,Pt){return Ki("addShadingPattern()"),Pa(St,Pt),this},$t.beginTilingPattern=function(St){Ki("beginTilingPattern()"),Ja(St.boundingBox[0],St.boundingBox[1],St.boundingBox[2]-St.boundingBox[0],St.boundingBox[3]-St.boundingBox[1],St.matrix)},$t.endTilingPattern=function(St,Pt){Ki("endTilingPattern()"),Pt.stream=Ji[_r].join(`
|
|
|
`),Pa(St,Pt),Hn.publish("endTilingPattern",Pt),mi.pop().restore()};var Ra=$t.__private__.newObject=function(){var St=so();return La(St,!0),St},so=$t.__private__.newObjectDeferred=function(){return zn++,qn[zn]=function(){return Li},zn},La=function(Pt,Kr){return Kr=typeof Kr=="boolean"&&Kr,qn[Pt]=Li,Kr&&Sn(Pt+" 0 obj"),Pt},lo=$t.__private__.newAdditionalObject=function(){var St={objId:so(),content:""};return Ri.push(St),St},So=so(),Xt=so(),zr=$t.__private__.decodeColorString=function(St){var Pt=St.split(" ");if(Pt.length!==2||Pt[1]!=="g"&&Pt[1]!=="G")Pt.length===5&&(Pt[4]==="k"||Pt[4]==="K")&&(Pt=[(1-Pt[0])*(1-Pt[3]),(1-Pt[1])*(1-Pt[3]),(1-Pt[2])*(1-Pt[3]),"r"]);else{var Kr=parseFloat(Pt[0]);Pt=[Kr,Kr,Kr,"r"]}for(var Pn="#",ut=0;ut<3;ut++)Pn+=("0"+Math.floor(255*parseFloat(Pt[ut])).toString(16)).slice(-2);return Pn},un=$t.__private__.encodeColorString=function(St){var Pt;typeof St=="string"&&(St={ch1:St});var Kr=St.ch1,Pn=St.ch2,ut=St.ch3,ne=St.ch4,pe=St.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Kr=="string"&&Kr.charAt(0)!=="#"){var be=new l(Kr);if(be.ok)Kr=be.toHex();else if(!/^\d*\.?\d*$/.test(Kr))throw new Error('Invalid color "'+Kr+'" passed to jsPDF.encodeColorString.')}if(typeof Kr=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Kr)&&(Kr="#"+Kr[1]+Kr[1]+Kr[2]+Kr[2]+Kr[3]+Kr[3]),typeof Kr=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Kr)){var je=parseInt(Kr.substr(1),16);Kr=je>>16&255,Pn=je>>8&255,ut=255&je}if(Pn===void 0||ne===void 0&&Kr===Pn&&Pn===ut)if(typeof Kr=="string")Pt=Kr+" "+pe[0];else switch(St.precision){case 2:Pt=Tn(Kr/255)+" "+pe[0];break;case 3:default:Pt=Mr(Kr/255)+" "+pe[0]}else if(ne===void 0||C()(ne)==="object"){if(ne&&!isNaN(ne.a)&&ne.a===0)return Pt=["1.","1.","1.",pe[1]].join(" ");if(typeof Kr=="string")Pt=[Kr,Pn,ut,pe[1]].join(" ");else switch(St.precision){case 2:Pt=[Tn(Kr/255),Tn(Pn/255),Tn(ut/255),pe[1]].join(" ");break;default:case 3:Pt=[Mr(Kr/255),Mr(Pn/255),Mr(ut/255),pe[1]].join(" ")}}else if(typeof Kr=="string")Pt=[Kr,Pn,ut,ne,pe[2]].join(" ");else switch(St.precision){case 2:Pt=[Tn(Kr),Tn(Pn),Tn(ut),Tn(ne),pe[2]].join(" ");break;case 3:default:Pt=[Mr(Kr),Mr(Pn),Mr(ut),Mr(ne),pe[2]].join(" ")}return Pt},vn=$t.__private__.getFilters=function(){return Ze},ni=$t.__private__.putStream=function(St){var Pt=(St=St||{}).data||"",Kr=St.filters||vn(),Pn=St.alreadyAppliedFilters||[],ut=St.addLength1||!1,ne=Pt.length,pe=St.objectId,be=function(Qn){return Qn};if(Dr!==null&&pe===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");Dr!==null&&(be=Gi.encryptor(pe,0));var je={};Kr===!0&&(Kr=["FlateEncode"]);var ht=St.additionalKeyValues||[],Vt=(je=j.API.processDataByFilters!==void 0?j.API.processDataByFilters(Pt,Kr):{data:Pt,reverseChain:[]}).reverseChain+(Array.isArray(Pn)?Pn.join(" "):Pn.toString());if(je.data.length!==0&&(ht.push({key:"Length",value:je.data.length}),ut===!0&&ht.push({key:"Length1",value:ne})),Vt.length!=0)if(Vt.split("/").length-1==1)ht.push({key:"Filter",value:Vt});else{ht.push({key:"Filter",value:"["+Vt+"]"});for(var Or=0;Or<ht.length;Or+=1)if(ht[Or].key==="DecodeParms"){for(var Yr=[],cn=0;cn<je.reverseChain.split("/").length-1;cn+=1)Yr.push("null");Yr.push(ht[Or].value),ht[Or].value="["+Yr.join(" ")+"]"}}Sn("<<");for(var jn=0;jn<ht.length;jn++)Sn("/"+ht[jn].key+" "+ht[jn].value);Sn(">>"),je.data.length!==0&&(Sn("stream"),Sn(be(je.data)),Sn("endstream"))},li=$t.__private__.putPage=function(St){var Pt=St.number,Kr=St.data,Pn=St.objId,ut=St.contentsObjId;La(Pn,!0),Sn("<</Type /Page"),Sn("/Parent "+St.rootDictionaryObjId+" 0 R"),Sn("/Resources "+St.resourceDictionaryObjId+" 0 R"),Sn("/MediaBox ["+parseFloat(Di(St.mediaBox.bottomLeftX))+" "+parseFloat(Di(St.mediaBox.bottomLeftY))+" "+Di(St.mediaBox.topRightX)+" "+Di(St.mediaBox.topRightY)+"]"),St.cropBox!==null&&Sn("/CropBox ["+Di(St.cropBox.bottomLeftX)+" "+Di(St.cropBox.bottomLeftY)+" "+Di(St.cropBox.topRightX)+" "+Di(St.cropBox.topRightY)+"]"),St.bleedBox!==null&&Sn("/BleedBox ["+Di(St.bleedBox.bottomLeftX)+" "+Di(St.bleedBox.bottomLeftY)+" "+Di(St.bleedBox.topRightX)+" "+Di(St.bleedBox.topRightY)+"]"),St.trimBox!==null&&Sn("/TrimBox ["+Di(St.trimBox.bottomLeftX)+" "+Di(St.trimBox.bottomLeftY)+" "+Di(St.trimBox.topRightX)+" "+Di(St.trimBox.topRightY)+"]"),St.artBox!==null&&Sn("/ArtBox ["+Di(St.artBox.bottomLeftX)+" "+Di(St.artBox.bottomLeftY)+" "+Di(St.artBox.topRightX)+" "+Di(St.artBox.topRightY)+"]"),typeof St.userUnit=="number"&&St.userUnit!==1&&Sn("/UserUnit "+St.userUnit),Hn.publish("putPage",{objId:Pn,pageContext:Bn[Pt],pageNumber:Pt,page:Kr}),Sn("/Contents "+ut+" 0 R"),Sn(">>"),Sn("endobj");var ne=Kr.join(`
|
|
|
`);return On===Rr.ADVANCED&&(ne+=`
|
|
|
Q`),La(ut,!0),ni({data:ne,filters:vn(),objectId:ut}),Sn("endobj"),Pn},fi=$t.__private__.putPages=function(){var St,Pt,Kr=[];for(St=1;St<=on;St++)Bn[St].objId=so(),Bn[St].contentsObjId=so();for(St=1;St<=on;St++)Kr.push(li({number:St,data:Ji[St],objId:Bn[St].objId,contentsObjId:Bn[St].contentsObjId,mediaBox:Bn[St].mediaBox,cropBox:Bn[St].cropBox,bleedBox:Bn[St].bleedBox,trimBox:Bn[St].trimBox,artBox:Bn[St].artBox,userUnit:Bn[St].userUnit,rootDictionaryObjId:So,resourceDictionaryObjId:Xt}));La(So,!0),Sn("<</Type /Pages");var Pn="/Kids [";for(Pt=0;Pt<on;Pt++)Pn+=Kr[Pt]+" 0 R ";Sn(Pn+"]"),Sn("/Count "+on),Sn(">>"),Sn("endobj"),Hn.publish("postPutPages")},di=function(Pt){Hn.publish("putFont",{font:Pt,out:Sn,newObject:Ra,putStream:ni}),Pt.isAlreadyPutted!==!0&&(Pt.objectNumber=Ra(),Sn("<<"),Sn("/Type /Font"),Sn("/BaseFont /"+D(Pt.postScriptName)),Sn("/Subtype /Type1"),typeof Pt.encoding=="string"&&Sn("/Encoding /"+Pt.encoding),Sn("/FirstChar 32"),Sn("/LastChar 255"),Sn(">>"),Sn("endobj"))},Yt=function(){for(var Pt in _o)_o.hasOwnProperty(Pt)&&(Sr===!1||Sr===!0&&Br.hasOwnProperty(Pt))&&di(_o[Pt])},Et=function(Pt){Pt.objectNumber=Ra();var Kr=[];Kr.push({key:"Type",value:"/XObject"}),Kr.push({key:"Subtype",value:"/Form"}),Kr.push({key:"BBox",value:"["+[Di(Pt.x),Di(Pt.y),Di(Pt.x+Pt.width),Di(Pt.y+Pt.height)].join(" ")+"]"}),Kr.push({key:"Matrix",value:"["+Pt.matrix.toString()+"]"});var Pn=Pt.pages[1].join(`
|
|
|
`);ni({data:Pn,additionalKeyValues:Kr,objectId:Pt.objectNumber}),Sn("endobj")},yr=function(){for(var Pt in Ci)Ci.hasOwnProperty(Pt)&&Et(Ci[Pt])},ct=function(Pt,Kr){var Pn,ut=[],ne=1/(Kr-1);for(Pn=0;Pn<1;Pn+=ne)ut.push(Pn);if(ut.push(1),Pt[0].offset!=0){var pe={offset:0,color:Pt[0].color};Pt.unshift(pe)}if(Pt[Pt.length-1].offset!=1){var be={offset:1,color:Pt[Pt.length-1].color};Pt.push(be)}for(var je="",ht=0,Vt=0;Vt<ut.length;Vt++){for(Pn=ut[Vt];Pn>Pt[ht+1].offset;)ht++;var Or=Pt[ht].offset,Yr=(Pn-Or)/(Pt[ht+1].offset-Or),cn=Pt[ht].color,jn=Pt[ht+1].color;je+=Fn(Math.round((1-Yr)*cn[0]+Yr*jn[0]).toString(16))+Fn(Math.round((1-Yr)*cn[1]+Yr*jn[1]).toString(16))+Fn(Math.round((1-Yr)*cn[2]+Yr*jn[2]).toString(16))}return je.trim()},Zt=function(Pt,Kr){Kr||(Kr=21);var Pn=Ra(),ut=ct(Pt.colors,Kr),ne=[];ne.push({key:"FunctionType",value:"0"}),ne.push({key:"Domain",value:"[0.0 1.0]"}),ne.push({key:"Size",value:"["+Kr+"]"}),ne.push({key:"BitsPerSample",value:"8"}),ne.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ne.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ni({data:ut,additionalKeyValues:ne,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Pn}),Sn("endobj"),Pt.objectNumber=Ra(),Sn("<< /ShadingType "+Pt.type),Sn("/ColorSpace /DeviceRGB");var pe="/Coords ["+Di(parseFloat(Pt.coords[0]))+" "+Di(parseFloat(Pt.coords[1]))+" ";Pt.type===2?pe+=Di(parseFloat(Pt.coords[2]))+" "+Di(parseFloat(Pt.coords[3])):pe+=Di(parseFloat(Pt.coords[2]))+" "+Di(parseFloat(Pt.coords[3]))+" "+Di(parseFloat(Pt.coords[4]))+" "+Di(parseFloat(Pt.coords[5])),Sn(pe+="]"),Pt.matrix&&Sn("/Matrix ["+Pt.matrix.toString()+"]"),Sn("/Function "+Pn+" 0 R"),Sn("/Extend [true true]"),Sn(">>"),Sn("endobj")},dr=function(Pt,Kr){var Pn=so(),ut=Ra();Kr.push({resourcesOid:Pn,objectOid:ut}),Pt.objectNumber=ut;var ne=[];ne.push({key:"Type",value:"/Pattern"}),ne.push({key:"PatternType",value:"1"}),ne.push({key:"PaintType",value:"1"}),ne.push({key:"TilingType",value:"1"}),ne.push({key:"BBox",value:"["+Pt.boundingBox.map(Di).join(" ")+"]"}),ne.push({key:"XStep",value:Di(Pt.xStep)}),ne.push({key:"YStep",value:Di(Pt.yStep)}),ne.push({key:"Resources",value:Pn+" 0 R"}),Pt.matrix&&ne.push({key:"Matrix",value:"["+Pt.matrix.toString()+"]"}),ni({data:Pt.stream,additionalKeyValues:ne,objectId:Pt.objectNumber}),Sn("endobj")},Lr=function(Pt){var Kr;for(Kr in Nr)Nr.hasOwnProperty(Kr)&&(Nr[Kr]instanceof U?Zt(Nr[Kr]):Nr[Kr]instanceof B&&dr(Nr[Kr],Pt))},Jr=function(Pt){for(var Kr in Pt.objectNumber=Ra(),Sn("<<"),Pt)switch(Kr){case"opacity":Sn("/ca "+Tn(Pt[Kr]));break;case"stroke-opacity":Sn("/CA "+Tn(Pt[Kr]))}Sn(">>"),Sn("endobj")},fn=function(){var Pt;for(Pt in En)En.hasOwnProperty(Pt)&&Jr(En[Pt])},Cn=function(){for(var Pt in Sn("/XObject <<"),Ci)Ci.hasOwnProperty(Pt)&&Ci[Pt].objectNumber>=0&&Sn("/"+Pt+" "+Ci[Pt].objectNumber+" 0 R");Hn.publish("putXobjectDict"),Sn(">>")},Nn=function(){Gi.oid=Ra(),Sn("<<"),Sn("/Filter /Standard"),Sn("/V "+Gi.v),Sn("/R "+Gi.r),Sn("/U <"+Gi.toHexString(Gi.U)+">"),Sn("/O <"+Gi.toHexString(Gi.O)+">"),Sn("/P "+Gi.P),Sn(">>"),Sn("endobj")},Zn=function(){for(var Pt in Sn("/Font <<"),_o)_o.hasOwnProperty(Pt)&&(Sr===!1||Sr===!0&&Br.hasOwnProperty(Pt))&&Sn("/"+Pt+" "+_o[Pt].objectNumber+" 0 R");Sn(">>")},ii=function(){if(Object.keys(Nr).length>0){for(var Pt in Sn("/Shading <<"),Nr)Nr.hasOwnProperty(Pt)&&Nr[Pt]instanceof U&&Nr[Pt].objectNumber>=0&&Sn("/"+Pt+" "+Nr[Pt].objectNumber+" 0 R");Hn.publish("putShadingPatternDict"),Sn(">>")}},pi=function(Pt){if(Object.keys(Nr).length>0){for(var Kr in Sn("/Pattern <<"),Nr)Nr.hasOwnProperty(Kr)&&Nr[Kr]instanceof $t.TilingPattern&&Nr[Kr].objectNumber>=0&&Nr[Kr].objectNumber<Pt&&Sn("/"+Kr+" "+Nr[Kr].objectNumber+" 0 R");Hn.publish("putTilingPatternDict"),Sn(">>")}},ri=function(){if(Object.keys(En).length>0){var Pt;for(Pt in Sn("/ExtGState <<"),En)En.hasOwnProperty(Pt)&&En[Pt].objectNumber>=0&&Sn("/"+Pt+" "+En[Pt].objectNumber+" 0 R");Hn.publish("putGStateDict"),Sn(">>")}},ji=function(Pt){La(Pt.resourcesOid,!0),Sn("<<"),Sn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Zn(),ii(),pi(Pt.objectOid),ri(),Cn(),Sn(">>"),Sn("endobj")},ei=function(){var Pt=[];Yt(),fn(),yr(),Lr(Pt),Hn.publish("putResources"),Pt.forEach(ji),ji({resourcesOid:Xt,objectOid:Number.MAX_SAFE_INTEGER}),Hn.publish("postPutResources")},Je=function(){Hn.publish("putAdditionalObjects");for(var Pt=0;Pt<Ri.length;Pt++){var Kr=Ri[Pt];La(Kr.objId,!0),Sn(Kr.content),Sn("endobj")}Hn.publish("postPutAdditionalObjects")},Gt=function(Pt){Bo[Pt.fontName]=Bo[Pt.fontName]||{},Bo[Pt.fontName][Pt.fontStyle]=Pt.id},vr=function(Pt,Kr,Pn,ut,ne){var pe={id:"F"+(Object.keys(_o).length+1).toString(10),postScriptName:Pt,fontName:Kr,fontStyle:Pn,encoding:ut,isStandardFont:ne||!1,metadata:{}};return Hn.publish("addFont",{font:pe,instance:this}),_o[pe.id]=pe,Gt(pe),pe.id},fr=function(Pt){for(var Kr=0,Pn=Yi.length;Kr<Pn;Kr++){var ut=vr.call(this,Pt[Kr][0],Pt[Kr][1],Pt[Kr][2],Yi[Kr][3],!0);Sr===!1&&(Br[ut]=!0);var ne=Pt[Kr][0].split("-");Gt({id:ut,fontName:ne[0],fontStyle:ne[1]||""})}Hn.publish("addFonts",{fonts:_o,dictionary:Bo})},Gr=function(Pt){return Pt.foo=function(){try{return Pt.apply(this,arguments)}catch(ut){var Kr=ut.stack||"";~Kr.indexOf(" at ")&&(Kr=Kr.split(" at ")[1]);var Pn="Error in function "+Kr.split(`
|
|
|
`)[0].split("<")[0]+": "+ut.message;if(!S.console)throw new Error(Pn);S.console.error(Pn,ut),S.alert&&alert(Pn)}},Pt.foo.bar=Pt,Pt.foo},Pr=function(Pt,Kr){var Pn,ut,ne,pe,be,je,ht,Vt,Or;if(ne=(Kr=Kr||{}).sourceEncoding||"Unicode",be=Kr.outputEncoding,(Kr.autoencode||be)&&_o[Oo].metadata&&_o[Oo].metadata[ne]&&_o[Oo].metadata[ne].encoding&&(pe=_o[Oo].metadata[ne].encoding,!be&&_o[Oo].encoding&&(be=_o[Oo].encoding),!be&&pe.codePages&&(be=pe.codePages[0]),typeof be=="string"&&(be=pe[be]),be)){for(ht=!1,je=[],Pn=0,ut=Pt.length;Pn<ut;Pn++)(Vt=be[Pt.charCodeAt(Pn)])?je.push(String.fromCharCode(Vt)):je.push(Pt[Pn]),je[Pn].charCodeAt(0)>>8&&(ht=!0);Pt=je.join("")}for(Pn=Pt.length;ht===void 0&&Pn!==0;)Pt.charCodeAt(Pn-1)>>8&&(ht=!0),Pn--;if(!ht)return Pt;for(je=Kr.noBOM?[]:[254,255],Pn=0,ut=Pt.length;Pn<ut;Pn++){if((Or=(Vt=Pt.charCodeAt(Pn))>>8)>>8)throw new Error("Character at position "+Pn+" of string '"+Pt+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");je.push(Or),je.push(Vt-(Or<<8))}return String.fromCharCode.apply(void 0,je)},hr=$t.__private__.pdfEscape=$t.pdfEscape=function(St,Pt){return Pr(St,Pt).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},An=$t.__private__.beginPage=function(St){Ji[++on]=[],Bn[on]={objId:0,contentsObjId:0,userUnit:Number(mt),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(St[0]),topRightY:Number(St[1])}},Kn(on),bi(Ji[_r])},br=function(Pt,Kr){var Pn,ut,ne;switch(Ne=Kr||Ne,typeof Pt=="string"&&(Pn=an(Pt.toLowerCase()),Array.isArray(Pn)&&(ut=Pn[0],ne=Pn[1])),Array.isArray(Pt)&&(ut=Pt[0]*sa,ne=Pt[1]*sa),isNaN(ut)&&(ut=Ye[0],ne=Ye[1]),(ut>14400||ne>14400)&&(f.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ut=Math.min(14400,ut),ne=Math.min(14400,ne)),Ye=[ut,ne],Ne.substr(0,1)){case"l":ne>ut&&(Ye=[ne,ut]);break;case"p":ut>ne&&(Ye=[ne,ut])}An(Ye),No(Va),Sn(Ea),Qo!==0&&Sn(Qo+" J"),Yo!==0&&Sn(Yo+" j"),Hn.publish("addPage",{pageNumber:on})},pn=function(Pt){Pt>0&&Pt<=on&&(Ji.splice(Pt,1),Bn.splice(Pt,1),on--,_r>on&&(_r=on),this.setPage(_r))},Kn=function(Pt){Pt>0&&Pt<=on&&(_r=Pt)},Wn=$t.__private__.getNumberOfPages=$t.getNumberOfPages=function(){return Ji.length-1},Ln=function(Pt,Kr,Pn){var ut,ne=void 0;return Pn=Pn||{},Pt=Pt!==void 0?Pt:_o[Oo].fontName,Kr=Kr!==void 0?Kr:_o[Oo].fontStyle,ut=Pt.toLowerCase(),Bo[ut]!==void 0&&Bo[ut][Kr]!==void 0?ne=Bo[ut][Kr]:Bo[Pt]!==void 0&&Bo[Pt][Kr]!==void 0?ne=Bo[Pt][Kr]:Pn.disableWarning===!1&&f.warn("Unable to look up font label for font '"+Pt+"', '"+Kr+"'. Refer to getFontList() for available fonts."),ne||Pn.noFallback||(ne=Bo.times[Kr])==null&&(ne=Bo.times.normal),ne},$n=$t.__private__.putInfo=function(){var St=Ra(),Pt=function(ut){return ut};for(var Kr in Dr!==null&&(Pt=Gi.encryptor(St,0)),Sn("<<"),Sn("/Producer ("+hr(Pt("jsPDF "+j.version))+")"),yo)yo.hasOwnProperty(Kr)&&yo[Kr]&&Sn("/"+Kr.substr(0,1).toUpperCase()+Kr.substr(1)+" ("+hr(Pt(yo[Kr]))+")");Sn("/CreationDate ("+hr(Pt(wr))+")"),Sn(">>"),Sn("endobj")},Un=$t.__private__.putCatalog=function(St){var Pt=(St=St||{}).rootDictionaryObjId||So;switch(Ra(),Sn("<<"),Sn("/Type /Catalog"),Sn("/Pages "+Pt+" 0 R"),Hi||(Hi="fullwidth"),Hi){case"fullwidth":Sn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Sn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Sn("/OpenAction [3 0 R /Fit]");break;case"original":Sn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Kr=""+Hi;Kr.substr(Kr.length-1)==="%"&&(Hi=parseInt(Hi)/100),typeof Hi=="number"&&Sn("/OpenAction [3 0 R /XYZ null null "+Tn(Hi)+"]")}switch(po||(po="continuous"),po){case"continuous":Sn("/PageLayout /OneColumn");break;case"single":Sn("/PageLayout /SinglePage");break;case"two":case"twoleft":Sn("/PageLayout /TwoColumnLeft");break;case"tworight":Sn("/PageLayout /TwoColumnRight")}Qa&&Sn("/PageMode /"+Qa),Hn.publish("putCatalog"),Sn(">>"),Sn("endobj")},ti=$t.__private__.putTrailer=function(){Sn("trailer"),Sn("<<"),Sn("/Size "+(zn+1)),Sn("/Root "+zn+" 0 R"),Sn("/Info "+(zn-1)+" 0 R"),Dr!==null&&Sn("/Encrypt "+Gi.oid+" 0 R"),Sn("/ID [ <"+Vr+"> <"+Vr+"> ]"),Sn(">>")},Gn=$t.__private__.putHeader=function(){Sn("%PDF-"+gn),Sn("%\xBA\xDF\xAC\xE0")},wi=$t.__private__.putXRef=function(){var St="0000000000";Sn("xref"),Sn("0 "+(zn+1)),Sn("0000000000 65535 f ");for(var Pt=1;Pt<=zn;Pt++)typeof qn[Pt]=="function"?Sn((St+qn[Pt]()).slice(-10)+" 00000 n "):qn[Pt]!==void 0?Sn((St+qn[Pt]).slice(-10)+" 00000 n "):Sn("0000000000 00000 n ")},Ei=$t.__private__.buildDocument=function(){qa(),bi(Oi),Hn.publish("buildDocument"),Gn(),fi(),Je(),ei(),Dr!==null&&Nn(),$n(),Un();var St=Li;return wi(),ti(),Sn("startxref"),Sn(""+St),Sn("%%EOF"),bi(Ji[_r]),Oi.join(`
|
|
|
`)},Zi=$t.__private__.getBlob=function(St){return new Blob([oa(St)],{type:"application/pdf"})},ua=$t.output=$t.__private__.output=Gr(function(St,Pt){switch(typeof(Pt=Pt||{})=="string"?Pt={filename:Pt}:Pt.filename=Pt.filename||"generated.pdf",St){case void 0:return Ei();case"save":$t.save(Pt.filename);break;case"arraybuffer":return oa(Ei());case"blob":return Zi(Ei());case"bloburi":case"bloburl":if(S.URL!==void 0&&typeof S.URL.createObjectURL=="function")return S.URL&&S.URL.createObjectURL(Zi(Ei()))||void 0;f.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Kr="",Pn=Ei();try{Kr=n(Pn)}catch(cn){Kr=n(unescape(encodeURIComponent(Pn)))}return"data:application/pdf;filename="+Pt.filename+";base64,"+Kr;case"pdfobjectnewwindow":if(Object.prototype.toString.call(S)==="[object Window]"){var ut="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ne=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';Pt.pdfObjectUrl&&(ut=Pt.pdfObjectUrl,ne="");var pe='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+ut+'"'+ne+'></script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Pt)+");</script></body></html>",be=S.open();return be!==null&&be.document.write(pe),be}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(S)==="[object Window]"){var je='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(Pt.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Pt.filename+'" width="500px" height="400px" /></body></html>',ht=S.open();if(ht!==null){ht.document.write(je);var Vt=this;ht.document.documentElement.querySelector("#pdfViewer").onload=function(){ht.document.title=Pt.filename,ht.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Vt.output("bloburl"))}}return ht}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(S)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Or='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",Pt)+'"></iframe></body></html>',Yr=S.open();if(Yr!==null&&(Yr.document.write(Or),Yr.document.title=Pt.filename),Yr||typeof safari=="undefined")return Yr;break;case"datauri":case"dataurl":return S.document.location.href=this.output("datauristring",Pt);default:return null}}),Xi=function(Pt){return Array.isArray(Ii)===!0&&Ii.indexOf(Pt)>-1};switch(Fe){case"pt":sa=1;break;case"mm":sa=72/25.4;break;case"cm":sa=72/2.54;break;case"in":sa=72;break;case"px":sa=Xi("px_scaling")==1?.75:96/72;break;case"pc":case"em":sa=12;break;case"ex":sa=6;break;default:if(typeof Fe!="number")throw new Error("Invalid unit: "+Fe);sa=Fe}var Gi=null;Ti(),qr();var wa=function(Pt){return Dr!==null?Gi.encryptor(Pt,0):function(Kr){return Kr}},na=$t.__private__.getPageInfo=$t.getPageInfo=function(St){if(isNaN(St)||St%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Bn[St].objId,pageNumber:St,pageContext:Bn[St]}},mo=$t.__private__.getPageInfoByObjId=function(St){if(isNaN(St)||St%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Pt in Bn)if(Bn[Pt].objId===St)break;return na(Pt)},Ca=$t.__private__.getCurrentPageInfo=$t.getCurrentPageInfo=function(){return{objId:Bn[_r].objId,pageNumber:_r,pageContext:Bn[_r]}};$t.addPage=function(){return br.apply(this,arguments),this},$t.setPage=function(){return Kn.apply(this,arguments),bi.call(this,Ji[_r]),this},$t.insertPage=function(St){return this.addPage(),this.movePage(_r,St),this},$t.movePage=function(St,Pt){var Kr,Pn;if(St>Pt){Kr=Ji[St],Pn=Bn[St];for(var ut=St;ut>Pt;ut--)Ji[ut]=Ji[ut-1],Bn[ut]=Bn[ut-1];Ji[Pt]=Kr,Bn[Pt]=Pn,this.setPage(Pt)}else if(St<Pt){Kr=Ji[St],Pn=Bn[St];for(var ne=St;ne<Pt;ne++)Ji[ne]=Ji[ne+1],Bn[ne]=Bn[ne+1];Ji[Pt]=Kr,Bn[Pt]=Pn,this.setPage(Pt)}return this},$t.deletePage=function(){return pn.apply(this,arguments),this},$t.__private__.text=$t.text=function(St,Pt,Kr,Pn,ut){var ne,pe,be,je,ht,Vt,Or,Yr,cn,jn=(Pn=Pn||{}).scope||this;if(typeof St=="number"&&typeof Pt=="number"&&(typeof Kr=="string"||Array.isArray(Kr))){var ai=Kr;Kr=Pt,Pt=St,St=ai}if(arguments[3]instanceof yi==!1?(be=arguments[4],je=arguments[5],C()(Or=arguments[3])==="object"&&Or!==null||(typeof be=="string"&&(je=be,be=null),typeof Or=="string"&&(je=Or,Or=null),typeof Or=="number"&&(be=Or,Or=null),Pn={flags:Or,angle:be,align:je})):(Ki("The transform parameter of text() with a Matrix value"),cn=ut),isNaN(Pt)||isNaN(Kr)||St==null)throw new Error("Invalid arguments passed to jsPDF.text");if(St.length===0)return jn;var Qn="",Ni=!1,Vi=typeof Pn.lineHeightFactor=="number"?Pn.lineHeightFactor:Sa,Ta=jn.internal.scaleFactor;function Ga(Rs){return Rs=Rs.split(" ").join(Array(Pn.TabLen||9).join(" ")),hr(Rs,Or)}function ao(Rs){for(var bs,Ms=Rs.concat(),Ts=[],Zs=Ms.length;Zs--;)typeof(bs=Ms.shift())=="string"?Ts.push(bs):Array.isArray(Rs)&&(bs.length===1||bs[1]===void 0&&bs[2]===void 0)?Ts.push(bs[0]):Ts.push([bs[0],bs[1],bs[2]]);return Ts}function Do(Rs,bs){var Ms;if(typeof Rs=="string")Ms=bs(Rs)[0];else if(Array.isArray(Rs)){for(var Ts,Zs,hl=Rs.concat(),wl=[],Kl=hl.length;Kl--;)typeof(Ts=hl.shift())=="string"?wl.push(bs(Ts)[0]):Array.isArray(Ts)&&typeof Ts[0]=="string"&&(Zs=bs(Ts[0],Ts[1],Ts[2]),wl.push([Zs[0],Zs[1],Zs[2]]));Ms=wl}return Ms}var fo=!1,as=!0;if(typeof St=="string")fo=!0;else if(Array.isArray(St)){var io=St.concat();pe=[];for(var Xa,Ya=io.length;Ya--;)(typeof(Xa=io.shift())!="string"||Array.isArray(Xa)&&typeof Xa[0]!="string")&&(as=!1);fo=as}if(fo===!1)throw new Error('Type of text must be string or Array. "'+St+'" is not recognized.');typeof St=="string"&&(St=St.match(/[\r?\n]/)?St.split(/\r\n|\r|\n/g):[St]);var ka=ca/jn.internal.scaleFactor,os=ka*(Vi-1);switch(Pn.baseline){case"bottom":Kr-=os;break;case"top":Kr+=ka-os;break;case"hanging":Kr+=ka-2*os;break;case"middle":Kr+=ka/2-os}if((Vt=Pn.maxWidth||0)>0&&(typeof St=="string"?St=jn.splitTextToSize(St,Vt):Object.prototype.toString.call(St)==="[object Array]"&&(St=St.reduce(function(Rs,bs){return Rs.concat(jn.splitTextToSize(bs,Vt))},[]))),ne={text:St,x:Pt,y:Kr,options:Pn,mutex:{pdfEscape:hr,activeFontKey:Oo,fonts:_o,activeFontSize:ca}},Hn.publish("preProcessText",ne),St=ne.text,be=(Pn=ne.options).angle,cn instanceof yi==!1&&be&&typeof be=="number"){be*=Math.PI/180,Pn.rotationDirection===0&&(be=-be),On===Rr.ADVANCED&&(be=-be);var Es=Math.cos(be),qo=Math.sin(be);cn=new yi(Es,qo,-qo,Es,0,0)}else be&&be instanceof yi&&(cn=be);On!==Rr.ADVANCED||cn||(cn=ha),(ht=Pn.charSpace||Vo)!==void 0&&(Qn+=Di(mr(ht))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(Yr=Pn.horizontalScale)!==void 0&&(Qn+=Di(100*Yr)+` Tz
|
|
|
`),Pn.lang;var pa=-1,ls=Pn.renderingMode!==void 0?Pn.renderingMode:Pn.stroke,Os=jn.internal.getCurrentPageInfo().pageContext;switch(ls){case 0:case!1:case"fill":pa=0;break;case 1:case!0:case"stroke":pa=1;break;case 2:case"fillThenStroke":pa=2;break;case 3:case"invisible":pa=3;break;case 4:case"fillAndAddForClipping":pa=4;break;case 5:case"strokeAndAddPathForClipping":pa=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":pa=6;break;case 7:case"addToPathForClipping":pa=7}var ys=Os.usedRenderingMode!==void 0?Os.usedRenderingMode:-1;pa!==-1?Qn+=pa+` Tr
|
|
|
`:ys!==-1&&(Qn+=`0 Tr
|
|
|
`),pa!==-1&&(Os.usedRenderingMode=pa),je=Pn.align||"left";var ms,ws=ca*Vi,Pl=jn.internal.pageSize.getWidth(),ml=_o[Oo];ht=Pn.charSpace||Vo,Vt=Pn.maxWidth||0,Or=Object.assign({autoencode:!0,noBOM:!0},Pn.flags);var Ws=[];if(Object.prototype.toString.call(St)==="[object Array]"){var fs;pe=ao(St),je!=="left"&&(ms=pe.map(function(Rs){return jn.getStringUnitWidth(Rs,{font:ml,charSpace:ht,fontSize:ca,doKerning:!1})*ca/Ta}));var _s,gl=0;if(je==="right"){Pt-=ms[0],St=[],Ya=pe.length;for(var Bs=0;Bs<Ya;Bs++)Bs===0?(_s=co(Pt),fs=fa(Kr)):(_s=mr(gl-ms[Bs]),fs=-ws),St.push([pe[Bs],_s,fs]),gl=ms[Bs]}else if(je==="center"){Pt-=ms[0]/2,St=[],Ya=pe.length;for(var Us=0;Us<Ya;Us++)Us===0?(_s=co(Pt),fs=fa(Kr)):(_s=mr((gl-ms[Us])/2),fs=-ws),St.push([pe[Us],_s,fs]),gl=ms[Us]}else if(je==="left"){St=[],Ya=pe.length;for(var Qs=0;Qs<Ya;Qs++)St.push(pe[Qs])}else{if(je!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');St=[],Ya=pe.length,Vt=Vt!==0?Vt:Pl;for(var al=0;al<Ya;al++)fs=al===0?fa(Kr):-ws,_s=al===0?co(Pt):0,al<Ya-1?Ws.push(Di(mr((Vt-ms[al])/(pe[al].split(" ").length-1)))):Ws.push(0),St.push([pe[al],_s,fs])}}var El=typeof Pn.R2L=="boolean"?Pn.R2L:Da;El===!0&&(St=Do(St,function(Rs,bs,Ms){return[Rs.split("").reverse().join(""),bs,Ms]})),ne={text:St,x:Pt,y:Kr,options:Pn,mutex:{pdfEscape:hr,activeFontKey:Oo,fonts:_o,activeFontSize:ca}},Hn.publish("postProcessText",ne),St=ne.text,Ni=ne.mutex.isHex||!1;var bl=_o[Oo].encoding;bl!=="WinAnsiEncoding"&&bl!=="StandardEncoding"||(St=Do(St,function(Rs,bs,Ms){return[Ga(Rs),bs,Ms]})),pe=ao(St),St=[];for(var ol,Gs,zs,vl=0,Xs=1,sl=Array.isArray(pe[0])?Xs:vl,dl="",rl=function(bs,Ms,Ts){var Zs="";return Ts instanceof yi?(Ts=typeof Pn.angle=="number"?da(Ts,new yi(1,0,0,1,bs,Ms)):da(new yi(1,0,0,1,bs,Ms),Ts),On===Rr.ADVANCED&&(Ts=da(new yi(1,0,0,-1,0,0),Ts)),Zs=Ts.join(" ")+` Tm
|
|
|
`):Zs=Di(bs)+" "+Di(Ms)+` Td
|
|
|
`,Zs},nl=0;nl<pe.length;nl++){switch(dl="",sl){case Xs:zs=(Ni?"<":"(")+pe[nl][0]+(Ni?">":")"),ol=parseFloat(pe[nl][1]),Gs=parseFloat(pe[nl][2]);break;case vl:zs=(Ni?"<":"(")+pe[nl]+(Ni?">":")"),ol=co(Pt),Gs=fa(Kr)}Ws!==void 0&&Ws[nl]!==void 0&&(dl=Ws[nl]+` Tw
|
|
|
`),nl===0?St.push(dl+rl(ol,Gs,cn)+zs):sl===vl?St.push(dl+zs):sl===Xs&&St.push(dl+rl(ol,Gs,cn)+zs)}St=sl===vl?St.join(` Tj
|
|
|
T* `):St.join(` Tj
|
|
|
`),St+=` Tj
|
|
|
`;var Tl=`BT
|
|
|
/`;return Tl+=Oo+" "+ca+` Tf
|
|
|
`,Tl+=Di(ca*Vi)+` TL
|
|
|
`,Tl+=za+`
|
|
|
`,Tl+=Qn,Tl+=St,Sn(Tl+="ET"),Br[Oo]=!0,jn};var qi=$t.__private__.clip=$t.clip=function(St){return Sn(St==="evenodd"?"W*":"W"),this};$t.clipEvenOdd=function(){return qi("evenodd")},$t.__private__.discardPath=$t.discardPath=function(){return Sn("n"),this};var aa=$t.__private__.isValidStyle=function(St){var Pt=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(St)!==-1&&(Pt=!0),Pt};$t.__private__.setDefaultPathOperation=$t.setDefaultPathOperation=function(St){return aa(St)&&(Jt=St),this};var $i=$t.__private__.getStyle=$t.getStyle=function(St){var Pt=Jt;switch(St){case"D":case"S":Pt="S";break;case"F":Pt="f";break;case"FD":case"DF":Pt="B";break;case"f":case"f*":case"B":case"B*":Pt=St}return Pt},Aa=$t.close=function(){return Sn("h"),this};$t.stroke=function(){return Sn("S"),this},$t.fill=function(St){return ya("f",St),this},$t.fillEvenOdd=function(St){return ya("f*",St),this},$t.fillStroke=function(St){return ya("B",St),this},$t.fillStrokeEvenOdd=function(St){return ya("B*",St),this};var ya=function(Pt,Kr){C()(Kr)==="object"?ra(Kr,Pt):Sn(Pt)},Ha=function(Pt){Pt===null||On===Rr.ADVANCED&&Pt===void 0||(Pt=$i(Pt),Sn(Pt))};function ta(St,Pt,Kr,Pn,ut){var ne=new B(Pt||this.boundingBox,Kr||this.xStep,Pn||this.yStep,this.gState,ut||this.matrix);ne.stream=this.stream;var pe=St+"$$"+this.cloneIndex+++"$$";return Pa(pe,ne),ne}var ra=function(Pt,Kr){var Pn=rn[Pt.key],ut=Nr[Pn];if(ut instanceof U)Sn("q"),Sn(_a(Kr)),ut.gState&&$t.setGState(ut.gState),Sn(Pt.matrix.toString()+" cm"),Sn("/"+Pn+" sh"),Sn("Q");else if(ut instanceof B){var ne=new yi(1,0,0,-1,0,is());Pt.matrix&&(ne=ne.multiply(Pt.matrix||ha),Pn=ta.call(ut,Pt.key,Pt.boundingBox,Pt.xStep,Pt.yStep,ne).id),Sn("q"),Sn("/Pattern cs"),Sn("/"+Pn+" scn"),ut.gState&&$t.setGState(ut.gState),Sn(Kr),Sn("Q")}},_a=function(Pt){switch(Pt){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"}},Ka=$t.moveTo=function(St,Pt){return Sn(Di(mr(St))+" "+Di(Lt(Pt))+" m"),this},bo=$t.lineTo=function(St,Pt){return Sn(Di(mr(St))+" "+Di(Lt(Pt))+" l"),this},ga=$t.curveTo=function(St,Pt,Kr,Pn,ut,ne){return Sn([Di(mr(St)),Di(Lt(Pt)),Di(mr(Kr)),Di(Lt(Pn)),Di(mr(ut)),Di(Lt(ne)),"c"].join(" ")),this};$t.__private__.line=$t.line=function(St,Pt,Kr,Pn,ut){if(isNaN(St)||isNaN(Pt)||isNaN(Kr)||isNaN(Pn)||!aa(ut))throw new Error("Invalid arguments passed to jsPDF.line");return On===Rr.COMPAT?this.lines([[Kr-St,Pn-Pt]],St,Pt,[1,1],ut||"S"):this.lines([[Kr-St,Pn-Pt]],St,Pt,[1,1]).stroke()},$t.__private__.lines=$t.lines=function(St,Pt,Kr,Pn,ut,ne){var pe,be,je,ht,Vt,Or,Yr,cn,jn,ai,Qn,Ni;if(typeof St=="number"&&(Ni=Kr,Kr=Pt,Pt=St,St=Ni),Pn=Pn||[1,1],ne=ne||!1,isNaN(Pt)||isNaN(Kr)||!Array.isArray(St)||!Array.isArray(Pn)||!aa(ut)||typeof ne!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Ka(Pt,Kr),pe=Pn[0],be=Pn[1],ht=St.length,ai=Pt,Qn=Kr,je=0;je<ht;je++)(Vt=St[je]).length===2?(ai=Vt[0]*pe+ai,Qn=Vt[1]*be+Qn,bo(ai,Qn)):(Or=Vt[0]*pe+ai,Yr=Vt[1]*be+Qn,cn=Vt[2]*pe+ai,jn=Vt[3]*be+Qn,ai=Vt[4]*pe+ai,Qn=Vt[5]*be+Qn,ga(Or,Yr,cn,jn,ai,Qn));return ne&&Aa(),Ha(ut),this},$t.path=function(St){for(var Pt=0;Pt<St.length;Pt++){var Kr=St[Pt],Pn=Kr.c;switch(Kr.op){case"m":Ka(Pn[0],Pn[1]);break;case"l":bo(Pn[0],Pn[1]);break;case"c":ga.apply(this,Pn);break;case"h":Aa()}}return this},$t.__private__.rect=$t.rect=function(St,Pt,Kr,Pn,ut){if(isNaN(St)||isNaN(Pt)||isNaN(Kr)||isNaN(Pn)||!aa(ut))throw new Error("Invalid arguments passed to jsPDF.rect");return On===Rr.COMPAT&&(Pn=-Pn),Sn([Di(mr(St)),Di(Lt(Pt)),Di(mr(Kr)),Di(mr(Pn)),"re"].join(" ")),Ha(ut),this},$t.__private__.triangle=$t.triangle=function(St,Pt,Kr,Pn,ut,ne,pe){if(isNaN(St)||isNaN(Pt)||isNaN(Kr)||isNaN(Pn)||isNaN(ut)||isNaN(ne)||!aa(pe))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Kr-St,Pn-Pt],[ut-Kr,ne-Pn],[St-ut,Pt-ne]],St,Pt,[1,1],pe,!0),this},$t.__private__.roundedRect=$t.roundedRect=function(St,Pt,Kr,Pn,ut,ne,pe){if(isNaN(St)||isNaN(Pt)||isNaN(Kr)||isNaN(Pn)||isNaN(ut)||isNaN(ne)||!aa(pe))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var be=4/3*(Math.SQRT2-1);return ut=Math.min(ut,.5*Kr),ne=Math.min(ne,.5*Pn),this.lines([[Kr-2*ut,0],[ut*be,0,ut,ne-ne*be,ut,ne],[0,Pn-2*ne],[0,ne*be,-ut*be,ne,-ut,ne],[2*ut-Kr,0],[-ut*be,0,-ut,-ne*be,-ut,-ne],[0,2*ne-Pn],[0,-ne*be,ut*be,-ne,ut,-ne]],St+ut,Pt,[1,1],pe,!0),this},$t.__private__.ellipse=$t.ellipse=function(St,Pt,Kr,Pn,ut){if(isNaN(St)||isNaN(Pt)||isNaN(Kr)||isNaN(Pn)||!aa(ut))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ne=4/3*(Math.SQRT2-1)*Kr,pe=4/3*(Math.SQRT2-1)*Pn;return Ka(St+Kr,Pt),ga(St+Kr,Pt-pe,St+ne,Pt-Pn,St,Pt-Pn),ga(St-ne,Pt-Pn,St-Kr,Pt-pe,St-Kr,Pt),ga(St-Kr,Pt+pe,St-ne,Pt+Pn,St,Pt+Pn),ga(St+ne,Pt+Pn,St+Kr,Pt+pe,St+Kr,Pt),Ha(ut),this},$t.__private__.circle=$t.circle=function(St,Pt,Kr,Pn){if(isNaN(St)||isNaN(Pt)||isNaN(Kr)||!aa(Pn))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(St,Pt,Kr,Kr,Pn)},$t.setFont=function(St,Pt,Kr){return Kr&&(Pt=ki(Pt,Kr)),Oo=Ln(St,Pt,{disableWarning:!1}),this};var go=$t.__private__.getFont=$t.getFont=function(){return _o[Ln.apply($t,arguments)]};$t.__private__.getFontList=$t.getFontList=function(){var St,Pt,Kr={};for(St in Bo)if(Bo.hasOwnProperty(St))for(Pt in Kr[St]=[],Bo[St])Bo[St].hasOwnProperty(Pt)&&Kr[St].push(Pt);return Kr},$t.addFont=function(St,Pt,Kr,Pn,ut){var ne=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ne.indexOf(arguments[3])!==-1?ut=arguments[3]:arguments[3]&&ne.indexOf(arguments[3])==-1&&(Kr=ki(Kr,Pn)),ut=ut||"Identity-H",vr.call(this,St,Pt,Kr,ut)};var Sa,Va=Qe.lineWidth||.200025,uo=$t.__private__.getLineWidth=$t.getLineWidth=function(){return Va},No=$t.__private__.setLineWidth=$t.setLineWidth=function(St){return Va=St,Sn(Di(mr(St))+" w"),this};$t.__private__.setLineDash=j.API.setLineDash=j.API.setLineDashPattern=function(St,Pt){if(St=St||[],Pt=Pt||0,isNaN(Pt)||!Array.isArray(St))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return St=St.map(function(Kr){return Di(mr(Kr))}).join(" "),Pt=Di(mr(Pt)),Sn("["+St+"] "+Pt+" d"),this};var Po=$t.__private__.getLineHeight=$t.getLineHeight=function(){return ca*Sa};$t.__private__.getLineHeight=$t.getLineHeight=function(){return ca*Sa};var to=$t.__private__.setLineHeightFactor=$t.setLineHeightFactor=function(St){return typeof(St=St||1.15)=="number"&&(Sa=St),this},Uo=$t.__private__.getLineHeightFactor=$t.getLineHeightFactor=function(){return Sa};to(Qe.lineHeight);var co=$t.__private__.getHorizontalCoordinate=function(St){return mr(St)},fa=$t.__private__.getVerticalCoordinate=function(St){return On===Rr.ADVANCED?St:Bn[_r].mediaBox.topRightY-Bn[_r].mediaBox.bottomLeftY-mr(St)},ro=$t.__private__.getHorizontalCoordinateString=$t.getHorizontalCoordinateString=function(St){return Di(co(St))},Wa=$t.__private__.getVerticalCoordinateString=$t.getVerticalCoordinateString=function(St){return Di(fa(St))},Ea=Qe.strokeColor||"0 G";$t.__private__.getStrokeColor=$t.getDrawColor=function(){return zr(Ea)},$t.__private__.setStrokeColor=$t.setDrawColor=function(St,Pt,Kr,Pn){return Ea=un({ch1:St,ch2:Pt,ch3:Kr,ch4:Pn,pdfColorType:"draw",precision:2}),Sn(Ea),this};var Qr=Qe.fillColor||"0 g";$t.__private__.getFillColor=$t.getFillColor=function(){return zr(Qr)},$t.__private__.setFillColor=$t.setFillColor=function(St,Pt,Kr,Pn){return Qr=un({ch1:St,ch2:Pt,ch3:Kr,ch4:Pn,pdfColorType:"fill",precision:2}),Sn(Qr),this};var za=Qe.textColor||"0 g",rs=$t.__private__.getTextColor=$t.getTextColor=function(){return zr(za)};$t.__private__.setTextColor=$t.setTextColor=function(St,Pt,Kr,Pn){return za=un({ch1:St,ch2:Pt,ch3:Kr,ch4:Pn,pdfColorType:"text",precision:3}),this};var Vo=Qe.charSpace,Go=$t.__private__.getCharSpace=$t.getCharSpace=function(){return parseFloat(Vo||0)};$t.__private__.setCharSpace=$t.setCharSpace=function(St){if(isNaN(St))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Vo=St,this};var Qo=0;$t.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},$t.__private__.setLineCap=$t.setLineCap=function(St){var Pt=$t.CapJoinStyles[St];if(Pt===void 0)throw new Error("Line cap style of '"+St+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Qo=Pt,Sn(Pt+" J"),this};var Yo=0;$t.__private__.setLineJoin=$t.setLineJoin=function(St){var Pt=$t.CapJoinStyles[St];if(Pt===void 0)throw new Error("Line join style of '"+St+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Yo=Pt,Sn(Pt+" j"),this},$t.__private__.setLineMiterLimit=$t.__private__.setMiterLimit=$t.setLineMiterLimit=$t.setMiterLimit=function(St){if(St=St||0,isNaN(St))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Sn(Di(mr(St))+" M"),this},$t.GState=k,$t.setGState=function(St){(St=typeof St=="string"?En[en[St]]:vo(null,St)).equals(ur)||(Sn("/"+St.id+" gs"),ur=St)};var vo=function(Pt,Kr){if(!Pt||!en[Pt]){var Pn=!1;for(var ut in En)if(En.hasOwnProperty(ut)&&En[ut].equals(Kr)){Pn=!0;break}if(Pn)Kr=En[ut];else{var ne="GS"+(Object.keys(En).length+1).toString(10);En[ne]=Kr,Kr.id=ne}return Pt&&(en[Pt]=Kr.id),Hn.publish("addGState",Kr),Kr}};$t.addGState=function(St,Pt){return vo(St,Pt),this},$t.saveGraphicsState=function(){return Sn("q"),Ds.push({key:Oo,size:ca,color:za}),this},$t.restoreGraphicsState=function(){Sn("Q");var St=Ds.pop();return Oo=St.key,ca=St.size,za=St.color,ur=null,this},$t.setCurrentTransformationMatrix=function(St){return Sn(St.toString()+" cm"),this},$t.comment=function(St){return Sn("#"+St),this};var Io=function(Pt,Kr){var Pn=Pt||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Pn},set:function(be){isNaN(be)||(Pn=parseFloat(be))}});var ut=Kr||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ut},set:function(be){isNaN(be)||(ut=parseFloat(be))}});var ne="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ne},set:function(be){ne=be.toString()}}),this},zo=function(Pt,Kr,Pn,ut){Io.call(this,Pt,Kr),this.type="rect";var ne=Pn||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ne},set:function(je){isNaN(je)||(ne=parseFloat(je))}});var pe=ut||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return pe},set:function(je){isNaN(je)||(pe=parseFloat(je))}}),this},Fa=function(){this.page=on,this.currentPage=_r,this.pages=Ji.slice(0),this.pagesContext=Bn.slice(0),this.x=hs,this.y=Jo,this.matrix=wo,this.width=$o(_r),this.height=is(_r),this.outputDestination=la,this.id="",this.objectNumber=-1};Fa.prototype.restore=function(){on=this.page,_r=this.currentPage,Bn=this.pagesContext,Ji=this.pages,hs=this.x,Jo=this.y,wo=this.matrix,ps(_r,this.width),Za(_r,this.height),la=this.outputDestination};var Ja=function(Pt,Kr,Pn,ut,ne){mi.push(new Fa),on=_r=0,Ji=[],hs=Pt,Jo=Kr,wo=ne,An([Pn,ut])},ho=function(Pt){if(Jn[Pt])mi.pop().restore();else{var Kr=new Fa,Pn="Xo"+(Object.keys(Ci).length+1).toString(10);Kr.id=Pn,Jn[Pt]=Pn,Ci[Pn]=Kr,Hn.publish("addFormObject",Kr),mi.pop().restore()}};for(var Ao in $t.beginFormObject=function(St,Pt,Kr,Pn,ut){return Ja(St,Pt,Kr,Pn,ut),this},$t.endFormObject=function(St){return ho(St),this},$t.doFormObject=function(St,Pt){var Kr=Ci[Jn[St]];return Sn("q"),Sn(Pt.toString()+" cm"),Sn("/"+Kr.id+" Do"),Sn("Q"),this},$t.getFormObject=function(St){var Pt=Ci[Jn[St]];return{x:Pt.x,y:Pt.y,width:Pt.width,height:Pt.height,matrix:Pt.matrix}},$t.save=function(St,Pt){return St=St||"generated.pdf",(Pt=Pt||{}).returnPromise=Pt.returnPromise||!1,Pt.returnPromise===!1?(e(Zi(Ei()),St),typeof e.unload=="function"&&S.setTimeout&&setTimeout(e.unload,911),this):new Promise(function(Kr,Pn){try{var ut=e(Zi(Ei()),St);typeof e.unload=="function"&&S.setTimeout&&setTimeout(e.unload,911),Kr(ut)}catch(ne){Pn(ne.message)}})},j.API)j.API.hasOwnProperty(Ao)&&(Ao==="events"&&j.API.events.length?function(St,Pt){var Kr,Pn,ut;for(ut=Pt.length-1;ut!==-1;ut--)Kr=Pt[ut][0],Pn=Pt[ut][1],St.subscribe.apply(St,[Kr].concat(typeof Pn=="function"?[Pn]:Pn))}(Hn,j.API.events):$t[Ao]=j.API[Ao]);var $o=$t.getPageWidth=function(St){return(Bn[St=St||_r].mediaBox.topRightX-Bn[St].mediaBox.bottomLeftX)/sa},ps=$t.setPageWidth=function(St,Pt){Bn[St].mediaBox.topRightX=Pt*sa+Bn[St].mediaBox.bottomLeftX},is=$t.getPageHeight=function(St){return(Bn[St=St||_r].mediaBox.topRightY-Bn[St].mediaBox.bottomLeftY)/sa},Za=$t.setPageHeight=function(St,Pt){Bn[St].mediaBox.topRightY=Pt*sa+Bn[St].mediaBox.bottomLeftY};return $t.internal={pdfEscape:hr,getStyle:$i,getFont:go,getFontSize:Ia,getCharSpace:Go,getTextColor:rs,getLineHeight:Po,getLineHeightFactor:Uo,getLineWidth:uo,write:zi,getHorizontalCoordinate:co,getVerticalCoordinate:fa,getCoordinateString:ro,getVerticalCoordinateString:Wa,collections:{},newObject:Ra,newAdditionalObject:lo,newObjectDeferred:so,newObjectDeferredBegin:La,getFilters:vn,putStream:ni,events:Hn,scaleFactor:sa,pageSize:{getWidth:function(){return $o(_r)},setWidth:function(Pt){ps(_r,Pt)},getHeight:function(){return is(_r)},setHeight:function(Pt){Za(_r,Pt)}},encryptionOptions:Dr,encryption:Gi,getEncryptor:wa,output:ua,getNumberOfPages:Wn,pages:Ji,out:Sn,f2:Tn,f3:Mr,getPageInfo:na,getPageInfoByObjId:mo,getCurrentPageInfo:Ca,getPDFVersion:or,Point:Io,Rectangle:zo,Matrix:yi,hasHotfix:Xi},Object.defineProperty($t.internal.pageSize,"width",{get:function(){return $o(_r)},set:function(Pt){ps(_r,Pt)},enumerable:!0,configurable:!0}),Object.defineProperty($t.internal.pageSize,"height",{get:function(){return is(_r)},set:function(Pt){Za(_r,Pt)},enumerable:!0,configurable:!0}),fr.call($t,Yi),Oo="F1",br(Ye,Ne),Hn.publish("initialized"),$t}N.prototype.lsbFirstWord=function(Qe){return String.fromCharCode(Qe>>0&255,Qe>>8&255,Qe>>16&255,Qe>>24&255)},N.prototype.toHexString=function(Qe){return Qe.split("").map(function(we){return("0"+(255&we.charCodeAt(0)).toString(16)).slice(-2)}).join("")},N.prototype.hexToBytes=function(Qe){for(var we=[],Ne=0;Ne<Qe.length;Ne+=2)we.push(String.fromCharCode(parseInt(Qe.substr(Ne,2),16)));return we.join("")},N.prototype.processOwnerPassword=function(Qe,we){return I(b(we).substr(0,5),Qe)},N.prototype.encryptor=function(Qe,we){var Ne=b(this.encryptionKey+String.fromCharCode(255&Qe,Qe>>8&255,Qe>>16&255,255&we,we>>8&255)).substr(0,10);return function(Fe){return I(Ne,Fe)}},k.prototype.equals=function(Qe){var we,Ne="id,objectNumber,equals";if(!Qe||C()(Qe)!==C()(this))return!1;var Fe=0;for(we in this)if(!(Ne.indexOf(we)>=0)){if(this.hasOwnProperty(we)&&!Qe.hasOwnProperty(we))return!1;if(this[we]!==Qe[we])return!1;Fe++}for(we in Qe)Qe.hasOwnProperty(we)&&Ne.indexOf(we)<0&&Fe--;return Fe===0},j.API={events:[]},j.version="2.5.1";var W=j.API,V=1,z=function(we){return we.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},J=function(we){return we.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Z=function(we){return we.toFixed(2)},de=function(we){return we.toFixed(5)};W.__acroform__={};var ie=function(we,Ne){we.prototype=Object.create(Ne.prototype),we.prototype.constructor=we},ve=function(we){return we*V},xe=function(we){var Ne=new Te,Fe=X.internal.getHeight(we)||0,Ye=X.internal.getWidth(we)||0;return Ne.BBox=[0,0,Number(Z(Ye)),Number(Z(Fe))],Ne},_e=W.__acroform__.setBit=function(Qe,we){if(Qe=Qe||0,we=we||0,isNaN(Qe)||isNaN(we))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return Qe|=1<<we},Ue=W.__acroform__.clearBit=function(Qe,we){if(Qe=Qe||0,we=we||0,isNaN(Qe)||isNaN(we))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return Qe&=~(1<<we)},fe=W.__acroform__.getBit=function(Qe,we){if(isNaN(Qe)||isNaN(we))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(Qe&1<<we)==0?0:1},ke=W.__acroform__.getBitForPdf=function(Qe,we){if(isNaN(Qe)||isNaN(we))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return fe(Qe,we-1)},se=W.__acroform__.setBitForPdf=function(Qe,we){if(isNaN(Qe)||isNaN(we))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return _e(Qe,we-1)},te=W.__acroform__.clearBitForPdf=function(Qe,we){if(isNaN(Qe)||isNaN(we))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Ue(Qe,we-1)},Ve=W.__acroform__.calculateCoordinates=function(Qe,we){var Ne=we.internal.getHorizontalCoordinate,Fe=we.internal.getVerticalCoordinate,Ye=Qe[0],We=Qe[1],Ze=Qe[2],mt=Qe[3],it={};return it.lowerLeft_X=Ne(Ye)||0,it.lowerLeft_Y=Fe(We+mt)||0,it.upperRight_X=Ne(Ye+Ze)||0,it.upperRight_Y=Fe(We)||0,[Number(Z(it.lowerLeft_X)),Number(Z(it.lowerLeft_Y)),Number(Z(it.upperRight_X)),Number(Z(it.upperRight_Y))]},ae=function(we){if(we.appearanceStreamContent)return we.appearanceStreamContent;if(we.V||we.DV){var Ne=[],Fe=we._V||we.DV,Ye=Q(we,Fe),We=we.scope.internal.getFont(we.fontName,we.fontStyle).id;Ne.push("/Tx BMC"),Ne.push("q"),Ne.push("BT"),Ne.push(we.scope.__private__.encodeColorString(we.color)),Ne.push("/"+We+" "+Z(Ye.fontSize)+" Tf"),Ne.push("1 0 0 1 0 0 Tm"),Ne.push(Ye.text),Ne.push("ET"),Ne.push("Q"),Ne.push("EMC");var Ze=xe(we);return Ze.scope=we.scope,Ze.stream=Ne.join(`
|
|
|
`),Ze}},Q=function(we,Ne){var Fe=we.fontSize===0?we.maxFontSize:we.fontSize,Ye={text:"",fontSize:""},We=(Ne=(Ne=Ne.substr(0,1)=="("?Ne.substr(1):Ne).substr(Ne.length-1)==")"?Ne.substr(0,Ne.length-1):Ne).split(" ");We=we.multiline?We.map(function(mr){return mr.split(`
|
|
|
`)}):We.map(function(mr){return[mr]});var Ze=Fe,mt=X.internal.getHeight(we)||0;mt=mt<0?-mt:mt;var it=X.internal.getWidth(we)||0;it=it<0?-it:it;var Jt=function(Cr,Lt,wr){if(Cr+1<We.length){var Vr=Lt+" "+We[Cr+1][0];return G(Vr,we,wr).width<=it-4}return!1};Ze++;e:for(;Ze>0;){Ne="",Ze--;var Dr,Sr,Br=G("3",we,Ze).height,$t=we.multiline?mt-Ze:(mt-Br)/2,gn=$t+=2,or=0,ln=0,an=0;if(Ze<=0){Ne=`(...) Tj
|
|
|
`,Ne+="% Width of Text: "+G(Ne,we,Ze=12).width+", FieldWidth:"+it+`
|
|
|
`;break}for(var Rr="",On=0,ci=0;ci<We.length;ci++)if(We.hasOwnProperty(ci)){var Ui=!1;if(We[ci].length!==1&&an!==We[ci].length-1){if((Br+2)*(On+2)+2>mt)continue e;Rr+=We[ci][an],Ui=!0,ln=ci,ci--}else{Rr=(Rr+=We[ci][an]+" ").substr(Rr.length-1)==" "?Rr.substr(0,Rr.length-1):Rr;var ki=parseInt(ci),Di=Jt(ki,Rr,Ze),Ki=ci>=We.length-1;if(Di&&!Ki){Rr+=" ",an=0;continue}if(Di||Ki){if(Ki)ln=ki;else if(we.multiline&&(Br+2)*(On+2)+2>mt)continue e}else{if(!we.multiline)continue e;if((Br+2)*(On+2)+2>mt)continue e;ln=ki}}for(var Ur="",Tn=or;Tn<=ln;Tn++){var Mr=We[Tn];if(we.multiline){if(Tn===ln){Ur+=Mr[an]+" ",an=(an+1)%Mr.length;continue}if(Tn===or){Ur+=Mr[Mr.length-1]+" ";continue}}Ur+=Mr[0]+" "}switch(Ur=Ur.substr(Ur.length-1)==" "?Ur.substr(0,Ur.length-1):Ur,Sr=G(Ur,we,Ze).width,we.textAlign){case"right":Dr=it-Sr-2;break;case"center":Dr=(it-Sr)/2;break;case"left":default:Dr=2}Ne+=Z(Dr)+" "+Z(gn)+` Td
|
|
|
`,Ne+="("+z(Ur)+`) Tj
|
|
|
`,Ne+=-Z(Dr)+` 0 Td
|
|
|
`,gn=-(Ze+2),Sr=0,or=Ui?ln:ln+1,On++,Rr=""}break}return Ye.text=Ne,Ye.fontSize=Ze,Ye},G=function(we,Ne,Fe){var Ye=Ne.scope.internal.getFont(Ne.fontName,Ne.fontStyle),We=Ne.scope.getStringUnitWidth(we,{font:Ye,fontSize:parseFloat(Fe),charSpace:0})*parseFloat(Fe);return{height:Ne.scope.getStringUnitWidth("3",{font:Ye,fontSize:parseFloat(Fe),charSpace:0})*parseFloat(Fe)*1.5,width:We}},Y={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},me=function(we,Ne){var Fe={type:"reference",object:we};Ne.internal.getPageInfo(we.page).pageContext.annotations.find(function(Ye){return Ye.type===Fe.type&&Ye.object===Fe.object})===void 0&&Ne.internal.getPageInfo(we.page).pageContext.annotations.push(Fe)},ue=function(we,Ne){for(var Fe in we)if(we.hasOwnProperty(Fe)){var Ye=Fe,We=we[Fe];Ne.internal.newObjectDeferredBegin(We.objId,!0),C()(We)==="object"&&typeof We.putStream=="function"&&We.putStream(),delete we[Ye]}},Ce=function(we,Ne){if(Ne.scope=we,we.internal!==void 0&&(we.internal.acroformPlugin===void 0||we.internal.acroformPlugin.isInitialized===!1)){if(gt.FieldNum=0,we.internal.acroformPlugin=JSON.parse(JSON.stringify(Y)),we.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");V=we.internal.scaleFactor,we.internal.acroformPlugin.acroFormDictionaryRoot=new Ge,we.internal.acroformPlugin.acroFormDictionaryRoot.scope=we,we.internal.acroformPlugin.acroFormDictionaryRoot._eventID=we.internal.events.subscribe("postPutResources",function(){!function(Fe){Fe.internal.events.unsubscribe(Fe.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Fe.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Fe.internal.acroformPlugin.printedOut=!0}(we)}),we.internal.events.subscribe("buildDocument",function(){!function(Fe){Fe.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var Ye=Fe.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var We in Ye)if(Ye.hasOwnProperty(We)){var Ze=Ye[We];Ze.objId=void 0,Ze.hasAnnotation&&me(Ze,Fe)}}(we)}),we.internal.events.subscribe("putCatalog",function(){!function(Fe){if(Fe.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");Fe.internal.write("/AcroForm "+Fe.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(we)}),we.internal.events.subscribe("postPutPages",function(Fe){!function(Ye,We){var Ze=!Ye;for(var mt in Ye||(We.internal.newObjectDeferredBegin(We.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),We.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),Ye=Ye||We.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(Ye.hasOwnProperty(mt)){var it=Ye[mt],Jt=[],Dr=it.Rect;if(it.Rect&&(it.Rect=Ve(it.Rect,We)),We.internal.newObjectDeferredBegin(it.objId,!0),it.DA=X.createDefaultAppearanceStream(it),C()(it)==="object"&&typeof it.getKeyValueListForStream=="function"&&(Jt=it.getKeyValueListForStream()),it.Rect=Dr,it.hasAppearanceStream&&!it.appearanceStreamContent){var Sr=ae(it);Jt.push({key:"AP",value:"<</N "+Sr+">>"}),We.internal.acroformPlugin.xForms.push(Sr)}if(it.appearanceStreamContent){var Br="";for(var $t in it.appearanceStreamContent)if(it.appearanceStreamContent.hasOwnProperty($t)){var gn=it.appearanceStreamContent[$t];if(Br+="/"+$t+" ",Br+="<<",Object.keys(gn).length>=1||Array.isArray(gn)){for(var mt in gn)if(gn.hasOwnProperty(mt)){var or=gn[mt];typeof or=="function"&&(or=or.call(We,it)),Br+="/"+mt+" "+or+" ",We.internal.acroformPlugin.xForms.indexOf(or)>=0||We.internal.acroformPlugin.xForms.push(or)}}else typeof(or=gn)=="function"&&(or=or.call(We,it)),Br+="/"+mt+" "+or,We.internal.acroformPlugin.xForms.indexOf(or)>=0||We.internal.acroformPlugin.xForms.push(or);Br+=">>"}Jt.push({key:"AP",value:`<<
|
|
|
`+Br+">>"})}We.internal.putStream({additionalKeyValues:Jt,objectId:it.objId}),We.internal.out("endobj")}Ze&&ue(We.internal.acroformPlugin.xForms,We)}(Fe,we)}),we.internal.acroformPlugin.isInitialized=!0}},Ie=W.__acroform__.arrayToPdfArray=function(Qe,we,Ne){var Fe=function(mt){return mt};if(Array.isArray(Qe)){for(var Ye="[",We=0;We<Qe.length;We++)switch(We!==0&&(Ye+=" "),C()(Qe[We])){case"boolean":case"number":case"object":Ye+=Qe[We].toString();break;case"string":Qe[We].substr(0,1)!=="/"?(we!==void 0&&Ne&&(Fe=Ne.internal.getEncryptor(we)),Ye+="("+z(Fe(Qe[We].toString()))+")"):Ye+=Qe[We].toString()}return Ye+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ce=function(we,Ne,Fe){var Ye=function(Ze){return Ze};return Ne!==void 0&&Fe&&(Ye=Fe.internal.getEncryptor(Ne)),(we=we||"").toString(),we="("+z(Ye(we))+")"},Ae=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(Ne){this._objId=Ne}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Ae.prototype.toString=function(){return this.objId+" 0 R"},Ae.prototype.putStream=function(){var Qe=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:Qe,objectId:this.objId}),this.scope.internal.out("endobj")},Ae.prototype.getKeyValueListForStream=function(){var Qe=[],we=Object.getOwnPropertyNames(this).filter(function(We){return We!="content"&&We!="appearanceStreamContent"&&We!="scope"&&We!="objId"&&We.substring(0,1)!="_"});for(var Ne in we)if(Object.getOwnPropertyDescriptor(this,we[Ne]).configurable===!1){var Fe=we[Ne],Ye=this[Fe];Ye&&(Array.isArray(Ye)?Qe.push({key:Fe,value:Ie(Ye,this.objId,this.scope)}):Ye instanceof Ae?(Ye.scope=this.scope,Qe.push({key:Fe,value:Ye.objId+" 0 R"})):typeof Ye!="function"&&Qe.push({key:Fe,value:Ye}))}return Qe};var Te=function(){Ae.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 we,Ne=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return Ne},set:function(Ye){Ne=Ye}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(Ye){we=Ye.trim()},get:function(){return we||null}})};ie(Te,Ae);var Ge=function(){Ae.call(this);var we,Ne=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return Ne.length>0?Ne:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return Ne}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(we){var Ye=function(Ze){return Ze};return this.scope&&(Ye=this.scope.internal.getEncryptor(this.objId)),"("+z(Ye(we))+")"}},set:function(Ye){we=Ye}})};ie(Ge,Ae);var gt=function Qe(){Ae.call(this);var we=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return we},set:function(Rr){if(isNaN(Rr))throw new Error('Invalid value "'+Rr+'" for attribute F supplied.');we=Rr}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(we,3))},set:function(Rr){Boolean(Rr)===!0?this.F=se(we,3):this.F=te(we,3)}});var Ne=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return Ne},set:function(Rr){if(isNaN(Rr))throw new Error('Invalid value "'+Rr+'" for attribute Ff supplied.');Ne=Rr}});var Fe=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Fe.length!==0)return Fe},set:function(Rr){Fe=Rr!==void 0?Rr:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Fe||isNaN(Fe[0])?0:Fe[0]},set:function(Rr){Fe[0]=Rr}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Fe||isNaN(Fe[1])?0:Fe[1]},set:function(Rr){Fe[1]=Rr}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Fe||isNaN(Fe[2])?0:Fe[2]},set:function(Rr){Fe[2]=Rr}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Fe||isNaN(Fe[3])?0:Fe[3]},set:function(Rr){Fe[3]=Rr}});var Ye="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return Ye},set:function(Rr){switch(Rr){case"/Btn":case"/Tx":case"/Ch":case"/Sig":Ye=Rr;break;default:throw new Error('Invalid value "'+Rr+'" for attribute FT supplied.')}}});var We=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!We||We.length<1){if(this instanceof Mt)return;We="FieldObject"+Qe.FieldNum++}var Rr=function(ci){return ci};return this.scope&&(Rr=this.scope.internal.getEncryptor(this.objId)),"("+z(Rr(We))+")"},set:function(Rr){We=Rr.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return We},set:function(Rr){We=Rr}});var Ze="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return Ze},set:function(Rr){Ze=Rr}});var mt="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return mt},set:function(Rr){mt=Rr}});var it=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return it},set:function(Rr){it=Rr}});var Jt=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Jt===void 0?50/V:Jt},set:function(Rr){Jt=Rr}});var Dr="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return Dr},set:function(Rr){Dr=Rr}});var Sr="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Sr||this instanceof Mt||this instanceof Xe))return ce(Sr,this.objId,this.scope)},set:function(Rr){Rr=Rr.toString(),Sr=Rr}});var Br=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Br)return this instanceof xt==!1?ce(Br,this.objId,this.scope):Br},set:function(Rr){Rr=Rr.toString(),Br=this instanceof xt==!1?Rr.substr(0,1)==="("?J(Rr.substr(1,Rr.length-2)):J(Rr):Rr}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof xt==!0?J(Br.substr(1,Br.length-1)):Br},set:function(Rr){Rr=Rr.toString(),Br=this instanceof xt==!0?"/"+Rr:Rr}});var $t=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if($t)return $t},set:function(Rr){this.V=Rr}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if($t)return this instanceof xt==!1?ce($t,this.objId,this.scope):$t},set:function(Rr){Rr=Rr.toString(),$t=this instanceof xt==!1?Rr.substr(0,1)==="("?J(Rr.substr(1,Rr.length-2)):J(Rr):Rr}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof xt==!0?J($t.substr(1,$t.length-1)):$t},set:function(Rr){Rr=Rr.toString(),$t=this instanceof xt==!0?"/"+Rr:Rr}}),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 gn,or=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return or},set:function(Rr){Rr=Boolean(Rr),or=Rr}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(gn)return gn},set:function(Rr){gn=Rr}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,1))},set:function(Rr){Boolean(Rr)===!0?this.Ff=se(this.Ff,1):this.Ff=te(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,2))},set:function(Rr){Boolean(Rr)===!0?this.Ff=se(this.Ff,2):this.Ff=te(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,3))},set:function(Rr){Boolean(Rr)===!0?this.Ff=se(this.Ff,3):this.Ff=te(this.Ff,3)}});var ln=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(ln!==null)return ln},set:function(Rr){if([0,1,2].indexOf(Rr)===-1)throw new Error('Invalid value "'+Rr+'" for attribute Q supplied.');ln=Rr}}),Object.defineProperty(this,"textAlign",{get:function(){var Rr;switch(ln){case 0:default:Rr="left";break;case 1:Rr="center";break;case 2:Rr="right"}return Rr},configurable:!0,enumerable:!0,set:function(Rr){switch(Rr){case"right":case 2:ln=2;break;case"center":case 1:ln=1;break;case"left":case 0:default:ln=0}}})};ie(gt,Ae);var qe=function(){gt.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var we=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return we},set:function(Ye){we=Ye}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return we},set:function(Ye){we=Ye}});var Ne=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Ie(Ne,this.objId,this.scope)},set:function(Ye){var We,Ze;Ze=[],typeof(We=Ye)=="string"&&(Ze=function(mt,it,Jt){Jt||(Jt=1);for(var Dr,Sr=[];Dr=it.exec(mt);)Sr.push(Dr[Jt]);return Sr}(We,/\((.*?)\)/g)),Ne=Ze}}),this.getOptions=function(){return Ne},this.setOptions=function(Fe){Ne=Fe,this.sort&&Ne.sort()},this.addOption=function(Fe){Fe=(Fe=Fe||"").toString(),Ne.push(Fe),this.sort&&Ne.sort()},this.removeOption=function(Fe,Ye){for(Ye=Ye||!1,Fe=(Fe=Fe||"").toString();Ne.indexOf(Fe)!==-1&&(Ne.splice(Ne.indexOf(Fe),1),Ye!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,18))},set:function(Ye){Boolean(Ye)===!0?this.Ff=se(this.Ff,18):this.Ff=te(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,19))},set:function(Ye){this.combo===!0&&(Boolean(Ye)===!0?this.Ff=se(this.Ff,19):this.Ff=te(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,20))},set:function(Ye){Boolean(Ye)===!0?(this.Ff=se(this.Ff,20),Ne.sort()):this.Ff=te(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,22))},set:function(Ye){Boolean(Ye)===!0?this.Ff=se(this.Ff,22):this.Ff=te(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,23))},set:function(Ye){Boolean(Ye)===!0?this.Ff=se(this.Ff,23):this.Ff=te(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,27))},set:function(Ye){Boolean(Ye)===!0?this.Ff=se(this.Ff,27):this.Ff=te(this.Ff,27)}}),this.hasAppearanceStream=!1};ie(qe,gt);var Le=function(){qe.call(this),this.fontName="helvetica",this.combo=!1};ie(Le,qe);var Ot=function(){Le.call(this),this.combo=!0};ie(Ot,Le);var $e=function(){Ot.call(this),this.edit=!0};ie($e,Ot);var xt=function(){gt.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,15))},set:function(Ye){Boolean(Ye)===!0?this.Ff=se(this.Ff,15):this.Ff=te(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,16))},set:function(Ye){Boolean(Ye)===!0?this.Ff=se(this.Ff,16):this.Ff=te(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,17))},set:function(Ye){Boolean(Ye)===!0?this.Ff=se(this.Ff,17):this.Ff=te(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,26))},set:function(Ye){Boolean(Ye)===!0?this.Ff=se(this.Ff,26):this.Ff=te(this.Ff,26)}});var we,Ne={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Ye=function(it){return it};if(this.scope&&(Ye=this.scope.internal.getEncryptor(this.objId)),Object.keys(Ne).length!==0){var We,Ze=[];for(We in Ze.push("<<"),Ne)Ze.push("/"+We+" ("+z(Ye(Ne[We]))+")");return Ze.push(">>"),Ze.join(`
|
|
|
`)}},set:function(Ye){C()(Ye)==="object"&&(Ne=Ye)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Ne.CA||""},set:function(Ye){typeof Ye=="string"&&(Ne.CA=Ye)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return we},set:function(Ye){we=Ye}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return we.substr(1,we.length-1)},set:function(Ye){we="/"+Ye}})};ie(xt,gt);var Ht=function(){xt.call(this),this.pushButton=!0};ie(Ht,xt);var tr=function(){xt.call(this),this.radio=!0,this.pushButton=!1;var we=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return we},set:function(Fe){we=Fe!==void 0?Fe:[]}})};ie(tr,xt);var Mt=function(){var we,Ne;gt.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return we},set:function(Ze){we=Ze}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return Ne},set:function(Ze){Ne=Ze}});var Fe,Ye={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Ze=function(Dr){return Dr};this.scope&&(Ze=this.scope.internal.getEncryptor(this.objId));var mt,it=[];for(mt in it.push("<<"),Ye)it.push("/"+mt+" ("+z(Ze(Ye[mt]))+")");return it.push(">>"),it.join(`
|
|
|
`)},set:function(Ze){C()(Ze)==="object"&&(Ye=Ze)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Ye.CA||""},set:function(Ze){typeof Ze=="string"&&(Ye.CA=Ze)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Fe},set:function(Ze){Fe=Ze}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Fe.substr(1,Fe.length-1)},set:function(Ze){Fe="/"+Ze}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=X.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};ie(Mt,gt),tr.prototype.setAppearance=function(Qe){if(!("createAppearanceStream"in Qe)||!("getCA"in Qe))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var we in this.Kids)if(this.Kids.hasOwnProperty(we)){var Ne=this.Kids[we];Ne.appearanceStreamContent=Qe.createAppearanceStream(Ne.optionName),Ne.caption=Qe.getCA()}},tr.prototype.createOption=function(Qe){var we=new Mt;return we.Parent=this,we.optionName=Qe,this.Kids.push(we),Be.call(this.scope,we),we};var Tt=function(){xt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=X.CheckBox.createAppearanceStream()};ie(Tt,xt);var Xe=function(){gt.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,13))},set:function(Fe){Boolean(Fe)===!0?this.Ff=se(this.Ff,13):this.Ff=te(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,21))},set:function(Fe){Boolean(Fe)===!0?this.Ff=se(this.Ff,21):this.Ff=te(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,23))},set:function(Fe){Boolean(Fe)===!0?this.Ff=se(this.Ff,23):this.Ff=te(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,24))},set:function(Fe){Boolean(Fe)===!0?this.Ff=se(this.Ff,24):this.Ff=te(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,25))},set:function(Fe){Boolean(Fe)===!0?this.Ff=se(this.Ff,25):this.Ff=te(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,26))},set:function(Fe){Boolean(Fe)===!0?this.Ff=se(this.Ff,26):this.Ff=te(this.Ff,26)}});var we=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return we},set:function(Fe){we=Fe}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return we},set:function(Fe){Number.isInteger(Fe)&&(we=Fe)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};ie(Xe,gt);var oe=function(){Xe.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,14))},set:function(Ne){Boolean(Ne)===!0?this.Ff=se(this.Ff,14):this.Ff=te(this.Ff,14)}}),this.password=!0};ie(oe,Xe);var X={CheckBox:{createAppearanceStream:function(){return{N:{On:X.CheckBox.YesNormal},D:{On:X.CheckBox.YesPushDown,Off:X.CheckBox.OffPushDown}}},YesPushDown:function(we){var Ne=xe(we);Ne.scope=we.scope;var Fe=[],Ye=we.scope.internal.getFont(we.fontName,we.fontStyle).id,We=we.scope.__private__.encodeColorString(we.color),Ze=Q(we,we.caption);return Fe.push("0.749023 g"),Fe.push("0 0 "+Z(X.internal.getWidth(we))+" "+Z(X.internal.getHeight(we))+" re"),Fe.push("f"),Fe.push("BMC"),Fe.push("q"),Fe.push("0 0 1 rg"),Fe.push("/"+Ye+" "+Z(Ze.fontSize)+" Tf "+We),Fe.push("BT"),Fe.push(Ze.text),Fe.push("ET"),Fe.push("Q"),Fe.push("EMC"),Ne.stream=Fe.join(`
|
|
|
`),Ne},YesNormal:function(we){var Ne=xe(we);Ne.scope=we.scope;var Fe=we.scope.internal.getFont(we.fontName,we.fontStyle).id,Ye=we.scope.__private__.encodeColorString(we.color),We=[],Ze=X.internal.getHeight(we),mt=X.internal.getWidth(we),it=Q(we,we.caption);return We.push("1 g"),We.push("0 0 "+Z(mt)+" "+Z(Ze)+" re"),We.push("f"),We.push("q"),We.push("0 0 1 rg"),We.push("0 0 "+Z(mt-1)+" "+Z(Ze-1)+" re"),We.push("W"),We.push("n"),We.push("0 g"),We.push("BT"),We.push("/"+Fe+" "+Z(it.fontSize)+" Tf "+Ye),We.push(it.text),We.push("ET"),We.push("Q"),Ne.stream=We.join(`
|
|
|
`),Ne},OffPushDown:function(we){var Ne=xe(we);Ne.scope=we.scope;var Fe=[];return Fe.push("0.749023 g"),Fe.push("0 0 "+Z(X.internal.getWidth(we))+" "+Z(X.internal.getHeight(we))+" re"),Fe.push("f"),Ne.stream=Fe.join(`
|
|
|
`),Ne}},RadioButton:{Circle:{createAppearanceStream:function(we){var Ne={D:{Off:X.RadioButton.Circle.OffPushDown},N:{}};return Ne.N[we]=X.RadioButton.Circle.YesNormal,Ne.D[we]=X.RadioButton.Circle.YesPushDown,Ne},getCA:function(){return"l"},YesNormal:function(we){var Ne=xe(we);Ne.scope=we.scope;var Fe=[],Ye=X.internal.getWidth(we)<=X.internal.getHeight(we)?X.internal.getWidth(we)/4:X.internal.getHeight(we)/4;Ye=Number((.9*Ye).toFixed(5));var We=X.internal.Bezier_C,Ze=Number((Ye*We).toFixed(5));return Fe.push("q"),Fe.push("1 0 0 1 "+de(X.internal.getWidth(we)/2)+" "+de(X.internal.getHeight(we)/2)+" cm"),Fe.push(Ye+" 0 m"),Fe.push(Ye+" "+Ze+" "+Ze+" "+Ye+" 0 "+Ye+" c"),Fe.push("-"+Ze+" "+Ye+" -"+Ye+" "+Ze+" -"+Ye+" 0 c"),Fe.push("-"+Ye+" -"+Ze+" -"+Ze+" -"+Ye+" 0 -"+Ye+" c"),Fe.push(Ze+" -"+Ye+" "+Ye+" -"+Ze+" "+Ye+" 0 c"),Fe.push("f"),Fe.push("Q"),Ne.stream=Fe.join(`
|
|
|
`),Ne},YesPushDown:function(we){var Ne=xe(we);Ne.scope=we.scope;var Fe=[],Ye=X.internal.getWidth(we)<=X.internal.getHeight(we)?X.internal.getWidth(we)/4:X.internal.getHeight(we)/4;Ye=Number((.9*Ye).toFixed(5));var We=Number((2*Ye).toFixed(5)),Ze=Number((We*X.internal.Bezier_C).toFixed(5)),mt=Number((Ye*X.internal.Bezier_C).toFixed(5));return Fe.push("0.749023 g"),Fe.push("q"),Fe.push("1 0 0 1 "+de(X.internal.getWidth(we)/2)+" "+de(X.internal.getHeight(we)/2)+" cm"),Fe.push(We+" 0 m"),Fe.push(We+" "+Ze+" "+Ze+" "+We+" 0 "+We+" c"),Fe.push("-"+Ze+" "+We+" -"+We+" "+Ze+" -"+We+" 0 c"),Fe.push("-"+We+" -"+Ze+" -"+Ze+" -"+We+" 0 -"+We+" c"),Fe.push(Ze+" -"+We+" "+We+" -"+Ze+" "+We+" 0 c"),Fe.push("f"),Fe.push("Q"),Fe.push("0 g"),Fe.push("q"),Fe.push("1 0 0 1 "+de(X.internal.getWidth(we)/2)+" "+de(X.internal.getHeight(we)/2)+" cm"),Fe.push(Ye+" 0 m"),Fe.push(Ye+" "+mt+" "+mt+" "+Ye+" 0 "+Ye+" c"),Fe.push("-"+mt+" "+Ye+" -"+Ye+" "+mt+" -"+Ye+" 0 c"),Fe.push("-"+Ye+" -"+mt+" -"+mt+" -"+Ye+" 0 -"+Ye+" c"),Fe.push(mt+" -"+Ye+" "+Ye+" -"+mt+" "+Ye+" 0 c"),Fe.push("f"),Fe.push("Q"),Ne.stream=Fe.join(`
|
|
|
`),Ne},OffPushDown:function(we){var Ne=xe(we);Ne.scope=we.scope;var Fe=[],Ye=X.internal.getWidth(we)<=X.internal.getHeight(we)?X.internal.getWidth(we)/4:X.internal.getHeight(we)/4;Ye=Number((.9*Ye).toFixed(5));var We=Number((2*Ye).toFixed(5)),Ze=Number((We*X.internal.Bezier_C).toFixed(5));return Fe.push("0.749023 g"),Fe.push("q"),Fe.push("1 0 0 1 "+de(X.internal.getWidth(we)/2)+" "+de(X.internal.getHeight(we)/2)+" cm"),Fe.push(We+" 0 m"),Fe.push(We+" "+Ze+" "+Ze+" "+We+" 0 "+We+" c"),Fe.push("-"+Ze+" "+We+" -"+We+" "+Ze+" -"+We+" 0 c"),Fe.push("-"+We+" -"+Ze+" -"+Ze+" -"+We+" 0 -"+We+" c"),Fe.push(Ze+" -"+We+" "+We+" -"+Ze+" "+We+" 0 c"),Fe.push("f"),Fe.push("Q"),Ne.stream=Fe.join(`
|
|
|
`),Ne}},Cross:{createAppearanceStream:function(we){var Ne={D:{Off:X.RadioButton.Cross.OffPushDown},N:{}};return Ne.N[we]=X.RadioButton.Cross.YesNormal,Ne.D[we]=X.RadioButton.Cross.YesPushDown,Ne},getCA:function(){return"8"},YesNormal:function(we){var Ne=xe(we);Ne.scope=we.scope;var Fe=[],Ye=X.internal.calculateCross(we);return Fe.push("q"),Fe.push("1 1 "+Z(X.internal.getWidth(we)-2)+" "+Z(X.internal.getHeight(we)-2)+" re"),Fe.push("W"),Fe.push("n"),Fe.push(Z(Ye.x1.x)+" "+Z(Ye.x1.y)+" m"),Fe.push(Z(Ye.x2.x)+" "+Z(Ye.x2.y)+" l"),Fe.push(Z(Ye.x4.x)+" "+Z(Ye.x4.y)+" m"),Fe.push(Z(Ye.x3.x)+" "+Z(Ye.x3.y)+" l"),Fe.push("s"),Fe.push("Q"),Ne.stream=Fe.join(`
|
|
|
`),Ne},YesPushDown:function(we){var Ne=xe(we);Ne.scope=we.scope;var Fe=X.internal.calculateCross(we),Ye=[];return Ye.push("0.749023 g"),Ye.push("0 0 "+Z(X.internal.getWidth(we))+" "+Z(X.internal.getHeight(we))+" re"),Ye.push("f"),Ye.push("q"),Ye.push("1 1 "+Z(X.internal.getWidth(we)-2)+" "+Z(X.internal.getHeight(we)-2)+" re"),Ye.push("W"),Ye.push("n"),Ye.push(Z(Fe.x1.x)+" "+Z(Fe.x1.y)+" m"),Ye.push(Z(Fe.x2.x)+" "+Z(Fe.x2.y)+" l"),Ye.push(Z(Fe.x4.x)+" "+Z(Fe.x4.y)+" m"),Ye.push(Z(Fe.x3.x)+" "+Z(Fe.x3.y)+" l"),Ye.push("s"),Ye.push("Q"),Ne.stream=Ye.join(`
|
|
|
`),Ne},OffPushDown:function(we){var Ne=xe(we);Ne.scope=we.scope;var Fe=[];return Fe.push("0.749023 g"),Fe.push("0 0 "+Z(X.internal.getWidth(we))+" "+Z(X.internal.getHeight(we))+" re"),Fe.push("f"),Ne.stream=Fe.join(`
|
|
|
`),Ne}}},createDefaultAppearanceStream:function(we){var Ne=we.scope.internal.getFont(we.fontName,we.fontStyle).id,Fe=we.scope.__private__.encodeColorString(we.color);return"/"+Ne+" "+we.fontSize+" Tf "+Fe}};X.internal={Bezier_C:.551915024494,calculateCross:function(we){var Ne=X.internal.getWidth(we),Fe=X.internal.getHeight(we),Ye=Math.min(Ne,Fe);return{x1:{x:(Ne-Ye)/2,y:(Fe-Ye)/2+Ye},x2:{x:(Ne-Ye)/2+Ye,y:(Fe-Ye)/2},x3:{x:(Ne-Ye)/2,y:(Fe-Ye)/2},x4:{x:(Ne-Ye)/2+Ye,y:(Fe-Ye)/2+Ye}}}},X.internal.getWidth=function(Qe){var we=0;return C()(Qe)==="object"&&(we=ve(Qe.Rect[2])),we},X.internal.getHeight=function(Qe){var we=0;return C()(Qe)==="object"&&(we=ve(Qe.Rect[3])),we};var Be=W.addField=function(Qe){if(Ce(this,Qe),!(Qe instanceof gt))throw new Error("Invalid argument passed to jsPDF.addField.");var we;return(we=Qe).scope.internal.acroformPlugin.printedOut&&(we.scope.internal.acroformPlugin.printedOut=!1,we.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),we.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(we),Qe.page=Qe.scope.internal.getCurrentPageInfo().pageNumber,this};W.AcroFormChoiceField=qe,W.AcroFormListBox=Le,W.AcroFormComboBox=Ot,W.AcroFormEditBox=$e,W.AcroFormButton=xt,W.AcroFormPushButton=Ht,W.AcroFormRadioButton=tr,W.AcroFormCheckBox=Tt,W.AcroFormTextField=Xe,W.AcroFormPasswordField=oe,W.AcroFormAppearance=X,W.AcroForm={ChoiceField:qe,ListBox:Le,ComboBox:Ot,EditBox:$e,Button:xt,PushButton:Ht,RadioButton:tr,CheckBox:Tt,TextField:Xe,PasswordField:oe,Appearance:X},j.AcroForm={ChoiceField:qe,ListBox:Le,ComboBox:Ot,EditBox:$e,Button:xt,PushButton:Ht,RadioButton:tr,CheckBox:Tt,TextField:Xe,PasswordField:oe,Appearance:X};var Ee=j.AcroForm;function ee(Qe){return Qe.reduce(function(we,Ne,Fe){return we[Ne]=Fe,we},{})}!function(Qe){Qe.__addimage__={};var we="UNKNOWN",Ne={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]]},Fe=Qe.__addimage__.getImageFileTypeByImageData=function(Mr,mr){var Cr,Lt,wr,Vr,jr,qr=we;if((mr=mr||we)==="RGBA"||Mr.data!==void 0&&Mr.data instanceof Uint8ClampedArray&&"height"in Mr&&"width"in Mr)return"RGBA";if(ki(Mr))for(jr in Ne)for(wr=Ne[jr],Cr=0;Cr<wr.length;Cr+=1){for(Vr=!0,Lt=0;Lt<wr[Cr].length;Lt+=1)if(wr[Cr][Lt]!==void 0&&wr[Cr][Lt]!==Mr[Lt]){Vr=!1;break}if(Vr===!0){qr=jr;break}}else for(jr in Ne)for(wr=Ne[jr],Cr=0;Cr<wr.length;Cr+=1){for(Vr=!0,Lt=0;Lt<wr[Cr].length;Lt+=1)if(wr[Cr][Lt]!==void 0&&wr[Cr][Lt]!==Mr.charCodeAt(Lt)){Vr=!1;break}if(Vr===!0){qr=jr;break}}return qr===we&&mr!==we&&(qr=mr),qr},Ye=function Mr(mr){for(var Cr=this.internal.write,Lt=this.internal.putStream,wr=(0,this.internal.getFilters)();wr.indexOf("FlateEncode")!==-1;)wr.splice(wr.indexOf("FlateEncode"),1);mr.objectId=this.internal.newObject();var Vr=[];if(Vr.push({key:"Type",value:"/XObject"}),Vr.push({key:"Subtype",value:"/Image"}),Vr.push({key:"Width",value:mr.width}),Vr.push({key:"Height",value:mr.height}),mr.colorSpace===ln.INDEXED?Vr.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(mr.palette.length/3-1)+" "+("sMask"in mr&&mr.sMask!==void 0?mr.objectId+2:mr.objectId+1)+" 0 R]"}):(Vr.push({key:"ColorSpace",value:"/"+mr.colorSpace}),mr.colorSpace===ln.DEVICE_CMYK&&Vr.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Vr.push({key:"BitsPerComponent",value:mr.bitsPerComponent}),"decodeParameters"in mr&&mr.decodeParameters!==void 0&&Vr.push({key:"DecodeParms",value:"<<"+mr.decodeParameters+">>"}),"transparency"in mr&&Array.isArray(mr.transparency)){for(var jr="",qr=0,oi=mr.transparency.length;qr<oi;qr++)jr+=mr.transparency[qr]+" "+mr.transparency[qr]+" ";Vr.push({key:"Mask",value:"["+jr+"]"})}mr.sMask!==void 0&&Vr.push({key:"SMask",value:mr.objectId+1+" 0 R"});var Vn=mr.filter!==void 0?["/"+mr.filter]:void 0;if(Lt({data:mr.data,additionalKeyValues:Vr,alreadyAppliedFilters:Vn,objectId:mr.objectId}),Cr("endobj"),"sMask"in mr&&mr.sMask!==void 0){var Ti="/Predictor "+mr.predictor+" /Colors 1 /BitsPerComponent "+mr.bitsPerComponent+" /Columns "+mr.width,dn={width:mr.width,height:mr.height,colorSpace:"DeviceGray",bitsPerComponent:mr.bitsPerComponent,decodeParameters:Ti,data:mr.sMask};"filter"in mr&&(dn.filter=mr.filter),Mr.call(this,dn)}if(mr.colorSpace===ln.INDEXED){var _r=this.internal.newObject();Lt({data:Ki(new Uint8Array(mr.palette)),objectId:_r}),Cr("endobj")}},We=function(){var mr=this.internal.collections.addImage_images;for(var Cr in mr)Ye.call(this,mr[Cr])},Ze=function(){var mr,Cr=this.internal.collections.addImage_images,Lt=this.internal.write;for(var wr in Cr)Lt("/I"+(mr=Cr[wr]).index,mr.objectId,"0","R")},mt=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",We),this.internal.events.subscribe("putXobjectDict",Ze))},it=function(){var mr=this.internal.collections.addImage_images;return mt.call(this),mr},Jt=function(){return Object.keys(this.internal.collections.addImage_images).length},Dr=function(mr){return typeof Qe["process"+mr.toUpperCase()]=="function"},Sr=function(mr){return C()(mr)==="object"&&mr.nodeType===1},Br=function(mr,Cr){if(mr.nodeName==="IMG"&&mr.hasAttribute("src")){var Lt=""+mr.getAttribute("src");if(Lt.indexOf("data:image/")===0)return i(unescape(Lt).split("base64,").pop());var wr=Qe.loadFile(Lt,!0);if(wr!==void 0)return wr}if(mr.nodeName==="CANVAS"){if(mr.width===0||mr.height===0)throw new Error("Given canvas must have data. Canvas width: "+mr.width+", height: "+mr.height);var Vr;switch(Cr){case"PNG":Vr="image/png";break;case"WEBP":Vr="image/webp";break;case"JPEG":case"JPG":default:Vr="image/jpeg"}return i(mr.toDataURL(Vr,1).split("base64,").pop())}},$t=function(mr){var Cr=this.internal.collections.addImage_images;if(Cr){for(var Lt in Cr)if(mr===Cr[Lt].alias)return Cr[Lt]}},gn=function(mr,Cr,Lt){return mr||Cr||(mr=-96,Cr=-96),mr<0&&(mr=-1*Lt.width*72/mr/this.internal.scaleFactor),Cr<0&&(Cr=-1*Lt.height*72/Cr/this.internal.scaleFactor),mr===0&&(mr=Cr*Lt.width/Lt.height),Cr===0&&(Cr=mr*Lt.height/Lt.width),[mr,Cr]},or=function(mr,Cr,Lt,wr,Vr,jr){var qr=gn.call(this,Lt,wr,Vr),oi=this.internal.getCoordinateString,Vn=this.internal.getVerticalCoordinateString,Ti=it.call(this);if(Lt=qr[0],wr=qr[1],Ti[Vr.index]=Vr,jr){jr*=Math.PI/180;var dn=Math.cos(jr),_r=Math.sin(jr),xn=function(qn){return qn.toFixed(4)},Fn=[xn(dn),xn(_r),xn(-1*_r),xn(dn),0,0,"cm"]}this.internal.write("q"),jr?(this.internal.write([1,"0","0",1,oi(mr),Vn(Cr+wr),"cm"].join(" ")),this.internal.write(Fn.join(" ")),this.internal.write([oi(Lt),"0","0",oi(wr),"0","0","cm"].join(" "))):this.internal.write([oi(Lt),"0","0",oi(wr),oi(mr),Vn(Cr+wr),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Vr.index+" Do"),this.internal.write("Q")},ln=Qe.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};Qe.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var an=Qe.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Rr=Qe.__addimage__.sHashCode=function(Mr){var mr,Cr,Lt=0;if(typeof Mr=="string")for(Cr=Mr.length,mr=0;mr<Cr;mr++)Lt=(Lt<<5)-Lt+Mr.charCodeAt(mr),Lt|=0;else if(ki(Mr))for(Cr=Mr.byteLength/2,mr=0;mr<Cr;mr++)Lt=(Lt<<5)-Lt+Mr[mr],Lt|=0;return Lt},On=Qe.__addimage__.validateStringAsBase64=function(Mr){(Mr=Mr||"").toString().trim();var mr=!0;return Mr.length===0&&(mr=!1),Mr.length%4!=0&&(mr=!1),/^[A-Za-z0-9+/]+$/.test(Mr.substr(0,Mr.length-2))===!1&&(mr=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(Mr.substr(-2))===!1&&(mr=!1),mr},ci=Qe.__addimage__.extractImageFromDataUrl=function(Mr){var mr=(Mr=Mr||"").split("base64,"),Cr=null;if(mr.length===2){var Lt=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(mr[0]);Array.isArray(Lt)&&(Cr={mimeType:Lt[1],charset:Lt[2],data:mr[1]})}return Cr},Ui=Qe.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};Qe.__addimage__.isArrayBuffer=function(Mr){return Ui()&&Mr instanceof ArrayBuffer};var ki=Qe.__addimage__.isArrayBufferView=function(Mr){return Ui()&&typeof Uint32Array!="undefined"&&(Mr instanceof Int8Array||Mr instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&Mr instanceof Uint8ClampedArray||Mr instanceof Int16Array||Mr instanceof Uint16Array||Mr instanceof Int32Array||Mr instanceof Uint32Array||Mr instanceof Float32Array||Mr instanceof Float64Array)},Di=Qe.__addimage__.binaryStringToUint8Array=function(Mr){for(var mr=Mr.length,Cr=new Uint8Array(mr),Lt=0;Lt<mr;Lt++)Cr[Lt]=Mr.charCodeAt(Lt);return Cr},Ki=Qe.__addimage__.arrayBufferToBinaryString=function(Mr){for(var mr="",Cr=ki(Mr)?Mr:new Uint8Array(Mr),Lt=0;Lt<Cr.length;Lt+=8192)mr+=String.fromCharCode.apply(null,Cr.subarray(Lt,Lt+8192));return mr};Qe.addImage=function(){var Mr,mr,Cr,Lt,wr,Vr,jr,qr,oi;if(typeof arguments[1]=="number"?(mr=we,Cr=arguments[1],Lt=arguments[2],wr=arguments[3],Vr=arguments[4],jr=arguments[5],qr=arguments[6],oi=arguments[7]):(mr=arguments[1],Cr=arguments[2],Lt=arguments[3],wr=arguments[4],Vr=arguments[5],jr=arguments[6],qr=arguments[7],oi=arguments[8]),C()(Mr=arguments[0])==="object"&&!Sr(Mr)&&"imageData"in Mr){var Vn=Mr;Mr=Vn.imageData,mr=Vn.format||mr||we,Cr=Vn.x||Cr||0,Lt=Vn.y||Lt||0,wr=Vn.w||Vn.width||wr,Vr=Vn.h||Vn.height||Vr,jr=Vn.alias||jr,qr=Vn.compression||qr,oi=Vn.rotation||Vn.angle||oi}var Ti=this.internal.getFilters();if(qr===void 0&&Ti.indexOf("FlateEncode")!==-1&&(qr="SLOW"),isNaN(Cr)||isNaN(Lt))throw new Error("Invalid coordinates passed to jsPDF.addImage");mt.call(this);var dn=Ur.call(this,Mr,mr,jr,qr);return or.call(this,Cr,Lt,wr,Vr,dn,oi),this};var Ur=function(mr,Cr,Lt,wr){var Vr,jr,qr;if(typeof mr=="string"&&Fe(mr)===we){mr=unescape(mr);var oi=Tn(mr,!1);(oi!==""||(oi=Qe.loadFile(mr,!0))!==void 0)&&(mr=oi)}if(Sr(mr)&&(mr=Br(mr,Cr)),Cr=Fe(mr,Cr),!Dr(Cr))throw new Error("addImage does not support files of type '"+Cr+"', please ensure that a plugin for '"+Cr+"' support is added.");if(((qr=Lt)==null||qr.length===0)&&(Lt=function(Vn){return typeof Vn=="string"||ki(Vn)?Rr(Vn):ki(Vn.data)?Rr(Vn.data):null}(mr)),(Vr=$t.call(this,Lt))||(Ui()&&(mr instanceof Uint8Array||Cr==="RGBA"||(jr=mr,mr=Di(mr))),Vr=this["process"+Cr.toUpperCase()](mr,Jt.call(this),Lt,function(Vn){return Vn&&typeof Vn=="string"&&(Vn=Vn.toUpperCase()),Vn in Qe.image_compression?Vn:an.NONE}(wr),jr)),!Vr)throw new Error("An unknown error occurred whilst processing the image.");return Vr},Tn=Qe.__addimage__.convertBase64ToBinaryString=function(Mr,mr){var Cr;mr=typeof mr!="boolean"||mr;var Lt,wr="";if(typeof Mr=="string"){Lt=(Cr=ci(Mr))!==null?Cr.data:Mr;try{wr=i(Lt)}catch(Vr){if(mr)throw On(Lt)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Vr.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return wr};Qe.getImageProperties=function(Mr){var mr,Cr,Lt="";if(Sr(Mr)&&(Mr=Br(Mr)),typeof Mr=="string"&&Fe(Mr)===we&&((Lt=Tn(Mr,!1))===""&&(Lt=Qe.loadFile(Mr)||""),Mr=Lt),Cr=Fe(Mr),!Dr(Cr))throw new Error("addImage does not support files of type '"+Cr+"', please ensure that a plugin for '"+Cr+"' support is added.");if(!Ui()||Mr instanceof Uint8Array||(Mr=Di(Mr)),!(mr=this["process"+Cr.toUpperCase()](Mr)))throw new Error("An unknown error occurred whilst processing the image");return mr.fileType=Cr,mr}}(j.API),function(Qe){var we=function(Fe){if(Fe!==void 0&&Fe!="")return!0};j.API.events.push(["addPage",function(Ne){this.internal.getPageInfo(Ne.pageNumber).pageContext.annotations=[]}]),Qe.events.push(["putPage",function(Ne){for(var Fe,Ye,We,Ze=this.internal.getCoordinateString,mt=this.internal.getVerticalCoordinateString,it=this.internal.getPageInfoByObjId(Ne.objId),Jt=Ne.pageContext.annotations,Dr=!1,Sr=0;Sr<Jt.length&&!Dr;Sr++)switch((Fe=Jt[Sr]).type){case"link":(we(Fe.options.url)||we(Fe.options.pageNumber))&&(Dr=!0);break;case"reference":case"text":case"freetext":Dr=!0}if(Dr!=0){this.internal.write("/Annots [");for(var Br=0;Br<Jt.length;Br++){Fe=Jt[Br];var $t=this.internal.pdfEscape,gn=this.internal.getEncryptor(Ne.objId);switch(Fe.type){case"reference":this.internal.write(" "+Fe.object.objId+" 0 R ");break;case"text":var or=this.internal.newAdditionalObject(),ln=this.internal.newAdditionalObject(),an=this.internal.getEncryptor(or.objId),Rr=Fe.title||"Note";We="<</Type /Annot /Subtype /Text "+(Ye="/Rect ["+Ze(Fe.bounds.x)+" "+mt(Fe.bounds.y+Fe.bounds.h)+" "+Ze(Fe.bounds.x+Fe.bounds.w)+" "+mt(Fe.bounds.y)+"] ")+"/Contents ("+$t(an(Fe.contents))+")",We+=" /Popup "+ln.objId+" 0 R",We+=" /P "+it.objId+" 0 R",We+=" /T ("+$t(an(Rr))+") >>",or.content=We;var On=or.objId+" 0 R";We="<</Type /Annot /Subtype /Popup "+(Ye="/Rect ["+Ze(Fe.bounds.x+30)+" "+mt(Fe.bounds.y+Fe.bounds.h)+" "+Ze(Fe.bounds.x+Fe.bounds.w+30)+" "+mt(Fe.bounds.y)+"] ")+" /Parent "+On,Fe.open&&(We+=" /Open true"),We+=" >>",ln.content=We,this.internal.write(or.objId,"0 R",ln.objId,"0 R");break;case"freetext":Ye="/Rect ["+Ze(Fe.bounds.x)+" "+mt(Fe.bounds.y)+" "+Ze(Fe.bounds.x+Fe.bounds.w)+" "+mt(Fe.bounds.y+Fe.bounds.h)+"] ";var ci=Fe.color||"#000000";We="<</Type /Annot /Subtype /FreeText "+Ye+"/Contents ("+$t(gn(Fe.contents))+")",We+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+ci+")",We+=" /Border [0 0 0]",We+=" >>",this.internal.write(We);break;case"link":if(Fe.options.name){var Ui=this.annotations._nameMap[Fe.options.name];Fe.options.pageNumber=Ui.page,Fe.options.top=Ui.y}else Fe.options.top||(Fe.options.top=0);if(Ye="/Rect ["+Fe.finalBounds.x+" "+Fe.finalBounds.y+" "+Fe.finalBounds.w+" "+Fe.finalBounds.h+"] ",We="",Fe.options.url)We="<</Type /Annot /Subtype /Link "+Ye+"/Border [0 0 0] /A <</S /URI /URI ("+$t(gn(Fe.options.url))+") >>";else if(Fe.options.pageNumber)switch(We="<</Type /Annot /Subtype /Link "+Ye+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Fe.options.pageNumber).objId+" 0 R",Fe.options.magFactor=Fe.options.magFactor||"XYZ",Fe.options.magFactor){case"Fit":We+=" /Fit]";break;case"FitH":We+=" /FitH "+Fe.options.top+"]";break;case"FitV":Fe.options.left=Fe.options.left||0,We+=" /FitV "+Fe.options.left+"]";break;case"XYZ":default:var ki=mt(Fe.options.top);Fe.options.left=Fe.options.left||0,Fe.options.zoom===void 0&&(Fe.options.zoom=0),We+=" /XYZ "+Fe.options.left+" "+ki+" "+Fe.options.zoom+"]"}We!=""&&(We+=" >>",this.internal.write(We))}}this.internal.write("]")}}]),Qe.createAnnotation=function(Ne){var Fe=this.internal.getCurrentPageInfo();switch(Ne.type){case"link":this.link(Ne.bounds.x,Ne.bounds.y,Ne.bounds.w,Ne.bounds.h,Ne);break;case"text":case"freetext":Fe.pageContext.annotations.push(Ne)}},Qe.link=function(Ne,Fe,Ye,We,Ze){var mt=this.internal.getCurrentPageInfo(),it=this.internal.getCoordinateString,Jt=this.internal.getVerticalCoordinateString;mt.pageContext.annotations.push({finalBounds:{x:it(Ne),y:Jt(Fe),w:it(Ne+Ye),h:Jt(Fe+We)},options:Ze,type:"link"})},Qe.textWithLink=function(Ne,Fe,Ye,We){var Ze,mt,it=this.getTextWidth(Ne),Jt=this.internal.getLineHeight()/this.internal.scaleFactor;if(We.maxWidth!==void 0){mt=We.maxWidth;var Dr=this.splitTextToSize(Ne,mt).length;Ze=Math.ceil(Jt*Dr)}else mt=it,Ze=Jt;return this.text(Ne,Fe,Ye,We),Ye+=.2*Jt,We.align==="center"&&(Fe-=it/2),We.align==="right"&&(Fe-=it),this.link(Fe,Ye-Jt,mt,Ze,We),it},Qe.getTextWidth=function(Ne){var Fe=this.internal.getFontSize();return this.getStringUnitWidth(Ne)*Fe/this.internal.scaleFactor}}(j.API),function(Qe){var we={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]},Ne={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}},Fe={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},Ye=[1570,1571,1573,1575];Qe.__arabicParser__={};var We=Qe.__arabicParser__.isInArabicSubstitutionA=function(or){return we[or.charCodeAt(0)]!==void 0},Ze=Qe.__arabicParser__.isArabicLetter=function(or){return typeof or=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(or)},mt=Qe.__arabicParser__.isArabicEndLetter=function(or){return Ze(or)&&We(or)&&we[or.charCodeAt(0)].length<=2},it=Qe.__arabicParser__.isArabicAlfLetter=function(or){return Ze(or)&&Ye.indexOf(or.charCodeAt(0))>=0};Qe.__arabicParser__.arabicLetterHasIsolatedForm=function(or){return Ze(or)&&We(or)&&we[or.charCodeAt(0)].length>=1};var Jt=Qe.__arabicParser__.arabicLetterHasFinalForm=function(or){return Ze(or)&&We(or)&&we[or.charCodeAt(0)].length>=2};Qe.__arabicParser__.arabicLetterHasInitialForm=function(or){return Ze(or)&&We(or)&&we[or.charCodeAt(0)].length>=3};var Dr=Qe.__arabicParser__.arabicLetterHasMedialForm=function(or){return Ze(or)&&We(or)&&we[or.charCodeAt(0)].length==4},Sr=Qe.__arabicParser__.resolveLigatures=function(or){var ln=0,an=Ne,Rr="",On=0;for(ln=0;ln<or.length;ln+=1)an[or.charCodeAt(ln)]!==void 0?(On++,typeof(an=an[or.charCodeAt(ln)])=="number"&&(Rr+=String.fromCharCode(an),an=Ne,On=0),ln===or.length-1&&(an=Ne,Rr+=or.charAt(ln-(On-1)),ln-=On-1,On=0)):(an=Ne,Rr+=or.charAt(ln-On),ln-=On,On=0);return Rr};Qe.__arabicParser__.isArabicDiacritic=function(or){return or!==void 0&&Fe[or.charCodeAt(0)]!==void 0};var Br=Qe.__arabicParser__.getCorrectForm=function(or,ln,an){return Ze(or)?We(or)===!1?-1:!Jt(or)||!Ze(ln)&&!Ze(an)||!Ze(an)&&mt(ln)||mt(or)&&!Ze(ln)||mt(or)&&it(ln)||mt(or)&&mt(ln)?0:Dr(or)&&Ze(ln)&&!mt(ln)&&Ze(an)&&Jt(an)?3:mt(or)||!Ze(an)?1:2:-1},$t=function(ln){var an=0,Rr=0,On=0,ci="",Ui="",ki="",Di=(ln=ln||"").split("\\s+"),Ki=[];for(an=0;an<Di.length;an+=1){for(Ki.push(""),Rr=0;Rr<Di[an].length;Rr+=1)ci=Di[an][Rr],Ui=Di[an][Rr-1],ki=Di[an][Rr+1],Ze(ci)?(On=Br(ci,Ui,ki),Ki[an]+=On!==-1?String.fromCharCode(we[ci.charCodeAt(0)][On]):ci):Ki[an]+=ci;Ki[an]=Sr(Ki[an])}return Ki.join(" ")},gn=Qe.__arabicParser__.processArabic=Qe.processArabic=function(){var or,ln=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,an=[];if(Array.isArray(ln)){var Rr=0;for(an=[],Rr=0;Rr<ln.length;Rr+=1)Array.isArray(ln[Rr])?an.push([$t(ln[Rr][0]),ln[Rr][1],ln[Rr][2]]):an.push([$t(ln[Rr])]);or=an}else or=$t(ln);return typeof arguments[0]=="string"?or:(arguments[0].text=or,arguments[0])};Qe.events.push(["preProcessText",gn])}(j.API),j.API.autoPrint=function(Qe){var we;switch((Qe=Qe||{}).variant=Qe.variant||"non-conform",Qe.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){we=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 "+we+" 0 R")})}return this},function(Qe){var we=function(){var Fe=void 0;Object.defineProperty(this,"pdf",{get:function(){return Fe},set:function(Jt){Fe=Jt}});var Ye=150;Object.defineProperty(this,"width",{get:function(){return Ye},set:function(Jt){Ye=isNaN(Jt)||Number.isInteger(Jt)===!1||Jt<0?150:Jt,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=Ye+1)}});var We=300;Object.defineProperty(this,"height",{get:function(){return We},set:function(Jt){We=isNaN(Jt)||Number.isInteger(Jt)===!1||Jt<0?300:Jt,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=We+1)}});var Ze=[];Object.defineProperty(this,"childNodes",{get:function(){return Ze},set:function(Jt){Ze=Jt}});var mt={};Object.defineProperty(this,"style",{get:function(){return mt},set:function(Jt){mt=Jt}}),Object.defineProperty(this,"parentNode",{})};we.prototype.getContext=function(Ne,Fe){var Ye;if((Ne=Ne||"2d")!=="2d")return null;for(Ye in Fe)this.pdf.context2d.hasOwnProperty(Ye)&&(this.pdf.context2d[Ye]=Fe[Ye]);return this.pdf.context2d._canvas=this,this.pdf.context2d},we.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},Qe.events.push(["initialized",function(){this.canvas=new we,this.canvas.pdf=this}])}(j.API),function(Qe){var we={left:0,top:0,bottom:0,right:0},Ne=!1,Fe=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({},we),this.internal.__cell__.margins.width=this.getPageWidth(),Ye.call(this))},Ye=function(){this.internal.__cell__.lastCell=new We,this.internal.__cell__.pages=1},We=function(){var Jt=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Jt},set:function(an){Jt=an}});var Dr=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Dr},set:function(an){Dr=an}});var Sr=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return Sr},set:function(an){Sr=an}});var Br=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return Br},set:function(an){Br=an}});var $t=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return $t},set:function(an){$t=an}});var gn=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return gn},set:function(an){gn=an}});var or=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return or},set:function(an){or=an}}),this};We.prototype.clone=function(){return new We(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},We.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},Qe.setHeaderFunction=function(it){return Fe.call(this),this.internal.__cell__.headerFunction=typeof it=="function"?it:void 0,this},Qe.getTextDimensions=function(it,Jt){Fe.call(this);var Dr=(Jt=Jt||{}).fontSize||this.getFontSize(),Sr=Jt.font||this.getFont(),Br=Jt.scaleFactor||this.internal.scaleFactor,$t=0,gn=0,or=0,ln=this;if(!Array.isArray(it)&&typeof it!="string"){if(typeof it!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");it=String(it)}var an=Jt.maxWidth;an>0?typeof it=="string"?it=this.splitTextToSize(it,an):Object.prototype.toString.call(it)==="[object Array]"&&(it=it.reduce(function(On,ci){return On.concat(ln.splitTextToSize(ci,an))},[])):it=Array.isArray(it)?it:[it];for(var Rr=0;Rr<it.length;Rr++)$t<(or=this.getStringUnitWidth(it[Rr],{font:Sr})*Dr)&&($t=or);return $t!==0&&(gn=it.length),{w:$t/=Br,h:Math.max((gn*Dr*this.getLineHeightFactor()-Dr*(this.getLineHeightFactor()-1))/Br,0)}},Qe.cellAddPage=function(){Fe.call(this),this.addPage();var it=this.internal.__cell__.margins||we;return this.internal.__cell__.lastCell=new We(it.left,it.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var Ze=Qe.cell=function(){var it;it=arguments[0]instanceof We?arguments[0]:new We(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Fe.call(this);var Jt=this.internal.__cell__.lastCell,Dr=this.internal.__cell__.padding,Sr=this.internal.__cell__.margins||we,Br=this.internal.__cell__.tableHeaderRow,$t=this.internal.__cell__.printHeaders;return Jt.lineNumber!==void 0&&(Jt.lineNumber===it.lineNumber?(it.x=(Jt.x||0)+(Jt.width||0),it.y=Jt.y||0):Jt.y+Jt.height+it.height+Sr.bottom>this.getPageHeight()?(this.cellAddPage(),it.y=Sr.top,$t&&Br&&(this.printHeaderRow(it.lineNumber,!0),it.y+=Br[0].height)):it.y=Jt.y+Jt.height||it.y),it.text[0]!==void 0&&(this.rect(it.x,it.y,it.width,it.height,Ne===!0?"FD":void 0),it.align==="right"?this.text(it.text,it.x+it.width-Dr,it.y+Dr,{align:"right",baseline:"top"}):it.align==="center"?this.text(it.text,it.x+it.width/2,it.y+Dr,{align:"center",baseline:"top",maxWidth:it.width-Dr-Dr}):this.text(it.text,it.x+Dr,it.y+Dr,{align:"left",baseline:"top",maxWidth:it.width-Dr-Dr})),this.internal.__cell__.lastCell=it,this};Qe.table=function(it,Jt,Dr,Sr,Br){if(Fe.call(this),!Dr)throw new Error("No data for PDF table.");var $t,gn,or,ln,an=[],Rr=[],On=[],ci={},Ui={},ki=[],Di=[],Ki=(Br=Br||{}).autoSize||!1,Ur=Br.printHeaders!==!1,Tn=Br.css&&Br.css["font-size"]!==void 0?16*Br.css["font-size"]:Br.fontSize||12,Mr=Br.margins||Object.assign({width:this.getPageWidth()},we),mr=typeof Br.padding=="number"?Br.padding:3,Cr=Br.headerBackgroundColor||"#c8c8c8",Lt=Br.headerTextColor||"#000";if(Ye.call(this),this.internal.__cell__.printHeaders=Ur,this.internal.__cell__.margins=Mr,this.internal.__cell__.table_font_size=Tn,this.internal.__cell__.padding=mr,this.internal.__cell__.headerBackgroundColor=Cr,this.internal.__cell__.headerTextColor=Lt,this.setFontSize(Tn),Sr==null)Rr=an=Object.keys(Dr[0]),On=an.map(function(){return"left"});else if(Array.isArray(Sr)&&C()(Sr[0])==="object")for(an=Sr.map(function(Vn){return Vn.name}),Rr=Sr.map(function(Vn){return Vn.prompt||Vn.name||""}),On=Sr.map(function(Vn){return Vn.align||"left"}),$t=0;$t<Sr.length;$t+=1)Ui[Sr[$t].name]=Sr[$t].width*(19.049976/25.4);else Array.isArray(Sr)&&typeof Sr[0]=="string"&&(Rr=an=Sr,On=an.map(function(){return"left"}));if(Ki||Array.isArray(Sr)&&typeof Sr[0]=="string")for($t=0;$t<an.length;$t+=1){for(ci[ln=an[$t]]=Dr.map(function(Vn){return Vn[ln]}),this.setFont(void 0,"bold"),ki.push(this.getTextDimensions(Rr[$t],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),gn=ci[ln],this.setFont(void 0,"normal"),or=0;or<gn.length;or+=1)ki.push(this.getTextDimensions(gn[or],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Ui[ln]=Math.max.apply(null,ki)+mr+mr,ki=[]}if(Ur){var wr={};for($t=0;$t<an.length;$t+=1)wr[an[$t]]={},wr[an[$t]].text=Rr[$t],wr[an[$t]].align=On[$t];var Vr=mt.call(this,wr,Ui);Di=an.map(function(Vn){return new We(it,Jt,Ui[Vn],Vr,wr[Vn].text,void 0,wr[Vn].align)}),this.setTableHeaderRow(Di),this.printHeaderRow(1,!1)}var jr=Sr.reduce(function(Vn,Ti){return Vn[Ti.name]=Ti.align,Vn},{});for($t=0;$t<Dr.length;$t+=1){"rowStart"in Br&&Br.rowStart instanceof Function&&Br.rowStart({row:$t,data:Dr[$t]},this);var qr=mt.call(this,Dr[$t],Ui);for(or=0;or<an.length;or+=1){var oi=Dr[$t][an[or]];"cellStart"in Br&&Br.cellStart instanceof Function&&Br.cellStart({row:$t,col:or,data:oi},this),Ze.call(this,new We(it,Jt,Ui[an[or]],qr,oi,$t+2,jr[an[or]]))}}return this.internal.__cell__.table_x=it,this.internal.__cell__.table_y=Jt,this};var mt=function(Jt,Dr){var Sr=this.internal.__cell__.padding,Br=this.internal.__cell__.table_font_size,$t=this.internal.scaleFactor;return Object.keys(Jt).map(function(gn){var or=Jt[gn];return this.splitTextToSize(or.hasOwnProperty("text")?or.text:or,Dr[gn]-Sr-Sr)},this).map(function(gn){return this.getLineHeightFactor()*gn.length*Br/$t+Sr+Sr},this).reduce(function(gn,or){return Math.max(gn,or)},0)};Qe.setTableHeaderRow=function(it){Fe.call(this),this.internal.__cell__.tableHeaderRow=it},Qe.printHeaderRow=function(it,Jt){if(Fe.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var Dr;if(Ne=!0,typeof this.internal.__cell__.headerFunction=="function"){var Sr=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new We(Sr[0],Sr[1],Sr[2],Sr[3],void 0,-1)}this.setFont(void 0,"bold");for(var Br=[],$t=0;$t<this.internal.__cell__.tableHeaderRow.length;$t+=1){Dr=this.internal.__cell__.tableHeaderRow[$t].clone(),Jt&&(Dr.y=this.internal.__cell__.margins.top||0,Br.push(Dr)),Dr.lineNumber=it;var gn=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),Ze.call(this,Dr),this.setTextColor(gn)}Br.length>0&&this.setTableHeaderRow(Br),this.setFont(void 0,"normal"),Ne=!1}}(j.API);var lt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Ct=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],dt=ee(Ct),_t=[100,200,300,400,500,600,700,800,900],ir=ee(_t);function $r(Qe){var we=Qe.family.replace(/"|'/g,"").toLowerCase(),Ne=function(We){return lt[We=We||"normal"]?We:"normal"}(Qe.style),Fe=function(We){if(!We)return 400;if(typeof We=="number")return We>=100&&We<=900&&We%100==0?We:400;if(/^\d00$/.test(We))return parseInt(We);switch(We){case"bold":return 700;case"normal":default:return 400}}(Qe.weight),Ye=function(We){return typeof dt[We=We||"normal"]=="number"?We:"normal"}(Qe.stretch);return{family:we,style:Ne,weight:Fe,stretch:Ye,src:Qe.src||[],ref:Qe.ref||{name:we,style:[Ye,Ne,Fe].join(" ")}}}function nr(Qe,we,Ne,Fe){var Ye;for(Ye=Ne;Ye>=0&&Ye<we.length;Ye+=Fe)if(Qe[we[Ye]])return Qe[we[Ye]];for(Ye=Ne;Ye>=0&&Ye<we.length;Ye-=Fe)if(Qe[we[Ye]])return Qe[we[Ye]]}var lr={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},zt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Ut(Qe){return[Qe.stretch,Qe.style,Qe.weight,Qe.family].join(" ")}function st(Qe,we,Ne){for(var Fe=(Ne=Ne||{}).defaultFontFamily||"times",Ye=Object.assign({},lr,Ne.genericFontFamilies||{}),We=null,Ze=null,mt=0;mt<we.length;++mt)if(Ye[(We=$r(we[mt])).family]&&(We.family=Ye[We.family]),Qe.hasOwnProperty(We.family)){Ze=Qe[We.family];break}if(!(Ze=Ze||Qe[Fe]))throw new Error("Could not find a font-family for the rule '"+Ut(We)+"' and default family '"+Fe+"'.");if(Ze=function(it,Jt){if(Jt[it])return Jt[it];var Dr=dt[it],Sr=Dr<=dt.normal?-1:1,Br=nr(Jt,Ct,Dr,Sr);if(!Br)throw new Error("Could not find a matching font-stretch value for "+it);return Br}(We.stretch,Ze),Ze=function(it,Jt){if(Jt[it])return Jt[it];for(var Dr=lt[it],Sr=0;Sr<Dr.length;++Sr)if(Jt[Dr[Sr]])return Jt[Dr[Sr]];throw new Error("Could not find a matching font-style for "+it)}(We.style,Ze),!(Ze=function(it,Jt){if(Jt[it])return Jt[it];if(it===400&&Jt[500])return Jt[500];if(it===500&&Jt[400])return Jt[400];var Dr=ir[it],Sr=nr(Jt,_t,Dr,it<400?-1:1);if(!Sr)throw new Error("Could not find a matching font-weight for value "+it);return Sr}(We.weight,Ze)))throw new Error("Failed to resolve a font for the rule '"+Ut(We)+"'.");return Ze}function Hr(Qe){return Qe.trimLeft()}function mn(Qe,we){for(var Ne=0;Ne<Qe.length;){if(Qe.charAt(Ne)===we)return[Qe.substring(0,Ne),Qe.substring(Ne+1)];Ne+=1}return null}function In(Qe){var we=Qe.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return we===null?null:[we[0],Qe.substring(we[0].length)]}var Yn,Mi,wn,Rn=["times"];!function(Qe){var we,Ne,Fe,Ye,We,Ze,mt,it,Jt,Dr=function(_r){return _r=_r||{},this.isStrokeTransparent=_r.isStrokeTransparent||!1,this.strokeOpacity=_r.strokeOpacity||1,this.strokeStyle=_r.strokeStyle||"#000000",this.fillStyle=_r.fillStyle||"#000000",this.isFillTransparent=_r.isFillTransparent||!1,this.fillOpacity=_r.fillOpacity||1,this.font=_r.font||"10px sans-serif",this.textBaseline=_r.textBaseline||"alphabetic",this.textAlign=_r.textAlign||"left",this.lineWidth=_r.lineWidth||1,this.lineJoin=_r.lineJoin||"miter",this.lineCap=_r.lineCap||"butt",this.path=_r.path||[],this.transform=_r.transform!==void 0?_r.transform.clone():new it,this.globalCompositeOperation=_r.globalCompositeOperation||"normal",this.globalAlpha=_r.globalAlpha||1,this.clip_path=_r.clip_path||[],this.currentPoint=_r.currentPoint||new Ze,this.miterLimit=_r.miterLimit||10,this.lastPoint=_r.lastPoint||new Ze,this.lineDashOffset=_r.lineDashOffset||0,this.lineDash=_r.lineDash||[],this.margin=_r.margin||[0,0,0,0],this.prevPageLastElemOffset=_r.prevPageLastElemOffset||0,this.ignoreClearRect=typeof _r.ignoreClearRect!="boolean"||_r.ignoreClearRect,this};Qe.events.push(["initialized",function(){this.context2d=new Sr(this),we=this.internal.f2,Ne=this.internal.getCoordinateString,Fe=this.internal.getVerticalCoordinateString,Ye=this.internal.getHorizontalCoordinate,We=this.internal.getVerticalCoordinate,Ze=this.internal.Point,mt=this.internal.Rectangle,it=this.internal.Matrix,Jt=new Dr}]);var Sr=function(_r){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var xn=_r;Object.defineProperty(this,"pdf",{get:function(){return xn}});var Fn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Fn},set:function(zi){Fn=Boolean(zi)}});var zn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return zn},set:function(zi){zn=Boolean(zi)}});var qn=0;Object.defineProperty(this,"posX",{get:function(){return qn},set:function(zi){isNaN(zi)||(qn=zi)}});var Oi=0;Object.defineProperty(this,"posY",{get:function(){return Oi},set:function(zi){isNaN(zi)||(Oi=zi)}}),Object.defineProperty(this,"margin",{get:function(){return Jt.margin},set:function(zi){var oa;typeof zi=="number"?oa=[zi,zi,zi,zi]:((oa=new Array(4))[0]=zi[0],oa[1]=zi.length>=2?zi[1]:oa[0],oa[2]=zi.length>=3?zi[2]:oa[0],oa[3]=zi.length>=4?zi[3]:oa[1]),Jt.margin=oa}});var Li=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Li},set:function(zi){Li=zi}});var Ri=0;Object.defineProperty(this,"lastBreak",{get:function(){return Ri},set:function(zi){Ri=zi}});var Ji=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Ji},set:function(zi){Ji=zi}}),Object.defineProperty(this,"ctx",{get:function(){return Jt},set:function(zi){zi instanceof Dr&&(Jt=zi)}}),Object.defineProperty(this,"path",{get:function(){return Jt.path},set:function(zi){Jt.path=zi}});var ma=[];Object.defineProperty(this,"ctxStack",{get:function(){return ma},set:function(zi){ma=zi}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(zi){var oa;oa=Br(zi),this.ctx.fillStyle=oa.style,this.ctx.isFillTransparent=oa.a===0,this.ctx.fillOpacity=oa.a,this.pdf.setFillColor(oa.r,oa.g,oa.b,{a:oa.a}),this.pdf.setTextColor(oa.r,oa.g,oa.b,{a:oa.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(zi){var oa=Br(zi);this.ctx.strokeStyle=oa.style,this.ctx.isStrokeTransparent=oa.a===0,this.ctx.strokeOpacity=oa.a,oa.a===0?this.pdf.setDrawColor(255,255,255):(oa.a,this.pdf.setDrawColor(oa.r,oa.g,oa.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(zi){["butt","round","square"].indexOf(zi)!==-1&&(this.ctx.lineCap=zi,this.pdf.setLineCap(zi))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(zi){isNaN(zi)||(this.ctx.lineWidth=zi,this.pdf.setLineWidth(zi))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(zi){["bevel","round","miter"].indexOf(zi)!==-1&&(this.ctx.lineJoin=zi,this.pdf.setLineJoin(zi))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(zi){isNaN(zi)||(this.ctx.miterLimit=zi,this.pdf.setMiterLimit(zi))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(zi){this.ctx.textBaseline=zi}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(zi){["right","end","center","left","start"].indexOf(zi)!==-1&&(this.ctx.textAlign=zi)}});var la=null;function qa(Sn,zi){if(la===null){var oa=function(Yi){var ca=[];return Object.keys(Yi).forEach(function(Hi){Yi[Hi].forEach(function(Ia){var Da=null;switch(Ia){case"bold":Da={family:Hi,weight:"bold"};break;case"italic":Da={family:Hi,style:"italic"};break;case"bolditalic":Da={family:Hi,weight:"bold",style:"italic"};break;case"":case"normal":Da={family:Hi}}Da!==null&&(Da.ref={name:Hi,style:Ia},ca.push(Da))})}),ca}(Sn.getFontList());la=function(Yi){for(var ca={},Hi=0;Hi<Yi.length;++Hi){var Ia=$r(Yi[Hi]),Da=Ia.family,Qa=Ia.stretch,Wo=Ia.style,po=Ia.weight;ca[Da]=ca[Da]||{},ca[Da][Qa]=ca[Da][Qa]||{},ca[Da][Qa][Wo]=ca[Da][Qa][Wo]||{},ca[Da][Qa][Wo][po]=Ia}return ca}(oa.concat(zi))}return la}var bi=null;Object.defineProperty(this,"fontFaces",{get:function(){return bi},set:function(zi){la=null,bi=zi}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(zi){var oa;if(this.ctx.font=zi,(oa=/^\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(zi))!==null){var Yi=oa[1],ca=(oa[2],oa[3]),Hi=oa[4],Ia=(oa[5],oa[6]),Da=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Hi)[2];Hi=Da==="px"?Math.floor(parseFloat(Hi)*this.pdf.internal.scaleFactor):Da==="em"?Math.floor(parseFloat(Hi)*this.pdf.getFontSize()):Math.floor(parseFloat(Hi)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Hi);var Qa=function(sa){var hs,Jo,wo=[],_o=sa.trim();if(_o==="")return Rn;if(_o in zt)return[zt[_o]];for(;_o!=="";){switch(Jo=null,hs=(_o=Hr(_o)).charAt(0)){case'"':case"'":Jo=mn(_o.substring(1),hs);break;default:Jo=In(_o)}if(Jo===null)return Rn;if(wo.push(Jo[0]),(_o=Hr(Jo[1]))!==""&&_o.charAt(0)!==",")return Rn;_o=_o.replace(/^,/,"")}return wo}(Ia);if(this.fontFaces){var Wo=st(qa(this.pdf,this.fontFaces),Qa.map(function(sa){return{family:sa,stretch:"normal",weight:ca,style:Yi}}));this.pdf.setFont(Wo.ref.name,Wo.ref.style)}else{var po="";(ca==="bold"||parseInt(ca,10)>=700||Yi==="bold")&&(po="bold"),Yi==="italic"&&(po+="italic"),po.length===0&&(po="normal");for(var Mo="",Fo={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"},yo=0;yo<Qa.length;yo++){if(this.pdf.internal.getFont(Qa[yo],po,{noFallback:!0,disableWarning:!0})!==void 0){Mo=Qa[yo];break}if(po==="bolditalic"&&this.pdf.internal.getFont(Qa[yo],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Mo=Qa[yo],po="bold";else if(this.pdf.internal.getFont(Qa[yo],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Mo=Qa[yo],po="normal";break}}if(Mo===""){for(var Oo=0;Oo<Qa.length;Oo++)if(Fo[Qa[Oo]]){Mo=Fo[Qa[Oo]];break}}Mo=Mo===""?"Times":Mo,this.pdf.setFont(Mo,po)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(zi){this.ctx.globalCompositeOperation=zi}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(zi){this.ctx.globalAlpha=zi}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(zi){this.ctx.lineDashOffset=zi,Ti.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(zi){this.ctx.lineDash=zi,Ti.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(zi){this.ctx.ignoreClearRect=Boolean(zi)}})};Sr.prototype.setLineDash=function(dn){this.lineDash=dn},Sr.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Sr.prototype.fill=function(){ci.call(this,"fill",!1)},Sr.prototype.stroke=function(){ci.call(this,"stroke",!1)},Sr.prototype.beginPath=function(){this.path=[{type:"begin"}]},Sr.prototype.moveTo=function(dn,_r){if(isNaN(dn)||isNaN(_r))throw f.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var xn=this.ctx.transform.applyToPoint(new Ze(dn,_r));this.path.push({type:"mt",x:xn.x,y:xn.y}),this.ctx.lastPoint=new Ze(dn,_r)},Sr.prototype.closePath=function(){var dn=new Ze(0,0),_r=0;for(_r=this.path.length-1;_r!==-1;_r--)if(this.path[_r].type==="begin"&&C()(this.path[_r+1])==="object"&&typeof this.path[_r+1].x=="number"){dn=new Ze(this.path[_r+1].x,this.path[_r+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new Ze(dn.x,dn.y)},Sr.prototype.lineTo=function(dn,_r){if(isNaN(dn)||isNaN(_r))throw f.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var xn=this.ctx.transform.applyToPoint(new Ze(dn,_r));this.path.push({type:"lt",x:xn.x,y:xn.y}),this.ctx.lastPoint=new Ze(xn.x,xn.y)},Sr.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),ci.call(this,null,!0)},Sr.prototype.quadraticCurveTo=function(dn,_r,xn,Fn){if(isNaN(xn)||isNaN(Fn)||isNaN(dn)||isNaN(_r))throw f.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var zn=this.ctx.transform.applyToPoint(new Ze(xn,Fn)),qn=this.ctx.transform.applyToPoint(new Ze(dn,_r));this.path.push({type:"qct",x1:qn.x,y1:qn.y,x:zn.x,y:zn.y}),this.ctx.lastPoint=new Ze(zn.x,zn.y)},Sr.prototype.bezierCurveTo=function(dn,_r,xn,Fn,zn,qn){if(isNaN(zn)||isNaN(qn)||isNaN(dn)||isNaN(_r)||isNaN(xn)||isNaN(Fn))throw f.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Oi=this.ctx.transform.applyToPoint(new Ze(zn,qn)),Li=this.ctx.transform.applyToPoint(new Ze(dn,_r)),Ri=this.ctx.transform.applyToPoint(new Ze(xn,Fn));this.path.push({type:"bct",x1:Li.x,y1:Li.y,x2:Ri.x,y2:Ri.y,x:Oi.x,y:Oi.y}),this.ctx.lastPoint=new Ze(Oi.x,Oi.y)},Sr.prototype.arc=function(dn,_r,xn,Fn,zn,qn){if(isNaN(dn)||isNaN(_r)||isNaN(xn)||isNaN(Fn)||isNaN(zn))throw f.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(qn=Boolean(qn),!this.ctx.transform.isIdentity){var Oi=this.ctx.transform.applyToPoint(new Ze(dn,_r));dn=Oi.x,_r=Oi.y;var Li=this.ctx.transform.applyToPoint(new Ze(0,xn)),Ri=this.ctx.transform.applyToPoint(new Ze(0,0));xn=Math.sqrt(Math.pow(Li.x-Ri.x,2)+Math.pow(Li.y-Ri.y,2))}Math.abs(zn-Fn)>=2*Math.PI&&(Fn=0,zn=2*Math.PI),this.path.push({type:"arc",x:dn,y:_r,radius:xn,startAngle:Fn,endAngle:zn,counterclockwise:qn})},Sr.prototype.arcTo=function(dn,_r,xn,Fn,zn){throw new Error("arcTo not implemented.")},Sr.prototype.rect=function(dn,_r,xn,Fn){if(isNaN(dn)||isNaN(_r)||isNaN(xn)||isNaN(Fn))throw f.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(dn,_r),this.lineTo(dn+xn,_r),this.lineTo(dn+xn,_r+Fn),this.lineTo(dn,_r+Fn),this.lineTo(dn,_r),this.lineTo(dn+xn,_r),this.lineTo(dn,_r)},Sr.prototype.fillRect=function(dn,_r,xn,Fn){if(isNaN(dn)||isNaN(_r)||isNaN(xn)||isNaN(Fn))throw f.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!$t.call(this)){var zn={};this.lineCap!=="butt"&&(zn.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(zn.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(dn,_r,xn,Fn),this.fill(),zn.hasOwnProperty("lineCap")&&(this.lineCap=zn.lineCap),zn.hasOwnProperty("lineJoin")&&(this.lineJoin=zn.lineJoin)}},Sr.prototype.strokeRect=function(dn,_r,xn,Fn){if(isNaN(dn)||isNaN(_r)||isNaN(xn)||isNaN(Fn))throw f.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");gn.call(this)||(this.beginPath(),this.rect(dn,_r,xn,Fn),this.stroke())},Sr.prototype.clearRect=function(dn,_r,xn,Fn){if(isNaN(dn)||isNaN(_r)||isNaN(xn)||isNaN(Fn))throw f.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(dn,_r,xn,Fn))},Sr.prototype.save=function(dn){dn=typeof dn!="boolean"||dn;for(var _r=this.pdf.internal.getCurrentPageInfo().pageNumber,xn=0;xn<this.pdf.internal.getNumberOfPages();xn++)this.pdf.setPage(xn+1),this.pdf.internal.out("q");if(this.pdf.setPage(_r),dn){this.ctx.fontSize=this.pdf.internal.getFontSize();var Fn=new Dr(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Fn}},Sr.prototype.restore=function(dn){dn=typeof dn!="boolean"||dn;for(var _r=this.pdf.internal.getCurrentPageInfo().pageNumber,xn=0;xn<this.pdf.internal.getNumberOfPages();xn++)this.pdf.setPage(xn+1),this.pdf.internal.out("Q");this.pdf.setPage(_r),dn&&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)},Sr.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Br=function(_r){var xn,Fn,zn,qn;if(_r.isCanvasGradient===!0&&(_r=_r.getColor()),!_r)return{r:0,g:0,b:0,a:0,style:_r};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(_r))xn=0,Fn=0,zn=0,qn=0;else{var Oi=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(_r);if(Oi!==null)xn=parseInt(Oi[1]),Fn=parseInt(Oi[2]),zn=parseInt(Oi[3]),qn=1;else if((Oi=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(_r))!==null)xn=parseInt(Oi[1]),Fn=parseInt(Oi[2]),zn=parseInt(Oi[3]),qn=parseFloat(Oi[4]);else{if(qn=1,typeof _r=="string"&&_r.charAt(0)!=="#"){var Li=new l(_r);_r=Li.ok?Li.toHex():"#000000"}_r.length===4?(xn=_r.substring(1,2),xn+=xn,Fn=_r.substring(2,3),Fn+=Fn,zn=_r.substring(3,4),zn+=zn):(xn=_r.substring(1,3),Fn=_r.substring(3,5),zn=_r.substring(5,7)),xn=parseInt(xn,16),Fn=parseInt(Fn,16),zn=parseInt(zn,16)}}return{r:xn,g:Fn,b:zn,a:qn,style:_r}},$t=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},gn=function(){return Boolean(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Sr.prototype.fillText=function(dn,_r,xn,Fn){if(isNaN(_r)||isNaN(xn)||typeof dn!="string")throw f.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Fn=isNaN(Fn)?void 0:Fn,!$t.call(this)){var zn=qr(this.ctx.transform.rotation),qn=this.ctx.transform.scaleX;mr.call(this,{text:dn,x:_r,y:xn,scale:qn,angle:zn,align:this.textAlign,maxWidth:Fn})}},Sr.prototype.strokeText=function(dn,_r,xn,Fn){if(isNaN(_r)||isNaN(xn)||typeof dn!="string")throw f.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!gn.call(this)){Fn=isNaN(Fn)?void 0:Fn;var zn=qr(this.ctx.transform.rotation),qn=this.ctx.transform.scaleX;mr.call(this,{text:dn,x:_r,y:xn,scale:qn,renderingMode:"stroke",angle:zn,align:this.textAlign,maxWidth:Fn})}},Sr.prototype.measureText=function(dn){if(typeof dn!="string")throw f.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var _r=this.pdf,xn=this.pdf.internal.scaleFactor,Fn=_r.internal.getFontSize(),zn=_r.getStringUnitWidth(dn)*Fn/_r.internal.scaleFactor,qn=function(Li){var Ri=(Li=Li||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Ri}}),this};return new qn({width:zn*=Math.round(96*xn/72*1e4)/1e4})},Sr.prototype.scale=function(dn,_r){if(isNaN(dn)||isNaN(_r))throw f.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var xn=new it(dn,0,0,_r,0,0);this.ctx.transform=this.ctx.transform.multiply(xn)},Sr.prototype.rotate=function(dn){if(isNaN(dn))throw f.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var _r=new it(Math.cos(dn),Math.sin(dn),-Math.sin(dn),Math.cos(dn),0,0);this.ctx.transform=this.ctx.transform.multiply(_r)},Sr.prototype.translate=function(dn,_r){if(isNaN(dn)||isNaN(_r))throw f.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var xn=new it(1,0,0,1,dn,_r);this.ctx.transform=this.ctx.transform.multiply(xn)},Sr.prototype.transform=function(dn,_r,xn,Fn,zn,qn){if(isNaN(dn)||isNaN(_r)||isNaN(xn)||isNaN(Fn)||isNaN(zn)||isNaN(qn))throw f.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Oi=new it(dn,_r,xn,Fn,zn,qn);this.ctx.transform=this.ctx.transform.multiply(Oi)},Sr.prototype.setTransform=function(dn,_r,xn,Fn,zn,qn){dn=isNaN(dn)?1:dn,_r=isNaN(_r)?0:_r,xn=isNaN(xn)?0:xn,Fn=isNaN(Fn)?1:Fn,zn=isNaN(zn)?0:zn,qn=isNaN(qn)?0:qn,this.ctx.transform=new it(dn,_r,xn,Fn,zn,qn)};var or=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Sr.prototype.drawImage=function(dn,_r,xn,Fn,zn,qn,Oi,Li,Ri){var Ji=this.pdf.getImageProperties(dn),ma=1,la=1,qa=1,bi=1;Fn!==void 0&&Li!==void 0&&(qa=Li/Fn,bi=Ri/zn,ma=Ji.width/Fn*Li/Fn,la=Ji.height/zn*Ri/zn),qn===void 0&&(qn=_r,Oi=xn,_r=0,xn=0),Fn!==void 0&&Li===void 0&&(Li=Fn,Ri=zn),Fn===void 0&&Li===void 0&&(Li=Ji.width,Ri=Ji.height);for(var Sn,zi=this.ctx.transform.decompose(),oa=qr(zi.rotate.shx),Yi=new it,ca=(Yi=(Yi=(Yi=Yi.multiply(zi.translate)).multiply(zi.skew)).multiply(zi.scale)).applyToRectangle(new mt(qn-_r*qa,Oi-xn*bi,Fn*ma,zn*la)),Hi=ln.call(this,ca),Ia=[],Da=0;Da<Hi.length;Da+=1)Ia.indexOf(Hi[Da])===-1&&Ia.push(Hi[Da]);if(On(Ia),this.autoPaging)for(var Qa=Ia[0],Wo=Ia[Ia.length-1],po=Qa;po<Wo+1;po++){this.pdf.setPage(po);var Mo=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Fo=po===1?this.posY+this.margin[0]:this.margin[0],yo=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Oo=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],sa=po===1?0:yo+(po-2)*Oo;if(this.ctx.clip_path.length!==0){var hs=this.path;Sn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Rr(Sn,this.posX+this.margin[3],-sa+Fo+this.ctx.prevPageLastElemOffset),Ui.call(this,"fill",!0),this.path=hs}var Jo=JSON.parse(JSON.stringify(ca));Jo=Rr([Jo],this.posX+this.margin[3],-sa+Fo+this.ctx.prevPageLastElemOffset)[0];var wo=(po>Qa||po<Wo)&&or.call(this);wo&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Mo,Oo,null).clip().discardPath()),this.pdf.addImage(dn,"JPEG",Jo.x,Jo.y,Jo.w,Jo.h,null,null,oa),wo&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(dn,"JPEG",ca.x,ca.y,ca.w,ca.h,null,null,oa)};var ln=function(_r,xn,Fn){var zn=[];xn=xn||this.pdf.internal.pageSize.width,Fn=Fn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var qn=this.posY+this.ctx.prevPageLastElemOffset;switch(_r.type){default:case"mt":case"lt":zn.push(Math.floor((_r.y+qn)/Fn)+1);break;case"arc":zn.push(Math.floor((_r.y+qn-_r.radius)/Fn)+1),zn.push(Math.floor((_r.y+qn+_r.radius)/Fn)+1);break;case"qct":var Oi=oi(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_r.x1,_r.y1,_r.x,_r.y);zn.push(Math.floor((Oi.y+qn)/Fn)+1),zn.push(Math.floor((Oi.y+Oi.h+qn)/Fn)+1);break;case"bct":var Li=Vn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_r.x1,_r.y1,_r.x2,_r.y2,_r.x,_r.y);zn.push(Math.floor((Li.y+qn)/Fn)+1),zn.push(Math.floor((Li.y+Li.h+qn)/Fn)+1);break;case"rect":zn.push(Math.floor((_r.y+qn)/Fn)+1),zn.push(Math.floor((_r.y+_r.h+qn)/Fn)+1)}for(var Ri=0;Ri<zn.length;Ri+=1)for(;this.pdf.internal.getNumberOfPages()<zn[Ri];)an.call(this);return zn},an=function(){var _r=this.fillStyle,xn=this.strokeStyle,Fn=this.font,zn=this.lineCap,qn=this.lineWidth,Oi=this.lineJoin;this.pdf.addPage(),this.fillStyle=_r,this.strokeStyle=xn,this.font=Fn,this.lineCap=zn,this.lineWidth=qn,this.lineJoin=Oi},Rr=function(_r,xn,Fn){for(var zn=0;zn<_r.length;zn++)switch(_r[zn].type){case"bct":_r[zn].x2+=xn,_r[zn].y2+=Fn;case"qct":_r[zn].x1+=xn,_r[zn].y1+=Fn;case"mt":case"lt":case"arc":default:_r[zn].x+=xn,_r[zn].y+=Fn}return _r},On=function(_r){return _r.sort(function(xn,Fn){return xn-Fn})},ci=function(_r,xn){for(var Fn,zn,qn=this.fillStyle,Oi=this.strokeStyle,Li=this.lineCap,Ri=this.lineWidth,Ji=Math.abs(Ri*this.ctx.transform.scaleX),ma=this.lineJoin,la=JSON.parse(JSON.stringify(this.path)),qa=JSON.parse(JSON.stringify(this.path)),bi=[],Sn=0;Sn<qa.length;Sn++)if(qa[Sn].x!==void 0)for(var zi=ln.call(this,qa[Sn]),oa=0;oa<zi.length;oa+=1)bi.indexOf(zi[oa])===-1&&bi.push(zi[oa]);for(var Yi=0;Yi<bi.length;Yi++)for(;this.pdf.internal.getNumberOfPages()<bi[Yi];)an.call(this);if(On(bi),this.autoPaging)for(var ca=bi[0],Hi=bi[bi.length-1],Ia=ca;Ia<Hi+1;Ia++){this.pdf.setPage(Ia),this.fillStyle=qn,this.strokeStyle=Oi,this.lineCap=Li,this.lineWidth=Ji,this.lineJoin=ma;var Da=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Qa=Ia===1?this.posY+this.margin[0]:this.margin[0],Wo=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],po=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Mo=Ia===1?0:Wo+(Ia-2)*po;if(this.ctx.clip_path.length!==0){var Fo=this.path;Fn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Rr(Fn,this.posX+this.margin[3],-Mo+Qa+this.ctx.prevPageLastElemOffset),Ui.call(this,_r,!0),this.path=Fo}if(zn=JSON.parse(JSON.stringify(la)),this.path=Rr(zn,this.posX+this.margin[3],-Mo+Qa+this.ctx.prevPageLastElemOffset),xn===!1||Ia===0){var yo=(Ia>ca||Ia<Hi)&&or.call(this);yo&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Da,po,null).clip().discardPath()),Ui.call(this,_r,xn),yo&&this.pdf.restoreGraphicsState()}this.lineWidth=Ri}else this.lineWidth=Ji,Ui.call(this,_r,xn),this.lineWidth=Ri;this.path=la},Ui=function(_r,xn){if((_r!=="stroke"||xn||!gn.call(this))&&(_r==="stroke"||xn||!$t.call(this))){for(var Fn,zn,qn=[],Oi=this.path,Li=0;Li<Oi.length;Li++){var Ri=Oi[Li];switch(Ri.type){case"begin":qn.push({begin:!0});break;case"close":qn.push({close:!0});break;case"mt":qn.push({start:Ri,deltas:[],abs:[]});break;case"lt":var Ji=qn.length;if(Oi[Li-1]&&!isNaN(Oi[Li-1].x)&&(Fn=[Ri.x-Oi[Li-1].x,Ri.y-Oi[Li-1].y],Ji>0)){for(;Ji>=0;Ji--)if(qn[Ji-1].close!==!0&&qn[Ji-1].begin!==!0){qn[Ji-1].deltas.push(Fn),qn[Ji-1].abs.push(Ri);break}}break;case"bct":Fn=[Ri.x1-Oi[Li-1].x,Ri.y1-Oi[Li-1].y,Ri.x2-Oi[Li-1].x,Ri.y2-Oi[Li-1].y,Ri.x-Oi[Li-1].x,Ri.y-Oi[Li-1].y],qn[qn.length-1].deltas.push(Fn);break;case"qct":var ma=Oi[Li-1].x+2/3*(Ri.x1-Oi[Li-1].x),la=Oi[Li-1].y+2/3*(Ri.y1-Oi[Li-1].y),qa=Ri.x+2/3*(Ri.x1-Ri.x),bi=Ri.y+2/3*(Ri.y1-Ri.y),Sn=Ri.x,zi=Ri.y;Fn=[ma-Oi[Li-1].x,la-Oi[Li-1].y,qa-Oi[Li-1].x,bi-Oi[Li-1].y,Sn-Oi[Li-1].x,zi-Oi[Li-1].y],qn[qn.length-1].deltas.push(Fn);break;case"arc":qn.push({deltas:[],abs:[],arc:!0}),Array.isArray(qn[qn.length-1].abs)&&qn[qn.length-1].abs.push(Ri)}}zn=xn?null:_r==="stroke"?"stroke":"fill";for(var oa=!1,Yi=0;Yi<qn.length;Yi++)if(qn[Yi].arc)for(var ca=qn[Yi].abs,Hi=0;Hi<ca.length;Hi++){var Ia=ca[Hi];Ia.type==="arc"?Ki.call(this,Ia.x,Ia.y,Ia.radius,Ia.startAngle,Ia.endAngle,Ia.counterclockwise,void 0,xn,!oa):Cr.call(this,Ia.x,Ia.y),oa=!0}else if(qn[Yi].close===!0)this.pdf.internal.out("h"),oa=!1;else if(qn[Yi].begin!==!0){var Da=qn[Yi].start.x,Qa=qn[Yi].start.y;Lt.call(this,qn[Yi].deltas,Da,Qa),oa=!0}zn&&Ur.call(this,zn),xn&&Tn.call(this)}},ki=function(_r){var xn=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Fn=xn*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return _r-Fn;case"top":return _r+xn-Fn;case"hanging":return _r+xn-2*Fn;case"middle":return _r+xn/2-Fn;case"ideographic":return _r;case"alphabetic":default:return _r}},Di=function(_r){return _r+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Sr.prototype.createLinearGradient=function(){var dn=function(){};return dn.colorStops=[],dn.addColorStop=function(_r,xn){this.colorStops.push([_r,xn])},dn.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},dn.isCanvasGradient=!0,dn},Sr.prototype.createPattern=function(){return this.createLinearGradient()},Sr.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Ki=function(_r,xn,Fn,zn,qn,Oi,Li,Ri,Ji){for(var ma=Vr.call(this,Fn,zn,qn,Oi),la=0;la<ma.length;la++){var qa=ma[la];la===0&&(Ji?Mr.call(this,qa.x1+_r,qa.y1+xn):Cr.call(this,qa.x1+_r,qa.y1+xn)),wr.call(this,_r,xn,qa.x2,qa.y2,qa.x3,qa.y3,qa.x4,qa.y4)}Ri?Tn.call(this):Ur.call(this,Li)},Ur=function(_r){switch(_r){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Tn=function(){this.pdf.clip(),this.pdf.discardPath()},Mr=function(_r,xn){this.pdf.internal.out(Ne(_r)+" "+Fe(xn)+" m")},mr=function(_r){var xn;switch(_r.align){case"right":case"end":xn="right";break;case"center":xn="center";break;case"left":case"start":default:xn="left"}var Fn=this.pdf.getTextDimensions(_r.text),zn=ki.call(this,_r.y),qn=Di.call(this,zn)-Fn.h,Oi=this.ctx.transform.applyToPoint(new Ze(_r.x,zn)),Li=this.ctx.transform.decompose(),Ri=new it;Ri=(Ri=(Ri=Ri.multiply(Li.translate)).multiply(Li.skew)).multiply(Li.scale);for(var Ji,ma,la,qa=this.ctx.transform.applyToRectangle(new mt(_r.x,zn,Fn.w,Fn.h)),bi=Ri.applyToRectangle(new mt(_r.x,qn,Fn.w,Fn.h)),Sn=ln.call(this,bi),zi=[],oa=0;oa<Sn.length;oa+=1)zi.indexOf(Sn[oa])===-1&&zi.push(Sn[oa]);if(On(zi),this.autoPaging)for(var Yi=zi[0],ca=zi[zi.length-1],Hi=Yi;Hi<ca+1;Hi++){this.pdf.setPage(Hi);var Ia=Hi===1?this.posY+this.margin[0]:this.margin[0],Da=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Qa=this.pdf.internal.pageSize.height-this.margin[2],Wo=Qa-this.margin[0],po=this.pdf.internal.pageSize.width-this.margin[1],Mo=po-this.margin[3],Fo=Hi===1?0:Da+(Hi-2)*Wo;if(this.ctx.clip_path.length!==0){var yo=this.path;Ji=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Rr(Ji,this.posX+this.margin[3],-1*Fo+Ia),Ui.call(this,"fill",!0),this.path=yo}var Oo=Rr([JSON.parse(JSON.stringify(bi))],this.posX+this.margin[3],-Fo+Ia+this.ctx.prevPageLastElemOffset)[0];_r.scale>=.01&&(ma=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ma*_r.scale),la=this.lineWidth,this.lineWidth=la*_r.scale);var sa=this.autoPaging!=="text";if(sa||Oo.y+Oo.h<=Qa){if(sa||Oo.y>=Ia&&Oo.x<=po){var hs=sa?_r.text:this.pdf.splitTextToSize(_r.text,_r.maxWidth||po-Oo.x)[0],Jo=Rr([JSON.parse(JSON.stringify(qa))],this.posX+this.margin[3],-Fo+Ia+this.ctx.prevPageLastElemOffset)[0],wo=sa&&(Hi>Yi||Hi<ca)&&or.call(this);wo&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Mo,Wo,null).clip().discardPath()),this.pdf.text(hs,Jo.x,Jo.y,{angle:_r.angle,align:xn,renderingMode:_r.renderingMode}),wo&&this.pdf.restoreGraphicsState()}}else Oo.y<Qa&&(this.ctx.prevPageLastElemOffset+=Qa-Oo.y);_r.scale>=.01&&(this.pdf.setFontSize(ma),this.lineWidth=la)}else _r.scale>=.01&&(ma=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ma*_r.scale),la=this.lineWidth,this.lineWidth=la*_r.scale),this.pdf.text(_r.text,Oi.x+this.posX,Oi.y+this.posY,{angle:_r.angle,align:xn,renderingMode:_r.renderingMode,maxWidth:_r.maxWidth}),_r.scale>=.01&&(this.pdf.setFontSize(ma),this.lineWidth=la)},Cr=function(_r,xn,Fn,zn){Fn=Fn||0,zn=zn||0,this.pdf.internal.out(Ne(_r+Fn)+" "+Fe(xn+zn)+" l")},Lt=function(_r,xn,Fn){return this.pdf.lines(_r,xn,Fn,null,null)},wr=function(_r,xn,Fn,zn,qn,Oi,Li,Ri){this.pdf.internal.out([we(Ye(Fn+_r)),we(We(zn+xn)),we(Ye(qn+_r)),we(We(Oi+xn)),we(Ye(Li+_r)),we(We(Ri+xn)),"c"].join(" "))},Vr=function(_r,xn,Fn,zn){for(var qn=2*Math.PI,Oi=Math.PI/2;xn>Fn;)xn-=qn;var Li=Math.abs(Fn-xn);Li<qn&&zn&&(Li=qn-Li);for(var Ri=[],Ji=zn?-1:1,ma=xn;Li>1e-5;){var la=ma+Ji*Math.min(Li,Oi);Ri.push(jr.call(this,_r,ma,la)),Li-=Math.abs(la-ma),ma=la}return Ri},jr=function(_r,xn,Fn){var zn=(Fn-xn)/2,qn=_r*Math.cos(zn),Oi=_r*Math.sin(zn),Li=qn,Ri=-Oi,Ji=Li*Li+Ri*Ri,ma=Ji+Li*qn+Ri*Oi,la=4/3*(Math.sqrt(2*Ji*ma)-ma)/(Li*Oi-Ri*qn),qa=Li-la*Ri,bi=Ri+la*Li,Sn=qa,zi=-bi,oa=zn+xn,Yi=Math.cos(oa),ca=Math.sin(oa);return{x1:_r*Math.cos(xn),y1:_r*Math.sin(xn),x2:qa*Yi-bi*ca,y2:qa*ca+bi*Yi,x3:Sn*Yi-zi*ca,y3:Sn*ca+zi*Yi,x4:_r*Math.cos(Fn),y4:_r*Math.sin(Fn)}},qr=function(_r){return 180*_r/Math.PI},oi=function(_r,xn,Fn,zn,qn,Oi){var Li=_r+.5*(Fn-_r),Ri=xn+.5*(zn-xn),Ji=qn+.5*(Fn-qn),ma=Oi+.5*(zn-Oi),la=Math.min(_r,qn,Li,Ji),qa=Math.max(_r,qn,Li,Ji),bi=Math.min(xn,Oi,Ri,ma),Sn=Math.max(xn,Oi,Ri,ma);return new mt(la,bi,qa-la,Sn-bi)},Vn=function(_r,xn,Fn,zn,qn,Oi,Li,Ri){var Ji,ma,la,qa,bi,Sn,zi,oa,Yi,ca,Hi,Ia,Da,Qa,Wo=Fn-_r,po=zn-xn,Mo=qn-Fn,Fo=Oi-zn,yo=Li-qn,Oo=Ri-Oi;for(ma=0;ma<41;ma++)Yi=(zi=(la=_r+(Ji=ma/40)*Wo)+Ji*((bi=Fn+Ji*Mo)-la))+Ji*(bi+Ji*(qn+Ji*yo-bi)-zi),ca=(oa=(qa=xn+Ji*po)+Ji*((Sn=zn+Ji*Fo)-qa))+Ji*(Sn+Ji*(Oi+Ji*Oo-Sn)-oa),ma==0?(Hi=Yi,Ia=ca,Da=Yi,Qa=ca):(Hi=Math.min(Hi,Yi),Ia=Math.min(Ia,ca),Da=Math.max(Da,Yi),Qa=Math.max(Qa,ca));return new mt(Math.round(Hi),Math.round(Ia),Math.round(Da-Hi),Math.round(Qa-Ia))},Ti=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var _r,xn,Fn=(_r=this.ctx.lineDash,xn=this.ctx.lineDashOffset,JSON.stringify({lineDash:_r,lineDashOffset:xn}));this.prevLineDash!==Fn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Fn)}}}(j.API),function(Qe){var we=function(Ze){var mt,it,Jt,Dr,Sr,Br,$t,gn,or,ln;for(/[^\x00-\xFF]/.test(Ze),it=[],Jt=0,Dr=(Ze+=mt="\0\0\0\0".slice(Ze.length%4||4)).length;Dr>Jt;Jt+=4)(Sr=(Ze.charCodeAt(Jt)<<24)+(Ze.charCodeAt(Jt+1)<<16)+(Ze.charCodeAt(Jt+2)<<8)+Ze.charCodeAt(Jt+3))!==0?(Br=(Sr=((Sr=((Sr=((Sr=(Sr-(ln=Sr%85))/85)-(or=Sr%85))/85)-(gn=Sr%85))/85)-($t=Sr%85))/85)%85,it.push(Br+33,$t+33,gn+33,or+33,ln+33)):it.push(122);return function(an,Rr){for(var On=Rr;On>0;On--)an.pop()}(it,mt.length),String.fromCharCode.apply(String,it)+"~>"},Ne=function(Ze){var mt,it,Jt,Dr,Sr,Br=String,$t="length",gn=255,or="charCodeAt",ln="slice",an="replace";for(Ze[ln](-2),Ze=Ze[ln](0,-2)[an](/\s/g,"")[an]("z","!!!!!"),Jt=[],Dr=0,Sr=(Ze+=mt="uuuuu"[ln](Ze[$t]%5||5))[$t];Sr>Dr;Dr+=5)it=52200625*(Ze[or](Dr)-33)+614125*(Ze[or](Dr+1)-33)+7225*(Ze[or](Dr+2)-33)+85*(Ze[or](Dr+3)-33)+(Ze[or](Dr+4)-33),Jt.push(gn&it>>24,gn&it>>16,gn&it>>8,gn&it);return function(Rr,On){for(var ci=On;ci>0;ci--)Rr.pop()}(Jt,mt[$t]),Br.fromCharCode.apply(Br,Jt)},Fe=function(Ze){var mt=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((Ze=Ze.replace(/\s/g,"")).indexOf(">")!==-1&&(Ze=Ze.substr(0,Ze.indexOf(">"))),Ze.length%2&&(Ze+="0"),mt.test(Ze)===!1)return"";for(var it="",Jt=0;Jt<Ze.length;Jt+=2)it+=String.fromCharCode("0x"+(Ze[Jt]+Ze[Jt+1]));return it},Ye=function(Ze){for(var mt=new Uint8Array(Ze.length),it=Ze.length;it--;)mt[it]=Ze.charCodeAt(it);return Ze=(mt=Object(A.b)(mt)).reduce(function(Jt,Dr){return Jt+String.fromCharCode(Dr)},"")};Qe.processDataByFilters=function(We,Ze){var mt=0,it=We||"",Jt=[];for(typeof(Ze=Ze||[])=="string"&&(Ze=[Ze]),mt=0;mt<Ze.length;mt+=1)switch(Ze[mt]){case"ASCII85Decode":case"/ASCII85Decode":it=Ne(it),Jt.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":it=we(it),Jt.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":it=Fe(it),Jt.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":it=it.split("").map(function(Dr){return("0"+Dr.charCodeAt().toString(16)).slice(-2)}).join("")+">",Jt.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":it=Ye(it),Jt.push("/FlateDecode");break;default:throw new Error('The filter: "'+Ze[mt]+'" is not implemented')}return{data:it,reverseChain:Jt.reverse().join(" ")}}}(j.API),function(Qe){Qe.loadFile=function(we,Ne,Fe){return function(Ye,We,Ze){We=We!==!1,Ze=typeof Ze=="function"?Ze:function(){};var mt=void 0;try{mt=function(it,Jt,Dr){var Sr=new XMLHttpRequest,Br=0,$t=function(or){var ln=or.length,an=[],Rr=String.fromCharCode;for(Br=0;Br<ln;Br+=1)an.push(Rr(255&or.charCodeAt(Br)));return an.join("")};if(Sr.open("GET",it,!Jt),Sr.overrideMimeType("text/plain; charset=x-user-defined"),Jt===!1&&(Sr.onload=function(){Sr.status===200?Dr($t(this.responseText)):Dr(void 0)}),Sr.send(null),Jt&&Sr.status===200)return $t(Sr.responseText)}(Ye,We,Ze)}catch(it){}return mt}(we,Ne,Fe)},Qe.loadImageFile=Qe.loadFile}(j.API),function(Qe){function we(){return(S.html2canvas?Promise.resolve(S.html2canvas):Promise.resolve().then(d.t.bind(null,"wOnQ",7))).catch(function(Ze){return Promise.reject(new Error("Could not load html2canvas: "+Ze))}).then(function(Ze){return Ze.default?Ze.default:Ze})}function Ne(){return(S.DOMPurify?Promise.resolve(S.DOMPurify):d.e(246).then(d.t.bind(null,"qZ2Q",7))).catch(function(Ze){return Promise.reject(new Error("Could not load dompurify: "+Ze))}).then(function(Ze){return Ze.default?Ze.default:Ze})}var Fe=function(mt){var it=C()(mt);return it==="undefined"?"undefined":it==="string"||mt instanceof String?"string":it==="number"||mt instanceof Number?"number":it==="function"||mt instanceof Function?"function":mt&&mt.constructor===Array?"array":mt&&mt.nodeType===1?"element":it==="object"?"object":"unknown"},Ye=function(mt,it){var Jt=document.createElement(mt);for(var Dr in it.className&&(Jt.className=it.className),it.innerHTML&&it.dompurify&&(Jt.innerHTML=it.dompurify.sanitize(it.innerHTML)),it.style)Jt.style[Dr]=it.style[Dr];return Jt},We=function Ze(mt){var it=Object.assign(Ze.convert(Promise.resolve()),JSON.parse(JSON.stringify(Ze.template))),Jt=Ze.convert(Promise.resolve(),it);return Jt=(Jt=Jt.setProgress(1,Ze,1,[Ze])).set(mt)};(We.prototype=Object.create(Promise.prototype)).constructor=We,We.convert=function(Ze,mt){return Ze.__proto__=mt||We.prototype,Ze},We.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"}},We.prototype.from=function(Ze,mt){return this.then(function(){switch(mt=mt||function(it){switch(Fe(it)){case"string":return"string";case"element":return it.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(Ze)){case"string":return this.then(Ne).then(function(it){return this.set({src:Ye("div",{innerHTML:Ze,dompurify:it})})});case"element":return this.set({src:Ze});case"canvas":return this.set({canvas:Ze});case"img":return this.set({img:Ze});default:return this.error("Unknown source type.")}})},We.prototype.to=function(Ze){switch(Ze){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.")}},We.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 Ze={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},mt=function it(Jt,Dr){for(var Sr=Jt.nodeType===3?document.createTextNode(Jt.nodeValue):Jt.cloneNode(!1),Br=Jt.firstChild;Br;Br=Br.nextSibling)Dr!==!0&&Br.nodeType===1&&Br.nodeName==="SCRIPT"||Sr.appendChild(it(Br,Dr));return Jt.nodeType===1&&(Jt.nodeName==="CANVAS"?(Sr.width=Jt.width,Sr.height=Jt.height,Sr.getContext("2d").drawImage(Jt,0,0)):Jt.nodeName!=="TEXTAREA"&&Jt.nodeName!=="SELECT"||(Sr.value=Jt.value),Sr.addEventListener("load",function(){Sr.scrollTop=Jt.scrollTop,Sr.scrollLeft=Jt.scrollLeft},!0)),Sr}(this.prop.src,this.opt.html2canvas.javascriptEnabled);mt.tagName==="BODY"&&(Ze.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=Ye("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=Ye("div",{className:"html2pdf__container",style:Ze}),this.prop.container.appendChild(mt),this.prop.container.firstChild.appendChild(Ye("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},We.prototype.toCanvas=function(){var Ze=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Ze).then(we).then(function(mt){var it=Object.assign({},this.opt.html2canvas);return delete it.onrendered,mt(this.prop.container,it)}).then(function(mt){(this.opt.html2canvas.onrendered||function(){})(mt),this.prop.canvas=mt,document.body.removeChild(this.prop.overlay)})},We.prototype.toContext2d=function(){var Ze=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Ze).then(we).then(function(mt){var it=this.opt.jsPDF,Jt=this.opt.fontFaces,Dr=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,Sr=Object.assign({async:!0,allowTaint:!0,scale:Dr,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 Sr.onrendered,it.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,it.context2d.posX=this.opt.x,it.context2d.posY=this.opt.y,it.context2d.margin=this.opt.margin,it.context2d.fontFaces=Jt,Jt)for(var Br=0;Br<Jt.length;++Br){var $t=Jt[Br],gn=$t.src.find(function(or){return or.format==="truetype"});gn&&it.addFont(gn.url,$t.ref.name,$t.ref.style)}return Sr.windowHeight=Sr.windowHeight||0,Sr.windowHeight=Sr.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Sr.windowHeight,it.context2d.save(!0),mt(this.prop.container,Sr)}).then(function(mt){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(mt),this.prop.canvas=mt,document.body.removeChild(this.prop.overlay)})},We.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var Ze=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Ze})},We.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},We.prototype.output=function(Ze,mt,it){return(it=it||"pdf").toLowerCase()==="img"||it.toLowerCase()==="image"?this.outputImg(Ze,mt):this.outputPdf(Ze,mt)},We.prototype.outputPdf=function(Ze,mt){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(Ze,mt)})},We.prototype.outputImg=function(Ze){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(Ze){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 "'+Ze+'" is not supported.'}})},We.prototype.save=function(Ze){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(Ze?{filename:Ze}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},We.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},We.prototype.set=function(Ze){if(Fe(Ze)!=="object")return this;var mt=Object.keys(Ze||{}).map(function(it){if(it in We.template.prop)return function(){this.prop[it]=Ze[it]};switch(it){case"margin":return this.setMargin.bind(this,Ze.margin);case"jsPDF":return function(){return this.opt.jsPDF=Ze.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,Ze.pageSize);default:return function(){this.opt[it]=Ze[it]}}},this);return this.then(function(){return this.thenList(mt)})},We.prototype.get=function(Ze,mt){return this.then(function(){var it=Ze in We.template.prop?this.prop[Ze]:this.opt[Ze];return mt?mt(it):it})},We.prototype.setMargin=function(Ze){return this.then(function(){switch(Fe(Ze)){case"number":Ze=[Ze,Ze,Ze,Ze];case"array":if(Ze.length===2&&(Ze=[Ze[0],Ze[1],Ze[0],Ze[1]]),Ze.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=Ze}).then(this.setPageSize)},We.prototype.setPageSize=function(Ze){function mt(it,Jt){return Math.floor(it*Jt/72*96)}return this.then(function(){(Ze=Ze||j.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(Ze.inner={width:Ze.width-this.opt.margin[1]-this.opt.margin[3],height:Ze.height-this.opt.margin[0]-this.opt.margin[2]},Ze.inner.px={width:mt(Ze.inner.width,Ze.k),height:mt(Ze.inner.height,Ze.k)},Ze.inner.ratio=Ze.inner.height/Ze.inner.width),this.prop.pageSize=Ze})},We.prototype.setProgress=function(Ze,mt,it,Jt){return Ze!=null&&(this.progress.val=Ze),mt!=null&&(this.progress.state=mt),it!=null&&(this.progress.n=it),Jt!=null&&(this.progress.stack=Jt),this.progress.ratio=this.progress.val/this.progress.state,this},We.prototype.updateProgress=function(Ze,mt,it,Jt){return this.setProgress(Ze?this.progress.val+Ze:null,mt||null,it?this.progress.n+it:null,Jt?this.progress.stack.concat(Jt):null)},We.prototype.then=function(Ze,mt){var it=this;return this.thenCore(Ze,mt,function(Jt,Dr){return it.updateProgress(null,null,1,[Jt]),Promise.prototype.then.call(this,function(Sr){return it.updateProgress(null,Jt),Sr}).then(Jt,Dr).then(function(Sr){return it.updateProgress(1),Sr})})},We.prototype.thenCore=function(Ze,mt,it){it=it||Promise.prototype.then,Ze&&(Ze=Ze.bind(this)),mt&&(mt=mt.bind(this));var Jt=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:We.convert(Object.assign({},this),Promise.prototype),Dr=it.call(Jt,Ze,mt);return We.convert(Dr,this.__proto__)},We.prototype.thenExternal=function(Ze,mt){return Promise.prototype.then.call(this,Ze,mt)},We.prototype.thenList=function(Ze){var mt=this;return Ze.forEach(function(it){mt=mt.thenCore(it)}),mt},We.prototype.catch=function(Ze){Ze&&(Ze=Ze.bind(this));var mt=Promise.prototype.catch.call(this,Ze);return We.convert(mt,this)},We.prototype.catchExternal=function(Ze){return Promise.prototype.catch.call(this,Ze)},We.prototype.error=function(Ze){return this.then(function(){throw new Error(Ze)})},We.prototype.using=We.prototype.set,We.prototype.saveAs=We.prototype.save,We.prototype.export=We.prototype.output,We.prototype.run=We.prototype.then,j.getPageSize=function(Ze,mt,it){if(C()(Ze)==="object"){var Jt=Ze;Ze=Jt.orientation,mt=Jt.unit||mt,it=Jt.format||it}mt=mt||"mm",it=it||"a4",Ze=(""+(Ze||"P")).toLowerCase();var Dr,Sr=(""+it).toLowerCase(),Br={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(mt){case"pt":Dr=1;break;case"mm":Dr=72/25.4;break;case"cm":Dr=72/2.54;break;case"in":Dr=72;break;case"px":Dr=.75;break;case"pc":case"em":Dr=12;break;case"ex":Dr=6;break;default:throw"Invalid unit: "+mt}var $t,gn=0,or=0;if(Br.hasOwnProperty(Sr))gn=Br[Sr][1]/Dr,or=Br[Sr][0]/Dr;else try{gn=it[1],or=it[0]}catch(ln){throw new Error("Invalid format: "+it)}if(Ze==="p"||Ze==="portrait")Ze="p",or>gn&&($t=or,or=gn,gn=$t);else{if(Ze!=="l"&&Ze!=="landscape")throw"Invalid orientation: "+Ze;Ze="l",gn>or&&($t=or,or=gn,gn=$t)}return{width:or,height:gn,unit:mt,k:Dr,orientation:Ze}},Qe.html=function(Ze,mt){(mt=mt||{}).callback=mt.callback||function(){},mt.html2canvas=mt.html2canvas||{},mt.html2canvas.canvas=mt.html2canvas.canvas||this.canvas,mt.jsPDF=mt.jsPDF||this,mt.fontFaces=mt.fontFaces?mt.fontFaces.map($r):null;var it=new We(mt);return mt.worker?it:it.from(Ze).doCallback()}}(j.API),j.API.addJS=function(Qe){return wn=Qe,this.internal.events.subscribe("postPutResources",function(){Yn=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Yn+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Mi=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+wn+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Yn!==void 0&&Mi!==void 0&&this.internal.out("/Names <</JavaScript "+Yn+" 0 R>>")}),this},function(Qe){var we;Qe.events.push(["postPutResources",function(){var Ne=this,Fe=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var Ye=Ne.outline.render().split(/\r\n/),We=0;We<Ye.length;We++){var Ze=Ye[We],mt=Fe.exec(Ze);if(mt!=null){var it=mt[1];Ne.internal.newObjectDeferredBegin(it,!1)}Ne.internal.write(Ze)}if(this.outline.createNamedDestinations){var Jt=this.internal.pages.length,Dr=[];for(We=0;We<Jt;We++){var Sr=Ne.internal.newObject();Dr.push(Sr);var Br=Ne.internal.getPageInfo(We+1);Ne.internal.write("<< /D["+Br.objId+" 0 R /XYZ null null null]>> endobj")}var $t=Ne.internal.newObject();for(Ne.internal.write("<< /Names [ "),We=0;We<Dr.length;We++)Ne.internal.write("(page_"+(We+1)+")"+Dr[We]+" 0 R");Ne.internal.write(" ] >>","endobj"),we=Ne.internal.newObject(),Ne.internal.write("<< /Dests "+$t+" 0 R"),Ne.internal.write(">>","endobj")}}]),Qe.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+we+" 0 R"))}]),Qe.events.push(["initialized",function(){var Ne=this;Ne.outline={createNamedDestinations:!1,root:{children:[]}},Ne.outline.add=function(Fe,Ye,We){var Ze={title:Ye,options:We,children:[]};return Fe==null&&(Fe=this.root),Fe.children.push(Ze),Ze},Ne.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=Ne,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},Ne.outline.genIds_r=function(Fe){Fe.id=Ne.internal.newObjectDeferred();for(var Ye=0;Ye<Fe.children.length;Ye++)this.genIds_r(Fe.children[Ye])},Ne.outline.renderRoot=function(Fe){this.objStart(Fe),this.line("/Type /Outlines"),Fe.children.length>0&&(this.line("/First "+this.makeRef(Fe.children[0])),this.line("/Last "+this.makeRef(Fe.children[Fe.children.length-1]))),this.line("/Count "+this.count_r({count:0},Fe)),this.objEnd()},Ne.outline.renderItems=function(Fe){for(var Ye=this.ctx.pdf.internal.getVerticalCoordinateString,We=0;We<Fe.children.length;We++){var Ze=Fe.children[We];this.objStart(Ze),this.line("/Title "+this.makeString(Ze.title)),this.line("/Parent "+this.makeRef(Fe)),We>0&&this.line("/Prev "+this.makeRef(Fe.children[We-1])),We<Fe.children.length-1&&this.line("/Next "+this.makeRef(Fe.children[We+1])),Ze.children.length>0&&(this.line("/First "+this.makeRef(Ze.children[0])),this.line("/Last "+this.makeRef(Ze.children[Ze.children.length-1])));var mt=this.count=this.count_r({count:0},Ze);if(mt>0&&this.line("/Count "+mt),Ze.options&&Ze.options.pageNumber){var it=Ne.internal.getPageInfo(Ze.options.pageNumber);this.line("/Dest ["+it.objId+" 0 R /XYZ 0 "+Ye(0)+" 0]")}this.objEnd()}for(var Jt=0;Jt<Fe.children.length;Jt++)this.renderItems(Fe.children[Jt])},Ne.outline.line=function(Fe){this.ctx.val+=Fe+`\r
|
|
|
`},Ne.outline.makeRef=function(Fe){return Fe.id+" 0 R"},Ne.outline.makeString=function(Fe){return"("+Ne.internal.pdfEscape(Fe)+")"},Ne.outline.objStart=function(Fe){this.ctx.val+=`\r
|
|
|
`+Fe.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},Ne.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},Ne.outline.count_r=function(Fe,Ye){for(var We=0;We<Ye.children.length;We++)Fe.count++,this.count_r(Fe,Ye.children[We]);return Fe.count}}])}(j.API),function(Qe){var we=[192,193,194,195,196,197,198,199];Qe.processJPEG=function(Ne,Fe,Ye,We,Ze,mt){var it,Jt=this.decode.DCT_DECODE,Dr=null;if(typeof Ne=="string"||this.__addimage__.isArrayBuffer(Ne)||this.__addimage__.isArrayBufferView(Ne)){switch(Ne=Ze||Ne,Ne=this.__addimage__.isArrayBuffer(Ne)?new Uint8Array(Ne):Ne,(it=function(Sr){for(var Br,$t=256*Sr.charCodeAt(4)+Sr.charCodeAt(5),gn=Sr.length,or={width:0,height:0,numcomponents:1},ln=4;ln<gn;ln+=2){if(ln+=$t,we.indexOf(Sr.charCodeAt(ln+1))!==-1){Br=256*Sr.charCodeAt(ln+5)+Sr.charCodeAt(ln+6),or={width:256*Sr.charCodeAt(ln+7)+Sr.charCodeAt(ln+8),height:Br,numcomponents:Sr.charCodeAt(ln+9)};break}$t=256*Sr.charCodeAt(ln+2)+Sr.charCodeAt(ln+3)}return or}(Ne=this.__addimage__.isArrayBufferView(Ne)?this.__addimage__.arrayBufferToBinaryString(Ne):Ne)).numcomponents){case 1:mt=this.color_spaces.DEVICE_GRAY;break;case 4:mt=this.color_spaces.DEVICE_CMYK;break;case 3:mt=this.color_spaces.DEVICE_RGB}Dr={data:Ne,width:it.width,height:it.height,colorSpace:mt,bitsPerComponent:8,filter:Jt,index:Fe,alias:Ye}}return Dr}}(j.API);var kt,vt,Re,Ke,Pe,nt=function(){var Qe,we,Ne;function Fe(We){var Ze,mt,it,Jt,Dr,Sr,Br,$t,gn,or,ln,an,Rr,On;for(this.data=We,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Sr=null;;){switch(Ze=this.readUInt32(),gn=function(){var ci,Ui;for(Ui=[],ci=0;ci<4;++ci)Ui.push(String.fromCharCode(this.data[this.pos++]));return Ui}.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(Ze);break;case"fcTL":Sr&&this.animation.frames.push(Sr),this.pos+=4,Sr={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},Dr=this.readUInt16(),Jt=this.readUInt16()||100,Sr.delay=1e3*Dr/Jt,Sr.disposeOp=this.data[this.pos++],Sr.blendOp=this.data[this.pos++],Sr.data=[];break;case"IDAT":case"fdAT":for(gn==="fdAT"&&(this.pos+=4,Ze-=4),We=(Sr!=null?Sr.data:void 0)||this.imgData,an=0;0<=Ze?an<Ze:an>Ze;0<=Ze?++an:--an)We.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(it=this.palette.length/3,this.transparency.indexed=this.read(Ze),this.transparency.indexed.length>it)throw new Error("More transparent colors than palette size");if((or=it-this.transparency.indexed.length)>0)for(Rr=0;0<=or?Rr<or:Rr>or;0<=or?++Rr:--Rr)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(Ze)[0];break;case 2:this.transparency.rgb=this.read(Ze)}break;case"tEXt":Br=(ln=this.read(Ze)).indexOf(0),$t=String.fromCharCode.apply(String,ln.slice(0,Br)),this.text[$t]=String.fromCharCode.apply(String,ln.slice(Br+1));break;case"IEND":return Sr&&this.animation.frames.push(Sr),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(On=this.colorType)===4||On===6,mt=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*mt,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+=Ze}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}Fe.prototype.read=function(We){var Ze,mt;for(mt=[],Ze=0;0<=We?Ze<We:Ze>We;0<=We?++Ze:--Ze)mt.push(this.data[this.pos++]);return mt},Fe.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},Fe.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},Fe.prototype.decodePixels=function(We){var Ze=this.pixelBitlength/8,mt=new Uint8Array(this.width*this.height*Ze),it=0,Jt=this;if(We==null&&(We=this.imgData),We.length===0)return new Uint8Array(0);function Dr(Sr,Br,$t,gn){var or,ln,an,Rr,On,ci,Ui,ki,Di,Ki,Ur,Tn,Mr,mr,Cr,Lt,wr,Vr,jr,qr,oi,Vn=Math.ceil((Jt.width-Sr)/$t),Ti=Math.ceil((Jt.height-Br)/gn),dn=Jt.width==Vn&&Jt.height==Ti;for(mr=Ze*Vn,Tn=dn?mt:new Uint8Array(mr*Ti),ci=We.length,Mr=0,ln=0;Mr<Ti&&it<ci;){switch(We[it++]){case 0:for(Rr=wr=0;wr<mr;Rr=wr+=1)Tn[ln++]=We[it++];break;case 1:for(Rr=Vr=0;Vr<mr;Rr=Vr+=1)or=We[it++],On=Rr<Ze?0:Tn[ln-Ze],Tn[ln++]=(or+On)%256;break;case 2:for(Rr=jr=0;jr<mr;Rr=jr+=1)or=We[it++],an=(Rr-Rr%Ze)/Ze,Cr=Mr&&Tn[(Mr-1)*mr+an*Ze+Rr%Ze],Tn[ln++]=(Cr+or)%256;break;case 3:for(Rr=qr=0;qr<mr;Rr=qr+=1)or=We[it++],an=(Rr-Rr%Ze)/Ze,On=Rr<Ze?0:Tn[ln-Ze],Cr=Mr&&Tn[(Mr-1)*mr+an*Ze+Rr%Ze],Tn[ln++]=(or+Math.floor((On+Cr)/2))%256;break;case 4:for(Rr=oi=0;oi<mr;Rr=oi+=1)or=We[it++],an=(Rr-Rr%Ze)/Ze,On=Rr<Ze?0:Tn[ln-Ze],Mr===0?Cr=Lt=0:(Cr=Tn[(Mr-1)*mr+an*Ze+Rr%Ze],Lt=an&&Tn[(Mr-1)*mr+(an-1)*Ze+Rr%Ze]),Ui=On+Cr-Lt,ki=Math.abs(Ui-On),Ki=Math.abs(Ui-Cr),Ur=Math.abs(Ui-Lt),Di=ki<=Ki&&ki<=Ur?On:Ki<=Ur?Cr:Lt,Tn[ln++]=(or+Di)%256;break;default:throw new Error("Invalid filter algorithm: "+We[it-1])}if(!dn){var _r=((Br+Mr*gn)*Jt.width+Sr)*Ze,xn=Mr*mr;for(Rr=0;Rr<Vn;Rr+=1){for(var Fn=0;Fn<Ze;Fn+=1)mt[_r++]=Tn[xn++];_r+=($t-1)*Ze}}Mr++}}return We=Object(A.a)(We),Jt.interlaceMethod==1?(Dr(0,0,8,8),Dr(4,0,8,8),Dr(0,4,4,8),Dr(2,0,4,4),Dr(0,2,2,4),Dr(1,0,2,2),Dr(0,1,1,2)):Dr(0,0,1,1),mt},Fe.prototype.decodePalette=function(){var We,Ze,mt,it,Jt,Dr,Sr,Br,$t;for(mt=this.palette,Dr=this.transparency.indexed||[],Jt=new Uint8Array((Dr.length||0)+mt.length),it=0,We=0,Ze=Sr=0,Br=mt.length;Sr<Br;Ze=Sr+=3)Jt[it++]=mt[Ze],Jt[it++]=mt[Ze+1],Jt[it++]=mt[Ze+2],Jt[it++]=($t=Dr[We++])!=null?$t:255;return Jt},Fe.prototype.copyToImageData=function(We,Ze){var mt,it,Jt,Dr,Sr,Br,$t,gn,or,ln,an;if(it=this.colors,or=null,mt=this.hasAlphaChannel,this.palette.length&&(or=(an=this._decodedPalette)!=null?an:this._decodedPalette=this.decodePalette(),it=4,mt=!0),gn=(Jt=We.data||We).length,Sr=or||Ze,Dr=Br=0,it===1)for(;Dr<gn;)$t=or?4*Ze[Dr/4]:Br,ln=Sr[$t++],Jt[Dr++]=ln,Jt[Dr++]=ln,Jt[Dr++]=ln,Jt[Dr++]=mt?Sr[$t++]:255,Br=$t;else for(;Dr<gn;)$t=or?4*Ze[Dr/4]:Br,Jt[Dr++]=Sr[$t++],Jt[Dr++]=Sr[$t++],Jt[Dr++]=Sr[$t++],Jt[Dr++]=mt?Sr[$t++]:255,Br=$t},Fe.prototype.decode=function(){var We;return We=new Uint8Array(this.width*this.height*4),this.copyToImageData(We,this.decodePixels()),We};var Ye=function(){if(Object.prototype.toString.call(S)==="[object Window]"){try{we=S.document.createElement("canvas"),Ne=we.getContext("2d")}catch(Ze){return!1}return!0}return!1};return Ye(),Qe=function(Ze){var mt;if(Ye()===!0)return Ne.width=Ze.width,Ne.height=Ze.height,Ne.clearRect(0,0,Ze.width,Ze.height),Ne.putImageData(Ze,0,0),(mt=new Image).src=we.toDataURL(),mt;throw new Error("This method requires a Browser with Canvas-capability.")},Fe.prototype.decodeFrames=function(We){var Ze,mt,it,Jt,Dr,Sr,Br,$t;if(this.animation){for($t=[],mt=Dr=0,Sr=(Br=this.animation.frames).length;Dr<Sr;mt=++Dr)Ze=Br[mt],it=We.createImageData(Ze.width,Ze.height),Jt=this.decodePixels(new Uint8Array(Ze.data)),this.copyToImageData(it,Jt),Ze.imageData=it,$t.push(Ze.image=Qe(it));return $t}},Fe.prototype.renderFrame=function(We,Ze){var mt,it,Jt;return mt=(it=this.animation.frames)[Ze],Jt=it[Ze-1],Ze===0&&We.clearRect(0,0,this.width,this.height),(Jt!=null?Jt.disposeOp:void 0)===1?We.clearRect(Jt.xOffset,Jt.yOffset,Jt.width,Jt.height):(Jt!=null?Jt.disposeOp:void 0)===2&&We.putImageData(Jt.imageData,Jt.xOffset,Jt.yOffset),mt.blendOp===0&&We.clearRect(mt.xOffset,mt.yOffset,mt.width,mt.height),We.drawImage(mt.image,mt.xOffset,mt.yOffset)},Fe.prototype.animate=function(We){var Ze,mt,it,Jt,Dr,Sr,Br=this;return mt=0,Sr=this.animation,Jt=Sr.numFrames,it=Sr.frames,Dr=Sr.numPlays,(Ze=function(){var gn,or;if(gn=mt++%Jt,or=it[gn],Br.renderFrame(We,gn),Jt>1&&mt/Jt<Dr)return Br.animation._timeout=setTimeout(Ze,or.delay)})()},Fe.prototype.stopAnimation=function(){var We;return clearTimeout((We=this.animation)!=null?We._timeout:void 0)},Fe.prototype.render=function(We){var Ze,mt;return We._png&&We._png.stopAnimation(),We._png=this,We.width=this.width,We.height=this.height,Ze=We.getContext("2d"),this.animation?(this.decodeFrames(Ze),this.animate(Ze)):(mt=Ze.createImageData(this.width,this.height),this.copyToImageData(mt,this.decodePixels()),Ze.putImageData(mt,0,0))},Fe}();/**
|
|
|
* @license
|
|
|
*
|
|
|
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
|
|
|
*
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining
|
|
|
* a copy of this software and associated documentation files (the
|
|
|
* "Software"), to deal in the Software without restriction, including
|
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
|
* permit persons to whom the Software is furnished to do so, subject to
|
|
|
* the following conditions:
|
|
|
*
|
|
|
* The above copyright notice and this permission notice shall be
|
|
|
* included in all copies or substantial portions of the Software.
|
|
|
*
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
|
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
* ====================================================================
|
|
|
*//**
|
|
|
* @license
|
|
|
* (c) Dean McNamee <dean@gmail.com>, 2013.
|
|
|
*
|
|
|
* https://github.com/deanm/omggif
|
|
|
*
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
* of this software and associated documentation files (the "Software"), to
|
|
|
* deal in the Software without restriction, including without limitation the
|
|
|
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
|
* sell copies of the Software, and to permit persons to whom the Software is
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
*
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
* all copies or substantial portions of the Software.
|
|
|
*
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
|
* IN THE SOFTWARE.
|
|
|
*
|
|
|
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
|
|
|
* including animation and compression. It does not rely on any specific
|
|
|
* underlying system, so should run in the browser, Node, or Plask.
|
|
|
*/function yt(Qe){var we=0;if(Qe[we++]!==71||Qe[we++]!==73||Qe[we++]!==70||Qe[we++]!==56||(Qe[we++]+1&253)!=56||Qe[we++]!==97)throw new Error("Invalid GIF 87a/89a header.");var Ne=Qe[we++]|Qe[we++]<<8,Fe=Qe[we++]|Qe[we++]<<8,Ye=Qe[we++],We=Ye>>7,Ze=1<<(7&Ye)+1;Qe[we++],Qe[we++];var mt=null,it=null;We&&(mt=we,it=Ze,we+=3*Ze);var Jt=!0,Dr=[],Sr=0,Br=null,$t=0,gn=null;for(this.width=Ne,this.height=Fe;Jt&&we<Qe.length;)switch(Qe[we++]){case 33:switch(Qe[we++]){case 255:if(Qe[we]!==11||Qe[we+1]==78&&Qe[we+2]==69&&Qe[we+3]==84&&Qe[we+4]==83&&Qe[we+5]==67&&Qe[we+6]==65&&Qe[we+7]==80&&Qe[we+8]==69&&Qe[we+9]==50&&Qe[we+10]==46&&Qe[we+11]==48&&Qe[we+12]==3&&Qe[we+13]==1&&Qe[we+16]==0)we+=14,gn=Qe[we++]|Qe[we++]<<8,we++;else for(we+=12;;){if(!((Mr=Qe[we++])>=0))throw Error("Invalid block size");if(Mr===0)break;we+=Mr}break;case 249:if(Qe[we++]!==4||Qe[we+4]!==0)throw new Error("Invalid graphics extension block.");var or=Qe[we++];Sr=Qe[we++]|Qe[we++]<<8,Br=Qe[we++],(1&or)==0&&(Br=null),$t=or>>2&7,we++;break;case 254:for(;;){if(!((Mr=Qe[we++])>=0))throw Error("Invalid block size");if(Mr===0)break;we+=Mr}break;default:throw new Error("Unknown graphic control label: 0x"+Qe[we-1].toString(16))}break;case 44:var ln=Qe[we++]|Qe[we++]<<8,an=Qe[we++]|Qe[we++]<<8,Rr=Qe[we++]|Qe[we++]<<8,On=Qe[we++]|Qe[we++]<<8,ci=Qe[we++],Ui=ci>>6&1,ki=1<<(7&ci)+1,Di=mt,Ki=it,Ur=!1;ci>>7&&(Ur=!0,Di=we,Ki=ki,we+=3*ki);var Tn=we;for(we++;;){var Mr;if(!((Mr=Qe[we++])>=0))throw Error("Invalid block size");if(Mr===0)break;we+=Mr}Dr.push({x:ln,y:an,width:Rr,height:On,has_local_palette:Ur,palette_offset:Di,palette_size:Ki,data_offset:Tn,data_length:we-Tn,transparent_index:Br,interlaced:!!Ui,delay:Sr,disposal:$t});break;case 59:Jt=!1;break;default:throw new Error("Unknown gif block: 0x"+Qe[we-1].toString(16))}this.numFrames=function(){return Dr.length},this.loopCount=function(){return gn},this.frameInfo=function(mr){if(mr<0||mr>=Dr.length)throw new Error("Frame index out of range.");return Dr[mr]},this.decodeAndBlitFrameBGRA=function(mr,Cr){var Lt=this.frameInfo(mr),wr=Lt.width*Lt.height,Vr=new Uint8Array(wr);Dt(Qe,Lt.data_offset,Vr,wr);var jr=Lt.palette_offset,qr=Lt.transparent_index;qr===null&&(qr=256);var oi=Lt.width,Vn=Ne-oi,Ti=oi,dn=4*(Lt.y*Ne+Lt.x),_r=4*((Lt.y+Lt.height)*Ne+Lt.x),xn=dn,Fn=4*Vn;Lt.interlaced===!0&&(Fn+=4*Ne*7);for(var zn=8,qn=0,Oi=Vr.length;qn<Oi;++qn){var Li=Vr[qn];if(Ti===0&&(Ti=oi,(xn+=Fn)>=_r&&(Fn=4*Vn+4*Ne*(zn-1),xn=dn+(oi+Vn)*(zn<<1),zn>>=1)),Li===qr)xn+=4;else{var Ri=Qe[jr+3*Li],Ji=Qe[jr+3*Li+1],ma=Qe[jr+3*Li+2];Cr[xn++]=ma,Cr[xn++]=Ji,Cr[xn++]=Ri,Cr[xn++]=255}--Ti}},this.decodeAndBlitFrameRGBA=function(mr,Cr){var Lt=this.frameInfo(mr),wr=Lt.width*Lt.height,Vr=new Uint8Array(wr);Dt(Qe,Lt.data_offset,Vr,wr);var jr=Lt.palette_offset,qr=Lt.transparent_index;qr===null&&(qr=256);var oi=Lt.width,Vn=Ne-oi,Ti=oi,dn=4*(Lt.y*Ne+Lt.x),_r=4*((Lt.y+Lt.height)*Ne+Lt.x),xn=dn,Fn=4*Vn;Lt.interlaced===!0&&(Fn+=4*Ne*7);for(var zn=8,qn=0,Oi=Vr.length;qn<Oi;++qn){var Li=Vr[qn];if(Ti===0&&(Ti=oi,(xn+=Fn)>=_r&&(Fn=4*Vn+4*Ne*(zn-1),xn=dn+(oi+Vn)*(zn<<1),zn>>=1)),Li===qr)xn+=4;else{var Ri=Qe[jr+3*Li],Ji=Qe[jr+3*Li+1],ma=Qe[jr+3*Li+2];Cr[xn++]=Ri,Cr[xn++]=Ji,Cr[xn++]=ma,Cr[xn++]=255}--Ti}}}function Dt(Qe,we,Ne,Fe){for(var Ye=Qe[we++],We=1<<Ye,Ze=We+1,mt=Ze+1,it=Ye+1,Jt=(1<<it)-1,Dr=0,Sr=0,Br=0,$t=Qe[we++],gn=new Int32Array(4096),or=null;;){for(;Dr<16&&$t!==0;)Sr|=Qe[we++]<<Dr,Dr+=8,$t===1?$t=Qe[we++]:--$t;if(Dr<it)break;var ln=Sr&Jt;if(Sr>>=it,Dr-=it,ln!==We){if(ln===Ze)break;for(var an=ln<mt?ln:or,Rr=0,On=an;On>We;)On=gn[On]>>8,++Rr;var ci=On;if(Br+Rr+(an!==ln?1:0)>Fe)return void f.log("Warning, gif stream longer than expected.");Ne[Br++]=ci;var Ui=Br+=Rr;for(an!==ln&&(Ne[Br++]=ci),On=an;Rr--;)On=gn[On],Ne[--Ui]=255&On,On>>=8;or!==null&&mt<4096&&(gn[mt++]=or<<8|ci,mt>=Jt+1&&it<12&&(++it,Jt=Jt<<1|1)),or=ln}else mt=Ze+1,Jt=(1<<(it=Ye+1))-1,or=null}return Br!==Fe&&f.log("Warning, gif stream shorter than expected."),Ne}/**
|
|
|
* @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 bt(Qe){var we,Ne,Fe,Ye,We,Ze=Math.floor,mt=new Array(64),it=new Array(64),Jt=new Array(64),Dr=new Array(64),Sr=new Array(65535),Br=new Array(65535),$t=new Array(64),gn=new Array(64),or=[],ln=0,an=7,Rr=new Array(64),On=new Array(64),ci=new Array(64),Ui=new Array(256),ki=new Array(2048),Di=[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],Ki=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Ur=[0,1,2,3,4,5,6,7,8,9,10,11],Tn=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],Mr=[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],mr=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Cr=[0,1,2,3,4,5,6,7,8,9,10,11],Lt=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],wr=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function Vr(dn,_r){for(var xn=0,Fn=0,zn=new Array,qn=1;qn<=16;qn++){for(var Oi=1;Oi<=dn[qn];Oi++)zn[_r[Fn]]=[],zn[_r[Fn]][0]=xn,zn[_r[Fn]][1]=qn,Fn++,xn++;xn*=2}return zn}function jr(dn){for(var _r=dn[0],xn=dn[1]-1;xn>=0;)_r&1<<xn&&(ln|=1<<an),xn--,--an<0&&(ln==255?(qr(255),qr(0)):qr(ln),an=7,ln=0)}function qr(dn){or.push(dn)}function oi(dn){qr(dn>>8&255),qr(255&dn)}function Vn(dn,_r,xn,Fn,zn){for(var qn,Oi=zn[0],Li=zn[240],Ri=function(Yi,ca){var Hi,Ia,Da,Qa,Wo,po,Mo,Fo,yo,Oo,sa=0;for(yo=0;yo<8;++yo){Hi=Yi[sa],Ia=Yi[sa+1],Da=Yi[sa+2],Qa=Yi[sa+3],Wo=Yi[sa+4],po=Yi[sa+5],Mo=Yi[sa+6];var hs=Hi+(Fo=Yi[sa+7]),Jo=Hi-Fo,wo=Ia+Mo,_o=Ia-Mo,Bo=Da+po,Ds=Da-po,Nr=Qa+Wo,rn=Qa-Wo,En=hs+Nr,en=hs-Nr,ur=wo+Bo,on=wo-Bo;Yi[sa]=En+ur,Yi[sa+4]=En-ur;var Bn=.707106781*(on+en);Yi[sa+2]=en+Bn,Yi[sa+6]=en-Bn;var Hn=.382683433*((En=rn+Ds)-(on=_o+Jo)),Ii=.5411961*En+Hn,Ci=1.306562965*on+Hn,Jn=.707106781*(ur=Ds+_o),mi=Jo+Jn,yi=Jo-Jn;Yi[sa+5]=yi+Ii,Yi[sa+3]=yi-Ii,Yi[sa+1]=mi+Ci,Yi[sa+7]=mi-Ci,sa+=8}for(sa=0,yo=0;yo<8;++yo){Hi=Yi[sa],Ia=Yi[sa+8],Da=Yi[sa+16],Qa=Yi[sa+24],Wo=Yi[sa+32],po=Yi[sa+40],Mo=Yi[sa+48];var da=Hi+(Fo=Yi[sa+56]),ha=Hi-Fo,Pa=Ia+Mo,Ra=Ia-Mo,so=Da+po,La=Da-po,lo=Qa+Wo,So=Qa-Wo,Xt=da+lo,zr=da-lo,un=Pa+so,vn=Pa-so;Yi[sa]=Xt+un,Yi[sa+32]=Xt-un;var ni=.707106781*(vn+zr);Yi[sa+16]=zr+ni,Yi[sa+48]=zr-ni;var li=.382683433*((Xt=So+La)-(vn=Ra+ha)),fi=.5411961*Xt+li,di=1.306562965*vn+li,Yt=.707106781*(un=La+Ra),Et=ha+Yt,yr=ha-Yt;Yi[sa+40]=yr+fi,Yi[sa+24]=yr-fi,Yi[sa+8]=Et+di,Yi[sa+56]=Et-di,sa++}for(yo=0;yo<64;++yo)Oo=Yi[yo]*ca[yo],$t[yo]=Oo>0?Oo+.5|0:Oo-.5|0;return $t}(dn,_r),Ji=0;Ji<64;++Ji)gn[Di[Ji]]=Ri[Ji];var ma=gn[0]-xn;xn=gn[0],ma==0?jr(Fn[0]):(jr(Fn[Br[qn=32767+ma]]),jr(Sr[qn]));for(var la=63;la>0&&gn[la]==0;)la--;if(la==0)return jr(Oi),xn;for(var qa,bi=1;bi<=la;){for(var Sn=bi;gn[bi]==0&&bi<=la;)++bi;var zi=bi-Sn;if(zi>=16){qa=zi>>4;for(var oa=1;oa<=qa;++oa)jr(Li);zi&=15}qn=32767+gn[bi],jr(zn[(zi<<4)+Br[qn]]),jr(Sr[qn]),bi++}return la!=63&&jr(Oi),xn}function Ti(dn){(dn=Math.min(Math.max(dn,1),100),We!=dn)&&(!function(_r){for(var xn=[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],Fn=0;Fn<64;Fn++){var zn=Ze((xn[Fn]*_r+50)/100);zn=Math.min(Math.max(zn,1),255),mt[Di[Fn]]=zn}for(var qn=[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],Oi=0;Oi<64;Oi++){var Li=Ze((qn[Oi]*_r+50)/100);Li=Math.min(Math.max(Li,1),255),it[Di[Oi]]=Li}for(var Ri=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Ji=0,ma=0;ma<8;ma++)for(var la=0;la<8;la++)Jt[Ji]=1/(mt[Di[Ji]]*Ri[ma]*Ri[la]*8),Dr[Ji]=1/(it[Di[Ji]]*Ri[ma]*Ri[la]*8),Ji++}(dn<50?Math.floor(5e3/dn):Math.floor(200-2*dn)),We=dn)}this.encode=function(dn,_r){_r&&Ti(_r),or=new Array,ln=0,an=7,oi(65496),oi(65504),oi(16),qr(74),qr(70),qr(73),qr(70),qr(0),qr(1),qr(1),qr(0),oi(1),oi(1),qr(0),qr(0),function(){oi(65499),oi(132),qr(0);for(var Ia=0;Ia<64;Ia++)qr(mt[Ia]);qr(1);for(var Da=0;Da<64;Da++)qr(it[Da])}(),function(Ia,Da){oi(65472),oi(17),qr(8),oi(Da),oi(Ia),qr(3),qr(1),qr(17),qr(0),qr(2),qr(17),qr(1),qr(3),qr(17),qr(1)}(dn.width,dn.height),function(){oi(65476),oi(418),qr(0);for(var Ia=0;Ia<16;Ia++)qr(Ki[Ia+1]);for(var Da=0;Da<=11;Da++)qr(Ur[Da]);qr(16);for(var Qa=0;Qa<16;Qa++)qr(Tn[Qa+1]);for(var Wo=0;Wo<=161;Wo++)qr(Mr[Wo]);qr(1);for(var po=0;po<16;po++)qr(mr[po+1]);for(var Mo=0;Mo<=11;Mo++)qr(Cr[Mo]);qr(17);for(var Fo=0;Fo<16;Fo++)qr(Lt[Fo+1]);for(var yo=0;yo<=161;yo++)qr(wr[yo])}(),oi(65498),oi(12),qr(3),qr(1),qr(0),qr(2),qr(17),qr(3),qr(17),qr(0),qr(63),qr(0);var xn=0,Fn=0,zn=0;ln=0,an=7,this.encode.displayName="_encode_";for(var qn,Oi,Li,Ri,Ji,ma,la,qa,bi,Sn=dn.data,zi=dn.width,oa=dn.height,Yi=4*zi,ca=0;ca<oa;){for(qn=0;qn<Yi;){for(Ji=Yi*ca+qn,la=-1,qa=0,bi=0;bi<64;bi++)ma=Ji+(qa=bi>>3)*Yi+(la=4*(7&bi)),ca+qa>=oa&&(ma-=Yi*(ca+1+qa-oa)),qn+la>=Yi&&(ma-=qn+la-Yi+4),Oi=Sn[ma++],Li=Sn[ma++],Ri=Sn[ma++],Rr[bi]=(ki[Oi]+ki[Li+256>>0]+ki[Ri+512>>0]>>16)-128,On[bi]=(ki[Oi+768>>0]+ki[Li+1024>>0]+ki[Ri+1280>>0]>>16)-128,ci[bi]=(ki[Oi+1280>>0]+ki[Li+1536>>0]+ki[Ri+1792>>0]>>16)-128;xn=Vn(Rr,Jt,xn,we,Fe),Fn=Vn(On,Dr,Fn,Ne,Ye),zn=Vn(ci,Dr,zn,Ne,Ye),qn+=32}ca+=8}if(an>=0){var Hi=[];Hi[1]=an+1,Hi[0]=(1<<an+1)-1,jr(Hi)}return oi(65497),new Uint8Array(or)},Qe=Qe||50,function(){for(var dn=String.fromCharCode,_r=0;_r<256;_r++)Ui[_r]=dn(_r)}(),we=Vr(Ki,Ur),Ne=Vr(mr,Cr),Fe=Vr(Tn,Mr),Ye=Vr(Lt,wr),function(){for(var dn=1,_r=2,xn=1;xn<=15;xn++){for(var Fn=dn;Fn<_r;Fn++)Br[32767+Fn]=xn,Sr[32767+Fn]=[],Sr[32767+Fn][1]=xn,Sr[32767+Fn][0]=Fn;for(var zn=-(_r-1);zn<=-dn;zn++)Br[32767+zn]=xn,Sr[32767+zn]=[],Sr[32767+zn][1]=xn,Sr[32767+zn][0]=_r-1+zn;dn<<=1,_r<<=1}}(),function(){for(var dn=0;dn<256;dn++)ki[dn]=19595*dn,ki[dn+256>>0]=38470*dn,ki[dn+512>>0]=7471*dn+32768,ki[dn+768>>0]=-11059*dn,ki[dn+1024>>0]=-21709*dn,ki[dn+1280>>0]=32768*dn+8421375,ki[dn+1536>>0]=-27439*dn,ki[dn+1792>>0]=-5329*dn}(),Ti(Qe)}/**
|
|
|
* @license
|
|
|
* Copyright (c) 2017 Aras Abbasi
|
|
|
*
|
|
|
* Licensed under the MIT License.
|
|
|
* http://opensource.org/licenses/mit-license
|
|
|
*/function It(Qe,we){if(this.pos=0,this.buffer=Qe,this.datav=new DataView(Qe.buffer),this.is_with_alpha=!!we,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 gr(Qe){function we(Ki){if(!Ki)throw Error("assert :P")}function Ne(Ki,Ur,Tn){for(var Mr=0;4>Mr;Mr++)if(Ki[Ur+Mr]!=Tn.charCodeAt(Mr))return!0;return!1}function Fe(Ki,Ur,Tn,Mr,mr){for(var Cr=0;Cr<mr;Cr++)Ki[Ur+Cr]=Tn[Mr+Cr]}function Ye(Ki,Ur,Tn,Mr){for(var mr=0;mr<Mr;mr++)Ki[Ur+mr]=Tn}function We(Ki){return new Int32Array(Ki)}function Ze(Ki,Ur){for(var Tn=[],Mr=0;Mr<Ki;Mr++)Tn.push(new Ur);return Tn}function mt(Ki,Ur){var Tn=[];return function Mr(mr,Cr,Lt){for(var wr=Lt[Cr],Vr=0;Vr<wr&&(mr.push(Lt.length>Cr+1?[]:new Ur),!(Lt.length<Cr+1));Vr++)Mr(mr[Vr],Cr+1,Lt)}(Tn,0,Ki),Tn}var it=function(){var Ur=this;function Tn(ge,He){for(var ft=1<<He-1>>>0;ge&ft;)ft>>>=1;return ft?(ge&ft-1)+ft:ge}function Mr(ge,He,ft,er,Er){we(!(er%ft));do ge[He+(er-=ft)]=Er;while(0<er)}function mr(ge,He,ft,er,Er){if(we(2328>=Er),512>=Er)var Xr=We(512);else if((Xr=We(Er))==null)return 0;return function(Oe,q,ye,ze,at,Nt){var Kt,Qt,Ir=q,Zr=1<<ye,Tr=We(16),xr=We(16);for(we(at!=0),we(ze!=null),we(Oe!=null),we(0<ye),Qt=0;Qt<at;++Qt){if(15<ze[Qt])return 0;++Tr[ze[Qt]]}if(Tr[0]==at)return 0;for(xr[1]=0,Kt=1;15>Kt;++Kt){if(Tr[Kt]>1<<Kt)return 0;xr[Kt+1]=xr[Kt]+Tr[Kt]}for(Qt=0;Qt<at;++Qt)Kt=ze[Qt],0<ze[Qt]&&(Nt[xr[Kt]++]=Qt);if(xr[15]==1)return(ze=new Cr).g=0,ze.value=Nt[0],Mr(Oe,Ir,1,Zr,ze),Zr;var Wr,nn=-1,_n=Zr-1,gi=0,Ai=1,Qi=1,Bi=1<<ye;for(Qt=0,Kt=1,at=2;Kt<=ye;++Kt,at<<=1){if(Ai+=Qi<<=1,0>(Qi-=Tr[Kt]))return 0;for(;0<Tr[Kt];--Tr[Kt])(ze=new Cr).g=Kt,ze.value=Nt[Qt++],Mr(Oe,Ir+gi,at,Bi,ze),gi=Tn(gi,Kt)}for(Kt=ye+1,at=2;15>=Kt;++Kt,at<<=1){if(Ai+=Qi<<=1,0>(Qi-=Tr[Kt]))return 0;for(;0<Tr[Kt];--Tr[Kt]){if(ze=new Cr,(gi&_n)!=nn){for(Ir+=Bi,Wr=1<<(nn=Kt)-ye;15>nn&&!(0>=(Wr-=Tr[nn]));)++nn,Wr<<=1;Zr+=Bi=1<<(Wr=nn-ye),Oe[q+(nn=gi&_n)].g=Wr+ye,Oe[q+nn].value=Ir-q-nn}ze.g=Kt-ye,ze.value=Nt[Qt++],Mr(Oe,Ir+(gi>>ye),at,Bi,ze),gi=Tn(gi,Kt)}}return Ai!=2*xr[15]-1?0:Zr}(ge,He,ft,er,Er,Xr)}function Cr(){this.value=this.g=0}function Lt(){this.value=this.g=0}function wr(){this.G=Ze(5,Cr),this.H=We(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=Ze(ka,Lt)}function Vr(ge,He,ft,er){we(ge!=null),we(He!=null),we(2147483648>er),ge.Ca=254,ge.I=0,ge.b=-8,ge.Ka=0,ge.oa=He,ge.pa=ft,ge.Jd=He,ge.Yc=ft+er,ge.Zc=4<=er?ft+er-4+1:ft,Oi(ge)}function jr(ge,He){for(var ft=0;0<He--;)ft|=Ri(ge,128)<<He;return ft}function qr(ge,He){var ft=jr(ge,He);return Li(ge)?-ft:ft}function oi(ge,He,ft,er){var Er,Xr=0;for(we(ge!=null),we(He!=null),we(4294967288>er),ge.Sb=er,ge.Ra=0,ge.u=0,ge.h=0,4<er&&(er=4),Er=0;Er<er;++Er)Xr+=He[ft+Er]<<8*Er;ge.Ra=Xr,ge.bb=er,ge.oa=He,ge.pa=ft}function Vn(ge){for(;8<=ge.u&&ge.bb<ge.Sb;)ge.Ra>>>=8,ge.Ra+=ge.oa[ge.pa+ge.bb]<<qo-8>>>0,++ge.bb,ge.u-=8;Fn(ge)&&(ge.h=1,ge.u=0)}function Ti(ge,He){if(we(0<=He),!ge.h&&He<=Es){var ft=xn(ge)&os[He];return ge.u+=He,Vn(ge),ft}return ge.h=1,ge.u=0}function dn(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function _r(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function xn(ge){return ge.Ra>>>(ge.u&qo-1)>>>0}function Fn(ge){return we(ge.bb<=ge.Sb),ge.h||ge.bb==ge.Sb&&ge.u>qo}function zn(ge,He){ge.u=He,ge.h=Fn(ge)}function qn(ge){ge.u>=pa&&(we(ge.u>=pa),Vn(ge))}function Oi(ge){we(ge!=null&&ge.oa!=null),ge.pa<ge.Zc?(ge.I=(ge.oa[ge.pa++]|ge.I<<8)>>>0,ge.b+=8):(we(ge!=null&&ge.oa!=null),ge.pa<ge.Yc?(ge.b+=8,ge.I=ge.oa[ge.pa++]|ge.I<<8):ge.Ka?ge.b=0:(ge.I<<=8,ge.b+=8,ge.Ka=1))}function Li(ge){return jr(ge,1)}function Ri(ge,He){var ft=ge.Ca;0>ge.b&&Oi(ge);var er=ge.b,Er=ft*He>>>8,Xr=(ge.I>>>er>Er)+0;for(Xr?(ft-=Er,ge.I-=Er+1<<er>>>0):ft=Er+1,er=ft,Er=0;256<=er;)Er+=8,er>>=8;return er=7^Er+ls[er],ge.b-=er,ge.Ca=(ft<<er)-1,Xr}function Ji(ge,He,ft){ge[He+0]=ft>>24&255,ge[He+1]=ft>>16&255,ge[He+2]=ft>>8&255,ge[He+3]=ft>>0&255}function ma(ge,He){return ge[He+0]<<0|ge[He+1]<<8}function la(ge,He){return ma(ge,He)|ge[He+2]<<16}function qa(ge,He){return ma(ge,He)|ma(ge,He+2)<<16}function bi(ge,He){var ft=1<<He;return we(ge!=null),we(0<He),ge.X=We(ft),ge.X==null?0:(ge.Mb=32-He,ge.Xa=He,1)}function Sn(ge,He){we(ge!=null),we(He!=null),we(ge.Xa==He.Xa),Fe(He.X,0,ge.X,0,1<<He.Xa)}function zi(){this.X=[],this.Xa=this.Mb=0}function oa(ge,He,ft,er){we(ft!=null),we(er!=null);var Er=ft[0],Xr=er[0];return Er==0&&(Er=(ge*Xr+He/2)/He),Xr==0&&(Xr=(He*Er+ge/2)/ge),0>=Er||0>=Xr?0:(ft[0]=Er,er[0]=Xr,1)}function Yi(ge,He){return ge+(1<<He)-1>>>He}function ca(ge,He){return((4278255360&ge)+(4278255360&He)>>>0&4278255360)+((16711935&ge)+(16711935&He)>>>0&16711935)>>>0}function Hi(ge,He){Ur[He]=function(ft,er,Er,Xr,Oe,q,ye){var ze;for(ze=0;ze<Oe;++ze){var at=Ur[ge](q[ye+ze-1],Er,Xr+ze);q[ye+ze]=ca(ft[er+ze],at)}}}function Ia(){this.ud=this.hd=this.jd=0}function Da(ge,He){return((4278124286&(ge^He))>>>1)+(ge&He)>>>0}function Qa(ge){return 0<=ge&&256>ge?ge:0>ge?0:255<ge?255:void 0}function Wo(ge,He){return Qa(ge+(ge-He+.5>>1))}function po(ge,He,ft){return Math.abs(He-ft)-Math.abs(ge-ft)}function Mo(ge,He,ft,er,Er,Xr,Oe){for(er=Xr[Oe-1],ft=0;ft<Er;++ft)Xr[Oe+ft]=er=ca(ge[He+ft],er)}function Fo(ge,He,ft,er,Er){var Xr;for(Xr=0;Xr<ft;++Xr){var Oe=ge[He+Xr],q=Oe>>8&255,ye=16711935&(ye=(ye=16711935&Oe)+((q<<16)+q));er[Er+Xr]=(4278255360&Oe)+ye>>>0}}function yo(ge,He){He.jd=ge>>0&255,He.hd=ge>>8&255,He.ud=ge>>16&255}function Oo(ge,He,ft,er,Er,Xr){var Oe;for(Oe=0;Oe<er;++Oe){var q=He[ft+Oe],ye=q>>>8,ze=q,at=255&(at=(at=q>>>16)+((ge.jd<<24>>24)*(ye<<24>>24)>>>5));ze=255&(ze=(ze=ze+((ge.hd<<24>>24)*(ye<<24>>24)>>>5))+((ge.ud<<24>>24)*(at<<24>>24)>>>5)),Er[Xr+Oe]=(4278255360&q)+(at<<16)+ze}}function sa(ge,He,ft,er,Er){Ur[He]=function(Xr,Oe,q,ye,ze,at,Nt,Kt,Qt){for(ye=Nt;ye<Kt;++ye)for(Nt=0;Nt<Qt;++Nt)ze[at++]=Er(q[er(Xr[Oe++])])},Ur[ge]=function(Xr,Oe,q,ye,ze,at,Nt){var Kt=8>>Xr.b,Qt=Xr.Ea,Ir=Xr.K[0],Zr=Xr.w;if(8>Kt)for(Xr=(1<<Xr.b)-1,Zr=(1<<Kt)-1;Oe<q;++Oe){var Tr,xr=0;for(Tr=0;Tr<Qt;++Tr)Tr&Xr||(xr=er(ye[ze++])),at[Nt++]=Er(Ir[xr&Zr]),xr>>=Kt}else Ur["VP8LMapColor"+ft](ye,ze,Ir,Zr,at,Nt,Oe,q,Qt)}}function hs(ge,He,ft,er,Er){for(ft=He+ft;He<ft;){var Xr=ge[He++];er[Er++]=Xr>>16&255,er[Er++]=Xr>>8&255,er[Er++]=Xr>>0&255}}function Jo(ge,He,ft,er,Er){for(ft=He+ft;He<ft;){var Xr=ge[He++];er[Er++]=Xr>>16&255,er[Er++]=Xr>>8&255,er[Er++]=Xr>>0&255,er[Er++]=Xr>>24&255}}function wo(ge,He,ft,er,Er){for(ft=He+ft;He<ft;){var Xr=(Oe=ge[He++])>>16&240|Oe>>12&15,Oe=Oe>>0&240|Oe>>28&15;er[Er++]=Xr,er[Er++]=Oe}}function _o(ge,He,ft,er,Er){for(ft=He+ft;He<ft;){var Xr=(Oe=ge[He++])>>16&248|Oe>>13&7,Oe=Oe>>5&224|Oe>>3&31;er[Er++]=Xr,er[Er++]=Oe}}function Bo(ge,He,ft,er,Er){for(ft=He+ft;He<ft;){var Xr=ge[He++];er[Er++]=Xr>>0&255,er[Er++]=Xr>>8&255,er[Er++]=Xr>>16&255}}function Ds(ge,He,ft,er,Er,Xr){if(Xr==0)for(ft=He+ft;He<ft;)Ji(er,((Xr=ge[He++])[0]>>24|Xr[1]>>8&65280|Xr[2]<<8&16711680|Xr[3]<<24)>>>0),Er+=32;else Fe(er,Er,ge,He,ft)}function Nr(ge,He){Ur[He][0]=Ur[ge+"0"],Ur[He][1]=Ur[ge+"1"],Ur[He][2]=Ur[ge+"2"],Ur[He][3]=Ur[ge+"3"],Ur[He][4]=Ur[ge+"4"],Ur[He][5]=Ur[ge+"5"],Ur[He][6]=Ur[ge+"6"],Ur[He][7]=Ur[ge+"7"],Ur[He][8]=Ur[ge+"8"],Ur[He][9]=Ur[ge+"9"],Ur[He][10]=Ur[ge+"10"],Ur[He][11]=Ur[ge+"11"],Ur[He][12]=Ur[ge+"12"],Ur[He][13]=Ur[ge+"13"],Ur[He][14]=Ur[ge+"0"],Ur[He][15]=Ur[ge+"0"]}function rn(ge){return ge==su||ge==Cl||ge==Dl||ge==Fl}function En(){this.eb=[],this.size=this.A=this.fb=0}function en(){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 ur(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new En,this.f.kb=new en,this.sd=null}function on(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Bn(){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 Hn(ge){return alert("todo:WebPSamplerProcessPlane"),ge.T}function Ii(ge,He){var ft=ge.T,er=He.ba.f.RGBA,Er=er.eb,Xr=er.fb+ge.ka*er.A,Oe=Ko[He.ba.S],q=ge.y,ye=ge.O,ze=ge.f,at=ge.N,Nt=ge.ea,Kt=ge.W,Qt=He.cc,Ir=He.dc,Zr=He.Mc,Tr=He.Nc,xr=ge.ka,Wr=ge.ka+ge.T,nn=ge.U,_n=nn+1>>1;for(xr==0?Oe(q,ye,null,null,ze,at,Nt,Kt,ze,at,Nt,Kt,Er,Xr,null,null,nn):(Oe(He.ec,He.fc,q,ye,Qt,Ir,Zr,Tr,ze,at,Nt,Kt,Er,Xr-er.A,Er,Xr,nn),++ft);xr+2<Wr;xr+=2)Qt=ze,Ir=at,Zr=Nt,Tr=Kt,at+=ge.Rc,Kt+=ge.Rc,Xr+=2*er.A,Oe(q,(ye+=2*ge.fa)-ge.fa,q,ye,Qt,Ir,Zr,Tr,ze,at,Nt,Kt,Er,Xr-er.A,Er,Xr,nn);return ye+=ge.fa,ge.j+Wr<ge.o?(Fe(He.ec,He.fc,q,ye,nn),Fe(He.cc,He.dc,ze,at,_n),Fe(He.Mc,He.Nc,Nt,Kt,_n),ft--):1&Wr||Oe(q,ye,null,null,ze,at,Nt,Kt,ze,at,Nt,Kt,Er,Xr+er.A,null,null,nn),ft}function Ci(ge,He,ft){var er=ge.F,Er=[ge.J];if(er!=null){var Xr=ge.U,Oe=He.ba.S,q=Oe==el||Oe==Dl;He=He.ba.f.RGBA;var ye=[0],ze=ge.ka;ye[0]=ge.T,ge.Kb&&(ze==0?--ye[0]:(--ze,Er[0]-=ge.width),ge.j+ge.ka+ge.T==ge.o&&(ye[0]=ge.o-ge.j-ze));var at=He.eb;ze=He.fb+ze*He.A,ge=il(er,Er[0],ge.width,Xr,ye,at,ze+(q?0:3),He.A),we(ft==ye),ge&&rn(Oe)&&wl(at,ze,q,Xr,ye,He.A)}return 0}function Jn(ge){var He=ge.ma,ft=He.ba.S,er=11>ft,Er=ft==ou||ft==eu||ft==el||ft==tu||ft==12||rn(ft);if(He.memory=null,He.Ib=null,He.Jb=null,He.Nd=null,!io(He.Oa,ge,Er?11:12))return 0;if(Er&&rn(ft)&&je(),ge.da)alert("todo:use_scaling");else{if(er){if(He.Ib=Hn,ge.Kb){if(ft=ge.U+1>>1,He.memory=We(ge.U+2*ft),He.memory==null)return 0;He.ec=He.memory,He.fc=0,He.cc=He.ec,He.dc=He.fc+ge.U,He.Mc=He.cc,He.Nc=He.dc+ft,He.Ib=Ii,je()}}else alert("todo:EmitYUV");Er&&(He.Jb=Ci,er&&pe())}if(er&&!Fu){for(ge=0;256>ge;++ge)ec[ge]=89858*(ge-128)+cu>>Vs,Xu[ge]=-22014*(ge-128)+cu,Gu[ge]=-45773*(ge-128),Bu[ge]=113618*(ge-128)+cu>>Vs;for(ge=wu;ge<Au;++ge)He=76283*(ge-16)+cu>>Vs,Yu[ge-wu]=ri(He,255),Uu[ge-wu]=ri(He+8>>4,15);Fu=1}return 1}function mi(ge){var He=ge.ma,ft=ge.U,er=ge.T;return we(!(1&ge.ka)),0>=ft||0>=er?0:(ft=He.Ib(ge,He),He.Jb!=null&&He.Jb(ge,He,ft),He.Dc+=ft,1)}function yi(ge){ge.ma.memory=null}function da(ge,He,ft,er){return Ti(ge,8)!=47?0:(He[0]=Ti(ge,14)+1,ft[0]=Ti(ge,14)+1,er[0]=Ti(ge,1),Ti(ge,3)!=0?0:!ge.h)}function ha(ge,He){if(4>ge)return ge+1;var ft=ge-2>>1;return(2+(1&ge)<<ft)+Ti(He,ft)+1}function Pa(ge,He){return 120<He?He-120:1<=(ft=((ft=Cs[He-1])>>4)*ge+(8-(15&ft)))?ft:1;var ft}function Ra(ge,He,ft){var er=xn(ft),Er=ge[He+=255&er].g-8;return 0<Er&&(zn(ft,ft.u+8),er=xn(ft),He+=ge[He].value,He+=er&(1<<Er)-1),zn(ft,ft.u+ge[He].g),ge[He].value}function so(ge,He,ft){return ft.g+=ge.g,ft.value+=ge.value<<He>>>0,we(8>=ft.g),ge.g}function La(ge,He,ft){var er=ge.xc;return we((He=er==0?0:ge.vc[ge.md*(ft>>er)+(He>>er)])<ge.Wb),ge.Ya[He]}function lo(ge,He,ft,er){var Er=ge.ab,Xr=ge.c*He,Oe=ge.C;He=Oe+He;var q=ft,ye=er;for(er=ge.Ta,ft=ge.Ua;0<Er--;){var ze=ge.gc[Er],at=Oe,Nt=He,Kt=q,Qt=ye,Ir=(ye=er,q=ft,ze.Ea);switch(we(at<Nt),we(Nt<=ze.nc),ze.hc){case 2:ms(Kt,Qt,(Nt-at)*Ir,ye,q);break;case 0:var Zr=at,Tr=Nt,xr=ye,Wr=q,nn=(Bi=ze).Ea;Zr==0&&(Os(Kt,Qt,null,null,1,xr,Wr),Mo(Kt,Qt+1,0,0,nn-1,xr,Wr+1),Qt+=nn,Wr+=nn,++Zr);for(var _n=1<<Bi.b,gi=_n-1,Ai=Yi(nn,Bi.b),Qi=Bi.K,Bi=Bi.w+(Zr>>Bi.b)*Ai;Zr<Tr;){var Ma=Qi,ea=Bi,oo=1;for(ys(Kt,Qt,xr,Wr-nn,1,xr,Wr);oo<nn;){var Ba=(oo&~gi)+_n;Ba>nn&&(Ba=nn),(0,fs[Ma[ea++]>>8&15])(Kt,Qt+ +oo,xr,Wr+oo-nn,Ba-oo,xr,Wr+oo),oo=Ba}Qt+=nn,Wr+=nn,++Zr&gi||(Bi+=Ai)}Nt!=ze.nc&&Fe(ye,q-Ir,ye,q+(Nt-at-1)*Ir,Ir);break;case 1:for(Ir=Kt,Tr=Qt,nn=(Kt=ze.Ea)-(Wr=Kt&~(xr=(Qt=1<<ze.b)-1)),Zr=Yi(Kt,ze.b),_n=ze.K,ze=ze.w+(at>>ze.b)*Zr;at<Nt;){for(gi=_n,Ai=ze,Qi=new Ia,Bi=Tr+Wr,Ma=Tr+Kt;Tr<Bi;)yo(gi[Ai++],Qi),_s(Qi,Ir,Tr,Qt,ye,q),Tr+=Qt,q+=Qt;Tr<Ma&&(yo(gi[Ai++],Qi),_s(Qi,Ir,Tr,nn,ye,q),Tr+=nn,q+=nn),++at&xr||(ze+=Zr)}break;case 3:if(Kt==ye&&Qt==q&&0<ze.b){for(Tr=ye,Kt=Ir=q+(Nt-at)*Ir-(Wr=(Nt-at)*Yi(ze.Ea,ze.b)),Qt=ye,xr=q,Zr=[],Wr=(nn=Wr)-1;0<=Wr;--Wr)Zr[Wr]=Qt[xr+Wr];for(Wr=nn-1;0<=Wr;--Wr)Tr[Kt+Wr]=Zr[Wr];ws(ze,at,Nt,ye,Ir,ye,q)}else ws(ze,at,Nt,Kt,Qt,ye,q)}q=er,ye=ft}ye!=ft&&Fe(er,ft,q,ye,Xr)}function So(ge,He){var ft=ge.V,er=ge.Ba+ge.c*ge.C,Er=He-ge.C;if(we(He<=ge.l.o),we(16>=Er),0<Er){var Xr=ge.l,Oe=ge.Ta,q=ge.Ua,ye=Xr.width;if(lo(ge,Er,ft,er),Er=q=[q],we((ft=ge.C)<(er=He)),we(Xr.v<Xr.va),er>Xr.o&&(er=Xr.o),ft<Xr.j){var ze=Xr.j-ft;ft=Xr.j,Er[0]+=ze*ye}if(ft>=er?ft=0:(Er[0]+=4*Xr.v,Xr.ka=ft-Xr.j,Xr.U=Xr.va-Xr.v,Xr.T=er-ft,ft=1),ft){if(q=q[0],11>(ft=ge.ca).S){var at=ft.f.RGBA,Nt=(er=ft.S,Er=Xr.U,Xr=Xr.T,ze=at.eb,at.A),Kt=Xr;for(at=at.fb+ge.Ma*at.A;0<Kt--;){var Qt=Oe,Ir=q,Zr=Er,Tr=ze,xr=at;switch(er){case Nl:gl(Qt,Ir,Zr,Tr,xr);break;case ou:Bs(Qt,Ir,Zr,Tr,xr);break;case su:Bs(Qt,Ir,Zr,Tr,xr),wl(Tr,xr,0,Zr,1,0);break;case ql:al(Qt,Ir,Zr,Tr,xr);break;case eu:Ds(Qt,Ir,Zr,Tr,xr,1);break;case Cl:Ds(Qt,Ir,Zr,Tr,xr,1),wl(Tr,xr,0,Zr,1,0);break;case el:Ds(Qt,Ir,Zr,Tr,xr,0);break;case Dl:Ds(Qt,Ir,Zr,Tr,xr,0),wl(Tr,xr,1,Zr,1,0);break;case tu:Us(Qt,Ir,Zr,Tr,xr);break;case Fl:Us(Qt,Ir,Zr,Tr,xr),Kl(Tr,xr,Zr,1,0);break;case ru:Qs(Qt,Ir,Zr,Tr,xr);break;default:we(0)}q+=ye,at+=Nt}ge.Ma+=Xr}else alert("todo:EmitRescaledRowsYUVA");we(ge.Ma<=ft.height)}}ge.C=He,we(ge.C<=ge.i)}function Xt(ge){var He;if(0<ge.ua)return 0;for(He=0;He<ge.Wb;++He){var ft=ge.Ya[He].G,er=ge.Ya[He].H;if(0<ft[1][er[1]+0].g||0<ft[2][er[2]+0].g||0<ft[3][er[3]+0].g)return 0}return 1}function zr(ge,He,ft,er,Er,Xr){if(ge.Z!=0){var Oe=ge.qd,q=ge.rd;for(we(Eo[ge.Z]!=null);He<ft;++He)Eo[ge.Z](Oe,q,er,Er,er,Er,Xr),Oe=er,q=Er,Er+=Xr;ge.qd=Oe,ge.rd=q}}function un(ge,He){var ft=ge.l.ma,er=ft.Z==0||ft.Z==1?ge.l.j:ge.C;if(er=ge.C<er?er:ge.C,we(He<=ge.l.o),He>er){var Er=ge.l.width,Xr=ft.ca,Oe=ft.tb+Er*er,q=ge.V,ye=ge.Ba+ge.c*er,ze=ge.gc;we(ge.ab==1),we(ze[0].hc==3),ml(ze[0],er,He,q,ye,Xr,Oe),zr(ft,er,He,Xr,Oe,Er)}ge.C=ge.Ma=He}function vn(ge,He,ft,er,Er,Xr,Oe){var q=ge.$/er,ye=ge.$%er,ze=ge.m,at=ge.s,Nt=ft+ge.$,Kt=Nt;Er=ft+er*Er;var Qt=ft+er*Xr,Ir=280+at.ua,Zr=ge.Pb?q:16777216,Tr=0<at.ua?at.Wa:null,xr=at.wc,Wr=Nt<Qt?La(at,ye,q):null;we(ge.C<Xr),we(Qt<=Er);var nn=!1;e:for(;;){for(;nn||Nt<Qt;){var _n=0;if(q>=Zr){var gi=Nt-ft;we((Zr=ge).Pb),Zr.wd=Zr.m,Zr.xd=gi,0<Zr.s.ua&&Sn(Zr.s.Wa,Zr.s.vb),Zr=q+Js}if(ye&xr||(Wr=La(at,ye,q)),we(Wr!=null),Wr.Qb&&(He[Nt]=Wr.qb,nn=!0),!nn)if(qn(ze),Wr.jc){_n=ze,gi=He;var Ai=Nt,Qi=Wr.pd[xn(_n)&ka-1];we(Wr.jc),256>Qi.g?(zn(_n,_n.u+Qi.g),gi[Ai]=Qi.value,_n=0):(zn(_n,_n.u+Qi.g-256),we(256<=Qi.value),_n=Qi.value),_n==0&&(nn=!0)}else _n=Ra(Wr.G[0],Wr.H[0],ze);if(ze.h)break;if(nn||256>_n){if(!nn)if(Wr.nd)He[Nt]=(Wr.qb|_n<<8)>>>0;else{if(qn(ze),nn=Ra(Wr.G[1],Wr.H[1],ze),qn(ze),gi=Ra(Wr.G[2],Wr.H[2],ze),Ai=Ra(Wr.G[3],Wr.H[3],ze),ze.h)break;He[Nt]=(Ai<<24|nn<<16|_n<<8|gi)>>>0}if(nn=!1,++Nt,++ye>=er&&(ye=0,++q,Oe!=null&&q<=Xr&&!(q%16)&&Oe(ge,q),Tr!=null))for(;Kt<Nt;)_n=He[Kt++],Tr.X[(506832829*_n&4294967295)>>>Tr.Mb]=_n}else if(280>_n){if(_n=ha(_n-256,ze),gi=Ra(Wr.G[4],Wr.H[4],ze),qn(ze),gi=Pa(er,gi=ha(gi,ze)),ze.h)break;if(Nt-ft<gi||Er-Nt<_n)break e;for(Ai=0;Ai<_n;++Ai)He[Nt+Ai]=He[Nt+Ai-gi];for(Nt+=_n,ye+=_n;ye>=er;)ye-=er,++q,Oe!=null&&q<=Xr&&!(q%16)&&Oe(ge,q);if(we(Nt<=Er),ye&xr&&(Wr=La(at,ye,q)),Tr!=null)for(;Kt<Nt;)_n=He[Kt++],Tr.X[(506832829*_n&4294967295)>>>Tr.Mb]=_n}else{if(!(_n<Ir))break e;for(nn=_n-280,we(Tr!=null);Kt<Nt;)_n=He[Kt++],Tr.X[(506832829*_n&4294967295)>>>Tr.Mb]=_n;_n=Nt,we(!(nn>>>(gi=Tr).Xa)),He[_n]=gi.X[nn],nn=!0}nn||we(ze.h==Fn(ze))}if(ge.Pb&&ze.h&&Nt<Er)we(ge.m.h),ge.a=5,ge.m=ge.wd,ge.$=ge.xd,0<ge.s.ua&&Sn(ge.s.vb,ge.s.Wa);else{if(ze.h)break e;Oe!=null&&Oe(ge,q>Xr?Xr:q),ge.a=0,ge.$=Nt-ft}return 1}return ge.a=3,0}function ni(ge){we(ge!=null),ge.vc=null,ge.yc=null,ge.Ya=null;var He=ge.Wa;He!=null&&(He.X=null),ge.vb=null,we(ge!=null)}function li(){var ge=new $o;return ge==null?null:(ge.a=0,ge.xb=$a,Nr("Predictor","VP8LPredictors"),Nr("Predictor","VP8LPredictors_C"),Nr("PredictorAdd","VP8LPredictorsAdd"),Nr("PredictorAdd","VP8LPredictorsAdd_C"),ms=Fo,_s=Oo,gl=hs,Bs=Jo,Us=wo,Qs=_o,al=Bo,Ur.VP8LMapColor32b=Pl,Ur.VP8LMapColor8b=Ws,ge)}function fi(ge,He,ft,er,Er){var Xr=1,Oe=[ge],q=[He],ye=er.m,ze=er.s,at=null,Nt=0;e:for(;;){if(ft)for(;Xr&&Ti(ye,1);){var Kt=Oe,Qt=q,Ir=er,Zr=1,Tr=Ir.m,xr=Ir.gc[Ir.ab],Wr=Ti(Tr,2);if(Ir.Oc&1<<Wr)Xr=0;else{switch(Ir.Oc|=1<<Wr,xr.hc=Wr,xr.Ea=Kt[0],xr.nc=Qt[0],xr.K=[null],++Ir.ab,we(4>=Ir.ab),Wr){case 0:case 1:xr.b=Ti(Tr,3)+2,Zr=fi(Yi(xr.Ea,xr.b),Yi(xr.nc,xr.b),0,Ir,xr.K),xr.K=xr.K[0];break;case 3:var nn,_n=Ti(Tr,8)+1,gi=16<_n?0:4<_n?1:2<_n?2:3;if(Kt[0]=Yi(xr.Ea,gi),xr.b=gi,nn=Zr=fi(_n,1,0,Ir,xr.K)){var Ai,Qi=_n,Bi=xr,Ma=1<<(8>>Bi.b),ea=We(Ma);if(ea==null)nn=0;else{var oo=Bi.K[0],Ba=Bi.w;for(ea[0]=Bi.K[0][0],Ai=1;Ai<1*Qi;++Ai)ea[Ai]=ca(oo[Ba+Ai],ea[Ai-1]);for(;Ai<4*Ma;++Ai)ea[Ai]=0;Bi.K[0]=null,Bi.K[0]=ea,nn=1}}Zr=nn;break;case 2:break;default:we(0)}Xr=Zr}}if(Oe=Oe[0],q=q[0],Xr&&Ti(ye,1)&&!(Xr=1<=(Nt=Ti(ye,4))&&11>=Nt)){er.a=3;break e}var Ro;if(Ro=Xr)t:{var Zo,P,K,$=er,re=Oe,le=q,Me=Nt,pt=ft,jt=$.m,ar=$.s,cr=[null],bn=1,Dn=0,ui=ds[Me];r:for(;;){if(pt&&Ti(jt,1)){var hi=Ti(jt,3)+2,Wi=Yi(re,hi),ia=Yi(le,hi),xa=Wi*ia;if(!fi(Wi,ia,0,$,cr))break r;for(cr=cr[0],ar.xc=hi,Zo=0;Zo<xa;++Zo){var ba=cr[Zo]>>8&65535;cr[Zo]=ba,ba>=bn&&(bn=ba+1)}}if(jt.h)break r;for(P=0;5>P;++P){var va=Ho[P];!P&&0<Me&&(va+=1<<Me),Dn<va&&(Dn=va)}var Ua=Ze(bn*ui,Cr),eo=bn,ko=Ze(eo,wr);if(ko==null)var To=null;else we(65536>=eo),To=ko;var ns=We(Dn);if(To==null||ns==null||Ua==null){$.a=1;break r}var Ss=Ua;for(Zo=K=0;Zo<bn;++Zo){var Hs=To[Zo],Ls=Hs.G,ul=Hs.H,Sl=0,tl=1,xl=0;for(P=0;5>P;++P){va=Ho[P],Ls[P]=Ss,ul[P]=K,!P&&0<Me&&(va+=1<<Me);i:{var cl,Oa=va,ks=$,Ps=ns,Ys=Ss,Lu=K,gs=0,ts=ks.m,zl=Ti(ts,1);if(Ye(Ps,0,0,Oa),zl){var yl=Ti(ts,1)+1,Nu=Ti(ts,1),du=Ti(ts,Nu==0?1:8);Ps[du]=1,yl==2&&(Ps[du=Ti(ts,8)]=1);var Vl=1}else{var Su=We(19),Il=Ti(ts,4)+4;if(19<Il){ks.a=3;var hu=0;break i}for(cl=0;cl<Il;++cl)Su[cs[cl]]=Ti(ts,3);var ju=void 0,Qu=void 0,vc=ks,Ac=Su,tc=Oa,yc=Ps,sc=0,Du=vc.m,hc=8,bc=Ze(128,Cr);n:for(;mr(bc,0,7,Ac,19);){if(Ti(Du,1)){var Tc=2+2*Ti(Du,3);if((ju=2+Ti(Du,Tc))>tc)break n}else ju=tc;for(Qu=0;Qu<tc&&ju--;){qn(Du);var wc=bc[0+(127&xn(Du))];zn(Du,Du.u+wc.g);var Tu=wc.value;if(16>Tu)yc[Qu++]=Tu,Tu!=0&&(hc=Tu);else{var fu=Tu==16,fc=Tu-16,lc=jo[fc],Sc=Ti(Du,Xl[fc])+lc;if(Qu+Sc>tc)break n;for(var Cc=fu?hc:0;0<Sc--;)yc[Qu++]=Cc}}sc=1;break n}sc||(vc.a=3),Vl=sc}(Vl=Vl&&!ts.h)&&(gs=mr(Ys,Lu,8,Ps,Oa)),Vl&&gs!=0?hu=gs:(ks.a=3,hu=0)}if(hu==0)break r;if(tl&&us[P]==1&&(tl=Ss[K].g==0),Sl+=Ss[K].g,K+=hu,3>=P){var Hu,Ru=ns[0];for(Hu=1;Hu<va;++Hu)ns[Hu]>Ru&&(Ru=ns[Hu]);xl+=Ru}}if(Hs.nd=tl,Hs.Qb=0,tl&&(Hs.qb=(Ls[3][ul[3]+0].value<<24|Ls[1][ul[1]+0].value<<16|Ls[2][ul[2]+0].value)>>>0,Sl==0&&256>Ls[0][ul[0]+0].value&&(Hs.Qb=1,Hs.qb+=Ls[0][ul[0]+0].value<<8)),Hs.jc=!Hs.Qb&&6>xl,Hs.jc){var Ku,Cu=Hs;for(Ku=0;Ku<ka;++Ku){var au=Ku,Mu=Cu.pd[au],uc=Cu.G[0][Cu.H[0]+au];256<=uc.value?(Mu.g=uc.g+256,Mu.value=uc.value):(Mu.g=0,Mu.value=0,au>>=so(uc,8,Mu),au>>=so(Cu.G[1][Cu.H[1]+au],16,Mu),au>>=so(Cu.G[2][Cu.H[2]+au],0,Mu),so(Cu.G[3][Cu.H[3]+au],24,Mu))}}}ar.vc=cr,ar.Wb=bn,ar.Ya=To,ar.yc=Ua,Ro=1;break t}Ro=0}if(!(Xr=Ro)){er.a=3;break e}if(0<Nt){if(ze.ua=1<<Nt,!bi(ze.Wa,Nt)){er.a=1,Xr=0;break e}}else ze.ua=0;var cc=er,xc=Oe,Ec=q,pc=cc.s,mc=pc.xc;if(cc.c=xc,cc.i=Ec,pc.md=Yi(xc,mc),pc.wc=mc==0?-1:(1<<mc)-1,ft){er.xb=es;break e}if((at=We(Oe*q))==null){er.a=1,Xr=0;break e}Xr=(Xr=vn(er,at,0,Oe,q,q,null))&&!ye.h;break e}return Xr?(Er!=null?Er[0]=at:(we(at==null),we(ft)),er.$=0,ft||ni(ze)):ni(ze),Xr}function di(ge,He){var ft=ge.c*ge.i,er=ft+He+16*He;return we(ge.c<=He),ge.V=We(er),ge.V==null?(ge.Ta=null,ge.Ua=0,ge.a=1,0):(ge.Ta=ge.V,ge.Ua=ge.Ba+ft+He,1)}function Yt(ge,He){var ft=ge.C,er=He-ft,Er=ge.V,Xr=ge.Ba+ge.c*ft;for(we(He<=ge.l.o);0<er;){var Oe=16<er?16:er,q=ge.l.ma,ye=ge.l.width,ze=ye*Oe,at=q.ca,Nt=q.tb+ye*ft,Kt=ge.Ta,Qt=ge.Ua;lo(ge,Oe,Er,Xr),fl(Kt,Qt,at,Nt,ze),zr(q,ft,ft+Oe,at,Nt,ye),er-=Oe,Er+=Oe*ge.c,ft+=Oe}we(ft==He),ge.C=ge.Ma=He}function Et(){this.ub=this.yd=this.td=this.Rb=0}function yr(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ct(){this.Fb=this.Bb=this.Cb=0,this.Zb=We(4),this.Lb=We(4)}function Zt(){this.Yb=function(){var ge=[];return function He(ft,er,Er){for(var Xr=Er[er],Oe=0;Oe<Xr&&(ft.push(Er.length>er+1?[]:0),!(Er.length<er+1));Oe++)He(ft[Oe],er+1,Er)}(ge,0,[3,11]),ge}()}function dr(){this.jb=We(3),this.Wc=mt([4,8],Zt),this.Xc=mt([4,17],Zt)}function Lr(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new We(4),this.od=new We(4)}function Jr(){this.ld=this.La=this.dd=this.tc=0}function fn(){this.Na=this.la=0}function Cn(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Nn(){this.ad=We(384),this.Za=0,this.Ob=We(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Zn(){this.uc=this.M=this.Nb=0,this.wa=Array(new Jr),this.Y=0,this.ya=Array(new Nn),this.aa=0,this.l=new ji}function ii(){this.y=We(16),this.f=We(8),this.ea=We(8)}function pi(){this.cb=this.a=0,this.sc="",this.m=new dn,this.Od=new Et,this.Kc=new yr,this.ed=new Lr,this.Qa=new ct,this.Ic=this.$c=this.Aa=0,this.D=new Zn,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=Ze(8,dn),this.ia=0,this.pb=Ze(4,Cn),this.Pa=new dr,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new ii),this.Hd=0,this.rb=Array(new fn),this.sb=0,this.wa=Array(new Jr),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 Nn),this.L=this.aa=0,this.gd=mt([4,2],Jr),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 ri(ge,He){return 0>ge?0:ge>He?He:ge}function ji(){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 ei(){var ge=new pi;return ge!=null&&(ge.a=0,ge.sc="OK",ge.cb=0,ge.Xb=0,Al||(Al=fr)),ge}function Je(ge,He,ft){return ge.a==0&&(ge.a=He,ge.sc=ft,ge.cb=0),0}function Gt(ge,He,ft){return 3<=ft&&ge[He+0]==157&&ge[He+1]==1&&ge[He+2]==42}function vr(ge,He){if(ge==null)return 0;if(ge.a=0,ge.sc="OK",He==null)return Je(ge,2,"null VP8Io passed to VP8GetHeaders()");var ft=He.data,er=He.w,Er=He.ha;if(4>Er)return Je(ge,7,"Truncated header.");var Xr=ft[er+0]|ft[er+1]<<8|ft[er+2]<<16,Oe=ge.Od;if(Oe.Rb=!(1&Xr),Oe.td=Xr>>1&7,Oe.yd=Xr>>4&1,Oe.ub=Xr>>5,3<Oe.td)return Je(ge,3,"Incorrect keyframe parameters.");if(!Oe.yd)return Je(ge,4,"Frame not displayable.");er+=3,Er-=3;var q=ge.Kc;if(Oe.Rb){if(7>Er)return Je(ge,7,"cannot parse picture header");if(!Gt(ft,er,Er))return Je(ge,3,"Bad code word");q.c=16383&(ft[er+4]<<8|ft[er+3]),q.Td=ft[er+4]>>6,q.i=16383&(ft[er+6]<<8|ft[er+5]),q.Ud=ft[er+6]>>6,er+=7,Er-=7,ge.za=q.c+15>>4,ge.Ub=q.i+15>>4,He.width=q.c,He.height=q.i,He.Da=0,He.j=0,He.v=0,He.va=He.width,He.o=He.height,He.da=0,He.ib=He.width,He.hb=He.height,He.U=He.width,He.T=He.height,Ye((Xr=ge.Pa).jb,0,255,Xr.jb.length),we((Xr=ge.Qa)!=null),Xr.Cb=0,Xr.Bb=0,Xr.Fb=1,Ye(Xr.Zb,0,0,Xr.Zb.length),Ye(Xr.Lb,0,0,Xr.Lb)}if(Oe.ub>Er)return Je(ge,7,"bad partition length");Vr(Xr=ge.m,ft,er,Oe.ub),er+=Oe.ub,Er-=Oe.ub,Oe.Rb&&(q.Ld=Li(Xr),q.Kd=Li(Xr)),q=ge.Qa;var ye,ze=ge.Pa;if(we(Xr!=null),we(q!=null),q.Cb=Li(Xr),q.Cb){if(q.Bb=Li(Xr),Li(Xr)){for(q.Fb=Li(Xr),ye=0;4>ye;++ye)q.Zb[ye]=Li(Xr)?qr(Xr,7):0;for(ye=0;4>ye;++ye)q.Lb[ye]=Li(Xr)?qr(Xr,6):0}if(q.Bb)for(ye=0;3>ye;++ye)ze.jb[ye]=Li(Xr)?jr(Xr,8):255}else q.Bb=0;if(Xr.Ka)return Je(ge,3,"cannot parse segment header");if((q=ge.ed).zd=Li(Xr),q.Tb=jr(Xr,6),q.wb=jr(Xr,3),q.Pc=Li(Xr),q.Pc&&Li(Xr)){for(ze=0;4>ze;++ze)Li(Xr)&&(q.vd[ze]=qr(Xr,6));for(ze=0;4>ze;++ze)Li(Xr)&&(q.od[ze]=qr(Xr,6))}if(ge.L=q.Tb==0?0:q.zd?1:2,Xr.Ka)return Je(ge,3,"cannot parse filter header");var at=Er;if(Er=ye=er,er=ye+at,q=at,ge.Xb=(1<<jr(ge.m,2))-1,at<3*(ze=ge.Xb))ft=7;else{for(ye+=3*ze,q-=3*ze,at=0;at<ze;++at){var Nt=ft[Er+0]|ft[Er+1]<<8|ft[Er+2]<<16;Nt>q&&(Nt=q),Vr(ge.Jc[+at],ft,ye,Nt),ye+=Nt,q-=Nt,Er+=3}Vr(ge.Jc[+ze],ft,ye,q),ft=ye<er?0:5}if(ft!=0)return Je(ge,ft,"cannot parse partitions");for(ft=jr(ye=ge.m,7),Er=Li(ye)?qr(ye,4):0,er=Li(ye)?qr(ye,4):0,q=Li(ye)?qr(ye,4):0,ze=Li(ye)?qr(ye,4):0,ye=Li(ye)?qr(ye,4):0,at=ge.Qa,Nt=0;4>Nt;++Nt){if(at.Cb){var Kt=at.Zb[Nt];at.Fb||(Kt+=ft)}else{if(0<Nt){ge.pb[Nt]=ge.pb[0];continue}Kt=ft}var Qt=ge.pb[Nt];Qt.Sc[0]=ss[ri(Kt+Er,127)],Qt.Sc[1]=Is[ri(Kt+0,127)],Qt.Eb[0]=2*ss[ri(Kt+er,127)],Qt.Eb[1]=101581*Is[ri(Kt+q,127)]>>16,8>Qt.Eb[1]&&(Qt.Eb[1]=8),Qt.Qc[0]=ss[ri(Kt+ze,117)],Qt.Qc[1]=Is[ri(Kt+ye,127)],Qt.lc=Kt+ye}if(!Oe.Rb)return Je(ge,4,"Not a key frame.");for(Li(Xr),Oe=ge.Pa,ft=0;4>ft;++ft){for(Er=0;8>Er;++Er)for(er=0;3>er;++er)for(q=0;11>q;++q)ze=Ri(Xr,yu[ft][Er][er][q])?jr(Xr,8):nu[ft][Er][er][q],Oe.Wc[ft][Er].Yb[er][q]=ze;for(Er=0;17>Er;++Er)Oe.Xc[ft][Er]=Oe.Wc[ft][bu[Er]]}return ge.kc=Li(Xr),ge.kc&&(ge.Bd=jr(Xr,8)),ge.cb=1}function fr(ge,He,ft,er,Er,Xr,Oe){var q=He[Er].Yb[ft];for(ft=0;16>Er;++Er){if(!Ri(ge,q[ft+0]))return Er;for(;!Ri(ge,q[ft+1]);)if(q=He[++Er].Yb[0],ft=0,Er==16)return 16;var ye=He[Er+1].Yb;if(Ri(ge,q[ft+2])){var ze=ge,at=0;if(Ri(ze,(Kt=q)[(Nt=ft)+3]))if(Ri(ze,Kt[Nt+6])){for(q=0,Nt=2*(at=Ri(ze,Kt[Nt+8]))+(Kt=Ri(ze,Kt[Nt+9+at])),at=0,Kt=lu[Nt];Kt[q];++q)at+=at+Ri(ze,Kt[q]);at+=3+(8<<Nt)}else Ri(ze,Kt[Nt+7])?(at=7+2*Ri(ze,165),at+=Ri(ze,145)):at=5+Ri(ze,159);else at=Ri(ze,Kt[Nt+4])?3+Ri(ze,Kt[Nt+5]):2;q=ye[2]}else at=1,q=ye[1];ye=Oe+uu[Er],0>(ze=ge).b&&Oi(ze);var Nt,Kt=ze.b,Qt=(Nt=ze.Ca>>1)-(ze.I>>Kt)>>31;--ze.b,ze.Ca+=Qt,ze.Ca|=1,ze.I-=(Nt+1&Qt)<<Kt,Xr[ye]=((at^Qt)-Qt)*er[(0<Er)+0]}return 16}function Gr(ge){var He=ge.rb[ge.sb-1];He.la=0,He.Na=0,Ye(ge.zc,0,0,ge.zc.length),ge.ja=0}function Pr(ge,He){if(ge==null)return 0;if(He==null)return Je(ge,2,"NULL VP8Io parameter in VP8Decode().");if(!ge.cb&&!vr(ge,He))return 0;if(we(ge.cb),He.ac==null||He.ac(He)){He.ob&&(ge.L=0);var ft=Ql[ge.L];if(ge.L==2?(ge.yb=0,ge.zb=0):(ge.yb=He.v-ft>>4,ge.zb=He.j-ft>>4,0>ge.yb&&(ge.yb=0),0>ge.zb&&(ge.zb=0)),ge.Va=He.o+15+ft>>4,ge.Hb=He.va+15+ft>>4,ge.Hb>ge.za&&(ge.Hb=ge.za),ge.Va>ge.Ub&&(ge.Va=ge.Ub),0<ge.L){var er=ge.ed;for(ft=0;4>ft;++ft){var Er;if(ge.Qa.Cb){var Xr=ge.Qa.Lb[ft];ge.Qa.Fb||(Xr+=er.Tb)}else Xr=er.Tb;for(Er=0;1>=Er;++Er){var Oe=ge.gd[ft][Er],q=Xr;if(er.Pc&&(q+=er.vd[0],Er&&(q+=er.od[0])),0<(q=0>q?0:63<q?63:q)){var ye=q;0<er.wb&&(ye=4<er.wb?ye>>2:ye>>1)>9-er.wb&&(ye=9-er.wb),1>ye&&(ye=1),Oe.dd=ye,Oe.tc=2*q+ye,Oe.ld=40<=q?2:15<=q?1:0}else Oe.tc=0;Oe.La=Er}}}ft=0}else Je(ge,6,"Frame setup failed"),ft=ge.a;if(ft=ft==0){if(ft){ge.$c=0,0<ge.Aa||(ge.Ic=iu);e:{ft=ge.Ic,er=4*(ye=ge.za);var ze=32*ye,at=ye+1,Nt=0<ge.L?ye*(0<ge.Aa?2:1):0,Kt=(ge.Aa==2?2:1)*ye;if((Oe=er+832+(Er=3*(16*ft+Ql[ge.L])/2*ze)+(Xr=ge.Fa!=null&&0<ge.Fa.length?ge.Kc.c*ge.Kc.i:0))!=Oe)ft=0;else{if(Oe>ge.Vb){if(ge.Vb=0,ge.Ec=We(Oe),ge.Fc=0,ge.Ec==null){ft=Je(ge,1,"no memory during frame initialization.");break e}ge.Vb=Oe}Oe=ge.Ec,q=ge.Fc,ge.Ac=Oe,ge.Bc=q,q+=er,ge.Gd=Ze(ze,ii),ge.Hd=0,ge.rb=Ze(at+1,fn),ge.sb=1,ge.wa=Nt?Ze(Nt,Jr):null,ge.Y=0,ge.D.Nb=0,ge.D.wa=ge.wa,ge.D.Y=ge.Y,0<ge.Aa&&(ge.D.Y+=ye),we(!0),ge.oc=Oe,ge.pc=q,q+=832,ge.ya=Ze(Kt,Nn),ge.aa=0,ge.D.ya=ge.ya,ge.D.aa=ge.aa,ge.Aa==2&&(ge.D.aa+=ye),ge.R=16*ye,ge.B=8*ye,ye=(ze=Ql[ge.L])*ge.R,ze=ze/2*ge.B,ge.sa=Oe,ge.ta=q+ye,ge.qa=ge.sa,ge.ra=ge.ta+16*ft*ge.R+ze,ge.Ha=ge.qa,ge.Ia=ge.ra+8*ft*ge.B+ze,ge.$c=0,q+=Er,ge.mb=Xr?Oe:null,ge.nb=Xr?q:null,we(q+Xr<=ge.Fc+ge.Vb),Gr(ge),Ye(ge.Ac,ge.Bc,0,er),ft=1}}if(ft){if(He.ka=0,He.y=ge.sa,He.O=ge.ta,He.f=ge.qa,He.N=ge.ra,He.ea=ge.Ha,He.Vd=ge.Ia,He.fa=ge.R,He.Rc=ge.B,He.F=null,He.J=0,!$l){for(ft=-255;255>=ft;++ft)kl[255+ft]=0>ft?-ft:ft;for(ft=-1020;1020>=ft;++ft)gu[1020+ft]=-128>ft?-128:127<ft?127:ft;for(ft=-112;112>=ft;++ft)Jl[112+ft]=-16>ft?-16:15<ft?15:ft;for(ft=-255;510>=ft;++ft)Zl[255+ft]=0>ft?0:255<ft?255:ft;$l=1}El=ti,bl=Wn,Gs=Ln,zs=$n,vl=Un,ol=Kn,Xs=rs,sl=Vo,dl=Yo,rl=vo,nl=Go,Tl=Qo,Rs=Io,bs=zo,Ms=fa,Ts=ro,Zs=Wa,hl=Ea,Rl[0]=Aa,Rl[1]=wi,Rl[2]=aa,Rl[3]=$i,Rl[4]=ya,Rl[5]=ta,Rl[6]=Ha,Rl[7]=ra,Rl[8]=Ka,Rl[9]=_a,_l[0]=wa,_l[1]=Zi,_l[2]=ua,_l[3]=Xi,_l[4]=na,_l[5]=mo,_l[6]=Ca,Wl[0]=Sa,Wl[1]=Ei,Wl[2]=bo,Wl[3]=ga,Wl[4]=uo,Wl[5]=Va,Wl[6]=No,ft=1}else ft=0}ft&&(ft=function(Qt,Ir){for(Qt.M=0;Qt.M<Qt.Va;++Qt.M){var Zr,Tr=Qt.Jc[Qt.M&Qt.Xb],xr=Qt.m,Wr=Qt;for(Zr=0;Zr<Wr.za;++Zr){var nn=xr,_n=Wr,gi=_n.Ac,Ai=_n.Bc+4*Zr,Qi=_n.zc,Bi=_n.ya[_n.aa+Zr];if(_n.Qa.Bb?Bi.$b=Ri(nn,_n.Pa.jb[0])?2+Ri(nn,_n.Pa.jb[2]):Ri(nn,_n.Pa.jb[1]):Bi.$b=0,_n.kc&&(Bi.Ad=Ri(nn,_n.Bd)),Bi.Za=!Ri(nn,145)+0,Bi.Za){var Ma=Bi.Ob,ea=0;for(_n=0;4>_n;++_n){var oo,Ba=Qi[0+_n];for(oo=0;4>oo;++oo){Ba=vu[gi[Ai+oo]][Ba];for(var Ro=Yl[Ri(nn,Ba[0])];0<Ro;)Ro=Yl[2*Ro+Ri(nn,Ba[Ro])];Ba=-Ro,gi[Ai+oo]=Ba}Fe(Ma,ea,gi,Ai,4),ea+=4,Qi[0+_n]=Ba}}else Ba=Ri(nn,156)?Ri(nn,128)?1:3:Ri(nn,163)?2:0,Bi.Ob[0]=Ba,Ye(gi,Ai,Ba,4),Ye(Qi,0,Ba,4);Bi.Dd=Ri(nn,142)?Ri(nn,114)?Ri(nn,183)?1:3:2:0}if(Wr.m.Ka)return Je(Qt,7,"Premature end-of-partition0 encountered.");for(;Qt.ja<Qt.za;++Qt.ja){if(Wr=Tr,nn=(xr=Qt).rb[xr.sb-1],gi=xr.rb[xr.sb+xr.ja],Zr=xr.ya[xr.aa+xr.ja],Ai=xr.kc?Zr.Ad:0)nn.la=gi.la=0,Zr.Za||(nn.Na=gi.Na=0),Zr.Hc=0,Zr.Gc=0,Zr.ia=0;else{var Zo,P;if(nn=gi,gi=Wr,Ai=xr.Pa.Xc,Qi=xr.ya[xr.aa+xr.ja],Bi=xr.pb[Qi.$b],_n=Qi.ad,Ma=0,ea=xr.rb[xr.sb-1],Ba=oo=0,Ye(_n,Ma,0,384),Qi.Za)var K=0,$=Ai[3];else{Ro=We(16);var re=nn.Na+ea.Na;if(re=Al(gi,Ai[1],re,Bi.Eb,0,Ro,0),nn.Na=ea.Na=(0<re)+0,1<re)El(Ro,0,_n,Ma);else{var le=Ro[0]+3>>3;for(Ro=0;256>Ro;Ro+=16)_n[Ma+Ro]=le}K=1,$=Ai[0]}var Me=15&nn.la,pt=15&ea.la;for(Ro=0;4>Ro;++Ro){var jt=1&pt;for(le=P=0;4>le;++le)Me=Me>>1|(jt=(re=Al(gi,$,re=jt+(1&Me),Bi.Sc,K,_n,Ma))>K)<<7,P=P<<2|(3<re?3:1<re?2:_n[Ma+0]!=0),Ma+=16;Me>>=4,pt=pt>>1|jt<<7,oo=(oo<<8|P)>>>0}for($=Me,K=pt>>4,Zo=0;4>Zo;Zo+=2){for(P=0,Me=nn.la>>4+Zo,pt=ea.la>>4+Zo,Ro=0;2>Ro;++Ro){for(jt=1&pt,le=0;2>le;++le)re=jt+(1&Me),Me=Me>>1|(jt=0<(re=Al(gi,Ai[2],re,Bi.Qc,0,_n,Ma)))<<3,P=P<<2|(3<re?3:1<re?2:_n[Ma+0]!=0),Ma+=16;Me>>=2,pt=pt>>1|jt<<5}Ba|=P<<4*Zo,$|=Me<<4<<Zo,K|=(240&pt)<<Zo}nn.la=$,ea.la=K,Qi.Hc=oo,Qi.Gc=Ba,Qi.ia=43690&Ba?0:Bi.ia,Ai=!(oo|Ba)}if(0<xr.L&&(xr.wa[xr.Y+xr.ja]=xr.gd[Zr.$b][Zr.Za],xr.wa[xr.Y+xr.ja].La|=!Ai),Wr.Ka)return Je(Qt,7,"Premature end-of-file encountered.")}if(Gr(Qt),xr=Ir,Wr=1,Zr=(Tr=Qt).D,nn=0<Tr.L&&Tr.M>=Tr.zb&&Tr.M<=Tr.Va,Tr.Aa==0)e:{if(Zr.M=Tr.M,Zr.uc=nn,fo(Tr,Zr),Wr=1,Zr=(P=Tr.D).Nb,nn=(Ba=Ql[Tr.L])*Tr.R,gi=Ba/2*Tr.B,Ro=16*Zr*Tr.R,le=8*Zr*Tr.B,Ai=Tr.sa,Qi=Tr.ta-nn+Ro,Bi=Tr.qa,_n=Tr.ra-gi+le,Ma=Tr.Ha,ea=Tr.Ia-gi+le,pt=(Me=P.M)==0,oo=Me>=Tr.Va-1,Tr.Aa==2&&fo(Tr,P),P.uc)for(jt=(re=Tr).D.M,we(re.D.uc),P=re.yb;P<re.Hb;++P){K=P,$=jt;var ar=(cr=(va=re).D).Nb;Zo=va.R;var cr=cr.wa[cr.Y+K],bn=va.sa,Dn=va.ta+16*ar*Zo+16*K,ui=cr.dd,hi=cr.tc;if(hi!=0)if(we(3<=hi),va.L==1)0<K&&Ts(bn,Dn,Zo,hi+4),cr.La&&hl(bn,Dn,Zo,hi),0<$&&Ms(bn,Dn,Zo,hi+4),cr.La&&Zs(bn,Dn,Zo,hi);else{var Wi=va.B,ia=va.qa,xa=va.ra+8*ar*Wi+8*K,ba=va.Ha,va=va.Ia+8*ar*Wi+8*K;ar=cr.ld,0<K&&(sl(bn,Dn,Zo,hi+4,ui,ar),rl(ia,xa,ba,va,Wi,hi+4,ui,ar)),cr.La&&(Tl(bn,Dn,Zo,hi,ui,ar),bs(ia,xa,ba,va,Wi,hi,ui,ar)),0<$&&(Xs(bn,Dn,Zo,hi+4,ui,ar),dl(ia,xa,ba,va,Wi,hi+4,ui,ar)),cr.La&&(nl(bn,Dn,Zo,hi,ui,ar),Rs(ia,xa,ba,va,Wi,hi,ui,ar))}}if(Tr.ia&&alert("todo:DitherRow"),xr.put!=null){if(P=16*Me,Me=16*(Me+1),pt?(xr.y=Tr.sa,xr.O=Tr.ta+Ro,xr.f=Tr.qa,xr.N=Tr.ra+le,xr.ea=Tr.Ha,xr.W=Tr.Ia+le):(P-=Ba,xr.y=Ai,xr.O=Qi,xr.f=Bi,xr.N=_n,xr.ea=Ma,xr.W=ea),oo||(Me-=Ba),Me>xr.o&&(Me=xr.o),xr.F=null,xr.J=null,Tr.Fa!=null&&0<Tr.Fa.length&&P<Me&&(xr.J=Pt(Tr,xr,P,Me-P),xr.F=Tr.mb,xr.F==null&&xr.F.length==0)){Wr=Je(Tr,3,"Could not decode alpha data.");break e}P<xr.j&&(Ba=xr.j-P,P=xr.j,we(!(1&Ba)),xr.O+=Tr.R*Ba,xr.N+=Tr.B*(Ba>>1),xr.W+=Tr.B*(Ba>>1),xr.F!=null&&(xr.J+=xr.width*Ba)),P<Me&&(xr.O+=xr.v,xr.N+=xr.v>>1,xr.W+=xr.v>>1,xr.F!=null&&(xr.J+=xr.v),xr.ka=P-xr.j,xr.U=xr.va-xr.v,xr.T=Me-P,Wr=xr.put(xr))}Zr+1!=Tr.Ic||oo||(Fe(Tr.sa,Tr.ta-nn,Ai,Qi+16*Tr.R,nn),Fe(Tr.qa,Tr.ra-gi,Bi,_n+8*Tr.B,gi),Fe(Tr.Ha,Tr.Ia-gi,Ma,ea+8*Tr.B,gi))}if(!Wr)return Je(Qt,6,"Output aborted.")}return 1}(ge,He)),He.bc!=null&&He.bc(He),ft&=1}return ft?(ge.cb=0,ft):0}function hr(ge,He,ft,er,Er){Er=ge[He+ft+32*er]+(Er>>3),ge[He+ft+32*er]=-256&Er?0>Er?0:255:Er}function An(ge,He,ft,er,Er,Xr){hr(ge,He,0,ft,er+Er),hr(ge,He,1,ft,er+Xr),hr(ge,He,2,ft,er-Xr),hr(ge,He,3,ft,er-Er)}function br(ge){return(20091*ge>>16)+ge}function pn(ge,He,ft,er){var Er,Xr=0,Oe=We(16);for(Er=0;4>Er;++Er){var q=ge[He+0]+ge[He+8],ye=ge[He+0]-ge[He+8],ze=(35468*ge[He+4]>>16)-br(ge[He+12]),at=br(ge[He+4])+(35468*ge[He+12]>>16);Oe[Xr+0]=q+at,Oe[Xr+1]=ye+ze,Oe[Xr+2]=ye-ze,Oe[Xr+3]=q-at,Xr+=4,He++}for(Er=Xr=0;4>Er;++Er)q=(ge=Oe[Xr+0]+4)+Oe[Xr+8],ye=ge-Oe[Xr+8],ze=(35468*Oe[Xr+4]>>16)-br(Oe[Xr+12]),hr(ft,er,0,0,q+(at=br(Oe[Xr+4])+(35468*Oe[Xr+12]>>16))),hr(ft,er,1,0,ye+ze),hr(ft,er,2,0,ye-ze),hr(ft,er,3,0,q-at),Xr++,er+=32}function Kn(ge,He,ft,er){var Er=ge[He+0]+4,Xr=35468*ge[He+4]>>16,Oe=br(ge[He+4]),q=35468*ge[He+1]>>16;An(ft,er,0,Er+Oe,ge=br(ge[He+1]),q),An(ft,er,1,Er+Xr,ge,q),An(ft,er,2,Er-Xr,ge,q),An(ft,er,3,Er-Oe,ge,q)}function Wn(ge,He,ft,er,Er){pn(ge,He,ft,er),Er&&pn(ge,He+16,ft,er+4)}function Ln(ge,He,ft,er){bl(ge,He+0,ft,er,1),bl(ge,He+32,ft,er+128,1)}function $n(ge,He,ft,er){var Er;for(ge=ge[He+0]+4,Er=0;4>Er;++Er)for(He=0;4>He;++He)hr(ft,er,He,Er,ge)}function Un(ge,He,ft,er){ge[He+0]&&zs(ge,He+0,ft,er),ge[He+16]&&zs(ge,He+16,ft,er+4),ge[He+32]&&zs(ge,He+32,ft,er+128),ge[He+48]&&zs(ge,He+48,ft,er+128+4)}function ti(ge,He,ft,er){var Er,Xr=We(16);for(Er=0;4>Er;++Er){var Oe=ge[He+0+Er]+ge[He+12+Er],q=ge[He+4+Er]+ge[He+8+Er],ye=ge[He+4+Er]-ge[He+8+Er],ze=ge[He+0+Er]-ge[He+12+Er];Xr[0+Er]=Oe+q,Xr[8+Er]=Oe-q,Xr[4+Er]=ze+ye,Xr[12+Er]=ze-ye}for(Er=0;4>Er;++Er)Oe=(ge=Xr[0+4*Er]+3)+Xr[3+4*Er],q=Xr[1+4*Er]+Xr[2+4*Er],ye=Xr[1+4*Er]-Xr[2+4*Er],ze=ge-Xr[3+4*Er],ft[er+0]=Oe+q>>3,ft[er+16]=ze+ye>>3,ft[er+32]=Oe-q>>3,ft[er+48]=ze-ye>>3,er+=64}function Gn(ge,He,ft){var er,Er=He-32,Xr=ll,Oe=255-ge[Er-1];for(er=0;er<ft;++er){var q,ye=Xr,ze=Oe+ge[He-1];for(q=0;q<ft;++q)ge[He+q]=ye[ze+ge[Er+q]];He+=32}}function wi(ge,He){Gn(ge,He,4)}function Ei(ge,He){Gn(ge,He,8)}function Zi(ge,He){Gn(ge,He,16)}function ua(ge,He){var ft;for(ft=0;16>ft;++ft)Fe(ge,He+32*ft,ge,He-32,16)}function Xi(ge,He){var ft;for(ft=16;0<ft;--ft)Ye(ge,He,ge[He-1],16),He+=32}function Gi(ge,He,ft){var er;for(er=0;16>er;++er)Ye(He,ft+32*er,ge,16)}function wa(ge,He){var ft,er=16;for(ft=0;16>ft;++ft)er+=ge[He-1+32*ft]+ge[He+ft-32];Gi(er>>5,ge,He)}function na(ge,He){var ft,er=8;for(ft=0;16>ft;++ft)er+=ge[He-1+32*ft];Gi(er>>4,ge,He)}function mo(ge,He){var ft,er=8;for(ft=0;16>ft;++ft)er+=ge[He+ft-32];Gi(er>>4,ge,He)}function Ca(ge,He){Gi(128,ge,He)}function qi(ge,He,ft){return ge+2*He+ft+2>>2}function aa(ge,He){var ft,er=He-32;for(er=new Uint8Array([qi(ge[er-1],ge[er+0],ge[er+1]),qi(ge[er+0],ge[er+1],ge[er+2]),qi(ge[er+1],ge[er+2],ge[er+3]),qi(ge[er+2],ge[er+3],ge[er+4])]),ft=0;4>ft;++ft)Fe(ge,He+32*ft,er,0,er.length)}function $i(ge,He){var ft=ge[He-1],er=ge[He-1+32],Er=ge[He-1+64],Xr=ge[He-1+96];Ji(ge,He+0,16843009*qi(ge[He-1-32],ft,er)),Ji(ge,He+32,16843009*qi(ft,er,Er)),Ji(ge,He+64,16843009*qi(er,Er,Xr)),Ji(ge,He+96,16843009*qi(Er,Xr,Xr))}function Aa(ge,He){var ft,er=4;for(ft=0;4>ft;++ft)er+=ge[He+ft-32]+ge[He-1+32*ft];for(er>>=3,ft=0;4>ft;++ft)Ye(ge,He+32*ft,er,4)}function ya(ge,He){var ft=ge[He-1+0],er=ge[He-1+32],Er=ge[He-1+64],Xr=ge[He-1-32],Oe=ge[He+0-32],q=ge[He+1-32],ye=ge[He+2-32],ze=ge[He+3-32];ge[He+0+96]=qi(er,Er,ge[He-1+96]),ge[He+1+96]=ge[He+0+64]=qi(ft,er,Er),ge[He+2+96]=ge[He+1+64]=ge[He+0+32]=qi(Xr,ft,er),ge[He+3+96]=ge[He+2+64]=ge[He+1+32]=ge[He+0+0]=qi(Oe,Xr,ft),ge[He+3+64]=ge[He+2+32]=ge[He+1+0]=qi(q,Oe,Xr),ge[He+3+32]=ge[He+2+0]=qi(ye,q,Oe),ge[He+3+0]=qi(ze,ye,q)}function Ha(ge,He){var ft=ge[He+1-32],er=ge[He+2-32],Er=ge[He+3-32],Xr=ge[He+4-32],Oe=ge[He+5-32],q=ge[He+6-32],ye=ge[He+7-32];ge[He+0+0]=qi(ge[He+0-32],ft,er),ge[He+1+0]=ge[He+0+32]=qi(ft,er,Er),ge[He+2+0]=ge[He+1+32]=ge[He+0+64]=qi(er,Er,Xr),ge[He+3+0]=ge[He+2+32]=ge[He+1+64]=ge[He+0+96]=qi(Er,Xr,Oe),ge[He+3+32]=ge[He+2+64]=ge[He+1+96]=qi(Xr,Oe,q),ge[He+3+64]=ge[He+2+96]=qi(Oe,q,ye),ge[He+3+96]=qi(q,ye,ye)}function ta(ge,He){var ft=ge[He-1+0],er=ge[He-1+32],Er=ge[He-1+64],Xr=ge[He-1-32],Oe=ge[He+0-32],q=ge[He+1-32],ye=ge[He+2-32],ze=ge[He+3-32];ge[He+0+0]=ge[He+1+64]=Xr+Oe+1>>1,ge[He+1+0]=ge[He+2+64]=Oe+q+1>>1,ge[He+2+0]=ge[He+3+64]=q+ye+1>>1,ge[He+3+0]=ye+ze+1>>1,ge[He+0+96]=qi(Er,er,ft),ge[He+0+64]=qi(er,ft,Xr),ge[He+0+32]=ge[He+1+96]=qi(ft,Xr,Oe),ge[He+1+32]=ge[He+2+96]=qi(Xr,Oe,q),ge[He+2+32]=ge[He+3+96]=qi(Oe,q,ye),ge[He+3+32]=qi(q,ye,ze)}function ra(ge,He){var ft=ge[He+0-32],er=ge[He+1-32],Er=ge[He+2-32],Xr=ge[He+3-32],Oe=ge[He+4-32],q=ge[He+5-32],ye=ge[He+6-32],ze=ge[He+7-32];ge[He+0+0]=ft+er+1>>1,ge[He+1+0]=ge[He+0+64]=er+Er+1>>1,ge[He+2+0]=ge[He+1+64]=Er+Xr+1>>1,ge[He+3+0]=ge[He+2+64]=Xr+Oe+1>>1,ge[He+0+32]=qi(ft,er,Er),ge[He+1+32]=ge[He+0+96]=qi(er,Er,Xr),ge[He+2+32]=ge[He+1+96]=qi(Er,Xr,Oe),ge[He+3+32]=ge[He+2+96]=qi(Xr,Oe,q),ge[He+3+64]=qi(Oe,q,ye),ge[He+3+96]=qi(q,ye,ze)}function _a(ge,He){var ft=ge[He-1+0],er=ge[He-1+32],Er=ge[He-1+64],Xr=ge[He-1+96];ge[He+0+0]=ft+er+1>>1,ge[He+2+0]=ge[He+0+32]=er+Er+1>>1,ge[He+2+32]=ge[He+0+64]=Er+Xr+1>>1,ge[He+1+0]=qi(ft,er,Er),ge[He+3+0]=ge[He+1+32]=qi(er,Er,Xr),ge[He+3+32]=ge[He+1+64]=qi(Er,Xr,Xr),ge[He+3+64]=ge[He+2+64]=ge[He+0+96]=ge[He+1+96]=ge[He+2+96]=ge[He+3+96]=Xr}function Ka(ge,He){var ft=ge[He-1+0],er=ge[He-1+32],Er=ge[He-1+64],Xr=ge[He-1+96],Oe=ge[He-1-32],q=ge[He+0-32],ye=ge[He+1-32],ze=ge[He+2-32];ge[He+0+0]=ge[He+2+32]=ft+Oe+1>>1,ge[He+0+32]=ge[He+2+64]=er+ft+1>>1,ge[He+0+64]=ge[He+2+96]=Er+er+1>>1,ge[He+0+96]=Xr+Er+1>>1,ge[He+3+0]=qi(q,ye,ze),ge[He+2+0]=qi(Oe,q,ye),ge[He+1+0]=ge[He+3+32]=qi(ft,Oe,q),ge[He+1+32]=ge[He+3+64]=qi(er,ft,Oe),ge[He+1+64]=ge[He+3+96]=qi(Er,er,ft),ge[He+1+96]=qi(Xr,Er,er)}function bo(ge,He){var ft;for(ft=0;8>ft;++ft)Fe(ge,He+32*ft,ge,He-32,8)}function ga(ge,He){var ft;for(ft=0;8>ft;++ft)Ye(ge,He,ge[He-1],8),He+=32}function go(ge,He,ft){var er;for(er=0;8>er;++er)Ye(He,ft+32*er,ge,8)}function Sa(ge,He){var ft,er=8;for(ft=0;8>ft;++ft)er+=ge[He+ft-32]+ge[He-1+32*ft];go(er>>4,ge,He)}function Va(ge,He){var ft,er=4;for(ft=0;8>ft;++ft)er+=ge[He+ft-32];go(er>>3,ge,He)}function uo(ge,He){var ft,er=4;for(ft=0;8>ft;++ft)er+=ge[He-1+32*ft];go(er>>3,ge,He)}function No(ge,He){go(128,ge,He)}function Po(ge,He,ft){var er=ge[He-ft],Er=ge[He+0],Xr=3*(Er-er)+Gl[1020+ge[He-2*ft]-ge[He+ft]],Oe=$s[112+(Xr+4>>3)];ge[He-ft]=ll[255+er+$s[112+(Xr+3>>3)]],ge[He+0]=ll[255+Er-Oe]}function to(ge,He,ft,er){var Er=ge[He+0],Xr=ge[He+ft];return pl[255+ge[He-2*ft]-ge[He-ft]]>er||pl[255+Xr-Er]>er}function Uo(ge,He,ft,er){return 4*pl[255+ge[He-ft]-ge[He+0]]+pl[255+ge[He-2*ft]-ge[He+ft]]<=er}function co(ge,He,ft,er,Er){var Xr=ge[He-3*ft],Oe=ge[He-2*ft],q=ge[He-ft],ye=ge[He+0],ze=ge[He+ft],at=ge[He+2*ft],Nt=ge[He+3*ft];return 4*pl[255+q-ye]+pl[255+Oe-ze]>er?0:pl[255+ge[He-4*ft]-Xr]<=Er&&pl[255+Xr-Oe]<=Er&&pl[255+Oe-q]<=Er&&pl[255+Nt-at]<=Er&&pl[255+at-ze]<=Er&&pl[255+ze-ye]<=Er}function fa(ge,He,ft,er){var Er=2*er+1;for(er=0;16>er;++er)Uo(ge,He+er,ft,Er)&&Po(ge,He+er,ft)}function ro(ge,He,ft,er){var Er=2*er+1;for(er=0;16>er;++er)Uo(ge,He+er*ft,1,Er)&&Po(ge,He+er*ft,1)}function Wa(ge,He,ft,er){var Er;for(Er=3;0<Er;--Er)fa(ge,He+=4*ft,ft,er)}function Ea(ge,He,ft,er){var Er;for(Er=3;0<Er;--Er)ro(ge,He+=4,ft,er)}function Qr(ge,He,ft,er,Er,Xr,Oe,q){for(Xr=2*Xr+1;0<Er--;){if(co(ge,He,ft,Xr,Oe))if(to(ge,He,ft,q))Po(ge,He,ft);else{var ye=ge,ze=He,at=ft,Nt=ye[ze-2*at],Kt=ye[ze-at],Qt=ye[ze+0],Ir=ye[ze+at],Zr=ye[ze+2*at],Tr=27*(Wr=Gl[1020+3*(Qt-Kt)+Gl[1020+Nt-Ir]])+63>>7,xr=18*Wr+63>>7,Wr=9*Wr+63>>7;ye[ze-3*at]=ll[255+ye[ze-3*at]+Wr],ye[ze-2*at]=ll[255+Nt+xr],ye[ze-at]=ll[255+Kt+Tr],ye[ze+0]=ll[255+Qt-Tr],ye[ze+at]=ll[255+Ir-xr],ye[ze+2*at]=ll[255+Zr-Wr]}He+=er}}function za(ge,He,ft,er,Er,Xr,Oe,q){for(Xr=2*Xr+1;0<Er--;){if(co(ge,He,ft,Xr,Oe))if(to(ge,He,ft,q))Po(ge,He,ft);else{var ye=ge,ze=He,at=ft,Nt=ye[ze-at],Kt=ye[ze+0],Qt=ye[ze+at],Ir=$s[112+((Zr=3*(Kt-Nt))+4>>3)],Zr=$s[112+(Zr+3>>3)],Tr=Ir+1>>1;ye[ze-2*at]=ll[255+ye[ze-2*at]+Tr],ye[ze-at]=ll[255+Nt+Zr],ye[ze+0]=ll[255+Kt-Ir],ye[ze+at]=ll[255+Qt-Tr]}He+=er}}function rs(ge,He,ft,er,Er,Xr){Qr(ge,He,ft,1,16,er,Er,Xr)}function Vo(ge,He,ft,er,Er,Xr){Qr(ge,He,1,ft,16,er,Er,Xr)}function Go(ge,He,ft,er,Er,Xr){var Oe;for(Oe=3;0<Oe;--Oe)za(ge,He+=4*ft,ft,1,16,er,Er,Xr)}function Qo(ge,He,ft,er,Er,Xr){var Oe;for(Oe=3;0<Oe;--Oe)za(ge,He+=4,1,ft,16,er,Er,Xr)}function Yo(ge,He,ft,er,Er,Xr,Oe,q){Qr(ge,He,Er,1,8,Xr,Oe,q),Qr(ft,er,Er,1,8,Xr,Oe,q)}function vo(ge,He,ft,er,Er,Xr,Oe,q){Qr(ge,He,1,Er,8,Xr,Oe,q),Qr(ft,er,1,Er,8,Xr,Oe,q)}function Io(ge,He,ft,er,Er,Xr,Oe,q){za(ge,He+4*Er,Er,1,8,Xr,Oe,q),za(ft,er+4*Er,Er,1,8,Xr,Oe,q)}function zo(ge,He,ft,er,Er,Xr,Oe,q){za(ge,He+4,1,Er,8,Xr,Oe,q),za(ft,er+4,1,Er,8,Xr,Oe,q)}function Fa(){this.ba=new ur,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Bn,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Ja(){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 ho(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Ao(){this.ua=0,this.Wa=new zi,this.vb=new zi,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new wr,this.yc=new Cr}function $o(){this.xb=this.a=0,this.l=new ji,this.ca=new ur,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new _r,this.Pb=0,this.wd=new _r,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Ao,this.ab=0,this.gc=Ze(4,ho),this.Oc=0}function ps(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ji,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function is(ge,He,ft,er,Er,Xr,Oe){for(ge=ge==null?0:ge[He+0],He=0;He<Oe;++He)Er[Xr+He]=ge+ft[er+He]&255,ge=Er[Xr+He]}function Za(ge,He,ft,er,Er,Xr,Oe){var q;if(ge==null)is(null,null,ft,er,Er,Xr,Oe);else for(q=0;q<Oe;++q)Er[Xr+q]=ge[He+q]+ft[er+q]&255}function St(ge,He,ft,er,Er,Xr,Oe){if(ge==null)is(null,null,ft,er,Er,Xr,Oe);else{var q,ye=ge[He+0],ze=ye,at=ye;for(q=0;q<Oe;++q)ze=at+(ye=ge[He+q])-ze,at=ft[er+q]+(-256&ze?0>ze?0:255:ze)&255,ze=ye,Er[Xr+q]=at}}function Pt(ge,He,ft,er){var Er=He.width,Xr=He.o;if(we(ge!=null&&He!=null),0>ft||0>=er||ft+er>Xr)return null;if(!ge.Cc){if(ge.ga==null){var Oe;if(ge.ga=new ps,(Oe=ge.ga==null)||(Oe=He.width*He.o,we(ge.Gb.length==0),ge.Gb=We(Oe),ge.Uc=0,ge.Gb==null?Oe=0:(ge.mb=ge.Gb,ge.nb=ge.Uc,ge.rc=null,Oe=1),Oe=!Oe),!Oe){Oe=ge.ga;var q=ge.Fa,ye=ge.P,ze=ge.qc,at=ge.mb,Nt=ge.nb,Kt=ye+1,Qt=ze-1,Ir=Oe.l;if(we(q!=null&&at!=null&&He!=null),Eo[0]=null,Eo[1]=is,Eo[2]=Za,Eo[3]=St,Oe.ca=at,Oe.tb=Nt,Oe.c=He.width,Oe.i=He.height,we(0<Oe.c&&0<Oe.i),1>=ze)He=0;else if(Oe.$a=q[ye+0]>>0&3,Oe.Z=q[ye+0]>>2&3,Oe.Lc=q[ye+0]>>4&3,ye=q[ye+0]>>6&3,0>Oe.$a||1<Oe.$a||4<=Oe.Z||1<Oe.Lc||ye)He=0;else if(Ir.put=mi,Ir.ac=Jn,Ir.bc=yi,Ir.ma=Oe,Ir.width=He.width,Ir.height=He.height,Ir.Da=He.Da,Ir.v=He.v,Ir.va=He.va,Ir.j=He.j,Ir.o=He.o,Oe.$a)e:{we(Oe.$a==1),He=li();t:for(;;){if(He==null){He=0;break e}if(we(Oe!=null),Oe.mc=He,He.c=Oe.c,He.i=Oe.i,He.l=Oe.l,He.l.ma=Oe,He.l.width=Oe.c,He.l.height=Oe.i,He.a=0,oi(He.m,q,Kt,Qt),!fi(Oe.c,Oe.i,1,He,null))break t;if(He.ab==1&&He.gc[0].hc==3&&Xt(He.s)?(Oe.ic=1,q=He.c*He.i,He.Ta=null,He.Ua=0,He.V=We(q),He.Ba=0,He.V==null?(He.a=1,He=0):He=1):(Oe.ic=0,He=di(He,Oe.c)),!He)break t;He=1;break e}Oe.mc=null,He=0}else He=Qt>=Oe.c*Oe.i;Oe=!He}if(Oe)return null;ge.ga.Lc!=1?ge.Ga=0:er=Xr-ft}we(ge.ga!=null),we(ft+er<=Xr);e:{if(He=(q=ge.ga).c,Xr=q.l.o,q.$a==0){if(Kt=ge.rc,Qt=ge.Vc,Ir=ge.Fa,ye=ge.P+1+ft*He,ze=ge.mb,at=ge.nb+ft*He,we(ye<=ge.P+ge.qc),q.Z!=0)for(we(Eo[q.Z]!=null),Oe=0;Oe<er;++Oe)Eo[q.Z](Kt,Qt,Ir,ye,ze,at,He),Kt=ze,Qt=at,at+=He,ye+=He;else for(Oe=0;Oe<er;++Oe)Fe(ze,at,Ir,ye,He),Kt=ze,Qt=at,at+=He,ye+=He;ge.rc=Kt,ge.Vc=Qt}else{if(we(q.mc!=null),He=ft+er,we((Oe=q.mc)!=null),we(He<=Oe.i),Oe.C>=He)He=1;else if(q.ic||pe(),q.ic){q=Oe.V,Kt=Oe.Ba,Qt=Oe.c;var Zr=Oe.i,Tr=(Ir=1,ye=Oe.$/Qt,ze=Oe.$%Qt,at=Oe.m,Nt=Oe.s,Oe.$),xr=Qt*Zr,Wr=Qt*He,nn=Nt.wc,_n=Tr<Wr?La(Nt,ze,ye):null;we(Tr<=xr),we(He<=Zr),we(Xt(Nt));t:for(;;){for(;!at.h&&Tr<Wr;){if(ze&nn||(_n=La(Nt,ze,ye)),we(_n!=null),qn(at),256>(Zr=Ra(_n.G[0],_n.H[0],at)))q[Kt+Tr]=Zr,++Tr,++ze>=Qt&&(ze=0,++ye<=He&&!(ye%16)&&un(Oe,ye));else{if(!(280>Zr)){Ir=0;break t}Zr=ha(Zr-256,at);var gi,Ai=Ra(_n.G[4],_n.H[4],at);if(qn(at),!(Tr>=(Ai=Pa(Qt,Ai=ha(Ai,at)))&&xr-Tr>=Zr)){Ir=0;break t}for(gi=0;gi<Zr;++gi)q[Kt+Tr+gi]=q[Kt+Tr+gi-Ai];for(Tr+=Zr,ze+=Zr;ze>=Qt;)ze-=Qt,++ye<=He&&!(ye%16)&&un(Oe,ye);Tr<Wr&&ze&nn&&(_n=La(Nt,ze,ye))}we(at.h==Fn(at))}un(Oe,ye>He?He:ye);break t}!Ir||at.h&&Tr<xr?(Ir=0,Oe.a=at.h?5:3):Oe.$=Tr,He=Ir}else He=vn(Oe,Oe.V,Oe.Ba,Oe.c,Oe.i,He,Yt);if(!He){er=0;break e}}ft+er>=Xr&&(ge.Cc=1),er=1}if(!er)return null;if(ge.Cc&&((er=ge.ga)!=null&&(er.mc=null),ge.ga=null,0<ge.Ga))return alert("todo:WebPDequantizeLevels"),null}return ge.nb+ft*Er}function Kr(ge,He,ft,er,Er,Xr){for(;0<Er--;){var Oe,q=ge,ye=He+(ft?1:0),ze=ge,at=He+(ft?0:3);for(Oe=0;Oe<er;++Oe){var Nt=ze[at+4*Oe];Nt!=255&&(Nt*=32897,q[ye+4*Oe+0]=q[ye+4*Oe+0]*Nt>>23,q[ye+4*Oe+1]=q[ye+4*Oe+1]*Nt>>23,q[ye+4*Oe+2]=q[ye+4*Oe+2]*Nt>>23)}He+=Xr}}function Pn(ge,He,ft,er,Er){for(;0<er--;){var Xr;for(Xr=0;Xr<ft;++Xr){var Oe=ge[He+2*Xr+0],q=15&(ze=ge[He+2*Xr+1]),ye=4369*q,ze=(240&ze|ze>>4)*ye>>16;ge[He+2*Xr+0]=(240&Oe|Oe>>4)*ye>>16&240|(15&Oe|Oe<<4)*ye>>16>>4&15,ge[He+2*Xr+1]=240&ze|q}He+=Er}}function ut(ge,He,ft,er,Er,Xr,Oe,q){var ye,ze,at=255;for(ze=0;ze<Er;++ze){for(ye=0;ye<er;++ye){var Nt=ge[He+ye];Xr[Oe+4*ye]=Nt,at&=Nt}He+=ft,Oe+=q}return at!=255}function ne(ge,He,ft,er,Er){var Xr;for(Xr=0;Xr<Er;++Xr)ft[er+Xr]=ge[He+Xr]>>8}function pe(){wl=Kr,Kl=Pn,il=ut,fl=ne}function be(ge,He,ft){Ur[ge]=function(er,Er,Xr,Oe,q,ye,ze,at,Nt,Kt,Qt,Ir,Zr,Tr,xr,Wr,nn){var _n,gi=nn-1>>1,Ai=q[ye+0]|ze[at+0]<<16,Qi=Nt[Kt+0]|Qt[Ir+0]<<16;we(er!=null);var Bi=3*Ai+Qi+131074>>2;for(He(er[Er+0],255&Bi,Bi>>16,Zr,Tr),Xr!=null&&(Bi=3*Qi+Ai+131074>>2,He(Xr[Oe+0],255&Bi,Bi>>16,xr,Wr)),_n=1;_n<=gi;++_n){var Ma=q[ye+_n]|ze[at+_n]<<16,ea=Nt[Kt+_n]|Qt[Ir+_n]<<16,oo=Ai+Ma+Qi+ea+524296,Ba=oo+2*(Ma+Qi)>>3;Bi=Ba+Ai>>1,Ai=(oo=oo+2*(Ai+ea)>>3)+Ma>>1,He(er[Er+2*_n-1],255&Bi,Bi>>16,Zr,Tr+(2*_n-1)*ft),He(er[Er+2*_n-0],255&Ai,Ai>>16,Zr,Tr+(2*_n-0)*ft),Xr!=null&&(Bi=oo+Qi>>1,Ai=Ba+ea>>1,He(Xr[Oe+2*_n-1],255&Bi,Bi>>16,xr,Wr+(2*_n-1)*ft),He(Xr[Oe+2*_n+0],255&Ai,Ai>>16,xr,Wr+(2*_n+0)*ft)),Ai=Ma,Qi=ea}1&nn||(Bi=3*Ai+Qi+131074>>2,He(er[Er+nn-1],255&Bi,Bi>>16,Zr,Tr+(nn-1)*ft),Xr!=null&&(Bi=3*Qi+Ai+131074>>2,He(Xr[Oe+nn-1],255&Bi,Bi>>16,xr,Wr+(nn-1)*ft)))}}function je(){Ko[Nl]=js,Ko[ou]=Ul,Ko[ql]=Bl,Ko[eu]=Ol,Ko[el]=Ll,Ko[tu]=jl,Ko[ru]=Hl,Ko[su]=Ul,Ko[Cl]=Ol,Ko[Dl]=Ll,Ko[Fl]=jl}function ht(ge){return ge&~Vu?0>ge?0:255:ge>>_u}function Vt(ge,He){return ht((19077*ge>>8)+(26149*He>>8)-14234)}function Or(ge,He,ft){return ht((19077*ge>>8)-(6419*He>>8)-(13320*ft>>8)+8708)}function Yr(ge,He){return ht((19077*ge>>8)+(33050*He>>8)-17685)}function cn(ge,He,ft,er,Er){er[Er+0]=Vt(ge,ft),er[Er+1]=Or(ge,He,ft),er[Er+2]=Yr(ge,He)}function jn(ge,He,ft,er,Er){er[Er+0]=Yr(ge,He),er[Er+1]=Or(ge,He,ft),er[Er+2]=Vt(ge,ft)}function ai(ge,He,ft,er,Er){var Xr=Or(ge,He,ft);He=Xr<<3&224|Yr(ge,He)>>3,er[Er+0]=248&Vt(ge,ft)|Xr>>5,er[Er+1]=He}function Qn(ge,He,ft,er,Er){var Xr=240&Yr(ge,He)|15;er[Er+0]=240&Vt(ge,ft)|Or(ge,He,ft)>>4,er[Er+1]=Xr}function Ni(ge,He,ft,er,Er){er[Er+0]=255,cn(ge,He,ft,er,Er+1)}function Vi(ge,He,ft,er,Er){jn(ge,He,ft,er,Er),er[Er+3]=255}function Ta(ge,He,ft,er,Er){cn(ge,He,ft,er,Er),er[Er+3]=255}function ri(ge,He){return 0>ge?0:ge>He?He:ge}function Ga(ge,He,ft){Ur[ge]=function(er,Er,Xr,Oe,q,ye,ze,at,Nt){for(var Kt=at+(-2&Nt)*ft;at!=Kt;)He(er[Er+0],Xr[Oe+0],q[ye+0],ze,at),He(er[Er+1],Xr[Oe+0],q[ye+0],ze,at+ft),Er+=2,++Oe,++ye,at+=2*ft;1&Nt&&He(er[Er+0],Xr[Oe+0],q[ye+0],ze,at)}}function ao(ge,He,ft){return ft==0?ge==0?He==0?6:5:He==0?4:0:ft}function Do(ge,He,ft,er,Er){switch(ge>>>30){case 3:bl(He,ft,er,Er,0);break;case 2:ol(He,ft,er,Er);break;case 1:zs(He,ft,er,Er)}}function fo(ge,He){var ft,er,Er=He.M,Xr=He.Nb,Oe=ge.oc,q=ge.pc+40,ye=ge.oc,ze=ge.pc+584,at=ge.oc,Nt=ge.pc+600;for(ft=0;16>ft;++ft)Oe[q+32*ft-1]=129;for(ft=0;8>ft;++ft)ye[ze+32*ft-1]=129,at[Nt+32*ft-1]=129;for(0<Er?Oe[q-1-32]=ye[ze-1-32]=at[Nt-1-32]=129:(Ye(Oe,q-32-1,127,21),Ye(ye,ze-32-1,127,9),Ye(at,Nt-32-1,127,9)),er=0;er<ge.za;++er){var Kt=He.ya[He.aa+er];if(0<er){for(ft=-1;16>ft;++ft)Fe(Oe,q+32*ft-4,Oe,q+32*ft+12,4);for(ft=-1;8>ft;++ft)Fe(ye,ze+32*ft-4,ye,ze+32*ft+4,4),Fe(at,Nt+32*ft-4,at,Nt+32*ft+4,4)}var Qt=ge.Gd,Ir=ge.Hd+er,Zr=Kt.ad,Tr=Kt.Hc;if(0<Er&&(Fe(Oe,q-32,Qt[Ir].y,0,16),Fe(ye,ze-32,Qt[Ir].f,0,8),Fe(at,Nt-32,Qt[Ir].ea,0,8)),Kt.Za){var xr=Oe,Wr=q-32+16;for(0<Er&&(er>=ge.za-1?Ye(xr,Wr,Qt[Ir].y[15],4):Fe(xr,Wr,Qt[Ir+1].y,0,4)),ft=0;4>ft;ft++)xr[Wr+128+ft]=xr[Wr+256+ft]=xr[Wr+384+ft]=xr[Wr+0+ft];for(ft=0;16>ft;++ft,Tr<<=2)xr=Oe,Wr=q+Ou[ft],Rl[Kt.Ob[ft]](xr,Wr),Do(Tr,Zr,16*+ft,xr,Wr)}else if(xr=ao(er,Er,Kt.Ob[0]),_l[xr](Oe,q),Tr!=0)for(ft=0;16>ft;++ft,Tr<<=2)Do(Tr,Zr,16*+ft,Oe,q+Ou[ft]);for(ft=Kt.Gc,xr=ao(er,Er,Kt.Dd),Wl[xr](ye,ze),Wl[xr](at,Nt),Tr=Zr,xr=ye,Wr=ze,255&(Kt=ft>>0)&&(170&Kt?Gs(Tr,256,xr,Wr):vl(Tr,256,xr,Wr)),Kt=at,Tr=Nt,255&(ft>>=8)&&(170&ft?Gs(Zr,320,Kt,Tr):vl(Zr,320,Kt,Tr)),Er<ge.Ub-1&&(Fe(Qt[Ir].y,0,Oe,q+480,16),Fe(Qt[Ir].f,0,ye,ze+224,8),Fe(Qt[Ir].ea,0,at,Nt+224,8)),ft=8*Xr*ge.B,Qt=ge.sa,Ir=ge.ta+16*er+16*Xr*ge.R,Zr=ge.qa,Kt=ge.ra+8*er+ft,Tr=ge.Ha,xr=ge.Ia+8*er+ft,ft=0;16>ft;++ft)Fe(Qt,Ir+ft*ge.R,Oe,q+32*ft,16);for(ft=0;8>ft;++ft)Fe(Zr,Kt+ft*ge.B,ye,ze+32*ft,8),Fe(Tr,xr+ft*ge.B,at,Nt+32*ft,8)}}function as(ge,He,ft,er,Er,Xr,Oe,q,ye){var ze=[0],at=[0],Nt=0,Kt=ye!=null?ye.kd:0,Qt=ye!=null?ye:new Ja;if(ge==null||12>ft)return 7;Qt.data=ge,Qt.w=He,Qt.ha=ft,He=[He],ft=[ft],Qt.gb=[Qt.gb];e:{var Ir=He,Zr=ft,Tr=Qt.gb;if(we(ge!=null),we(Zr!=null),we(Tr!=null),Tr[0]=0,12<=Zr[0]&&!Ne(ge,Ir[0],"RIFF")){if(Ne(ge,Ir[0]+8,"WEBP")){Tr=3;break e}var xr=qa(ge,Ir[0]+4);if(12>xr||4294967286<xr){Tr=3;break e}if(Kt&&xr>Zr[0]-8){Tr=7;break e}Tr[0]=xr,Ir[0]+=12,Zr[0]-=12}Tr=0}if(Tr!=0)return Tr;for(xr=0<Qt.gb[0],ft=ft[0];;){e:{var Wr=ge;Zr=He,Tr=ft;var nn=ze,_n=at,gi=Ir=[0];if((Bi=Nt=[Nt])[0]=0,8>Tr[0])Tr=7;else{if(!Ne(Wr,Zr[0],"VP8X")){if(qa(Wr,Zr[0]+4)!=10){Tr=3;break e}if(18>Tr[0]){Tr=7;break e}var Ai=qa(Wr,Zr[0]+8),Qi=1+la(Wr,Zr[0]+12);if(2147483648<=Qi*(Wr=1+la(Wr,Zr[0]+15))){Tr=3;break e}gi!=null&&(gi[0]=Ai),nn!=null&&(nn[0]=Qi),_n!=null&&(_n[0]=Wr),Zr[0]+=18,Tr[0]-=18,Bi[0]=1}Tr=0}}if(Nt=Nt[0],Ir=Ir[0],Tr!=0)return Tr;if(Zr=!!(2&Ir),!xr&&Nt)return 3;if(Xr!=null&&(Xr[0]=!!(16&Ir)),Oe!=null&&(Oe[0]=Zr),q!=null&&(q[0]=0),Oe=ze[0],Ir=at[0],Nt&&Zr&&ye==null){Tr=0;break}if(4>ft){Tr=7;break}if(xr&&Nt||!xr&&!Nt&&!Ne(ge,He[0],"ALPH")){ft=[ft],Qt.na=[Qt.na],Qt.P=[Qt.P],Qt.Sa=[Qt.Sa];e:{Ai=ge,Tr=He,xr=ft;var Bi=Qt.gb;nn=Qt.na,_n=Qt.P,gi=Qt.Sa,Qi=22,we(Ai!=null),we(xr!=null),Wr=Tr[0];var Ma=xr[0];for(we(nn!=null),we(gi!=null),nn[0]=null,_n[0]=null,gi[0]=0;;){if(Tr[0]=Wr,xr[0]=Ma,8>Ma){Tr=7;break e}var ea=qa(Ai,Wr+4);if(4294967286<ea){Tr=3;break e}var oo=8+ea+1&-2;if(Qi+=oo,0<Bi&&Qi>Bi){Tr=3;break e}if(!Ne(Ai,Wr,"VP8 ")||!Ne(Ai,Wr,"VP8L")){Tr=0;break e}if(Ma[0]<oo){Tr=7;break e}Ne(Ai,Wr,"ALPH")||(nn[0]=Ai,_n[0]=Wr+8,gi[0]=ea),Wr+=oo,Ma-=oo}}if(ft=ft[0],Qt.na=Qt.na[0],Qt.P=Qt.P[0],Qt.Sa=Qt.Sa[0],Tr!=0)break}ft=[ft],Qt.Ja=[Qt.Ja],Qt.xa=[Qt.xa];e:if(Bi=ge,Tr=He,xr=ft,nn=Qt.gb[0],_n=Qt.Ja,gi=Qt.xa,Ai=Tr[0],Wr=!Ne(Bi,Ai,"VP8 "),Qi=!Ne(Bi,Ai,"VP8L"),we(Bi!=null),we(xr!=null),we(_n!=null),we(gi!=null),8>xr[0])Tr=7;else{if(Wr||Qi){if(Bi=qa(Bi,Ai+4),12<=nn&&Bi>nn-12){Tr=3;break e}if(Kt&&Bi>xr[0]-8){Tr=7;break e}_n[0]=Bi,Tr[0]+=8,xr[0]-=8,gi[0]=Qi}else gi[0]=5<=xr[0]&&Bi[Ai+0]==47&&!(Bi[Ai+4]>>5),_n[0]=xr[0];Tr=0}if(ft=ft[0],Qt.Ja=Qt.Ja[0],Qt.xa=Qt.xa[0],He=He[0],Tr!=0)break;if(4294967286<Qt.Ja)return 3;if(q==null||Zr||(q[0]=Qt.xa?2:1),Oe=[Oe],Ir=[Ir],Qt.xa){if(5>ft){Tr=7;break}q=Oe,Kt=Ir,Zr=Xr,ge==null||5>ft?ge=0:5<=ft&&ge[He+0]==47&&!(ge[He+4]>>5)?(xr=[0],Bi=[0],nn=[0],oi(_n=new _r,ge,He,ft),da(_n,xr,Bi,nn)?(q!=null&&(q[0]=xr[0]),Kt!=null&&(Kt[0]=Bi[0]),Zr!=null&&(Zr[0]=nn[0]),ge=1):ge=0):ge=0}else{if(10>ft){Tr=7;break}q=Ir,ge==null||10>ft||!Gt(ge,He+3,ft-3)?ge=0:(Kt=ge[He+0]|ge[He+1]<<8|ge[He+2]<<16,Zr=16383&(ge[He+7]<<8|ge[He+6]),ge=16383&(ge[He+9]<<8|ge[He+8]),1&Kt||3<(Kt>>1&7)||!(Kt>>4&1)||Kt>>5>=Qt.Ja||!Zr||!ge?ge=0:(Oe&&(Oe[0]=Zr),q&&(q[0]=ge),ge=1))}if(!ge)return 3;if(Oe=Oe[0],Ir=Ir[0],Nt&&(ze[0]!=Oe||at[0]!=Ir))return 3;ye!=null&&(ye[0]=Qt,ye.offset=He-ye.w,we(4294967286>He-ye.w),we(ye.offset==ye.ha-ft));break}return Tr==0||Tr==7&&Nt&&ye==null?(Xr!=null&&(Xr[0]|=Qt.na!=null&&0<Qt.na.length),er!=null&&(er[0]=Oe),Er!=null&&(Er[0]=Ir),0):Tr}function io(ge,He,ft){var er=He.width,Er=He.height,Xr=0,Oe=0,q=er,ye=Er;if(He.Da=ge!=null&&0<ge.Da,He.Da&&(q=ge.cd,ye=ge.bd,Xr=ge.v,Oe=ge.j,11>ft||(Xr&=-2,Oe&=-2),0>Xr||0>Oe||0>=q||0>=ye||Xr+q>er||Oe+ye>Er))return 0;if(He.v=Xr,He.j=Oe,He.va=Xr+q,He.o=Oe+ye,He.U=q,He.T=ye,He.da=ge!=null&&0<ge.da,He.da){if(!oa(q,ye,ft=[ge.ib],Xr=[ge.hb]))return 0;He.ib=ft[0],He.hb=Xr[0]}return He.ob=ge!=null&&ge.ob,He.Kb=ge==null||!ge.Sd,He.da&&(He.ob=He.ib<3*er/4&&He.hb<3*Er/4,He.Kb=0),1}function Xa(ge){if(ge==null)return 2;if(11>ge.S){var He=ge.f.RGBA;He.fb+=(ge.height-1)*He.A,He.A=-He.A}else He=ge.f.kb,ge=ge.height,He.O+=(ge-1)*He.fa,He.fa=-He.fa,He.N+=(ge-1>>1)*He.Ab,He.Ab=-He.Ab,He.W+=(ge-1>>1)*He.Db,He.Db=-He.Db,He.F!=null&&(He.J+=(ge-1)*He.lb,He.lb=-He.lb);return 0}function Ya(ge,He,ft,er){if(er==null||0>=ge||0>=He)return 2;if(ft!=null){if(ft.Da){var Er=ft.cd,Xr=ft.bd,Oe=-2&ft.v,q=-2&ft.j;if(0>Oe||0>q||0>=Er||0>=Xr||Oe+Er>ge||q+Xr>He)return 2;ge=Er,He=Xr}if(ft.da){if(!oa(ge,He,Er=[ft.ib],Xr=[ft.hb]))return 2;ge=Er[0],He=Xr[0]}}er.width=ge,er.height=He;e:{var ye=er.width,ze=er.height;if(ge=er.S,0>=ye||0>=ze||!(ge>=Nl&&13>ge))ge=2;else{if(0>=er.Rd&&er.sd==null){Oe=Xr=Er=He=0;var at=(q=ye*Eu[ge])*ze;if(11>ge||(Xr=(ze+1)/2*(He=(ye+1)/2),ge==12&&(Oe=(Er=ye)*ze)),(ze=We(at+2*Xr+Oe))==null){ge=1;break e}er.sd=ze,11>ge?((ye=er.f.RGBA).eb=ze,ye.fb=0,ye.A=q,ye.size=at):((ye=er.f.kb).y=ze,ye.O=0,ye.fa=q,ye.Fd=at,ye.f=ze,ye.N=0+at,ye.Ab=He,ye.Cd=Xr,ye.ea=ze,ye.W=0+at+Xr,ye.Db=He,ye.Ed=Xr,ge==12&&(ye.F=ze,ye.J=0+at+2*Xr),ye.Tc=Oe,ye.lb=Er)}if(He=1,Er=er.S,Xr=er.width,Oe=er.height,Er>=Nl&&13>Er)if(11>Er)ge=er.f.RGBA,He&=(q=Math.abs(ge.A))*(Oe-1)+Xr<=ge.size,He&=q>=Xr*Eu[Er],He&=ge.eb!=null;else{ge=er.f.kb,q=(Xr+1)/2,at=(Oe+1)/2,ye=Math.abs(ge.fa),ze=Math.abs(ge.Ab);var Nt=Math.abs(ge.Db),Kt=Math.abs(ge.lb),Qt=Kt*(Oe-1)+Xr;He&=ye*(Oe-1)+Xr<=ge.Fd,He&=ze*(at-1)+q<=ge.Cd,He=(He&=Nt*(at-1)+q<=ge.Ed)&ye>=Xr&ze>=q&Nt>=q,He&=ge.y!=null,He&=ge.f!=null,He&=ge.ea!=null,Er==12&&(He&=Kt>=Xr,He&=Qt<=ge.Tc,He&=ge.F!=null)}else He=0;ge=He?0:2}}return ge!=0||ft!=null&&ft.fd&&(ge=Xa(er)),ge}var ka=64,os=[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],Es=24,qo=32,pa=8,ls=[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];Hi("Predictor0","PredictorAdd0"),Ur.Predictor0=function(){return 4278190080},Ur.Predictor1=function(ge){return ge},Ur.Predictor2=function(ge,He,ft){return He[ft+0]},Ur.Predictor3=function(ge,He,ft){return He[ft+1]},Ur.Predictor4=function(ge,He,ft){return He[ft-1]},Ur.Predictor5=function(ge,He,ft){return Da(Da(ge,He[ft+1]),He[ft+0])},Ur.Predictor6=function(ge,He,ft){return Da(ge,He[ft-1])},Ur.Predictor7=function(ge,He,ft){return Da(ge,He[ft+0])},Ur.Predictor8=function(ge,He,ft){return Da(He[ft-1],He[ft+0])},Ur.Predictor9=function(ge,He,ft){return Da(He[ft+0],He[ft+1])},Ur.Predictor10=function(ge,He,ft){return Da(Da(ge,He[ft-1]),Da(He[ft+0],He[ft+1]))},Ur.Predictor11=function(ge,He,ft){var er=He[ft+0];return 0>=po(er>>24&255,ge>>24&255,(He=He[ft-1])>>24&255)+po(er>>16&255,ge>>16&255,He>>16&255)+po(er>>8&255,ge>>8&255,He>>8&255)+po(255&er,255&ge,255&He)?er:ge},Ur.Predictor12=function(ge,He,ft){var er=He[ft+0];return(Qa((ge>>24&255)+(er>>24&255)-((He=He[ft-1])>>24&255))<<24|Qa((ge>>16&255)+(er>>16&255)-(He>>16&255))<<16|Qa((ge>>8&255)+(er>>8&255)-(He>>8&255))<<8|Qa((255&ge)+(255&er)-(255&He)))>>>0},Ur.Predictor13=function(ge,He,ft){var er=He[ft-1];return(Wo((ge=Da(ge,He[ft+0]))>>24&255,er>>24&255)<<24|Wo(ge>>16&255,er>>16&255)<<16|Wo(ge>>8&255,er>>8&255)<<8|Wo(ge>>0&255,er>>0&255))>>>0};var Os=Ur.PredictorAdd0;Ur.PredictorAdd1=Mo,Hi("Predictor2","PredictorAdd2"),Hi("Predictor3","PredictorAdd3"),Hi("Predictor4","PredictorAdd4"),Hi("Predictor5","PredictorAdd5"),Hi("Predictor6","PredictorAdd6"),Hi("Predictor7","PredictorAdd7"),Hi("Predictor8","PredictorAdd8"),Hi("Predictor9","PredictorAdd9"),Hi("Predictor10","PredictorAdd10"),Hi("Predictor11","PredictorAdd11"),Hi("Predictor12","PredictorAdd12"),Hi("Predictor13","PredictorAdd13");var ys=Ur.PredictorAdd2;sa("ColorIndexInverseTransform","MapARGB","32b",function(ge){return ge>>8&255},function(ge){return ge}),sa("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(ge){return ge},function(ge){return ge>>8&255});var ms,ws=Ur.ColorIndexInverseTransform,Pl=Ur.MapARGB,ml=Ur.VP8LColorIndexInverseTransformAlpha,Ws=Ur.MapAlpha,fs=Ur.VP8LPredictorsAdd=[];fs.length=16,(Ur.VP8LPredictors=[]).length=16,(Ur.VP8LPredictorsAdd_C=[]).length=16,(Ur.VP8LPredictors_C=[]).length=16;var _s,gl,Bs,Us,Qs,al,El,bl,ol,Gs,zs,vl,Xs,sl,dl,rl,nl,Tl,Rs,bs,Ms,Ts,Zs,hl,wl,Kl,il,fl,kl=We(511),gu=We(2041),Jl=We(225),Zl=We(767),$l=0,Gl=gu,$s=Jl,ll=Zl,pl=kl,Nl=0,ou=1,ql=2,eu=3,el=4,tu=5,ru=6,su=7,Cl=8,Dl=9,Fl=10,Xl=[2,3,7],jo=[3,3,11],Ho=[280,256,256,256,40],us=[0,1,1,1,0],cs=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Cs=[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],ds=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Js=8,ss=[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],Is=[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],Al=null,lu=[[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]],uu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Yl=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],nu=[[[[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]]]],vu=[[[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]]],yu=[[[[255,255,255,255,255,255,255,255,255,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]]]],bu=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],_l=[],Rl=[],Wl=[],es=1,$a=2,Eo=[],Ko=[];be("UpsampleRgbLinePair",cn,3),be("UpsampleBgrLinePair",jn,3),be("UpsampleRgbaLinePair",Ta,4),be("UpsampleBgraLinePair",Vi,4),be("UpsampleArgbLinePair",Ni,4),be("UpsampleRgba4444LinePair",Qn,2),be("UpsampleRgb565LinePair",ai,2);var js=Ur.UpsampleRgbLinePair,Bl=Ur.UpsampleBgrLinePair,Ul=Ur.UpsampleRgbaLinePair,Ol=Ur.UpsampleBgraLinePair,Ll=Ur.UpsampleArgbLinePair,jl=Ur.UpsampleRgba4444LinePair,Hl=Ur.UpsampleRgb565LinePair,Vs=16,cu=1<<Vs-1,wu=-227,Au=482,_u=6,Vu=(256<<_u)-1,Fu=0,ec=We(256),Bu=We(256),Gu=We(256),Xu=We(256),Yu=We(Au-wu),Uu=We(Au-wu);Ga("YuvToRgbRow",cn,3),Ga("YuvToBgrRow",jn,3),Ga("YuvToRgbaRow",Ta,4),Ga("YuvToBgraRow",Vi,4),Ga("YuvToArgbRow",Ni,4),Ga("YuvToRgba4444Row",Qn,2),Ga("YuvToRgb565Row",ai,2);var Ou=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ql=[0,2,8],Iu=[8,7,6,4,4,2,2,2,1,1,1,1],iu=1;this.WebPDecodeRGBA=function(ge,He,ft,er,Er){var Xr=ou,Oe=new Fa,q=new ur;Oe.ba=q,q.S=Xr,q.width=[q.width],q.height=[q.height];var ye=q.width,ze=q.height,at=new on;if(at==null||ge==null)var Nt=2;else we(at!=null),Nt=as(ge,He,ft,at.width,at.height,at.Pd,at.Qd,at.format,null);if(Nt!=0?ye=0:(ye!=null&&(ye[0]=at.width[0]),ze!=null&&(ze[0]=at.height[0]),ye=1),ye){q.width=q.width[0],q.height=q.height[0],er!=null&&(er[0]=q.width),Er!=null&&(Er[0]=q.height);e:{if(er=new ji,(Er=new Ja).data=ge,Er.w=He,Er.ha=ft,Er.kd=1,He=[0],we(Er!=null),((ge=as(Er.data,Er.w,Er.ha,null,null,null,He,null,Er))==0||ge==7)&&He[0]&&(ge=4),(He=ge)==0){if(we(Oe!=null),er.data=Er.data,er.w=Er.w+Er.offset,er.ha=Er.ha-Er.offset,er.put=mi,er.ac=Jn,er.bc=yi,er.ma=Oe,Er.xa){if((ge=li())==null){Oe=1;break e}if(function(Kt,Qt){var Ir=[0],Zr=[0],Tr=[0];t:for(;;){if(Kt==null)return 0;if(Qt==null)return Kt.a=2,0;if(Kt.l=Qt,Kt.a=0,oi(Kt.m,Qt.data,Qt.w,Qt.ha),!da(Kt.m,Ir,Zr,Tr)){Kt.a=3;break t}if(Kt.xb=$a,Qt.width=Ir[0],Qt.height=Zr[0],!fi(Ir[0],Zr[0],1,Kt,null))break t;return 1}return we(Kt.a!=0),0}(ge,er)){if(er=(He=Ya(er.width,er.height,Oe.Oa,Oe.ba))==0){t:{er=ge;r:for(;;){if(er==null){er=0;break t}if(we(er.s.yc!=null),we(er.s.Ya!=null),we(0<er.s.Wb),we((ft=er.l)!=null),we((Er=ft.ma)!=null),er.xb!=0){if(er.ca=Er.ba,er.tb=Er.tb,we(er.ca!=null),!io(Er.Oa,ft,eu)){er.a=2;break r}if(!di(er,ft.width))break r;if(ft.da)break r;if((ft.da||rn(er.ca.S))&&pe(),11>er.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),er.ca.f.kb.F!=null&&pe()),er.Pb&&0<er.s.ua&&er.s.vb.X==null&&!bi(er.s.vb,er.s.Wa.Xa)){er.a=1;break r}er.xb=0}if(!vn(er,er.V,er.Ba,er.c,er.i,ft.o,So))break r;Er.Dc=er.Ma,er=1;break t}we(er.a!=0),er=0}er=!er}er&&(He=ge.a)}else He=ge.a}else{if((ge=new ei)==null){Oe=1;break e}if(ge.Fa=Er.na,ge.P=Er.P,ge.qc=Er.Sa,vr(ge,er)){if((He=Ya(er.width,er.height,Oe.Oa,Oe.ba))==0){if(ge.Aa=0,ft=Oe.Oa,we((Er=ge)!=null),ft!=null){if(0<(ye=0>(ye=ft.Md)?0:100<ye?255:255*ye/100)){for(ze=at=0;4>ze;++ze)12>(Nt=Er.pb[ze]).lc&&(Nt.ia=ye*Iu[0>Nt.lc?0:Nt.lc]>>3),at|=Nt.ia;at&&(alert("todo:VP8InitRandom"),Er.ia=1)}Er.Ga=ft.Id,100<Er.Ga?Er.Ga=100:0>Er.Ga&&(Er.Ga=0)}Pr(ge,er)||(He=ge.a)}}else He=ge.a}He==0&&Oe.Oa!=null&&Oe.Oa.fd&&(He=Xa(Oe.ba))}Oe=He}Xr=Oe!=0?null:11>Xr?q.f.RGBA.eb:q.f.kb.y}else Xr=null;return Xr};var Eu=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Jt(Ki,Ur){for(var Tn="",Mr=0;Mr<4;Mr++)Tn+=String.fromCharCode(Ki[Ur++]);return Tn}function Dr(Ki,Ur){return(Ki[Ur+0]<<0|Ki[Ur+1]<<8|Ki[Ur+2]<<16)>>>0}function Sr(Ki,Ur){return(Ki[Ur+0]<<0|Ki[Ur+1]<<8|Ki[Ur+2]<<16|Ki[Ur+3]<<24)>>>0}new it;var Br=[0],$t=[0],gn=[],or=new it,ln=Qe,an=function(Ki,Ur){var Tn={},Mr=0,mr=!1,Cr=0,Lt=0;if(Tn.frames=[],!function(_r,xn,Fn,zn){for(var qn=0;qn<zn;qn++)if(_r[xn+qn]!=Fn.charCodeAt(qn))return!0;return!1}(Ki,Ur,"RIFF",4)){var wr,Vr;for(Sr(Ki,Ur+=4),Ur+=8;Ur<Ki.length;){var jr=Jt(Ki,Ur),qr=Sr(Ki,Ur+=4);Ur+=4;var oi=qr+(1&qr);switch(jr){case"VP8 ":case"VP8L":Tn.frames[Mr]===void 0&&(Tn.frames[Mr]={}),(dn=Tn.frames[Mr]).src_off=mr?Lt:Ur-8,dn.src_size=Cr+qr+8,Mr++,mr&&(mr=!1,Cr=0,Lt=0);break;case"VP8X":(dn=Tn.header={}).feature_flags=Ki[Ur];var Vn=Ur+4;dn.canvas_width=1+Dr(Ki,Vn),Vn+=3,dn.canvas_height=1+Dr(Ki,Vn),Vn+=3;break;case"ALPH":mr=!0,Cr=oi+8,Lt=Ur-8;break;case"ANIM":(dn=Tn.header).bgcolor=Sr(Ki,Ur),Vn=Ur+4,dn.loop_count=(wr=Ki)[(Vr=Vn)+0]<<0|wr[Vr+1]<<8,Vn+=2;break;case"ANMF":var Ti,dn;(dn=Tn.frames[Mr]={}).offset_x=2*Dr(Ki,Ur),Ur+=3,dn.offset_y=2*Dr(Ki,Ur),Ur+=3,dn.width=1+Dr(Ki,Ur),Ur+=3,dn.height=1+Dr(Ki,Ur),Ur+=3,dn.duration=Dr(Ki,Ur),Ur+=3,Ti=Ki[Ur++],dn.dispose=1&Ti,dn.blend=Ti>>1&1}jr!="ANMF"&&(Ur+=oi)}return Tn}}(ln,0);an.response=ln,an.rgbaoutput=!0,an.dataurl=!1;var Rr=an.header?an.header:null,On=an.frames?an.frames:null;if(Rr){Rr.loop_counter=Rr.loop_count,Br=[Rr.canvas_height],$t=[Rr.canvas_width];for(var ci=0;ci<On.length&&On[ci].blend!=0;ci++);}var Ui=On[0],ki=or.WebPDecodeRGBA(ln,Ui.src_off,Ui.src_size,$t,Br);Ui.rgba=ki,Ui.imgwidth=$t[0],Ui.imgheight=Br[0];for(var Di=0;Di<$t[0]*Br[0]*4;Di++)gn[Di]=ki[Di];return this.width=$t,this.height=Br,this.data=gn,this}!function(Qe){var we=function(){return typeof A.b=="function"},Ne=function($t,gn,or,ln){var an=4,Rr=Ze;switch(ln){case Qe.image_compression.FAST:an=1,Rr=We;break;case Qe.image_compression.MEDIUM:an=6,Rr=mt;break;case Qe.image_compression.SLOW:an=9,Rr=it}$t=Fe($t,gn,or,Rr);var On=Object(A.b)($t,{level:an});return Qe.__addimage__.arrayBufferToBinaryString(On)},Fe=function($t,gn,or,ln){for(var an,Rr,On,ci=$t.length/gn,Ui=new Uint8Array($t.length+ci),ki=Dr(),Di=0;Di<ci;Di+=1){if(On=Di*gn,an=$t.subarray(On,On+gn),ln)Ui.set(ln(an,or,Rr),On+Di);else{for(var Ki,Ur=ki.length,Tn=[];Ki<Ur;Ki+=1)Tn[Ki]=ki[Ki](an,or,Rr);var Mr=Sr(Tn.concat());Ui.set(Tn[Mr],On+Di)}Rr=an}return Ui},Ye=function($t){var gn=Array.apply([],$t);return gn.unshift(0),gn},We=function($t,gn){var or,ln=[],an=$t.length;ln[0]=1;for(var Rr=0;Rr<an;Rr+=1)or=$t[Rr-gn]||0,ln[Rr+1]=$t[Rr]-or+256&255;return ln},Ze=function($t,gn,or){var ln,an=[],Rr=$t.length;an[0]=2;for(var On=0;On<Rr;On+=1)ln=or&&or[On]||0,an[On+1]=$t[On]-ln+256&255;return an},mt=function($t,gn,or){var ln,an,Rr=[],On=$t.length;Rr[0]=3;for(var ci=0;ci<On;ci+=1)ln=$t[ci-gn]||0,an=or&&or[ci]||0,Rr[ci+1]=$t[ci]+256-(ln+an>>>1)&255;return Rr},it=function($t,gn,or){var ln,an,Rr,On,ci=[],Ui=$t.length;ci[0]=4;for(var ki=0;ki<Ui;ki+=1)ln=$t[ki-gn]||0,an=or&&or[ki]||0,Rr=or&&or[ki-gn]||0,On=Jt(ln,an,Rr),ci[ki+1]=$t[ki]-On+256&255;return ci},Jt=function($t,gn,or){if($t===gn&&gn===or)return $t;var ln=Math.abs(gn-or),an=Math.abs($t-or),Rr=Math.abs($t+gn-or-or);return ln<=an&&ln<=Rr?$t:an<=Rr?gn:or},Dr=function(){return[Ye,We,Ze,mt,it]},Sr=function($t){var gn=$t.map(function(or){return or.reduce(function(ln,an){return ln+Math.abs(an)},0)});return gn.indexOf(Math.min.apply(null,gn))};Qe.processPNG=function(Br,$t,gn,or){var ln,an,Rr,On,ci,Ui,ki,Di,Ki,Ur,Tn,Mr,mr,Cr,Lt,wr=this.decode.FLATE_DECODE,Vr="";if(this.__addimage__.isArrayBuffer(Br)&&(Br=new Uint8Array(Br)),this.__addimage__.isArrayBufferView(Br)){if(Br=(Rr=new nt(Br)).imgData,an=Rr.bits,ln=Rr.colorSpace,ci=Rr.colors,[4,6].indexOf(Rr.colorType)!==-1){if(Rr.bits===8){Ki=(Di=Rr.pixelBitlength==32?new Uint32Array(Rr.decodePixels().buffer):Rr.pixelBitlength==16?new Uint16Array(Rr.decodePixels().buffer):new Uint8Array(Rr.decodePixels().buffer)).length,Tn=new Uint8Array(Ki*Rr.colors),Ur=new Uint8Array(Ki);var jr,qr=Rr.pixelBitlength-Rr.bits;for(Cr=0,Lt=0;Cr<Ki;Cr++){for(mr=Di[Cr],jr=0;jr<qr;)Tn[Lt++]=mr>>>jr&255,jr+=Rr.bits;Ur[Cr]=mr>>>jr&255}}if(Rr.bits===16){Ki=(Di=new Uint32Array(Rr.decodePixels().buffer)).length,Tn=new Uint8Array(Ki*(32/Rr.pixelBitlength)*Rr.colors),Ur=new Uint8Array(Ki*(32/Rr.pixelBitlength)),Mr=Rr.colors>1,Cr=0,Lt=0;for(var oi=0;Cr<Ki;)mr=Di[Cr++],Tn[Lt++]=mr>>>0&255,Mr&&(Tn[Lt++]=mr>>>16&255,mr=Di[Cr++],Tn[Lt++]=mr>>>0&255),Ur[oi++]=mr>>>16&255;an=8}or!==Qe.image_compression.NONE&&we()?(Br=Ne(Tn,Rr.width*Rr.colors,Rr.colors,or),ki=Ne(Ur,Rr.width,1,or)):(Br=Tn,ki=Ur,wr=void 0)}if(Rr.colorType===3&&(ln=this.color_spaces.INDEXED,Ui=Rr.palette,Rr.transparency.indexed)){var Vn=Rr.transparency.indexed,Ti=0;for(Cr=0,Ki=Vn.length;Cr<Ki;++Cr)Ti+=Vn[Cr];if((Ti/=255)===Ki-1&&Vn.indexOf(0)!==-1)On=[Vn.indexOf(0)];else if(Ti!==Ki){for(Di=Rr.decodePixels(),Ur=new Uint8Array(Di.length),Cr=0,Ki=Di.length;Cr<Ki;Cr++)Ur[Cr]=Vn[Di[Cr]];ki=Ne(Ur,Rr.width,1)}}var dn=function(_r){var xn;switch(_r){case Qe.image_compression.FAST:xn=11;break;case Qe.image_compression.MEDIUM:xn=13;break;case Qe.image_compression.SLOW:xn=14;break;default:xn=12}return xn}(or);return wr===this.decode.FLATE_DECODE&&(Vr="/Predictor "+dn+" "),Vr+="/Colors "+ci+" /BitsPerComponent "+an+" /Columns "+Rr.width,(this.__addimage__.isArrayBuffer(Br)||this.__addimage__.isArrayBufferView(Br))&&(Br=this.__addimage__.arrayBufferToBinaryString(Br)),(ki&&this.__addimage__.isArrayBuffer(ki)||this.__addimage__.isArrayBufferView(ki))&&(ki=this.__addimage__.arrayBufferToBinaryString(ki)),{alias:gn,data:Br,index:$t,filter:wr,decodeParameters:Vr,transparency:On,palette:Ui,sMask:ki,predictor:dn,width:Rr.width,height:Rr.height,bitsPerComponent:an,colorSpace:ln}}}}(j.API),function(Qe){Qe.processGIF89A=function(we,Ne,Fe,Ye){var We=new yt(we),Ze=We.width,mt=We.height,it=[];We.decodeAndBlitFrameRGBA(0,it);var Jt={data:it,width:Ze,height:mt},Dr=new bt(100).encode(Jt,100);return Qe.processJPEG.call(this,Dr,Ne,Fe,Ye)},Qe.processGIF87A=Qe.processGIF89A}(j.API),It.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var Qe=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(Qe);for(var we=0;we<Qe;we++){var Ne=this.datav.getUint8(this.pos++,!0),Fe=this.datav.getUint8(this.pos++,!0),Ye=this.datav.getUint8(this.pos++,!0),We=this.datav.getUint8(this.pos++,!0);this.palette[we]={red:Ye,green:Fe,blue:Ne,quad:We}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},It.prototype.parseBGR=function(){this.pos=this.offset;try{var Qe="bit"+this.bitPP,we=this.width*this.height*4;this.data=new Uint8Array(we),this[Qe]()}catch(Ne){f.log("bit decode error:"+Ne)}},It.prototype.bit1=function(){var Qe,we=Math.ceil(this.width/8),Ne=we%4;for(Qe=this.height-1;Qe>=0;Qe--){for(var Fe=this.bottom_up?Qe:this.height-1-Qe,Ye=0;Ye<we;Ye++)for(var We=this.datav.getUint8(this.pos++,!0),Ze=Fe*this.width*4+8*Ye*4,mt=0;mt<8&&8*Ye+mt<this.width;mt++){var it=this.palette[We>>7-mt&1];this.data[Ze+4*mt]=it.blue,this.data[Ze+4*mt+1]=it.green,this.data[Ze+4*mt+2]=it.red,this.data[Ze+4*mt+3]=255}Ne!==0&&(this.pos+=4-Ne)}},It.prototype.bit4=function(){for(var Qe=Math.ceil(this.width/2),we=Qe%4,Ne=this.height-1;Ne>=0;Ne--){for(var Fe=this.bottom_up?Ne:this.height-1-Ne,Ye=0;Ye<Qe;Ye++){var We=this.datav.getUint8(this.pos++,!0),Ze=Fe*this.width*4+2*Ye*4,mt=We>>4,it=15&We,Jt=this.palette[mt];if(this.data[Ze]=Jt.blue,this.data[Ze+1]=Jt.green,this.data[Ze+2]=Jt.red,this.data[Ze+3]=255,2*Ye+1>=this.width)break;Jt=this.palette[it],this.data[Ze+4]=Jt.blue,this.data[Ze+4+1]=Jt.green,this.data[Ze+4+2]=Jt.red,this.data[Ze+4+3]=255}we!==0&&(this.pos+=4-we)}},It.prototype.bit8=function(){for(var Qe=this.width%4,we=this.height-1;we>=0;we--){for(var Ne=this.bottom_up?we:this.height-1-we,Fe=0;Fe<this.width;Fe++){var Ye=this.datav.getUint8(this.pos++,!0),We=Ne*this.width*4+4*Fe;if(Ye<this.palette.length){var Ze=this.palette[Ye];this.data[We]=Ze.red,this.data[We+1]=Ze.green,this.data[We+2]=Ze.blue,this.data[We+3]=255}else this.data[We]=255,this.data[We+1]=255,this.data[We+2]=255,this.data[We+3]=255}Qe!==0&&(this.pos+=4-Qe)}},It.prototype.bit15=function(){for(var Qe=this.width%3,we=parseInt("11111",2),Ne=this.height-1;Ne>=0;Ne--){for(var Fe=this.bottom_up?Ne:this.height-1-Ne,Ye=0;Ye<this.width;Ye++){var We=this.datav.getUint16(this.pos,!0);this.pos+=2;var Ze=(We&we)/we*255|0,mt=(We>>5&we)/we*255|0,it=(We>>10&we)/we*255|0,Jt=We>>15?255:0,Dr=Fe*this.width*4+4*Ye;this.data[Dr]=it,this.data[Dr+1]=mt,this.data[Dr+2]=Ze,this.data[Dr+3]=Jt}this.pos+=Qe}},It.prototype.bit16=function(){for(var Qe=this.width%3,we=parseInt("11111",2),Ne=parseInt("111111",2),Fe=this.height-1;Fe>=0;Fe--){for(var Ye=this.bottom_up?Fe:this.height-1-Fe,We=0;We<this.width;We++){var Ze=this.datav.getUint16(this.pos,!0);this.pos+=2;var mt=(Ze&we)/we*255|0,it=(Ze>>5&Ne)/Ne*255|0,Jt=(Ze>>11)/we*255|0,Dr=Ye*this.width*4+4*We;this.data[Dr]=Jt,this.data[Dr+1]=it,this.data[Dr+2]=mt,this.data[Dr+3]=255}this.pos+=Qe}},It.prototype.bit24=function(){for(var Qe=this.height-1;Qe>=0;Qe--){for(var we=this.bottom_up?Qe:this.height-1-Qe,Ne=0;Ne<this.width;Ne++){var Fe=this.datav.getUint8(this.pos++,!0),Ye=this.datav.getUint8(this.pos++,!0),We=this.datav.getUint8(this.pos++,!0),Ze=we*this.width*4+4*Ne;this.data[Ze]=We,this.data[Ze+1]=Ye,this.data[Ze+2]=Fe,this.data[Ze+3]=255}this.pos+=this.width%4}},It.prototype.bit32=function(){for(var Qe=this.height-1;Qe>=0;Qe--)for(var we=this.bottom_up?Qe:this.height-1-Qe,Ne=0;Ne<this.width;Ne++){var Fe=this.datav.getUint8(this.pos++,!0),Ye=this.datav.getUint8(this.pos++,!0),We=this.datav.getUint8(this.pos++,!0),Ze=this.datav.getUint8(this.pos++,!0),mt=we*this.width*4+4*Ne;this.data[mt]=We,this.data[mt+1]=Ye,this.data[mt+2]=Fe,this.data[mt+3]=Ze}},It.prototype.getData=function(){return this.data},function(Qe){Qe.processBMP=function(we,Ne,Fe,Ye){var We=new It(we,!1),Ze=We.width,mt=We.height,it={data:We.getData(),width:Ze,height:mt},Jt=new bt(100).encode(it,100);return Qe.processJPEG.call(this,Jt,Ne,Fe,Ye)}}(j.API),gr.prototype.getData=function(){return this.data},function(Qe){Qe.processWEBP=function(we,Ne,Fe,Ye){var We=new gr(we,!1),Ze=We.width,mt=We.height,it={data:We.getData(),width:Ze,height:mt},Jt=new bt(100).encode(it,100);return Qe.processJPEG.call(this,Jt,Ne,Fe,Ye)}}(j.API),j.API.processRGBA=function(Qe,we,Ne){for(var Fe=Qe.data,Ye=Fe.length,We=new Uint8Array(Ye/4*3),Ze=new Uint8Array(Ye/4),mt=0,it=0,Jt=0;Jt<Ye;Jt+=4){var Dr=Fe[Jt],Sr=Fe[Jt+1],Br=Fe[Jt+2],$t=Fe[Jt+3];We[mt++]=Dr,We[mt++]=Sr,We[mt++]=Br,Ze[it++]=$t}var gn=this.__addimage__.arrayBufferToBinaryString(We);return{alpha:this.__addimage__.arrayBufferToBinaryString(Ze),data:gn,index:we,alias:Ne,colorSpace:"DeviceRGB",bitsPerComponent:8,width:Qe.width,height:Qe.height}},j.API.setLanguage=function(Qe){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[Qe]!==void 0&&(this.internal.languageSettings.languageCode=Qe,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},kt=j.API,vt=kt.getCharWidthsArray=function(Qe,we){var Ne,Fe,Ye=(we=we||{}).font||this.internal.getFont(),We=we.fontSize||this.internal.getFontSize(),Ze=we.charSpace||this.internal.getCharSpace(),mt=we.widths?we.widths:Ye.metadata.Unicode.widths,it=mt.fof?mt.fof:1,Jt=we.kerning?we.kerning:Ye.metadata.Unicode.kerning,Dr=Jt.fof?Jt.fof:1,Sr=we.doKerning!==!1,Br=0,$t=Qe.length,gn=0,or=mt[0]||it,ln=[];for(Ne=0;Ne<$t;Ne++)Fe=Qe.charCodeAt(Ne),typeof Ye.metadata.widthOfString=="function"?ln.push((Ye.metadata.widthOfGlyph(Ye.metadata.characterToGlyph(Fe))+Ze*(1e3/We)||0)/1e3):(Br=Sr&&C()(Jt[Fe])==="object"&&!isNaN(parseInt(Jt[Fe][gn],10))?Jt[Fe][gn]/Dr:0,ln.push((mt[Fe]||or)/it+Br)),gn=Fe;return ln},Re=kt.getStringUnitWidth=function(Qe,we){var Ne=(we=we||{}).fontSize||this.internal.getFontSize(),Fe=we.font||this.internal.getFont(),Ye=we.charSpace||this.internal.getCharSpace();return kt.processArabic&&(Qe=kt.processArabic(Qe)),typeof Fe.metadata.widthOfString=="function"?Fe.metadata.widthOfString(Qe,Ne,Ye)/Ne:vt.apply(this,arguments).reduce(function(We,Ze){return We+Ze},0)},Ke=function(we,Ne,Fe,Ye){for(var We=[],Ze=0,mt=we.length,it=0;Ze!==mt&&it+Ne[Ze]<Fe;)it+=Ne[Ze],Ze++;We.push(we.slice(0,Ze));var Jt=Ze;for(it=0;Ze!==mt;)it+Ne[Ze]>Ye&&(We.push(we.slice(Jt,Ze)),it=0,Jt=Ze),it+=Ne[Ze],Ze++;return Jt!==Ze&&We.push(we.slice(Jt,Ze)),We},Pe=function(we,Ne,Fe){Fe||(Fe={});var Ye,We,Ze,mt,it,Jt,Dr,Sr=[],Br=[Sr],$t=Fe.textIndent||0,gn=0,or=0,ln=we.split(" "),an=vt.apply(this,[" ",Fe])[0];if(Jt=Fe.lineIndent===-1?ln[0].length+2:Fe.lineIndent||0){var Rr=Array(Jt).join(" "),On=[];ln.map(function(Ui){(Ui=Ui.split(/\s*\n/)).length>1?On=On.concat(Ui.map(function(ki,Di){return(Di&&ki.length?`
|
|
|
`:"")+ki})):On.push(Ui[0])}),ln=On,Jt=Re.apply(this,[Rr,Fe])}for(Ze=0,mt=ln.length;Ze<mt;Ze++){var ci=0;if(Ye=ln[Ze],Jt&&Ye[0]==`
|
|
|
`&&(Ye=Ye.substr(1),ci=1),$t+gn+(or=(We=vt.apply(this,[Ye,Fe])).reduce(function(Ui,ki){return Ui+ki},0))>Ne||ci){if(or>Ne){for(it=Ke.apply(this,[Ye,We,Ne-($t+gn),Ne]),Sr.push(it.shift()),Sr=[it.pop()];it.length;)Br.push([it.shift()]);or=We.slice(Ye.length-(Sr[0]?Sr[0].length:0)).reduce(function(Ui,ki){return Ui+ki},0)}else Sr=[Ye];Br.push(Sr),$t=or+Jt,gn=an}else Sr.push(Ye),$t+=gn+or,gn=an}return Dr=Jt?function(Ui,ki){return(ki?Rr:"")+Ui.join(" ")}:function(Ui){return Ui.join(" ")},Br.map(Dr)},kt.splitTextToSize=function(Qe,we,Ne){var Fe,Ye=(Ne=Ne||{}).fontSize||this.internal.getFontSize(),We=function(Dr){if(Dr.widths&&Dr.kerning)return{widths:Dr.widths,kerning:Dr.kerning};var Sr=this.internal.getFont(Dr.fontName,Dr.fontStyle);return Sr.metadata.Unicode?{widths:Sr.metadata.Unicode.widths||{0:1},kerning:Sr.metadata.Unicode.kerning||{}}:{font:Sr.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,Ne);Fe=Array.isArray(Qe)?Qe:String(Qe).split(/\r?\n/);var Ze=1*this.internal.scaleFactor*we/Ye;We.textIndent=Ne.textIndent?1*Ne.textIndent*this.internal.scaleFactor/Ye:0,We.lineIndent=Ne.lineIndent;var mt,it,Jt=[];for(mt=0,it=Fe.length;mt<it;mt++)Jt=Jt.concat(Pe.apply(this,[Fe[mt],Ze,We]));return Jt},function(Qe){Qe.__fontmetrics__=Qe.__fontmetrics__||{};for(var we="klmnopqrstuvwxyz",Ne={},Fe={},Ye=0;Ye<we.length;Ye++)Ne[we[Ye]]="0123456789abcdef"[Ye],Fe["0123456789abcdef"[Ye]]=we[Ye];var We=function(Br){return"0x"+parseInt(Br,10).toString(16)},Ze=Qe.__fontmetrics__.compress=function(Sr){var Br,$t,gn,or,ln=["{"];for(var an in Sr){if(Br=Sr[an],isNaN(parseInt(an,10))?$t="'"+an+"'":(an=parseInt(an,10),$t=($t=We(an).slice(2)).slice(0,-1)+Fe[$t.slice(-1)]),typeof Br=="number")Br<0?(gn=We(Br).slice(3),or="-"):(gn=We(Br).slice(2),or=""),gn=or+gn.slice(0,-1)+Fe[gn.slice(-1)];else{if(C()(Br)!=="object")throw new Error("Don't know what to do with value type "+C()(Br)+".");gn=Ze(Br)}ln.push($t+gn)}return ln.push("}"),ln.join("")},mt=Qe.__fontmetrics__.uncompress=function(Sr){if(typeof Sr!="string")throw new Error("Invalid argument passed to uncompress.");for(var Br,$t,gn,or,ln={},an=1,Rr=ln,On=[],ci="",Ui="",ki=Sr.length-1,Di=1;Di<ki;Di+=1)(or=Sr[Di])=="'"?Br?(gn=Br.join(""),Br=void 0):Br=[]:Br?Br.push(or):or=="{"?(On.push([Rr,gn]),Rr={},gn=void 0):or=="}"?(($t=On.pop())[0][$t[1]]=Rr,gn=void 0,Rr=$t[0]):or=="-"?an=-1:gn===void 0?Ne.hasOwnProperty(or)?(ci+=Ne[or],gn=parseInt(ci,16)*an,an=1,ci=""):ci+=or:Ne.hasOwnProperty(or)?(Ui+=Ne[or],Rr[gn]=parseInt(Ui,16)*an,an=1,gn=void 0,Ui=""):Ui+=or;return ln},it={codePages:["WinAnsiEncoding"],WinAnsiEncoding:mt("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Jt={Unicode:{Courier:it,"Courier-Bold":it,"Courier-BoldOblique":it,"Courier-Oblique":it,Helvetica:it,"Helvetica-Bold":it,"Helvetica-BoldOblique":it,"Helvetica-Oblique":it,"Times-Roman":it,"Times-Bold":it,"Times-BoldItalic":it,"Times-Italic":it}},Dr={Unicode:{"Courier-Oblique":mt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":mt("{'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":mt("{'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:mt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":mt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":mt("{'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:mt("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:mt("{'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":mt("{'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:mt("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":mt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":mt("{'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":mt("{'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":mt("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};Qe.events.push(["addFont",function(Sr){var Br=Sr.font,$t=Dr.Unicode[Br.postScriptName];$t&&(Br.metadata.Unicode={},Br.metadata.Unicode.widths=$t.widths,Br.metadata.Unicode.kerning=$t.kerning);var gn=Jt.Unicode[Br.postScriptName];gn&&(Br.metadata.Unicode.encoding=gn,Br.encoding=gn.codePages[0])}])}(j.API),function(Qe){var we=function(Fe){for(var Ye=Fe.length,We=new Uint8Array(Ye),Ze=0;Ze<Ye;Ze++)We[Ze]=Fe.charCodeAt(Ze);return We};Qe.API.events.push(["addFont",function(Ne){var Fe=void 0,Ye=Ne.font,We=Ne.instance;if(!Ye.isStandardFont){if(We===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+Ye.postScriptName+"').");if(typeof(Fe=We.existsFileInVFS(Ye.postScriptName)===!1?We.loadFile(Ye.postScriptName):We.getFileFromVFS(Ye.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+Ye.postScriptName+"').");!function(Ze,mt){mt=/^\x00\x01\x00\x00/.test(mt)?we(mt):we(i(mt)),Ze.metadata=Qe.API.TTFFont.open(mt),Ze.metadata.Unicode=Ze.metadata.Unicode||{encoding:{},kerning:{},widths:[]},Ze.metadata.glyIdsUsed=[0]}(Ye,Fe)}}])}(j),function(Qe){function we(){return(S.canvg?Promise.resolve(S.canvg):Promise.all([d.e(0),d.e(241)]).then(d.bind(null,"DXPr"))).catch(function(Ne){return Promise.reject(new Error("Could not load canvg: "+Ne))}).then(function(Ne){return Ne.default?Ne.default:Ne})}j.API.addSvgAsImage=function(Ne,Fe,Ye,We,Ze,mt,it,Jt){if(isNaN(Fe)||isNaN(Ye))throw f.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(We)||isNaN(Ze))throw f.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Dr=document.createElement("canvas");Dr.width=We,Dr.height=Ze;var Sr=Dr.getContext("2d");Sr.fillStyle="#fff",Sr.fillRect(0,0,Dr.width,Dr.height);var Br={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},$t=this;return we().then(function(gn){return gn.fromString(Sr,Ne,Br)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(gn){return gn.render(Br)}).then(function(){$t.addImage(Dr.toDataURL("image/jpeg",1),Fe,Ye,We,Ze,it,Jt)})}}(),j.API.putTotalPages=function(Qe){var we,Ne=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(we=new RegExp(Qe,"g"),Ne=this.internal.getNumberOfPages()):(we=new RegExp(this.pdfEscape16(Qe,this.internal.getFont()),"g"),Ne=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Fe=1;Fe<=this.internal.getNumberOfPages();Fe++)for(var Ye=0;Ye<this.internal.pages[Fe].length;Ye++)this.internal.pages[Fe][Ye]=this.internal.pages[Fe][Ye].replace(we,Ne);return this},j.API.viewerPreferences=function(Qe,we){var Ne;Qe=Qe||{},we=we||!1;var Fe,Ye,We,Ze={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}},mt=Object.keys(Ze),it=[],Jt=0,Dr=0,Sr=0;function Br(gn,or){var ln,an=!1;for(ln=0;ln<gn.length;ln+=1)gn[ln]===or&&(an=!0);return an}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(Ze)),this.internal.viewerpreferences.isSubscribed=!1),Ne=this.internal.viewerpreferences.configuration,Qe==="reset"||we===!0){var $t=mt.length;for(Sr=0;Sr<$t;Sr+=1)Ne[mt[Sr]].value=Ne[mt[Sr]].defaultValue,Ne[mt[Sr]].explicitSet=!1}if(C()(Qe)==="object"){for(Ye in Qe)if(We=Qe[Ye],Br(mt,Ye)&&We!==void 0){if(Ne[Ye].type==="boolean"&&typeof We=="boolean")Ne[Ye].value=We;else if(Ne[Ye].type==="name"&&Br(Ne[Ye].valueSet,We))Ne[Ye].value=We;else if(Ne[Ye].type==="integer"&&Number.isInteger(We))Ne[Ye].value=We;else if(Ne[Ye].type==="array"){for(Jt=0;Jt<We.length;Jt+=1)if(Fe=!0,We[Jt].length===1&&typeof We[Jt][0]=="number")it.push(String(We[Jt]-1));else if(We[Jt].length>1){for(Dr=0;Dr<We[Jt].length;Dr+=1)typeof We[Jt][Dr]!="number"&&(Fe=!1);Fe===!0&&it.push([We[Jt][0]-1,We[Jt][1]-1].join(" "))}Ne[Ye].value="["+it.join(" ")+"]"}else Ne[Ye].value=Ne[Ye].defaultValue;Ne[Ye].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var gn,or=[];for(gn in Ne)Ne[gn].explicitSet===!0&&(Ne[gn].type==="name"?or.push("/"+gn+" /"+Ne[gn].value):or.push("/"+gn+" "+Ne[gn].value));or.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+or.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=Ne,this},function(Qe){var we=function(){var Ye='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',We=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),Ze=unescape(encodeURIComponent(Ye)),mt=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),it=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Jt=unescape(encodeURIComponent("</x:xmpmeta>")),Dr=Ze.length+mt.length+it.length+We.length+Jt.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Dr+" >>"),this.internal.write("stream"),this.internal.write(We+Ze+mt+it+Jt),this.internal.write("endstream"),this.internal.write("endobj")},Ne=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};Qe.addMetadata=function(Fe,Ye){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Fe,namespaceuri:Ye||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",Ne),this.internal.events.subscribe("postPutResources",we)),this}}(j.API),function(Qe){var we=Qe.API,Ne=we.pdfEscape16=function(We,Ze){for(var mt,it=Ze.metadata.Unicode.widths,Jt=["","0","00","000","0000"],Dr=[""],Sr=0,Br=We.length;Sr<Br;++Sr){if(mt=Ze.metadata.characterToGlyph(We.charCodeAt(Sr)),Ze.metadata.glyIdsUsed.push(mt),Ze.metadata.toUnicode[mt]=We.charCodeAt(Sr),it.indexOf(mt)==-1&&(it.push(mt),it.push([parseInt(Ze.metadata.widthOfGlyph(mt),10)])),mt=="0")return Dr.join("");mt=mt.toString(16),Dr.push(Jt[4-mt.length],mt)}return Dr.join("")},Fe=function(Ze){var mt,it,Jt,Dr,Sr,Br,$t;for(Sr=`/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`,Jt=[],Br=0,$t=(it=Object.keys(Ze).sort(function(gn,or){return gn-or})).length;Br<$t;Br++)mt=it[Br],Jt.length>=100&&(Sr+=`
|
|
|
`+Jt.length+` beginbfchar
|
|
|
`+Jt.join(`
|
|
|
`)+`
|
|
|
endbfchar`,Jt=[]),Ze[mt]!==void 0&&Ze[mt]!==null&&typeof Ze[mt].toString=="function"&&(Dr=("0000"+Ze[mt].toString(16)).slice(-4),mt=("0000"+(+mt).toString(16)).slice(-4),Jt.push("<"+mt+"><"+Dr+">"));return Jt.length&&(Sr+=`
|
|
|
`+Jt.length+` beginbfchar
|
|
|
`+Jt.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),Sr+=`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};we.events.push(["putFont",function(We){!function(Ze){var mt=Ze.font,it=Ze.out,Jt=Ze.newObject,Dr=Ze.putStream;if(mt.metadata instanceof Qe.API.TTFFont&&mt.encoding==="Identity-H"){for(var Sr=mt.metadata.Unicode.widths,Br=mt.metadata.subset.encode(mt.metadata.glyIdsUsed,1),$t="",gn=0;gn<Br.length;gn++)$t+=String.fromCharCode(Br[gn]);var or=Jt();Dr({data:$t,addLength1:!0,objectId:or}),it("endobj");var ln=Jt();Dr({data:Fe(mt.metadata.toUnicode),addLength1:!0,objectId:ln}),it("endobj");var an=Jt();it("<<"),it("/Type /FontDescriptor"),it("/FontName /"+D(mt.fontName)),it("/FontFile2 "+or+" 0 R"),it("/FontBBox "+Qe.API.PDFObject.convert(mt.metadata.bbox)),it("/Flags "+mt.metadata.flags),it("/StemV "+mt.metadata.stemV),it("/ItalicAngle "+mt.metadata.italicAngle),it("/Ascent "+mt.metadata.ascender),it("/Descent "+mt.metadata.decender),it("/CapHeight "+mt.metadata.capHeight),it(">>"),it("endobj");var Rr=Jt();it("<<"),it("/Type /Font"),it("/BaseFont /"+D(mt.fontName)),it("/FontDescriptor "+an+" 0 R"),it("/W "+Qe.API.PDFObject.convert(Sr)),it("/CIDToGIDMap /Identity"),it("/DW 1000"),it("/Subtype /CIDFontType2"),it("/CIDSystemInfo"),it("<<"),it("/Supplement 0"),it("/Registry (Adobe)"),it("/Ordering ("+mt.encoding+")"),it(">>"),it(">>"),it("endobj"),mt.objectNumber=Jt(),it("<<"),it("/Type /Font"),it("/Subtype /Type0"),it("/ToUnicode "+ln+" 0 R"),it("/BaseFont /"+D(mt.fontName)),it("/Encoding /"+mt.encoding),it("/DescendantFonts ["+Rr+" 0 R]"),it(">>"),it("endobj"),mt.isAlreadyPutted=!0}}(We)}]),we.events.push(["putFont",function(We){!function(Ze){var mt=Ze.font,it=Ze.out,Jt=Ze.newObject,Dr=Ze.putStream;if(mt.metadata instanceof Qe.API.TTFFont&&mt.encoding==="WinAnsiEncoding"){for(var Sr=mt.metadata.rawData,Br="",$t=0;$t<Sr.length;$t++)Br+=String.fromCharCode(Sr[$t]);var gn=Jt();Dr({data:Br,addLength1:!0,objectId:gn}),it("endobj");var or=Jt();Dr({data:Fe(mt.metadata.toUnicode),addLength1:!0,objectId:or}),it("endobj");var ln=Jt();it("<<"),it("/Descent "+mt.metadata.decender),it("/CapHeight "+mt.metadata.capHeight),it("/StemV "+mt.metadata.stemV),it("/Type /FontDescriptor"),it("/FontFile2 "+gn+" 0 R"),it("/Flags 96"),it("/FontBBox "+Qe.API.PDFObject.convert(mt.metadata.bbox)),it("/FontName /"+D(mt.fontName)),it("/ItalicAngle "+mt.metadata.italicAngle),it("/Ascent "+mt.metadata.ascender),it(">>"),it("endobj"),mt.objectNumber=Jt();for(var an=0;an<mt.metadata.hmtx.widths.length;an++)mt.metadata.hmtx.widths[an]=parseInt(mt.metadata.hmtx.widths[an]*(1e3/mt.metadata.head.unitsPerEm));it("<</Subtype/TrueType/Type/Font/ToUnicode "+or+" 0 R/BaseFont/"+D(mt.fontName)+"/FontDescriptor "+ln+" 0 R/Encoding/"+mt.encoding+" /FirstChar 29 /LastChar 255 /Widths "+Qe.API.PDFObject.convert(mt.metadata.hmtx.widths)+">>"),it("endobj"),mt.isAlreadyPutted=!0}}(We)}]);var Ye=function(Ze){var mt,it=Ze.text||"",Jt=Ze.x,Dr=Ze.y,Sr=Ze.options||{},Br=Ze.mutex||{},$t=Br.pdfEscape,gn=Br.activeFontKey,or=Br.fonts,ln=gn,an="",Rr=0,On="",ci=or[ln].encoding;if(or[ln].encoding!=="Identity-H")return{text:it,x:Jt,y:Dr,options:Sr,mutex:Br};for(On=it,ln=gn,Array.isArray(it)&&(On=it[0]),Rr=0;Rr<On.length;Rr+=1)or[ln].metadata.hasOwnProperty("cmap")&&(mt=or[ln].metadata.cmap.unicode.codeMap[On[Rr].charCodeAt(0)]),mt||On[Rr].charCodeAt(0)<256&&or[ln].metadata.hasOwnProperty("Unicode")?an+=On[Rr]:an+="";var Ui="";return parseInt(ln.slice(1))<14||ci==="WinAnsiEncoding"?Ui=$t(an,ln).split("").map(function(ki){return ki.charCodeAt(0).toString(16)}).join(""):ci==="Identity-H"&&(Ui=Ne(an,or[ln])),Br.isHex=!0,{text:Ui,x:Jt,y:Dr,options:Sr,mutex:Br}};we.events.push(["postProcessText",function(We){var Ze=We.text||"",mt=[],it={text:Ze,x:We.x,y:We.y,options:We.options,mutex:We.mutex};if(Array.isArray(Ze)){var Jt=0;for(Jt=0;Jt<Ze.length;Jt+=1)Array.isArray(Ze[Jt])&&Ze[Jt].length===3?mt.push([Ye(Object.assign({},it,{text:Ze[Jt][0]})).text,Ze[Jt][1],Ze[Jt][2]]):mt.push(Ye(Object.assign({},it,{text:Ze[Jt]})).text);We.text=mt}else We.text=Ye(Object.assign({},it,{text:Ze})).text}])}(j),function(Qe){var we=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};Qe.existsFileInVFS=function(Ne){return we.call(this),this.internal.vFS[Ne]!==void 0},Qe.addFileToVFS=function(Ne,Fe){return we.call(this),this.internal.vFS[Ne]=Fe,this},Qe.getFileFromVFS=function(Ne){return we.call(this),this.internal.vFS[Ne]!==void 0?this.internal.vFS[Ne]:null}}(j.API),function(Qe){Qe.__bidiEngine__=Qe.prototype.__bidiEngine__=function(Fe){var Ye,We,Ze,mt,it,Jt,Dr,Sr=we,Br=[[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]],$t=[[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]],gn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},or={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},ln=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],an=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)$/),Rr=!1,On=0;this.__bidiEngine__={};var ci=function(mr){var Cr=mr.charCodeAt(),Lt=Cr>>8,wr=or[Lt];return wr!==void 0?Sr[256*wr+(255&Cr)]:Lt===252||Lt===253?"AL":an.test(Lt)?"L":Lt===8?"R":"N"},Ui=function(mr){for(var Cr,Lt=0;Lt<mr.length;Lt++){if((Cr=ci(mr.charAt(Lt)))==="L")return!1;if(Cr==="R")return!0}return!1},ki=function(mr,Cr,Lt,wr){var Vr,jr,qr,oi,Vn=Cr[wr];switch(Vn){case"L":case"R":Rr=!1;break;case"N":case"AN":break;case"EN":Rr&&(Vn="AN");break;case"AL":Rr=!0,Vn="R";break;case"WS":Vn="N";break;case"CS":wr<1||wr+1>=Cr.length||(Vr=Lt[wr-1])!=="EN"&&Vr!=="AN"||(jr=Cr[wr+1])!=="EN"&&jr!=="AN"?Vn="N":Rr&&(jr="AN"),Vn=jr===Vr?jr:"N";break;case"ES":Vn=(Vr=wr>0?Lt[wr-1]:"B")==="EN"&&wr+1<Cr.length&&Cr[wr+1]==="EN"?"EN":"N";break;case"ET":if(wr>0&&Lt[wr-1]==="EN"){Vn="EN";break}if(Rr){Vn="N";break}for(qr=wr+1,oi=Cr.length;qr<oi&&Cr[qr]==="ET";)qr++;Vn=qr<oi&&Cr[qr]==="EN"?"EN":"N";break;case"NSM":if(Ze&&!mt){for(oi=Cr.length,qr=wr+1;qr<oi&&Cr[qr]==="NSM";)qr++;if(qr<oi){var Ti=mr[wr],dn=Ti>=1425&&Ti<=2303||Ti===64286;if(Vr=Cr[qr],dn&&(Vr==="R"||Vr==="AL")){Vn="R";break}}}Vn=wr<1||(Vr=Cr[wr-1])==="B"?"N":Lt[wr-1];break;case"B":Rr=!1,Ye=!0,Vn=On;break;case"S":We=!0,Vn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Rr=!1;break;case"BN":Vn="N"}return Vn},Di=function(mr,Cr,Lt){var wr=mr.split("");return Lt&&Ki(wr,Lt,{hiLevel:On}),wr.reverse(),Cr&&Cr.reverse(),wr.join("")},Ki=function(mr,Cr,Lt){var wr,Vr,jr,qr,oi,Vn=-1,Ti=mr.length,dn=0,_r=[],xn=On?$t:Br,Fn=[];for(Rr=!1,Ye=!1,We=!1,Vr=0;Vr<Ti;Vr++)Fn[Vr]=ci(mr[Vr]);for(jr=0;jr<Ti;jr++){if(oi=dn,_r[jr]=ki(mr,Fn,_r,jr),wr=240&(dn=xn[oi][gn[_r[jr]]]),dn&=15,Cr[jr]=qr=xn[dn][5],wr>0)if(wr===16){for(Vr=Vn;Vr<jr;Vr++)Cr[Vr]=1;Vn=-1}else Vn=-1;if(xn[dn][6])Vn===-1&&(Vn=jr);else if(Vn>-1){for(Vr=Vn;Vr<jr;Vr++)Cr[Vr]=qr;Vn=-1}Fn[jr]==="B"&&(Cr[jr]=0),Lt.hiLevel|=qr}We&&function(zn,qn,Oi){for(var Li=0;Li<Oi;Li++)if(zn[Li]==="S"){qn[Li]=On;for(var Ri=Li-1;Ri>=0&&zn[Ri]==="WS";Ri--)qn[Ri]=On}}(Fn,Cr,Ti)},Ur=function(mr,Cr,Lt,wr,Vr){if(!(Vr.hiLevel<mr)){if(mr===1&&On===1&&!Ye)return Cr.reverse(),void(Lt&&Lt.reverse());for(var jr,qr,oi,Vn,Ti=Cr.length,dn=0;dn<Ti;){if(wr[dn]>=mr){for(oi=dn+1;oi<Ti&&wr[oi]>=mr;)oi++;for(Vn=dn,qr=oi-1;Vn<qr;Vn++,qr--)jr=Cr[Vn],Cr[Vn]=Cr[qr],Cr[qr]=jr,Lt&&(jr=Lt[Vn],Lt[Vn]=Lt[qr],Lt[qr]=jr);dn=oi}dn++}}},Tn=function(mr,Cr,Lt){var wr=mr.split(""),Vr={hiLevel:On};return Lt||(Lt=[]),Ki(wr,Lt,Vr),function(jr,qr,oi){if(oi.hiLevel!==0&&Dr)for(var Vn,Ti=0;Ti<jr.length;Ti++)qr[Ti]===1&&(Vn=ln.indexOf(jr[Ti]))>=0&&(jr[Ti]=ln[Vn+1])}(wr,Lt,Vr),Ur(2,wr,Cr,Lt,Vr),Ur(1,wr,Cr,Lt,Vr),wr.join("")};return this.__bidiEngine__.doBidiReorder=function(Mr,mr,Cr){if(function(wr,Vr){if(Vr)for(var jr=0;jr<wr.length;jr++)Vr[jr]=jr;mt===void 0&&(mt=Ui(wr)),Jt===void 0&&(Jt=Ui(wr))}(Mr,mr),Ze||!it||Jt)if(Ze&&it&&mt^Jt)On=mt?1:0,Mr=Di(Mr,mr,Cr);else if(!Ze&&it&&Jt)On=mt?1:0,Mr=Tn(Mr,mr,Cr),Mr=Di(Mr,mr);else if(!Ze||mt||it||Jt){if(Ze&&!it&&mt^Jt)Mr=Di(Mr,mr),mt?(On=0,Mr=Tn(Mr,mr,Cr)):(On=1,Mr=Tn(Mr,mr,Cr),Mr=Di(Mr,mr));else if(Ze&&mt&&!it&&Jt)On=1,Mr=Tn(Mr,mr,Cr),Mr=Di(Mr,mr);else if(!Ze&&!it&&mt^Jt){var Lt=Dr;mt?(On=1,Mr=Tn(Mr,mr,Cr),On=0,Dr=!1,Mr=Tn(Mr,mr,Cr),Dr=Lt):(On=0,Mr=Tn(Mr,mr,Cr),Mr=Di(Mr,mr),On=1,Dr=!1,Mr=Tn(Mr,mr,Cr),Dr=Lt,Mr=Di(Mr,mr))}}else On=0,Mr=Tn(Mr,mr,Cr);else On=mt?1:0,Mr=Tn(Mr,mr,Cr);return Mr},this.__bidiEngine__.setOptions=function(Mr){Mr&&(Ze=Mr.isInputVisual,it=Mr.isOutputVisual,mt=Mr.isInputRtl,Jt=Mr.isOutputRtl,Dr=Mr.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Fe),this.__bidiEngine__};var we=["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"],Ne=new Qe.__bidiEngine__({isInputVisual:!0});Qe.API.events.push(["postProcessText",function(Fe){var Ye=Fe.text,We=(Fe.x,Fe.y,Fe.options||{}),Ze=(Fe.mutex,We.lang,[]);if(We.isInputVisual=typeof We.isInputVisual!="boolean"||We.isInputVisual,Ne.setOptions(We),Object.prototype.toString.call(Ye)==="[object Array]"){var mt=0;for(Ze=[],mt=0;mt<Ye.length;mt+=1)Object.prototype.toString.call(Ye[mt])==="[object Array]"?Ze.push([Ne.doBidiReorder(Ye[mt][0]),Ye[mt][1],Ye[mt][2]]):Ze.push([Ne.doBidiReorder(Ye[mt])]);Fe.text=Ze}else Fe.text=Ne.doBidiReorder(Ye);Ne.setOptions({isInputVisual:!0})}])}(j),j.API.TTFFont=function(){function Qe(we){var Ne;if(this.rawData=we,Ne=this.contents=new wt(we),this.contents.pos=4,Ne.readString(4)==="ttcf")throw new Error("TTCF not supported.");Ne.pos=0,this.parse(),this.subset=new _i(this),this.registerTTF()}return Qe.open=function(we){return new Qe(we)},Qe.prototype.parse=function(){return this.directory=new rt(this.contents),this.head=new Ft(this),this.name=new pr(this),this.cmap=new Wt(this),this.toUnicode={},this.hhea=new ot(this),this.maxp=new tn(this),this.hmtx=new hn(this),this.post=new Ar(this),this.os2=new Bt(this),this.loca=new xi(this),this.glyf=new Xn(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},Qe.prototype.registerTTF=function(){var we,Ne,Fe,Ye,We;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var Ze,mt,it,Jt;for(Jt=[],Ze=0,mt=(it=this.bbox).length;Ze<mt;Ze++)we=it[Ze],Jt.push(Math.round(we*this.scaleFactor));return Jt}.call(this),this.stemV=0,this.post.exists?(Fe=255&(Ye=this.post.italic_angle),(32768&(Ne=Ye>>16))!=0&&(Ne=-(1+(65535^Ne))),this.italicAngle=+(Ne+"."+Fe)):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=(We=this.familyClass)===1||We===2||We===3||We===4||We===5||We===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},Qe.prototype.characterToGlyph=function(we){var Ne;return((Ne=this.cmap.unicode)!=null?Ne.codeMap[we]:void 0)||0},Qe.prototype.widthOfGlyph=function(we){var Ne;return Ne=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(we).advance*Ne},Qe.prototype.widthOfString=function(we,Ne,Fe){var Ye,We,Ze,mt;for(Ze=0,We=0,mt=(we=""+we).length;0<=mt?We<mt:We>mt;We=0<=mt?++We:--We)Ye=we.charCodeAt(We),Ze+=this.widthOfGlyph(this.characterToGlyph(Ye))+Fe*(1e3/Ne)||0;return Ze*(Ne/1e3)},Qe.prototype.lineHeight=function(we,Ne){var Fe;return Ne==null&&(Ne=!1),Fe=Ne?this.lineGap:0,(this.ascender+Fe-this.decender)/1e3*we},Qe}();var kr,wt=function(){function Qe(we){this.data=we!=null?we:[],this.pos=0,this.length=this.data.length}return Qe.prototype.readByte=function(){return this.data[this.pos++]},Qe.prototype.writeByte=function(we){return this.data[this.pos++]=we},Qe.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},Qe.prototype.writeUInt32=function(we){return this.writeByte(we>>>24&255),this.writeByte(we>>16&255),this.writeByte(we>>8&255),this.writeByte(255&we)},Qe.prototype.readInt32=function(){var we;return(we=this.readUInt32())>=2147483648?we-4294967296:we},Qe.prototype.writeInt32=function(we){return we<0&&(we+=4294967296),this.writeUInt32(we)},Qe.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},Qe.prototype.writeUInt16=function(we){return this.writeByte(we>>8&255),this.writeByte(255&we)},Qe.prototype.readInt16=function(){var we;return(we=this.readUInt16())>=32768?we-65536:we},Qe.prototype.writeInt16=function(we){return we<0&&(we+=65536),this.writeUInt16(we)},Qe.prototype.readString=function(we){var Ne,Fe;for(Fe=[],Ne=0;0<=we?Ne<we:Ne>we;Ne=0<=we?++Ne:--Ne)Fe[Ne]=String.fromCharCode(this.readByte());return Fe.join("")},Qe.prototype.writeString=function(we){var Ne,Fe,Ye;for(Ye=[],Ne=0,Fe=we.length;0<=Fe?Ne<Fe:Ne>Fe;Ne=0<=Fe?++Ne:--Ne)Ye.push(this.writeByte(we.charCodeAt(Ne)));return Ye},Qe.prototype.readShort=function(){return this.readInt16()},Qe.prototype.writeShort=function(we){return this.writeInt16(we)},Qe.prototype.readLongLong=function(){var we,Ne,Fe,Ye,We,Ze,mt,it;return we=this.readByte(),Ne=this.readByte(),Fe=this.readByte(),Ye=this.readByte(),We=this.readByte(),Ze=this.readByte(),mt=this.readByte(),it=this.readByte(),128&we?-1*(72057594037927940*(255^we)+281474976710656*(255^Ne)+1099511627776*(255^Fe)+4294967296*(255^Ye)+16777216*(255^We)+65536*(255^Ze)+256*(255^mt)+(255^it)+1):72057594037927940*we+281474976710656*Ne+1099511627776*Fe+4294967296*Ye+16777216*We+65536*Ze+256*mt+it},Qe.prototype.writeLongLong=function(we){var Ne,Fe;return Ne=Math.floor(we/4294967296),Fe=4294967295&we,this.writeByte(Ne>>24&255),this.writeByte(Ne>>16&255),this.writeByte(Ne>>8&255),this.writeByte(255&Ne),this.writeByte(Fe>>24&255),this.writeByte(Fe>>16&255),this.writeByte(Fe>>8&255),this.writeByte(255&Fe)},Qe.prototype.readInt=function(){return this.readInt32()},Qe.prototype.writeInt=function(we){return this.writeInt32(we)},Qe.prototype.read=function(we){var Ne,Fe;for(Ne=[],Fe=0;0<=we?Fe<we:Fe>we;Fe=0<=we?++Fe:--Fe)Ne.push(this.readByte());return Ne},Qe.prototype.write=function(we){var Ne,Fe,Ye,We;for(We=[],Fe=0,Ye=we.length;Fe<Ye;Fe++)Ne=we[Fe],We.push(this.writeByte(Ne));return We},Qe}(),rt=function(){var Qe;function we(Ne){var Fe,Ye,We;for(this.scalarType=Ne.readInt(),this.tableCount=Ne.readShort(),this.searchRange=Ne.readShort(),this.entrySelector=Ne.readShort(),this.rangeShift=Ne.readShort(),this.tables={},Ye=0,We=this.tableCount;0<=We?Ye<We:Ye>We;Ye=0<=We?++Ye:--Ye)Fe={tag:Ne.readString(4),checksum:Ne.readInt(),offset:Ne.readInt(),length:Ne.readInt()},this.tables[Fe.tag]=Fe}return we.prototype.encode=function(Ne){var Fe,Ye,We,Ze,mt,it,Jt,Dr,Sr,Br,$t,gn,or;for(or in $t=Object.keys(Ne).length,it=Math.log(2),Sr=16*Math.floor(Math.log($t)/it),Ze=Math.floor(Sr/it),Dr=16*$t-Sr,(Ye=new wt).writeInt(this.scalarType),Ye.writeShort($t),Ye.writeShort(Sr),Ye.writeShort(Ze),Ye.writeShort(Dr),We=16*$t,Jt=Ye.pos+We,mt=null,gn=[],Ne)for(Br=Ne[or],Ye.writeString(or),Ye.writeInt(Qe(Br)),Ye.writeInt(Jt),Ye.writeInt(Br.length),gn=gn.concat(Br),or==="head"&&(mt=Jt),Jt+=Br.length;Jt%4;)gn.push(0),Jt++;return Ye.write(gn),Fe=2981146554-Qe(Ye.data),Ye.pos=mt+8,Ye.writeUInt32(Fe),Ye.data},Qe=function(Fe){var Ye,We,Ze,mt;for(Fe=Mn.call(Fe);Fe.length%4;)Fe.push(0);for(Ze=new wt(Fe),We=0,Ye=0,mt=Fe.length;Ye<mt;Ye=Ye+=4)We+=Ze.readUInt32();return 4294967295&We},we}(),tt={}.hasOwnProperty,Rt=function(we,Ne){for(var Fe in Ne)tt.call(Ne,Fe)&&(we[Fe]=Ne[Fe]);function Ye(){this.constructor=we}return Ye.prototype=Ne.prototype,we.prototype=new Ye,we.__super__=Ne.prototype,we};kr=function(){function Qe(we){var Ne;this.file=we,Ne=this.file.directory.tables[this.tag],this.exists=!!Ne,Ne&&(this.offset=Ne.offset,this.length=Ne.length,this.parse(this.file.contents))}return Qe.prototype.parse=function(){},Qe.prototype.encode=function(){},Qe.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},Qe}();var Ft=function(Qe){function we(){return we.__super__.constructor.apply(this,arguments)}return Rt(we,kr),we.prototype.tag="head",we.prototype.parse=function(Ne){return Ne.pos=this.offset,this.version=Ne.readInt(),this.revision=Ne.readInt(),this.checkSumAdjustment=Ne.readInt(),this.magicNumber=Ne.readInt(),this.flags=Ne.readShort(),this.unitsPerEm=Ne.readShort(),this.created=Ne.readLongLong(),this.modified=Ne.readLongLong(),this.xMin=Ne.readShort(),this.yMin=Ne.readShort(),this.xMax=Ne.readShort(),this.yMax=Ne.readShort(),this.macStyle=Ne.readShort(),this.lowestRecPPEM=Ne.readShort(),this.fontDirectionHint=Ne.readShort(),this.indexToLocFormat=Ne.readShort(),this.glyphDataFormat=Ne.readShort()},we.prototype.encode=function(Ne){var Fe;return(Fe=new wt).writeInt(this.version),Fe.writeInt(this.revision),Fe.writeInt(this.checkSumAdjustment),Fe.writeInt(this.magicNumber),Fe.writeShort(this.flags),Fe.writeShort(this.unitsPerEm),Fe.writeLongLong(this.created),Fe.writeLongLong(this.modified),Fe.writeShort(this.xMin),Fe.writeShort(this.yMin),Fe.writeShort(this.xMax),Fe.writeShort(this.yMax),Fe.writeShort(this.macStyle),Fe.writeShort(this.lowestRecPPEM),Fe.writeShort(this.fontDirectionHint),Fe.writeShort(Ne),Fe.writeShort(this.glyphDataFormat),Fe.data},we}(),At=function(){function Qe(we,Ne){var Fe,Ye,We,Ze,mt,it,Jt,Dr,Sr,Br,$t,gn,or,ln,an,Rr,On;switch(this.platformID=we.readUInt16(),this.encodingID=we.readShort(),this.offset=Ne+we.readInt(),Sr=we.pos,we.pos=this.offset,this.format=we.readUInt16(),this.length=we.readUInt16(),this.language=we.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(it=0;it<256;++it)this.codeMap[it]=we.readByte();break;case 4:for($t=we.readUInt16(),Br=$t/2,we.pos+=6,We=function(){var ci,Ui;for(Ui=[],it=ci=0;0<=Br?ci<Br:ci>Br;it=0<=Br?++ci:--ci)Ui.push(we.readUInt16());return Ui}(),we.pos+=2,or=function(){var ci,Ui;for(Ui=[],it=ci=0;0<=Br?ci<Br:ci>Br;it=0<=Br?++ci:--ci)Ui.push(we.readUInt16());return Ui}(),Jt=function(){var ci,Ui;for(Ui=[],it=ci=0;0<=Br?ci<Br:ci>Br;it=0<=Br?++ci:--ci)Ui.push(we.readUInt16());return Ui}(),Dr=function(){var ci,Ui;for(Ui=[],it=ci=0;0<=Br?ci<Br:ci>Br;it=0<=Br?++ci:--ci)Ui.push(we.readUInt16());return Ui}(),Ye=(this.length-we.pos+this.offset)/2,mt=function(){var ci,Ui;for(Ui=[],it=ci=0;0<=Ye?ci<Ye:ci>Ye;it=0<=Ye?++ci:--ci)Ui.push(we.readUInt16());return Ui}(),it=an=0,On=We.length;an<On;it=++an)for(ln=We[it],Fe=Rr=gn=or[it];gn<=ln?Rr<=ln:Rr>=ln;Fe=gn<=ln?++Rr:--Rr)Dr[it]===0?Ze=Fe+Jt[it]:(Ze=mt[Dr[it]/2+(Fe-gn)-(Br-it)]||0)!==0&&(Ze+=Jt[it]),this.codeMap[Fe]=65535&Ze}we.pos=Sr}return Qe.encode=function(we,Ne){var Fe,Ye,We,Ze,mt,it,Jt,Dr,Sr,Br,$t,gn,or,ln,an,Rr,On,ci,Ui,ki,Di,Ki,Ur,Tn,Mr,mr,Cr,Lt,wr,Vr,jr,qr,oi,Vn,Ti,dn,_r,xn,Fn,zn,qn,Oi,Li,Ri,Ji,ma;switch(Lt=new wt,Ze=Object.keys(we).sort(function(la,qa){return la-qa}),Ne){case"macroman":for(or=0,ln=function(){var la=[];for(gn=0;gn<256;++gn)la.push(0);return la}(),Rr={0:0},We={},wr=0,oi=Ze.length;wr<oi;wr++)Rr[Li=we[Ye=Ze[wr]]]==null&&(Rr[Li]=++or),We[Ye]={old:we[Ye],new:Rr[we[Ye]]},ln[Ye]=Rr[we[Ye]];return Lt.writeUInt16(1),Lt.writeUInt16(0),Lt.writeUInt32(12),Lt.writeUInt16(0),Lt.writeUInt16(262),Lt.writeUInt16(0),Lt.write(ln),{charMap:We,subtable:Lt.data,maxGlyphID:or+1};case"unicode":for(mr=[],Sr=[],On=0,Rr={},Fe={},an=Jt=null,Vr=0,Vn=Ze.length;Vr<Vn;Vr++)Rr[Ui=we[Ye=Ze[Vr]]]==null&&(Rr[Ui]=++On),Fe[Ye]={old:Ui,new:Rr[Ui]},mt=Rr[Ui]-Ye,an!=null&&mt===Jt||(an&&Sr.push(an),mr.push(Ye),Jt=mt),an=Ye;for(an&&Sr.push(an),Sr.push(65535),mr.push(65535),Tn=2*(Ur=mr.length),Ki=2*Math.pow(Math.log(Ur)/Math.LN2,2),Br=Math.log(Ki/2)/Math.LN2,Di=2*Ur-Ki,it=[],ki=[],$t=[],gn=jr=0,Ti=mr.length;jr<Ti;gn=++jr){if(Mr=mr[gn],Dr=Sr[gn],Mr===65535){it.push(0),ki.push(0);break}if(Mr-(Cr=Fe[Mr].new)>=32768)for(it.push(0),ki.push(2*($t.length+Ur-gn)),Ye=qr=Mr;Mr<=Dr?qr<=Dr:qr>=Dr;Ye=Mr<=Dr?++qr:--qr)$t.push(Fe[Ye].new);else it.push(Cr-Mr),ki.push(0)}for(Lt.writeUInt16(3),Lt.writeUInt16(1),Lt.writeUInt32(12),Lt.writeUInt16(4),Lt.writeUInt16(16+8*Ur+2*$t.length),Lt.writeUInt16(0),Lt.writeUInt16(Tn),Lt.writeUInt16(Ki),Lt.writeUInt16(Br),Lt.writeUInt16(Di),qn=0,dn=Sr.length;qn<dn;qn++)Ye=Sr[qn],Lt.writeUInt16(Ye);for(Lt.writeUInt16(0),Oi=0,_r=mr.length;Oi<_r;Oi++)Ye=mr[Oi],Lt.writeUInt16(Ye);for(Ri=0,xn=it.length;Ri<xn;Ri++)mt=it[Ri],Lt.writeUInt16(mt);for(Ji=0,Fn=ki.length;Ji<Fn;Ji++)ci=ki[Ji],Lt.writeUInt16(ci);for(ma=0,zn=$t.length;ma<zn;ma++)or=$t[ma],Lt.writeUInt16(or);return{charMap:Fe,subtable:Lt.data,maxGlyphID:On+1}}},Qe}(),Wt=function(Qe){function we(){return we.__super__.constructor.apply(this,arguments)}return Rt(we,kr),we.prototype.tag="cmap",we.prototype.parse=function(Ne){var Fe,Ye,We;for(Ne.pos=this.offset,this.version=Ne.readUInt16(),We=Ne.readUInt16(),this.tables=[],this.unicode=null,Ye=0;0<=We?Ye<We:Ye>We;Ye=0<=We?++Ye:--Ye)Fe=new At(Ne,this.offset),this.tables.push(Fe),Fe.isUnicode&&this.unicode==null&&(this.unicode=Fe);return!0},we.encode=function(Ne,Fe){var Ye,We;return Fe==null&&(Fe="macroman"),Ye=At.encode(Ne,Fe),(We=new wt).writeUInt16(0),We.writeUInt16(1),Ye.table=We.data.concat(Ye.subtable),Ye},we}(),ot=function(Qe){function we(){return we.__super__.constructor.apply(this,arguments)}return Rt(we,kr),we.prototype.tag="hhea",we.prototype.parse=function(Ne){return Ne.pos=this.offset,this.version=Ne.readInt(),this.ascender=Ne.readShort(),this.decender=Ne.readShort(),this.lineGap=Ne.readShort(),this.advanceWidthMax=Ne.readShort(),this.minLeftSideBearing=Ne.readShort(),this.minRightSideBearing=Ne.readShort(),this.xMaxExtent=Ne.readShort(),this.caretSlopeRise=Ne.readShort(),this.caretSlopeRun=Ne.readShort(),this.caretOffset=Ne.readShort(),Ne.pos+=8,this.metricDataFormat=Ne.readShort(),this.numberOfMetrics=Ne.readUInt16()},we}(),Bt=function(Qe){function we(){return we.__super__.constructor.apply(this,arguments)}return Rt(we,kr),we.prototype.tag="OS/2",we.prototype.parse=function(Ne){if(Ne.pos=this.offset,this.version=Ne.readUInt16(),this.averageCharWidth=Ne.readShort(),this.weightClass=Ne.readUInt16(),this.widthClass=Ne.readUInt16(),this.type=Ne.readShort(),this.ySubscriptXSize=Ne.readShort(),this.ySubscriptYSize=Ne.readShort(),this.ySubscriptXOffset=Ne.readShort(),this.ySubscriptYOffset=Ne.readShort(),this.ySuperscriptXSize=Ne.readShort(),this.ySuperscriptYSize=Ne.readShort(),this.ySuperscriptXOffset=Ne.readShort(),this.ySuperscriptYOffset=Ne.readShort(),this.yStrikeoutSize=Ne.readShort(),this.yStrikeoutPosition=Ne.readShort(),this.familyClass=Ne.readShort(),this.panose=function(){var Fe,Ye;for(Ye=[],Fe=0;Fe<10;++Fe)Ye.push(Ne.readByte());return Ye}(),this.charRange=function(){var Fe,Ye;for(Ye=[],Fe=0;Fe<4;++Fe)Ye.push(Ne.readInt());return Ye}(),this.vendorID=Ne.readString(4),this.selection=Ne.readShort(),this.firstCharIndex=Ne.readShort(),this.lastCharIndex=Ne.readShort(),this.version>0&&(this.ascent=Ne.readShort(),this.descent=Ne.readShort(),this.lineGap=Ne.readShort(),this.winAscent=Ne.readShort(),this.winDescent=Ne.readShort(),this.codePageRange=function(){var Fe,Ye;for(Ye=[],Fe=0;Fe<2;Fe=++Fe)Ye.push(Ne.readInt());return Ye}(),this.version>1))return this.xHeight=Ne.readShort(),this.capHeight=Ne.readShort(),this.defaultChar=Ne.readShort(),this.breakChar=Ne.readShort(),this.maxContext=Ne.readShort()},we}(),Ar=function(Qe){function we(){return we.__super__.constructor.apply(this,arguments)}return Rt(we,kr),we.prototype.tag="post",we.prototype.parse=function(Ne){var Fe,Ye,We;switch(Ne.pos=this.offset,this.format=Ne.readInt(),this.italicAngle=Ne.readInt(),this.underlinePosition=Ne.readShort(),this.underlineThickness=Ne.readShort(),this.isFixedPitch=Ne.readInt(),this.minMemType42=Ne.readInt(),this.maxMemType42=Ne.readInt(),this.minMemType1=Ne.readInt(),this.maxMemType1=Ne.readInt(),this.format){case 65536:break;case 131072:var Ze;for(Ye=Ne.readUInt16(),this.glyphNameIndex=[],Ze=0;0<=Ye?Ze<Ye:Ze>Ye;Ze=0<=Ye?++Ze:--Ze)this.glyphNameIndex.push(Ne.readUInt16());for(this.names=[],We=[];Ne.pos<this.offset+this.length;)Fe=Ne.readByte(),We.push(this.names.push(Ne.readString(Fe)));return We;case 151552:return Ye=Ne.readUInt16(),this.offsets=Ne.read(Ye);case 196608:break;case 262144:return this.map=function(){var mt,it,Jt;for(Jt=[],Ze=mt=0,it=this.file.maxp.numGlyphs;0<=it?mt<it:mt>it;Ze=0<=it?++mt:--mt)Jt.push(Ne.readUInt32());return Jt}.call(this)}},we}(),rr=function(we,Ne){this.raw=we,this.length=we.length,this.platformID=Ne.platformID,this.encodingID=Ne.encodingID,this.languageID=Ne.languageID},pr=function(Qe){function we(){return we.__super__.constructor.apply(this,arguments)}return Rt(we,kr),we.prototype.tag="name",we.prototype.parse=function(Ne){var Fe,Ye,We,Ze,mt,it,Jt,Dr,Sr,Br,$t;for(Ne.pos=this.offset,Ne.readShort(),Fe=Ne.readShort(),it=Ne.readShort(),Ye=[],Ze=0;0<=Fe?Ze<Fe:Ze>Fe;Ze=0<=Fe?++Ze:--Ze)Ye.push({platformID:Ne.readShort(),encodingID:Ne.readShort(),languageID:Ne.readShort(),nameID:Ne.readShort(),length:Ne.readShort(),offset:this.offset+it+Ne.readShort()});for(Jt={},Ze=Sr=0,Br=Ye.length;Sr<Br;Ze=++Sr)We=Ye[Ze],Ne.pos=We.offset,Dr=Ne.readString(We.length),mt=new rr(Dr,We),Jt[$t=We.nameID]==null&&(Jt[$t]=[]),Jt[We.nameID].push(mt);this.strings=Jt,this.copyright=Jt[0],this.fontFamily=Jt[1],this.fontSubfamily=Jt[2],this.uniqueSubfamily=Jt[3],this.fontName=Jt[4],this.version=Jt[5];try{this.postscriptName=Jt[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(gn){this.postscriptName=Jt[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=Jt[7],this.manufacturer=Jt[8],this.designer=Jt[9],this.description=Jt[10],this.vendorUrl=Jt[11],this.designerUrl=Jt[12],this.license=Jt[13],this.licenseUrl=Jt[14],this.preferredFamily=Jt[15],this.preferredSubfamily=Jt[17],this.compatibleFull=Jt[18],this.sampleText=Jt[19]},we}(),tn=function(Qe){function we(){return we.__super__.constructor.apply(this,arguments)}return Rt(we,kr),we.prototype.tag="maxp",we.prototype.parse=function(Ne){return Ne.pos=this.offset,this.version=Ne.readInt(),this.numGlyphs=Ne.readUInt16(),this.maxPoints=Ne.readUInt16(),this.maxContours=Ne.readUInt16(),this.maxCompositePoints=Ne.readUInt16(),this.maxComponentContours=Ne.readUInt16(),this.maxZones=Ne.readUInt16(),this.maxTwilightPoints=Ne.readUInt16(),this.maxStorage=Ne.readUInt16(),this.maxFunctionDefs=Ne.readUInt16(),this.maxInstructionDefs=Ne.readUInt16(),this.maxStackElements=Ne.readUInt16(),this.maxSizeOfInstructions=Ne.readUInt16(),this.maxComponentElements=Ne.readUInt16(),this.maxComponentDepth=Ne.readUInt16()},we}(),hn=function(Qe){function we(){return we.__super__.constructor.apply(this,arguments)}return Rt(we,kr),we.prototype.tag="hmtx",we.prototype.parse=function(Ne){var Fe,Ye,We,Ze,mt,it,Jt;for(Ne.pos=this.offset,this.metrics=[],Fe=0,it=this.file.hhea.numberOfMetrics;0<=it?Fe<it:Fe>it;Fe=0<=it?++Fe:--Fe)this.metrics.push({advance:Ne.readUInt16(),lsb:Ne.readInt16()});for(We=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Dr,Sr;for(Sr=[],Fe=Dr=0;0<=We?Dr<We:Dr>We;Fe=0<=We?++Dr:--Dr)Sr.push(Ne.readInt16());return Sr}(),this.widths=function(){var Dr,Sr,Br,$t;for($t=[],Dr=0,Sr=(Br=this.metrics).length;Dr<Sr;Dr++)Ze=Br[Dr],$t.push(Ze.advance);return $t}.call(this),Ye=this.widths[this.widths.length-1],Jt=[],Fe=mt=0;0<=We?mt<We:mt>We;Fe=0<=We?++mt:--mt)Jt.push(this.widths.push(Ye));return Jt},we.prototype.forGlyph=function(Ne){return Ne in this.metrics?this.metrics[Ne]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[Ne-this.metrics.length]}},we}(),Mn=[].slice,Xn=function(Qe){function we(){return we.__super__.constructor.apply(this,arguments)}return Rt(we,kr),we.prototype.tag="glyf",we.prototype.parse=function(){return this.cache={}},we.prototype.glyphFor=function(Ne){var Fe,Ye,We,Ze,mt,it,Jt,Dr,Sr,Br;return Ne in this.cache?this.cache[Ne]:(Ze=this.file.loca,Fe=this.file.contents,Ye=Ze.indexOf(Ne),(We=Ze.lengthOf(Ne))===0?this.cache[Ne]=null:(Fe.pos=this.offset+Ye,mt=(it=new wt(Fe.read(We))).readShort(),Dr=it.readShort(),Br=it.readShort(),Jt=it.readShort(),Sr=it.readShort(),this.cache[Ne]=mt===-1?new vi(it,Dr,Br,Jt,Sr):new si(it,mt,Dr,Br,Jt,Sr),this.cache[Ne]))},we.prototype.encode=function(Ne,Fe,Ye){var We,Ze,mt,it,Jt;for(mt=[],Ze=[],it=0,Jt=Fe.length;it<Jt;it++)We=Ne[Fe[it]],Ze.push(mt.length),We&&(mt=mt.concat(We.encode(Ye)));return Ze.push(mt.length),{table:mt,offsets:Ze}},we}(),si=function(){function Qe(we,Ne,Fe,Ye,We,Ze){this.raw=we,this.numberOfContours=Ne,this.xMin=Fe,this.yMin=Ye,this.xMax=We,this.yMax=Ze,this.compound=!1}return Qe.prototype.encode=function(){return this.raw.data},Qe}(),vi=function(){function Qe(we,Ne,Fe,Ye,We){var Ze,mt;for(this.raw=we,this.xMin=Ne,this.yMin=Fe,this.xMax=Ye,this.yMax=We,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],Ze=this.raw;mt=Ze.readShort(),this.glyphOffsets.push(Ze.pos),this.glyphIDs.push(Ze.readUInt16()),32&mt;)Ze.pos+=1&mt?4:2,128&mt?Ze.pos+=8:64&mt?Ze.pos+=4:8&mt&&(Ze.pos+=2)}return Qe.prototype.encode=function(){var we,Ne,Fe;for(Ne=new wt(Mn.call(this.raw.data)),we=0,Fe=this.glyphIDs.length;we<Fe;++we)Ne.pos=this.glyphOffsets[we];return Ne.data},Qe}(),xi=function(Qe){function we(){return we.__super__.constructor.apply(this,arguments)}return Rt(we,kr),we.prototype.tag="loca",we.prototype.parse=function(Ne){var Fe,Ye;return Ne.pos=this.offset,Fe=this.file.head.indexToLocFormat,this.offsets=Fe===0?function(){var We,Ze;for(Ze=[],Ye=0,We=this.length;Ye<We;Ye+=2)Ze.push(2*Ne.readUInt16());return Ze}.call(this):function(){var We,Ze;for(Ze=[],Ye=0,We=this.length;Ye<We;Ye+=4)Ze.push(Ne.readUInt32());return Ze}.call(this)},we.prototype.indexOf=function(Ne){return this.offsets[Ne]},we.prototype.lengthOf=function(Ne){return this.offsets[Ne+1]-this.offsets[Ne]},we.prototype.encode=function(Ne,Fe){for(var Ye=new Uint32Array(this.offsets.length),We=0,Ze=0,mt=0;mt<Ye.length;++mt)if(Ye[mt]=We,Ze<Fe.length&&Fe[Ze]==mt){++Ze,Ye[mt]=We;var it=this.offsets[mt],Jt=this.offsets[mt+1]-it;Jt>0&&(We+=Jt)}for(var Dr=new Array(4*Ye.length),Sr=0;Sr<Ye.length;++Sr)Dr[4*Sr+3]=255&Ye[Sr],Dr[4*Sr+2]=(65280&Ye[Sr])>>8,Dr[4*Sr+1]=(16711680&Ye[Sr])>>16,Dr[4*Sr]=(4278190080&Ye[Sr])>>24;return Dr},we}(),_i=function(){function Qe(we){this.font=we,this.subset={},this.unicodes={},this.next=33}return Qe.prototype.generateCmap=function(){var we,Ne,Fe,Ye,We;for(Ne in Ye=this.font.cmap.tables[0].codeMap,we={},We=this.subset)Fe=We[Ne],we[Ne]=Ye[Fe];return we},Qe.prototype.glyphsFor=function(we){var Ne,Fe,Ye,We,Ze,mt,it;for(Ye={},Ze=0,mt=we.length;Ze<mt;Ze++)Ye[We=we[Ze]]=this.font.glyf.glyphFor(We);for(We in Ne=[],Ye)((Fe=Ye[We])!=null?Fe.compound:void 0)&&Ne.push.apply(Ne,Fe.glyphIDs);if(Ne.length>0)for(We in it=this.glyphsFor(Ne))Fe=it[We],Ye[We]=Fe;return Ye},Qe.prototype.encode=function(we,Ne){var Fe,Ye,We,Ze,mt,it,Jt,Dr,Sr,Br,$t,gn,or,ln,an;for(Ye in Fe=Wt.encode(this.generateCmap(),"unicode"),Ze=this.glyphsFor(we),$t={0:0},an=Fe.charMap)$t[(it=an[Ye]).old]=it.new;for(gn in Br=Fe.maxGlyphID,Ze)gn in $t||($t[gn]=Br++);return Dr=function(Rr){var On,ci;for(On in ci={},Rr)ci[Rr[On]]=On;return ci}($t),Sr=Object.keys(Dr).sort(function(Rr,On){return Rr-On}),or=function(){var Rr,On,ci;for(ci=[],Rr=0,On=Sr.length;Rr<On;Rr++)mt=Sr[Rr],ci.push(Dr[mt]);return ci}(),We=this.font.glyf.encode(Ze,or,$t),Jt=this.font.loca.encode(We.offsets,or),ln={cmap:this.font.cmap.raw(),glyf:We.table,loca:Jt,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(Ne)},this.font.os2.exists&&(ln["OS/2"]=this.font.os2.raw()),this.font.directory.encode(ln)},Qe}();j.API.PDFObject=function(){var Qe;function we(){}return Qe=function(Fe,Ye){return(Array(Ye+1).join("0")+Fe).slice(-Ye)},we.convert=function(Ne){var Fe,Ye,We,Ze;if(Array.isArray(Ne))return"["+function(){var mt,it,Jt;for(Jt=[],mt=0,it=Ne.length;mt<it;mt++)Fe=Ne[mt],Jt.push(we.convert(Fe));return Jt}().join(" ")+"]";if(typeof Ne=="string")return"/"+Ne;if(Ne!=null?Ne.isString:void 0)return"("+Ne+")";if(Ne instanceof Date)return"(D:"+Qe(Ne.getUTCFullYear(),4)+Qe(Ne.getUTCMonth(),2)+Qe(Ne.getUTCDate(),2)+Qe(Ne.getUTCHours(),2)+Qe(Ne.getUTCMinutes(),2)+Qe(Ne.getUTCSeconds(),2)+"Z)";if({}.toString.call(Ne)==="[object Object]"){for(Ye in We=["<<"],Ne)Ze=Ne[Ye],We.push("/"+Ye+" "+we.convert(Ze));return We.push(">>"),We.join(`
|
|
|
`)}return""+Ne},we}(),F.default=j}.call(this,d("yLpj"))},e5VY:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("YNAk"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},e7zE:function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("3y9D"),d("WYAk"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.Base,S=C.WordArray,g=x.algo,f=g.SHA1,c=g.HMAC,o=g.PBKDF2=A.extend({cfg:A.extend({keySize:128/32,hasher:f,iterations:1}),init:function(i){this.cfg=this.cfg.extend(i)},compute:function(i,n){for(var e=this.cfg,l=c.create(e.hasher,i),t=S.create(),a=S.create([1]),s=t.words,u=a.words,h=e.keySize,p=e.iterations;s.length<h;){var m=l.update(n).finalize(a);l.reset();for(var v=m.words,y=v.length,E=m,T=1;T<p;T++){E=l.finalize(E),l.reset();for(var b=E.words,w=0;w<y;w++)v[w]^=b[w]}t.concat(m),u[0]++}return t.sigBytes=h*4,t}});x.PBKDF2=function(r,i,n){return o.create(n).compute(r,i)}}(),O.PBKDF2})},eIcI:function(H,F,d){var O=d("bYtY"),x=d("hM6l");function C(S,g,f){x.call(this,S,g,f),this.type="value",this.angle=0,this.name="",this.model}O.inherits(C,x);var A=C;H.exports=A},eJH7:function(H,F,d){var O=d("bYtY");function x(C){var A=C.polar;if(A){O.isArray(A)||(A=[A]);var S=[];O.each(A,function(g,f){g.indicator?(g.type&&!g.shape&&(g.shape=g.type),C.radar=C.radar||[],O.isArray(C.radar)||(C.radar=[C.radar]),C.radar.push(g)):S.push(g)}),C.polar=S}O.each(C.series,function(g){g&&g.type==="radar"&&g.polarIndex&&(g.radarIndex=g.polarIndex)})}H.exports=x},eP3c:function(H,F,d){"use strict";function O(Xe){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(X){return typeof X}:O=function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},O(Xe)}Object.defineProperty(F,"__esModule",{value:!0}),F.inflateReset=ce,F.inflateReset2=Ae,F.inflateResetKeep=Ie,F.inflateInit=Ge,F.inflateInit2=Te,F.inflate=xt,F.inflateEnd=Ht,F.inflateGetHeader=tr,F.inflateSetDictionary=Mt,F.inflateInfo=F.Z_DEFLATED=F.Z_BUF_ERROR=F.Z_MEM_ERROR=F.Z_DATA_ERROR=F.Z_STREAM_ERROR=F.Z_NEED_DICT=F.Z_STREAM_END=F.Z_OK=F.Z_TREES=F.Z_BLOCK=F.Z_FINISH=void 0;var x=o(d("6BzB")),C=f(d("xlC8")),A=f(d("QV2g")),S=f(d("sjKO")),g=f(d("JSwD"));function f(Xe){return Xe&&Xe.__esModule?Xe:{default:Xe}}function c(){if(typeof WeakMap!="function")return null;var Xe=new WeakMap;return c=function(){return Xe},Xe}function o(Xe){if(Xe&&Xe.__esModule)return Xe;if(Xe===null||O(Xe)!=="object"&&typeof Xe!="function")return{default:Xe};var oe=c();if(oe&&oe.has(Xe))return oe.get(Xe);var X={},Be=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ee in Xe)if(Object.prototype.hasOwnProperty.call(Xe,Ee)){var ee=Be?Object.getOwnPropertyDescriptor(Xe,Ee):null;ee&&(ee.get||ee.set)?Object.defineProperty(X,Ee,ee):X[Ee]=Xe[Ee]}return X.default=Xe,oe&&oe.set(Xe,X),X}var r=0,i=1,n=2,e=4;F.Z_FINISH=e;var l=5;F.Z_BLOCK=l;var t=6;F.Z_TREES=t;var a=0;F.Z_OK=a;var s=1;F.Z_STREAM_END=s;var u=2;F.Z_NEED_DICT=u;var h=-2;F.Z_STREAM_ERROR=h;var p=-3;F.Z_DATA_ERROR=p;var m=-4;F.Z_MEM_ERROR=m;var v=-5;F.Z_BUF_ERROR=v;var y=8;F.Z_DEFLATED=y;var E=1,T=2,b=3,w=4,_=5,I=6,L=7,N=8,D=9,R=10,k=11,M=12,U=13,B=14,j=15,W=16,V=17,z=18,J=19,Z=20,de=21,ie=22,ve=23,xe=24,_e=25,Ue=26,fe=27,ke=28,se=29,te=30,Ve=31,ae=32,Q=852,G=592,Y=15,me=Y;function ue(Xe){return(Xe>>>24&255)+(Xe>>>8&65280)+((Xe&65280)<<8)+((Xe&255)<<24)}function Ce(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new x.Buf16(320),this.work=new x.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ie(Xe){var oe;return!Xe||!Xe.state?h:(oe=Xe.state,Xe.total_in=Xe.total_out=oe.total=0,Xe.msg="",oe.wrap&&(Xe.adler=oe.wrap&1),oe.mode=E,oe.last=0,oe.havedict=0,oe.dmax=32768,oe.head=null,oe.hold=0,oe.bits=0,oe.lencode=oe.lendyn=new x.Buf32(Q),oe.distcode=oe.distdyn=new x.Buf32(G),oe.sane=1,oe.back=-1,a)}function ce(Xe){var oe;return!Xe||!Xe.state?h:(oe=Xe.state,oe.wsize=0,oe.whave=0,oe.wnext=0,Ie(Xe))}function Ae(Xe,oe){var X,Be;return!Xe||!Xe.state?h:(Be=Xe.state,oe<0?(X=0,oe=-oe):(X=(oe>>4)+1,oe<48&&(oe&=15)),oe&&(oe<8||oe>15)?h:(Be.window!==null&&Be.wbits!==oe&&(Be.window=null),Be.wrap=X,Be.wbits=oe,ce(Xe)))}function Te(Xe,oe){var X,Be;return Xe?(Be=new Ce,Xe.state=Be,Be.window=null,X=Ae(Xe,oe),X!==a&&(Xe.state=null),X):h}function Ge(Xe){return Te(Xe,me)}var gt=!0,qe,Le;function Ot(Xe){if(gt){var oe;for(qe=new x.Buf32(512),Le=new x.Buf32(32),oe=0;oe<144;)Xe.lens[oe++]=8;for(;oe<256;)Xe.lens[oe++]=9;for(;oe<280;)Xe.lens[oe++]=7;for(;oe<288;)Xe.lens[oe++]=8;for((0,g.default)(i,Xe.lens,0,288,qe,0,Xe.work,{bits:9}),oe=0;oe<32;)Xe.lens[oe++]=5;(0,g.default)(n,Xe.lens,0,32,Le,0,Xe.work,{bits:5}),gt=!1}Xe.lencode=qe,Xe.lenbits=9,Xe.distcode=Le,Xe.distbits=5}function $e(Xe,oe,X,Be){var Ee,ee=Xe.state;return ee.window===null&&(ee.wsize=1<<ee.wbits,ee.wnext=0,ee.whave=0,ee.window=new x.Buf8(ee.wsize)),Be>=ee.wsize?(x.arraySet(ee.window,oe,X-ee.wsize,ee.wsize,0),ee.wnext=0,ee.whave=ee.wsize):(Ee=ee.wsize-ee.wnext,Ee>Be&&(Ee=Be),x.arraySet(ee.window,oe,X-Be,Ee,ee.wnext),Be-=Ee,Be?(x.arraySet(ee.window,oe,X-Be,Be,0),ee.wnext=Be,ee.whave=ee.wsize):(ee.wnext+=Ee,ee.wnext===ee.wsize&&(ee.wnext=0),ee.whave<ee.wsize&&(ee.whave+=Ee))),0}function xt(Xe,oe){var X,Be,Ee,ee,lt,Ct,dt,_t,ir,$r,nr,lr,zt,Ut,st=0,Hr,mn,In,Yn,Mi,wn,Rn,kt,vt=new x.Buf8(4),Re,Ke,Pe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Xe||!Xe.state||!Xe.output||!Xe.input&&Xe.avail_in!==0)return h;X=Xe.state,X.mode===M&&(X.mode=U),lt=Xe.next_out,Ee=Xe.output,dt=Xe.avail_out,ee=Xe.next_in,Be=Xe.input,Ct=Xe.avail_in,_t=X.hold,ir=X.bits,$r=Ct,nr=dt,kt=a;e:for(;;)switch(X.mode){case E:if(X.wrap===0){X.mode=U;break}for(;ir<16;){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}if(X.wrap&2&&_t===35615){X.check=0,vt[0]=_t&255,vt[1]=_t>>>8&255,X.check=(0,A.default)(X.check,vt,2,0),_t=0,ir=0,X.mode=T;break}if(X.flags=0,X.head&&(X.head.done=!1),!(X.wrap&1)||(((_t&255)<<8)+(_t>>8))%31){Xe.msg="incorrect header check",X.mode=te;break}if((_t&15)!==y){Xe.msg="unknown compression method",X.mode=te;break}if(_t>>>=4,ir-=4,Rn=(_t&15)+8,X.wbits===0)X.wbits=Rn;else if(Rn>X.wbits){Xe.msg="invalid window size",X.mode=te;break}X.dmax=1<<Rn,Xe.adler=X.check=1,X.mode=_t&512?R:M,_t=0,ir=0;break;case T:for(;ir<16;){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}if(X.flags=_t,(X.flags&255)!==y){Xe.msg="unknown compression method",X.mode=te;break}if(X.flags&57344){Xe.msg="unknown header flags set",X.mode=te;break}X.head&&(X.head.text=_t>>8&1),X.flags&512&&(vt[0]=_t&255,vt[1]=_t>>>8&255,X.check=(0,A.default)(X.check,vt,2,0)),_t=0,ir=0,X.mode=b;case b:for(;ir<32;){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}X.head&&(X.head.time=_t),X.flags&512&&(vt[0]=_t&255,vt[1]=_t>>>8&255,vt[2]=_t>>>16&255,vt[3]=_t>>>24&255,X.check=(0,A.default)(X.check,vt,4,0)),_t=0,ir=0,X.mode=w;case w:for(;ir<16;){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}X.head&&(X.head.xflags=_t&255,X.head.os=_t>>8),X.flags&512&&(vt[0]=_t&255,vt[1]=_t>>>8&255,X.check=(0,A.default)(X.check,vt,2,0)),_t=0,ir=0,X.mode=_;case _:if(X.flags&1024){for(;ir<16;){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}X.length=_t,X.head&&(X.head.extra_len=_t),X.flags&512&&(vt[0]=_t&255,vt[1]=_t>>>8&255,X.check=(0,A.default)(X.check,vt,2,0)),_t=0,ir=0}else X.head&&(X.head.extra=null);X.mode=I;case I:if(X.flags&1024&&(lr=X.length,lr>Ct&&(lr=Ct),lr&&(X.head&&(Rn=X.head.extra_len-X.length,X.head.extra||(X.head.extra=new Array(X.head.extra_len)),x.arraySet(X.head.extra,Be,ee,lr,Rn)),X.flags&512&&(X.check=(0,A.default)(X.check,Be,lr,ee)),Ct-=lr,ee+=lr,X.length-=lr),X.length))break e;X.length=0,X.mode=L;case L:if(X.flags&2048){if(Ct===0)break e;lr=0;do Rn=Be[ee+lr++],X.head&&Rn&&X.length<65536&&(X.head.name+=String.fromCharCode(Rn));while(Rn&&lr<Ct);if(X.flags&512&&(X.check=(0,A.default)(X.check,Be,lr,ee)),Ct-=lr,ee+=lr,Rn)break e}else X.head&&(X.head.name=null);X.length=0,X.mode=N;case N:if(X.flags&4096){if(Ct===0)break e;lr=0;do Rn=Be[ee+lr++],X.head&&Rn&&X.length<65536&&(X.head.comment+=String.fromCharCode(Rn));while(Rn&&lr<Ct);if(X.flags&512&&(X.check=(0,A.default)(X.check,Be,lr,ee)),Ct-=lr,ee+=lr,Rn)break e}else X.head&&(X.head.comment=null);X.mode=D;case D:if(X.flags&512){for(;ir<16;){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}if(_t!==(X.check&65535)){Xe.msg="header crc mismatch",X.mode=te;break}_t=0,ir=0}X.head&&(X.head.hcrc=X.flags>>9&1,X.head.done=!0),Xe.adler=X.check=0,X.mode=M;break;case R:for(;ir<32;){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}Xe.adler=X.check=ue(_t),_t=0,ir=0,X.mode=k;case k:if(X.havedict===0)return Xe.next_out=lt,Xe.avail_out=dt,Xe.next_in=ee,Xe.avail_in=Ct,X.hold=_t,X.bits=ir,u;Xe.adler=X.check=1,X.mode=M;case M:if(oe===l||oe===t)break e;case U:if(X.last){_t>>>=ir&7,ir-=ir&7,X.mode=fe;break}for(;ir<3;){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}X.last=_t&1,_t>>>=1,ir-=1;switch(_t&3){case 0:X.mode=B;break;case 1:if(Ot(X),X.mode=Z,oe===t){_t>>>=2,ir-=2;break e}break;case 2:X.mode=V;break;case 3:Xe.msg="invalid block type",X.mode=te}_t>>>=2,ir-=2;break;case B:for(_t>>>=ir&7,ir-=ir&7;ir<32;){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}if((_t&65535)!==(_t>>>16^65535)){Xe.msg="invalid stored block lengths",X.mode=te;break}if(X.length=_t&65535,_t=0,ir=0,X.mode=j,oe===t)break e;case j:X.mode=W;case W:if(lr=X.length,lr){if(lr>Ct&&(lr=Ct),lr>dt&&(lr=dt),lr===0)break e;x.arraySet(Ee,Be,ee,lr,lt),Ct-=lr,ee+=lr,dt-=lr,lt+=lr,X.length-=lr;break}X.mode=M;break;case V:for(;ir<14;){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}if(X.nlen=(_t&31)+257,_t>>>=5,ir-=5,X.ndist=(_t&31)+1,_t>>>=5,ir-=5,X.ncode=(_t&15)+4,_t>>>=4,ir-=4,X.nlen>286||X.ndist>30){Xe.msg="too many length or distance symbols",X.mode=te;break}X.have=0,X.mode=z;case z:for(;X.have<X.ncode;){for(;ir<3;){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}X.lens[Pe[X.have++]]=_t&7,_t>>>=3,ir-=3}for(;X.have<19;)X.lens[Pe[X.have++]]=0;if(X.lencode=X.lendyn,X.lenbits=7,Re={bits:X.lenbits},kt=(0,g.default)(r,X.lens,0,19,X.lencode,0,X.work,Re),X.lenbits=Re.bits,kt){Xe.msg="invalid code lengths set",X.mode=te;break}X.have=0,X.mode=J;case J:for(;X.have<X.nlen+X.ndist;){for(;!(st=X.lencode[_t&(1<<X.lenbits)-1],Hr=st>>>24,mn=st>>>16&255,In=st&65535,Hr<=ir);){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}if(In<16)_t>>>=Hr,ir-=Hr,X.lens[X.have++]=In;else{if(In===16){for(Ke=Hr+2;ir<Ke;){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}if(_t>>>=Hr,ir-=Hr,X.have===0){Xe.msg="invalid bit length repeat",X.mode=te;break}Rn=X.lens[X.have-1],lr=3+(_t&3),_t>>>=2,ir-=2}else if(In===17){for(Ke=Hr+3;ir<Ke;){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}_t>>>=Hr,ir-=Hr,Rn=0,lr=3+(_t&7),_t>>>=3,ir-=3}else{for(Ke=Hr+7;ir<Ke;){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}_t>>>=Hr,ir-=Hr,Rn=0,lr=11+(_t&127),_t>>>=7,ir-=7}if(X.have+lr>X.nlen+X.ndist){Xe.msg="invalid bit length repeat",X.mode=te;break}for(;lr--;)X.lens[X.have++]=Rn}}if(X.mode===te)break;if(X.lens[256]===0){Xe.msg="invalid code -- missing end-of-block",X.mode=te;break}if(X.lenbits=9,Re={bits:X.lenbits},kt=(0,g.default)(i,X.lens,0,X.nlen,X.lencode,0,X.work,Re),X.lenbits=Re.bits,kt){Xe.msg="invalid literal/lengths set",X.mode=te;break}if(X.distbits=6,X.distcode=X.distdyn,Re={bits:X.distbits},kt=(0,g.default)(n,X.lens,X.nlen,X.ndist,X.distcode,0,X.work,Re),X.distbits=Re.bits,kt){Xe.msg="invalid distances set",X.mode=te;break}if(X.mode=Z,oe===t)break e;case Z:X.mode=de;case de:if(Ct>=6&&dt>=258){Xe.next_out=lt,Xe.avail_out=dt,Xe.next_in=ee,Xe.avail_in=Ct,X.hold=_t,X.bits=ir,(0,S.default)(Xe,nr),lt=Xe.next_out,Ee=Xe.output,dt=Xe.avail_out,ee=Xe.next_in,Be=Xe.input,Ct=Xe.avail_in,_t=X.hold,ir=X.bits,X.mode===M&&(X.back=-1);break}for(X.back=0;!(st=X.lencode[_t&(1<<X.lenbits)-1],Hr=st>>>24,mn=st>>>16&255,In=st&65535,Hr<=ir);){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}if(mn&&(mn&240)===0){for(Yn=Hr,Mi=mn,wn=In;!(st=X.lencode[wn+((_t&(1<<Yn+Mi)-1)>>Yn)],Hr=st>>>24,mn=st>>>16&255,In=st&65535,Yn+Hr<=ir);){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}_t>>>=Yn,ir-=Yn,X.back+=Yn}if(_t>>>=Hr,ir-=Hr,X.back+=Hr,X.length=In,mn===0){X.mode=Ue;break}if(mn&32){X.back=-1,X.mode=M;break}if(mn&64){Xe.msg="invalid literal/length code",X.mode=te;break}X.extra=mn&15,X.mode=ie;case ie:if(X.extra){for(Ke=X.extra;ir<Ke;){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}X.length+=_t&(1<<X.extra)-1,_t>>>=X.extra,ir-=X.extra,X.back+=X.extra}X.was=X.length,X.mode=ve;case ve:for(;!(st=X.distcode[_t&(1<<X.distbits)-1],Hr=st>>>24,mn=st>>>16&255,In=st&65535,Hr<=ir);){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}if((mn&240)===0){for(Yn=Hr,Mi=mn,wn=In;!(st=X.distcode[wn+((_t&(1<<Yn+Mi)-1)>>Yn)],Hr=st>>>24,mn=st>>>16&255,In=st&65535,Yn+Hr<=ir);){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}_t>>>=Yn,ir-=Yn,X.back+=Yn}if(_t>>>=Hr,ir-=Hr,X.back+=Hr,mn&64){Xe.msg="invalid distance code",X.mode=te;break}X.offset=In,X.extra=mn&15,X.mode=xe;case xe:if(X.extra){for(Ke=X.extra;ir<Ke;){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}X.offset+=_t&(1<<X.extra)-1,_t>>>=X.extra,ir-=X.extra,X.back+=X.extra}if(X.offset>X.dmax){Xe.msg="invalid distance too far back",X.mode=te;break}X.mode=_e;case _e:if(dt===0)break e;if(lr=nr-dt,X.offset>lr){if(lr=X.offset-lr,lr>X.whave&&X.sane){Xe.msg="invalid distance too far back",X.mode=te;break}lr>X.wnext?(lr-=X.wnext,zt=X.wsize-lr):zt=X.wnext-lr,lr>X.length&&(lr=X.length),Ut=X.window}else Ut=Ee,zt=lt-X.offset,lr=X.length;lr>dt&&(lr=dt),dt-=lr,X.length-=lr;do Ee[lt++]=Ut[zt++];while(--lr);X.length===0&&(X.mode=de);break;case Ue:if(dt===0)break e;Ee[lt++]=X.length,dt--,X.mode=de;break;case fe:if(X.wrap){for(;ir<32;){if(Ct===0)break e;Ct--,_t|=Be[ee++]<<ir,ir+=8}if(nr-=dt,Xe.total_out+=nr,X.total+=nr,nr&&(Xe.adler=X.check=X.flags?(0,A.default)(X.check,Ee,nr,lt-nr):(0,C.default)(X.check,Ee,nr,lt-nr)),nr=dt,(X.flags?_t:ue(_t))!==X.check){Xe.msg="incorrect data check",X.mode=te;break}_t=0,ir=0}X.mode=ke;case ke:if(X.wrap&&X.flags){for(;ir<32;){if(Ct===0)break e;Ct--,_t+=Be[ee++]<<ir,ir+=8}if(_t!==(X.total&4294967295)){Xe.msg="incorrect length check",X.mode=te;break}_t=0,ir=0}X.mode=se;case se:kt=s;break e;case te:kt=p;break e;case Ve:return m;case ae:default:return h}return Xe.next_out=lt,Xe.avail_out=dt,Xe.next_in=ee,Xe.avail_in=Ct,X.hold=_t,X.bits=ir,(X.wsize||nr!==Xe.avail_out&&X.mode<te&&(X.mode<fe||oe!==e))&&$e(Xe,Xe.output,Xe.next_out,nr-Xe.avail_out)?(X.mode=Ve,m):($r-=Xe.avail_in,nr-=Xe.avail_out,Xe.total_in+=$r,Xe.total_out+=nr,X.total+=nr,X.wrap&&nr&&(Xe.adler=X.check=X.flags?(0,A.default)(X.check,Ee,nr,Xe.next_out-nr):(0,C.default)(X.check,Ee,nr,Xe.next_out-nr)),Xe.data_type=X.bits+(X.last?64:0)+(X.mode===M?128:0)+(X.mode===Z||X.mode===j?256:0),($r===0&&nr===0||oe===e)&&kt===a&&(kt=v),kt)}function Ht(Xe){if(!Xe||!Xe.state)return h;var oe=Xe.state;return oe.window&&(oe.window=null),Xe.state=null,a}function tr(Xe,oe){var X;return!Xe||!Xe.state?h:(X=Xe.state,(X.wrap&2)===0?h:(X.head=oe,oe.done=!1,a))}function Mt(Xe,oe){var X=oe.length,Be,Ee,ee;return!Xe||!Xe.state?h:(Be=Xe.state,Be.wrap!==0&&Be.mode!==k?h:Be.mode===k&&(Ee=1,Ee=(0,C.default)(Ee,oe,X,0),Ee!==Be.check)?p:(ee=$e(Xe,oe,X,X),ee?(Be.mode=Ve,m):(Be.havedict=1,a)))}var Tt="pako inflate (from Nodeca project)";F.inflateInfo=Tt},ePAk:function(H,F,d){var O=d("ProS");d("2fGM");var x=O.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(C){var A,S=this.ecModel;return S.eachComponent(C,function(g){g.getCoordSysModel()===this&&(A=g)},this),A},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});H.exports=x},eRkO:function(H,F,d){var O=d("+TT/"),x=O.getLayoutRect,C=O.box,A=O.positionElement,S=d("7aKB"),g=d("IwbS");function f(o,r,i){var n=r.getBoxLayoutParams(),e=r.get("padding"),l={width:i.getWidth(),height:i.getHeight()},t=x(n,l,e);C(r.get("orient"),o,r.get("itemGap"),t.width,t.height),A(o,n,l,e)}function c(o,r){var i=S.normalizeCssArray(r.get("padding")),n=r.getItemStyle(["color","opacity"]);n.fill=r.get("backgroundColor");var o=new g.Rect({shape:{x:o.x-i[3],y:o.y-i[0],width:o.width+i[1]+i[3],height:o.height+i[0]+i[2],r:r.get("borderRadius")},style:n,silent:!0,z2:-1});return o}F.layout=f,F.makeBackground=c},eS4l:function(H,F,d){d("HM/N"),d("FNN5")},eUgh:function(H,F){function d(O,x){for(var C=-1,A=O==null?0:O.length,S=Array(A);++C<A;)S[C]=x(O[C],C,O);return S}H.exports=d},ewwo:function(H,F,d){var O=d("bMXI"),x=d("+TT/"),C=x.getLayoutRect,A=d("4mN7");function S(f,c,o){var r=f.getBoxLayoutParams();return r.aspect=o,C(r,{width:c.getWidth(),height:c.getHeight()})}function g(f,c){var o=[];return f.eachSeriesByType("graph",function(r){var i=r.get("coordinateSystem");if(!i||i==="view"){var n=r.getData(),e=n.mapArray(function(y){var E=n.getItemModel(y);return[+E.get("x"),+E.get("y")]}),l=[],t=[];A.fromPoints(e,l,t),t[0]-l[0]===0&&(t[0]+=1,l[0]-=1),t[1]-l[1]===0&&(t[1]+=1,l[1]-=1);var a=(t[0]-l[0])/(t[1]-l[1]),s=S(r,c,a);isNaN(a)&&(l=[s.x,s.y],t=[s.x+s.width,s.y+s.height]);var u=t[0]-l[0],h=t[1]-l[1],p=s.width,m=s.height,v=r.coordinateSystem=new O;v.zoomLimit=r.get("scaleLimit"),v.setBoundingRect(l[0],l[1],u,h),v.setViewRect(s.x,s.y,p,m),v.setCenter(r.get("center")),v.setZoom(r.get("zoom")),o.push(v)}}),o}H.exports=g},f1nB:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("bYtY"),S=d("4NO4"),g=d("IwbS"),f=d("+TT/"),c=d("OELB"),o=c.parsePercent,r={path:null,compoundPath:null,group:g.Group,image:g.Image,text:g.Text};C.registerPreprocessor(function(p){var m=p.graphic;A.isArray(m)?!m[0]||!m[0].elements?p.graphic=[{elements:m}]:p.graphic=[p.graphic[0]]:m&&!m.elements&&(p.graphic=[{elements:[m]}])});var i=C.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(p){var m=this.option.elements;this.option.elements=null,i.superApply(this,"mergeOption",arguments),this.option.elements=m},optionUpdated:function(p,m){var v=this.option,y=(m?v:p).elements,E=v.elements=m?[]:v.elements,T=[];this._flatten(y,T);var b=S.mappingToExists(E,T);S.makeIdAndName(b);var w=this._elOptionsToUpdate=[];A.each(b,function(I,L){var N=I.option;if(!N)return;w.push(N),a(I,N),s(E,L,N),u(E[L],N)},this);for(var _=E.length-1;_>=0;_--)E[_]==null?E.splice(_,1):delete E[_].$action},_flatten:function(p,m,v){A.each(p,function(y){if(!y)return;v&&(y.parentOption=v),m.push(y);var E=y.children;y.type==="group"&&E&&this._flatten(E,m,y),delete y.children},this)},useElOptionsToUpdate:function(){var p=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,p}});C.extendComponentView({type:"graphic",init:function(p,m){this._elMap=A.createHashMap(),this._lastGraphicModel},render:function(p,m,v){p!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=p,this._updateElements(p),this._relocate(p,v)},_updateElements:function(p){var m=p.useElOptionsToUpdate();if(!m)return;var v=this._elMap,y=this.group;A.each(m,function(E){var T=E.$action,b=E.id,w=v.get(b),_=E.parentId,I=_!=null?v.get(_):y,L=E.style;E.type==="text"&&L&&(E.hv&&E.hv[1]&&(L.textVerticalAlign=L.textBaseline=null),!L.hasOwnProperty("textFill")&&L.fill&&(L.textFill=L.fill),!L.hasOwnProperty("textStroke")&&L.stroke&&(L.textStroke=L.stroke));var N=l(E);!T||T==="merge"?w?w.attr(N):n(b,I,N,v):T==="replace"?(e(w,v),n(b,I,N,v)):T==="remove"&&e(w,v);var D=v.get(b);D&&(D.__ecGraphicWidthOption=E.width,D.__ecGraphicHeightOption=E.height,h(D,p,E))})},_relocate:function(p,m){for(var v=p.option.elements,y=this.group,E=this._elMap,T=m.getWidth(),b=m.getHeight(),w=0;w<v.length;w++){var _=v[w],I=E.get(_.id);if(!I||!I.isGroup)continue;var L=I.parent,N=L===y;I.__ecGraphicWidth=o(I.__ecGraphicWidthOption,N?T:L.__ecGraphicWidth)||0,I.__ecGraphicHeight=o(I.__ecGraphicHeightOption,N?b:L.__ecGraphicHeight)||0}for(var w=v.length-1;w>=0;w--){var _=v[w],I=E.get(_.id);if(!I)continue;var L=I.parent,D=L===y?{width:T,height:b}:{width:L.__ecGraphicWidth,height:L.__ecGraphicHeight};f.positionElement(I,_,D,null,{hv:_.hv,boundingMode:_.bounding})}},_clear:function(){var p=this._elMap;p.each(function(m){e(m,p)}),this._elMap=A.createHashMap()},dispose:function(){this._clear()}});function n(p,m,v,y){var E=v.type,T=r.hasOwnProperty(E)?r[E]:g.getShapeClass(E),b=new T(v);m.add(b),y.set(p,b),b.__ecGraphicId=p}function e(p,m){var v=p&&p.parent;v&&(p.type==="group"&&p.traverse(function(y){e(y,m)}),m.removeKey(p.__ecGraphicId),v.remove(p))}function l(p){return p=A.extend({},p),A.each(["id","parentId","$action","hv","bounding"].concat(f.LOCATION_PARAMS),function(m){delete p[m]}),p}function t(p,m){var v;return A.each(m,function(y){p[y]!=null&&p[y]!=="auto"&&(v=!0)}),v}function a(p,m){var v=p.exist;if(m.id=p.keyInfo.id,!m.type&&v&&(m.type=v.type),m.parentId==null){var y=m.parentOption;y?m.parentId=y.id:v&&(m.parentId=v.parentId)}m.parentOption=null}function s(p,m,v){var y=A.extend({},v),E=p[m],T=v.$action||"merge";T==="merge"?E?(A.merge(E,y,!0),f.mergeLayoutParam(E,y,{ignoreSize:!0}),f.copyLayoutParams(v,E)):p[m]=y:T==="replace"?p[m]=y:T==="remove"&&(E&&(p[m]=null))}function u(p,m){if(!p)return;p.hv=m.hv=[t(m,["left","right"]),t(m,["top","bottom"])],p.type==="group"&&(p.width==null&&(p.width=m.width=0),p.height==null&&(p.height=m.height=0))}function h(p,m,v){var y=p.eventData;!p.silent&&!p.ignore&&!y&&(y=p.eventData={componentType:"graphic",componentIndex:m.componentIndex,name:p.name}),y&&(y.info=p.info)}},f3JH:function(H,F,d){d("aTJb"),d("OlYY"),d("fc+c"),d("oY9F"),d("MqEG"),d("LBfv"),d("noeP")},f5HG:function(H,F,d){var O=d("IwbS"),x=d("QBsz"),C=O.Line.prototype,A=O.BezierCurve.prototype;function S(f){return isNaN(+f.cpx1)||isNaN(+f.cpy1)}var g=O.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(f,c){this[S(c)?"_buildPathLine":"_buildPathCurve"](f,c)},_buildPathLine:C.buildPath,_buildPathCurve:A.buildPath,pointAt:function(f){return this[S(this.shape)?"_pointAtLine":"_pointAtCurve"](f)},_pointAtLine:C.pointAt,_pointAtCurve:A.pointAt,tangentAt:function(f){var c=this.shape,o=S(c)?[c.x2-c.x1,c.y2-c.y1]:this._tangentAtCurve(f);return x.normalize(o,o)},_tangentAtCurve:A.tangentAt});H.exports=g},f5Yq:function(H,F,d){var O=d("bYtY"),x=O.isFunction;function C(A,S,g){return{seriesType:A,performRawSeries:!0,reset:function(f,c,o){var r=f.getData(),i=f.get("symbol"),n=f.get("symbolSize"),e=f.get("symbolKeepAspect"),l=f.get("symbolRotate"),t=x(i),a=x(n),s=x(l),u=t||a||s,h=!t&&i?i:S,p=a?null:n,m=s?null:m;if(r.setVisual({legendSymbol:g||h,symbol:h,symbolSize:p,symbolKeepAspect:e,symbolRotate:l}),c.isSeriesFiltered(f))return;function v(y,E){if(u){var T=f.getRawValue(E),b=f.getDataParams(E);t&&y.setItemVisual(E,"symbol",i(T,b)),a&&y.setItemVisual(E,"symbolSize",n(T,b)),s&&y.setItemVisual(E,"symbolRotate",l(T,b))}if(y.hasItemOption){var w=y.getItemModel(E),_=w.getShallow("symbol",!0),I=w.getShallow("symbolSize",!0),L=w.getShallow("symbolRotate",!0),N=w.getShallow("symbolKeepAspect",!0);_!=null&&y.setItemVisual(E,"symbol",_),I!=null&&y.setItemVisual(E,"symbolSize",I),L!=null&&y.setItemVisual(E,"symbolRotate",L),N!=null&&y.setItemVisual(E,"symbolKeepAspect",N)}}return{dataEach:r.hasItemOption||u?v:null}}}}H.exports=C},fE02:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("/IIm"),A=d("vZ6x"),S=d("b9oc"),g=d("72pK"),f=d("Kagy"),c=d("IUWy");d("3TkU");var o=f.toolbox.dataZoom,r=x.each,i="\0_ec_\0toolbox-dataZoom_";function n(h,p,m){(this._brushController=new C(m.getZr())).on("brush",x.bind(this._onBrush,this)).mount(),this._isZoomActive}n.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:x.clone(o.title)};var e=n.prototype;e.render=function(h,p,m,v){this.model=h,this.ecModel=p,this.api=m,s(h,p,this,v,m),a(h,p)},e.onclick=function(h,p,m){l[m].call(this)},e.remove=function(h,p){this._brushController.unmount()},e.dispose=function(h,p){this._brushController.dispose()};var l={zoom:function(){var h=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:h})},back:function(){this._dispatchZoomAction(S.pop(this.ecModel))}};e._onBrush=function(h,p){if(!p.isEnd||!h.length)return;var m={},v=this.ecModel;this._brushController.updateCovers([]);var y=new A(t(this.model.option),v,{include:["grid"]});y.matchOutputRanges(h,v,function(b,w,_){if(_.type!=="cartesian2d")return;var I=b.brushType;I==="rect"?(E("x",_,w[0]),E("y",_,w[1])):E({lineX:"x",lineY:"y"}[I],_,w)}),S.push(v,m),this._dispatchZoomAction(m);function E(b,w,_){var I=w.getAxis(b),L=I.model,N=T(b,L,v),D=N.findRepresentativeAxisProxy(L).getMinMaxSpan();(D.minValueSpan!=null||D.maxValueSpan!=null)&&(_=g(0,_.slice(),I.scale.getExtent(),0,D.minValueSpan,D.maxValueSpan)),N&&(m[N.id]={dataZoomId:N.id,startValue:_[0],endValue:_[1]})}function T(b,w,_){var I;return _.eachComponent({mainType:"dataZoom",subType:"select"},function(L){var N=L.getAxisModel(b,w.componentIndex);N&&(I=L)}),I}},e._dispatchZoomAction=function(h){var p=[];r(h,function(m,v){p.push(x.clone(m))}),p.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:p})};function t(h){var p={};return x.each(["xAxisIndex","yAxisIndex"],function(m){p[m]=h[m],p[m]==null&&(p[m]="all"),(p[m]===!1||p[m]==="none")&&(p[m]=[])}),p}function a(h,p){h.setIconStatus("back",S.count(p)>1?"emphasis":"normal")}function s(h,p,m,v,y){var E=m._isZoomActive;v&&v.type==="takeGlobalCursor"&&(E=v.key==="dataZoomSelect"?v.dataZoomSelectActive:!1),m._isZoomActive=E,h.setIconStatus("zoom",E?"emphasis":"normal");var T=new A(t(h.option),p,{include:["grid"]});m._brushController.setPanels(T.makePanelOpts(y,function(b){return b.xAxisDeclared&&!b.yAxisDeclared?"lineX":!b.xAxisDeclared&&b.yAxisDeclared?"lineY":"rect"})).enableBrush(E?{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}c.register("dataZoom",n),O.registerPreprocessor(function(h){if(!h)return;var p=h.dataZoom||(h.dataZoom=[]);x.isArray(p)||(h.dataZoom=p=[p]);var m=h.toolbox;if(m&&(x.isArray(m)&&(m=m[0]),m&&m.feature)){var v=m.feature.dataZoom;y("xAxis",v),y("yAxis",v)}function y(T,b){if(!b)return;var w=T+"Index",_=b[w];_!=null&&_!=="all"&&!x.isArray(_)&&(_=_===!1||_==="none"?[]:[_]),E(T,function(I,L){if(_!=null&&_!=="all"&&x.indexOf(_,L)===-1)return;var N={type:"select",$fromToolbox:!0,filterMode:b.filterMode||"filter",id:i+T+L};N[w]=L,p.push(N)})}function E(T,b){var w=h[T];x.isArray(w)||(w=w?[w]:[]),r(w,b)}});var u=n;H.exports=u},fNCr:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("tSko"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},fUL4:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("r+aA"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},fW2E:function(H,F){var d={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function O(x,C,A){return d.hasOwnProperty(C)?A*=x.dpr:A}H.exports=O},"fc+c":function(H,F,d){var O=d("sS/r"),x=O.extend({type:"dataZoom",render:function(C,A,S,g){this.dataZoomModel=C,this.ecModel=A,this.api=S},getTargetCoordInfo:function(){var C=this.dataZoomModel,A=this.ecModel,S={};C.eachTargetAxis(function(f,c){var o=A.getComponent(f.axis,c);if(o){var r=o.getCoordSysModel();r&&g(r,o,S[r.mainType]||(S[r.mainType]=[]),r.componentIndex)}},this);function g(f,c,o,r){for(var i,n=0;n<o.length;n++)if(o[n].model===f){i=o[n];break}i||o.push(i={model:f,axisModels:[],coordIndex:r}),i.axisModels.push(c)}return S}});H.exports=x},fjKi:function(H,F,d){var O=d("ProS");d("Q7if"),d("jndi"),O.registerPreprocessor(function(x){x.markArea=x.markArea||{}})},fls0:function(H,F,d){var O=d("bYtY"),x=d("QBsz"),C=d("oVpE"),A=d("f5HG"),S=d("IwbS"),g=d("OELB"),f=g.round,c=["fromSymbol","toSymbol"];function o(s){return"_"+s+"Type"}function r(s,u,h){var p=u.getItemVisual(h,"color"),m=u.getItemVisual(h,s),v=u.getItemVisual(h,s+"Size");if(!m||m==="none")return;O.isArray(v)||(v=[v,v]);var y=C.createSymbol(m,-v[0]/2,-v[1]/2,v[0],v[1],p);return y.name=s,y}function i(s){var u=new A({name:"line",subPixelOptimize:!0});return n(u.shape,s),u}function n(s,u){s.x1=u[0][0],s.y1=u[0][1],s.x2=u[1][0],s.y2=u[1][1],s.percent=1;var h=u[2];h?(s.cpx1=h[0],s.cpy1=h[1]):(s.cpx1=NaN,s.cpy1=NaN)}function e(){var s=this,u=s.childOfName("fromSymbol"),h=s.childOfName("toSymbol"),p=s.childOfName("label");if(!u&&!h&&p.ignore)return;for(var m=1,v=this.parent;v;)v.scale&&(m/=v.scale[0]),v=v.parent;var y=s.childOfName("line");if(!this.__dirty&&!y.__dirty)return;var E=y.shape.percent,T=y.pointAt(0),b=y.pointAt(E),w=x.sub([],b,T);if(x.normalize(w,w),u){u.attr("position",T);var _=y.tangentAt(0);u.attr("rotation",Math.PI/2-Math.atan2(_[1],_[0])),u.attr("scale",[m*E,m*E])}if(h){h.attr("position",b);var _=y.tangentAt(1);h.attr("rotation",-Math.PI/2-Math.atan2(_[1],_[0])),h.attr("scale",[m*E,m*E])}if(!p.ignore){p.attr("position",b);var I,L,N,D,R=p.__labelDistance,k=R[0]*m,M=R[1]*m,U=E/2,_=y.tangentAt(U),B=[_[1],-_[0]],j=y.pointAt(U);B[1]>0&&(B[0]=-B[0],B[1]=-B[1]);var W=_[0]<0?-1:1;if(p.__position!=="start"&&p.__position!=="end"){var V=-Math.atan2(_[1],_[0]);b[0]<T[0]&&(V=Math.PI+V),p.attr("rotation",V)}var z;switch(p.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":z=-M,N="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":z=M,N="top";break;default:z=0,N="middle"}switch(p.__position){case"end":I=[w[0]*k+b[0],w[1]*M+b[1]],L=w[0]>.8?"left":w[0]<-.8?"right":"center",N=w[1]>.8?"top":w[1]<-.8?"bottom":"middle";break;case"start":I=[-w[0]*k+T[0],-w[1]*M+T[1]],L=w[0]>.8?"right":w[0]<-.8?"left":"center",N=w[1]>.8?"bottom":w[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":I=[k*W+T[0],T[1]+z],L=_[0]<0?"right":"left",D=[-k*W,-z];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":I=[j[0],j[1]+z],L="center",D=[0,-z];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":I=[-k*W+b[0],b[1]+z],L=_[0]>=0?"right":"left",D=[k*W,-z];break}p.attr({style:{textVerticalAlign:p.__verticalAlign||N,textAlign:p.__textAlign||L},position:I,scale:[m,m],origin:D})}}function l(s,u,h){S.Group.call(this),this._createLine(s,u,h)}var t=l.prototype;t.beforeUpdate=e,t._createLine=function(s,u,h){var p=s.hostModel,m=s.getItemLayout(u),v=i(m);v.shape.percent=0,S.initProps(v,{shape:{percent:1}},p,u),this.add(v);var y=new S.Text({name:"label",lineLabelOriginalOpacity:1});this.add(y),O.each(c,function(E){var T=r(E,s,u);this.add(T),this[o(E)]=s.getItemVisual(u,E)},this),this._updateCommonStl(s,u,h)},t.updateData=function(s,u,h){var p=s.hostModel,m=this.childOfName("line"),v=s.getItemLayout(u),y={shape:{}};n(y.shape,v),S.updateProps(m,y,p,u),O.each(c,function(E){var T=s.getItemVisual(u,E),b=o(E);if(this[b]!==T){this.remove(this.childOfName(E));var w=r(E,s,u);this.add(w)}this[b]=T},this),this._updateCommonStl(s,u,h)},t._updateCommonStl=function(s,u,h){var p=s.hostModel,m=this.childOfName("line"),v=h&&h.lineStyle,y=h&&h.hoverLineStyle,E=h&&h.labelModel,T=h&&h.hoverLabelModel;if(!h||s.hasItemOption){var b=s.getItemModel(u);v=b.getModel("lineStyle").getLineStyle(),y=b.getModel("emphasis.lineStyle").getLineStyle(),E=b.getModel("label"),T=b.getModel("emphasis.label")}var w=s.getItemVisual(u,"color"),_=O.retrieve3(s.getItemVisual(u,"opacity"),v.opacity,1);m.useStyle(O.defaults({strokeNoScale:!0,fill:"none",stroke:w,opacity:_},v)),m.hoverStyle=y,O.each(c,function(W){var V=this.childOfName(W);V&&(V.setColor(w),V.setStyle({opacity:_}))},this);var I=E.getShallow("show"),L=T.getShallow("show"),N=this.childOfName("label"),D,R;if((I||L)&&(D=w||"#000",R=p.getFormattedLabel(u,"normal",s.dataType),R==null)){var k=p.getRawValue(u);R=k==null?s.getName(u):isFinite(k)?f(k):k}var M=I?R:null,U=L?O.retrieve2(p.getFormattedLabel(u,"emphasis",s.dataType),R):null,B=N.style;if(M!=null||U!=null){S.setTextStyle(N.style,E,{text:M},{autoColor:D}),N.__textAlign=B.textAlign,N.__verticalAlign=B.textVerticalAlign,N.__position=E.get("position")||"middle";var j=E.get("distance");O.isArray(j)||(j=[j,j]),N.__labelDistance=j}U!=null?N.hoverStyle={text:U,textFill:T.getTextColor(!0),fontStyle:T.getShallow("fontStyle"),fontWeight:T.getShallow("fontWeight"),fontSize:T.getShallow("fontSize"),fontFamily:T.getShallow("fontFamily")}:N.hoverStyle={text:null},N.ignore=!I&&!L,S.setHoverStyle(this)},t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.updateLayout=function(s,u){this.setLinePoints(s.getItemLayout(u))},t.setLinePoints=function(s){var u=this.childOfName("line");n(u.shape,s),u.dirty()},O.inherits(l,S.Group);var a=l;H.exports=a},fmMI:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=C.each,S=C.filter,g=C.map,f=C.isArray,c=C.indexOf,o=C.isObject,r=C.isString,i=C.createHashMap,n=C.assert,e=C.clone,l=C.merge,t=C.extend,a=C.mixin,s=d("4NO4"),u=d("Qxkt"),h=d("bLfw"),p=d("iXHM"),m=d("5Hur"),v=d("D5nY"),y=v.resetSourceDefaulter,E="\0_ec_inner",T=u.extend({init:function(M,U,B,j){B=B||{},this.option=null,this._theme=new u(B),this._optionManager=j},setOption:function(M,U){n(!(E in M),"please use chart.getOption()"),this._optionManager.setOption(M,U),this.resetOption(null)},resetOption:function(M){var U=!1,B=this._optionManager;if(!M||M==="recreate"){var j=B.mountOption(M==="recreate");!this.option||M==="recreate"?_.call(this,j):(this.restoreData(),this.mergeOption(j)),U=!0}if((M==="timeline"||M==="media")&&this.restoreData(),!M||M==="recreate"||M==="timeline"){var W=B.getTimelineOption(this);W&&(this.mergeOption(W),U=!0)}if(!M||M==="recreate"||M==="media"){var V=B.getMediaOption(this,this._api);V.length&&A(V,function(z){this.mergeOption(z,U=!0)},this)}return U},mergeOption:function(M){var U=this.option,B=this._componentsMap,j=[];y(this),A(M,function(V,z){if(V==null)return;h.hasClass(z)?z&&j.push(z):U[z]=U[z]==null?e(V):l(U[z],V,!0)}),h.topologicalTravel(j,h.getAllClassMainTypes(),W,this);function W(V,z){var J=s.normalizeToArray(M[V]),Z=s.mappingToExists(B.get(V),J);s.makeIdAndName(Z),A(Z,function(ie,ve){var xe=ie.option;o(xe)&&(ie.keyInfo.mainType=V,ie.keyInfo.subType=L(V,xe,ie.exist))});var de=I(B,z);U[V]=[],B.set(V,[]),A(Z,function(ie,ve){var xe=ie.exist,_e=ie.option;if(n(o(_e)||xe,"Empty component definition"),!_e)xe.mergeOption({},this),xe.optionUpdated({},!1);else{var Ue=h.getClass(V,ie.keyInfo.subType,!0);if(xe&&xe.constructor===Ue)xe.name=ie.keyInfo.name,xe.mergeOption(_e,this),xe.optionUpdated(_e,!1);else{var fe=t({dependentModels:de,componentIndex:ve},ie.keyInfo);xe=new Ue(_e,this,this,fe),t(xe,fe),xe.init(_e,this,this,fe),xe.optionUpdated(null,!0)}}B.get(V)[ve]=xe,U[V][ve]=xe.option},this),V==="series"&&N(this,B.get("series"))}this._seriesIndicesMap=i(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var M=e(this.option);return A(M,function(U,B){if(h.hasClass(B)){for(var U=s.normalizeToArray(U),j=U.length-1;j>=0;j--)s.isIdInner(U[j])&&U.splice(j,1);M[B]=U}}),delete M[E],M},getTheme:function(){return this._theme},getComponent:function(M,U){var B=this._componentsMap.get(M);if(B)return B[U||0]},queryComponents:function(M){var U=M.mainType;if(!U)return[];var B=M.index,j=M.id,W=M.name,V=this._componentsMap.get(U);if(!V||!V.length)return[];var z;if(B!=null)f(B)||(B=[B]),z=S(g(B,function(de){return V[de]}),function(de){return!!de});else if(j!=null){var J=f(j);z=S(V,function(de){return J&&c(j,de.id)>=0||!J&&de.id===j})}else if(W!=null){var Z=f(W);z=S(V,function(de){return Z&&c(W,de.name)>=0||!Z&&de.name===W})}else z=V.slice();return D(z,M)},findComponents:function(M){var U=M.query,B=M.mainType,j=V(U),W=j?this.queryComponents(j):this._componentsMap.get(B);return z(D(W,M));function V(J){var Z=B+"Index",de=B+"Id",ie=B+"Name";return J&&(J[Z]!=null||J[de]!=null||J[ie]!=null)?{mainType:B,index:J[Z],id:J[de],name:J[ie]}:null}function z(J){return M.filter?S(J,M.filter):J}},eachComponent:function(M,U,B){var j=this._componentsMap;if(typeof M=="function")B=U,U=M,j.each(function(V,z){A(V,function(J,Z){U.call(B,z,J,Z)})});else if(r(M))A(j.get(M),U,B);else if(o(M)){var W=this.findComponents(M);A(W,U,B)}},getSeriesByName:function(M){var U=this._componentsMap.get("series");return S(U,function(B){return B.name===M})},getSeriesByIndex:function(M){return this._componentsMap.get("series")[M]},getSeriesByType:function(M){var U=this._componentsMap.get("series");return S(U,function(B){return B.subType===M})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(M,U){R(this),A(this._seriesIndices,function(B){var j=this._componentsMap.get("series")[B];M.call(U,j,B)},this)},eachRawSeries:function(M,U){A(this._componentsMap.get("series"),M,U)},eachSeriesByType:function(M,U,B){R(this),A(this._seriesIndices,function(j){var W=this._componentsMap.get("series")[j];W.subType===M&&U.call(B,W,j)},this)},eachRawSeriesByType:function(M,U,B){return A(this.getSeriesByType(M),U,B)},isSeriesFiltered:function(M){return R(this),this._seriesIndicesMap.get(M.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(M,U){R(this);var B=S(this._componentsMap.get("series"),M,U);N(this,B)},restoreData:function(M){var U=this._componentsMap;N(this,U.get("series"));var B=[];U.each(function(j,W){B.push(W)}),h.topologicalTravel(B,h.getAllClassMainTypes(),function(j,W){A(U.get(j),function(V){(j!=="series"||!b(V,M))&&V.restoreData()})})}});function b(M,U){if(U){var B=U.seiresIndex,j=U.seriesId,W=U.seriesName;return B!=null&&M.componentIndex!==B||j!=null&&M.id!==j||W!=null&&M.name!==W}}function w(M,U){var B=M.color&&!M.colorLayer;A(U,function(j,W){if(W==="colorLayer"&&B)return;h.hasClass(W)||(typeof j=="object"?M[W]=M[W]?l(M[W],j,!1):e(j):M[W]==null&&(M[W]=j))})}function _(M){M=M,this.option={},this.option[E]=1,this._componentsMap=i({series:[]}),this._seriesIndices,this._seriesIndicesMap,w(M,this._theme.option),l(M,p,!1),this.mergeOption(M)}function I(M,U){f(U)||(U=U?[U]:[]);var B={};return A(U,function(j){B[j]=(M.get(j)||[]).slice()}),B}function L(M,U,B){var j=U.type?U.type:B?B.subType:h.determineSubType(M,U);return j}function N(M,U){M._seriesIndicesMap=i(M._seriesIndices=g(U,function(B){return B.componentIndex})||[])}function D(M,U){return U.hasOwnProperty("subType")?S(M,function(B){return B.subType===U.subType}):M}function R(M){}a(T,m);var k=T;H.exports=k},fyUT:function(H,F,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),S=d("q1tI"),g=d.n(S),f=d("TSYQ"),c=d.n(f),o=d("Ff2n"),r=d("rePB"),i=d("1OyB"),n=d("vuIU"),e=d("Ji7U"),l=d("md7G"),t=d("foSv"),a=d("4IlW");function s(z,J){var Z=Object.keys(z);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(z);J&&(de=de.filter(function(ie){return Object.getOwnPropertyDescriptor(z,ie).enumerable})),Z.push.apply(Z,de)}return Z}function u(z){for(var J=1;J<arguments.length;J++){var Z=arguments[J]!=null?arguments[J]:{};J%2?s(Object(Z),!0).forEach(function(de){Object(r.a)(z,de,Z[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(Z)):s(Object(Z)).forEach(function(de){Object.defineProperty(z,de,Object.getOwnPropertyDescriptor(Z,de))})}return z}function h(z){var J=p();return function(){var de=Object(t.a)(z),ie;if(J){var ve=Object(t.a)(this).constructor;ie=Reflect.construct(de,arguments,ve)}else ie=de.apply(this,arguments);return Object(l.a)(this,ie)}}function p(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(z){return!1}}function m(){}function v(z){z.preventDefault()}var y=function(J){return J.replace(/[^\w.-]+/g,"")},E=200,T=600,b=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,w=function(J){return J!=null},_=function(J,Z){return Z===J||typeof Z=="number"&&typeof J=="number"&&isNaN(Z)&&isNaN(J)},I=function(z){Object(e.a)(Z,z);var J=h(Z);function Z(de){var ie;Object(i.a)(this,Z),ie=J.call(this,de),ie.onKeyDown=function(_e){var Ue=ie.props,fe=Ue.onKeyDown,ke=Ue.onPressEnter;if(_e.keyCode===a.a.UP){var se=ie.getRatio(_e);ie.up(_e,se,null),ie.stop()}else if(_e.keyCode===a.a.DOWN){var te=ie.getRatio(_e);ie.down(_e,te,null),ie.stop()}else _e.keyCode===a.a.ENTER&&ke&&ke(_e);if(ie.recordCursorPosition(),ie.lastKeyCode=_e.keyCode,fe){for(var Ve=arguments.length,ae=new Array(Ve>1?Ve-1:0),Q=1;Q<Ve;Q++)ae[Q-1]=arguments[Q];fe.apply(void 0,[_e].concat(ae))}},ie.onKeyUp=function(_e){var Ue=ie.props.onKeyUp;if(ie.stop(),ie.recordCursorPosition(),Ue){for(var fe=arguments.length,ke=new Array(fe>1?fe-1:0),se=1;se<fe;se++)ke[se-1]=arguments[se];Ue.apply(void 0,[_e].concat(ke))}},ie.onChange=function(_e){var Ue=ie.props.onChange;ie.state.focused&&(ie.inputting=!0),ie.rawInput=ie.props.parser(ie.getValueFromEvent(_e)),ie.setState({inputValue:ie.rawInput}),Ue(ie.toNumber(ie.rawInput))},ie.onMouseUp=function(){var _e=ie.props.onMouseUp;ie.recordCursorPosition(),_e&&_e.apply(void 0,arguments)},ie.onFocus=function(){var _e;ie.setState({focused:!0}),(_e=ie.props).onFocus.apply(_e,arguments)},ie.onBlur=function(){var _e=ie.props.onBlur;ie.inputting=!1,ie.setState({focused:!1});var Ue=ie.getCurrentValidValue(ie.state.inputValue),fe=ie.setValue(Ue,m);if(_e){var ke=ie.input.value,se=ie.getInputDisplayValue({focus:!1,value:fe});ie.input.value=se&&Number(se),_e.apply(void 0,arguments),ie.input.value=ke}},ie.getRatio=function(_e){var Ue=1;return _e.metaKey||_e.ctrlKey?Ue=.1:_e.shiftKey&&(Ue=10),Ue},ie.getFullNum=function(_e){return isNaN(_e)?_e:/e/i.test(String(_e))?Number(_e).toFixed(18).replace(/\.?0+$/,""):_e},ie.getPrecision=function(_e){if(w(ie.props.precision))return ie.props.precision;var Ue=String(_e);if(Ue.indexOf("e-")>=0)return parseInt(Ue.slice(Ue.indexOf("e-")+2),10);var fe=0;return Ue.indexOf(".")>=0&&(fe=Ue.length-Ue.indexOf(".")-1),fe},ie.getInputDisplayValue=function(_e){var Ue=_e||ie.state,fe=Ue.focused,ke=Ue.inputValue,se=Ue.value,te;fe?te=ke:te=ie.toPrecisionAsStep(se),te==null&&(te="");var Ve=ie.formatWrapper(te);return w(ie.props.decimalSeparator)&&(Ve=Ve.toString().replace(".",ie.props.decimalSeparator)),Ve},ie.recordCursorPosition=function(){try{ie.cursorStart=ie.input.selectionStart,ie.cursorEnd=ie.input.selectionEnd,ie.currentValue=ie.input.value,ie.cursorBefore=ie.input.value.substring(0,ie.cursorStart),ie.cursorAfter=ie.input.value.substring(ie.cursorEnd)}catch(_e){}},ie.restoreByAfter=function(_e){if(_e===void 0)return!1;var Ue=ie.input.value,fe=Ue.lastIndexOf(_e);if(fe===-1)return!1;var ke=ie.cursorBefore.length;return ie.lastKeyCode===a.a.DELETE&&ie.cursorBefore.charAt(ke-1)===_e[0]?(ie.fixCaret(ke,ke),!0):fe+_e.length===Ue.length?(ie.fixCaret(fe,fe),!0):!1},ie.partRestoreByAfter=function(_e){return _e===void 0?!1:Array.prototype.some.call(_e,function(Ue,fe){var ke=_e.substring(fe);return ie.restoreByAfter(ke)})},ie.isNotCompleteNumber=function(_e){return isNaN(_e)||_e===""||_e===null||_e&&_e.toString().indexOf(".")===_e.toString().length-1},ie.stop=function(){ie.autoStepTimer&&clearTimeout(ie.autoStepTimer)},ie.down=function(_e,Ue,fe){ie.pressingUpOrDown=!0,ie.step("down",_e,Ue,fe)},ie.up=function(_e,Ue,fe){ie.pressingUpOrDown=!0,ie.step("up",_e,Ue,fe)},ie.saveInput=function(_e){ie.input=_e};var ve=de.value;ve===void 0&&(ve=de.defaultValue),ie.state={focused:de.autoFocus};var xe=ie.getValidValue(ie.toNumber(ve));return ie.state=u(u({},ie.state),{},{inputValue:ie.toPrecisionAsStep(xe),value:xe}),ie}return Object(n.a)(Z,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(ie){var ve=this.props,xe=ve.value,_e=ve.onChange,Ue=ve.max,fe=ve.min,ke=this.state.focused;if(ie){if(!_(ie.value,xe)||!_(ie.max,Ue)||!_(ie.min,fe)){var se=ke?xe:this.getValidValue(xe),te;this.pressingUpOrDown?te=se:this.inputting?te=this.rawInput:te=this.toPrecisionAsStep(se),this.setState({value:se,inputValue:te})}var Ve="value"in this.props?xe:this.state.value;"max"in this.props&&ie.max!==Ue&&typeof Ve=="number"&&Ve>Ue&&_e&&_e(Ue),"min"in this.props&&ie.min!==fe&&typeof Ve=="number"&&Ve<fe&&_e&&_e(fe)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var ae=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===a.a.BACKSPACE?ae=this.cursorStart-1:this.lastKeyCode===a.a.DELETE&&(ae=this.cursorStart):ae=this.input.value.length,this.fixCaret(ae,ae)}else if(this.currentValue===this.input.value)switch(this.lastKeyCode){case a.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case a.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1);break;default:}}}catch(Q){}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(ie){var ve=ie;return ve===""?ve="":this.isNotCompleteNumber(parseFloat(ve))?ve=this.state.value:ve=this.getValidValue(ve),this.toNumber(ve)}},{key:"getValueFromEvent",value:function(ie){var ve=ie.target.value.trim().replace(/。/g,".");return w(this.props.decimalSeparator)&&(ve=ve.replace(this.props.decimalSeparator,".")),ve}},{key:"getValidValue",value:function(ie){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,_e=parseFloat(ie);return isNaN(_e)?ie:(_e<ve&&(_e=ve),_e>xe&&(_e=xe),_e)}},{key:"setValue",value:function(ie,ve){var xe=this.props.precision,_e=this.isNotCompleteNumber(parseFloat(ie))?null:parseFloat(ie),Ue=this.state.value,fe=Ue===void 0?null:Ue,ke=this.state.inputValue,se=ke===void 0?null:ke,te=typeof _e=="number"?_e.toFixed(xe):"".concat(_e),Ve=_e!==fe||te!=="".concat(se);return"value"in this.props?(se=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:se},ve)):this.setState({value:_e,inputValue:this.toPrecisionAsStep(ie)},ve),Ve&&this.props.onChange(_e),_e}},{key:"getMaxPrecision",value:function(ie){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,xe=this.props,_e=xe.precision,Ue=xe.step;if(w(_e))return _e;var fe=this.getPrecision(ve),ke=this.getPrecision(Ue),se=this.getPrecision(ie);return ie?Math.max(se,fe+ke):fe+ke}},{key:"getPrecisionFactor",value:function(ie){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,xe=this.getMaxPrecision(ie,ve);return Math.pow(10,xe)}},{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(ie){return this.props.formatter?this.props.formatter(ie):ie}},{key:"toPrecisionAsStep",value:function(ie){if(this.isNotCompleteNumber(ie)||ie==="")return ie;var ve=Math.abs(this.getMaxPrecision(ie));return isNaN(ve)?ie.toString():Number(ie).toFixed(ve)}},{key:"toNumber",value:function(ie){var ve=this.props.precision,xe=this.state.focused,_e=ie&&ie.length>16&&xe;return this.isNotCompleteNumber(ie)||_e?ie:w(ve)?Math.round(ie*Math.pow(10,ve))/Math.pow(10,ve):Number(ie)}},{key:"upStep",value:function(ie,ve){var xe=this.props.step,_e=this.getPrecisionFactor(ie,ve),Ue=Math.abs(this.getMaxPrecision(ie,ve)),fe=((_e*ie+_e*xe*ve)/_e).toFixed(Ue);return this.toNumber(fe)}},{key:"downStep",value:function(ie,ve){var xe=this.props.step,_e=this.getPrecisionFactor(ie,ve),Ue=Math.abs(this.getMaxPrecision(ie,ve)),fe=((_e*ie-_e*xe*ve)/_e).toFixed(Ue);return this.toNumber(fe)}},{key:"step",value:function(ie,ve){var xe=this,_e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Ue=arguments.length>3?arguments[3]:void 0;this.stop(),ve&&(ve.persist(),ve.preventDefault());var fe=this.props;if(fe.disabled)return;var ke=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(ke))return;var se=this["".concat(ie,"Step")](ke,_e),te=se>fe.max||se<fe.min;if(se>fe.max?se=fe.max:se<fe.min&&(se=fe.min),this.setValue(se,null),this.setState({focused:!0},function(){xe.pressingUpOrDown=!1}),te)return;this.autoStepTimer=setTimeout(function(){xe[ie](ve,_e,!0)},Ue?E:T)}},{key:"fixCaret",value:function(ie,ve){if(ie===void 0||ve===void 0||!this.input||!this.input.value)return;try{var xe=this.input.selectionStart,_e=this.input.selectionEnd;(ie!==xe||ve!==_e)&&this.input.setSelectionRange(ie,ve)}catch(Ue){}}},{key:"render",value:function(){var ie,ve=this.props,xe=ve.prefixCls,_e=ve.disabled,Ue=ve.readOnly,fe=ve.useTouch,ke=ve.autoComplete,se=ve.upHandler,te=ve.downHandler,Ve=ve.className,ae=ve.max,Q=ve.min,G=ve.style,Y=ve.title,me=ve.onMouseEnter,ue=ve.onMouseLeave,Ce=ve.onMouseOver,Ie=ve.onMouseOut,ce=ve.required,Ae=ve.onClick,Te=ve.tabIndex,Ge=ve.type,gt=ve.placeholder,qe=ve.id,Le=ve.inputMode,Ot=ve.pattern,$e=ve.step,xt=ve.maxLength,Ht=ve.autoFocus,tr=ve.name,Mt=ve.onPaste,Tt=ve.onInput,Xe=Object(o.a)(ve,["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"]),oe=this.state,X=oe.value,Be=oe.focused,Ee=c()(xe,(ie={},Object(r.a)(ie,Ve,!!Ve),Object(r.a)(ie,"".concat(xe,"-disabled"),_e),Object(r.a)(ie,"".concat(xe,"-focused"),Be),ie)),ee={};Object.keys(Xe).forEach(function(st){(st.substr(0,5)==="data-"||st.substr(0,5)==="aria-"||st==="role")&&(ee[st]=Xe[st])});var lt=!Ue&&!_e,Ct=this.getInputDisplayValue(null),dt=(X||X===0)&&(isNaN(X)||Number(X)>=ae),_t=(X||X===0)&&(isNaN(X)||Number(X)<=Q),ir=dt||_e||Ue,$r=_t||_e||Ue,nr=c()("".concat(xe,"-handler"),"".concat(xe,"-handler-up"),Object(r.a)({},"".concat(xe,"-handler-up-disabled"),ir)),lr=c()("".concat(xe,"-handler"),"".concat(xe,"-handler-down"),Object(r.a)({},"".concat(xe,"-handler-down-disabled"),$r)),zt=fe?{onTouchStart:ir?m:this.up,onTouchEnd:this.stop}:{onMouseDown:ir?m:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},Ut=fe?{onTouchStart:$r?m:this.down,onTouchEnd:this.stop}:{onMouseDown:$r?m:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return g.a.createElement("div",{className:Ee,style:G,title:Y,onMouseEnter:me,onMouseLeave:ue,onMouseOver:Ce,onMouseOut:Ie,onFocus:function(){return null},onBlur:function(){return null}},g.a.createElement("div",{className:"".concat(xe,"-handler-wrap")},g.a.createElement("span",Object.assign({unselectable:"on"},zt,{role:"button","aria-label":"Increase Value","aria-disabled":ir,className:nr}),se||g.a.createElement("span",{unselectable:"on",className:"".concat(xe,"-handler-up-inner"),onClick:v})),g.a.createElement("span",Object.assign({unselectable:"on"},Ut,{role:"button","aria-label":"Decrease Value","aria-disabled":$r,className:lr}),te||g.a.createElement("span",{unselectable:"on",className:"".concat(xe,"-handler-down-inner"),onClick:v}))),g.a.createElement("div",{className:"".concat(xe,"-input-wrap")},g.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Q,"aria-valuemax":ae,"aria-valuenow":X,required:ce,type:Ge,placeholder:gt,onPaste:Mt,onClick:Ae,onMouseUp:this.onMouseUp,className:"".concat(xe,"-input"),tabIndex:Te,autoComplete:ke,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:lt?this.onKeyDown:m,onKeyUp:lt?this.onKeyUp:m,autoFocus:Ht,maxLength:xt,readOnly:Ue,disabled:_e,max:ae,min:Q,step:$e,name:tr,title:Y,id:qe,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Ct),pattern:Ot,inputMode:Le,onInput:Tt},ee))))}}]),Z}(g.a.Component);I.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:b,min:-b,step:1,style:{},onChange:m,onKeyDown:m,onPressEnter:m,onFocus:m,onBlur:m,parser:y,required:!1,autoComplete:"off"};var L=I,N=L,D=d("FH2Y"),R=d.n(D),k=d("HQEm"),M=d.n(k),U=d("H84U"),B=d("3Nzz"),j=function(z,J){var Z={};for(var de in z)Object.prototype.hasOwnProperty.call(z,de)&&J.indexOf(de)<0&&(Z[de]=z[de]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,de=Object.getOwnPropertySymbols(z);ie<de.length;ie++)J.indexOf(de[ie])<0&&Object.prototype.propertyIsEnumerable.call(z,de[ie])&&(Z[de[ie]]=z[de[ie]]);return Z},W=S.forwardRef(function(z,J){var Z=function(ie){var ve=ie.getPrefixCls,xe=ie.direction,_e=z.className,Ue=z.size,fe=z.prefixCls,ke=z.readOnly,se=j(z,["className","size","prefixCls","readOnly"]),te=ve("input-number",fe),Ve=S.createElement(R.a,{className:"".concat(te,"-handler-up-inner")}),ae=S.createElement(M.a,{className:"".concat(te,"-handler-down-inner")});return S.createElement(B.b.Consumer,null,function(Q){var G,Y=Ue||Q,me=c()((G={},A()(G,"".concat(te,"-lg"),Y==="large"),A()(G,"".concat(te,"-sm"),Y==="small"),A()(G,"".concat(te,"-rtl"),xe==="rtl"),A()(G,"".concat(te,"-readonly"),ke),G),_e);return S.createElement(N,x()({ref:J,className:me,upHandler:Ve,downHandler:ae,prefixCls:te,readOnly:ke},se))})};return S.createElement(U.a,null,Z)});W.defaultProps={step:1};var V=F.a=W},g0SD:function(H,F,d){var O=d("bYtY"),x=d("9wZj"),C=d("OELB"),A=d("YXkt"),S=d("kj2x"),g=d("iPDy");function f(r,i,n){var e=i.coordinateSystem;r.each(function(l){var t=r.getItemModel(l),a,s=C.parsePercent(t.get("x"),n.getWidth()),u=C.parsePercent(t.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(u))a=[s,u];else if(i.getMarkerPosition)a=i.getMarkerPosition(r.getValues(r.dimensions,l));else if(e){var h=r.get(e.dimensions[0],l),p=r.get(e.dimensions[1],l);a=e.dataToPoint([h,p])}isNaN(s)||(a[0]=s),isNaN(u)||(a[1]=u),r.setItemLayout(l,a)})}var c=g.extend({type:"markPoint",updateTransform:function(r,i,n){i.eachSeries(function(e){var l=e.markPointModel;l&&(f(l.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout(l))},this)},renderSeries:function(r,i,n,e){var l=r.coordinateSystem,t=r.id,a=r.getData(),s=this.markerGroupMap,u=s.get(t)||s.set(t,new x),h=o(l,r,i);i.setData(h),f(i.getData(),r,e),h.each(function(p){var m=h.getItemModel(p),v=m.getShallow("symbol"),y=m.getShallow("symbolSize"),E=O.isFunction(v),T=O.isFunction(y);if(E||T){var b=i.getRawValue(p),w=i.getDataParams(p);E&&(v=v(b,w)),T&&(y=y(b,w))}h.setItemVisual(p,{symbol:v,symbolSize:y,color:m.get("itemStyle.color")||a.getVisual("color")})}),u.updateData(h),this.group.add(u.group),h.eachItemGraphicEl(function(p){p.traverse(function(m){m.dataModel=i})}),u.__keep=!0,u.group.silent=i.get("silent")||r.get("silent")}});function o(r,i,n){var e;r?e=O.map(r&&r.dimensions,function(a){var s=i.getData().getDimensionInfo(i.getData().mapDimension(a))||{};return O.defaults({name:a},s)}):e=[{name:"value",type:"float"}];var l=new A(e,n),t=O.map(n.get("data"),O.curry(S.dataTransform,i));return r&&(t=O.filter(t,O.curry(S.dataFilter,r))),l.initData(t,null,r?S.dimValueGetter:function(a){return a.value}),l}H.exports=c},g7p0:function(H,F,d){var O=d("bYtY"),x=d("bLfw"),C=d("+TT/"),A=C.getLayoutParams,S=C.sizeCalculable,g=C.mergeLayoutParam,f=x.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(r,i,n,e){var l=A(r);f.superApply(this,"init",arguments),c(r,l)},mergeOption:function(r,i){f.superApply(this,"mergeOption",arguments),c(this.option,r)}});function c(r,i){var n=r.cellSize;O.isArray(n)?n.length===1&&(n[1]=n[0]):n=r.cellSize=[n,n];var e=O.map([0,1],function(l){return S(i,l)&&(n[l]="auto"),n[l]!=null&&n[l]!=="auto"});g(r,i,{type:"box",ignoreSize:e})}var o=f;H.exports=o},g9YV:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("pED+"),A=d.n(C),S=d("+L6B"),g=d("R9oj"),f=d("7Kak"),c=d("sRBo"),o=d("qVdP"),r=d("T2oS"),i=d("DjyN"),n=d("5Dmo")},gIYZ:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O={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"};F.default=O},gKaM:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},gPAo:function(H,F){function d(A){return A}function O(A,S,g,f,c){this._old=A,this._new=S,this._oldKeyGetter=g||d,this._newKeyGetter=f||d,this.context=c}O.prototype={constructor:O,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,S=this._new,g={},f={},c=[],o=[],r;for(x(A,g,c,"_oldKeyGetter",this),x(S,f,o,"_newKeyGetter",this),r=0;r<A.length;r++){var i=c[r],n=f[i];if(n!=null){var e=n.length;e?(e===1&&(f[i]=null),n=n.shift()):f[i]=null,this._update&&this._update(n,r)}else this._remove&&this._remove(r)}for(var r=0;r<o.length;r++){var i=o[r];if(f.hasOwnProperty(i)){var n=f[i];if(n==null)continue;if(!n.length)this._add&&this._add(n);else for(var l=0,e=n.length;l<e;l++)this._add&&this._add(n[l])}}}};function x(A,S,g,f,c){for(var o=0;o<A.length;o++){var r="_ec_"+c[f](A[o],o),i=S[r];i==null?(g.push(r),S[r]=o):(i.length||(S[r]=i=[i]),i.push(o))}}var C=O;H.exports=C},gRFJ:function(H,F,d){H.exports=[d("rdUC"),d("ynwM"),d("RELg"),d("DlR+"),d("CrYA"),d("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(H){return H<10?"0"+H:H}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(H){return rx_escapable.lastIndex=0,rx_escapable.test(H)?'"'+H.replace(rx_escapable,function(F){var d=meta[F];return typeof d=="string"?d:"\\u"+("0000"+F.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+H+'"'}function str(H,F){var d,O,x,C,A=gap,S,g=F[H];g&&typeof g=="object"&&typeof g.toJSON=="function"&&(g=g.toJSON(H)),typeof rep=="function"&&(g=rep.call(F,H,g));switch(typeof g){case"string":return quote(g);case"number":return isFinite(g)?String(g):"null";case"boolean":case"null":return String(g);case"object":if(!g)return"null";if(gap+=indent,S=[],Object.prototype.toString.apply(g)==="[object Array]"){for(C=g.length,d=0;d<C;d+=1)S[d]=str(d,g)||"null";return x=S.length===0?"[]":gap?`[
|
|
|
`+gap+S.join(`,
|
|
|
`+gap)+`
|
|
|
`+A+"]":"["+S.join(",")+"]",gap=A,x}if(rep&&typeof rep=="object")for(C=rep.length,d=0;d<C;d+=1)typeof rep[d]=="string"&&(O=rep[d],x=str(O,g),x&&S.push(quote(O)+(gap?": ":":")+x));else for(O in g)Object.prototype.hasOwnProperty.call(g,O)&&(x=str(O,g),x&&S.push(quote(O)+(gap?": ":":")+x));return x=S.length===0?"{}":gap?`{
|
|
|
`+gap+S.join(`,
|
|
|
`+gap)+`
|
|
|
`+A+"}":"{"+S.join(",")+"}",gap=A,x}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(H,F,d){var O;if(gap="",indent="",typeof d=="number")for(O=0;O<d;O+=1)indent+=" ";else typeof d=="string"&&(indent=d);if(rep=F,F&&typeof F!="function"&&(typeof F!="object"||typeof F.length!="number"))throw new Error("JSON.stringify");return str("",{"":H})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(H,F){var d,O,x=H[F];if(x&&typeof x=="object")for(d in x)Object.prototype.hasOwnProperty.call(x,d)&&(O=walk(x,d),O!==void 0?x[d]=O:delete x[d]);return reviver.call(H,F,x)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(H){return"\\u"+("0000"+H.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(H,F,d){var O=d("+TT/"),x=d("bYtY"),C=d("4NO4"),A=C.groupData;function S(_,I,L){_.eachSeriesByType("sankey",function(N){var D=N.get("nodeWidth"),R=N.get("nodeGap"),k=g(N,I);N.layoutInfo=k;var M=k.width,U=k.height,B=N.getGraph(),j=B.nodes,W=B.edges;c(j);var V=x.filter(j,function(de){return de.getLayout().value===0}),z=V.length!==0?0:N.get("layoutIterations"),J=N.get("orient"),Z=N.get("nodeAlign");f(j,W,D,R,M,U,z,J,Z)})}function g(_,I){return O.getLayoutRect(_.getBoxLayoutParams(),{width:I.getWidth(),height:I.getHeight()})}function f(_,I,L,N,D,R,k,M,U){o(_,I,L,D,R,M,U),l(_,I,R,D,N,k,M),w(_,M)}function c(_){x.each(_,function(I){var L=T(I.outEdges,E),N=T(I.inEdges,E),D=I.getValue()||0,R=Math.max(L,N,D);I.setLayout({value:R},!0)})}function o(_,I,L,N,D,R,k){for(var M=[],U=[],B=[],j=[],W=0,V=0,z=0;z<I.length;z++)M[z]=1;for(z=0;z<_.length;z++)U[z]=_[z].inEdges.length,U[z]===0&&B.push(_[z]);for(var J=-1;B.length;){for(var Z=0;Z<B.length;Z++){var de=B[Z],ie=de.hostGraph.data.getRawDataItem(de.dataIndex),ve=ie.depth!=null&&ie.depth>=0;ve&&ie.depth>J&&(J=ie.depth),de.setLayout({depth:ve?ie.depth:W},!0),R==="vertical"?de.setLayout({dy:L},!0):de.setLayout({dx:L},!0);for(var xe=0;xe<de.outEdges.length;xe++){var _e=de.outEdges[xe],Ue=I.indexOf(_e);M[Ue]=0;var fe=_e.node2,ke=_.indexOf(fe);--U[ke]===0&&j.indexOf(fe)<0&&j.push(fe)}}++W,B=j,j=[]}for(z=0;z<M.length;z++)if(M[z]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var se=J>W-1?J:W-1;k&&k!=="left"&&i(_,k,R,se);var V=R==="vertical"?(D-L)/se:(N-L)/se;e(_,V,R)}function r(_){var I=_.hostGraph.data.getRawDataItem(_.dataIndex);return I.depth!=null&&I.depth>=0}function i(_,I,L,N){if(I==="right"){for(var D=[],R=_,k=0;R.length;){for(var M=0;M<R.length;M++){var U=R[M];U.setLayout({skNodeHeight:k},!0);for(var B=0;B<U.inEdges.length;B++){var j=U.inEdges[B];D.indexOf(j.node1)<0&&D.push(j.node1)}}R=D,D=[],++k}x.each(_,function(W){r(W)||W.setLayout({depth:Math.max(0,N-W.getLayout().skNodeHeight)},!0)})}else I==="justify"&&n(_,N)}function n(_,I){x.each(_,function(L){!r(L)&&!L.outEdges.length&&L.setLayout({depth:I},!0)})}function e(_,I,L){x.each(_,function(N){var D=N.getLayout().depth*I;L==="vertical"?N.setLayout({y:D},!0):N.setLayout({x:D},!0)})}function l(_,I,L,N,D,R,k){var M=t(_,k);a(M,I,L,N,D,k),s(M,D,L,N,k);for(var U=1;R>0;R--)U*=.99,u(M,U,k),s(M,D,L,N,k),b(M,U,k),s(M,D,L,N,k)}function t(_,I){var L=[],N=I==="vertical"?"y":"x",D=A(_,function(R){return R.getLayout()[N]});return D.keys.sort(function(R,k){return R-k}),x.each(D.keys,function(R){L.push(D.buckets.get(R))}),L}function a(_,I,L,N,D,R){var k=Infinity;x.each(_,function(M){var U=M.length,B=0;x.each(M,function(W){B+=W.getLayout().value});var j=R==="vertical"?(N-(U-1)*D)/B:(L-(U-1)*D)/B;j<k&&(k=j)}),x.each(_,function(M){x.each(M,function(U,B){var j=U.getLayout().value*k;R==="vertical"?(U.setLayout({x:B},!0),U.setLayout({dx:j},!0)):(U.setLayout({y:B},!0),U.setLayout({dy:j},!0))})}),x.each(I,function(M){var U=+M.getValue()*k;M.setLayout({dy:U},!0)})}function s(_,I,L,N,D){var R=D==="vertical"?"x":"y";x.each(_,function(k){k.sort(function(Z,de){return Z.getLayout()[R]-de.getLayout()[R]});for(var M,U,B,j=0,W=k.length,V=D==="vertical"?"dx":"dy",z=0;z<W;z++)U=k[z],B=j-U.getLayout()[R],B>0&&(M=U.getLayout()[R]+B,D==="vertical"?U.setLayout({x:M},!0):U.setLayout({y:M},!0)),j=U.getLayout()[R]+U.getLayout()[V]+I;var J=D==="vertical"?N:L;if(B=j-I-J,B>0)for(M=U.getLayout()[R]-B,D==="vertical"?U.setLayout({x:M},!0):U.setLayout({y:M},!0),j=M,z=W-2;z>=0;--z)U=k[z],B=U.getLayout()[R]+U.getLayout()[V]+I-j,B>0&&(M=U.getLayout()[R]-B,D==="vertical"?U.setLayout({x:M},!0):U.setLayout({y:M},!0)),j=U.getLayout()[R]})}function u(_,I,L){x.each(_.slice().reverse(),function(N){x.each(N,function(D){if(D.outEdges.length){var R=T(D.outEdges,h,L)/T(D.outEdges,E,L);if(isNaN(R)){var k=D.outEdges.length;R=k?T(D.outEdges,p,L)/k:0}if(L==="vertical"){var M=D.getLayout().x+(R-y(D,L))*I;D.setLayout({x:M},!0)}else{var U=D.getLayout().y+(R-y(D,L))*I;D.setLayout({y:U},!0)}}})})}function h(_,I){return y(_.node2,I)*_.getValue()}function p(_,I){return y(_.node2,I)}function m(_,I){return y(_.node1,I)*_.getValue()}function v(_,I){return y(_.node1,I)}function y(_,I){return I==="vertical"?_.getLayout().x+_.getLayout().dx/2:_.getLayout().y+_.getLayout().dy/2}function E(_){return _.getValue()}function T(_,I,L){for(var N=0,D=_.length,R=-1;++R<D;){var k=+I.call(_,_[R],L);isNaN(k)||(N+=k)}return N}function b(_,I,L){x.each(_,function(N){x.each(N,function(D){if(D.inEdges.length){var R=T(D.inEdges,m,L)/T(D.inEdges,E,L);if(isNaN(R)){var k=D.inEdges.length;R=k?T(D.inEdges,v,L)/k:0}if(L==="vertical"){var M=D.getLayout().x+(R-y(D,L))*I;D.setLayout({x:M},!0)}else{var U=D.getLayout().y+(R-y(D,L))*I;D.setLayout({y:U},!0)}}})})}function w(_,I){var L=I==="vertical"?"x":"y";x.each(_,function(N){N.outEdges.sort(function(D,R){return D.node2.getLayout()[L]-R.node2.getLayout()[L]}),N.inEdges.sort(function(D,R){return D.node1.getLayout()[L]-R.node1.getLayout()[L]})}),x.each(_,function(N){var D=0,R=0;x.each(N.outEdges,function(k){k.setLayout({sy:D},!0),D+=k.getLayout().dy}),x.each(N.inEdges,function(k){k.setLayout({ty:R},!0),R+=k.getLayout().dy})})}H.exports=S},"gb/T":function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.mode.ECB=function(){var x=O.lib.BlockCipherMode.extend();return x.Encryptor=x.extend({processBlock:function(A,S){this._cipher.encryptBlock(A,S)}}),x.Decryptor=x.extend({processBlock:function(A,S){this._cipher.decryptBlock(A,S)}}),x}(),O.mode.ECB})},"giR+":function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("QbM5"),A=d.n(C)},gut8:function(H,F){var d={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},O=9;F.ContextCachedBy=d,F.WILL_BE_RESTORED=O},gvm7:function(H,F,d){var O=d("bYtY"),x=d("dqUG");function C(S){this._zr=S.getZr(),this._show=!1,this._hideTimeout}C.prototype={constructor:C,_enterable:!0,update:function(){},show:function(S){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(S,g,f){this.el&&this._zr.remove(this.el);for(var c={},o=S,r="{marker",i="|}",n=o.indexOf(r);n>=0;){var e=o.indexOf(i),l=o.substr(n+r.length,e-n-r.length);l.indexOf("sub")>-1?c["marker"+l]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:g[l],textOffset:[3,0]}:c["marker"+l]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:g[l]},o=o.substr(e+1),n=o.indexOf("{marker")}this.el=new x({style:{rich:c,text:S,textLineHeight:20,textBackgroundColor:f.get("backgroundColor"),textBorderRadius:f.get("borderRadius"),textFill:f.get("textStyle.color"),textPadding:f.get("padding")},z:f.get("z")}),this._zr.add(this.el);var t=this;this.el.on("mouseover",function(){t._enterable&&(clearTimeout(t._hideTimeout),t._show=!0),t._inContent=!0}),this.el.on("mouseout",function(){t._enterable&&(t._show&&t.hideLater(t._hideDelay)),t._inContent=!1})},setEnterable:function(S){this._enterable=S},getSize:function(){var S=this.el.getBoundingRect();return[S.width,S.height]},moveTo:function(S,g){this.el&&this.el.attr("position",[S,g])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(S){this._show&&!(this._inContent&&this._enterable)&&(S?(this._hideDelay=S,this._show=!1,this._hideTimeout=setTimeout(O.bind(this.hide,this),S)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var S=this.getSize();return{width:S[0],height:S[1]}}};var A=C;H.exports=A},gwTy:function(H,F,d){},h54F:function(H,F,d){var O=d("ProS"),x=d("YXkt"),C=d("bYtY"),A=d("4NO4"),S=A.defaultEmphasis,g=d("Qxkt"),f=d("7aKB"),c=f.encodeHTML,o=d("I3/A"),r=d("xKMd"),i=O.extendSeriesModel({type:"series.graph",init:function(e){i.superApply(this,"init",arguments);var l=this;function t(){return l._categoriesData}this.legendVisualProvider=new r(t,t),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){i.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){i.superApply(this,"mergeDefaultAndTheme",arguments),S(e,["edgeLabel"],["show"])},getInitialData:function(e,l){var t=e.edges||e.links||[],a=e.data||e.nodes||[],s=this;if(a&&t)return o(a,t,this,!0,u).data;function u(h,p){h.wrapMethod("getItemModel",function(b){var w=s._categoriesModels,_=b.getShallow("category"),I=w[_];return I&&(I.parentModel=b.parentModel,b.parentModel=I),b});var m=s.getModel("edgeLabel"),v=new g({label:m.option},m.parentModel,l),y=s.getModel("emphasis.edgeLabel"),E=new g({emphasis:{label:y.option}},y.parentModel,l);p.wrapMethod("getItemModel",function(b){return b.customizeGetParent(T),b});function T(b){return b=this.parsePath(b),b&&b[0]==="label"?v:b&&b[0]==="emphasis"&&b[1]==="label"?E:this.parentModel}}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,l,t){if(t==="edge"){var a=this.getData(),s=this.getDataParams(e,t),u=a.graph.getEdgeByIndex(e),h=a.getName(u.node1.dataIndex),p=a.getName(u.node2.dataIndex),m=[];return h!=null&&m.push(h),p!=null&&m.push(p),m=c(m.join(" > ")),s.value&&(m+=" : "+c(s.value)),m}else return i.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=C.map(this.option.categories||[],function(t){return t.value!=null?t:C.extend({value:0},t)}),l=new x(["value"],this);l.initData(e),this._categoriesData=l,this._categoriesModels=l.mapArray(function(t){return l.getItemModel(t,!0)})},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return i.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}}}}),n=i;H.exports=n},h7HQ:function(H,F,d){var O=d("y+Vt"),x=d("T6xi"),C=O.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(S,g){x.buildPath(S,g,!0)}});H.exports=C},h8O9:function(H,F,d){var O=d("bYtY"),x=O.map,C=d("zM3Q"),A=d("7hqr"),S=A.isDimensionStacked;function g(f){return{seriesType:f,plan:C(),reset:function(c){var o=c.getData(),r=c.coordinateSystem,i=c.pipelineContext,n=i.large;if(!r)return;var e=x(r.dimensions,function(s){return o.mapDimension(s)}).slice(0,2),l=e.length,t=o.getCalculationInfo("stackResultDimension");S(o,e[0])&&(e[0]=t),S(o,e[1])&&(e[1]=t);function a(s,u){for(var h=s.end-s.start,p=n&&new Float32Array(h*l),m=s.start,v=0,y=[],E=[];m<s.end;m++){var T;if(l===1){var b=u.get(e[0],m);T=!isNaN(b)&&r.dataToPoint(b,null,E)}else{var b=y[0]=u.get(e[0],m),w=y[1]=u.get(e[1],m);T=!isNaN(b)&&!isNaN(w)&&r.dataToPoint(y,null,E)}n?(p[v++]=T?T[0]:NaN,p[v++]=T?T[1]:NaN):u.setItemLayout(m,T&&T.slice()||[NaN,NaN])}n&&u.setLayout("symbolPoints",p)}return l&&{progress:a}}}}H.exports=g},hD7B:function(H,F,d){var O=d("bYtY"),x=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function C(S){O.each(x,function(g){this[g]=O.bind(S[g],S)},this)}var A=C;H.exports=A},hFmY:function(H,F,d){var O=d("ProS"),x={type:"axisAreaSelect",event:"axisAreaSelected"};O.registerAction(x,function(C,A){A.eachComponent({mainType:"parallelAxis",query:C},function(S){S.axis.model.setActiveIntervals(C.intervals)})}),O.registerAction("parallelAxisExpand",function(C,A){A.eachComponent({mainType:"parallel",query:C},function(S){S.setAxisExpand(C)})})},hJvP:function(H,F,d){var O=d("2dDv"),x=d("IDmD");function C(A,S){var g=[];return A.eachComponent("parallel",function(f,c){var o=new O(f,A,S);o.name="parallel_"+c,o.resize(f,S),f.coordinateSystem=o,o.model=f,g.push(o)}),A.eachSeries(function(f){if(f.get("coordinateSystem")==="parallel"){var c=A.queryComponents({mainType:"parallel",index:f.get("parallelIndex"),id:f.get("parallelId")})[0];f.coordinateSystem=c.coordinateSystem}}),g}x.register("parallel",{create:C})},hM6l:function(H,F,d){var O=d("bYtY"),x=O.each,C=O.map,A=d("OELB"),S=A.linearMap,g=A.getPixelPrecision,f=A.round,c=d("4HMb"),o=c.createAxisTicks,r=c.createAxisLabels,i=c.calculateCategoryInterval,n=[0,1],e=function(s,u,h){this.dim=s,this.scale=u,this._extent=h||[0,0],this.inverse=!1,this.onBand=!1};e.prototype={constructor:e,contain:function(s){var u=this._extent,h=Math.min(u[0],u[1]),p=Math.max(u[0],u[1]);return s>=h&&s<=p},containData:function(s){return this.scale.contain(s)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(s){return g(s||this.scale.getExtent(),this._extent)},setExtent:function(s,u){var h=this._extent;h[0]=s,h[1]=u},dataToCoord:function(s,u){var h=this._extent,p=this.scale;return s=p.normalize(s),this.onBand&&p.type==="ordinal"&&(h=h.slice(),l(h,p.count())),S(s,n,h,u)},coordToData:function(s,u){var h=this._extent,p=this.scale;this.onBand&&p.type==="ordinal"&&(h=h.slice(),l(h,p.count()));var m=S(s,h,n,u);return this.scale.scale(m)},pointToData:function(s,u){},getTicksCoords:function(s){s=s||{};var u=s.tickModel||this.getTickModel(),h=o(this,u),p=h.ticks,m=C(p,function(y){return{coord:this.dataToCoord(y),tickValue:y}},this),v=u.get("alignWithLabel");return t(this,m,v,s.clamp),m},getMinorTicksCoords:function(){if(this.scale.type==="ordinal")return[];var s=this.model.getModel("minorTick"),u=s.get("splitNumber");u>0&&u<100||(u=5);var h=this.scale.getMinorTicks(u),p=C(h,function(m){return C(m,function(v){return{coord:this.dataToCoord(v),tickValue:v}},this)},this);return p},getViewLabels:function(){return r(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var s=this._extent,u=this.scale.getExtent(),h=u[1]-u[0]+(this.onBand?1:0);h===0&&(h=1);var p=Math.abs(s[1]-s[0]);return Math.abs(p)/h},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return i(this)}};function l(s,u){var h=s[1]-s[0],p=u,m=h/p/2;s[0]+=m,s[1]-=m}function t(s,u,h,p){var m=u.length;if(!s.onBand||h||!m)return;var v=s.getExtent(),y,E;if(m===1)u[0].coord=v[0],y=u[1]={coord:v[0]};else{var T=u[m-1].tickValue-u[0].tickValue,b=(u[m-1].coord-u[0].coord)/T;x(u,function(L){L.coord-=b/2});var w=s.scale.getExtent();E=1+w[1]-u[m-1].tickValue,y={coord:u[m-1].coord+b*E},u.push(y)}var _=v[0]>v[1];I(u[0].coord,v[0])&&(p?u[0].coord=v[0]:u.shift()),p&&I(v[0],u[0].coord)&&u.unshift({coord:v[0]}),I(v[1],y.coord)&&(p?y.coord=v[1]:u.pop()),p&&I(y.coord,v[1])&&u.push({coord:v[1]});function I(L,N){return L=f(L),N=f(N),_?L>N:L<N}}var a=e;H.exports=a},hNWo:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("Qxkt"),A=d("4NO4"),S=A.isNameSpecified,g=d("Kagy"),f=g.legend.selector,c={all:{type:"all",title:x.clone(f.all)},inverse:{type:"inverse",title:x.clone(f.inverse)}},o=O.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(i,n,e){this.mergeDefaultAndTheme(i,e),i.selected=i.selected||{},this._updateSelector(i)},mergeOption:function(i){o.superCall(this,"mergeOption",i),this._updateSelector(i)},_updateSelector:function(i){var n=i.selector;n===!0&&(n=i.selector=["all","inverse"]),x.isArray(n)&&x.each(n,function(e,l){x.isString(e)&&(e={type:e}),n[l]=x.merge(e,c[e.type])})},optionUpdated:function(){this._updateData(this.ecModel);var i=this._data;if(i[0]&&this.get("selectedMode")==="single"){for(var n=!1,e=0;e<i.length;e++){var l=i[e].get("name");if(this.isSelected(l)){this.select(l),n=!0;break}}!n&&this.select(i[0].get("name"))}},_updateData:function(i){var n=[],e=[];i.eachRawSeries(function(a){var s=a.name;e.push(s);var u;if(a.legendVisualProvider){var h=a.legendVisualProvider,p=h.getAllNames();i.isSeriesFiltered(a)||(e=e.concat(p)),p.length?n=n.concat(p):u=!0}else u=!0;u&&S(a)&&n.push(a.name)}),this._availableNames=e;var l=this.get("data")||n,t=x.map(l,function(a){return(typeof a=="string"||typeof a=="number")&&(a={name:a}),new C(a,this,this.ecModel)},this);this._data=t},getData:function(){return this._data},select:function(i){var n=this.option.selected,e=this.get("selectedMode");if(e==="single"){var l=this._data;x.each(l,function(t){n[t.get("name")]=!1})}n[i]=!0},unSelect:function(i){this.get("selectedMode")!=="single"&&(this.option.selected[i]=!1)},toggleSelected:function(i){var n=this.option.selected;n.hasOwnProperty(i)||(n[i]=!0),this[n[i]?"unSelect":"select"](i)},allSelect:function(){var i=this._data,n=this.option.selected;x.each(i,function(e){n[e.get("name",!0)]=!0})},inverseSelect:function(){var i=this._data,n=this.option.selected;x.each(i,function(e){var l=e.get("name",!0);n.hasOwnProperty(l)||(n[l]=!0),n[l]=!n[l]})},isSelected:function(i){var n=this.option.selected;return!(n.hasOwnProperty(i)&&!n[i])&&x.indexOf(this._availableNames,i)>=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}}}),r=o;H.exports=r},hOwI:function(H,F){var d=Math.log(2);function O(C,A,S,g,f,c){var o=g+"-"+f,r=C.length;if(c.hasOwnProperty(o))return c[o];if(A===1){var i=Math.round(Math.log((1<<r)-1&~f)/d);return C[S][i]}for(var n=g|1<<S,e=S+1;g&1<<e;)e++;for(var l=0,t=0,a=0;t<r;t++){var s=1<<t;s&f||(l+=(a%2?-1:1)*C[S][t]*O(C,A-1,e,n,f|s,c),a++)}return c[o]=l,l}function x(C,A){var S=[[C[0],C[1],1,0,0,0,-A[0]*C[0],-A[0]*C[1]],[0,0,0,C[0],C[1],1,-A[1]*C[0],-A[1]*C[1]],[C[2],C[3],1,0,0,0,-A[2]*C[2],-A[2]*C[3]],[0,0,0,C[2],C[3],1,-A[3]*C[2],-A[3]*C[3]],[C[4],C[5],1,0,0,0,-A[4]*C[4],-A[4]*C[5]],[0,0,0,C[4],C[5],1,-A[5]*C[4],-A[5]*C[5]],[C[6],C[7],1,0,0,0,-A[6]*C[6],-A[6]*C[7]],[0,0,0,C[6],C[7],1,-A[7]*C[6],-A[7]*C[7]]],g={},f=O(S,8,0,0,0,g);if(f===0)return;for(var c=[],o=0;o<8;o++)for(var r=0;r<8;r++)c[r]==null&&(c[r]=0),c[r]+=((o+r)%2?-1:1)*O(S,7,o===0?1:0,1<<o,1<<r,g)/f*A[o];return function(i,n,e){var l=n*c[6]+e*c[7]+1;i[0]=(n*c[0]+e*c[1]+c[2])/l,i[1]=(n*c[3]+e*c[4]+c[5])/l}}F.buildTransformer=x},hX1E:function(H,F){var d=Math.PI*2;function O(x){return x%=d,x<0&&(x+=d),x}F.normalizeRadian=O},hXwI:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;function O(S,g){if(!(S instanceof g))throw new TypeError("Cannot call a class as a function")}function x(S,g){for(var f=0;f<g.length;f++){var c=g[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(S,c.key,c)}}function C(S,g,f){return g&&x(S.prototype,g),f&&x(S,f),S}var A=function(){function S(){O(this,S)}return C(S,[{key:"decodeRect",value:function(f,c,o,r,i,n,e){if(i.rQwait("COPYRECT",4))return!1;var l=i.rQshift16(),t=i.rQshift16();return n.copyImage(l,t,f,c,o,r),!0}}]),S}();F.default=A},hi0g:function(H,F,d){var O=d("bYtY"),x=O.createHashMap,C=O.each,A=O.isString,S=O.defaults,g=O.extend,f=O.isObject,c=O.clone,o=d("4NO4"),r=o.normalizeToArray,i=d("D5nY"),n=i.guessOrdinal,e=i.BE_ORDINAL,l=d("7G+c"),t=d("L0Ub"),a=t.OTHER_DIMENSIONS,s=d("Vi4m");function u(v,y,E){l.isInstance(y)||(y=l.seriesDataToSource(y)),E=E||{},v=(v||[]).slice();for(var T=(E.dimsDef||[]).slice(),b=x(),w=x(),_=[],I=h(y,v,T,E.dimCount),L=0;L<I;L++){var N=T[L]=g({},f(T[L])?T[L]:{name:T[L]}),D=N.name,R=_[L]=new s;D!=null&&b.get(D)==null&&(R.name=R.displayName=D,b.set(D,L)),N.type!=null&&(R.type=N.type),N.displayName!=null&&(R.displayName=N.displayName)}var k=E.encodeDef;!k&&E.encodeDefaulter&&(k=E.encodeDefaulter(y,I)),k=x(k),k.each(function(Z,de){if(Z=r(Z).slice(),Z.length===1&&!A(Z[0])&&Z[0]<0){k.set(de,!1);return}var ie=k.set(de,[]);C(Z,function(ve,xe){A(ve)&&(ve=b.get(ve)),ve!=null&&ve<I&&(ie[xe]=ve,U(_[ve],de,xe))})});var M=0;C(v,function(Z,de){var ie,Z,ve,xe;if(A(Z))ie=Z,Z={};else{ie=Z.name;var _e=Z.ordinalMeta;Z.ordinalMeta=null,Z=c(Z),Z.ordinalMeta=_e,ve=Z.dimsDef,xe=Z.otherDims,Z.name=Z.coordDim=Z.coordDimIndex=Z.dimsDef=Z.otherDims=null}var Ue=k.get(ie);if(Ue===!1)return;var Ue=r(Ue);if(!Ue.length)for(var fe=0;fe<(ve&&ve.length||1);fe++){for(;M<_.length&&_[M].coordDim!=null;)M++;M<_.length&&Ue.push(M++)}C(Ue,function(ke,se){var te=_[ke];if(U(S(te,Z),ie,se),te.name==null&&ve){var Ve=ve[se];!f(Ve)&&(Ve={name:Ve}),te.name=te.displayName=Ve.name,te.defaultTooltip=Ve.defaultTooltip}xe&&S(te.otherDims,xe)})});function U(Z,de,ie){a.get(de)!=null?Z.otherDims[de]=ie:(Z.coordDim=de,Z.coordDimIndex=ie,w.set(de,!0))}var B=E.generateCoord,j=E.generateCoordCount,W=j!=null;j=B?j||1:0;for(var V=B||"value",z=0;z<I;z++){var R=_[z]=_[z]||new s,J=R.coordDim;J==null&&(R.coordDim=p(V,w,W),R.coordDimIndex=0,(!B||j<=0)&&(R.isExtraCoord=!0),j--),R.name==null&&(R.name=p(R.coordDim,b)),R.type==null&&(n(y,z,R.name)===e.Must||R.isExtraCoord&&(R.otherDims.itemName!=null||R.otherDims.seriesName!=null))&&(R.type="ordinal")}return _}function h(v,y,E,T){var b=Math.max(v.dimensionsDetectCount||1,y.length,E.length,T||0);return C(y,function(w){var _=w.dimsDef;_&&(b=Math.max(b,_.length))}),b}function p(v,y,E){if(E||y.get(v)!=null){for(var T=0;y.get(v+T)!=null;)T++;v+=T}return y.set(v,!0),v}var m=u;H.exports=m},hkKa:function(H,F,d){"use strict";d.d(F,"a",function(){return S});var O=d("J4zp"),x=d.n(O),C=d("q1tI"),A=d.n(C);function S(){var g=C.useReducer(function(o){return o+1},0),f=x()(g,2),c=f[1];return c}},hw6D:function(H,F,d){var O=d("bYtY");function x(S){S.eachSeriesByType("radar",function(g){var f=g.getData(),c=[],o=g.coordinateSystem;if(!o)return;var r=o.getIndicatorAxes();O.each(r,function(i,n){f.each(f.mapDimension(r[n].dim),function(e,l){c[l]=c[l]||[];var t=o.dataToPoint(e,n);c[l][n]=C(t)?t:A(o)})}),f.each(function(i){var n=O.find(c[i],function(e){return C(e)})||A(o);c[i].push(n.slice()),f.setItemLayout(i,c[i])})})}function C(S){return!isNaN(S[0])&&!isNaN(S[1])}function A(S){return[S.cx,S.cy]}H.exports=x},hwYd:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("Nu4q")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="PictureTwoTone";var c=A.forwardRef(f);F.default=c},hydK:function(H,F){var d="http://www.w3.org/2000/svg";function O(x){return document.createElementNS(d,x)}F.createElement=O},hyiK:function(H,F){function d(O,x,C,A,S,g){if(g>x&&g>A||g<x&&g<A)return 0;if(A===x)return 0;var f=A<x?1:-1,c=(g-x)/(A-x);(c===1||c===0)&&(f=A<x?.5:-.5);var o=c*(C-O)+O;return o===S?Infinity:o>S?f:0}H.exports=d},i38C:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=C.createHashMap,S=C.retrieve,g=C.each;function f(i){this.coordSysName=i,this.coordSysDims=[],this.axisMap=A(),this.categoryAxisMap=A(),this.firstCategoryDimIndex=null}function c(i){var n=i.get("coordinateSystem"),e=new f(n),l=o[n];if(l)return l(i,e,e.axisMap,e.categoryAxisMap),e}var o={cartesian2d:function(i,n,e,l){var t=i.getReferringComponents("xAxis")[0],a=i.getReferringComponents("yAxis")[0];n.coordSysDims=["x","y"],e.set("x",t),e.set("y",a),r(t)&&(l.set("x",t),n.firstCategoryDimIndex=0),r(a)&&(l.set("y",a),n.firstCategoryDimIndex==null&(n.firstCategoryDimIndex=1))},singleAxis:function(i,n,e,l){var t=i.getReferringComponents("singleAxis")[0];n.coordSysDims=["single"],e.set("single",t),r(t)&&(l.set("single",t),n.firstCategoryDimIndex=0)},polar:function(i,n,e,l){var t=i.getReferringComponents("polar")[0],a=t.findAxisModel("radiusAxis"),s=t.findAxisModel("angleAxis");n.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",s),r(a)&&(l.set("radius",a),n.firstCategoryDimIndex=0),r(s)&&(l.set("angle",s),n.firstCategoryDimIndex==null&&(n.firstCategoryDimIndex=1))},geo:function(i,n,e,l){n.coordSysDims=["lng","lat"]},parallel:function(i,n,e,l){var t=i.ecModel,a=t.getComponent("parallel",i.get("parallelIndex")),s=n.coordSysDims=a.dimensions.slice();g(a.parallelAxisIndex,function(u,h){var p=t.getComponent("parallelAxis",u),m=s[h];e.set(m,p),r(p)&&n.firstCategoryDimIndex==null&&(l.set(m,p),n.firstCategoryDimIndex=h)})}};function r(i){return i.get("type")==="category"}F.getCoordSysInfoBySeries=c},i6bk:function(H,F,d){"use strict";d.d(F,"b",function(){return O}),d.d(F,"a",function(){return x});function O(C){return C!=null&&C===C.window}function x(C,A){if(typeof window=="undefined")return 0;var S=A?"scrollTop":"scrollLeft",g=0;return O(C)?g=C[A?"pageYOffset":"pageXOffset"]:C instanceof Document?g=C.documentElement[S]:C&&(g=C[S]),C&&!O(C)&&typeof g!="number"&&(g=(C.ownerDocument||C).documentElement[S]),g}},i8CU:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("Fm1+"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},iLNv:function(H,F){var d="\0__throttleOriginMethod",O="\0__throttleRate",x="\0__throttleType";function C(g,f,c){var o,r=0,i=0,n=null,e,l,t,a;f=f||0;function s(){i=new Date().getTime(),n=null,g.apply(l,t||[])}var u=function(){o=new Date().getTime(),l=this,t=arguments;var h=a||f,p=a||c;a=null,e=o-(p?r:i)-h,clearTimeout(n),p?n=setTimeout(s,h):e>=0?s():n=setTimeout(s,-e),r=o};return u.clear=function(){n&&(clearTimeout(n),n=null)},u.debounceNextCall=function(h){a=h},u}function A(g,f,c,o){var r=g[f];if(!r)return;var i=r[d]||r,n=r[x],e=r[O];if(e!==c||n!==o){if(c==null||!o)return g[f]=i;r=g[f]=C(i,c,o==="debounce"),r[d]=i,r[x]=o,r[O]=c}return r}function S(g,f){var c=g[f];c&&c[d]&&(g[f]=c[d])}F.throttle=C,F.createOrUpdate=A,F.clear=S},iPDy:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=O.extendComponentView({type:"marker",init:function(){this.markerGroupMap=x.createHashMap()},render:function(A,S,g){var f=this.markerGroupMap;f.each(function(o){o.__keep=!1});var c=this.type+"Model";S.eachSeries(function(o){var r=o[c];r&&this.renderSeries(o,r,S,g)},this),f.each(function(o){!o.__keep&&this.group.remove(o.group)},this)},renderSeries:function(){}});H.exports=C},iQDF:function(H,F,d){"use strict";var O=d("ZTW2"),x=d.n(O),C=d("+BJd"),A=d("+L6B")},iRjW:function(H,F,d){var O=d("bYtY"),x=d("Yl7c"),C=x.parseClassType,A=0;function S(c){return[c||"",A++,Math.random().toFixed(5)].join("_")}function g(c){var o={};return c.registerSubTypeDefaulter=function(r,i){r=C(r),o[r.main]=i},c.determineSubType=function(r,i){var n=i.type;if(!n){var e=C(r).main;c.hasSubTypes(r)&&o[e]&&(n=o[e](i))}return n},c}function f(c,o){c.topologicalTravel=function(e,l,t,a){if(!e.length)return;var s=r(l),u=s.graph,h=s.noEntryList,p={};for(O.each(e,function(b){p[b]=!0});h.length;){var m=h.pop(),v=u[m],y=!!p[m];y&&(t.call(a,m,v.originalDeps.slice()),delete p[m]),O.each(v.successor,y?T:E)}O.each(p,function(){throw new Error("Circle dependency may exists")});function E(b){u[b].entryCount--,u[b].entryCount===0&&h.push(b)}function T(b){p[b]=!0,E(b)}};function r(e){var l={},t=[];return O.each(e,function(a){var s=i(l,a),u=s.originalDeps=o(a),h=n(u,e);s.entryCount=h.length,s.entryCount===0&&t.push(a),O.each(h,function(p){O.indexOf(s.predecessor,p)<0&&s.predecessor.push(p);var m=i(l,p);O.indexOf(m.successor,p)<0&&m.successor.push(a)})}),{graph:l,noEntryList:t}}function i(e,l){return e[l]||(e[l]={predecessor:[],successor:[]}),e[l]}function n(e,l){var t=[];return O.each(e,function(a){O.indexOf(l,a)>=0&&t.push(a)}),t}}F.getUID=S,F.enableSubTypeDefaulter=g,F.enableTopologicalTravel=f},iUHT:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;function O(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function x(v,y){for(var E=0;E<y.length;E++){var T=y[E];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(v,T.key,T)}}function C(v,y,E){return y&&x(v.prototype,y),E&&x(v,E),v}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],S=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],g=0,f,c,o,r,i,n;f=1<<16,c=1<<24,o=f|c,r=1<<2,i=1<<10,n=r|i;var e=[o|i,g|g,f|g,o|n,o|r,f|n,g|r,f|g,g|i,o|i,o|n,g|i,c|n,o|r,c|g,g|r,g|n,c|i,c|i,f|i,f|i,o|g,o|g,c|n,f|r,c|r,c|r,f|r,g|g,g|n,f|n,c|g,f|g,o|n,g|r,o|g,o|i,c|g,c|g,g|i,o|r,f|g,f|i,c|r,g|i,g|r,c|n,f|n,o|n,f|r,o|g,c|n,c|r,g|n,f|n,o|i,g|n,c|i,c|i,g|g,f|r,f|i,g|g,o|r];f=1<<20,c=1<<31,o=f|c,r=1<<5,i=1<<15,n=r|i;var l=[o|n,c|i,g|i,f|n,f|g,g|r,o|r,c|n,c|r,o|n,o|i,c|g,c|i,f|g,g|r,o|r,f|i,f|r,c|n,g|g,c|g,g|i,f|n,o|g,f|r,c|r,g|g,f|i,g|n,o|i,o|g,g|n,g|g,f|n,o|r,f|g,c|n,o|g,o|i,g|i,o|g,c|i,g|r,o|n,f|n,g|r,g|i,c|g,g|n,o|i,f|g,c|r,f|r,c|n,c|r,f|r,f|i,g|g,c|i,g|n,c|g,o|r,o|n,f|i];f=1<<17,c=1<<27,o=f|c,r=1<<3,i=1<<9,n=r|i;var t=[g|n,o|i,g|g,o|r,c|i,g|g,f|n,c|i,f|r,c|r,c|r,f|g,o|n,f|r,o|g,g|n,c|g,g|r,o|i,g|i,f|i,o|g,o|r,f|n,c|n,f|i,f|g,c|n,g|r,o|n,g|i,c|g,o|i,c|g,f|r,g|n,f|g,o|i,c|i,g|g,g|i,f|r,o|n,c|i,c|r,g|i,g|g,o|r,c|n,f|g,c|g,o|n,g|r,f|n,f|i,c|r,o|g,c|n,g|n,o|g,f|n,g|r,o|r,f|i];f=1<<13,c=1<<23,o=f|c,r=1<<0,i=1<<7,n=r|i;var a=[o|r,f|n,f|n,g|i,o|i,c|n,c|r,f|r,g|g,o|g,o|g,o|n,g|n,g|g,c|i,c|r,g|r,f|g,c|g,o|r,g|i,c|g,f|r,f|i,c|n,g|r,f|i,c|i,f|g,o|i,o|n,g|n,c|i,c|r,o|g,o|n,g|n,g|g,g|g,o|g,f|i,c|i,c|n,g|r,o|r,f|n,f|n,g|i,o|n,g|n,g|r,f|g,c|r,f|r,o|i,c|n,f|r,f|i,c|g,o|r,g|i,c|g,f|g,o|i];f=1<<25,c=1<<30,o=f|c,r=1<<8,i=1<<19,n=r|i;var s=[g|r,f|n,f|i,o|r,g|i,g|r,c|g,f|i,c|n,g|i,f|r,c|n,o|r,o|i,g|n,c|g,f|g,c|i,c|i,g|g,c|r,o|n,o|n,f|r,o|i,c|r,g|g,o|g,f|n,f|g,o|g,g|n,g|i,o|r,g|r,f|g,c|g,f|i,o|r,c|n,f|r,c|g,o|i,f|n,c|n,g|r,f|g,o|i,o|n,g|n,o|g,o|n,f|i,g|g,c|i,o|g,g|n,f|r,c|r,g|i,g|g,c|i,f|n,c|r];f=1<<22,c=1<<29,o=f|c,r=1<<4,i=1<<14,n=r|i;var u=[c|r,o|g,g|i,o|n,o|g,g|r,o|n,f|g,c|i,f|n,f|g,c|r,f|r,c|i,c|g,g|n,g|g,f|r,c|n,g|i,f|i,c|n,g|r,o|r,o|r,g|g,f|n,o|i,g|n,f|i,o|i,c|g,c|i,g|r,o|r,f|i,o|n,f|g,g|n,c|r,f|g,c|i,c|g,g|n,c|r,o|n,f|i,o|g,f|n,o|i,g|g,o|r,g|r,g|i,o|g,f|n,g|i,f|r,c|n,g|g,o|i,c|g,f|r,c|n];f=1<<21,c=1<<26,o=f|c,r=1<<1,i=1<<11,n=r|i;var h=[f|g,o|r,c|n,g|g,g|i,c|n,f|n,o|i,o|n,f|g,g|g,c|r,g|r,c|g,o|r,g|n,c|i,f|n,f|r,c|i,c|r,o|g,o|i,f|r,o|g,g|i,g|n,o|n,f|i,g|r,c|g,f|i,c|g,f|i,f|g,c|n,c|n,o|r,o|r,g|r,f|r,c|g,c|i,f|g,o|i,g|n,f|n,o|i,g|n,c|r,o|n,o|g,f|i,g|g,g|r,o|n,g|g,f|n,o|g,g|i,c|r,c|i,g|i,f|r];f=1<<18,c=1<<28,o=f|c,r=1<<6,i=1<<12,n=r|i;var p=[c|n,g|i,f|g,o|n,c|g,c|n,g|r,c|g,f|r,o|g,o|n,f|i,o|i,f|n,g|i,g|r,o|g,c|r,c|i,g|n,f|i,f|r,o|r,o|i,g|n,g|g,g|g,o|r,c|r,c|i,f|n,f|g,f|n,f|g,o|i,g|i,g|r,o|r,g|i,f|n,c|i,g|r,c|r,o|g,o|r,c|g,f|g,c|n,g|g,o|n,f|r,c|r,o|g,c|i,c|n,g|g,o|n,f|i,f|i,g|n,g|n,f|r,c|g,o|i],m=function(){function v(y){O(this,v),this.keys=[];for(var E=[],T=[],b=[],w=0,_=56;w<56;++w,_-=8){_+=_<-5?65:_<-3?31:_<-1?63:_===27?35:0;var I=_&7;E[w]=(y[_>>>3]&1<<I)!==0?1:0}for(var L=0;L<16;++L){var N=L<<1,D=N+1;b[N]=b[D]=0;for(var R=28;R<59;R+=28)for(var k=R-28;k<R;++k){var M=k+S[L];T[k]=M<R?E[M]:E[M-28]}for(var U=0;U<24;++U)T[A[U]]!==0&&(b[N]|=1<<23-U),T[A[U+24]]!==0&&(b[D]|=1<<23-U)}for(var B=0,j=0,W=0;B<16;++B){var V=b[j++],z=b[j++];this.keys[W]=(V&16515072)<<6,this.keys[W]|=(V&4032)<<10,this.keys[W]|=(z&16515072)>>>10,this.keys[W]|=(z&4032)>>>6,++W,this.keys[W]=(V&258048)<<12,this.keys[W]|=(V&63)<<16,this.keys[W]|=(z&258048)>>>4,this.keys[W]|=z&63,++W}}return C(v,[{key:"enc8",value:function(E){var T=E.slice(),b=0,w,_,I;w=T[b++]<<24|T[b++]<<16|T[b++]<<8|T[b++],_=T[b++]<<24|T[b++]<<16|T[b++]<<8|T[b++],I=(w>>>4^_)&252645135,_^=I,w^=I<<4,I=(w>>>16^_)&65535,_^=I,w^=I<<16,I=(_>>>2^w)&858993459,w^=I,_^=I<<2,I=(_>>>8^w)&16711935,w^=I,_^=I<<8,_=_<<1|_>>>31&1,I=(w^_)&2863311530,w^=I,_^=I,w=w<<1|w>>>31&1;for(var L=0,N=0;L<8;++L){I=_<<28|_>>>4,I^=this.keys[N++];var D=h[I&63];D|=s[I>>>8&63],D|=t[I>>>16&63],D|=e[I>>>24&63],I=_^this.keys[N++],D|=p[I&63],D|=u[I>>>8&63],D|=a[I>>>16&63],D|=l[I>>>24&63],w^=D,I=w<<28|w>>>4,I^=this.keys[N++],D=h[I&63],D|=s[I>>>8&63],D|=t[I>>>16&63],D|=e[I>>>24&63],I=w^this.keys[N++],D|=p[I&63],D|=u[I>>>8&63],D|=a[I>>>16&63],D|=l[I>>>24&63],_^=D}for(_=_<<31|_>>>1,I=(w^_)&2863311530,w^=I,_^=I,w=w<<31|w>>>1,I=(w>>>8^_)&16711935,_^=I,w^=I<<8,I=(w>>>2^_)&858993459,_^=I,w^=I<<2,I=(_>>>16^w)&65535,w^=I,_^=I<<16,I=(_>>>4^w)&252645135,w^=I,_^=I<<4,I=[_,w],b=0;b<8;b++)T[b]=(I[b>>>2]>>>8*(3-b%4))%256,T[b]<0&&(T[b]+=256);return T}},{key:"encrypt",value:function(E){return this.enc8(E.slice(0,8)).concat(this.enc8(E.slice(8,16)))}}]),v}();F.default=m},iXHM:function(H,F){var d="";typeof navigator!="undefined"&&(d=navigator.platform||"");var O={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:d.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};H.exports=O},iXp4:function(H,F,d){var O=d("ItGF"),x=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function C(A){return O.browser.ie&&O.browser.version>=11?function(){var S=this.__clipPaths,g=this.style,f;if(S)for(var c=0;c<S.length;c++){var o=S[c],r=o&&o.shape,i=o&&o.type;if(r&&(i==="sector"&&r.startAngle===r.endAngle||i==="rect"&&(!r.width||!r.height))){for(var n=0;n<x.length;n++)x[n][2]=g[x[n][0]],g[x[n][0]]=x[n][1];f=!0;break}}if(A.apply(this,arguments),f)for(var n=0;n<x.length;n++)g[x[n][0]]=x[n][2]}:A}H.exports=C},iYpf:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("ZLWo")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="FolderOpenOutlined";var c=A.forwardRef(f);F.default=c},ieMj:function(H,F,d){var O=d("OELB"),x=d("7aKB"),C=d("4NgU"),A=d("lE7J"),S=O.round,g=C.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(c,o){var r=this._extent;isNaN(c)||(r[0]=parseFloat(c)),isNaN(o)||(r[1]=parseFloat(o))},unionExtent:function(c){var o=this._extent;c[0]<o[0]&&(o[0]=c[0]),c[1]>o[1]&&(o[1]=c[1]),g.prototype.setExtent.call(this,o[0],o[1])},getInterval:function(){return this._interval},setInterval:function(c){this._interval=c,this._niceExtent=this._extent.slice(),this._intervalPrecision=A.getIntervalPrecision(c)},getTicks:function(c){var o=this._interval,r=this._extent,i=this._niceExtent,n=this._intervalPrecision,e=[];if(!o)return e;var l=1e4;r[0]<i[0]&&(c?e.push(S(i[0]-o,n)):e.push(r[0]));for(var t=i[0];t<=i[1]&&!(e.push(t),t=S(t+o,n),t===e[e.length-1]);)if(e.length>l)return[];var a=e.length?e[e.length-1]:i[1];return r[1]>a&&(c?e.push(S(a+o,n)):e.push(r[1])),e},getMinorTicks:function(c){for(var o=this.getTicks(!0),r=[],i=this.getExtent(),n=1;n<o.length;n++){for(var e=o[n],l=o[n-1],t=0,a=[],s=e-l,u=s/c;t<c-1;){var h=O.round(l+(t+1)*u);h>i[0]&&h<i[1]&&a.push(h),t++}r.push(a)}return r},getLabel:function(c,o){if(c==null)return"";var r=o&&o.precision;return r==null?r=O.getPrecisionSafe(c)||0:r==="auto"&&(r=this._intervalPrecision),c=S(c,r,!0),x.addCommas(c)},niceTicks:function(c,o,r){c=c||5;var i=this._extent,n=i[1]-i[0];if(!isFinite(n))return;n<0&&(n=-n,i.reverse());var e=A.intervalScaleNiceTicks(i,c,o,r);this._intervalPrecision=e.intervalPrecision,this._interval=e.interval,this._niceExtent=e.niceTickExtent},niceExtent:function(c){var o=this._extent;if(o[0]===o[1])if(o[0]!==0){var r=o[0];c.fixMax||(o[1]+=r/2),o[0]-=r/2}else o[1]=1;var i=o[1]-o[0];isFinite(i)||(o[0]=0,o[1]=1),this.niceTicks(c.splitNumber,c.minInterval,c.maxInterval);var n=this._interval;c.fixMin||(o[0]=S(Math.floor(o[0]/n)*n)),c.fixMax||(o[1]=S(Math.ceil(o[1]/n)*n))}});g.create=function(){return new g};var f=g;H.exports=f},j5sG:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.createSensor=void 0;var O=x(d("NohK"));function x(A){return A&&A.__esModule?A:{default:A}}var C=function(S){var g=void 0,f=[],c=(0,O.default)(function(){f.forEach(function(e){e(S)})}),o=function(){var l=new ResizeObserver(c);return l.observe(S),c(),l},r=function(l){g||(g=o()),f.indexOf(l)===-1&&f.push(l)},i=function(){g.disconnect(),f=[],g=void 0},n=function(l){var t=f.indexOf(l);t!==-1&&f.splice(t,1),f.length===0&&g&&i()};return{element:S,bind:r,destroy:i,unbind:n}};F.createSensor=C},jCoz:function(H,F,d){var O=d("bYtY"),x=d("4NgU"),C=d("OELB"),A=d("ieMj"),S=x.prototype,g=A.prototype,f=C.getPrecisionSafe,c=C.round,o=Math.floor,r=Math.ceil,i=Math.pow,n=Math.log,e=x.extend({type:"log",base:10,$constructor:function(){x.apply(this,arguments),this._originalScale=new A},getTicks:function(a){var s=this._originalScale,u=this._extent,h=s.getExtent();return O.map(g.getTicks.call(this,a),function(p){var m=C.round(i(this.base,p));return m=p===u[0]&&s.__fixMin?l(m,h[0]):m,m=p===u[1]&&s.__fixMax?l(m,h[1]):m,m},this)},getMinorTicks:g.getMinorTicks,getLabel:g.getLabel,scale:function(a){return a=S.scale.call(this,a),i(this.base,a)},setExtent:function(a,s){var u=this.base;a=n(a)/n(u),s=n(s)/n(u),g.setExtent.call(this,a,s)},getExtent:function(){var a=this.base,s=S.getExtent.call(this);s[0]=i(a,s[0]),s[1]=i(a,s[1]);var u=this._originalScale,h=u.getExtent();return u.__fixMin&&(s[0]=l(s[0],h[0])),u.__fixMax&&(s[1]=l(s[1],h[1])),s},unionExtent:function(a){this._originalScale.unionExtent(a);var s=this.base;a[0]=n(a[0])/n(s),a[1]=n(a[1])/n(s),S.unionExtent.call(this,a)},unionExtentFromData:function(a,s){this.unionExtent(a.getApproximateExtent(s))},niceTicks:function(a){a=a||10;var s=this._extent,u=s[1]-s[0];if(u===Infinity||u<=0)return;var h=C.quantity(u),p=a/u*h;for(p<=.5&&(h*=10);!isNaN(h)&&Math.abs(h)<1&&Math.abs(h)>0;)h*=10;var m=[C.round(r(s[0]/h)*h),C.round(o(s[1]/h)*h)];this._interval=h,this._niceExtent=m},niceExtent:function(a){g.niceExtent.call(this,a);var s=this._originalScale;s.__fixMin=a.fixMin,s.__fixMax=a.fixMax}});O.each(["contain","normalize"],function(a){e.prototype[a]=function(s){return s=n(s)/n(this.base),S[a].call(this,s)}}),e.create=function(){return new e};function l(a,s){return c(a,f(s))}var t=e;H.exports=t},jN4g:function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="CloseCircleFilled";var f=F.a=x.forwardRef(g)},jO45:function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="CheckCircleFilled";var f=F.a=x.forwardRef(g)},jO9C:function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.Iso97971={pad:function(C,A){C.concat(O.lib.WordArray.create([2147483648],1)),O.pad.ZeroPadding.pad(C,A)},unpad:function(C){O.pad.ZeroPadding.unpad(C),C.sigBytes--}},O.pad.Iso97971})},jTL6:function(H,F,d){var O=d("y+Vt"),x=O.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,S){var g=S.cx,f=S.cy,c=Math.max(S.r,0),o=S.startAngle,r=S.endAngle,i=S.clockwise,n=Math.cos(o),e=Math.sin(o);A.moveTo(n*c+g,e*c+f),A.arc(g,f,c,o,r,!i)}});H.exports=x},je13:function(H,F,d){var O=d("5nXd"),x=d("gRFJ"),C=[d("uQRt")];H.exports=O.createStore(x,C)},jett:function(H,F,d){var O=d("ProS");d("VSLf"),d("oBaM"),d("FGaS");var x=d("mOdp"),C=d("f5Yq"),A=d("hw6D"),S=d("0/Rx"),g=d("eJH7");O.registerVisual(x("radar")),O.registerVisual(C("radar","circle")),O.registerLayout(A),O.registerProcessor(S("radar")),O.registerPreprocessor(g)},jhfD:function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="ArrowLeftOutlined";var f=F.a=x.forwardRef(g)},jkPA:function(H,F,d){var O=d("bYtY"),x=O.createHashMap,C=O.isObject,A=O.map;function S(r){this.categories=r.categories||[],this._needCollect=r.needCollect,this._deduplication=r.deduplication,this._map}S.createByAxisModel=function(r){var i=r.option,n=i.data,e=n&&A(n,c);return new S({categories:e,needCollect:!e,deduplication:i.dedplication!==!1})};var g=S.prototype;g.getOrdinal=function(r){return f(this).get(r)},g.parseAndCollect=function(r){var i,n=this._needCollect;if(typeof r!="string"&&!n)return r;if(n&&!this._deduplication)return i=this.categories.length,this.categories[i]=r,i;var e=f(this);return i=e.get(r),i==null&&(n?(i=this.categories.length,this.categories[i]=r,e.set(r,i)):i=NaN),i};function f(r){return r._map||(r._map=x(r.categories))}function c(r){return C(r)&&r.value!=null?r.value:r+""}var o=S;H.exports=o},jndi:function(H,F,d){var O=d("bYtY"),x=d("Qe9p"),C=d("YXkt"),A=d("OELB"),S=d("IwbS"),g=d("kj2x"),f=d("iPDy"),c=function(t,a,s,u){var h=g.dataTransform(t,u[0]),p=g.dataTransform(t,u[1]),m=O.retrieve,v=h.coord,y=p.coord;v[0]=m(v[0],-Infinity),v[1]=m(v[1],-Infinity),y[0]=m(y[0],Infinity),y[1]=m(y[1],Infinity);var E=O.mergeAll([{},h,p]);return E.coord=[h.coord,p.coord],E.x0=h.x,E.y0=h.y,E.x1=p.x,E.y1=p.y,E};function o(t){return!isNaN(t)&&!isFinite(t)}function r(t,a,s,u){var h=1-t;return o(a[h])&&o(s[h])}function i(t,a){var s=a.coord[0],u=a.coord[1];return t.type==="cartesian2d"&&(s&&u&&(r(1,s,u,t)||r(0,s,u,t)))?!0:g.dataFilter(t,{coord:s,x:a.x0,y:a.y0})||g.dataFilter(t,{coord:u,x:a.x1,y:a.y1})}function n(t,a,s,u,h){var p=u.coordinateSystem,m=t.getItemModel(a),v,y=A.parsePercent(m.get(s[0]),h.getWidth()),E=A.parsePercent(m.get(s[1]),h.getHeight());if(!isNaN(y)&&!isNaN(E))v=[y,E];else{if(u.getMarkerPosition)v=u.getMarkerPosition(t.getValues(s,a));else{var T=t.get(s[0],a),b=t.get(s[1],a),w=[T,b];p.clampData&&p.clampData(w,w),v=p.dataToPoint(w,!0)}if(p.type==="cartesian2d"){var _=p.getAxis("x"),I=p.getAxis("y"),T=t.get(s[0],a),b=t.get(s[1],a);o(T)?v[0]=_.toGlobalCoord(_.getExtent()[s[0]==="x0"?0:1]):o(b)&&(v[1]=I.toGlobalCoord(I.getExtent()[s[1]==="y0"?0:1]))}isNaN(y)||(v[0]=y),isNaN(E)||(v[1]=E)}return v}var e=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];f.extend({type:"markArea",updateTransform:function(t,a,s){a.eachSeries(function(u){var h=u.markAreaModel;if(h){var p=h.getData();p.each(function(m){var v=O.map(e,function(E){return n(p,m,E,u,s)});p.setItemLayout(m,v);var y=p.getItemGraphicEl(m);y.setShape("points",v)})}},this)},renderSeries:function(t,a,s,u){var h=t.coordinateSystem,p=t.id,m=t.getData(),v=this.markerGroupMap,y=v.get(p)||v.set(p,{group:new S.Group});this.group.add(y.group),y.__keep=!0;var E=l(h,t,a);a.setData(E),E.each(function(T){E.setItemLayout(T,O.map(e,function(b){return n(E,T,b,t,u)})),E.setItemVisual(T,{color:m.getVisual("color")})}),E.diff(y.__data).add(function(T){var b=new S.Polygon({shape:{points:E.getItemLayout(T)}});E.setItemGraphicEl(T,b),y.group.add(b)}).update(function(T,b){var w=y.__data.getItemGraphicEl(b);S.updateProps(w,{shape:{points:E.getItemLayout(T)}},a,T),y.group.add(w),E.setItemGraphicEl(T,w)}).remove(function(T){var b=y.__data.getItemGraphicEl(T);y.group.remove(b)}).execute(),E.eachItemGraphicEl(function(T,b){var w=E.getItemModel(b),_=w.getModel("label"),I=w.getModel("emphasis.label"),L=E.getItemVisual(b,"color");T.useStyle(O.defaults(w.getModel("itemStyle").getItemStyle(),{fill:x.modifyAlpha(L,.4),stroke:L})),T.hoverStyle=w.getModel("emphasis.itemStyle").getItemStyle(),S.setLabelStyle(T.style,T.hoverStyle,_,I,{labelFetcher:a,labelDataIndex:b,defaultText:E.getName(b)||"",isRectText:!0,autoColor:L}),S.setHoverStyle(T,{}),T.dataModel=a}),y.__data=E,y.group.silent=a.get("silent")||t.get("silent")}});function l(t,a,s){var u,h,p=["x0","y0","x1","y1"];t?(u=O.map(t&&t.dimensions,function(y){var E=a.getData(),T=E.getDimensionInfo(E.mapDimension(y))||{};return O.defaults({name:y},T)}),h=new C(O.map(p,function(y,E){return{name:y,type:u[E%2].type}}),s)):(u=[{name:"value",type:"float"}],h=new C(u,s));var m=O.map(s.get("data"),O.curry(c,a,t,s));t&&(m=O.filter(m,O.curry(i,t)));var v=t?function(y,E,T,b){return y.coord[Math.floor(b/2)][b%2]}:function(y){return y.value};return h.initData(m,null,v),h.hasItemOption=!0,h}},"jsU+":function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("IUWy"),A=O.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){A.superApply(this,"optionUpdated",arguments),x.each(this.option.feature,function(g,f){var c=C.get(f);c&&x.merge(g,c.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}}}),S=A;H.exports=S},jtI2:function(H,F,d){d("SMc4");var O=d("bLfw"),x=O.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"}});H.exports=x},juDX:function(H,F,d){d("P47w");var O=d("aX58"),x=O.registerPainter,C=d("3CBa");x("svg",C)},k5C7:function(H,F,d){d("0JAE"),d("g7p0"),d("7mYs")},k9D9:function(H,F){var d="original",O="arrayRows",x="objectRows",C="keyedColumns",A="unknown",S="typedArray",g="column",f="row";F.SOURCE_FORMAT_ORIGINAL=d,F.SOURCE_FORMAT_ARRAY_ROWS=O,F.SOURCE_FORMAT_OBJECT_ROWS=x,F.SOURCE_FORMAT_KEYED_COLUMNS=C,F.SOURCE_FORMAT_UNKNOWN=A,F.SOURCE_FORMAT_TYPED_ARRAY=S,F.SERIES_LAYOUT_BY_COLUMN=g,F.SERIES_LAYOUT_BY_ROW=f},kDyi:function(H,F){function d(O){var x=O.findComponents({mainType:"legend"});x&&x.length&&O.filterSeries(function(C){for(var A=0;A<x.length;A++)if(!x[A].isSelected(C.name))return!1;return!0})}H.exports=d},kGiB:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("ABKa"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},kMLO:function(H,F,d){var O=d("XxSj"),x=d("Qe9p"),C=d("bYtY"),A=C.isArray,S="itemStyle",g={seriesType:"treemap",reset:function(t,a,s,u){var h=t.getData().tree,p=h.root,m=t.getModel(S);if(p.isRemoved())return;var v=C.map(h.levelModels,function(y){return y?y.get(S):null});f(p,{},v,m,t.getViewRoot().getAncestors(),t)}};function f(t,a,s,u,h,p){var m=t.getModel(),v=t.getLayout();if(!v||v.invisible||!v.isInView)return;var y=t.getModel(S),E=s[t.depth],T=c(y,a,E,u),b=y.get("borderColor"),w=y.get("borderColorSaturation"),_;w!=null&&(_=o(T,t),b=r(w,_)),t.setVisual("borderColor",b);var I=t.viewChildren;if(!I||!I.length)_=o(T,t),t.setVisual("color",_);else{var L=n(t,m,v,y,T,I);C.each(I,function(N,D){if(N.depth>=h.length||N===h[N.depth]){var R=l(m,T,N,D,L,p);f(N,R,s,u,h,p)}})}}function c(t,a,s,u){var h=C.extend({},a);return C.each(["color","colorAlpha","colorSaturation"],function(p){var m=t.get(p,!0);m==null&&s&&(m=s[p]),m==null&&(m=a[p]),m==null&&(m=u.get(p)),m!=null&&(h[p]=m)}),h}function o(t){var a=i(t,"color");if(a){var s=i(t,"colorAlpha"),u=i(t,"colorSaturation");return u&&(a=x.modifyHSL(a,null,null,u)),s&&(a=x.modifyAlpha(a,s)),a}}function r(t,a){return a!=null?x.modifyHSL(a,null,null,t):null}function i(t,a){var s=t[a];if(s!=null&&s!=="none")return s}function n(t,a,s,u,h,p){if(!p||!p.length)return;var m=e(a,"color")||h.color!=null&&h.color!=="none"&&(e(a,"colorAlpha")||e(a,"colorSaturation"));if(!m)return;var v=a.get("visualMin"),y=a.get("visualMax"),E=s.dataExtent.slice();v!=null&&v<E[0]&&(E[0]=v),y!=null&&y>E[1]&&(E[1]=y);var T=a.get("colorMappingBy"),b={type:m.name,dataExtent:E,visual:m.range};b.type==="color"&&(T==="index"||T==="id")?(b.mappingMethod="category",b.loop=!0):b.mappingMethod="linear";var w=new O(b);return w.__drColorMappingBy=T,w}function e(t,a){var s=t.get(a);return A(s)&&s.length?{name:a,range:s}:null}function l(t,a,s,u,h,p){var m=C.extend({},a);if(h){var v=h.type,y=v==="color"&&h.__drColorMappingBy,E=y==="index"?u:y==="id"?p.mapIdToIndex(s.getId()):s.getValue(t.get("visualDimension"));m[v]=h.mapValueToVisual(E)}return m}H.exports=g},"kVK+":function(H,F){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */F.read=function(d,O,x,C,A){var S,g,f=A*8-C-1,c=(1<<f)-1,o=c>>1,r=-7,i=x?A-1:0,n=x?-1:1,e=d[O+i];for(i+=n,S=e&(1<<-r)-1,e>>=-r,r+=f;r>0;S=S*256+d[O+i],i+=n,r-=8);for(g=S&(1<<-r)-1,S>>=-r,r+=C;r>0;g=g*256+d[O+i],i+=n,r-=8);if(S===0)S=1-o;else{if(S===c)return g?NaN:(e?-1:1)*Infinity;g=g+Math.pow(2,C),S=S-o}return(e?-1:1)*g*Math.pow(2,S-C)},F.write=function(d,O,x,C,A,S){var g,f,c,o=S*8-A-1,r=(1<<o)-1,i=r>>1,n=A===23?Math.pow(2,-24)-Math.pow(2,-77):0,e=C?0:S-1,l=C?1:-1,t=O<0||O===0&&1/O<0?1:0;for(O=Math.abs(O),isNaN(O)||O===Infinity?(f=isNaN(O)?1:0,g=r):(g=Math.floor(Math.log(O)/Math.LN2),O*(c=Math.pow(2,-g))<1&&(g--,c*=2),g+i>=1?O+=n/c:O+=n*Math.pow(2,1-i),O*c>=2&&(g++,c/=2),g+i>=r?(f=0,g=r):g+i>=1?(f=(O*c-1)*Math.pow(2,A),g=g+i):(f=O*Math.pow(2,i-1)*Math.pow(2,A),g=0));A>=8;d[x+e]=f&255,e+=l,f/=256,A-=8);for(g=g<<A|f,o+=A;o>0;d[x+e]=g&255,e+=l,g/=256,o-=8);d[x+e-l]|=t*128}},kj2x:function(H,F,d){var O=d("bYtY"),x=d("OELB"),C=d("7hqr"),A=C.isDimensionStacked,S=O.indexOf;function g(s){return!(isNaN(parseFloat(s.x))&&isNaN(parseFloat(s.y)))}function f(s){return!isNaN(parseFloat(s.x))&&!isNaN(parseFloat(s.y))}function c(s,u,h,p,m,v){var y=[],E=A(u,p),T=E?u.getCalculationInfo("stackResultDimension"):p,b=a(u,T,s),w=u.indicesOfNearest(T,b)[0];y[m]=u.get(h,w),y[v]=u.get(T,w);var _=u.get(p,w),I=x.getPrecision(u.get(p,w));return I=Math.min(I,20),I>=0&&(y[v]=+y[v].toFixed(I)),[y,_]}var o=O.curry,r={min:o(c,"min"),max:o(c,"max"),average:o(c,"average")};function i(s,u){var h=s.getData(),p=s.coordinateSystem;if(u&&!f(u)&&!O.isArray(u.coord)&&p){var m=p.dimensions,v=n(u,h,p,s);if(u=O.clone(u),u.type&&r[u.type]&&v.baseAxis&&v.valueAxis){var y=S(m,v.baseAxis.dim),E=S(m,v.valueAxis.dim),T=r[u.type](h,v.baseDataDim,v.valueDataDim,y,E);u.coord=T[0],u.value=T[1]}else{for(var b=[u.xAxis!=null?u.xAxis:u.radiusAxis,u.yAxis!=null?u.yAxis:u.angleAxis],w=0;w<2;w++)r[b[w]]&&(b[w]=a(h,h.mapDimension(m[w]),b[w]));u.coord=b}}return u}function n(s,u,h,p){var m={};return s.valueIndex!=null||s.valueDim!=null?(m.valueDataDim=s.valueIndex!=null?u.getDimension(s.valueIndex):s.valueDim,m.valueAxis=h.getAxis(e(p,m.valueDataDim)),m.baseAxis=h.getOtherAxis(m.valueAxis),m.baseDataDim=u.mapDimension(m.baseAxis.dim)):(m.baseAxis=p.getBaseAxis(),m.valueAxis=h.getOtherAxis(m.baseAxis),m.baseDataDim=u.mapDimension(m.baseAxis.dim),m.valueDataDim=u.mapDimension(m.valueAxis.dim)),m}function e(s,u){var h=s.getData(),p=h.dimensions;u=h.getDimension(u);for(var m=0;m<p.length;m++){var v=h.getDimensionInfo(p[m]);if(v.name===u)return v.coordDim}}function l(s,u){return s&&s.containData&&u.coord&&!g(u)?s.containData(u.coord):!0}function t(s,u,h,p){return p<2?s.coord&&s.coord[p]:s.value}function a(s,u,h){if(h==="average"){var p=0,m=0;return s.each(u,function(v,y){isNaN(v)||(p+=v,m++)}),p/m}else return h==="median"?s.getMedian(u):s.getDataExtent(u,!0)[h==="max"?1:0]}F.dataTransform=i,F.getAxisInfo=n,F.dataFilter=l,F.dimValueGetter=t,F.numCalculate=a},knOB:function(H,F,d){var O=d("bYtY"),x=d("hM6l");function C(S,g){x.call(this,"radius",S,g),this.type="category"}C.prototype={constructor:C,pointToData:function(S,g){return this.polar.pointToData(S,g)[this.dim==="radius"?0:1]},dataToRadius:x.prototype.dataToCoord,radiusToData:x.prototype.coordToData},O.inherits(C,x);var A=C;H.exports=A},ko1b:function(H,F,d){var O=d("bYtY"),x=d("T4UG"),C=d("Bsck"),A=d("Qxkt"),S=d("7aKB"),g=S.encodeHTML,f=S.addCommas,c=d("VaxA"),o=c.wrapTreePathInfo,r=x.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 t={name:e.name,children:e.data};i(t);var a=e.levels||[];a=e.levels=n(a,l);var s=O.map(a||[],function(p){return new A(p,this,l)},this),u=C.createTree(t,this,null,h);function h(p){p.wrapMethod("getItemModel",function(m,v){var y=u.getNodeByDataIndex(v),E=s[y.depth];return E&&(m.parentModel=E),m})}return u.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var l=this.getData(),t=this.getRawValue(e),a=O.isArray(t)?f(t[0]):f(t),s=l.getName(e);return g(s+": "+a)},getDataParams:function(e){var l=x.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(e);return l.treePathInfo=o(t,this),l},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},O.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var l=this._idIndexMap;l||(l=this._idIndexMap=O.createHashMap(),this._idIndexMapCount=0);var t=l.get(e);return t==null&&l.set(e,t=this._idIndexMapCount++),t},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 i(e){var l=0;O.each(e.children,function(a){i(a);var s=a.value;O.isArray(s)&&(s=s[0]),l+=s});var t=e.value;O.isArray(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=l),t<0&&(t=0),O.isArray(e.value)?e.value[0]=t:e.value=t}function n(e,l){var t=l.get("color");if(!t)return;e=e||[];var a;if(O.each(e,function(u){var h=new A(u),p=h.get("color");(h.get("itemStyle.color")||p&&p!=="none")&&(a=!0)}),!a){var s=e[0]||(e[0]={});s.color=t.slice()}return e}H.exports=r},kzFp:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O=F.pick=function(C,A){var S={};return A.forEach(function(g){S[g]=C[g]}),S}},kzvK:function(H,F,d){var O=d("sS/r"),x=O.extend({type:"timeline"});H.exports=x},"l+S1":function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="SearchOutlined";var f=F.a=x.forwardRef(g)},lE7J:function(H,F,d){var O=d("OELB"),x=O.round;function C(f,c,o,r){var i={},n=f[1]-f[0],e=i.interval=O.nice(n/c,!0);o!=null&&e<o&&(e=i.interval=o),r!=null&&e>r&&(e=i.interval=r);var l=i.intervalPrecision=A(e),t=i.niceTickExtent=[x(Math.ceil(f[0]/e)*e,l),x(Math.floor(f[1]/e)*e,l)];return g(t,f),i}function A(f){return O.getPrecisionSafe(f)+2}function S(f,c,o){f[c]=Math.max(Math.min(f[c],o[1]),o[0])}function g(f,c){!isFinite(f[0])&&(f[0]=c[0]),!isFinite(f[1])&&(f[1]=c[1]),S(f,0,c),S(f,1,c),f[0]>f[1]&&(f[0]=f[1])}F.intervalScaleNiceTicks=C,F.getIntervalPrecision=A,F.fixExtent=g},lELe:function(H,F,d){var O=d("bYtY");function x(C){var A=[];O.each(C.series,function(S){S&&S.type==="map"&&(A.push(S),S.map=S.map||S.mapType,O.defaults(S,S.mapLocation))})}H.exports=x},lLGD:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("nVfU"),A=C.layout,S=C.largeLayout;d("Wqna"),d("F7hV"),d("Z8zF"),d("Ae16"),O.registerLayout(O.PRIORITY.VISUAL.LAYOUT,x.curry(A,"bar")),O.registerLayout(O.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,S),O.registerVisual({seriesType:"bar",reset:function(g){g.getData().setVisual("legendSymbol","roundRect")}})},lNSK:function(H,F,d){"use strict";function O(ee){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(Ct){return typeof Ct}:O=function(Ct){return Ct&&typeof Symbol=="function"&&Ct.constructor===Symbol&&Ct!==Symbol.prototype?"symbol":typeof Ct},O(ee)}Object.defineProperty(F,"__esModule",{value:!0}),F.deflateInit=Xe,F.deflateInit2=Tt,F.deflateReset=tr,F.deflateResetKeep=Ht,F.deflateSetHeader=Mt,F.deflate=oe,F.deflateEnd=X,F.deflateSetDictionary=Be,F.deflateInfo=F.Z_DEFLATED=F.Z_UNKNOWN=F.Z_DEFAULT_STRATEGY=F.Z_FIXED=F.Z_RLE=F.Z_HUFFMAN_ONLY=F.Z_FILTERED=F.Z_DEFAULT_COMPRESSION=F.Z_BUF_ERROR=F.Z_DATA_ERROR=F.Z_STREAM_ERROR=F.Z_STREAM_END=F.Z_OK=F.Z_BLOCK=F.Z_FINISH=F.Z_FULL_FLUSH=F.Z_PARTIAL_FLUSH=F.Z_NO_FLUSH=void 0;var x=o(d("6BzB")),C=o(d("c5fP")),A=f(d("xlC8")),S=f(d("QV2g")),g=f(d("xSIq"));function f(ee){return ee&&ee.__esModule?ee:{default:ee}}function c(){if(typeof WeakMap!="function")return null;var ee=new WeakMap;return c=function(){return ee},ee}function o(ee){if(ee&&ee.__esModule)return ee;if(ee===null||O(ee)!=="object"&&typeof ee!="function")return{default:ee};var lt=c();if(lt&<.has(ee))return lt.get(ee);var Ct={},dt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _t in ee)if(Object.prototype.hasOwnProperty.call(ee,_t)){var ir=dt?Object.getOwnPropertyDescriptor(ee,_t):null;ir&&(ir.get||ir.set)?Object.defineProperty(Ct,_t,ir):Ct[_t]=ee[_t]}return Ct.default=ee,lt&<.set(ee,Ct),Ct}var r=0;F.Z_NO_FLUSH=r;var i=1;F.Z_PARTIAL_FLUSH=i;var n=3;F.Z_FULL_FLUSH=n;var e=4;F.Z_FINISH=e;var l=5;F.Z_BLOCK=l;var t=0;F.Z_OK=t;var a=1;F.Z_STREAM_END=a;var s=-2;F.Z_STREAM_ERROR=s;var u=-3;F.Z_DATA_ERROR=u;var h=-5;F.Z_BUF_ERROR=h;var p=-1;F.Z_DEFAULT_COMPRESSION=p;var m=1;F.Z_FILTERED=m;var v=2;F.Z_HUFFMAN_ONLY=v;var y=3;F.Z_RLE=y;var E=4;F.Z_FIXED=E;var T=0;F.Z_DEFAULT_STRATEGY=T;var b=2;F.Z_UNKNOWN=b;var w=8;F.Z_DEFLATED=w;var _=9,I=15,L=8,N=29,D=256,R=D+1+N,k=30,M=19,U=2*R+1,B=15,j=3,W=258,V=W+j+1,z=32,J=42,Z=69,de=73,ie=91,ve=103,xe=113,_e=666,Ue=1,fe=2,ke=3,se=4,te=3;function Ve(ee,lt){return ee.msg=g.default[lt],lt}function ae(ee){return(ee<<1)-(ee>4?9:0)}function Q(ee){for(var lt=ee.length;--lt>=0;)ee[lt]=0}function G(ee){var lt=ee.state,Ct=lt.pending;if(Ct>ee.avail_out&&(Ct=ee.avail_out),Ct===0)return;x.arraySet(ee.output,lt.pending_buf,lt.pending_out,Ct,ee.next_out),ee.next_out+=Ct,lt.pending_out+=Ct,ee.total_out+=Ct,ee.avail_out-=Ct,lt.pending-=Ct,lt.pending===0&&(lt.pending_out=0)}function Y(ee,lt){C._tr_flush_block(ee,ee.block_start>=0?ee.block_start:-1,ee.strstart-ee.block_start,lt),ee.block_start=ee.strstart,G(ee.strm)}function me(ee,lt){ee.pending_buf[ee.pending++]=lt}function ue(ee,lt){ee.pending_buf[ee.pending++]=lt>>>8&255,ee.pending_buf[ee.pending++]=lt&255}function Ce(ee,lt,Ct,dt){var _t=ee.avail_in;return _t>dt&&(_t=dt),_t===0?0:(ee.avail_in-=_t,x.arraySet(lt,ee.input,ee.next_in,_t,Ct),ee.state.wrap===1?ee.adler=(0,A.default)(ee.adler,lt,_t,Ct):ee.state.wrap===2&&(ee.adler=(0,S.default)(ee.adler,lt,_t,Ct)),ee.next_in+=_t,ee.total_in+=_t,_t)}function Ie(ee,lt){var Ct=ee.max_chain_length,dt=ee.strstart,_t,ir,$r=ee.prev_length,nr=ee.nice_match,lr=ee.strstart>ee.w_size-V?ee.strstart-(ee.w_size-V):0,zt=ee.window,Ut=ee.w_mask,st=ee.prev,Hr=ee.strstart+W,mn=zt[dt+$r-1],In=zt[dt+$r];ee.prev_length>=ee.good_match&&(Ct>>=2),nr>ee.lookahead&&(nr=ee.lookahead);do{if(_t=lt,zt[_t+$r]!==In||zt[_t+$r-1]!==mn||zt[_t]!==zt[dt]||zt[++_t]!==zt[dt+1])continue;dt+=2,_t++;do;while(zt[++dt]===zt[++_t]&&zt[++dt]===zt[++_t]&&zt[++dt]===zt[++_t]&&zt[++dt]===zt[++_t]&&zt[++dt]===zt[++_t]&&zt[++dt]===zt[++_t]&&zt[++dt]===zt[++_t]&&zt[++dt]===zt[++_t]&&dt<Hr);if(ir=W-(Hr-dt),dt=Hr-W,ir>$r){if(ee.match_start=lt,$r=ir,ir>=nr)break;mn=zt[dt+$r-1],In=zt[dt+$r]}}while((lt=st[lt&Ut])>lr&&--Ct!==0);return $r<=ee.lookahead?$r:ee.lookahead}function ce(ee){var lt=ee.w_size,Ct,dt,_t,ir,$r;do{if(ir=ee.window_size-ee.lookahead-ee.strstart,ee.strstart>=lt+(lt-V)){x.arraySet(ee.window,ee.window,lt,lt,0),ee.match_start-=lt,ee.strstart-=lt,ee.block_start-=lt,dt=ee.hash_size,Ct=dt;do _t=ee.head[--Ct],ee.head[Ct]=_t>=lt?_t-lt:0;while(--dt);dt=lt,Ct=dt;do _t=ee.prev[--Ct],ee.prev[Ct]=_t>=lt?_t-lt:0;while(--dt);ir+=lt}if(ee.strm.avail_in===0)break;if(dt=Ce(ee.strm,ee.window,ee.strstart+ee.lookahead,ir),ee.lookahead+=dt,ee.lookahead+ee.insert>=j)for($r=ee.strstart-ee.insert,ee.ins_h=ee.window[$r],ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[$r+1])&ee.hash_mask;ee.insert&&!(ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[$r+j-1])&ee.hash_mask,ee.prev[$r&ee.w_mask]=ee.head[ee.ins_h],ee.head[ee.ins_h]=$r,$r++,ee.insert--,ee.lookahead+ee.insert<j););}while(ee.lookahead<V&&ee.strm.avail_in!==0)}function Ae(ee,lt){var Ct=65535;for(Ct>ee.pending_buf_size-5&&(Ct=ee.pending_buf_size-5);;){if(ee.lookahead<=1){if(ce(ee),ee.lookahead===0&<===r)return Ue;if(ee.lookahead===0)break}ee.strstart+=ee.lookahead,ee.lookahead=0;var dt=ee.block_start+Ct;if((ee.strstart===0||ee.strstart>=dt)&&(ee.lookahead=ee.strstart-dt,ee.strstart=dt,Y(ee,!1),ee.strm.avail_out===0))return Ue;if(ee.strstart-ee.block_start>=ee.w_size-V&&(Y(ee,!1),ee.strm.avail_out===0))return Ue}return ee.insert=0,lt===e?(Y(ee,!0),ee.strm.avail_out===0?ke:se):(ee.strstart>ee.block_start&&(Y(ee,!1),ee.strm.avail_out===0),Ue)}function Te(ee,lt){for(var Ct,dt;;){if(ee.lookahead<V){if(ce(ee),ee.lookahead<V&<===r)return Ue;if(ee.lookahead===0)break}if(Ct=0,ee.lookahead>=j&&(ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[ee.strstart+j-1])&ee.hash_mask,Ct=ee.prev[ee.strstart&ee.w_mask]=ee.head[ee.ins_h],ee.head[ee.ins_h]=ee.strstart),Ct!==0&&ee.strstart-Ct<=ee.w_size-V&&(ee.match_length=Ie(ee,Ct)),ee.match_length>=j)if(dt=C._tr_tally(ee,ee.strstart-ee.match_start,ee.match_length-j),ee.lookahead-=ee.match_length,ee.match_length<=ee.max_lazy_match&&ee.lookahead>=j){ee.match_length--;do ee.strstart++,ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[ee.strstart+j-1])&ee.hash_mask,Ct=ee.prev[ee.strstart&ee.w_mask]=ee.head[ee.ins_h],ee.head[ee.ins_h]=ee.strstart;while(--ee.match_length!==0);ee.strstart++}else ee.strstart+=ee.match_length,ee.match_length=0,ee.ins_h=ee.window[ee.strstart],ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[ee.strstart+1])&ee.hash_mask;else dt=C._tr_tally(ee,0,ee.window[ee.strstart]),ee.lookahead--,ee.strstart++;if(dt&&(Y(ee,!1),ee.strm.avail_out===0))return Ue}return ee.insert=ee.strstart<j-1?ee.strstart:j-1,lt===e?(Y(ee,!0),ee.strm.avail_out===0?ke:se):ee.last_lit&&(Y(ee,!1),ee.strm.avail_out===0)?Ue:fe}function Ge(ee,lt){for(var Ct,dt,_t;;){if(ee.lookahead<V){if(ce(ee),ee.lookahead<V&<===r)return Ue;if(ee.lookahead===0)break}if(Ct=0,ee.lookahead>=j&&(ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[ee.strstart+j-1])&ee.hash_mask,Ct=ee.prev[ee.strstart&ee.w_mask]=ee.head[ee.ins_h],ee.head[ee.ins_h]=ee.strstart),ee.prev_length=ee.match_length,ee.prev_match=ee.match_start,ee.match_length=j-1,Ct!==0&&ee.prev_length<ee.max_lazy_match&&ee.strstart-Ct<=ee.w_size-V&&(ee.match_length=Ie(ee,Ct),ee.match_length<=5&&(ee.strategy===m||ee.match_length===j&&ee.strstart-ee.match_start>4096)&&(ee.match_length=j-1)),ee.prev_length>=j&&ee.match_length<=ee.prev_length){_t=ee.strstart+ee.lookahead-j,dt=C._tr_tally(ee,ee.strstart-1-ee.prev_match,ee.prev_length-j),ee.lookahead-=ee.prev_length-1,ee.prev_length-=2;do++ee.strstart<=_t&&(ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[ee.strstart+j-1])&ee.hash_mask,Ct=ee.prev[ee.strstart&ee.w_mask]=ee.head[ee.ins_h],ee.head[ee.ins_h]=ee.strstart);while(--ee.prev_length!==0);if(ee.match_available=0,ee.match_length=j-1,ee.strstart++,dt&&(Y(ee,!1),ee.strm.avail_out===0))return Ue}else if(ee.match_available){if(dt=C._tr_tally(ee,0,ee.window[ee.strstart-1]),dt&&Y(ee,!1),ee.strstart++,ee.lookahead--,ee.strm.avail_out===0)return Ue}else ee.match_available=1,ee.strstart++,ee.lookahead--}return ee.match_available&&(dt=C._tr_tally(ee,0,ee.window[ee.strstart-1]),ee.match_available=0),ee.insert=ee.strstart<j-1?ee.strstart:j-1,lt===e?(Y(ee,!0),ee.strm.avail_out===0?ke:se):ee.last_lit&&(Y(ee,!1),ee.strm.avail_out===0)?Ue:fe}function gt(ee,lt){for(var Ct,dt,_t,ir,$r=ee.window;;){if(ee.lookahead<=W){if(ce(ee),ee.lookahead<=W&<===r)return Ue;if(ee.lookahead===0)break}if(ee.match_length=0,ee.lookahead>=j&&ee.strstart>0&&(_t=ee.strstart-1,dt=$r[_t],dt===$r[++_t]&&dt===$r[++_t]&&dt===$r[++_t])){ir=ee.strstart+W;do;while(dt===$r[++_t]&&dt===$r[++_t]&&dt===$r[++_t]&&dt===$r[++_t]&&dt===$r[++_t]&&dt===$r[++_t]&&dt===$r[++_t]&&dt===$r[++_t]&&_t<ir);ee.match_length=W-(ir-_t),ee.match_length>ee.lookahead&&(ee.match_length=ee.lookahead)}if(ee.match_length>=j?(Ct=C._tr_tally(ee,1,ee.match_length-j),ee.lookahead-=ee.match_length,ee.strstart+=ee.match_length,ee.match_length=0):(Ct=C._tr_tally(ee,0,ee.window[ee.strstart]),ee.lookahead--,ee.strstart++),Ct&&(Y(ee,!1),ee.strm.avail_out===0))return Ue}return ee.insert=0,lt===e?(Y(ee,!0),ee.strm.avail_out===0?ke:se):ee.last_lit&&(Y(ee,!1),ee.strm.avail_out===0)?Ue:fe}function qe(ee,lt){for(var Ct;;){if(ee.lookahead===0&&(ce(ee),ee.lookahead===0)){if(lt===r)return Ue;break}if(ee.match_length=0,Ct=C._tr_tally(ee,0,ee.window[ee.strstart]),ee.lookahead--,ee.strstart++,Ct&&(Y(ee,!1),ee.strm.avail_out===0))return Ue}return ee.insert=0,lt===e?(Y(ee,!0),ee.strm.avail_out===0?ke:se):ee.last_lit&&(Y(ee,!1),ee.strm.avail_out===0)?Ue:fe}function Le(ee,lt,Ct,dt,_t){this.good_length=ee,this.max_lazy=lt,this.nice_length=Ct,this.max_chain=dt,this.func=_t}var Ot;Ot=[new Le(0,0,0,0,Ae),new Le(4,4,8,4,Te),new Le(4,5,16,8,Te),new Le(4,6,32,32,Te),new Le(4,4,16,16,Ge),new Le(8,16,32,32,Ge),new Le(8,16,128,128,Ge),new Le(8,32,128,256,Ge),new Le(32,128,258,1024,Ge),new Le(32,258,258,4096,Ge)];function $e(ee){ee.window_size=2*ee.w_size,Q(ee.head),ee.max_lazy_match=Ot[ee.level].max_lazy,ee.good_match=Ot[ee.level].good_length,ee.nice_match=Ot[ee.level].nice_length,ee.max_chain_length=Ot[ee.level].max_chain,ee.strstart=0,ee.block_start=0,ee.lookahead=0,ee.insert=0,ee.match_length=ee.prev_length=j-1,ee.match_available=0,ee.ins_h=0}function xt(){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 x.Buf16(U*2),this.dyn_dtree=new x.Buf16((2*k+1)*2),this.bl_tree=new x.Buf16((2*M+1)*2),Q(this.dyn_ltree),Q(this.dyn_dtree),Q(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new x.Buf16(B+1),this.heap=new x.Buf16(2*R+1),Q(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new x.Buf16(2*R+1),Q(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 Ht(ee){var lt;return!ee||!ee.state?Ve(ee,s):(ee.total_in=ee.total_out=0,ee.data_type=b,lt=ee.state,lt.pending=0,lt.pending_out=0,lt.wrap<0&&(lt.wrap=-lt.wrap),lt.status=lt.wrap?J:xe,ee.adler=lt.wrap===2?0:1,lt.last_flush=r,C._tr_init(lt),t)}function tr(ee){var lt=Ht(ee);return lt===t&&$e(ee.state),lt}function Mt(ee,lt){return!ee||!ee.state||ee.state.wrap!==2?s:(ee.state.gzhead=lt,t)}function Tt(ee,lt,Ct,dt,_t,ir){if(!ee)return s;var $r=1;if(lt===p&&(lt=6),dt<0?($r=0,dt=-dt):dt>15&&($r=2,dt-=16),_t<1||_t>_||Ct!==w||dt<8||dt>15||lt<0||lt>9||ir<0||ir>E)return Ve(ee,s);dt===8&&(dt=9);var nr=new xt;return ee.state=nr,nr.strm=ee,nr.wrap=$r,nr.gzhead=null,nr.w_bits=dt,nr.w_size=1<<nr.w_bits,nr.w_mask=nr.w_size-1,nr.hash_bits=_t+7,nr.hash_size=1<<nr.hash_bits,nr.hash_mask=nr.hash_size-1,nr.hash_shift=~~((nr.hash_bits+j-1)/j),nr.window=new x.Buf8(nr.w_size*2),nr.head=new x.Buf16(nr.hash_size),nr.prev=new x.Buf16(nr.w_size),nr.lit_bufsize=1<<_t+6,nr.pending_buf_size=nr.lit_bufsize*4,nr.pending_buf=new x.Buf8(nr.pending_buf_size),nr.d_buf=1*nr.lit_bufsize,nr.l_buf=(1+2)*nr.lit_bufsize,nr.level=lt,nr.strategy=ir,nr.method=Ct,tr(ee)}function Xe(ee,lt){return Tt(ee,lt,w,I,L,T)}function oe(ee,lt){var Ct,dt,_t,ir;if(!ee||!ee.state||lt>l||lt<0)return ee?Ve(ee,s):s;if(dt=ee.state,!ee.output||!ee.input&&ee.avail_in!==0||dt.status===_e&<!==e)return Ve(ee,ee.avail_out===0?h:s);if(dt.strm=ee,Ct=dt.last_flush,dt.last_flush=lt,dt.status===J)if(dt.wrap===2)ee.adler=0,me(dt,31),me(dt,139),me(dt,8),dt.gzhead?(me(dt,(dt.gzhead.text?1:0)+(dt.gzhead.hcrc?2:0)+(dt.gzhead.extra?4:0)+(dt.gzhead.name?8:0)+(dt.gzhead.comment?16:0)),me(dt,dt.gzhead.time&255),me(dt,dt.gzhead.time>>8&255),me(dt,dt.gzhead.time>>16&255),me(dt,dt.gzhead.time>>24&255),me(dt,dt.level===9?2:dt.strategy>=v||dt.level<2?4:0),me(dt,dt.gzhead.os&255),dt.gzhead.extra&&dt.gzhead.extra.length&&(me(dt,dt.gzhead.extra.length&255),me(dt,dt.gzhead.extra.length>>8&255)),dt.gzhead.hcrc&&(ee.adler=(0,S.default)(ee.adler,dt.pending_buf,dt.pending,0)),dt.gzindex=0,dt.status=Z):(me(dt,0),me(dt,0),me(dt,0),me(dt,0),me(dt,0),me(dt,dt.level===9?2:dt.strategy>=v||dt.level<2?4:0),me(dt,te),dt.status=xe);else{var $r=w+(dt.w_bits-8<<4)<<8,nr=-1;dt.strategy>=v||dt.level<2?nr=0:dt.level<6?nr=1:dt.level===6?nr=2:nr=3,$r|=nr<<6,dt.strstart!==0&&($r|=z),$r+=31-$r%31,dt.status=xe,ue(dt,$r),dt.strstart!==0&&(ue(dt,ee.adler>>>16),ue(dt,ee.adler&65535)),ee.adler=1}if(dt.status===Z)if(dt.gzhead.extra){for(_t=dt.pending;dt.gzindex<(dt.gzhead.extra.length&65535)&&!(dt.pending===dt.pending_buf_size&&(dt.gzhead.hcrc&&dt.pending>_t&&(ee.adler=(0,S.default)(ee.adler,dt.pending_buf,dt.pending-_t,_t)),G(ee),_t=dt.pending,dt.pending===dt.pending_buf_size));)me(dt,dt.gzhead.extra[dt.gzindex]&255),dt.gzindex++;dt.gzhead.hcrc&&dt.pending>_t&&(ee.adler=(0,S.default)(ee.adler,dt.pending_buf,dt.pending-_t,_t)),dt.gzindex===dt.gzhead.extra.length&&(dt.gzindex=0,dt.status=de)}else dt.status=de;if(dt.status===de)if(dt.gzhead.name){_t=dt.pending;do{if(dt.pending===dt.pending_buf_size&&(dt.gzhead.hcrc&&dt.pending>_t&&(ee.adler=(0,S.default)(ee.adler,dt.pending_buf,dt.pending-_t,_t)),G(ee),_t=dt.pending,dt.pending===dt.pending_buf_size)){ir=1;break}dt.gzindex<dt.gzhead.name.length?ir=dt.gzhead.name.charCodeAt(dt.gzindex++)&255:ir=0,me(dt,ir)}while(ir!==0);dt.gzhead.hcrc&&dt.pending>_t&&(ee.adler=(0,S.default)(ee.adler,dt.pending_buf,dt.pending-_t,_t)),ir===0&&(dt.gzindex=0,dt.status=ie)}else dt.status=ie;if(dt.status===ie)if(dt.gzhead.comment){_t=dt.pending;do{if(dt.pending===dt.pending_buf_size&&(dt.gzhead.hcrc&&dt.pending>_t&&(ee.adler=(0,S.default)(ee.adler,dt.pending_buf,dt.pending-_t,_t)),G(ee),_t=dt.pending,dt.pending===dt.pending_buf_size)){ir=1;break}dt.gzindex<dt.gzhead.comment.length?ir=dt.gzhead.comment.charCodeAt(dt.gzindex++)&255:ir=0,me(dt,ir)}while(ir!==0);dt.gzhead.hcrc&&dt.pending>_t&&(ee.adler=(0,S.default)(ee.adler,dt.pending_buf,dt.pending-_t,_t)),ir===0&&(dt.status=ve)}else dt.status=ve;if(dt.status===ve&&(dt.gzhead.hcrc?(dt.pending+2>dt.pending_buf_size&&G(ee),dt.pending+2<=dt.pending_buf_size&&(me(dt,ee.adler&255),me(dt,ee.adler>>8&255),ee.adler=0,dt.status=xe)):dt.status=xe),dt.pending!==0){if(G(ee),ee.avail_out===0)return dt.last_flush=-1,t}else if(ee.avail_in===0&&ae(lt)<=ae(Ct)&<!==e)return Ve(ee,h);if(dt.status===_e&&ee.avail_in!==0)return Ve(ee,h);if(ee.avail_in!==0||dt.lookahead!==0||lt!==r&&dt.status!==_e){var lr=dt.strategy===v?qe(dt,lt):dt.strategy===y?gt(dt,lt):Ot[dt.level].func(dt,lt);if((lr===ke||lr===se)&&(dt.status=_e),lr===Ue||lr===ke)return ee.avail_out===0&&(dt.last_flush=-1),t;if(lr===fe&&(lt===i?C._tr_align(dt):lt!==l&&(C._tr_stored_block(dt,0,0,!1),lt===n&&(Q(dt.head),dt.lookahead===0&&(dt.strstart=0,dt.block_start=0,dt.insert=0))),G(ee),ee.avail_out===0))return dt.last_flush=-1,t}return lt!==e?t:dt.wrap<=0?a:(dt.wrap===2?(me(dt,ee.adler&255),me(dt,ee.adler>>8&255),me(dt,ee.adler>>16&255),me(dt,ee.adler>>24&255),me(dt,ee.total_in&255),me(dt,ee.total_in>>8&255),me(dt,ee.total_in>>16&255),me(dt,ee.total_in>>24&255)):(ue(dt,ee.adler>>>16),ue(dt,ee.adler&65535)),G(ee),dt.wrap>0&&(dt.wrap=-dt.wrap),dt.pending!==0?t:a)}function X(ee){var lt;return!ee||!ee.state?s:(lt=ee.state.status,lt!==J&<!==Z&<!==de&<!==ie&<!==ve&<!==xe&<!==_e?Ve(ee,s):(ee.state=null,lt===xe?Ve(ee,u):t))}function Be(ee,lt){var Ct=lt.length,dt,_t,ir,$r,nr,lr,zt,Ut;if(!ee||!ee.state)return s;if(dt=ee.state,$r=dt.wrap,$r===2||$r===1&&dt.status!==J||dt.lookahead)return s;for($r===1&&(ee.adler=(0,A.default)(ee.adler,lt,Ct,0)),dt.wrap=0,Ct>=dt.w_size&&($r===0&&(Q(dt.head),dt.strstart=0,dt.block_start=0,dt.insert=0),Ut=new x.Buf8(dt.w_size),x.arraySet(Ut,lt,Ct-dt.w_size,dt.w_size,0),lt=Ut,Ct=dt.w_size),nr=ee.avail_in,lr=ee.next_in,zt=ee.input,ee.avail_in=Ct,ee.next_in=0,ee.input=lt,ce(dt);dt.lookahead>=j;){_t=dt.strstart,ir=dt.lookahead-(j-1);do dt.ins_h=(dt.ins_h<<dt.hash_shift^dt.window[_t+j-1])&dt.hash_mask,dt.prev[_t&dt.w_mask]=dt.head[dt.ins_h],dt.head[dt.ins_h]=_t,_t++;while(--ir);dt.strstart=_t,dt.lookahead=j-1,ce(dt)}return dt.strstart+=dt.lookahead,dt.block_start=dt.strstart,dt.insert=dt.lookahead,dt.lookahead=0,dt.match_length=dt.prev_length=j-1,dt.match_available=0,ee.next_in=lr,ee.input=zt,ee.avail_in=nr,dt.wrap=$r,t}var Ee="pako deflate (from Nodeca project)";F.deflateInfo=Ee},lOQZ:function(H,F,d){var O=d("QBsz"),x=d("U/Mo"),C=x.getSymbolSize,A=x.getNodeGlobalScale,S=Math.PI,g=[];function f(o,r){var i=o.coordinateSystem;if(i&&i.type!=="view")return;var n=i.getBoundingRect(),e=o.getData(),l=e.graph,t=n.width/2+n.x,a=n.height/2+n.y,s=Math.min(n.width,n.height)/2,u=e.count();if(e.setLayout({cx:t,cy:a}),!u)return;c[r](o,i,l,e,s,t,a,u),l.eachEdge(function(h){var p=h.getModel().get("lineStyle.curveness")||0,m=O.clone(h.node1.getLayout()),v=O.clone(h.node2.getLayout()),y,E=(m[0]+v[0])/2,T=(m[1]+v[1])/2;+p&&(p*=3,y=[t*p+E*(1-p),a*p+T*(1-p)]),h.setLayout([m,v,y])})}var c={value:function(o,r,i,n,e,l,t,a){var s=0,u=n.getSum("value"),h=Math.PI*2/(u||a);i.eachNode(function(p){var m=p.getValue("value"),v=h*(u?m:1)/2;s+=v,p.setLayout([e*Math.cos(s)+l,e*Math.sin(s)+t]),s+=v})},symbolSize:function(o,r,i,n,e,l,t,a){var s=0;g.length=a;var u=A(o);i.eachNode(function(m){var v=C(m);isNaN(v)&&(v=2),v<0&&(v=0),v*=u;var y=Math.asin(v/2/e);isNaN(y)&&(y=S/2),g[m.dataIndex]=y,s+=y*2});var h=(2*S-s)/a/2,p=0;i.eachNode(function(m){var v=h+g[m.dataIndex];p+=v,m.setLayout([e*Math.cos(p)+l,e*Math.sin(p)+t]),p+=v})}};F.circularLayout=f},lPiR:function(H,F,d){(function(O,x){H.exports=F=x(d("Ib8C"))})(this,function(O){return function(x){var C=O,A=C.lib,S=A.WordArray,g=A.Hasher,f=C.algo,c=[],o=[];(function(){function n(a){for(var s=x.sqrt(a),u=2;u<=s;u++)if(!(a%u))return!1;return!0}function e(a){return(a-(a|0))*4294967296|0}for(var l=2,t=0;t<64;)n(l)&&(t<8&&(c[t]=e(x.pow(l,1/2))),o[t]=e(x.pow(l,1/3)),t++),l++})();var r=[],i=f.SHA256=g.extend({_doReset:function(){this._hash=new S.init(c.slice(0))},_doProcessBlock:function(e,l){for(var t=this._hash.words,a=t[0],s=t[1],u=t[2],h=t[3],p=t[4],m=t[5],v=t[6],y=t[7],E=0;E<64;E++){if(E<16)r[E]=e[l+E]|0;else{var T=r[E-15],b=(T<<25|T>>>7)^(T<<14|T>>>18)^T>>>3,w=r[E-2],_=(w<<15|w>>>17)^(w<<13|w>>>19)^w>>>10;r[E]=b+r[E-7]+_+r[E-16]}var I=p&m^~p&v,L=a&s^a&u^s&u,N=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),D=(p<<26|p>>>6)^(p<<21|p>>>11)^(p<<7|p>>>25),R=y+D+I+o[E]+r[E],k=N+L;y=v,v=m,m=p,p=h+R|0,h=u,u=s,s=a,a=R+k|0}t[0]=t[0]+a|0,t[1]=t[1]+s|0,t[2]=t[2]+u|0,t[3]=t[3]+h|0,t[4]=t[4]+p|0,t[5]=t[5]+m|0,t[6]=t[6]+v|0,t[7]=t[7]+y|0},_doFinalize:function(){var e=this._data,l=e.words,t=this._nDataBytes*8,a=e.sigBytes*8;return l[a>>>5]|=128<<24-a%32,l[(a+64>>>9<<4)+14]=x.floor(t/4294967296),l[(a+64>>>9<<4)+15]=t,e.sigBytes=l.length*4,this._process(),this._hash},clone:function(){var e=g.clone.call(this);return e._hash=this._hash.clone(),e}});C.SHA256=g._createHelper(i),C.HmacSHA256=g._createHmacHelper(i)}(Math),O.SHA256})},lUTK:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("x54q"),A=d.n(C),S=d("5Dmo")},lZu9:function(H,F,d){(function(O){O(d("VrN/"),d("1eCo"),d("8EBN"))})(function(O){"use strict";O.defineMode("markdown",function(x,C){var A=O.getMode(x,"text/html"),S=A.name=="null";function g(B){if(O.findModeByName){var j=O.findModeByName(B);j&&(B=j.mime||j.mimes[0])}var W=O.getMode(x,B);return W.name=="null"?null:W}C.highlightFormatting===void 0&&(C.highlightFormatting=!1),C.maxBlockquoteDepth===void 0&&(C.maxBlockquoteDepth=0),C.taskLists===void 0&&(C.taskLists=!1),C.strikethrough===void 0&&(C.strikethrough=!1),C.emoji===void 0&&(C.emoji=!1),C.fencedCodeBlockHighlighting===void 0&&(C.fencedCodeBlockHighlighting=!0),C.fencedCodeBlockDefaultMode===void 0&&(C.fencedCodeBlockDefaultMode="text/plain"),C.xml===void 0&&(C.xml=!0),C.tokenTypeOverrides===void 0&&(C.tokenTypeOverrides={});var f={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 c in f)f.hasOwnProperty(c)&&C.tokenTypeOverrides[c]&&(f[c]=C.tokenTypeOverrides[c]);var o=/^([*\-_])(?:\s*\1){2,}\s*$/,r=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,i=/^\[(x| )\](?=\s)/i,n=C.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,e=/^ {0,3}(?:\={1,}|-{2,})\s*$/,l=/^[^#!\[\]*_\\<>` "'(~:]+/,t=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,a=/^\s*\[[^\]]+?\]:.*$/,s=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,u=" ";function h(B,j,W){return j.f=j.inline=W,W(B,j)}function p(B,j,W){return j.f=j.block=W,W(B,j)}function m(B){return!B||!/\S/.test(B.string)}function v(B){if(B.linkTitle=!1,B.linkHref=!1,B.linkText=!1,B.em=!1,B.strong=!1,B.strikethrough=!1,B.quote=0,B.indentedCode=!1,B.f==E){var j=S;if(!j){var W=O.innerMode(A,B.htmlState);j=W.mode.name=="xml"&&W.state.tagStart===null&&!W.state.context&&W.state.tokenize.isInText}j&&(B.f=_,B.block=y,B.htmlState=null)}return B.trailingSpace=0,B.trailingSpaceNewLine=!1,B.prevLine=B.thisLine,B.thisLine={stream:null},null}function y(B,j){var W=B.column()===j.indentation,V=m(j.prevLine.stream),z=j.indentedCode,J=j.prevLine.hr,Z=j.list!==!1,de=(j.listStack[j.listStack.length-1]||0)+3;j.indentedCode=!1;var ie=j.indentation;if(j.indentationDiff===null&&(j.indentationDiff=j.indentation,Z)){for(j.list=null;ie<j.listStack[j.listStack.length-1];)j.listStack.pop(),j.listStack.length?j.indentation=j.listStack[j.listStack.length-1]:j.list=!1;j.list!==!1&&(j.indentationDiff=ie-j.listStack[j.listStack.length-1])}var ve=!V&&!J&&!j.prevLine.header&&(!Z||!z)&&!j.prevLine.fencedCodeEnd,xe=(j.list===!1||J||V)&&j.indentation<=de&&B.match(o),_e=null;if(j.indentationDiff>=4&&(z||j.prevLine.fencedCodeEnd||j.prevLine.header||V))return B.skipToEnd(),j.indentedCode=!0,f.code;if(B.eatSpace())return null;if(W&&j.indentation<=de&&(_e=B.match(n))&&_e[1].length<=6)return j.quote=0,j.header=_e[1].length,j.thisLine.header=!0,C.highlightFormatting&&(j.formatting="header"),j.f=j.inline,b(j);if(j.indentation<=de&&B.eat(">"))return j.quote=W?1:j.quote+1,C.highlightFormatting&&(j.formatting="quote"),B.eatSpace(),b(j);if(!xe&&!j.setext&&W&&j.indentation<=de&&(_e=B.match(r))){var Ue=_e[1]?"ol":"ul";return j.indentation=ie+B.current().length,j.list=!0,j.quote=0,j.listStack.push(j.indentation),j.em=!1,j.strong=!1,j.code=!1,j.strikethrough=!1,C.taskLists&&B.match(i,!1)&&(j.taskList=!0),j.f=j.inline,C.highlightFormatting&&(j.formatting=["list","list-"+Ue]),b(j)}else{if(W&&j.indentation<=de&&(_e=B.match(t,!0)))return j.quote=0,j.fencedEndRE=new RegExp(_e[1]+"+ *$"),j.localMode=C.fencedCodeBlockHighlighting&&g(_e[2]||C.fencedCodeBlockDefaultMode),j.localMode&&(j.localState=O.startState(j.localMode)),j.f=j.block=T,C.highlightFormatting&&(j.formatting="code-block"),j.code=-1,b(j);if(j.setext||(!ve||!Z)&&!j.quote&&j.list===!1&&!j.code&&!xe&&!a.test(B.string)&&(_e=B.lookAhead(1))&&(_e=_e.match(e)))return j.setext?(j.header=j.setext,j.setext=0,B.skipToEnd(),C.highlightFormatting&&(j.formatting="header")):(j.header=_e[0].charAt(0)=="="?1:2,j.setext=j.header),j.thisLine.header=!0,j.f=j.inline,b(j);if(xe)return B.skipToEnd(),j.hr=!0,j.thisLine.hr=!0,f.hr;if(B.peek()==="[")return h(B,j,R)}return h(B,j,j.inline)}function E(B,j){var W=A.token(B,j.htmlState);if(!S){var V=O.innerMode(A,j.htmlState);(V.mode.name=="xml"&&V.state.tagStart===null&&!V.state.context&&V.state.tokenize.isInText||j.md_inside&&B.current().indexOf(">")>-1)&&(j.f=_,j.block=y,j.htmlState=null)}return W}function T(B,j){var W=j.listStack[j.listStack.length-1]||0,V=j.indentation<W,z=W+3;if(j.fencedEndRE&&j.indentation<=z&&(V||B.match(j.fencedEndRE))){C.highlightFormatting&&(j.formatting="code-block");var J;return V||(J=b(j)),j.localMode=j.localState=null,j.block=y,j.f=_,j.fencedEndRE=null,j.code=0,j.thisLine.fencedCodeEnd=!0,V?p(B,j,j.block):J}else return j.localMode?j.localMode.token(B,j.localState):(B.skipToEnd(),f.code)}function b(B){var j=[];if(B.formatting){j.push(f.formatting),typeof B.formatting=="string"&&(B.formatting=[B.formatting]);for(var W=0;W<B.formatting.length;W++)j.push(f.formatting+"-"+B.formatting[W]),B.formatting[W]==="header"&&j.push(f.formatting+"-"+B.formatting[W]+"-"+B.header),B.formatting[W]==="quote"&&(!C.maxBlockquoteDepth||C.maxBlockquoteDepth>=B.quote?j.push(f.formatting+"-"+B.formatting[W]+"-"+B.quote):j.push("error"))}if(B.taskOpen)return j.push("meta"),j.length?j.join(" "):null;if(B.taskClosed)return j.push("property"),j.length?j.join(" "):null;if(B.linkHref?j.push(f.linkHref,"url"):(B.strong&&j.push(f.strong),B.em&&j.push(f.em),B.strikethrough&&j.push(f.strikethrough),B.emoji&&j.push(f.emoji),B.linkText&&j.push(f.linkText),B.code&&j.push(f.code),B.image&&j.push(f.image),B.imageAltText&&j.push(f.imageAltText,"link"),B.imageMarker&&j.push(f.imageMarker)),B.header&&j.push(f.header,f.header+"-"+B.header),B.quote&&(j.push(f.quote),!C.maxBlockquoteDepth||C.maxBlockquoteDepth>=B.quote?j.push(f.quote+"-"+B.quote):j.push(f.quote+"-"+C.maxBlockquoteDepth)),B.list!==!1){var V=(B.listStack.length-1)%3;V?V===1?j.push(f.list2):j.push(f.list3):j.push(f.list1)}return B.trailingSpaceNewLine?j.push("trailing-space-new-line"):B.trailingSpace&&j.push("trailing-space-"+(B.trailingSpace%2?"a":"b")),j.length?j.join(" "):null}function w(B,j){return B.match(l,!0)?b(j):void 0}function _(B,j){var W=j.text(B,j);if(typeof W!="undefined")return W;if(j.list)return j.list=null,b(j);if(j.taskList){var V=B.match(i,!0)[1]===" ";return V?j.taskOpen=!0:j.taskClosed=!0,C.highlightFormatting&&(j.formatting="task"),j.taskList=!1,b(j)}if(j.taskOpen=!1,j.taskClosed=!1,j.header&&B.match(/^#+$/,!0))return C.highlightFormatting&&(j.formatting="header"),b(j);var z=B.next();if(j.linkTitle){j.linkTitle=!1;var J=z;z==="("&&(J=")"),J=(J+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Z="^\\s*(?:[^"+J+"\\\\]+|\\\\\\\\|\\\\.)"+J;if(B.match(new RegExp(Z),!0))return f.linkHref}if(z==="`"){var de=j.formatting;C.highlightFormatting&&(j.formatting="code"),B.eatWhile("`");var ie=B.current().length;if(j.code==0&&(!j.quote||ie==1))return j.code=ie,b(j);if(ie==j.code){var ve=b(j);return j.code=0,ve}else return j.formatting=de,b(j)}else if(j.code)return b(j);if(z==="\\"&&(B.next(),C.highlightFormatting)){var xe=b(j),_e=f.formatting+"-escape";return xe?xe+" "+_e:_e}if(z==="!"&&B.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return j.imageMarker=!0,j.image=!0,C.highlightFormatting&&(j.formatting="image"),b(j);if(z==="["&&j.imageMarker&&B.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return j.imageMarker=!1,j.imageAltText=!0,C.highlightFormatting&&(j.formatting="image"),b(j);if(z==="]"&&j.imageAltText){C.highlightFormatting&&(j.formatting="image");var xe=b(j);return j.imageAltText=!1,j.image=!1,j.inline=j.f=L,xe}if(z==="["&&!j.image)return j.linkText&&B.match(/^.*?\]/)||(j.linkText=!0,C.highlightFormatting&&(j.formatting="link")),b(j);if(z==="]"&&j.linkText){C.highlightFormatting&&(j.formatting="link");var xe=b(j);return j.linkText=!1,j.inline=j.f=B.match(/\(.*?\)| ?\[.*?\]/,!1)?L:_,xe}if(z==="<"&&B.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){j.f=j.inline=I,C.highlightFormatting&&(j.formatting="link");var xe=b(j);return xe?xe+=" ":xe="",xe+f.linkInline}if(z==="<"&&B.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){j.f=j.inline=I,C.highlightFormatting&&(j.formatting="link");var xe=b(j);return xe?xe+=" ":xe="",xe+f.linkEmail}if(C.xml&&z==="<"&&B.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ue=B.string.indexOf(">",B.pos);if(Ue!=-1){var fe=B.string.substring(B.start,Ue);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(fe)&&(j.md_inside=!0)}return B.backUp(1),j.htmlState=O.startState(A),p(B,j,E)}if(C.xml&&z==="<"&&B.match(/^\/\w*?>/))return j.md_inside=!1,"tag";if(z==="*"||z==="_"){for(var ke=1,se=B.pos==1?" ":B.string.charAt(B.pos-2);ke<3&&B.eat(z);)ke++;var te=B.peek()||" ",Ve=!/\s/.test(te)&&(!s.test(te)||/\s/.test(se)||s.test(se)),ae=!/\s/.test(se)&&(!s.test(se)||/\s/.test(te)||s.test(te)),Q=null,G=null;if(ke%2&&(!j.em&&Ve&&(z==="*"||!ae||s.test(se))?Q=!0:j.em==z&&ae&&(z==="*"||!Ve||s.test(te))&&(Q=!1)),ke>1&&(!j.strong&&Ve&&(z==="*"||!ae||s.test(se))?G=!0:j.strong==z&&ae&&(z==="*"||!Ve||s.test(te))&&(G=!1)),G!=null||Q!=null){C.highlightFormatting&&(j.formatting=Q==null?"strong":G==null?"em":"strong em"),Q===!0&&(j.em=z),G===!0&&(j.strong=z);var ve=b(j);return Q===!1&&(j.em=!1),G===!1&&(j.strong=!1),ve}}else if(z===" "&&(B.eat("*")||B.eat("_"))){if(B.peek()===" ")return b(j);B.backUp(1)}if(C.strikethrough){if(z==="~"&&B.eatWhile(z)){if(j.strikethrough){C.highlightFormatting&&(j.formatting="strikethrough");var ve=b(j);return j.strikethrough=!1,ve}else if(B.match(/^[^\s]/,!1))return j.strikethrough=!0,C.highlightFormatting&&(j.formatting="strikethrough"),b(j)}else if(z===" "&&B.match(/^~~/,!0)){if(B.peek()===" ")return b(j);B.backUp(2)}}if(C.emoji&&z===":"&&B.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){j.emoji=!0,C.highlightFormatting&&(j.formatting="emoji");var Y=b(j);return j.emoji=!1,Y}return z===" "&&(B.match(/^ +$/,!1)?j.trailingSpace++:j.trailingSpace&&(j.trailingSpaceNewLine=!0)),b(j)}function I(B,j){var W=B.next();if(W===">"){j.f=j.inline=_,C.highlightFormatting&&(j.formatting="link");var V=b(j);return V?V+=" ":V="",V+f.linkInline}return B.match(/^[^>]+/,!0),f.linkInline}function L(B,j){if(B.eatSpace())return null;var W=B.next();return W==="("||W==="["?(j.f=j.inline=D(W==="("?")":"]"),C.highlightFormatting&&(j.formatting="link-string"),j.linkHref=!0,b(j)):"error"}var N={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function D(B){return function(j,W){var V=j.next();if(V===B){W.f=W.inline=_,C.highlightFormatting&&(W.formatting="link-string");var z=b(W);return W.linkHref=!1,z}return j.match(N[B]),W.linkHref=!0,b(W)}}function R(B,j){return B.match(/^([^\]\\]|\\.)*\]:/,!1)?(j.f=k,B.next(),C.highlightFormatting&&(j.formatting="link"),j.linkText=!0,b(j)):h(B,j,_)}function k(B,j){if(B.match(/^\]:/,!0)){j.f=j.inline=M,C.highlightFormatting&&(j.formatting="link");var W=b(j);return j.linkText=!1,W}return B.match(/^([^\]\\]|\\.)+/,!0),f.linkText}function M(B,j){return B.eatSpace()?null:(B.match(/^[^\s]+/,!0),B.peek()===void 0?j.linkTitle=!0:B.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),j.f=j.inline=_,f.linkHref+" url")}var U={startState:function(){return{f:y,prevLine:{stream:null},thisLine:{stream:null},block:y,htmlState:null,indentation:0,inline:_,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(j){return{f:j.f,prevLine:j.prevLine,thisLine:j.thisLine,block:j.block,htmlState:j.htmlState&&O.copyState(A,j.htmlState),indentation:j.indentation,localMode:j.localMode,localState:j.localMode?O.copyState(j.localMode,j.localState):null,inline:j.inline,text:j.text,formatting:!1,linkText:j.linkText,linkTitle:j.linkTitle,linkHref:j.linkHref,code:j.code,em:j.em,strong:j.strong,strikethrough:j.strikethrough,emoji:j.emoji,header:j.header,setext:j.setext,hr:j.hr,taskList:j.taskList,list:j.list,listStack:j.listStack.slice(0),quote:j.quote,indentedCode:j.indentedCode,trailingSpace:j.trailingSpace,trailingSpaceNewLine:j.trailingSpaceNewLine,md_inside:j.md_inside,fencedEndRE:j.fencedEndRE}},token:function(j,W){if(W.formatting=!1,j!=W.thisLine.stream){if(W.header=0,W.hr=!1,j.match(/^\s*$/,!0))return v(W),null;if(W.prevLine=W.thisLine,W.thisLine={stream:j},W.taskList=!1,W.trailingSpace=0,W.trailingSpaceNewLine=!1,!W.localState&&(W.f=W.block,W.f!=E)){var V=j.match(/^\s*/,!0)[0].replace(/\t/g,u).length;if(W.indentation=V,W.indentationDiff=null,V>0)return null}}return W.f(j,W)},innerMode:function(j){return j.block==E?{state:j.htmlState,mode:A}:j.localState?{state:j.localState,mode:j.localMode}:{state:j,mode:U}},indent:function(j,W,V){return j.block==E&&A.indent?A.indent(j.htmlState,W,V):j.localState&&j.localMode.indent?j.localMode.indent(j.localState,W,V):O.Pass},blankLine:v,getType:b,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return U},"xml"),O.defineMIME("text/markdown","markdown"),O.defineMIME("text/x-markdown","markdown")})},laiN:function(H,F,d){var O=d("ProS");d("GVMX"),d("MH26"),O.registerPreprocessor(function(x){x.markLine=x.markLine||{}})},lnY3:function(H,F,d){},loD1:function(H,F){function d(O,x,C,A,S,g,f){if(S===0)return!1;var c=S,o=0,r=O;if(f>x+c&&f>A+c||f<x-c&&f<A-c||g>O+c&&g>C+c||g<O-c&&g<C-c)return!1;if(O!==C)o=(x-A)/(O-C),r=(O*A-C*x)/(O-C);else return Math.abs(g-O)<=c/2;var i=o*g-f+r,n=i*i/(o*o+1);return n<=c/2*c/2}F.containStroke=d},lr6o:function(H,F,d){"use strict";var O=d("rePB"),x=d("Ff2n"),C=d("VTBJ"),A=d("1OyB"),S=d("vuIU"),g=d("JX7q"),f=d("Ji7U"),c=d("LK+K"),o=d("q1tI"),r=d("TSYQ"),i=d.n(r),n=d("FTAc"),e=d("wPhX"),l=function(E){var T=E.prefixCls,b=E.level,w=E.isStart,_=E.isEnd;if(!b)return null;for(var I="".concat(T,"-indent-unit"),L=[],N=0;N<b;N+=1){var D;L.push(o.createElement("span",{key:N,className:i()(I,(D={},Object(O.a)(D,"".concat(I,"-start"),w[N+1]),Object(O.a)(D,"".concat(I,"-end"),_[N+1]),Object(O.a)(D,"".concat(I,"-end-first-level"),!N&&_[0]),D))}))}return o.createElement("span",{"aria-hidden":"true",className:"".concat(T,"-indent")},L)},t=l,a=d("c3jg"),s="open",u="close",h="---",p=function(y){Object(f.a)(T,y);var E=Object(c.a)(T);function T(){var b;return Object(A.a)(this,T),b=E.apply(this,arguments),b.state={dragNodeHighlight:!1},b.onSelectorClick=function(w){var _=b.props.context.onNodeClick;_(w,Object(a.b)(b.props)),b.isSelectable()?b.onSelect(w):b.onCheck(w)},b.onSelectorDoubleClick=function(w){var _=b.props.context.onNodeDoubleClick;_(w,Object(a.b)(b.props))},b.onSelect=function(w){if(b.isDisabled())return;var _=b.props.context.onNodeSelect;w.preventDefault(),_(w,Object(a.b)(b.props))},b.onCheck=function(w){if(b.isDisabled())return;var _=b.props,I=_.disableCheckbox,L=_.checked,N=b.props.context.onNodeCheck;if(!b.isCheckable()||I)return;w.preventDefault();var D=!L;N(w,Object(a.b)(b.props),D)},b.onMouseEnter=function(w){var _=b.props.context.onNodeMouseEnter;_(w,Object(a.b)(b.props))},b.onMouseLeave=function(w){var _=b.props.context.onNodeMouseLeave;_(w,Object(a.b)(b.props))},b.onContextMenu=function(w){var _=b.props.context.onNodeContextMenu;_(w,Object(a.b)(b.props))},b.onDragStart=function(w){var _=b.props.context.onNodeDragStart;w.stopPropagation(),b.setState({dragNodeHighlight:!0}),_(w,Object(g.a)(b));try{w.dataTransfer.setData("text/plain","")}catch(I){}},b.onDragEnter=function(w){var _=b.props.context.onNodeDragEnter;w.preventDefault(),w.stopPropagation(),_(w,Object(g.a)(b))},b.onDragOver=function(w){var _=b.props.context.onNodeDragOver;w.preventDefault(),w.stopPropagation(),_(w,Object(g.a)(b))},b.onDragLeave=function(w){var _=b.props.context.onNodeDragLeave;w.stopPropagation(),_(w,Object(g.a)(b))},b.onDragEnd=function(w){var _=b.props.context.onNodeDragEnd;w.stopPropagation(),b.setState({dragNodeHighlight:!1}),_(w,Object(g.a)(b))},b.onDrop=function(w){var _=b.props.context.onNodeDrop;w.preventDefault(),w.stopPropagation(),b.setState({dragNodeHighlight:!1}),_(w,Object(g.a)(b))},b.onExpand=function(w){var _=b.props.context.onNodeExpand;_(w,Object(a.b)(b.props))},b.setSelectHandle=function(w){b.selectHandle=w},b.getNodeState=function(){var w=b.props.expanded;return b.isLeaf()?null:w?s:u},b.hasChildren=function(){var w=b.props.eventKey,_=b.props.context.keyEntities,I=_[w]||{},L=I.children;return!!(L||[]).length},b.isLeaf=function(){var w=b.props,_=w.isLeaf,I=w.loaded,L=b.props.context.loadData,N=b.hasChildren();return _===!1?!1:_||!L&&!N||L&&I&&!N},b.isDisabled=function(){var w=b.props.disabled,_=b.props.context.disabled;return!!(_||w)},b.isCheckable=function(){var w=b.props.checkable,_=b.props.context.checkable;return!_||w===!1?!1:_},b.syncLoadData=function(w){var _=w.expanded,I=w.loading,L=w.loaded,N=b.props.context,D=N.loadData,R=N.onNodeLoad;if(I)return;D&&_&&!b.isLeaf()&&(!b.hasChildren()&&!L&&R(Object(a.b)(b.props)))},b.renderSwitcher=function(){var w=b.props,_=w.expanded,I=w.switcherIcon,L=b.props.context,N=L.prefixCls,D=L.switcherIcon,R=I||D;if(b.isLeaf())return o.createElement("span",{className:i()("".concat(N,"-switcher"),"".concat(N,"-switcher-noop"))},typeof R=="function"?R(Object(C.a)(Object(C.a)({},b.props),{},{isLeaf:!0})):R);var k=i()("".concat(N,"-switcher"),"".concat(N,"-switcher_").concat(_?s:u));return o.createElement("span",{onClick:b.onExpand,className:k},typeof R=="function"?R(Object(C.a)(Object(C.a)({},b.props),{},{isLeaf:!1})):R)},b.renderCheckbox=function(){var w=b.props,_=w.checked,I=w.halfChecked,L=w.disableCheckbox,N=b.props.context.prefixCls,D=b.isDisabled(),R=b.isCheckable();if(!R)return null;var k=typeof R!="boolean"?R:null;return o.createElement("span",{className:i()("".concat(N,"-checkbox"),_&&"".concat(N,"-checkbox-checked"),!_&&I&&"".concat(N,"-checkbox-indeterminate"),(D||L)&&"".concat(N,"-checkbox-disabled")),onClick:b.onCheck},k)},b.renderIcon=function(){var w=b.props.loading,_=b.props.context.prefixCls;return o.createElement("span",{className:i()("".concat(_,"-iconEle"),"".concat(_,"-icon__").concat(b.getNodeState()||"docu"),w&&"".concat(_,"-icon_loading"))})},b.renderSelector=function(){var w=b.state.dragNodeHighlight,_=b.props,I=_.title,L=_.selected,N=_.icon,D=_.loading,R=_.data,k=b.props.context,M=k.prefixCls,U=k.showIcon,B=k.icon,j=k.draggable,W=k.loadData,V=k.titleRender,z=b.isDisabled(),J="".concat(M,"-node-content-wrapper"),Z;if(U){var de=N||B;Z=de?o.createElement("span",{className:i()("".concat(M,"-iconEle"),"".concat(M,"-icon__customize"))},typeof de=="function"?de(b.props):de):b.renderIcon()}else W&&D&&(Z=b.renderIcon());var ie;typeof I=="function"?ie=I(R):V?ie=V(R):ie=I;var ve=o.createElement("span",{className:"".concat(M,"-title")},ie);return o.createElement("span",{ref:b.setSelectHandle,title:typeof I=="string"?I:"",className:i()("".concat(J),"".concat(J,"-").concat(b.getNodeState()||"normal"),!z&&(L||w)&&"".concat(M,"-node-selected"),!z&&j&&"draggable"),draggable:!z&&j||void 0,"aria-grabbed":!z&&j||void 0,onMouseEnter:b.onMouseEnter,onMouseLeave:b.onMouseLeave,onContextMenu:b.onContextMenu,onClick:b.onSelectorClick,onDoubleClick:b.onSelectorDoubleClick,onDragStart:j?b.onDragStart:void 0},Z,ve)},b}return Object(S.a)(T,[{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,_=this.props.context.selectable;return typeof w=="boolean"?w:_}},{key:"render",value:function(){var w,_=this.props,I=_.eventKey,L=_.className,N=_.style,D=_.dragOver,R=_.dragOverGapTop,k=_.dragOverGapBottom,M=_.isLeaf,U=_.isStart,B=_.isEnd,j=_.expanded,W=_.selected,V=_.checked,z=_.halfChecked,J=_.loading,Z=_.domRef,de=_.active,ie=_.onMouseMove,ve=Object(x.a)(_,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),xe=this.props.context,_e=xe.prefixCls,Ue=xe.filterTreeNode,fe=xe.draggable,ke=xe.keyEntities,se=this.isDisabled(),te=Object(e.f)(ve),Ve=ke[I]||{},ae=Ve.level,Q=B[B.length-1];return o.createElement("div",Object.assign({ref:Z,className:i()(L,"".concat(_e,"-treenode"),(w={},Object(O.a)(w,"".concat(_e,"-treenode-disabled"),se),Object(O.a)(w,"".concat(_e,"-treenode-switcher-").concat(j?"open":"close"),!M),Object(O.a)(w,"".concat(_e,"-treenode-checkbox-checked"),V),Object(O.a)(w,"".concat(_e,"-treenode-checkbox-indeterminate"),z),Object(O.a)(w,"".concat(_e,"-treenode-selected"),W),Object(O.a)(w,"".concat(_e,"-treenode-loading"),J),Object(O.a)(w,"".concat(_e,"-treenode-active"),de),Object(O.a)(w,"".concat(_e,"-treenode-leaf-last"),Q),Object(O.a)(w,"drag-over",!se&&D),Object(O.a)(w,"drag-over-gap-top",!se&&R),Object(O.a)(w,"drag-over-gap-bottom",!se&&k),Object(O.a)(w,"filter-node",Ue&&Ue(Object(a.b)(this.props))),w)),style:N,onDragEnter:fe?this.onDragEnter:void 0,onDragOver:fe?this.onDragOver:void 0,onDragLeave:fe?this.onDragLeave:void 0,onDrop:fe?this.onDrop:void 0,onDragEnd:fe?this.onDragEnd:void 0,onMouseMove:ie},te),o.createElement(t,{prefixCls:_e,level:ae,isStart:U,isEnd:B}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),T}(o.Component),m=function(E){return o.createElement(n.a.Consumer,null,function(T){return o.createElement(p,Object.assign({},E,{context:T}))})};m.displayName="TreeNode",m.defaultProps={title:h},m.isTreeNode=1;var v=F.a=m},lrIw:function(H,F,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("cDf5"),A=d.n(C),S=d("J4zp"),g=d.n(S),f=d("q1tI"),c=d.n(f),o=d("Zm9Q"),r=d("TSYQ"),i=d.n(r),n=d("BGR+"),e=d("2fM7"),l=d("H84U"),t=d("uaoM"),a=d("0n0R"),s=e.a.Option,u=e.a;function h(v){return v&&v.type&&(v.type.isSelectOption||v.type.isSelectOptGroup)}var p=function(y,E){var T=y.prefixCls,b=y.className,w=y.children,_=y.dataSource,I=Object(o.a)(w),L=f.useRef();f.useImperativeHandle(E,function(){return L.current});var N;if(I.length===1&&Object(a.b)(I[0])&&!h(I[0])){var D=g()(I,1);N=D[0]}var R=function(){return N},k;return I.length&&h(I[0])?k=w:k=_?_.map(function(M){if(Object(a.b)(M))return M;switch(A()(M)){case"string":return f.createElement(s,{key:M,value:M},M);case"object":{var U=M.value;return f.createElement(s,{key:U,value:U},M.text)}default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[],f.useEffect(function(){Object(t.a)(!("dataSource"in y),"AutoComplete","`dataSource` is deprecated, please use `options` instead."),Object(t.a)(!N||!("size"in y),"AutoComplete","You need to control style self instead of setting `size` when using customize input.")},[]),f.createElement(l.a,null,function(M){var U=M.getPrefixCls,B=U("select",T);return f.createElement(u,x()({ref:L},Object(n.default)(y,["dataSource"]),{prefixCls:B,className:i()(b,"".concat(B,"-auto-complete")),mode:e.a.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:R}),k)})},m=f.forwardRef(p);m.Option=s,F.a=m},lwQL:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("9wZj"),A=d("c8qY"),S=d("SgGq"),g=d("Ae+d"),f=d("xSat"),c=f.onIrrelevantElement,o=d("IwbS"),r=d("SA8n"),i=d("U/Mo"),n=i.getNodeGlobalScale,e="__focusNodeAdjacency",l="__unfocusNodeAdjacency",t=["itemStyle","opacity"],a=["lineStyle","opacity"];function s(m,v){var y=m.getVisual("opacity");return y!=null?y:m.getModel().get(v)}function u(m,v,y){var E=m.getGraphicEl(),T=s(m,v);y!=null&&(T==null&&(T=1),T*=y),E.downplay&&E.downplay(),E.traverse(function(b){if(!b.isGroup){var w=b.lineLabelOriginalOpacity;(w==null||y!=null)&&(w=T),b.setStyle("opacity",w)}})}function h(m,v){var y=s(m,v),E=m.getGraphicEl();E.traverse(function(T){!T.isGroup&&T.setStyle("opacity",y)}),E.highlight&&E.highlight()}var p=O.extendChartView({type:"graph",init:function(m,v){var y=new C,E=new A,T=this.group;this._controller=new S(v.getZr()),this._controllerHost={target:T},T.add(y.group),T.add(E.group),this._symbolDraw=y,this._lineDraw=E,this._firstRender=!0},render:function(m,v,y){var E=this,T=m.coordinateSystem;this._model=m;var b=this._symbolDraw,w=this._lineDraw,_=this.group;if(T.type==="view"){var I={position:T.position,scale:T.scale};this._firstRender?_.attr(I):o.updateProps(_,I,m)}r(m.getGraph(),n(m));var L=m.getData();b.updateData(L);var N=m.getEdgeData();w.updateData(N),this._updateNodeAndLinkScale(),this._updateController(m,v,y),clearTimeout(this._layoutTimeout);var D=m.forceLayout,R=m.get("force.layoutAnimation");D&&this._startForceLayoutIteration(D,R),L.eachItemGraphicEl(function(B,j){var W=L.getItemModel(j);B.off("drag").off("dragend");var V=W.get("draggable");V&&B.on("drag",function(){D&&(D.warmUp(),!this._layouting&&this._startForceLayoutIteration(D,R),D.setFixed(j),L.setItemLayout(j,B.position))},this).on("dragend",function(){D&&D.setUnfixed(j)},this),B.setDraggable(V&&D),B[e]&&B.off("mouseover",B[e]),B[l]&&B.off("mouseout",B[l]),W.get("focusNodeAdjacency")&&(B.on("mouseover",B[e]=function(){E._clearTimer(),y.dispatchAction({type:"focusNodeAdjacency",seriesId:m.id,dataIndex:B.dataIndex})}),B.on("mouseout",B[l]=function(){E._dispatchUnfocus(y)}))},this),L.graph.eachEdge(function(B){var j=B.getGraphicEl();j[e]&&j.off("mouseover",j[e]),j[l]&&j.off("mouseout",j[l]),B.getModel().get("focusNodeAdjacency")&&(j.on("mouseover",j[e]=function(){E._clearTimer(),y.dispatchAction({type:"focusNodeAdjacency",seriesId:m.id,edgeDataIndex:B.dataIndex})}),j.on("mouseout",j[l]=function(){E._dispatchUnfocus(y)}))});var k=m.get("layout")==="circular"&&m.get("circular.rotateLabel"),M=L.getLayout("cx"),U=L.getLayout("cy");L.eachItemGraphicEl(function(B,j){var W=L.getItemModel(j),V=W.get("label.rotate")||0,z=B.getSymbolPath();if(k){var J=L.getItemLayout(j),Z=Math.atan2(J[1]-U,J[0]-M);Z<0&&(Z=Math.PI*2+Z);var de=J[0]<M;de&&(Z=Z-Math.PI);var ie=de?"left":"right";o.modifyLabelStyle(z,{textRotation:-Z,textPosition:ie,textOrigin:"center"},{textPosition:ie})}else o.modifyLabelStyle(z,{textRotation:V*=Math.PI/180})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(m,v){var y=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){y._unfocusDelayTimer=null,m.dispatchAction({type:"unfocusNodeAdjacency",seriesId:y._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(m,v,y,E){var T=m.getData(),b=T.graph,w=E.dataIndex,_=E.edgeDataIndex,I=b.getNodeByIndex(w),L=b.getEdgeByIndex(_);if(!I&&!L)return;b.eachNode(function(N){u(N,t,.1)}),b.eachEdge(function(N){u(N,a,.1)}),I&&(h(I,t),x.each(I.edges,function(N){if(N.dataIndex<0)return;h(N,a),h(N.node1,t),h(N.node2,t)})),L&&(h(L,a),h(L.node1,t),h(L.node2,t))},unfocusNodeAdjacency:function(m,v,y,E){var T=m.getData().graph;T.eachNode(function(b){u(b,t)}),T.eachEdge(function(b){u(b,a)})},_startForceLayoutIteration:function(m,v){var y=this;(function E(){m.step(function(T){y.updateLayout(y._model),(y._layouting=!T)&&(v?y._layoutTimeout=setTimeout(E,16):E())})})()},_updateController:function(m,v,y){var E=this._controller,T=this._controllerHost,b=this.group;if(E.setPointerChecker(function(w,_,I){var L=b.getBoundingRect();return L.applyTransform(b.transform),L.contain(_,I)&&!c(w,y,m)}),m.coordinateSystem.type!=="view"){E.disable();return}E.enable(m.get("roam")),T.zoomLimit=m.get("scaleLimit"),T.zoom=m.coordinateSystem.getZoom(),E.off("pan").off("zoom").on("pan",function(w){g.updateViewOnPan(T,w.dx,w.dy),y.dispatchAction({seriesId:m.id,type:"graphRoam",dx:w.dx,dy:w.dy})}).on("zoom",function(w){g.updateViewOnZoom(T,w.scale,w.originX,w.originY),y.dispatchAction({seriesId:m.id,type:"graphRoam",zoom:w.scale,originX:w.originX,originY:w.originY}),this._updateNodeAndLinkScale(),r(m.getGraph(),n(m)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var m=this._model,v=m.getData(),y=n(m),E=[y,y];v.eachItemGraphicEl(function(T,b){T.attr("scale",E)})},updateLayout:function(m){r(m.getGraph(),n(m)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(m,v){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});H.exports=p},m9t5:function(H,F,d){var O=d("KCsZ"),x=O([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),C={getAreaStyle:function(A,S){return x(this,A,S)}};H.exports=C},mFDi:function(H,F,d){var O=d("QBsz"),x=d("Fofx"),C=O.applyTransform,A=Math.min,S=Math.max;function g(c,o,r,i){r<0&&(c=c+r,r=-r),i<0&&(o=o+i,i=-i),this.x=c,this.y=o,this.width=r,this.height=i}g.prototype={constructor:g,union:function(o){var r=A(o.x,this.x),i=A(o.y,this.y);this.width=S(o.x+o.width,this.x+this.width)-r,this.height=S(o.y+o.height,this.y+this.height)-i,this.x=r,this.y=i},applyTransform:function(){var c=[],o=[],r=[],i=[];return function(n){if(!n)return;c[0]=r[0]=this.x,c[1]=i[1]=this.y,o[0]=i[0]=this.x+this.width,o[1]=r[1]=this.y+this.height,C(c,c,n),C(o,o,n),C(r,r,n),C(i,i,n),this.x=A(c[0],o[0],r[0],i[0]),this.y=A(c[1],o[1],r[1],i[1]);var e=S(c[0],o[0],r[0],i[0]),l=S(c[1],o[1],r[1],i[1]);this.width=e-this.x,this.height=l-this.y}}(),calculateTransform:function(o){var r=this,i=o.width/r.width,n=o.height/r.height,e=x.create();return x.translate(e,e,[-r.x,-r.y]),x.scale(e,e,[i,n]),x.translate(e,e,[o.x,o.y]),e},intersect:function(o){if(!o)return!1;o instanceof g||(o=g.create(o));var r=this,i=r.x,n=r.x+r.width,e=r.y,l=r.y+r.height,t=o.x,a=o.x+o.width,s=o.y,u=o.y+o.height;return!(n<t||a<i||l<s||u<e)},contain:function(o,r){var i=this;return o>=i.x&&o<=i.x+i.width&&r>=i.y&&r<=i.y+i.height},clone:function(){return new g(this.x,this.y,this.width,this.height)},copy:function(o){this.x=o.x,this.y=o.y,this.width=o.width,this.height=o.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},g.create=function(c){return new g(c.x,c.y,c.width,c.height)};var f=g;H.exports=f},mHUz:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O={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};F.default=O},mLcG:function(H,F){var d=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(O){setTimeout(O,16)};H.exports=d},"mO/d":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("I9Y+"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},mOdp:function(H,F,d){var O=d("bYtY"),x=O.createHashMap;function C(A){return{getTargetSeries:function(S){var g={},f=x();return S.eachSeriesByType(A,function(c){c.__paletteScope=g,f.set(c.uid,c)}),f},reset:function(S,g){var f=S.getRawData(),c={},o=S.getData();o.each(function(r){var i=o.getRawIndex(r);c[i]=r}),f.each(function(r){var i=c[r],n=i!=null&&o.getItemVisual(i,"color",!0),e=i!=null&&o.getItemVisual(i,"borderColor",!0),l;if((!n||!e)&&(l=f.getItemModel(r)),!n){var t=l.get("itemStyle.color")||S.getColorFromPalette(f.getName(r)||r+"",S.__paletteScope,f.count());i!=null&&o.setItemVisual(i,"color",t)}if(!e){var a=l.get("itemStyle.borderColor");i!=null&&o.setItemVisual(i,"borderColor",a)}})}}}H.exports=C},mTgk:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("mHUz"));function x(c){return c&&c.__esModule?c:{default:c}}var C={};function A(c,o){if(o===void 0)throw new Error('Undefined keysym for key "'+c+'"');if(c in C)throw new Error('Duplicate entry for key "'+c+'"');C[c]=[o,o,o,o]}function S(c,o,r){if(o===void 0)throw new Error('Undefined keysym for key "'+c+'"');if(r===void 0)throw new Error('Undefined keysym for key "'+c+'"');if(c in C)throw new Error('Duplicate entry for key "'+c+'"');C[c]=[o,o,r,o]}function g(c,o,r){if(o===void 0)throw new Error('Undefined keysym for key "'+c+'"');if(r===void 0)throw new Error('Undefined keysym for key "'+c+'"');if(c in C)throw new Error('Duplicate entry for key "'+c+'"');C[c]=[o,o,o,r]}S("Alt",O.default.XK_Alt_L,O.default.XK_Alt_R),A("AltGraph",O.default.XK_ISO_Level3_Shift),A("CapsLock",O.default.XK_Caps_Lock),S("Control",O.default.XK_Control_L,O.default.XK_Control_R),S("Meta",O.default.XK_Super_L,O.default.XK_Super_R),A("NumLock",O.default.XK_Num_Lock),A("ScrollLock",O.default.XK_Scroll_Lock),S("Shift",O.default.XK_Shift_L,O.default.XK_Shift_R),g("Enter",O.default.XK_Return,O.default.XK_KP_Enter),A("Tab",O.default.XK_Tab),g(" ",O.default.XK_space,O.default.XK_KP_Space),g("ArrowDown",O.default.XK_Down,O.default.XK_KP_Down),g("ArrowUp",O.default.XK_Up,O.default.XK_KP_Up),g("ArrowLeft",O.default.XK_Left,O.default.XK_KP_Left),g("ArrowRight",O.default.XK_Right,O.default.XK_KP_Right),g("End",O.default.XK_End,O.default.XK_KP_End),g("Home",O.default.XK_Home,O.default.XK_KP_Home),g("PageDown",O.default.XK_Next,O.default.XK_KP_Next),g("PageUp",O.default.XK_Prior,O.default.XK_KP_Prior),A("Backspace",O.default.XK_BackSpace),g("Clear",O.default.XK_Clear,O.default.XK_KP_Begin),A("Copy",O.default.XF86XK_Copy),A("Cut",O.default.XF86XK_Cut),g("Delete",O.default.XK_Delete,O.default.XK_KP_Delete),g("Insert",O.default.XK_Insert,O.default.XK_KP_Insert),A("Paste",O.default.XF86XK_Paste),A("Redo",O.default.XK_Redo),A("Undo",O.default.XK_Undo),A("Cancel",O.default.XK_Cancel),A("ContextMenu",O.default.XK_Menu),A("Escape",O.default.XK_Escape),A("Execute",O.default.XK_Execute),A("Find",O.default.XK_Find),A("Help",O.default.XK_Help),A("Pause",O.default.XK_Pause),A("Select",O.default.XK_Select),A("ZoomIn",O.default.XF86XK_ZoomIn),A("ZoomOut",O.default.XF86XK_ZoomOut),A("BrightnessDown",O.default.XF86XK_MonBrightnessDown),A("BrightnessUp",O.default.XF86XK_MonBrightnessUp),A("Eject",O.default.XF86XK_Eject),A("LogOff",O.default.XF86XK_LogOff),A("Power",O.default.XF86XK_PowerOff),A("PowerOff",O.default.XF86XK_PowerDown),A("PrintScreen",O.default.XK_Print),A("Hibernate",O.default.XF86XK_Hibernate),A("Standby",O.default.XF86XK_Standby),A("WakeUp",O.default.XF86XK_WakeUp),A("AllCandidates",O.default.XK_MultipleCandidate),A("Alphanumeric",O.default.XK_Eisu_Shift),A("CodeInput",O.default.XK_Codeinput),A("Compose",O.default.XK_Multi_key),A("Convert",O.default.XK_Henkan),A("GroupFirst",O.default.XK_ISO_First_Group),A("GroupLast",O.default.XK_ISO_Last_Group),A("GroupNext",O.default.XK_ISO_Next_Group),A("GroupPrevious",O.default.XK_ISO_Prev_Group),A("NonConvert",O.default.XK_Muhenkan),A("PreviousCandidate",O.default.XK_PreviousCandidate),A("SingleCandidate",O.default.XK_SingleCandidate),A("HangulMode",O.default.XK_Hangul),A("HanjaMode",O.default.XK_Hangul_Hanja),A("JunjuaMode",O.default.XK_Hangul_Jeonja),A("Eisu",O.default.XK_Eisu_toggle),A("Hankaku",O.default.XK_Hankaku),A("Hiragana",O.default.XK_Hiragana),A("HiraganaKatakana",O.default.XK_Hiragana_Katakana),A("KanaMode",O.default.XK_Kana_Shift),A("KanjiMode",O.default.XK_Kanji),A("Katakana",O.default.XK_Katakana),A("Romaji",O.default.XK_Romaji),A("Zenkaku",O.default.XK_Zenkaku),A("ZenkakuHanaku",O.default.XK_Zenkaku_Hankaku),A("F1",O.default.XK_F1),A("F2",O.default.XK_F2),A("F3",O.default.XK_F3),A("F4",O.default.XK_F4),A("F5",O.default.XK_F5),A("F6",O.default.XK_F6),A("F7",O.default.XK_F7),A("F8",O.default.XK_F8),A("F9",O.default.XK_F9),A("F10",O.default.XK_F10),A("F11",O.default.XK_F11),A("F12",O.default.XK_F12),A("F13",O.default.XK_F13),A("F14",O.default.XK_F14),A("F15",O.default.XK_F15),A("F16",O.default.XK_F16),A("F17",O.default.XK_F17),A("F18",O.default.XK_F18),A("F19",O.default.XK_F19),A("F20",O.default.XK_F20),A("F21",O.default.XK_F21),A("F22",O.default.XK_F22),A("F23",O.default.XK_F23),A("F24",O.default.XK_F24),A("F25",O.default.XK_F25),A("F26",O.default.XK_F26),A("F27",O.default.XK_F27),A("F28",O.default.XK_F28),A("F29",O.default.XK_F29),A("F30",O.default.XK_F30),A("F31",O.default.XK_F31),A("F32",O.default.XK_F32),A("F33",O.default.XK_F33),A("F34",O.default.XK_F34),A("F35",O.default.XK_F35),A("Close",O.default.XF86XK_Close),A("MailForward",O.default.XF86XK_MailForward),A("MailReply",O.default.XF86XK_Reply),A("MailSend",O.default.XF86XK_Send),A("MediaFastForward",O.default.XF86XK_AudioForward),A("MediaPause",O.default.XF86XK_AudioPause),A("MediaPlay",O.default.XF86XK_AudioPlay),A("MediaRecord",O.default.XF86XK_AudioRecord),A("MediaRewind",O.default.XF86XK_AudioRewind),A("MediaStop",O.default.XF86XK_AudioStop),A("MediaTrackNext",O.default.XF86XK_AudioNext),A("MediaTrackPrevious",O.default.XF86XK_AudioPrev),A("New",O.default.XF86XK_New),A("Open",O.default.XF86XK_Open),A("Print",O.default.XK_Print),A("Save",O.default.XF86XK_Save),A("SpellCheck",O.default.XF86XK_Spell),A("AudioVolumeDown",O.default.XF86XK_AudioLowerVolume),A("AudioVolumeUp",O.default.XF86XK_AudioRaiseVolume),A("AudioVolumeMute",O.default.XF86XK_AudioMute),A("MicrophoneVolumeMute",O.default.XF86XK_AudioMicMute),A("LaunchApplication1",O.default.XF86XK_MyComputer),A("LaunchApplication2",O.default.XF86XK_Calculator),A("LaunchCalendar",O.default.XF86XK_Calendar),A("LaunchMail",O.default.XF86XK_Mail),A("LaunchMediaPlayer",O.default.XF86XK_AudioMedia),A("LaunchMusicPlayer",O.default.XF86XK_Music),A("LaunchPhone",O.default.XF86XK_Phone),A("LaunchScreenSaver",O.default.XF86XK_ScreenSaver),A("LaunchSpreadsheet",O.default.XF86XK_Excel),A("LaunchWebBrowser",O.default.XF86XK_WWW),A("LaunchWebCam",O.default.XF86XK_WebCam),A("LaunchWordProcessor",O.default.XF86XK_Word),A("BrowserBack",O.default.XF86XK_Back),A("BrowserFavorites",O.default.XF86XK_Favorites),A("BrowserForward",O.default.XF86XK_Forward),A("BrowserHome",O.default.XF86XK_HomePage),A("BrowserRefresh",O.default.XF86XK_Refresh),A("BrowserSearch",O.default.XF86XK_Search),A("BrowserStop",O.default.XF86XK_Stop),A("Dimmer",O.default.XF86XK_BrightnessAdjust),A("MediaAudioTrack",O.default.XF86XK_AudioCycleTrack),A("RandomToggle",O.default.XF86XK_AudioRandomPlay),A("SplitScreenToggle",O.default.XF86XK_SplitScreen),A("Subtitle",O.default.XF86XK_Subtitle),A("VideoModeNext",O.default.XF86XK_Next_VMode),g("=",O.default.XK_equal,O.default.XK_KP_Equal),g("+",O.default.XK_plus,O.default.XK_KP_Add),g("-",O.default.XK_minus,O.default.XK_KP_Subtract),g("*",O.default.XK_asterisk,O.default.XK_KP_Multiply),g("/",O.default.XK_slash,O.default.XK_KP_Divide),g(".",O.default.XK_period,O.default.XK_KP_Decimal),g(",",O.default.XK_comma,O.default.XK_KP_Separator),g("0",O.default.XK_0,O.default.XK_KP_0),g("1",O.default.XK_1,O.default.XK_KP_1),g("2",O.default.XK_2,O.default.XK_KP_2),g("3",O.default.XK_3,O.default.XK_KP_3),g("4",O.default.XK_4,O.default.XK_KP_4),g("5",O.default.XK_5,O.default.XK_KP_5),g("6",O.default.XK_6,O.default.XK_KP_6),g("7",O.default.XK_7,O.default.XK_KP_7),g("8",O.default.XK_8,O.default.XK_KP_8),g("9",O.default.XK_9,O.default.XK_KP_9);var f=C;F.default=f},mYwL:function(H,F,d){var O=d("bYtY"),x=d("IwbS"),C=d("6GrX"),A=Math.PI;function S(g,f){f=f||{},O.defaults(f,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var c=new x.Group,o=new x.Rect({style:{fill:f.maskColor},zlevel:f.zlevel,z:1e4});c.add(o);var r=f.fontSize+" sans-serif",i=new x.Rect({style:{fill:"none",text:f.text,font:r,textPosition:"right",textDistance:10,textFill:f.textColor},zlevel:f.zlevel,z:10001});if(c.add(i),f.showSpinner){var n=new x.Arc({shape:{startAngle:-A/2,endAngle:-A/2+.1,r:f.spinnerRadius},style:{stroke:f.color,lineCap:"round",lineWidth:f.lineWidth},zlevel:f.zlevel,z:10001});n.animateShape(!0).when(1e3,{endAngle:A*3/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:A*3/2}).delay(300).start("circularInOut"),c.add(n)}return c.resize=function(){var e=C.getWidth(f.text,r),l=f.showSpinner?f.spinnerRadius:0,t=(g.getWidth()-l*2-(f.showSpinner&&e?10:0)-e)/2-(f.showSpinner?0:e/2),a=g.getHeight()/2;f.showSpinner&&n.setShape({cx:t,cy:a}),i.setShape({x:t-l,y:a-l,width:l*2,height:l*2}),o.setShape({x:0,y:0,width:g.getWidth(),height:g.getHeight()})},c.resize(),c}H.exports=S},mdZa:function(H,F,d){"use strict";typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(x,C){"use strict";if(x==null)throw new TypeError("Cannot convert undefined or null to object");for(var A=Object(x),S=1;S<arguments.length;S++){var g=arguments[S];if(g!=null)for(var f in g)Object.prototype.hasOwnProperty.call(g,f)&&(A[f]=g[f])}return A},writable:!0,configurable:!0}),function(){function O(x,C){C=C||{bubbles:!1,cancelable:!1,detail:void 0};var A=document.createEvent("CustomEvent");return A.initCustomEvent(x,C.bubbles,C.cancelable,C.detail),A}O.prototype=window.Event.prototype,typeof window.CustomEvent!="function"&&(window.CustomEvent=O)}(),Number.isInteger=Number.isInteger||function(x){return typeof x=="number"&&isFinite(x)&&Math.floor(x)===x}},"mh/l":function(H,F,d){"use strict";d.d(F,"b",function(){return v}),d.d(F,"d",function(){return y}),d.d(F,"c",function(){return E});var O=d("pVnL"),x=d.n(O),C=d("lwsE"),A=d.n(C),S=d("W8MJ"),g=d.n(S),f=d("7W2i"),c=d.n(f),o=d("LQ03"),r=d.n(o),i=d("lSNA"),n=d.n(i),e=d("q1tI"),l=d.n(e),t=d("TSYQ"),a=d.n(t),s=d("BGR+"),u=d("LlR5"),h=d("H84U"),p=d("3Nzz"),m=d("uaoM");function v(b){return typeof b=="undefined"||b===null?"":b}function y(b,w,_){if(_){var I=w;if(w.type==="click"){I=Object.create(w),I.target=b,I.currentTarget=b;var L=b.value;b.value="",_(I),b.value=L;return}_(I)}}function E(b,w,_,I,L){var N;return a()(b,(N={},n()(N,"".concat(b,"-sm"),_==="small"),n()(N,"".concat(b,"-lg"),_==="large"),n()(N,"".concat(b,"-disabled"),I),n()(N,"".concat(b,"-rtl"),L==="rtl"),n()(N,"".concat(b,"-borderless"),!w),N))}var T=function(b){c()(_,b);var w=r()(_);function _(I){var L;A()(this,_),L=w.call(this,I),L.direction="ltr",L.focus=function(){L.input.focus()},L.saveClearableInput=function(D){L.clearableInput=D},L.saveInput=function(D){L.input=D},L.onFocus=function(D){var R=L.props.onFocus;L.setState({focused:!0},L.clearPasswordValueAttribute),R&&R(D)},L.onBlur=function(D){var R=L.props.onBlur;L.setState({focused:!1},L.clearPasswordValueAttribute),R&&R(D)},L.handleReset=function(D){L.setValue("",function(){L.focus()}),y(L.input,D,L.props.onChange)},L.renderInput=function(D,R,k){var M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},U=L.props,B=U.className,j=U.addonBefore,W=U.addonAfter,V=U.size,z=U.disabled,J=Object(s.default)(L.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return e.createElement("input",x()({autoComplete:M.autoComplete},J,{onChange:L.handleChange,onFocus:L.onFocus,onBlur:L.onBlur,onKeyDown:L.handleKeyDown,className:a()(E(D,k,V||R,z,L.direction),n()({},B,B&&!j&&!W)),ref:L.saveInput}))},L.clearPasswordValueAttribute=function(){L.removePasswordTimeout=setTimeout(function(){L.input&&L.input.getAttribute("type")==="password"&&L.input.hasAttribute("value")&&L.input.removeAttribute("value")})},L.handleChange=function(D){L.setValue(D.target.value,L.clearPasswordValueAttribute),y(L.input,D,L.props.onChange)},L.handleKeyDown=function(D){var R=L.props,k=R.onPressEnter,M=R.onKeyDown;D.keyCode===13&&k&&k(D),M&&M(D)},L.renderComponent=function(D){var R=D.getPrefixCls,k=D.direction,M=D.input,U=L.state,B=U.value,j=U.focused,W=L.props,V=W.prefixCls,z=W.bordered,J=z===void 0?!0:z,Z=R("input",V);return L.direction=k,e.createElement(p.b.Consumer,null,function(de){return e.createElement(u.a,x()({size:de},L.props,{prefixCls:Z,inputType:"input",value:v(B),element:L.renderInput(Z,de,J,M),handleReset:L.handleReset,ref:L.saveClearableInput,direction:k,focused:j,triggerFocus:L.focus,bordered:J}))})};var N=typeof I.value=="undefined"?I.defaultValue:I.value;return L.state={value:N,focused:!1,prevValue:I.value},L}return g()(_,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(L){return Object(u.b)(L)!==Object(u.b)(this.props)&&Object(m.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(L,N){this.props.value===void 0&&this.setState({value:L},N)}},{key:"render",value:function(){return e.createElement(h.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(L,N){var D=N.prevValue,R={prevValue:L.value};return(L.value!==void 0||D!==L.value)&&(R.value=L.value),R}}]),_}(e.Component);T.defaultProps={type:"text"},F.a=T},mr32:function(H,F,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),S=d("J4zp"),g=d.n(S),f=d("q1tI"),c=d("TSYQ"),o=d.n(c),r=d("BGR+"),i=d("V/uB"),n=d.n(i),e=d("H84U"),l=function(T,b){var w={};for(var _ in T)Object.prototype.hasOwnProperty.call(T,_)&&b.indexOf(_)<0&&(w[_]=T[_]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,_=Object.getOwnPropertySymbols(T);I<_.length;I++)b.indexOf(_[I])<0&&Object.prototype.propertyIsEnumerable.call(T,_[I])&&(w[_[I]]=T[_[I]]);return w},t=function(b){var w,_=f.useContext(e.b),I=_.getPrefixCls,L=function(j){var W=b.checked,V=b.onChange,z=b.onClick;V&&V(!W),z&&z(j)},N=b.prefixCls,D=b.className,R=b.checked,k=l(b,["prefixCls","className","checked"]),M=I("tag",N),U=o()(M,(w={},x()(w,"".concat(M,"-checkable"),!0),x()(w,"".concat(M,"-checkable-checked"),R),w),D);return delete k.onChange,f.createElement("span",A()({},k,{className:U,onClick:L}))},a=t,s=d("09Wf"),u=d("g0mS"),h=function(T,b){var w={};for(var _ in T)Object.prototype.hasOwnProperty.call(T,_)&&b.indexOf(_)<0&&(w[_]=T[_]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,_=Object.getOwnPropertySymbols(T);I<_.length;I++)b.indexOf(_[I])<0&&Object.prototype.propertyIsEnumerable.call(T,_[I])&&(w[_[I]]=T[_[I]]);return w},p=new RegExp("^(".concat(s.a.join("|"),")(-inverse)?$")),m=new RegExp("^(".concat(s.b.join("|"),")$")),v=function(b,w){var _,I=b.prefixCls,L=b.className,N=b.style,D=b.children,R=b.icon,k=b.color,M=b.onClose,U=b.closeIcon,B=b.closable,j=B===void 0?!1:B,W=h(b,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),V=f.useContext(e.b),z=V.getPrefixCls,J=V.direction,Z=f.useState(!0),de=g()(Z,2),ie=de[0],ve=de[1];f.useEffect(function(){"visible"in W&&ve(W.visible)},[W.visible]);var xe=function(){return k?p.test(k)||m.test(k):!1},_e=A()({backgroundColor:k&&!xe()?k:void 0},N),Ue=xe(),fe=z("tag",I),ke=o()(fe,(_={},x()(_,"".concat(fe,"-").concat(k),Ue),x()(_,"".concat(fe,"-has-color"),k&&!Ue),x()(_,"".concat(fe,"-hidden"),!ie),x()(_,"".concat(fe,"-rtl"),J==="rtl"),_),L),se=function(ue){if(ue.stopPropagation(),M&&M(ue),ue.defaultPrevented)return;"visible"in W||ve(!1)},te=function(){return j?U?f.createElement("div",{className:"".concat(fe,"-close-icon"),onClick:se},U):f.createElement(n.a,{className:"".concat(fe,"-close-icon"),onClick:se}):null},Ve="onClick"in W||D&&D.type==="a",ae=Object(r.default)(W,["visible"]),Q=R||null,G=Q?f.createElement(f.Fragment,null,Q,f.createElement("span",null,D)):D,Y=f.createElement("span",A()({},ae,{ref:w,className:ke,style:_e}),G,te());return Ve?f.createElement(u.a,null,Y):Y},y=f.forwardRef(v);y.displayName="Tag",y.CheckableTag=a;var E=F.a=y},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(H){if(!0)module.exports=H();else var F})(function(){var define,module,exports;return function(){function H(F,d,O){function x(S,g){if(!d[S]){if(!F[S]){var f=typeof require=="function"&&require;if(!g&&f)return require(S,!0);if(C)return C(S,!0);var c=new Error("Cannot find module '"+S+"'");throw c.code="MODULE_NOT_FOUND",c}var o=d[S]={exports:{}};F[S][0].call(o.exports,function(r){var i=F[S][1][r];return x(i||r)},o,o.exports,H,F,d,O)}return d[S].exports}for(var C=typeof require=="function"&&require,A=0;A<O.length;A++)x(O[A]);return x}return H}()({1:[function(H,F,d){"use strict";var O=H("./browser/client");O.Buffer=H("buffer").Buffer,O.urllib=H("../shims/xhr"),O.version=H("./browser/version").version,F.exports=O},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(H,F,d){(function(O,x){"use strict";var C=H("babel-runtime/core-js/promise"),A=o(C),S=H("babel-runtime/regenerator"),g=o(S),f=H("babel-runtime/core-js/object/assign"),c=o(f);function o(R){return R&&R.__esModule?R:{default:R}}var r=H("debug")("ali-oss"),i=H("copy-to"),n=H("xml2js"),e=H("agentkeepalive"),l=H("merge-descriptors"),t=H("url"),a=H("is-type-of"),s=H("platform"),u=H("utility"),h=H("urllib"),p=H("./version"),m=H("bowser"),v=H("../common/signUtils"),y=H("../common/utils/isIP"),E=y.isIP,T=H("../common/client/initOptions"),b=H("../common/utils/createRequest"),w=b.createRequest,_=new e;function I(){var R=s.name,k=s.version;R&&R.toLowerCase&&R.toLowerCase()==="ie"&&k.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function L(){return location&&location.protocol==="https:"}function N(R,k){if(I(),!(this instanceof N))return new N(R,k);R&&R.inited?this.options=R:this.options=N.initOptions(R),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=h,this.agent=this.options.agent||_),this.ctx=k,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}F.exports=N,N.initOptions=function(k){k.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var M=(0,c.default)({secure:L(),useFetch:!1},k);return T(M)};var D=N.prototype;D.debug=r,l(D,H("./object")),l(D,H("../common/bucket/getBucketWebsite")),l(D,H("../common/bucket/putBucketWebsite")),l(D,H("../common/bucket/deleteBucketWebsite")),l(D,H("../common/bucket/getBucketLifecycle")),l(D,H("../common/bucket/putBucketLifecycle")),l(D,H("../common/bucket/deleteBucketLifecycle")),l(D,H("../common/bucket/putBucketVersioning")),l(D,H("../common/bucket/getBucketVersioning")),l(D,H("./managed-upload")),l(D,H("../common/multipart")),l(D,H("../common/parallel")),D.signature=function(k){return this.debug("authorization stringToSign: %s",k,"info"),v.computeSignature(this.options.accessKeySecret,k)},D.authorization=function(k,M,U,B){var j=v.buildCanonicalString(k.toUpperCase(),M,{headers:B,parameters:U});return v.authorization(this.options.accessKeyId,this.options.accessKeySecret,j)},D.request=function(k){var M,U,B,j,W,V;return g.default.async(function(J){for(;;)switch(J.prev=J.next){case 0:return M=w.call(this,k),this.options.useFetch||(M.params.mode="disable-fetch"),U=void 0,B=void 0,j=!!k.stream,J.prev=5,J.next=8,g.default.awrap(this.urllib.request(M.url,M.params));case 8:U=J.sent,this.debug("response %s %s, got %s, headers: %j",k.method,M.url,U.status,U.headers,"info"),J.next=15;break;case 12:J.prev=12,J.t0=J.catch(5),B=J.t0;case 15:if(W=void 0,!(U&&k.successStatuses&&k.successStatuses.indexOf(U.status)===-1)){J.next=28;break}return J.next=19,g.default.awrap(this.requestError(U));case 19:if(W=J.sent,!(W.code==="RequestTimeTooSkewed"&&!j)){J.next=25;break}return this.options.amendTimeSkewed=+new Date(W.serverTime)-new Date,J.next=24,g.default.awrap(this.request(k));case 24:return J.abrupt("return",J.sent);case 25:W.params=k,J.next=32;break;case 28:if(!B){J.next=32;break}return J.next=31,g.default.awrap(this.requestError(B));case 31:W=J.sent;case 32:if(!W){J.next=34;break}throw W;case 34:if(!k.xmlResponse){J.next=39;break}return J.next=37,g.default.awrap(this.parseXML(U.data));case 37:V=J.sent,U.data=V;case 39:return J.abrupt("return",U);case 40:case"end":return J.stop()}},null,this,[[5,12]])},D._getResource=function(k){var M="/";return k.bucket&&(M+=k.bucket+"/"),k.object&&(M+=k.object),M},D._isIP=E,D._escape=function(k){return u.encodeURIComponent(k).replace(/%2F/g,"/")},D._getReqUrl=function(k){var M={};i(this.options.endpoint).to(M);var U=this._isIP(M.hostname),B=this.options.cname;k.bucket&&!B&&!U&&(M.host=k.bucket+"."+M.host);var j="/";k.bucket&&U&&(j+=k.bucket+"/"),k.object&&(j+=this._escape(k.object).replace(/\+/g,"%2B")),M.pathname=j;var W={};if(k.query&&l(W,k.query),k.subres){var V={};a.string(k.subres)?V[k.subres]="":a.array(k.subres)?k.subres.forEach(function(z){V[z]=""}):V=k.subres,l(W,V)}return M.query=W,t.format(M)},D._getUserAgent=function(){var k=x&&x.browser?"js":"nodejs",M="aliyun-sdk-"+k+"/"+p.version,U=s.description;return!U&&x&&(U="Node.js "+x.version.slice(1)+" on "+x.platform+" "+x.arch),this._checkUserAgent(M+" "+U)},D._checkUserAgent=function(k){var M=k.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return M},D.checkBrowserAndVersion=function(k,M){return m.name===k&&m.version.split(".")[0]===M},D.parseXML=function(k){return new A.default(function(M,U){O.isBuffer(k)&&(k=k.toString()),n.parseString(k,{explicitRoot:!1,explicitArray:!1},function(B,j){B?U(B):M(j)})})},D.requestError=function(k){var M,U,B,j;return g.default.async(function(V){for(;;)switch(V.prev=V.next){case 0:if(M=null,!(!k.data||!k.data.length)){V.next=5;break}k.status===-1||k.status===-2?(M=new Error(k.message),M.name=k.name,M.status=k.status,M.code=k.name):(k.status===404?(M=new Error("Object not exists"),M.name="NoSuchKeyError",M.status=404,M.code="NoSuchKey"):k.status===412?(M=new Error("Pre condition failed"),M.name="PreconditionFailedError",M.status=412,M.code="PreconditionFailed"):(M=new Error("Unknow error, status: "+k.status),M.name="UnknowError",M.status=k.status),M.requestId=k.headers["x-oss-request-id"],M.host=""),V.next=33;break;case 5:return U=String(k.data),this.debug("request response error data: %s",U,"error"),B=void 0,V.prev=8,V.next=11,g.default.awrap(this.parseXML(U));case 11:if(V.t0=V.sent,V.t0){V.next=14;break}V.t0={};case 14:B=V.t0,V.next=24;break;case 17:return V.prev=17,V.t1=V.catch(8),this.debug(U,"error"),V.t1.message+=`
|
|
|
raw xml: `+U,V.t1.status=k.status,V.t1.requestId=k.headers["x-oss-request-id"],V.abrupt("return",V.t1);case 24:j=B.Message||"unknow request error, status: "+k.status,B.Condition&&(j+=" (condition: "+B.Condition+")"),M=new Error(j),M.name=B.Code?B.Code+"Error":"UnknowError",M.status=k.status,M.code=B.Code,M.requestId=B.RequestId,M.hostId=B.HostId,M.serverTime=B.ServerTime;case 33:return this.debug("generate error %j",M,"error"),V.abrupt("return",M);case 35:case"end":return V.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:H("../../node_modules/is-buffer/index.js")},H("_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(H,F,d){(function(O){"use strict";var x=H("babel-runtime/core-js/array/from"),C=c(x),A=H("babel-runtime/core-js/promise"),S=c(A),g=H("babel-runtime/regenerator"),f=c(g);function c(v){return v&&v.__esModule?v:{default:v}}var o=H("is-type-of"),r=H("util"),i=H("path"),n=H("mime"),e=H("copy-to"),l=H("../common/utils/isBlob"),t=l.isBlob,a=H("../common/utils/isFile"),s=a.isFile,u=d;u.multipartUpload=function(y,E,T){var b,w,_,I,L,N,D,R,k;return f.default.async(function(U){for(;;)switch(U.prev=U.next){case 0:if(this.resetCancelFlag(),T=T||{},!(T.checkpoint&&T.checkpoint.uploadId)){U.next=6;break}return U.next=5,f.default.awrap(this._resumeMultipart(T.checkpoint,T));case 5:return U.abrupt("return",U.sent);case 6:return b=100*1024,T.mime||(s(E)?T.mime=n.getType(i.extname(E.name)):t(E)?T.mime=E.type:T.mime=n.getType(i.extname(E))),T.headers=T.headers||{},this._convertMetaToHeaders(T.meta,T.headers),U.next=12,f.default.awrap(this._getFileSize(E));case 12:if(w=U.sent,!(w<b)){U.next=25;break}return _=this._createStream(E,0,w),T.contentLength=w,U.next=18,f.default.awrap(this.putStream(y,_,T));case 18:if(I=U.sent,!(T&&T.progress)){U.next=22;break}return U.next=22,f.default.awrap(T.progress(1));case 22:return L={res:I.res,bucket:this.options.bucket,name:y,etag:I.res.headers.etag},(T.headers&&T.headers["x-oss-callback"]||T.callback)&&(L.data=I.data),U.abrupt("return",L);case 25:if(!(T.partSize&&!(parseInt(T.partSize,10)===T.partSize))){U.next=27;break}throw new Error("partSize must be int number");case 27:if(!(T.partSize&&T.partSize<b)){U.next=29;break}throw new Error("partSize must not be smaller than "+b);case 29:return U.next=31,f.default.awrap(this.initMultipartUpload(y,T));case 31:if(N=U.sent,D=N.uploadId,R=this._getPartSize(w,T.partSize),k={file:E,name:y,fileSize:w,partSize:R,uploadId:D,doneParts:[]},!(T&&T.progress)){U.next=38;break}return U.next=38,f.default.awrap(T.progress(0,k,N.res));case 38:return U.next=40,f.default.awrap(this._resumeMultipart(k,T));case 40:return U.abrupt("return",U.sent);case 41:case"end":return U.stop()}},null,this)},u._resumeMultipart=function(y,E){var T,b,w,_,I,L,N,D,R,k,M,U,B,j,W,V,z,J;return f.default.async(function(de){for(;;)switch(de.prev=de.next){case 0:if(T=this,!this.isCancel()){de.next=3;break}throw this._makeCancelEvent();case 3:return b=y.file,w=y.fileSize,_=y.partSize,I=y.uploadId,L=y.doneParts,N=y.name,D=[],L.length>0&&e(L).to(D),R=this._divideParts(w,_),k=R.length,M=!1,U=function(ve,xe){var _e=this;return new S.default(function(fe,ke){var se,te,Ve,ae;return f.default.async(function(G){for(;;)switch(G.prev=G.next){case 0:if(G.prev=0,ve.isCancel()){G.next=18;break}return se=R[xe-1],te={stream:ve._createStream(b,se.start,se.end),size:se.end-se.start},G.next=6,f.default.awrap(ve._uploadPart(N,I,xe,te));case 6:if(Ve=G.sent,!(!ve.isCancel()&&!M)){G.next=15;break}if(y.doneParts.push({number:xe,etag:Ve.res.headers.etag}),!E.progress){G.next=12;break}return G.next=12,f.default.awrap(E.progress(L.length/k,y,Ve.res));case 12:fe({number:xe,etag:Ve.res.headers.etag}),G.next=16;break;case 15:fe();case 16:G.next=19;break;case 18:fe();case 19:G.next=30;break;case 21:G.prev=21,G.t0=G.catch(0),ae=new Error,ae.name=G.t0.name,ae.message=G.t0.message,ae.stack=G.t0.stack,ae.partNum=xe,e(G.t0).to(ae),ke(ae);case 30:case"end":return G.stop()}},null,_e,[[0,21]])})},B=(0,C.default)(new Array(k),function(ie,ve){return ve+1}),j=D.map(function(ie){return ie.number}),W=B.filter(function(ie){return j.indexOf(ie)<0}),V=5,z=E.parallel||V,de.next=17,f.default.awrap(this._parallel(W,z,function(ie){return new S.default(function(ve,xe){U(T,ie).then(function(_e){_e&&D.push(_e),ve()}).catch(function(_e){xe(_e)})})}));case 17:if(J=de.sent,M=!0,!this.isCancel()){de.next=22;break}throw U=null,this._makeCancelEvent();case 22:if(!(J&&J.length>0)){de.next=25;break}throw J[0].message="Failed to upload some parts with error: "+J[0].toString()+" part_num: "+J[0].partNum,J[0];case 25:return de.next=27,f.default.awrap(this.completeMultipartUpload(N,I,D,E));case 27:return de.abrupt("return",de.sent);case 28:case"end":return de.stop()}},null,this)},u._getFileSize=function(y){return f.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:if(!o.buffer(y)){T.next=4;break}return T.abrupt("return",y.length);case 4:if(!(t(y)||s(y))){T.next=6;break}return T.abrupt("return",y.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return T.stop()}},null,this)};var h=H("stream"),p=h.Readable;function m(v,y){if(!(this instanceof m))return new m(v,y);p.call(this,y),this.file=v,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}r.inherits(m,p),m.prototype.readFileAndPush=function(y){if(this.fileBuffer)for(var E=!0;E&&this.fileBuffer&&this.start<this.fileBuffer.length;){var T=this.start,b=T+y;b=b>this.fileBuffer.length?this.fileBuffer.length:b,this.start=b,E=this.push(this.fileBuffer.slice(T,b))}},m.prototype._read=function(y){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 E=16*1024;y=y||E;var T=this;this.reader.onload=function(w){T.fileBuffer=O.from(new Uint8Array(w.target.result)),T.file=null,T.readFileAndPush(y)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(y)},u._createStream=function(y,E,T){if(t(y)||s(y))return new m(y.slice(E,T));throw new Error("_createStream requires File/Blob.")},u._getPartSize=function(y,E){var T=10*1e3,b=1024*1024;return E?Math.max(Math.ceil(y/T),E):b},u._divideParts=function(y,E){for(var T=Math.ceil(y/E),b=[],w=0;w<T;w++){var _=E*w,I=Math.min(_+E,y);b.push({start:_,end:I})}return b}}).call(this,H("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(H,F,d){"use strict";var O=H("babel-runtime/core-js/promise"),x=o(O),C=H("babel-runtime/core-js/object/keys"),A=o(C),S=H("babel-runtime/core-js/object/assign"),g=o(S),f=H("babel-runtime/regenerator"),c=o(f);function o(T){return T&&T.__esModule?T:{default:T}}var r=H("utility"),i=H("fs"),n=H("is-type-of"),e=H("url"),l=H("copy-to"),t=H("path"),a=H("mime"),s=H("../common/callback"),u=H("../common/signUtils"),h=H("merge-descriptors"),p=H("../common/utils/isBlob"),m=p.isBlob,v=H("../common/utils/isFile"),y=v.isFile,E=d;E.append=function(b,w,_){var I;return c.default.async(function(N){for(;;)switch(N.prev=N.next){case 0:return _=_||{},_.position===void 0&&(_.position="0"),_.subres={append:"",position:_.position},_.method="POST",N.next=6,c.default.awrap(this.put(b,w,_));case 6:return I=N.sent,I.nextAppendPosition=I.res.headers["x-oss-next-append-position"],N.abrupt("return",I);case 9:case"end":return N.stop()}},null,this)},E.put=function(b,w,_){var I,L,N,D,R,k,M;return c.default.async(function(B){for(;;)switch(B.prev=B.next){case 0:if(I=void 0,_=_||{},b=this._objectName(b),!n.buffer(w)){B.next=7;break}I=w,B.next=33;break;case 7:if(!(m(w)||y(w))){B.next=32;break}return _.mime||(y(w)?_.mime=a.getType(t.extname(w.name)):_.mime=w.type),L=this._createStream(w,0,w.size),B.next=12,c.default.awrap(this._getFileSize(w));case 12:return _.contentLength=B.sent,B.prev=13,B.next=16,c.default.awrap(this.putStream(b,L,_));case 16:return N=B.sent,B.abrupt("return",N);case 20:if(B.prev=20,B.t0=B.catch(13),!(B.t0.code==="RequestTimeTooSkewed")){B.next=29;break}return this.options.amendTimeSkewed=+new Date(B.t0.serverTime)-new Date,B.next=26,c.default.awrap(this.put(b,w,_));case 26:return B.abrupt("return",B.sent);case 29:throw B.t0;case 30:B.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return _.headers=_.headers||{},this._convertMetaToHeaders(_.meta,_.headers),D=_.method||"PUT",R=this._objectRequestParams(D,b,_),s.encodeCallback(R,_),R.mime=_.mime,R.content=I,R.successStatuses=[200],B.next=43,c.default.awrap(this.request(R));case 43:return k=B.sent,M={name:b,url:this._objectUrl(b),res:k.res},R.headers&&R.headers["x-oss-callback"]&&(M.data=JSON.parse(k.data.toString())),B.abrupt("return",M);case 47:case"end":return B.stop()}},null,this,[[13,20]])},E.putStream=function(b,w,_){var I,L,N,D;return c.default.async(function(k){for(;;)switch(k.prev=k.next){case 0:return _=_||{},_.headers=_.headers||{},b=this._objectName(b),_.contentLength?_.headers["Content-Length"]=_.contentLength:_.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(_.meta,_.headers),I=_.method||"PUT",L=this._objectRequestParams(I,b,_),s.encodeCallback(L,_),L.mime=_.mime,L.stream=w,L.successStatuses=[200],k.next=13,c.default.awrap(this.request(L));case 13:return N=k.sent,D={name:b,url:this._objectUrl(b),res:N.res},L.headers&&L.headers["x-oss-callback"]&&(D.data=JSON.parse(N.data.toString())),k.abrupt("return",D);case 17:case"end":return k.stop()}},null,this)},h(E,H("../common/object/copyObject")),h(E,H("../common/object/getObjectTagging")),h(E,H("../common/object/putObjectTagging")),h(E,H("../common/object/deleteObjectTagging")),h(E,H("../common/image")),h(E,H("../common/object/getBucketVersions")),h(E,H("../common/object/getACL")),h(E,H("../common/object/putACL")),h(E,H("../common/object/head")),h(E,H("../common/object/delete")),h(E,H("../common/object/get")),h(E,H("../common/object/putSymlink")),h(E,H("../common/object/getSymlink")),h(E,H("../common/object/deleteMulti")),h(E,H("../common/object/getObjectMeta")),E.putMeta=function(b,w,_){var I;return c.default.async(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,c.default.awrap(this.copy(b,b,{meta:w||{},timeout:_&&_.timeout,ctx:_&&_.ctx}));case 2:return I=N.sent,N.abrupt("return",I);case 4:case"end":return N.stop()}},null,this)},E.list=function(b,w){var _,I,L,N,D;return c.default.async(function(k){for(;;)switch(k.prev=k.next){case 0:return _=this._objectRequestParams("GET","",w),_.query=b,_.xmlResponse=!0,_.successStatuses=[200],k.next=6,c.default.awrap(this.request(_));case 6:return I=k.sent,L=I.data.Contents,N=this,L&&(Array.isArray(L)||(L=[L]),L=L.map(function(M){return{name:M.Key,url:N._objectUrl(M.Key),lastModified:M.LastModified,etag:M.ETag,type:M.Type,size:Number(M.Size),storageClass:M.StorageClass,owner:{id:M.Owner.ID,displayName:M.Owner.DisplayName}}})),D=I.data.CommonPrefixes||null,D&&(Array.isArray(D)||(D=[D]),D=D.map(function(M){return M.Prefix})),k.abrupt("return",{res:I.res,objects:L,prefixes:D,nextMarker:I.data.NextMarker||null,isTruncated:I.data.IsTruncated==="true"});case 13:case"end":return k.stop()}},null,this)},E.restore=function(b,w){var _,I;return c.default.async(function(N){for(;;)switch(N.prev=N.next){case 0:return w=w||{},w.subres=(0,g.default)({restore:""},w.subres),w.versionId&&(w.subres.versionId=w.versionId),_=this._objectRequestParams("POST",b,w),_.successStatuses=[202],N.next=7,c.default.awrap(this.request(_));case 7:return I=N.sent,N.abrupt("return",{res:I.res});case 9:case"end":return N.stop()}},null,this)},E.signatureUrl=function(b,w){w=w||{},b=this._objectName(b),w.method=w.method||"GET";var _=r.timestamp()+(w.expires||1800),I={bucket:this.options.bucket,object:b},L=this._getResource(I);this.options.stsToken&&(w["security-token"]=this.options.stsToken);var N=u._signatureForURL(this.options.accessKeySecret,w,L,_),D=e.parse(this._getReqUrl(I));return D.query={OSSAccessKeyId:this.options.accessKeyId,Expires:_,Signature:N.Signature},l(N.subResource).to(D.query),D.format()},E.getObjectUrl=function(b,w){return w?w[w.length-1]!=="/"&&(w+="/"):w=this.options.endpoint.format(),w+this._escape(this._objectName(b))},E._objectUrl=function(b){return this._getReqUrl({bucket:this.options.bucket,object:b})},E.generateObjectUrl=function(T,b){if(b)b[b.length-1]!=="/"&&(b+="/");else{b=this.options.endpoint.format();var w=e.parse(b),_=this.options.bucket;w.hostname=_+"."+w.hostname,w.host=_+"."+w.host,b=w.format()}return b+this._escape(this._objectName(T))},E._objectRequestParams=function(b,w,_){if(!this.options.bucket)throw new Error("Please create a bucket first");_=_||{},w=this._objectName(w);var I={object:w,bucket:this.options.bucket,method:b,subres:_&&_.subres,timeout:_&&_.timeout,ctx:_&&_.ctx};return _.headers&&(I.headers={},l(_.headers).to(I.headers)),I},E._objectName=function(b){return b.replace(/^\/+/,"")},E._convertMetaToHeaders=function(b,w){if(!b)return;(0,A.default)(b).forEach(function(_){w["x-oss-meta-"+_]=b[_]})},E._deleteFileSafe=function(b){var w=this;return new x.default(function(_){i.exists(b,function(I){I?i.unlink(b,function(L){L&&w.debug("unlink %j error: %s",b,L,"error"),_()}):_()})})}},{"../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(H,F,d){"use strict";d.version="6.10.0"},{}],6:[function(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=C(O);function C(f){return f&&f.__esModule?f:{default:f}}var A=H("../utils/checkBucketName"),S=A.checkBucketName,g=d;g.deleteBucketLifecycle=function(c,o){var r,i;return x.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return S(c),r=this._bucketRequestParams("DELETE",c,"lifecycle",o),r.successStatuses=[204],e.next=5,x.default.awrap(this.request(r));case 5:return i=e.sent,e.abrupt("return",{res:i.res});case 7:case"end":return e.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=C(O);function C(f){return f&&f.__esModule?f:{default:f}}var A=H("../utils/checkBucketName"),S=A.checkBucketName,g=d;g.deleteBucketWebsite=function(c,o){var r,i;return x.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return S(c),r=this._bucketRequestParams("DELETE",c,"website",o),r.successStatuses=[204],e.next=5,x.default.awrap(this.request(r));case 5:return i=e.sent,e.abrupt("return",{res:i.res});case 7:case"end":return e.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=C(O);function C(i){return i&&i.__esModule?i:{default:i}}var A=H("../utils/checkBucketName"),S=A.checkBucketName,g=H("../utils/isArray"),f=g.isArray,c=H("../utils/formatObjKey"),o=c.formatObjKey,r=d;r.getBucketLifecycle=function(n,e){var l,t,a;return x.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return S(n),l=this._bucketRequestParams("GET",n,"lifecycle",e),l.successStatuses=[200],l.xmlResponse=!0,u.next=6,x.default.awrap(this.request(l));case 6:return t=u.sent,a=t.data.Rule||null,a&&(f(a)||(a=[a]),a=a.map(function(h){return h.ID&&(h.id=h.ID,delete h.ID),h.Tag&&!f(h.Tag)&&(h.Tag=[h.Tag]),o(h,"firstLowerCase")})),u.abrupt("return",{rules:a,res:t.res});case 10:case"end":return u.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/formatObjKey":40,"../utils/isArray":42,"babel-runtime/regenerator":68}],9:[function(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=C(O);function C(f){return f&&f.__esModule?f:{default:f}}var A=H("../utils/checkBucketName"),S=A.checkBucketName,g=d;g.getBucketVersioning=function(c,o){var r,i,n;return x.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return S(c),r=this._bucketRequestParams("GET",c,"versioning",o),r.xmlResponse=!0,r.successStatuses=[200],l.next=6,x.default.awrap(this.request(r));case 6:return i=l.sent,n=i.data.Status,l.abrupt("return",{status:i.status,versionStatus:n,res:i.res});case 9:case"end":return l.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=C(O);function C(o){return o&&o.__esModule?o:{default:o}}var A=H("../utils/checkBucketName"),S=A.checkBucketName,g=H("../utils/isObject"),f=g.isObject,c=d;c.getBucketWebsite=function(r,i){var n,e,l;return x.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return S(r),n=this._bucketRequestParams("GET",r,"website",i),n.successStatuses=[200],n.xmlResponse=!0,a.next=6,x.default.awrap(this.request(n));case 6:return e=a.sent,l=[],e.data.RoutingRules&&e.data.RoutingRules.RoutingRule&&(f(e.data.RoutingRules.RoutingRule)?l=[e.data.RoutingRules.RoutingRule]:l=e.data.RoutingRules.RoutingRule),a.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 a.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isObject":46,"babel-runtime/regenerator":68}],11:[function(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=C(O);function C(y){return y&&y.__esModule?y:{default:y}}var A=H("../utils/checkBucketName"),S=A.checkBucketName,g=H("../utils/isArray"),f=g.isArray,c=H("../utils/deepCopy"),o=c.deepCopy,r=H("../utils/isObject"),i=r.isObject,n=H("../utils/obj2xml"),e=n.obj2xml,l=H("../utils/checkObjectTag"),t=l.checkObjectTag,a=H("../utils/getStrBytesCount"),s=a.getStrBytesCount,u=d;u.putBucketLifecycle=function(E,T,b){var w,_,I,L,N;return x.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:if(S(E),f(T)){R.next=3;break}throw new Error("rules must be Array");case 3:return w=this._bucketRequestParams("PUT",E,"lifecycle",b),_=[],I={LifecycleConfiguration:{Rule:_}},T.forEach(function(k){h(k),v(k),k.id&&(k.ID=k.id,delete k.id),_.push(k)}),L=e(I,{headers:!0,firstUpperCase:!0}),w.content=L,w.mime="xml",w.successStatuses=[200],R.next=13,x.default.awrap(this.request(w));case 13:return N=R.sent,R.abrupt("return",{res:N.res});case 15:case"end":return R.stop()}},null,this)};function h(y){y.days&&(y.expiration={days:y.days}),y.date&&(y.expiration={createdBeforeDate:y.date})}function p(y,E){var T=y.days,b=y.createdBeforeDate;if(!T&&!b)throw new Error(E+" must includes days or createdBeforeDate");if(T&&!/^[1-9][0-9]*$/.test(T))throw new Error("days must be a positive integer");if(b&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(b))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function m(y){if(!f(y)&&!i(y))throw new Error("tag must be Object or Array");y=i(y)?[y]:y;var E={},T=o(y);T.forEach(function(b){E[b.key]=b.value}),t(E)}function v(y){if(y.id&&s(y.id)>255)throw new Error("ID is composed of 255 bytes at most");if(y.prefix===""||y.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(y.status))throw new Error("Status must be Enabled or Disabled");if(y.transition){if(!["IA","Archive"].includes(y.transition.storageClass))throw new Error("StorageClass must be IA or Archive");p(y.transition,"Transition")}if(y.expiration){if(!y.expiration.expiredObjectDeleteMarker)p(y.expiration,"Expiration");else if(y.expiration.days||y.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(y.abortMultipartUpload&&p(y.abortMultipartUpload,"AbortMultipartUpload"),!y.expiration&&!y.abortMultipartUpload&&!y.transition&&!y.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(y.tag){if(y.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");m(y.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(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=C(O);function C(o){return o&&o.__esModule?o:{default:o}}var A=H("../utils/checkBucketName"),S=A.checkBucketName,g=H("../utils/obj2xml"),f=g.obj2xml,c=d;c.putBucketVersioning=function(r,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,l,t;return x.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:if(S(r),["Enabled","Suspended"].includes(i)){s.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return e=this._bucketRequestParams("PUT",r,"versioning",n),l={VersioningConfiguration:{Status:i}},e.mime="xml",e.content=f(l,{headers:!0}),s.next=9,x.default.awrap(this.request(e));case 9:return t=s.sent,s.abrupt("return",{res:t.res,status:t.status});case 11:case"end":return s.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=C(O);function C(i){return i&&i.__esModule?i:{default:i}}var A=H("../utils/checkBucketName"),S=A.checkBucketName,g=H("../utils/obj2xml"),f=g.obj2xml,c=H("../utils/isArray"),o=c.isArray,r=d;r.putBucketWebsite=function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments[2],t,a,s,u,h;return x.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:if(S(n),t=this._bucketRequestParams("PUT",n,"website",l),a={Suffix:e.index||"index.html"},s={IndexDocument:a},u={WebsiteConfiguration:s},e.supportSubDir&&(a.SupportSubDir=e.supportSubDir),e.type&&(a.Type=e.type),e.error&&(s.ErrorDocument={Key:e.error}),!(e.routingRules!==void 0)){m.next=12;break}if(o(e.routingRules)){m.next=11;break}throw new Error("RoutingRules must be Array");case 11:s.RoutingRules={RoutingRule:e.routingRules};case 12:return u=f(u),t.content=u,t.mime="xml",t.successStatuses=[200],m.next=18,x.default.awrap(this.request(t));case 18:return h=m.sent,m.abrupt("return",{res:h.res});case 20:case"end":return m.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(H,F,d){(function(O){"use strict";var x=H("babel-runtime/core-js/object/keys"),C=g(x),A=H("babel-runtime/core-js/json/stringify"),S=g(A);function g(f){return f&&f.__esModule?f:{default:f}}d.encodeCallback=function(c,o){if(c.headers=c.headers||{},!Object.prototype.hasOwnProperty.call(c.headers,"x-oss-callback")&&o.callback){var r={callbackUrl:encodeURI(o.callback.url),callbackBody:o.callback.body};o.callback.host&&(r.callbackHost=o.callback.host),o.callback.contentType&&(r.callbackBodyType=o.callback.contentType);var i=O.from((0,S.default)(r)).toString("base64");if(c.headers["x-oss-callback"]=i,o.callback.customValue){var n={};(0,C.default)(o.callback.customValue).forEach(function(e){n["x:"+e]=o.callback.customValue[e]}),c.headers["x-oss-callback-var"]=O.from((0,S.default)(n)).toString("base64")}}}}).call(this,H("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(H,F,d){"use strict";var O=H("babel-runtime/core-js/object/assign"),x=C(O);function C(r){return r&&r.__esModule?r:{default:r}}var A=H("humanize-ms"),S=H("url"),g=H("../utils/checkBucketName"),f=g.checkBucketName;function c(r,i){var n=S.parse(r);if(n.protocol||(n=S.parse("http"+(i?"s":"")+"://"+r)),n.protocol!=="http:"&&n.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return n}function o(r,i,n){var e=n?"https://":"http://",l=i?"-internal.aliyuncs.com":".aliyuncs.com",t="vpc100-oss-cn-";return r.substr(0,t.length)===t&&(l=".aliyuncs.com"),S.parse(e+r+l)}F.exports=function(r){if(!r||!r.accessKeyId||!r.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");r.bucket&&f(r.bucket);var i=(0,x.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},r);if(i.accessKeyId=i.accessKeyId.trim(),i.accessKeySecret=i.accessKeySecret.trim(),i.timeout&&(i.timeout=A(i.timeout)),i.endpoint)i.endpoint=c(i.endpoint,i.secure);else if(i.region)i.endpoint=o(i.region,i.internal,i.secure);else throw new Error("require options.endpoint or options.region");return i.inited=!0,i}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(H,F,d){"use strict";var O=H("merge-descriptors"),x=d;O(x,H("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=C(O);function C(i){return i&&i.__esModule?i:{default:i}}var A=H("../utils/checkBucketName"),S=A.checkBucketName,g=H("querystring"),f=H("js-base64"),c=f.Base64.encode,o=d;o.processObjectSave=function(n,e,l,t){var a,s,u,h;return x.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return r(n,"sourceObject"),r(e,"targetObject"),r(l,"process"),e=this._objectName(e),t&&S(t),a=this._objectRequestParams("POST",n,{subres:"x-oss-process"}),s=t?",b_"+c(t):"",e=c(e),u={"x-oss-process":l+"|sys/saveas,o_"+e+s},a.content=g.stringify(u),m.next=12,x.default.awrap(this.request(a));case 12:return h=m.sent,m.abrupt("return",{res:h.res,status:h.res.status});case 14:case"end":return m.stop()}},null,this)};function r(i,n){if(!i)throw new Error(n+" is required");if(typeof i!="string")throw new Error(n+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=C(O);function C(o){return o&&o.__esModule?o:{default:o}}var A=H("copy-to"),S=H("./callback"),g=H("./utils/deepCopy"),f=g.deepCopy,c=d;c.listUploads=function(r,i){var n,e,l,t;return x.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return i=i||{},n={},A(i).to(n),n.subres="uploads",e=this._objectRequestParams("GET","",n),e.query=r,e.xmlResponse=!0,e.successStatuses=[200],s.next=10,x.default.awrap(this.request(e));case 10:return l=s.sent,t=l.data.Upload||[],Array.isArray(t)||(t=[t]),t=t.map(function(u){return{name:u.Key,uploadId:u.UploadId,initiated:u.Initiated}}),s.abrupt("return",{res:l.res,uploads:t,bucket:l.data.Bucket,nextKeyMarker:l.data.NextKeyMarker,nextUploadIdMarker:l.data.NextUploadIdMarker,isTruncated:l.data.IsTruncated==="true"});case 15:case"end":return s.stop()}},null,this)},c.listParts=function(r,i,n,e){var l,t,a;return x.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return e=e||{},l={},A(e).to(l),l.subres={uploadId:i},t=this._objectRequestParams("GET",r,l),t.query=n,t.xmlResponse=!0,t.successStatuses=[200],u.next=10,x.default.awrap(this.request(t));case 10:return a=u.sent,u.abrupt("return",{res:a.res,uploadId:a.data.UploadId,bucket:a.data.Bucket,name:a.data.Key,partNumberMarker:a.data.PartNumberMarker,nextPartNumberMarker:a.data.NextPartNumberMarker,maxParts:a.data.MaxParts,isTruncated:a.data.IsTruncated,parts:a.data.Part||[]});case 12:case"end":return u.stop()}},null,this)},c.abortMultipartUpload=function(r,i,n){var e,l,t;return x.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return this._stop(),n=n||{},e={},A(n).to(e),e.subres={uploadId:i},l=this._objectRequestParams("DELETE",r,e),l.successStatuses=[204],s.next=9,x.default.awrap(this.request(l));case 9:return t=s.sent,s.abrupt("return",{res:t.res});case 11:case"end":return s.stop()}},null,this)},c.initMultipartUpload=function(r,i){var n,e,l;return x.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return i=i||{},n={},A(i).to(n),n.headers=n.headers||{},this._convertMetaToHeaders(i.meta,n.headers),n.subres="uploads",e=this._objectRequestParams("POST",r,n),e.mime=i.mime,e.xmlResponse=!0,e.successStatuses=[200],a.next=12,x.default.awrap(this.request(e));case 12:return l=a.sent,a.abrupt("return",{res:l.res,bucket:l.data.Bucket,name:l.data.Key,uploadId:l.data.UploadId});case 14:case"end":return a.stop()}},null,this)},c.uploadPart=function(r,i,n,e,l,t,a){var s;return x.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return s={stream:this._createStream(e,l,t),size:t-l},h.next=3,x.default.awrap(this._uploadPart(r,i,n,s,a));case 3:return h.abrupt("return",h.sent);case 4:case"end":return h.stop()}},null,this)},c.completeMultipartUpload=function(r,i,n,e){var l,t,a,s,u,h,p,m;return x.default.async(function(y){for(;;)switch(y.prev=y.next){case 0:for(l=n.concat().sort(function(E,T){return E.number-T.number}).filter(function(E,T,b){return!T||E.number!==b[T-1].number}),t=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,a=0;a<l.length;a++)s=l[a],t+=`<Part>
|
|
|
`,t+="<PartNumber>"+s.number+`</PartNumber>
|
|
|
`,t+="<ETag>"+s.etag+`</ETag>
|
|
|
`,t+=`</Part>
|
|
|
`;return t+="</CompleteMultipartUpload>",e=e||{},u={},u=f(e),u.headers&&delete u.headers["x-oss-server-side-encryption"],u.subres={uploadId:i},h=this._objectRequestParams("POST",r,u),S.encodeCallback(h,u),h.mime="xml",h.content=t,h.headers&&h.headers["x-oss-callback"]||(h.xmlResponse=!0),h.successStatuses=[200],y.next=17,x.default.awrap(this.request(h));case 17:return p=y.sent,m={res:p.res,bucket:h.bucket,name:r,etag:p.res.headers.etag},h.headers&&h.headers["x-oss-callback"]&&(m.data=JSON.parse(p.data.toString())),y.abrupt("return",m);case 21:case"end":return y.stop()}},null,this)},c._uploadPart=function(r,i,n,e,l){var t,a,s;return x.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return l=l||{},t={},A(l).to(t),t.headers={"Content-Length":e.size},t.subres={partNumber:n,uploadId:i},a=this._objectRequestParams("PUT",r,t),a.mime=t.mime,a.stream=e.stream,a.successStatuses=[200],h.next=11,x.default.awrap(this.request(a));case 11:if(s=h.sent,s.res.headers.etag){h.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,a.stream=null,h.abrupt("return",{name:r,etag:s.res.headers.etag,res:s.res});case 17:case"end":return h.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=f(O),C=H("babel-runtime/core-js/object/keys"),A=f(C),S=H("babel-runtime/helpers/typeof"),g=f(S);function f(i){return i&&i.__esModule?i:{default:i}}var c=H("../utils/checkBucketName"),o=c.checkBucketName,r=d;r.copy=function(n,e,l,t){var a,s,u;return x.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return(typeof l=="undefined"?"undefined":(0,g.default)(l))==="object"&&(t=l),t=t||{},t.headers=t.headers||{},(0,A.default)(t.headers).forEach(function(m){t.headers["x-oss-copy-source-"+m.toLowerCase()]=t.headers[m]}),t.meta&&(t.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(t.meta,t.headers),e=this._getSourceName(e,l),t.versionId&&(e=e+"?versionId="+t.versionId),t.headers["x-oss-copy-source"]=e,a=this._objectRequestParams("PUT",n,t),a.xmlResponse=!0,a.successStatuses=[200,304],p.next=14,x.default.awrap(this.request(a));case 14:return s=p.sent,u=s.data,u&&(u={etag:u.ETag,lastModified:u.LastModified}),p.abrupt("return",{data:u,res:s.res});case 18:case"end":return p.stop()}},null,this)},r._getSourceName=function(n,e){return typeof e=="string"?n=this._objectName(n):n[0]!=="/"?e=this.options.bucket:(e=n.replace(/\/(.+?)(\/.*)/,"$1"),n=n.replace(/(\/.+?\/)(.*)/,"$2")),o(e),n=encodeURI(n),n="/"+e+"/"+n,n}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=S(O),C=H("babel-runtime/core-js/object/assign"),A=S(C);function S(f){return f&&f.__esModule?f:{default:f}}var g=d;g.delete=function(c){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i;return x.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o.subres=(0,A.default)({},o.subres),o.versionId&&(o.subres.versionId=o.versionId),r=this._objectRequestParams("DELETE",c,o),r.successStatuses=[204],e.next=6,x.default.awrap(this.request(r));case 6:return i=e.sent,e.abrupt("return",{res:i.res});case 8:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=S(O),C=H("babel-runtime/core-js/object/assign"),A=S(C);function S(r){return r&&r.__esModule?r:{default:r}}var g=H("utility"),f=H("../utils/obj2xml"),c=f.obj2xml,o=d;o.deleteMulti=function(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e,l,t,a,s,u,h,p,m,v,y,E;return x.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:if(e=[],!(!i||!i.length)){b.next=3;break}throw new Error("names is required");case 3:for(l=0;l<i.length;l++)t={},typeof i[l]=="string"?t.Key=g.escape(this._objectName(i[l])):(a=i[l],s=a.key,u=a.versionId,t.Key=g.escape(this._objectName(s)),t.VersionId=u),e.push(t);return h={Delete:{Quiet:!!n.quiet,Object:e}},p=c(h,{headers:!0}),n.subres=(0,A.default)({delete:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),m=this._objectRequestParams("POST","",n),m.mime="xml",m.content=p,m.xmlResponse=!0,m.successStatuses=[200],b.next=15,x.default.awrap(this.request(m));case 15:return v=b.sent,y=v.data,E=y&&y.Deleted||null,E&&(Array.isArray(E)||(E=[E])),b.abrupt("return",{res:v.res,deleted:E||[]});case 20:case"end":return b.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=S(O),C=H("babel-runtime/core-js/object/assign"),A=S(C);function S(f){return f&&f.__esModule?f:{default:f}}var g=d;g.deleteObjectTagging=function(c){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i;return x.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o.subres=(0,A.default)({tagging:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),c=this._objectName(c),r=this._objectRequestParams("DELETE",c,o),r.successStatuses=[204],e.next=7,x.default.awrap(this.request(r));case 7:return i=e.sent,e.abrupt("return",{status:i.status,res:i.res});case 9:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=S(O),C=H("babel-runtime/core-js/object/assign"),A=S(C);function S(o){return o&&o.__esModule?o:{default:o}}var g=H("fs"),f=H("is-type-of"),c=d;c.get=function(r,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,l,t,a;return x.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return e=null,l=!1,f.writableStream(i)?e=i:f.string(i)?(e=g.createWriteStream(i),l=!0):n=i,n=n||{},n.subres=(0,A.default)({},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.process&&(n.subres["x-oss-process"]=n.process),t=void 0,u.prev=8,a=this._objectRequestParams("GET",r,n),a.writeStream=e,a.successStatuses=[200,206,304],u.next=14,x.default.awrap(this.request(a));case 14:t=u.sent,l&&e.destroy(),u.next=25;break;case 18:if(u.prev=18,u.t0=u.catch(8),!l){u.next=24;break}return e.destroy(),u.next=24,x.default.awrap(this._deleteFileSafe(i));case 24:throw u.t0;case 25:return u.abrupt("return",{res:t.res,content:t.data});case 26:case"end":return u.stop()}},null,this,[[8,18]])}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,fs:71,"is-type-of":289}],24:[function(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=S(O),C=H("babel-runtime/core-js/object/assign"),A=S(C);function S(f){return f&&f.__esModule?f:{default:f}}var g=d;g.getACL=function(c){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i;return x.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o.subres=(0,A.default)({acl:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),c=this._objectName(c),r=this._objectRequestParams("GET",c,o),r.successStatuses=[200],r.xmlResponse=!0,e.next=8,x.default.awrap(this.request(r));case 8:return i=e.sent,e.abrupt("return",{acl:i.data.AccessControlList.Grant,owner:{id:i.data.Owner.ID,displayName:i.data.Owner.DisplayName},res:i.res});case 10:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(H,F,d){"use strict";var O=H("babel-runtime/core-js/object/keys"),x=f(O),C=H("babel-runtime/regenerator"),A=f(C),S=H("babel-runtime/core-js/object/assign"),g=f(S);function f(a){return a&&a.__esModule?a:{default:a}}var c=d,o=H("../utils/isObject"),r=o.isObject,i=H("../utils/isArray"),n=i.isArray;c.getBucketVersions=e,c.listObjectVersions=e;function e(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,h,p,m,v,y;return A.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:if(!(a.versionIdMarker&&a.keyMarker===void 0)){T.next=2;break}throw new Error("A version-id marker cannot be specified without a key marker");case 2:return s.subres=(0,g.default)({versions:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),u=this._objectRequestParams("GET","",s),u.xmlResponse=!0,u.successStatuses=[200],u.query=t(a),T.next=10,A.default.awrap(this.request(u));case 10:return h=T.sent,p=h.data.Version||[],m=h.data.DeleteMarker||[],v=this,p&&(Array.isArray(p)||(p=[p]),p=p.map(function(b){return{name:b.Key,url:v._objectUrl(b.Key),lastModified:b.LastModified,isLatest:b.IsLatest==="true",versionId:b.VersionId,etag:b.ETag,type:b.Type,size:Number(b.Size),storageClass:b.StorageClass,owner:{id:b.Owner.ID,displayName:b.Owner.DisplayName}}})),m&&(n(m)||(m=[m]),m=m.map(function(b){return{name:b.Key,lastModified:b.LastModified,versionId:b.VersionId,owner:{id:b.Owner.ID,displayName:b.Owner.DisplayName}}})),y=h.data.CommonPrefixes||null,y&&(n(y)||(y=[y]),y=y.map(function(b){return b.Prefix})),T.abrupt("return",{res:h.res,objects:p,deleteMarker:m,prefixes:y,nextMarker:h.data.NextMarker||null,NextVersionIdMarker:h.data.NextVersionIdMarker||null,isTruncated:h.data.IsTruncated==="true"});case 19:case"end":return T.stop()}},null,this)}function l(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()}function t(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s={};return r(a)&&(0,x.default)(a).forEach(function(u){s[l(u)]=a[u]}),s}},{"../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(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=S(O),C=H("babel-runtime/core-js/object/assign"),A=S(C);function S(f){return f&&f.__esModule?f:{default:f}}var g=d;g.getObjectMeta=function(c,o){var r,i;return x.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o=o||{},c=this._objectName(c),o.subres=(0,A.default)({objectMeta:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),r=this._objectRequestParams("HEAD",c,o),r.successStatuses=[200],e.next=8,x.default.awrap(this.request(r));case 8:return i=e.sent,e.abrupt("return",{status:i.status,res:i.res});case 10:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=S(O),C=H("babel-runtime/core-js/object/assign"),A=S(C);function S(o){return o&&o.__esModule?o:{default:o}}var g=d,f=H("../utils/isObject"),c=f.isObject;g.getObjectTagging=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,e,l,t,a;return x.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return i.subres=(0,A.default)({tagging:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),r=this._objectName(r),n=this._objectRequestParams("GET",r,i),n.successStatuses=[200],u.next=7,x.default.awrap(this.request(n));case 7:return e=u.sent,u.next=10,x.default.awrap(this.parseXML(e.data));case 10:return l=u.sent,t=l.TagSet.Tag,t=t&&c(t)?[t]:t||[],a={},t.forEach(function(h){a[h.Key]=h.Value}),u.abrupt("return",{status:e.status,res:e.res,tag:a});case 16:case"end":return u.stop()}},null,this)}},{"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],28:[function(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=S(O),C=H("babel-runtime/core-js/object/assign"),A=S(C);function S(f){return f&&f.__esModule?f:{default:f}}var g=d;g.getSymlink=function(c){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,n;return x.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return o.subres=(0,A.default)({symlink:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),c=this._objectName(c),r=this._objectRequestParams("GET",c,o),r.successStatuses=[200],l.next=7,x.default.awrap(this.request(r));case 7:return i=l.sent,n=i.res.headers["x-oss-symlink-target"],l.abrupt("return",{targetName:decodeURIComponent(n),res:i.res});case 10:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=f(O),C=H("babel-runtime/core-js/object/keys"),A=f(C),S=H("babel-runtime/core-js/object/assign"),g=f(S);function f(o){return o&&o.__esModule?o:{default:o}}var c=d;c.head=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,e,l;return x.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return i.subres=(0,g.default)({},i.subres),i.versionId&&(i.subres.versionId=i.versionId),n=this._objectRequestParams("HEAD",r,i),n.successStatuses=[200,304],a.next=6,x.default.awrap(this.request(n));case 6:return e=a.sent,l={meta:null,res:e.res,status:e.status},e.status===200&&(0,A.default)(e.headers).forEach(function(s){s.indexOf("x-oss-meta-")===0&&(l.meta||(l.meta={}),l.meta[s.substring(11)]=e.headers[s])}),a.abrupt("return",l);case 10:case"end":return a.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],30:[function(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=S(O),C=H("babel-runtime/core-js/object/assign"),A=S(C);function S(f){return f&&f.__esModule?f:{default:f}}var g=d;g.putACL=function(c,o,r){var i,n;return x.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return r=r||{},r.subres=(0,A.default)({acl:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),r.headers=r.headers||{},r.headers["x-oss-object-acl"]=o,c=this._objectName(c),i=this._objectRequestParams("PUT",c,r),i.successStatuses=[200],l.next=10,x.default.awrap(this.request(i));case 10:return n=l.sent,l.abrupt("return",{res:n.res});case 12:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=f(O),C=H("babel-runtime/core-js/object/keys"),A=f(C),S=H("babel-runtime/core-js/object/assign"),g=f(S);function f(e){return e&&e.__esModule?e:{default:e}}var c=H("../utils/obj2xml"),o=c.obj2xml,r=H("../utils/checkObjectTag"),i=r.checkObjectTag,n=d;n.putObjectTagging=function(l,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,u,h;return x.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return i(t),a.subres=(0,g.default)({tagging:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),l=this._objectName(l),s=this._objectRequestParams("PUT",l,a),s.successStatuses=[200],t=(0,A.default)(t).map(function(v){return{Key:v,Value:t[v]}}),u={Tagging:{TagSet:{Tag:t}}},s.mime="xml",s.content=o(u),m.next=12,x.default.awrap(this.request(s));case 12:return h=m.sent,m.abrupt("return",{res:h.res,status:h.status});case 14:case"end":return m.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(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=S(O),C=H("babel-runtime/core-js/object/assign"),A=S(C);function S(f){return f&&f.__esModule?f:{default:f}}var g=d;g.putSymlink=function(c,o,r){var i,n;return x.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return r=r||{},r.headers=r.headers||{},o=this._escape(this._objectName(o)),this._convertMetaToHeaders(r.meta,r.headers),r.headers["x-oss-symlink-target"]=o,r.subres=(0,A.default)({symlink:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),r.storageClass&&(r.headers["x-oss-storage-class"]=r.storageClass),c=this._objectName(c),i=this._objectRequestParams("PUT",c,r),i.successStatuses=[200],l.next=13,x.default.awrap(this.request(i));case 13:return n=l.sent,l.abrupt("return",{res:n.res});case 15:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(H,F,d){"use strict";var O=H("babel-runtime/regenerator"),x=S(O),C=H("babel-runtime/core-js/promise"),A=S(C);function S(f){return f&&f.__esModule?f:{default:f}}var g=d;g._parallelNode=function(c,o,r,i){var n,e,l,t,a,s,u,h;return x.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:n=this,e=[],l=[],t=c.length/o,a=c.length%o,s=a===0?t:(c.length-a)/o+1,u=1,h=0;case 8:if(!(h<c.length)){m.next=26;break}if(!n.isCancel()){m.next=11;break}return m.abrupt("break",26);case 11:if(i?l.push(r(n,c[h],i)):l.push(r(n,c[h])),!(l.length===o||u===s&&h===c.length-1)){m.next=23;break}return m.prev=13,u+=1,m.next=17,x.default.awrap(A.default.all(l));case 17:m.next=22;break;case 19:m.prev=19,m.t0=m.catch(13),e.push(m.t0);case 22:l=[];case 23:h++,m.next=8;break;case 26:return m.abrupt("return",e);case 27:case"end":return m.stop()}},null,this,[[13,19]])},g._parallel=function(c,o,r){var i=this;return new A.default(function(n){var e=[];if(o<=0||!c){n(e);return}function l(y){return function(){if(y===null)throw new Error("Callback was already called.");var E=y;y=null;for(var T=arguments.length,b=Array(T),w=0;w<T;w++)b[w]=arguments[w];E.apply(this,b)}}function t(y){var E=-1,T=y.length;return function(){return++E<T&&!i.isCancel()?{value:y[E],key:E}:null}}var a=t(c),s=!1,u=0,h=!1;function p(y,E){u-=1,y?(s=!0,e.push(y),n(e)):E==={}||s&&u<=0?(s=!0,n(e)):h||(i.isCancel()?n(e):v())}function m(y,E){r(y).then(function(T){E(null,T)}).catch(function(T){E(T)})}function v(){for(h=!0;u<o&&!s&&!i.isCancel();){var y=a();if(y===null||e.length>0){s=!0,u<=0&&n(e);return}u+=1,m(y.value,l(p))}h=!1}v()})},g.cancel=function(c){this.options.cancelFlag=!0,c&&this.abortMultipartUpload(c.name,c.uploadId,c.options)},g.isCancel=function(){return this.options.cancelFlag},g.resetCancelFlag=function(){this.options.cancelFlag=!1},g._stop=function(){this.options.cancelFlag=!0},g._makeCancelEvent=function(){var c={status:0,name:"cancel"};return c}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(H,F,d){(function(O){"use strict";var x=H("babel-runtime/core-js/json/stringify"),C=g(x),A=H("babel-runtime/core-js/object/keys"),S=g(A);function g(o){return o&&o.__esModule?o:{default:o}}var f=H("./../../shims/crypto/crypto.js"),c=H("is-type-of");d.buildCanonicalizedResource=function(r,i){var n=""+r,e="?";if(c.string(i)&&i.trim()!=="")n+=e+i;else if(c.array(i))i.sort(),n+=e+i.join("&");else if(i){var l=function(s,u){return s[0]>u[0]?1:s[0]<u[0]?-1:0},t=function(s){n+=e+s,i[s]&&(n+="="+i[s]),e="&"};(0,S.default)(i).sort(l).forEach(t)}return n},d.buildCanonicalString=function(r,i,n,e){n=n||{};var l=n.headers||{},t="x-oss-",a=[],s={},u=[r.toUpperCase(),l["Content-Md5"]||"",l["Content-Type"]||l["Content-Type".toLowerCase()],e||l["x-oss-date"]];return(0,S.default)(l).forEach(function(h){var p=h.toLowerCase();p.indexOf(t)===0&&(s[p]=String(l[h]).trim())}),(0,S.default)(s).sort().forEach(function(h){a.push(h+":"+s[h])}),u=u.concat(a),u.push(this.buildCanonicalizedResource(i,n.parameters)),u.join(`
|
|
|
`)},d.computeSignature=function(r,i){var n=f.createHmac("sha1",r);return n.update(O.from(i,"utf8")).digest("base64")},d.authorization=function(r,i,n){return"OSS "+r+":"+this.computeSignature(i,n)},d._signatureForURL=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments[2],e=arguments[3],l={},t=i.subResource,a=t===void 0?{}:t;if(i.process){var s="x-oss-process";a[s]=i.process}if(i.trafficLimit){var u="x-oss-traffic-limit";a[u]=i.trafficLimit}if(i.response&&(0,S.default)(i.response).forEach(function(v){var y="response-"+v.toLowerCase();a[y]=i.response[v]}),(0,S.default)(i).forEach(function(v){var y=v.toLowerCase(),E=i[v];y.indexOf("x-oss-")===0?l[y]=E:(y.indexOf("content-md5")===0||y.indexOf("content-type")===0)&&(l[v]=E)}),Object.prototype.hasOwnProperty.call(i,"security-token")&&(a["security-token"]=i["security-token"]),Object.prototype.hasOwnProperty.call(i,"callback")){var h={callbackUrl:encodeURI(i.callback.url),callbackBody:i.callback.body};if(i.callback.host&&(h.callbackHost=i.callback.host),i.callback.contentType&&(h.callbackBodyType=i.callback.contentType),a.callback=O.from((0,C.default)(h)).toString("base64"),i.callback.customValue){var p={};(0,S.default)(i.callback.customValue).forEach(function(v){p["x:"+v]=i.callback.customValue[v]}),a["callback-var"]=O.from((0,C.default)(p)).toString("base64")}}var m=this.buildCanonicalString(i.method,n,{headers:l,parameters:a},e.toString());return{Signature:this.computeSignature(r,m),subResource:a}}}).call(this,H("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(H,F,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.checkBucketName=void 0,d.checkBucketName=function(O,x){var C=x?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!C.test(O))throw new Error("The bucket must be conform to the specifications")}},{}],36:[function(H,F,d){"use strict";var O=H("babel-runtime/core-js/object/entries"),x=C(O);function C(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(d,"__esModule",{value:!0}),d.checkObjectTag=void 0;var A=H("./checkValid"),S=A.checkValid,g=H("./isObject"),f=g.isObject,c=[{validator:function(n){if(typeof n!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],o={key:[].concat(c,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(c,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function r(i){if(!f(i))throw new Error("tag must be Object");var n=(0,x.default)(i);if(n.length>10)throw new Error("maximum of 10 tags for a object");var e=["key","value"];n.forEach(function(l){l.forEach(function(t,a){S(t,o[e[a]])})})}d.checkObjectTag=r},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(H,F,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.checkValid=void 0;function O(x,C){C.forEach(function(A){if(A.validator)A.validator(x);else if(A.pattern&&!A.pattern.test(x))throw new Error(A.msg)})}d.checkValid=O},{}],38:[function(H,F,d){(function(O){"use strict";var x=H("babel-runtime/core-js/object/assign"),C=A(x);function A(l){return l&&l.__esModule?l:{default:l}}Object.defineProperty(d,"__esModule",{value:!0}),d.createRequest=void 0;var S=H("./../../../shims/crypto/crypto.js"),g=H("debug")("ali-oss"),f=H("mime"),c=H("dateformat"),o=H("copy-to"),r=H("path");function i(l,t){return l[t]||l[t.toLowerCase()]}function n(l,t){delete l[t],delete l[t.toLowerCase()]}function e(l){var t=new Date;this.options.amendTimeSkewed&&(t=+new Date+this.options.amendTimeSkewed);var a={"x-oss-date":c(t,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(a["User-Agent"]=this.userAgent),this.options.isRequestPay&&(0,C.default)(a,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(a["x-oss-security-token"]=this.options.stsToken),o(l.headers).to(a),i(a,"Content-Type")||(l.mime&&l.mime.indexOf("/")>0?a["Content-Type"]=l.mime:a["Content-Type"]=f.getType(l.mime||r.extname(l.object||""))),i(a,"Content-Type")||n(a,"Content-Type"),l.content&&(a["Content-Md5"]=S.createHash("md5").update(O.from(l.content,"utf8")).digest("base64"),a["Content-Length"]||(a["Content-Length"]=l.content.length));var s=this._getResource(l);a.authorization=this.authorization(l.method,s,l.subres,a);var u=this._getReqUrl(l);g("request %s %s, with headers %j, !!stream: %s",l.method,u,a,!!l.stream);var h=l.timeout||this.options.timeout,p={method:l.method,content:l.content,stream:l.stream,headers:a,timeout:h,writeStream:l.writeStream,customResponse:l.customResponse,ctx:l.ctx||this.ctx};return this.agent&&(p.agent=this.agent),this.httpsAgent&&(p.httpsAgent=this.httpsAgent),{url:u,params:p}}d.createRequest=e}).call(this,H("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(H,F,d){"use strict";var O=H("babel-runtime/core-js/object/keys"),x=S(O),C=H("babel-runtime/helpers/typeof"),A=S(C);function S(g){return g&&g.__esModule?g:{default:g}}Object.defineProperty(d,"__esModule",{value:!0}),d.deepCopy=void 0,d.deepCopy=function(g){if(g===null||(typeof g=="undefined"?"undefined":(0,A.default)(g))!=="object")return g;var f=Array.isArray(g)?[]:{};return(0,x.default)(g).forEach(function(c){f[c]=d.deepCopy(g[c])}),f}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(H,F,d){"use strict";var O=H("babel-runtime/core-js/object/keys"),x=S(O),C=H("babel-runtime/helpers/typeof"),A=S(C);function S(c){return c&&c.__esModule?c:{default:c}}Object.defineProperty(d,"__esModule",{value:!0}),d.formatObjKey=void 0;function g(c,o){if(c===null||(typeof c=="undefined"?"undefined":(0,A.default)(c))!=="object")return c;var r=void 0;if(Array.isArray(c)){r=[];for(var i=0;i<c.length;i++)r.push(g(c[i],o))}else r={},(0,x.default)(c).forEach(function(n){r[f(n,o)]=g(c[n],o)});return r}d.formatObjKey=g;function f(c,o){return o==="firstUpperCase"?c=c.replace(/^./,function(r){return r.toUpperCase()}):o==="firstLowerCase"&&(c=c.replace(/^./,function(r){return r.toLowerCase()})),c}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(H,F,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.getStrBytesCount=void 0;function O(x){for(var C=0,A=0;A<x.length;A++){var S=x.charAt(A);/^[\u00-\uff]$/.test(S)?C+=1:C+=2}return C}d.getStrBytesCount=O},{}],42:[function(H,F,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isArray=void 0,d.isArray=function(O){return Object.prototype.toString.call(O)==="[object Array]"}},{}],43:[function(H,F,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isBlob=void 0;function O(x){return typeof Blob!="undefined"&&x instanceof Blob}d.isBlob=O},{}],44:[function(H,F,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isFile=void 0,d.isFile=function(O){return typeof File!="undefined"&&O instanceof File}},{}],45:[function(H,F,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isIP=void 0,d.isIP=function(O){var x=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,C=/^\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 x.test(O)||C.test(O)}},{}],46:[function(H,F,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isObject=void 0,d.isObject=function(O){return Object.prototype.toString.call(O)==="[object Object]"}},{}],47:[function(H,F,d){"use strict";var O=H("babel-runtime/core-js/object/keys"),x=C(O);function C(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(d,"__esModule",{value:!0}),d.obj2xml=void 0;var A=H("./formatObjKey");function S(f){return Object.prototype.toString.call(f).replace(/(.*? |])/g,"").toLowerCase()}function g(f,c){var o="";return c&&c.headers&&(o=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),c&&c.firstUpperCase&&(f=A.formatObjKey(f,"firstUpperCase")),S(f)==="object"?(0,x.default)(f).forEach(function(r){S(f[r])==="string"||S(f[r])==="number"?o+="<"+r+">"+f[r]+"</"+r+">":S(f[r])==="object"?o+="<"+r+">"+g(f[r])+"</"+r+">":S(f[r])==="array"?o+=f[r].map(function(i){return"<"+r+">"+g(i)+"</"+r+">"}).join(""):o+="<"+r+">"+f[r].toString()+"</"+r+">"}):o+=f.toString(),o}d.obj2xml=g},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(H,F,d){F.exports=O,F.exports.HttpsAgent=O;function O(){}},{}],49:[function(H,F,d){F.exports=H("./register")().Promise},{"./register":51}],50:[function(H,F,d){"use strict";var O="@@any-promise/REGISTRATION",x=null;F.exports=function(C,A){return function(g,f){g=g||null,f=f||{};var c=f.global!==!1;if(x===null&&c&&(x=C[O]||null),x!==null&&g!==null&&x.implementation!==g)throw new Error('any-promise already defined as "'+x.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return x===null&&(g!==null&&typeof f.Promise!="undefined"?x={Promise:f.Promise,implementation:g}:x=A(g),c&&(C[O]=x)),x}}},{}],51:[function(H,F,d){"use strict";F.exports=H("./loader")(window,O);function O(){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(H,F,d){F.exports={default:H("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(H,F,d){F.exports={default:H("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(H,F,d){F.exports={default:H("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(H,F,d){F.exports={default:H("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(H,F,d){F.exports={default:H("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(H,F,d){F.exports={default:H("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(H,F,d){F.exports={default:H("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(H,F,d){F.exports={default:H("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(H,F,d){F.exports={default:H("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(H,F,d){F.exports={default:H("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(H,F,d){F.exports={default:H("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(H,F,d){F.exports={default:H("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(H,F,d){F.exports={default:H("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(H,F,d){F.exports={default:H("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(H,F,d){F.exports={default:H("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(H,F,d){"use strict";d.__esModule=!0;var O=H("../core-js/symbol/iterator"),x=g(O),C=H("../core-js/symbol"),A=g(C),S=typeof A.default=="function"&&typeof x.default=="symbol"?function(f){return typeof f}:function(f){return f&&typeof A.default=="function"&&f.constructor===A.default&&f!==A.default.prototype?"symbol":typeof f};function g(f){return f&&f.__esModule?f:{default:f}}d.default=typeof A.default=="function"&&S(x.default)==="symbol"?function(f){return typeof f=="undefined"?"undefined":S(f)}:function(f){return f&&typeof A.default=="function"&&f.constructor===A.default&&f!==A.default.prototype?"symbol":typeof f=="undefined"?"undefined":S(f)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(H,F,d){F.exports=H("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(H,F,d){"use strict";d.byteLength=c,d.toByteArray=r,d.fromByteArray=e;for(var O=[],x=[],C=typeof Uint8Array!="undefined"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=0,g=A.length;S<g;++S)O[S]=A[S],x[A.charCodeAt(S)]=S;x["-".charCodeAt(0)]=62,x["_".charCodeAt(0)]=63;function f(l){var t=l.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=l.indexOf("=");a===-1&&(a=t);var s=a===t?0:4-a%4;return[a,s]}function c(l){var t=f(l),a=t[0],s=t[1];return(a+s)*3/4-s}function o(l,t,a){return(t+a)*3/4-a}function r(l){var t,a=f(l),s=a[0],u=a[1],h=new C(o(l,s,u)),p=0,m=u>0?s-4:s,v;for(v=0;v<m;v+=4)t=x[l.charCodeAt(v)]<<18|x[l.charCodeAt(v+1)]<<12|x[l.charCodeAt(v+2)]<<6|x[l.charCodeAt(v+3)],h[p++]=t>>16&255,h[p++]=t>>8&255,h[p++]=t&255;return u===2&&(t=x[l.charCodeAt(v)]<<2|x[l.charCodeAt(v+1)]>>4,h[p++]=t&255),u===1&&(t=x[l.charCodeAt(v)]<<10|x[l.charCodeAt(v+1)]<<4|x[l.charCodeAt(v+2)]>>2,h[p++]=t>>8&255,h[p++]=t&255),h}function i(l){return O[l>>18&63]+O[l>>12&63]+O[l>>6&63]+O[l&63]}function n(l,t,a){for(var s,u=[],h=t;h<a;h+=3)s=(l[h]<<16&16711680)+(l[h+1]<<8&65280)+(l[h+2]&255),u.push(i(s));return u.join("")}function e(l){for(var t,a=l.length,s=a%3,u=[],h=16383,p=0,m=a-s;p<m;p+=h)u.push(n(l,p,p+h>m?m:p+h));return s===1?(t=l[a-1],u.push(O[t>>2]+O[t<<4&63]+"==")):s===2&&(t=(l[a-2]<<8)+l[a-1],u.push(O[t>>10]+O[t>>4&63]+O[t<<2&63]+"=")),u.join("")}},{}],70:[function(H,F,d){/*!
|
|
|
* Bowser - a browser detector
|
|
|
* https://github.com/ded/bowser
|
|
|
* MIT License | (c) Dustin Diaz 2015
|
|
|
*/!function(O,x,C){typeof F!="undefined"&&F.exports?F.exports=C():typeof define=="function"&&define.amd?define(x,C):O[x]=C()}(this,"bowser",function(){var O=!0;function x(o){function r(U){var B=o.match(U);return B&&B.length>1&&B[1]||""}function i(U){var B=o.match(U);return B&&B.length>1&&B[2]||""}var n=r(/(ipod|iphone|ipad)/i).toLowerCase(),e=/like android/i.test(o),l=!e&&/android/i.test(o),t=/nexus\s*[0-6]\s*/i.test(o),a=!t&&/nexus\s*[0-9]+/i.test(o),s=/CrOS/.test(o),u=/silk/i.test(o),h=/sailfish/i.test(o),p=/tizen/i.test(o),m=/(web|hpw)(o|0)s/i.test(o),v=/windows phone/i.test(o),y=/SamsungBrowser/i.test(o),E=!v&&/windows/i.test(o),T=!n&&!u&&/macintosh/i.test(o),b=!l&&!h&&!p&&!m&&/linux/i.test(o),w=i(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),_=r(/version\/(\d+(\.\d+)?)/i),I=/tablet/i.test(o)&&!/tablet pc/i.test(o),L=!I&&/[^-]mobi/i.test(o),N=/xbox/i.test(o),D;/opera/i.test(o)?D={name:"Opera",opera:O,version:_||r(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(o)?D={name:"Opera",opera:O,version:r(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||_}:/SamsungBrowser/i.test(o)?D={name:"Samsung Internet for Android",samsungBrowser:O,version:_||r(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(o)?D={name:"NAVER Whale browser",whale:O,version:r(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(o)?D={name:"MZ Browser",mzbrowser:O,version:r(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(o)?D={name:"Opera Coast",coast:O,version:_||r(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(o)?D={name:"Focus",focus:O,version:r(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(o)?D={name:"Yandex Browser",yandexbrowser:O,version:_||r(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(o)?D={name:"UC Browser",ucbrowser:O,version:r(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(o)?D={name:"Maxthon",maxthon:O,version:r(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(o)?D={name:"Epiphany",epiphany:O,version:r(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(o)?D={name:"Puffin",puffin:O,version:r(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(o)?D={name:"Sleipnir",sleipnir:O,version:r(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(o)?D={name:"K-Meleon",kMeleon:O,version:r(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:v?(D={name:"Windows Phone",osname:"Windows Phone",windowsphone:O},w?(D.msedge=O,D.version=w):(D.msie=O,D.version=r(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(o)?D={name:"Internet Explorer",msie:O,version:r(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:s?D={name:"Chrome",osname:"Chrome OS",chromeos:O,chromeBook:O,chrome:O,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(o)?D={name:"Microsoft Edge",msedge:O,version:w}:/vivaldi/i.test(o)?D={name:"Vivaldi",vivaldi:O,version:r(/vivaldi\/(\d+(\.\d+)?)/i)||_}:h?D={name:"Sailfish",osname:"Sailfish OS",sailfish:O,version:r(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(o)?D={name:"SeaMonkey",seamonkey:O,version:r(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(o)?(D={name:"Firefox",firefox:O,version:r(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(o)&&(D.firefoxos=O,D.osname="Firefox OS")):u?D={name:"Amazon Silk",silk:O,version:r(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(o)?D={name:"PhantomJS",phantom:O,version:r(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(o)?D={name:"SlimerJS",slimer:O,version:r(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(o)||/rim\stablet/i.test(o)?D={name:"BlackBerry",osname:"BlackBerry OS",blackberry:O,version:_||r(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:m?(D={name:"WebOS",osname:"WebOS",webos:O,version:_||r(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(o)&&(D.touchpad=O)):/bada/i.test(o)?D={name:"Bada",osname:"Bada",bada:O,version:r(/dolfin\/(\d+(\.\d+)?)/i)}:p?D={name:"Tizen",osname:"Tizen",tizen:O,version:r(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||_}:/qupzilla/i.test(o)?D={name:"QupZilla",qupzilla:O,version:r(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||_}:/chromium/i.test(o)?D={name:"Chromium",chromium:O,version:r(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||_}:/chrome|crios|crmo/i.test(o)?D={name:"Chrome",chrome:O,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:l?D={name:"Android",version:_}:/safari|applewebkit/i.test(o)?(D={name:"Safari",safari:O},_&&(D.version=_)):n?(D={name:n=="iphone"?"iPhone":n=="ipad"?"iPad":"iPod"},_&&(D.version=_)):/googlebot/i.test(o)?D={name:"Googlebot",googlebot:O,version:r(/googlebot\/(\d+(\.\d+))/i)||_}:D={name:r(/^(.*)\/(.*) /),version:i(/^(.*)\/(.*) /)},!D.msedge&&/(apple)?webkit/i.test(o)?(/(apple)?webkit\/537\.36/i.test(o)?(D.name=D.name||"Blink",D.blink=O):(D.name=D.name||"Webkit",D.webkit=O),!D.version&&_&&(D.version=_)):!D.opera&&/gecko\//i.test(o)&&(D.name=D.name||"Gecko",D.gecko=O,D.version=D.version||r(/gecko\/(\d+(\.\d+)?)/i)),!D.windowsphone&&(l||D.silk)?(D.android=O,D.osname="Android"):!D.windowsphone&&n?(D[n]=O,D.ios=O,D.osname="iOS"):T?(D.mac=O,D.osname="macOS"):N?(D.xbox=O,D.osname="Xbox"):E?(D.windows=O,D.osname="Windows"):b&&(D.linux=O,D.osname="Linux");function R(U){switch(U){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 k="";D.windows?k=R(r(/Windows ((NT|XP)( \d\d?.\d)?)/i)):D.windowsphone?k=r(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):D.mac?(k=r(/Mac OS X (\d+([_\.\s]\d+)*)/i),k=k.replace(/[_\s]/g,".")):n?(k=r(/os (\d+([_\s]\d+)*) like mac os x/i),k=k.replace(/[_\s]/g,".")):l?k=r(/android[ \/-](\d+(\.\d+)*)/i):D.webos?k=r(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):D.blackberry?k=r(/rim\stablet\sos\s(\d+(\.\d+)*)/i):D.bada?k=r(/bada\/(\d+(\.\d+)*)/i):D.tizen&&(k=r(/tizen[\/\s](\d+(\.\d+)*)/i)),k&&(D.osversion=k);var M=!D.windows&&k.split(".")[0];return I||a||n=="ipad"||l&&(M==3||M>=4&&!L)||D.silk?D.tablet=O:(L||n=="iphone"||n=="ipod"||l||t||D.blackberry||D.webos||D.bada)&&(D.mobile=O),D.msedge||D.msie&&D.version>=10||D.yandexbrowser&&D.version>=15||D.vivaldi&&D.version>=1||D.chrome&&D.version>=20||D.samsungBrowser&&D.version>=4||D.whale&&g([D.version,"1.0"])===1||D.mzbrowser&&g([D.version,"6.0"])===1||D.focus&&g([D.version,"1.0"])===1||D.firefox&&D.version>=20||D.safari&&D.version>=6||D.opera&&D.version>=10||D.ios&&D.osversion&&D.osversion.split(".")[0]>=6||D.blackberry&&D.version>=10.1||D.chromium&&D.version>=20?D.a=O:D.msie&&D.version<10||D.chrome&&D.version<20||D.firefox&&D.version<20||D.safari&&D.version<6||D.opera&&D.version<10||D.ios&&D.osversion&&D.osversion.split(".")[0]<6||D.chromium&&D.version<20?D.c=O:D.x=O,D}var C=x(typeof navigator!="undefined"&&navigator.userAgent||"");C.test=function(o){for(var r=0;r<o.length;++r){var i=o[r];if(typeof i=="string"&&i in C)return!0}return!1};function A(o){return o.split(".").length}function S(o,r){var i=[],n;if(Array.prototype.map)return Array.prototype.map.call(o,r);for(n=0;n<o.length;n++)i.push(r(o[n]));return i}function g(o){for(var r=Math.max(A(o[0]),A(o[1])),i=S(o,function(n){var e=r-A(n);return n=n+new Array(e+1).join(".0"),S(n.split("."),function(l){return new Array(20-l.length).join("0")+l}).reverse()});--r>=0;){if(i[0][r]>i[1][r])return 1;if(i[0][r]===i[1][r]){if(r===0)return 0}else return-1}}function f(o,r,i){var n=C;typeof r=="string"&&(i=r,r=void 0),r===void 0&&(r=!1),i&&(n=x(i));var e=""+n.version;for(var l in o)if(o.hasOwnProperty(l)&&n[l]){if(typeof o[l]!="string")throw new Error("Browser version in the minVersion map should be a string: "+l+": "+String(o));return g([e,o[l]])<0}return r}function c(o,r,i){return!f(o,r,i)}return C.isUnsupportedBrowser=f,C.compareVersions=g,C.check=c,C._detect=x,C.detect=x,C})},{}],71:[function(H,F,d){},{}],72:[function(H,F,d){var O=H("buffer").Buffer,x=O.isEncoding||function(c){switch(c&&c.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 C(c){if(c&&!x(c))throw new Error("Unknown encoding: "+c)}var A=d.StringDecoder=function(c){this.encoding=(c||"utf8").toLowerCase().replace(/[-_]/,""),C(c);switch(this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=g;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=f;break;default:this.write=S;return}this.charBuffer=new O(6),this.charReceived=0,this.charLength=0};A.prototype.write=function(c){for(var o="";this.charLength;){var r=c.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:c.length;if(c.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";c=c.slice(r,c.length),o=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var n=o.charCodeAt(o.length-1);if(n>=55296&&n<=56319){this.charLength+=this.surrogateSize,o="";continue}if(this.charReceived=this.charLength=0,c.length===0)return o;break}this.detectIncompleteChar(c);var i=c.length;this.charLength&&(c.copy(this.charBuffer,0,c.length-this.charReceived,i),i-=this.charReceived),o+=c.toString(this.encoding,0,i);var i=o.length-1,n=o.charCodeAt(i);if(n>=55296&&n<=56319){var e=this.surrogateSize;return this.charLength+=e,this.charReceived+=e,this.charBuffer.copy(this.charBuffer,e,0,e),c.copy(this.charBuffer,0,0,e),o.substring(0,i)}return o},A.prototype.detectIncompleteChar=function(c){for(var o=c.length>=3?3:c.length;o>0;o--){var r=c[c.length-o];if(o==1&&r>>5==6){this.charLength=2;break}if(o<=2&&r>>4==14){this.charLength=3;break}if(o<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=o},A.prototype.end=function(c){var o="";if(c&&c.length&&(o=this.write(c)),this.charReceived){var r=this.charReceived,i=this.charBuffer,n=this.encoding;o+=i.slice(0,r).toString(n)}return o};function S(c){return c.toString(this.encoding)}function g(c){this.charReceived=c.length%2,this.charLength=this.charReceived?2:0}function f(c){this.charReceived=c.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(H,F,d){(function(O,x){/*!
|
|
|
* The buffer module from node.js, for the browser.
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
|
* @license MIT
|
|
|
*/"use strict";var C=H("base64-js"),A=H("ieee754"),S=H("isarray");d.Buffer=x,d.SlowBuffer=u,d.INSPECT_MAX_BYTES=50,x.TYPED_ARRAY_SUPPORT=O.TYPED_ARRAY_SUPPORT!==void 0?O.TYPED_ARRAY_SUPPORT:g(),d.kMaxLength=f();function g(){try{var ae=new Uint8Array(1);return ae.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ae.foo()===42&&typeof ae.subarray=="function"&&ae.subarray(1,1).byteLength===0}catch(Q){return!1}}function f(){return x.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(ae,Q){if(f()<Q)throw new RangeError("Invalid typed array length");return x.TYPED_ARRAY_SUPPORT?(ae=new Uint8Array(Q),ae.__proto__=x.prototype):(ae===null&&(ae=new x(Q)),ae.length=Q),ae}function x(ae,Q,G){if(!x.TYPED_ARRAY_SUPPORT&&!(this instanceof x))return new x(ae,Q,G);if(typeof ae=="number"){if(typeof Q=="string")throw new Error("If encoding is specified then the first argument must be a string");return n(this,ae)}return o(this,ae,Q,G)}x.poolSize=8192,x._augment=function(ae){return ae.__proto__=x.prototype,ae};function o(ae,Q,G,Y){if(typeof Q=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&Q instanceof ArrayBuffer?t(ae,Q,G,Y):typeof Q=="string"?e(ae,Q,G):a(ae,Q)}x.from=function(ae,Q,G){return o(null,ae,Q,G)},x.TYPED_ARRAY_SUPPORT&&(x.prototype.__proto__=Uint8Array.prototype,x.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&x[Symbol.species]===x&&Object.defineProperty(x,Symbol.species,{value:null,configurable:!0}));function r(ae){if(typeof ae!="number")throw new TypeError('"size" argument must be a number');if(ae<0)throw new RangeError('"size" argument must not be negative')}function i(ae,Q,G,Y){return r(Q),Q<=0?c(ae,Q):G!==void 0?typeof Y=="string"?c(ae,Q).fill(G,Y):c(ae,Q).fill(G):c(ae,Q)}x.alloc=function(ae,Q,G){return i(null,ae,Q,G)};function n(ae,Q){if(r(Q),ae=c(ae,Q<0?0:s(Q)|0),!x.TYPED_ARRAY_SUPPORT)for(var G=0;G<Q;++G)ae[G]=0;return ae}x.allocUnsafe=function(ae){return n(null,ae)},x.allocUnsafeSlow=function(ae){return n(null,ae)};function e(ae,Q,G){if((typeof G!="string"||G==="")&&(G="utf8"),!x.isEncoding(G))throw new TypeError('"encoding" must be a valid string encoding');var Y=h(Q,G)|0;ae=c(ae,Y);var me=ae.write(Q,G);return me!==Y&&(ae=ae.slice(0,me)),ae}function l(ae,Q){var G=Q.length<0?0:s(Q.length)|0;ae=c(ae,G);for(var Y=0;Y<G;Y+=1)ae[Y]=Q[Y]&255;return ae}function t(ae,Q,G,Y){if(Q.byteLength,G<0||Q.byteLength<G)throw new RangeError("'offset' is out of bounds");if(Q.byteLength<G+(Y||0))throw new RangeError("'length' is out of bounds");return G===void 0&&Y===void 0?Q=new Uint8Array(Q):Y===void 0?Q=new Uint8Array(Q,G):Q=new Uint8Array(Q,G,Y),x.TYPED_ARRAY_SUPPORT?(ae=Q,ae.__proto__=x.prototype):ae=l(ae,Q),ae}function a(ae,Q){if(x.isBuffer(Q)){var G=s(Q.length)|0;return ae=c(ae,G),ae.length===0||Q.copy(ae,0,0,G),ae}if(Q){if(typeof ArrayBuffer!="undefined"&&Q.buffer instanceof ArrayBuffer||"length"in Q)return typeof Q.length!="number"||Ve(Q.length)?c(ae,0):l(ae,Q);if(Q.type==="Buffer"&&S(Q.data))return l(ae,Q.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function s(ae){if(ae>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return ae|0}function u(ae){return+ae!=ae&&(ae=0),x.alloc(+ae)}x.isBuffer=function(Q){return!!(Q!=null&&Q._isBuffer)},x.compare=function(Q,G){if(!x.isBuffer(Q)||!x.isBuffer(G))throw new TypeError("Arguments must be Buffers");if(Q===G)return 0;for(var Y=Q.length,me=G.length,ue=0,Ce=Math.min(Y,me);ue<Ce;++ue)if(Q[ue]!==G[ue]){Y=Q[ue],me=G[ue];break}return Y<me?-1:me<Y?1:0},x.isEncoding=function(Q){switch(String(Q).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}},x.concat=function(Q,G){if(!S(Q))throw new TypeError('"list" argument must be an Array of Buffers');if(Q.length===0)return x.alloc(0);var Y;if(G===void 0)for(G=0,Y=0;Y<Q.length;++Y)G+=Q[Y].length;var me=x.allocUnsafe(G),ue=0;for(Y=0;Y<Q.length;++Y){var Ce=Q[Y];if(!x.isBuffer(Ce))throw new TypeError('"list" argument must be an Array of Buffers');Ce.copy(me,ue),ue+=Ce.length}return me};function h(ae,Q){if(x.isBuffer(ae))return ae.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(ae)||ae instanceof ArrayBuffer))return ae.byteLength;typeof ae!="string"&&(ae=""+ae);var G=ae.length;if(G===0)return 0;for(var Y=!1;;)switch(Q){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":case void 0:return Ue(ae).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return se(ae).length;default:if(Y)return Ue(ae).length;Q=(""+Q).toLowerCase(),Y=!0}}x.byteLength=h;function p(ae,Q,G){var Y=!1;if((Q===void 0||Q<0)&&(Q=0),Q>this.length)return"";if((G===void 0||G>this.length)&&(G=this.length),G<=0)return"";if(G>>>=0,Q>>>=0,G<=Q)return"";for(ae||(ae="utf8");;)switch(ae){case"hex":return U(this,Q,G);case"utf8":case"utf-8":return N(this,Q,G);case"ascii":return k(this,Q,G);case"latin1":case"binary":return M(this,Q,G);case"base64":return L(this,Q,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,Q,G);default:if(Y)throw new TypeError("Unknown encoding: "+ae);ae=(ae+"").toLowerCase(),Y=!0}}x.prototype._isBuffer=!0;function m(ae,Q,G){var Y=ae[Q];ae[Q]=ae[G],ae[G]=Y}x.prototype.swap16=function(){var Q=this.length;if(Q%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var G=0;G<Q;G+=2)m(this,G,G+1);return this},x.prototype.swap32=function(){var Q=this.length;if(Q%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var G=0;G<Q;G+=4)m(this,G,G+3),m(this,G+1,G+2);return this},x.prototype.swap64=function(){var Q=this.length;if(Q%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var G=0;G<Q;G+=8)m(this,G,G+7),m(this,G+1,G+6),m(this,G+2,G+5),m(this,G+3,G+4);return this},x.prototype.toString=function(){var Q=this.length|0;return Q===0?"":arguments.length===0?N(this,0,Q):p.apply(this,arguments)},x.prototype.equals=function(Q){if(!x.isBuffer(Q))throw new TypeError("Argument must be a Buffer");return this===Q?!0:x.compare(this,Q)===0},x.prototype.inspect=function(){var Q="",G=d.INSPECT_MAX_BYTES;return this.length>0&&(Q=this.toString("hex",0,G).match(/.{2}/g).join(" "),this.length>G&&(Q+=" ... ")),"<Buffer "+Q+">"},x.prototype.compare=function(Q,G,Y,me,ue){if(!x.isBuffer(Q))throw new TypeError("Argument must be a Buffer");if(G===void 0&&(G=0),Y===void 0&&(Y=Q?Q.length:0),me===void 0&&(me=0),ue===void 0&&(ue=this.length),G<0||Y>Q.length||me<0||ue>this.length)throw new RangeError("out of range index");if(me>=ue&&G>=Y)return 0;if(me>=ue)return-1;if(G>=Y)return 1;if(G>>>=0,Y>>>=0,me>>>=0,ue>>>=0,this===Q)return 0;for(var Ce=ue-me,Ie=Y-G,ce=Math.min(Ce,Ie),Ae=this.slice(me,ue),Te=Q.slice(G,Y),Ge=0;Ge<ce;++Ge)if(Ae[Ge]!==Te[Ge]){Ce=Ae[Ge],Ie=Te[Ge];break}return Ce<Ie?-1:Ie<Ce?1:0};function v(ae,Q,G,Y,me){if(ae.length===0)return-1;if(typeof G=="string"?(Y=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,isNaN(G)&&(G=me?0:ae.length-1),G<0&&(G=ae.length+G),G>=ae.length){if(me)return-1;G=ae.length-1}else if(G<0)if(me)G=0;else return-1;if(typeof Q=="string"&&(Q=x.from(Q,Y)),x.isBuffer(Q))return Q.length===0?-1:y(ae,Q,G,Y,me);if(typeof Q=="number")return Q=Q&255,x.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?me?Uint8Array.prototype.indexOf.call(ae,Q,G):Uint8Array.prototype.lastIndexOf.call(ae,Q,G):y(ae,[Q],G,Y,me);throw new TypeError("val must be string, number or Buffer")}function y(ae,Q,G,Y,me){var ue=1,Ce=ae.length,Ie=Q.length;if(Y!==void 0&&(Y=String(Y).toLowerCase(),Y==="ucs2"||Y==="ucs-2"||Y==="utf16le"||Y==="utf-16le")){if(ae.length<2||Q.length<2)return-1;ue=2,Ce/=2,Ie/=2,G/=2}function ce(qe,Le){return ue===1?qe[Le]:qe.readUInt16BE(Le*ue)}var Ae;if(me){var Te=-1;for(Ae=G;Ae<Ce;Ae++)if(ce(ae,Ae)===ce(Q,Te===-1?0:Ae-Te)){if(Te===-1&&(Te=Ae),Ae-Te+1===Ie)return Te*ue}else Te!==-1&&(Ae-=Ae-Te),Te=-1}else for(G+Ie>Ce&&(G=Ce-Ie),Ae=G;Ae>=0;Ae--){for(var Ge=!0,gt=0;gt<Ie;gt++)if(ce(ae,Ae+gt)!==ce(Q,gt)){Ge=!1;break}if(Ge)return Ae}return-1}x.prototype.includes=function(Q,G,Y){return this.indexOf(Q,G,Y)!==-1},x.prototype.indexOf=function(Q,G,Y){return v(this,Q,G,Y,!0)},x.prototype.lastIndexOf=function(Q,G,Y){return v(this,Q,G,Y,!1)};function E(ae,Q,G,Y){G=Number(G)||0;var me=ae.length-G;Y?(Y=Number(Y),Y>me&&(Y=me)):Y=me;var ue=Q.length;if(ue%2!==0)throw new TypeError("Invalid hex string");Y>ue/2&&(Y=ue/2);for(var Ce=0;Ce<Y;++Ce){var Ie=parseInt(Q.substr(Ce*2,2),16);if(isNaN(Ie))return Ce;ae[G+Ce]=Ie}return Ce}function T(ae,Q,G,Y){return te(Ue(Q,ae.length-G),ae,G,Y)}function b(ae,Q,G,Y){return te(fe(Q),ae,G,Y)}function w(ae,Q,G,Y){return b(ae,Q,G,Y)}function _(ae,Q,G,Y){return te(se(Q),ae,G,Y)}function I(ae,Q,G,Y){return te(ke(Q,ae.length-G),ae,G,Y)}x.prototype.write=function(Q,G,Y,me){if(G===void 0)me="utf8",Y=this.length,G=0;else if(Y===void 0&&typeof G=="string")me=G,Y=this.length,G=0;else if(isFinite(G))G=G|0,isFinite(Y)?(Y=Y|0,me===void 0&&(me="utf8")):(me=Y,Y=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ue=this.length-G;if((Y===void 0||Y>ue)&&(Y=ue),Q.length>0&&(Y<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");me||(me="utf8");for(var Ce=!1;;)switch(me){case"hex":return E(this,Q,G,Y);case"utf8":case"utf-8":return T(this,Q,G,Y);case"ascii":return b(this,Q,G,Y);case"latin1":case"binary":return w(this,Q,G,Y);case"base64":return _(this,Q,G,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,Q,G,Y);default:if(Ce)throw new TypeError("Unknown encoding: "+me);me=(""+me).toLowerCase(),Ce=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(ae,Q,G){return Q===0&&G===ae.length?C.fromByteArray(ae):C.fromByteArray(ae.slice(Q,G))}function N(ae,Q,G){G=Math.min(ae.length,G);for(var Y=[],me=Q;me<G;){var ue=ae[me],Ce=null,Ie=ue>239?4:ue>223?3:ue>191?2:1;if(me+Ie<=G){var ce,Ae,Te,Ge;switch(Ie){case 1:ue<128&&(Ce=ue);break;case 2:ce=ae[me+1],(ce&192)===128&&(Ge=(ue&31)<<6|ce&63,Ge>127&&(Ce=Ge));break;case 3:ce=ae[me+1],Ae=ae[me+2],(ce&192)===128&&(Ae&192)===128&&(Ge=(ue&15)<<12|(ce&63)<<6|Ae&63,Ge>2047&&(Ge<55296||Ge>57343)&&(Ce=Ge));break;case 4:ce=ae[me+1],Ae=ae[me+2],Te=ae[me+3],(ce&192)===128&&(Ae&192)===128&&(Te&192)===128&&(Ge=(ue&15)<<18|(ce&63)<<12|(Ae&63)<<6|Te&63,Ge>65535&&Ge<1114112&&(Ce=Ge))}}Ce===null?(Ce=65533,Ie=1):Ce>65535&&(Ce-=65536,Y.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),Y.push(Ce),me+=Ie}return R(Y)}var D=4096;function R(ae){var Q=ae.length;if(Q<=D)return String.fromCharCode.apply(String,ae);for(var G="",Y=0;Y<Q;)G+=String.fromCharCode.apply(String,ae.slice(Y,Y+=D));return G}function k(ae,Q,G){var Y="";G=Math.min(ae.length,G);for(var me=Q;me<G;++me)Y+=String.fromCharCode(ae[me]&127);return Y}function M(ae,Q,G){var Y="";G=Math.min(ae.length,G);for(var me=Q;me<G;++me)Y+=String.fromCharCode(ae[me]);return Y}function U(ae,Q,G){var Y=ae.length;(!Q||Q<0)&&(Q=0),(!G||G<0||G>Y)&&(G=Y);for(var me="",ue=Q;ue<G;++ue)me+=_e(ae[ue]);return me}function B(ae,Q,G){for(var Y=ae.slice(Q,G),me="",ue=0;ue<Y.length;ue+=2)me+=String.fromCharCode(Y[ue]+Y[ue+1]*256);return me}x.prototype.slice=function(Q,G){var Y=this.length;Q=~~Q,G=G===void 0?Y:~~G,Q<0?(Q+=Y,Q<0&&(Q=0)):Q>Y&&(Q=Y),G<0?(G+=Y,G<0&&(G=0)):G>Y&&(G=Y),G<Q&&(G=Q);var me;if(x.TYPED_ARRAY_SUPPORT)me=this.subarray(Q,G),me.__proto__=x.prototype;else{var ue=G-Q;me=new x(ue,void 0);for(var Ce=0;Ce<ue;++Ce)me[Ce]=this[Ce+Q]}return me};function j(ae,Q,G){if(ae%1!==0||ae<0)throw new RangeError("offset is not uint");if(ae+Q>G)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUIntLE=function(Q,G,Y){Q=Q|0,G=G|0,Y||j(Q,G,this.length);for(var me=this[Q],ue=1,Ce=0;++Ce<G&&(ue*=256);)me+=this[Q+Ce]*ue;return me},x.prototype.readUIntBE=function(Q,G,Y){Q=Q|0,G=G|0,Y||j(Q,G,this.length);for(var me=this[Q+--G],ue=1;G>0&&(ue*=256);)me+=this[Q+--G]*ue;return me},x.prototype.readUInt8=function(Q,G){return G||j(Q,1,this.length),this[Q]},x.prototype.readUInt16LE=function(Q,G){return G||j(Q,2,this.length),this[Q]|this[Q+1]<<8},x.prototype.readUInt16BE=function(Q,G){return G||j(Q,2,this.length),this[Q]<<8|this[Q+1]},x.prototype.readUInt32LE=function(Q,G){return G||j(Q,4,this.length),(this[Q]|this[Q+1]<<8|this[Q+2]<<16)+this[Q+3]*16777216},x.prototype.readUInt32BE=function(Q,G){return G||j(Q,4,this.length),this[Q]*16777216+(this[Q+1]<<16|this[Q+2]<<8|this[Q+3])},x.prototype.readIntLE=function(Q,G,Y){Q=Q|0,G=G|0,Y||j(Q,G,this.length);for(var me=this[Q],ue=1,Ce=0;++Ce<G&&(ue*=256);)me+=this[Q+Ce]*ue;return ue*=128,me>=ue&&(me-=Math.pow(2,8*G)),me},x.prototype.readIntBE=function(Q,G,Y){Q=Q|0,G=G|0,Y||j(Q,G,this.length);for(var me=G,ue=1,Ce=this[Q+--me];me>0&&(ue*=256);)Ce+=this[Q+--me]*ue;return ue*=128,Ce>=ue&&(Ce-=Math.pow(2,8*G)),Ce},x.prototype.readInt8=function(Q,G){return G||j(Q,1,this.length),this[Q]&128?(255-this[Q]+1)*-1:this[Q]},x.prototype.readInt16LE=function(Q,G){G||j(Q,2,this.length);var Y=this[Q]|this[Q+1]<<8;return Y&32768?Y|4294901760:Y},x.prototype.readInt16BE=function(Q,G){G||j(Q,2,this.length);var Y=this[Q+1]|this[Q]<<8;return Y&32768?Y|4294901760:Y},x.prototype.readInt32LE=function(Q,G){return G||j(Q,4,this.length),this[Q]|this[Q+1]<<8|this[Q+2]<<16|this[Q+3]<<24},x.prototype.readInt32BE=function(Q,G){return G||j(Q,4,this.length),this[Q]<<24|this[Q+1]<<16|this[Q+2]<<8|this[Q+3]},x.prototype.readFloatLE=function(Q,G){return G||j(Q,4,this.length),A.read(this,Q,!0,23,4)},x.prototype.readFloatBE=function(Q,G){return G||j(Q,4,this.length),A.read(this,Q,!1,23,4)},x.prototype.readDoubleLE=function(Q,G){return G||j(Q,8,this.length),A.read(this,Q,!0,52,8)},x.prototype.readDoubleBE=function(Q,G){return G||j(Q,8,this.length),A.read(this,Q,!1,52,8)};function W(ae,Q,G,Y,me,ue){if(!x.isBuffer(ae))throw new TypeError('"buffer" argument must be a Buffer instance');if(Q>me||Q<ue)throw new RangeError('"value" argument is out of bounds');if(G+Y>ae.length)throw new RangeError("Index out of range")}x.prototype.writeUIntLE=function(Q,G,Y,me){if(Q=+Q,G=G|0,Y=Y|0,!me){var ue=Math.pow(2,8*Y)-1;W(this,Q,G,Y,ue,0)}var Ce=1,Ie=0;for(this[G]=Q&255;++Ie<Y&&(Ce*=256);)this[G+Ie]=Q/Ce&255;return G+Y},x.prototype.writeUIntBE=function(Q,G,Y,me){if(Q=+Q,G=G|0,Y=Y|0,!me){var ue=Math.pow(2,8*Y)-1;W(this,Q,G,Y,ue,0)}var Ce=Y-1,Ie=1;for(this[G+Ce]=Q&255;--Ce>=0&&(Ie*=256);)this[G+Ce]=Q/Ie&255;return G+Y},x.prototype.writeUInt8=function(Q,G,Y){return Q=+Q,G=G|0,Y||W(this,Q,G,1,255,0),x.TYPED_ARRAY_SUPPORT||(Q=Math.floor(Q)),this[G]=Q&255,G+1};function V(ae,Q,G,Y){Q<0&&(Q=65535+Q+1);for(var me=0,ue=Math.min(ae.length-G,2);me<ue;++me)ae[G+me]=(Q&255<<8*(Y?me:1-me))>>>(Y?me:1-me)*8}x.prototype.writeUInt16LE=function(Q,G,Y){return Q=+Q,G=G|0,Y||W(this,Q,G,2,65535,0),x.TYPED_ARRAY_SUPPORT?(this[G]=Q&255,this[G+1]=Q>>>8):V(this,Q,G,!0),G+2},x.prototype.writeUInt16BE=function(Q,G,Y){return Q=+Q,G=G|0,Y||W(this,Q,G,2,65535,0),x.TYPED_ARRAY_SUPPORT?(this[G]=Q>>>8,this[G+1]=Q&255):V(this,Q,G,!1),G+2};function z(ae,Q,G,Y){Q<0&&(Q=4294967295+Q+1);for(var me=0,ue=Math.min(ae.length-G,4);me<ue;++me)ae[G+me]=Q>>>(Y?me:3-me)*8&255}x.prototype.writeUInt32LE=function(Q,G,Y){return Q=+Q,G=G|0,Y||W(this,Q,G,4,4294967295,0),x.TYPED_ARRAY_SUPPORT?(this[G+3]=Q>>>24,this[G+2]=Q>>>16,this[G+1]=Q>>>8,this[G]=Q&255):z(this,Q,G,!0),G+4},x.prototype.writeUInt32BE=function(Q,G,Y){return Q=+Q,G=G|0,Y||W(this,Q,G,4,4294967295,0),x.TYPED_ARRAY_SUPPORT?(this[G]=Q>>>24,this[G+1]=Q>>>16,this[G+2]=Q>>>8,this[G+3]=Q&255):z(this,Q,G,!1),G+4},x.prototype.writeIntLE=function(Q,G,Y,me){if(Q=+Q,G=G|0,!me){var ue=Math.pow(2,8*Y-1);W(this,Q,G,Y,ue-1,-ue)}var Ce=0,Ie=1,ce=0;for(this[G]=Q&255;++Ce<Y&&(Ie*=256);)Q<0&&ce===0&&this[G+Ce-1]!==0&&(ce=1),this[G+Ce]=(Q/Ie>>0)-ce&255;return G+Y},x.prototype.writeIntBE=function(Q,G,Y,me){if(Q=+Q,G=G|0,!me){var ue=Math.pow(2,8*Y-1);W(this,Q,G,Y,ue-1,-ue)}var Ce=Y-1,Ie=1,ce=0;for(this[G+Ce]=Q&255;--Ce>=0&&(Ie*=256);)Q<0&&ce===0&&this[G+Ce+1]!==0&&(ce=1),this[G+Ce]=(Q/Ie>>0)-ce&255;return G+Y},x.prototype.writeInt8=function(Q,G,Y){return Q=+Q,G=G|0,Y||W(this,Q,G,1,127,-128),x.TYPED_ARRAY_SUPPORT||(Q=Math.floor(Q)),Q<0&&(Q=255+Q+1),this[G]=Q&255,G+1},x.prototype.writeInt16LE=function(Q,G,Y){return Q=+Q,G=G|0,Y||W(this,Q,G,2,32767,-32768),x.TYPED_ARRAY_SUPPORT?(this[G]=Q&255,this[G+1]=Q>>>8):V(this,Q,G,!0),G+2},x.prototype.writeInt16BE=function(Q,G,Y){return Q=+Q,G=G|0,Y||W(this,Q,G,2,32767,-32768),x.TYPED_ARRAY_SUPPORT?(this[G]=Q>>>8,this[G+1]=Q&255):V(this,Q,G,!1),G+2},x.prototype.writeInt32LE=function(Q,G,Y){return Q=+Q,G=G|0,Y||W(this,Q,G,4,2147483647,-2147483648),x.TYPED_ARRAY_SUPPORT?(this[G]=Q&255,this[G+1]=Q>>>8,this[G+2]=Q>>>16,this[G+3]=Q>>>24):z(this,Q,G,!0),G+4},x.prototype.writeInt32BE=function(Q,G,Y){return Q=+Q,G=G|0,Y||W(this,Q,G,4,2147483647,-2147483648),Q<0&&(Q=4294967295+Q+1),x.TYPED_ARRAY_SUPPORT?(this[G]=Q>>>24,this[G+1]=Q>>>16,this[G+2]=Q>>>8,this[G+3]=Q&255):z(this,Q,G,!1),G+4};function J(ae,Q,G,Y,me,ue){if(G+Y>ae.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function Z(ae,Q,G,Y,me){return me||J(ae,Q,G,4,34028234663852886e22,-34028234663852886e22),A.write(ae,Q,G,Y,23,4),G+4}x.prototype.writeFloatLE=function(Q,G,Y){return Z(this,Q,G,!0,Y)},x.prototype.writeFloatBE=function(Q,G,Y){return Z(this,Q,G,!1,Y)};function de(ae,Q,G,Y,me){return me||J(ae,Q,G,8,17976931348623157e292,-17976931348623157e292),A.write(ae,Q,G,Y,52,8),G+8}x.prototype.writeDoubleLE=function(Q,G,Y){return de(this,Q,G,!0,Y)},x.prototype.writeDoubleBE=function(Q,G,Y){return de(this,Q,G,!1,Y)},x.prototype.copy=function(Q,G,Y,me){if(Y||(Y=0),!me&&me!==0&&(me=this.length),G>=Q.length&&(G=Q.length),G||(G=0),me>0&&me<Y&&(me=Y),me===Y)return 0;if(Q.length===0||this.length===0)return 0;if(G<0)throw new RangeError("targetStart out of bounds");if(Y<0||Y>=this.length)throw new RangeError("sourceStart out of bounds");if(me<0)throw new RangeError("sourceEnd out of bounds");me>this.length&&(me=this.length),Q.length-G<me-Y&&(me=Q.length-G+Y);var ue=me-Y,Ce;if(this===Q&&Y<G&&G<me)for(Ce=ue-1;Ce>=0;--Ce)Q[Ce+G]=this[Ce+Y];else if(ue<1e3||!x.TYPED_ARRAY_SUPPORT)for(Ce=0;Ce<ue;++Ce)Q[Ce+G]=this[Ce+Y];else Uint8Array.prototype.set.call(Q,this.subarray(Y,Y+ue),G);return ue},x.prototype.fill=function(Q,G,Y,me){if(typeof Q=="string"){if(typeof G=="string"?(me=G,G=0,Y=this.length):typeof Y=="string"&&(me=Y,Y=this.length),Q.length===1){var ue=Q.charCodeAt(0);ue<256&&(Q=ue)}if(me!==void 0&&typeof me!="string")throw new TypeError("encoding must be a string");if(typeof me=="string"&&!x.isEncoding(me))throw new TypeError("Unknown encoding: "+me)}else typeof Q=="number"&&(Q=Q&255);if(G<0||this.length<G||this.length<Y)throw new RangeError("Out of range index");if(Y<=G)return this;G=G>>>0,Y=Y===void 0?this.length:Y>>>0,Q||(Q=0);var Ce;if(typeof Q=="number")for(Ce=G;Ce<Y;++Ce)this[Ce]=Q;else{var Ie=x.isBuffer(Q)?Q:Ue(new x(Q,me).toString()),ce=Ie.length;for(Ce=0;Ce<Y-G;++Ce)this[Ce+G]=Ie[Ce%ce]}return this};var ie=/[^+\/0-9A-Za-z-_]/g;function ve(ae){if(ae=xe(ae).replace(ie,""),ae.length<2)return"";for(;ae.length%4!==0;)ae=ae+"=";return ae}function xe(ae){return ae.trim?ae.trim():ae.replace(/^\s+|\s+$/g,"")}function _e(ae){return ae<16?"0"+ae.toString(16):ae.toString(16)}function Ue(ae,Q){Q=Q||Infinity;for(var G,Y=ae.length,me=null,ue=[],Ce=0;Ce<Y;++Ce){if(G=ae.charCodeAt(Ce),G>55295&&G<57344){if(!me){if(G>56319){(Q-=3)>-1&&ue.push(239,191,189);continue}else if(Ce+1===Y){(Q-=3)>-1&&ue.push(239,191,189);continue}me=G;continue}if(G<56320){(Q-=3)>-1&&ue.push(239,191,189),me=G;continue}G=(me-55296<<10|G-56320)+65536}else me&&((Q-=3)>-1&&ue.push(239,191,189));if(me=null,G<128){if((Q-=1)<0)break;ue.push(G)}else if(G<2048){if((Q-=2)<0)break;ue.push(G>>6|192,G&63|128)}else if(G<65536){if((Q-=3)<0)break;ue.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((Q-=4)<0)break;ue.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return ue}function fe(ae){for(var Q=[],G=0;G<ae.length;++G)Q.push(ae.charCodeAt(G)&255);return Q}function ke(ae,Q){for(var G,Y,me,ue=[],Ce=0;Ce<ae.length&&!((Q-=2)<0);++Ce)G=ae.charCodeAt(Ce),Y=G>>8,me=G%256,ue.push(me),ue.push(Y);return ue}function se(ae){return C.toByteArray(ve(ae))}function te(ae,Q,G,Y){for(var me=0;me<Y&&!(me+G>=Q.length||me>=ae.length);++me)Q[me+G]=ae[me];return me}function Ve(ae){return ae!==ae}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},H("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(H,F,d){F.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(H,F,d){F.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(H,F,d){/*!
|
|
|
* copy-to - index.js
|
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var O=Array.prototype.slice;F.exports=x;function x(A,S){if(!(this instanceof x))return new x(A,S);this.src=A,this._withAccess=S}x.prototype.withAccess=function(A){return this._withAccess=A!==!1,this},x.prototype.pick=function(A){return Array.isArray(A)||(A=O.call(arguments)),A.length&&(this.keys=A),this},x.prototype.to=function(A){if(A=A||{},!this.src)return A;var S=this.keys||Object.keys(this.src);if(!this._withAccess){for(var g=0;g<S.length;g++){if(f=S[g],A[f]!==void 0)continue;A[f]=this.src[f]}return A}for(var g=0;g<S.length;g++){var f=S[g];if(!C(A,f))continue;var c=this.src.__lookupGetter__(f),o=this.src.__lookupSetter__(f);c&&A.__defineGetter__(f,c),o&&A.__defineSetter__(f,o),!c&&!o&&(A[f]=this.src[f])}return A},x.prototype.toCover=function(A){for(var S=this.keys||Object.keys(this.src),g=0;g<S.length;g++){var f=S[g];delete A[f];var c=this.src.__lookupGetter__(f),o=this.src.__lookupSetter__(f);c&&A.__defineGetter__(f,c),o&&A.__defineSetter__(f,o),!c&&!o&&(A[f]=this.src[f])}},x.prototype.override=x.prototype.toCover,x.prototype.and=function(A){var S={};return this.to(S),this.src=A,this.to(S),this.src=S,this};function C(A,S){return A[S]===void 0&&A.__lookupGetter__(S)===void 0&&A.__lookupSetter__(S)===void 0}},{}],77:[function(H,F,d){H("../../modules/es6.string.iterator"),H("../../modules/es6.array.from"),F.exports=H("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(H,F,d){var O=H("../../modules/_core"),x=O.JSON||(O.JSON={stringify:JSON.stringify});F.exports=function(A){return x.stringify.apply(x,arguments)}},{"../../modules/_core":99}],79:[function(H,F,d){H("../../modules/es6.object.assign"),F.exports=H("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(H,F,d){H("../../modules/es6.object.create");var O=H("../../modules/_core").Object;F.exports=function(C,A){return O.create(C,A)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(H,F,d){H("../../modules/es6.object.define-property");var O=H("../../modules/_core").Object;F.exports=function(C,A,S){return O.defineProperty(C,A,S)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(H,F,d){H("../../modules/es7.object.entries"),F.exports=H("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(H,F,d){H("../../modules/es6.object.get-own-property-names");var O=H("../../modules/_core").Object;F.exports=function(C){return O.getOwnPropertyNames(C)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(H,F,d){H("../../modules/es6.object.get-prototype-of"),F.exports=H("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(H,F,d){H("../../modules/es6.object.keys"),F.exports=H("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(H,F,d){H("../modules/es6.object.to-string"),H("../modules/es6.string.iterator"),H("../modules/web.dom.iterable"),H("../modules/es6.promise"),H("../modules/es7.promise.finally"),H("../modules/es7.promise.try"),F.exports=H("../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(H,F,d){H("../modules/web.immediate"),F.exports=H("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(H,F,d){H("../../modules/es6.string.from-code-point"),F.exports=H("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(H,F,d){H("../../modules/es6.function.has-instance"),F.exports=H("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(H,F,d){H("../../modules/es6.symbol"),H("../../modules/es6.object.to-string"),H("../../modules/es7.symbol.async-iterator"),H("../../modules/es7.symbol.observable"),F.exports=H("../../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(H,F,d){H("../../modules/es6.string.iterator"),H("../../modules/web.dom.iterable"),F.exports=H("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(H,F,d){F.exports=function(O){if(typeof O!="function")throw TypeError(O+" is not a function!");return O}},{}],93:[function(H,F,d){F.exports=function(){}},{}],94:[function(H,F,d){F.exports=function(O,x,C,A){if(!(O instanceof x)||A!==void 0&&A in O)throw TypeError(C+": incorrect invocation!");return O}},{}],95:[function(H,F,d){var O=H("./_is-object");F.exports=function(x){if(!O(x))throw TypeError(x+" is not an object!");return x}},{"./_is-object":119}],96:[function(H,F,d){var O=H("./_to-iobject"),x=H("./_to-length"),C=H("./_to-absolute-index");F.exports=function(A){return function(S,g,f){var c=O(S),o=x(c.length),r=C(f,o),i;if(A&&g!=g){for(;o>r;)if(i=c[r++],i!=i)return!0}else for(;o>r;r++)if((A||r in c)&&c[r]===g)return A||r||0;return!A&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(H,F,d){var O=H("./_cof"),x=H("./_wks")("toStringTag"),C=O(function(){return arguments}())=="Arguments",A=function(g,f){try{return g[f]}catch(c){}};F.exports=function(S){var g,f,c;return S===void 0?"Undefined":S===null?"Null":typeof(f=A(g=Object(S),x))=="string"?f:C?O(g):(c=O(g))=="Object"&&typeof g.callee=="function"?"Arguments":c}},{"./_cof":98,"./_wks":166}],98:[function(H,F,d){var O={}.toString;F.exports=function(x){return O.call(x).slice(8,-1)}},{}],99:[function(H,F,d){var O=F.exports={version:"2.6.11"};typeof __e=="number"&&(__e=O)},{}],100:[function(H,F,d){"use strict";var O=H("./_object-dp"),x=H("./_property-desc");F.exports=function(C,A,S){A in C?O.f(C,A,x(0,S)):C[A]=S}},{"./_object-dp":132,"./_property-desc":146}],101:[function(H,F,d){var O=H("./_a-function");F.exports=function(x,C,A){if(O(x),C===void 0)return x;switch(A){case 1:return function(S){return x.call(C,S)};case 2:return function(S,g){return x.call(C,S,g)};case 3:return function(S,g,f){return x.call(C,S,g,f)}}return function(){return x.apply(C,arguments)}}},{"./_a-function":92}],102:[function(H,F,d){F.exports=function(O){if(O==null)throw TypeError("Can't call method on "+O);return O}},{}],103:[function(H,F,d){F.exports=!H("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(H,F,d){var O=H("./_is-object"),x=H("./_global").document,C=O(x)&&O(x.createElement);F.exports=function(A){return C?x.createElement(A):{}}},{"./_global":110,"./_is-object":119}],105:[function(H,F,d){F.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(H,F,d){var O=H("./_object-keys"),x=H("./_object-gops"),C=H("./_object-pie");F.exports=function(A){var S=O(A),g=x.f;if(g)for(var f=g(A),c=C.f,o=0,r;f.length>o;)c.call(A,r=f[o++])&&S.push(r);return S}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(H,F,d){var O=H("./_global"),x=H("./_core"),C=H("./_ctx"),A=H("./_hide"),S=H("./_has"),g="prototype",f=function c(o,r,i){var n=o&c.F,e=o&c.G,l=o&c.S,t=o&c.P,a=o&c.B,s=o&c.W,u=e?x:x[r]||(x[r]={}),h=u[g],p=e?O:l?O[r]:(O[r]||{})[g],m,v,y;e&&(i=r);for(m in i){if(v=!n&&p&&p[m]!==void 0,v&&S(u,m))continue;y=v?p[m]:i[m],u[m]=e&&typeof p[m]!="function"?i[m]:a&&v?C(y,O):s&&p[m]==y?function(E){var T=function(w,_,I){if(this instanceof E){switch(arguments.length){case 0:return new E;case 1:return new E(w);case 2:return new E(w,_)}return new E(w,_,I)}return E.apply(this,arguments)};return T[g]=E[g],T}(y):t&&typeof y=="function"?C(Function.call,y):y,t&&((u.virtual||(u.virtual={}))[m]=y,o&c.R&&h&&!h[m]&&A(h,m,y))}};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,F.exports=f},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(H,F,d){F.exports=function(O){try{return!!O()}catch(x){return!0}}},{}],109:[function(H,F,d){var O=H("./_ctx"),x=H("./_iter-call"),C=H("./_is-array-iter"),A=H("./_an-object"),S=H("./_to-length"),g=H("./core.get-iterator-method"),f={},c={},d=F.exports=function(o,r,i,n,e){var l=e?function(){return o}:g(o),t=O(i,n,r?2:1),a=0,s,u,h,p;if(typeof l!="function")throw TypeError(o+" is not iterable!");if(C(l)){for(s=S(o.length);s>a;a++)if(p=r?t(A(u=o[a])[0],u[1]):t(o[a]),p===f||p===c)return p}else for(h=l.call(o);!(u=h.next()).done;)if(p=x(h,t,u.value,r),p===f||p===c)return p};d.BREAK=f,d.RETURN=c},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(H,F,d){var O=F.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=O)},{}],111:[function(H,F,d){var O={}.hasOwnProperty;F.exports=function(x,C){return O.call(x,C)}},{}],112:[function(H,F,d){var O=H("./_object-dp"),x=H("./_property-desc");F.exports=H("./_descriptors")?function(C,A,S){return O.f(C,A,x(1,S))}:function(C,A,S){return C[A]=S,C}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(H,F,d){var O=H("./_global").document;F.exports=O&&O.documentElement},{"./_global":110}],114:[function(H,F,d){F.exports=!H("./_descriptors")&&!H("./_fails")(function(){return Object.defineProperty(H("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(H,F,d){F.exports=function(O,x,C){var A=C===void 0;switch(x.length){case 0:return A?O():O.call(C);case 1:return A?O(x[0]):O.call(C,x[0]);case 2:return A?O(x[0],x[1]):O.call(C,x[0],x[1]);case 3:return A?O(x[0],x[1],x[2]):O.call(C,x[0],x[1],x[2]);case 4:return A?O(x[0],x[1],x[2],x[3]):O.call(C,x[0],x[1],x[2],x[3])}return O.apply(C,x)}},{}],116:[function(H,F,d){var O=H("./_cof");F.exports=Object("z").propertyIsEnumerable(0)?Object:function(x){return O(x)=="String"?x.split(""):Object(x)}},{"./_cof":98}],117:[function(H,F,d){var O=H("./_iterators"),x=H("./_wks")("iterator"),C=Array.prototype;F.exports=function(A){return A!==void 0&&(O.Array===A||C[x]===A)}},{"./_iterators":125,"./_wks":166}],118:[function(H,F,d){var O=H("./_cof");F.exports=Array.isArray||function(C){return O(C)=="Array"}},{"./_cof":98}],119:[function(H,F,d){F.exports=function(O){return typeof O=="object"?O!==null:typeof O=="function"}},{}],120:[function(H,F,d){var O=H("./_an-object");F.exports=function(x,C,A,S){try{return S?C(O(A)[0],A[1]):C(A)}catch(f){var g=x.return;throw g!==void 0&&O(g.call(x)),f}}},{"./_an-object":95}],121:[function(H,F,d){"use strict";var O=H("./_object-create"),x=H("./_property-desc"),C=H("./_set-to-string-tag"),A={};H("./_hide")(A,H("./_wks")("iterator"),function(){return this}),F.exports=function(S,g,f){S.prototype=O(A,{next:x(1,f)}),C(S,g+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(H,F,d){"use strict";var O=H("./_library"),x=H("./_export"),C=H("./_redefine"),A=H("./_hide"),S=H("./_iterators"),g=H("./_iter-create"),f=H("./_set-to-string-tag"),c=H("./_object-gpo"),o=H("./_wks")("iterator"),r=!([].keys&&"next"in[].keys()),i="@@iterator",n="keys",e="values",l=function(){return this};F.exports=function(t,a,s,u,h,p,m){g(s,a,u);var v=function(M){if(!r&&M in b)return b[M];switch(M){case n:return function(){return new s(this,M)};case e:return function(){return new s(this,M)}}return function(){return new s(this,M)}},y=a+" Iterator",E=h==e,T=!1,b=t.prototype,w=b[o]||b[i]||h&&b[h],_=w||v(h),I=h?E?v("entries"):_:void 0,L=a=="Array"&&b.entries||w,N,D,R;if(L&&(R=c(L.call(new t)),R!==Object.prototype&&R.next&&(f(R,y,!0),!O&&typeof R[o]!="function"&&A(R,o,l))),E&&w&&w.name!==e&&(T=!0,_=function(){return w.call(this)}),(!O||m)&&(r||T||!b[o])&&A(b,o,_),S[a]=_,S[y]=l,h)if(N={values:E?_:v(e),keys:p?_:v(n),entries:I},m)for(D in N)D in b||C(b,D,N[D]);else x(x.P+x.F*(r||T),a,N);return N}},{"./_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(H,F,d){var O=H("./_wks")("iterator"),x=!1;try{var C=[7][O]();C.return=function(){x=!0},Array.from(C,function(){throw 2})}catch(A){}F.exports=function(A,S){if(!S&&!x)return!1;var g=!1;try{var f=[7],c=f[O]();c.next=function(){return{done:g=!0}},f[O]=function(){return c},A(f)}catch(o){}return g}},{"./_wks":166}],124:[function(H,F,d){F.exports=function(O,x){return{value:x,done:!!O}}},{}],125:[function(H,F,d){F.exports={}},{}],126:[function(H,F,d){F.exports=!0},{}],127:[function(H,F,d){var O=H("./_uid")("meta"),x=H("./_is-object"),C=H("./_has"),A=H("./_object-dp").f,S=0,g=Object.isExtensible||function(){return!0},f=!H("./_fails")(function(){return g(Object.preventExtensions({}))}),c=function(l){A(l,O,{value:{i:"O"+ ++S,w:{}}})},o=function(l,t){if(!x(l))return typeof l=="symbol"?l:(typeof l=="string"?"S":"P")+l;if(!C(l,O)){if(!g(l))return"F";if(!t)return"E";c(l)}return l[O].i},r=function(l,t){if(!C(l,O)){if(!g(l))return!0;if(!t)return!1;c(l)}return l[O].w},i=function(l){return f&&n.NEED&&g(l)&&!C(l,O)&&c(l),l},n=F.exports={KEY:O,NEED:!1,fastKey:o,getWeak:r,onFreeze:i}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(H,F,d){var O=H("./_global"),x=H("./_task").set,C=O.MutationObserver||O.WebKitMutationObserver,A=O.process,S=O.Promise,g=H("./_cof")(A)=="process";F.exports=function(){var f,c,o,r=function(){var t,a;for(g&&(t=A.domain)&&t.exit();f;){a=f.fn,f=f.next;try{a()}catch(s){throw f?o():c=void 0,s}}c=void 0,t&&t.enter()};if(g)o=function(){A.nextTick(r)};else if(C&&!(O.navigator&&O.navigator.standalone)){var i=!0,n=document.createTextNode("");new C(r).observe(n,{characterData:!0}),o=function(){n.data=i=!i}}else if(S&&S.resolve){var e=S.resolve(void 0);o=function(){e.then(r)}}else o=function(){x.call(O,r)};return function(l){var t={fn:l,next:void 0};c&&(c.next=t),f||(f=t,o()),c=t}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(H,F,d){"use strict";var O=H("./_a-function");function x(C){var A,S;this.promise=new C(function(g,f){if(A!==void 0||S!==void 0)throw TypeError("Bad Promise constructor");A=g,S=f}),this.resolve=O(A),this.reject=O(S)}F.exports.f=function(C){return new x(C)}},{"./_a-function":92}],130:[function(H,F,d){"use strict";var O=H("./_descriptors"),x=H("./_object-keys"),C=H("./_object-gops"),A=H("./_object-pie"),S=H("./_to-object"),g=H("./_iobject"),f=Object.assign;F.exports=!f||H("./_fails")(function(){var c={},o={},r=Symbol(),i="abcdefghijklmnopqrst";return c[r]=7,i.split("").forEach(function(n){o[n]=n}),f({},c)[r]!=7||Object.keys(f({},o)).join("")!=i})?function(o,r){for(var i=S(o),n=arguments.length,e=1,l=C.f,t=A.f;n>e;)for(var a=g(arguments[e++]),s=l?x(a).concat(l(a)):x(a),u=s.length,h=0,p;u>h;)p=s[h++],(!O||t.call(a,p))&&(i[p]=a[p]);return i}:f},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(H,F,d){var O=H("./_an-object"),x=H("./_object-dps"),C=H("./_enum-bug-keys"),A=H("./_shared-key")("IE_PROTO"),S=function(){},g="prototype",f=function(){var o=H("./_dom-create")("iframe"),r=C.length,i="<",n=">",e;for(o.style.display="none",H("./_html").appendChild(o),o.src="javascript:",e=o.contentWindow.document,e.open(),e.write(i+"script"+n+"document.F=Object"+i+"/script"+n),e.close(),f=e.F;r--;)delete f[g][C[r]];return f()};F.exports=Object.create||function(o,r){var i;return o!==null?(S[g]=O(o),i=new S,S[g]=null,i[A]=o):i=f(),r===void 0?i:x(i,r)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(H,F,d){var O=H("./_an-object"),x=H("./_ie8-dom-define"),C=H("./_to-primitive"),A=Object.defineProperty;d.f=H("./_descriptors")?Object.defineProperty:function(g,f,c){if(O(g),f=C(f,!0),O(c),x)try{return A(g,f,c)}catch(o){}if("get"in c||"set"in c)throw TypeError("Accessors not supported!");return"value"in c&&(g[f]=c.value),g}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(H,F,d){var O=H("./_object-dp"),x=H("./_an-object"),C=H("./_object-keys");F.exports=H("./_descriptors")?Object.defineProperties:function(S,g){x(S);for(var f=C(g),c=f.length,o=0,r;c>o;)O.f(S,r=f[o++],g[r]);return S}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(H,F,d){var O=H("./_object-pie"),x=H("./_property-desc"),C=H("./_to-iobject"),A=H("./_to-primitive"),S=H("./_has"),g=H("./_ie8-dom-define"),f=Object.getOwnPropertyDescriptor;d.f=H("./_descriptors")?f:function(o,r){if(o=C(o),r=A(r,!0),g)try{return f(o,r)}catch(i){}if(S(o,r))return x(!O.f.call(o,r),o[r])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(H,F,d){var O=H("./_to-iobject"),x=H("./_object-gopn").f,C={}.toString,A=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],S=function(f){try{return x(f)}catch(c){return A.slice()}};F.exports.f=function(f){return A&&C.call(f)=="[object Window]"?S(f):x(O(f))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(H,F,d){var O=H("./_object-keys-internal"),x=H("./_enum-bug-keys").concat("length","prototype");d.f=Object.getOwnPropertyNames||function(A){return O(A,x)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(H,F,d){d.f=Object.getOwnPropertySymbols},{}],138:[function(H,F,d){var O=H("./_has"),x=H("./_to-object"),C=H("./_shared-key")("IE_PROTO"),A=Object.prototype;F.exports=Object.getPrototypeOf||function(S){return S=x(S),O(S,C)?S[C]:typeof S.constructor=="function"&&S instanceof S.constructor?S.constructor.prototype:S instanceof Object?A:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(H,F,d){var O=H("./_has"),x=H("./_to-iobject"),C=H("./_array-includes")(!1),A=H("./_shared-key")("IE_PROTO");F.exports=function(S,g){var f=x(S),c=0,o=[],r;for(r in f)r!=A&&(O(f,r)&&o.push(r));for(;g.length>c;)O(f,r=g[c++])&&(~C(o,r)||o.push(r));return o}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(H,F,d){var O=H("./_object-keys-internal"),x=H("./_enum-bug-keys");F.exports=Object.keys||function(A){return O(A,x)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(H,F,d){d.f={}.propertyIsEnumerable},{}],142:[function(H,F,d){var O=H("./_export"),x=H("./_core"),C=H("./_fails");F.exports=function(A,S){var g=(x.Object||{})[A]||Object[A],f={};f[A]=S(g),O(O.S+O.F*C(function(){g(1)}),"Object",f)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(H,F,d){var O=H("./_descriptors"),x=H("./_object-keys"),C=H("./_to-iobject"),A=H("./_object-pie").f;F.exports=function(S){return function(g){for(var f=C(g),c=x(f),o=c.length,r=0,i=[],n;o>r;)n=c[r++],(!O||A.call(f,n))&&i.push(S?[n,f[n]]:f[n]);return i}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(H,F,d){F.exports=function(O){try{return{e:!1,v:O()}}catch(x){return{e:!0,v:x}}}},{}],145:[function(H,F,d){var O=H("./_an-object"),x=H("./_is-object"),C=H("./_new-promise-capability");F.exports=function(A,S){if(O(A),x(S)&&S.constructor===A)return S;var g=C.f(A),f=g.resolve;return f(S),g.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(H,F,d){F.exports=function(O,x){return{enumerable:!(O&1),configurable:!(O&2),writable:!(O&4),value:x}}},{}],147:[function(H,F,d){var O=H("./_hide");F.exports=function(x,C,A){for(var S in C)A&&x[S]?x[S]=C[S]:O(x,S,C[S]);return x}},{"./_hide":112}],148:[function(H,F,d){F.exports=H("./_hide")},{"./_hide":112}],149:[function(H,F,d){"use strict";var O=H("./_global"),x=H("./_core"),C=H("./_object-dp"),A=H("./_descriptors"),S=H("./_wks")("species");F.exports=function(g){var f=typeof x[g]=="function"?x[g]:O[g];A&&f&&!f[S]&&C.f(f,S,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(H,F,d){var O=H("./_object-dp").f,x=H("./_has"),C=H("./_wks")("toStringTag");F.exports=function(A,S,g){A&&!x(A=g?A:A.prototype,C)&&O(A,C,{configurable:!0,value:S})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(H,F,d){var O=H("./_shared")("keys"),x=H("./_uid");F.exports=function(C){return O[C]||(O[C]=x(C))}},{"./_shared":152,"./_uid":162}],152:[function(H,F,d){var O=H("./_core"),x=H("./_global"),C="__core-js_shared__",A=x[C]||(x[C]={});(F.exports=function(S,g){return A[S]||(A[S]=g!==void 0?g:{})})("versions",[]).push({version:O.version,mode:H("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(H,F,d){var O=H("./_an-object"),x=H("./_a-function"),C=H("./_wks")("species");F.exports=function(A,S){var g=O(A).constructor,f;return g===void 0||(f=O(g)[C])==null?S:x(f)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(H,F,d){var O=H("./_to-integer"),x=H("./_defined");F.exports=function(C){return function(A,S){var g=String(x(A)),f=O(S),c=g.length,o,r;return f<0||f>=c?C?"":void 0:(o=g.charCodeAt(f),o<55296||o>56319||f+1===c||(r=g.charCodeAt(f+1))<56320||r>57343?C?g.charAt(f):o:C?g.slice(f,f+2):(o-55296<<10)+(r-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(H,F,d){var O=H("./_ctx"),x=H("./_invoke"),C=H("./_html"),A=H("./_dom-create"),S=H("./_global"),g=S.process,f=S.setImmediate,c=S.clearImmediate,o=S.MessageChannel,r=S.Dispatch,i=0,n={},e="onreadystatechange",l,t,a,s=function(){var p=+this;if(n.hasOwnProperty(p)){var m=n[p];delete n[p],m()}},u=function(p){s.call(p.data)};(!f||!c)&&(f=function(p){for(var m=[],v=1;arguments.length>v;)m.push(arguments[v++]);return n[++i]=function(){x(typeof p=="function"?p:Function(p),m)},l(i),i},c=function(p){delete n[p]},H("./_cof")(g)=="process"?l=function(p){g.nextTick(O(s,p,1))}:r&&r.now?l=function(p){r.now(O(s,p,1))}:o?(t=new o,a=t.port2,t.port1.onmessage=u,l=O(a.postMessage,a,1)):S.addEventListener&&typeof postMessage=="function"&&!S.importScripts?(l=function(p){S.postMessage(p+"","*")},S.addEventListener("message",u,!1)):e in A("script")?l=function(p){C.appendChild(A("script"))[e]=function(){C.removeChild(this),s.call(p)}}:l=function(p){setTimeout(O(s,p,1),0)}),F.exports={set:f,clear:c}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(H,F,d){var O=H("./_to-integer"),x=Math.max,C=Math.min;F.exports=function(A,S){return A=O(A),A<0?x(A+S,0):C(A,S)}},{"./_to-integer":157}],157:[function(H,F,d){var O=Math.ceil,x=Math.floor;F.exports=function(C){return isNaN(C=+C)?0:(C>0?x:O)(C)}},{}],158:[function(H,F,d){var O=H("./_iobject"),x=H("./_defined");F.exports=function(C){return O(x(C))}},{"./_defined":102,"./_iobject":116}],159:[function(H,F,d){var O=H("./_to-integer"),x=Math.min;F.exports=function(C){return C>0?x(O(C),9007199254740991):0}},{"./_to-integer":157}],160:[function(H,F,d){var O=H("./_defined");F.exports=function(x){return Object(O(x))}},{"./_defined":102}],161:[function(H,F,d){var O=H("./_is-object");F.exports=function(x,C){if(!O(x))return x;var A,S;if(C&&typeof(A=x.toString)=="function"&&!O(S=A.call(x)))return S;if(typeof(A=x.valueOf)=="function"&&!O(S=A.call(x)))return S;if(!C&&typeof(A=x.toString)=="function"&&!O(S=A.call(x)))return S;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(H,F,d){var O=0,x=Math.random();F.exports=function(C){return"Symbol(".concat(C===void 0?"":C,")_",(++O+x).toString(36))}},{}],163:[function(H,F,d){var O=H("./_global"),x=O.navigator;F.exports=x&&x.userAgent||""},{"./_global":110}],164:[function(H,F,d){var O=H("./_global"),x=H("./_core"),C=H("./_library"),A=H("./_wks-ext"),S=H("./_object-dp").f;F.exports=function(g){var f=x.Symbol||(x.Symbol=C?{}:O.Symbol||{});g.charAt(0)!="_"&&!(g in f)&&S(f,g,{value:A.f(g)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(H,F,d){d.f=H("./_wks")},{"./_wks":166}],166:[function(H,F,d){var O=H("./_shared")("wks"),x=H("./_uid"),C=H("./_global").Symbol,A=typeof C=="function",S=F.exports=function(g){return O[g]||(O[g]=A&&C[g]||(A?C:x)("Symbol."+g))};S.store=O},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(H,F,d){var O=H("./_classof"),x=H("./_wks")("iterator"),C=H("./_iterators");F.exports=H("./_core").getIteratorMethod=function(A){if(A!=null)return A[x]||A["@@iterator"]||C[O(A)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(H,F,d){"use strict";var O=H("./_ctx"),x=H("./_export"),C=H("./_to-object"),A=H("./_iter-call"),S=H("./_is-array-iter"),g=H("./_to-length"),f=H("./_create-property"),c=H("./core.get-iterator-method");x(x.S+x.F*!H("./_iter-detect")(function(o){Array.from(o)}),"Array",{from:function(r){var i=C(r),n=typeof this=="function"?this:Array,e=arguments.length,l=e>1?arguments[1]:void 0,t=l!==void 0,a=0,s=c(i),u,h,p,m;if(t&&(l=O(l,e>2?arguments[2]:void 0,2)),s!=null&&!(n==Array&&S(s)))for(m=s.call(i),h=new n;!(p=m.next()).done;a++)f(h,a,t?A(m,l,[p.value,a],!0):p.value);else for(u=g(i.length),h=new n(u);u>a;a++)f(h,a,t?l(i[a],a):i[a]);return h.length=a,h}})},{"./_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(H,F,d){"use strict";var O=H("./_add-to-unscopables"),x=H("./_iter-step"),C=H("./_iterators"),A=H("./_to-iobject");F.exports=H("./_iter-define")(Array,"Array",function(S,g){this._t=A(S),this._i=0,this._k=g},function(){var S=this._t,g=this._k,f=this._i++;return!S||f>=S.length?(this._t=void 0,x(1)):g=="keys"?x(0,f):g=="values"?x(0,S[f]):x(0,[f,S[f]])},"values"),C.Arguments=C.Array,O("keys"),O("values"),O("entries")},{"./_add-to-unscopables":93,"./_iter-define":122,"./_iter-step":124,"./_iterators":125,"./_to-iobject":158}],170:[function(H,F,d){"use strict";var O=H("./_is-object"),x=H("./_object-gpo"),C=H("./_wks")("hasInstance"),A=Function.prototype;C in A||H("./_object-dp").f(A,C,{value:function(g){if(typeof this!="function"||!O(g))return!1;if(!O(this.prototype))return g instanceof this;for(;g=x(g);)if(this.prototype===g)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(H,F,d){var O=H("./_export");O(O.S+O.F,"Object",{assign:H("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(H,F,d){var O=H("./_export");O(O.S,"Object",{create:H("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(H,F,d){var O=H("./_export");O(O.S+O.F*!H("./_descriptors"),"Object",{defineProperty:H("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(H,F,d){H("./_object-sap")("getOwnPropertyNames",function(){return H("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(H,F,d){var O=H("./_to-object"),x=H("./_object-gpo");H("./_object-sap")("getPrototypeOf",function(){return function(A){return x(O(A))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(H,F,d){var O=H("./_to-object"),x=H("./_object-keys");H("./_object-sap")("keys",function(){return function(A){return x(O(A))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(H,F,d){arguments[4][71][0].apply(d,arguments)},{dup:71}],178:[function(H,F,d){"use strict";var O=H("./_library"),x=H("./_global"),C=H("./_ctx"),A=H("./_classof"),S=H("./_export"),g=H("./_is-object"),f=H("./_a-function"),c=H("./_an-instance"),o=H("./_for-of"),r=H("./_species-constructor"),i=H("./_task").set,n=H("./_microtask")(),e=H("./_new-promise-capability"),l=H("./_perform"),t=H("./_user-agent"),a=H("./_promise-resolve"),s="Promise",u=x.TypeError,h=x.process,p=h&&h.versions,m=p&&p.v8||"",v=x[s],y=A(h)=="process",E=function(){},T,b,w,_,I=b=e.f,L=!!function(){try{var j=v.resolve(1),W=(j.constructor={})[H("./_wks")("species")]=function(V){V(E,E)};return(y||typeof PromiseRejectionEvent=="function")&&j.then(E)instanceof W&&m.indexOf("6.6")!==0&&t.indexOf("Chrome/66")===-1}catch(V){}}(),N=function(W){var V;return g(W)&&typeof(V=W.then)=="function"?V:!1},D=function(W,V){if(W._n)return;W._n=!0;var z=W._c;n(function(){for(var J=W._v,Z=W._s==1,de=0,ie=function(xe){var _e=Z?xe.ok:xe.fail,Ue=xe.resolve,fe=xe.reject,ke=xe.domain,se,te,Ve;try{_e?(Z||(W._h==2&&M(W),W._h=1),_e===!0?se=J:(ke&&ke.enter(),se=_e(J),ke&&(ke.exit(),Ve=!0)),se===xe.promise?fe(u("Promise-chain cycle")):(te=N(se))?te.call(se,Ue,fe):Ue(se)):fe(J)}catch(ae){ke&&!Ve&&ke.exit(),fe(ae)}};z.length>de;)ie(z[de++]);W._c=[],W._n=!1,V&&!W._h&&R(W)})},R=function(W){i.call(x,function(){var V=W._v,z=k(W),J,Z,de;if(z&&(J=l(function(){y?h.emit("unhandledRejection",V,W):(Z=x.onunhandledrejection)?Z({promise:W,reason:V}):(de=x.console)&&de.error&&de.error("Unhandled promise rejection",V)}),W._h=y||k(W)?2:1),W._a=void 0,z&&J.e)throw J.v})},k=function(W){return W._h!==1&&(W._a||W._c).length===0},M=function(W){i.call(x,function(){var V;y?h.emit("rejectionHandled",W):(V=x.onrejectionhandled)&&V({promise:W,reason:W._v})})},U=function(W){var V=this;if(V._d)return;V._d=!0,V=V._w||V,V._v=W,V._s=2,V._a||(V._a=V._c.slice()),D(V,!0)},B=function j(W){var V=this,z;if(V._d)return;V._d=!0,V=V._w||V;try{if(V===W)throw u("Promise can't be resolved itself");(z=N(W))?n(function(){var J={_w:V,_d:!1};try{z.call(W,C(j,J,1),C(U,J,1))}catch(Z){U.call(J,Z)}}):(V._v=W,V._s=1,D(V,!1))}catch(J){U.call({_w:V,_d:!1},J)}};L||(v=function(W){c(this,v,s,"_h"),f(W),T.call(this);try{W(C(B,this,1),C(U,this,1))}catch(V){U.call(this,V)}},T=function(W){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},T.prototype=H("./_redefine-all")(v.prototype,{then:function(W,V){var z=I(r(this,v));return z.ok=typeof W=="function"?W:!0,z.fail=typeof V=="function"&&V,z.domain=y?h.domain:void 0,this._c.push(z),this._a&&this._a.push(z),this._s&&D(this,!1),z.promise},catch:function(W){return this.then(void 0,W)}}),w=function(){var W=new T;this.promise=W,this.resolve=C(B,W,1),this.reject=C(U,W,1)},e.f=I=function(W){return W===v||W===_?new w(W):b(W)}),S(S.G+S.W+S.F*!L,{Promise:v}),H("./_set-to-string-tag")(v,s),H("./_set-species")(s),_=H("./_core")[s],S(S.S+S.F*!L,s,{reject:function(W){var V=I(this),z=V.reject;return z(W),V.promise}}),S(S.S+S.F*(O||!L),s,{resolve:function(W){return a(O&&this===_?v:this,W)}}),S(S.S+S.F*!(L&&H("./_iter-detect")(function(j){v.all(j).catch(E)})),s,{all:function(W){var V=this,z=I(V),J=z.resolve,Z=z.reject,de=l(function(){var ie=[],ve=0,xe=1;o(W,!1,function(_e){var Ue=ve++,fe=!1;ie.push(void 0),xe++,V.resolve(_e).then(function(ke){if(fe)return;fe=!0,ie[Ue]=ke,--xe||J(ie)},Z)}),--xe||J(ie)});return de.e&&Z(de.v),z.promise},race:function(W){var V=this,z=I(V),J=z.reject,Z=l(function(){o(W,!1,function(de){V.resolve(de).then(z.resolve,J)})});return Z.e&&J(Z.v),z.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(H,F,d){var O=H("./_export"),x=H("./_to-absolute-index"),C=String.fromCharCode,A=String.fromCodePoint;O(O.S+O.F*(!!A&&A.length!=1),"String",{fromCodePoint:function(g){for(var f=[],c=arguments.length,o=0,r;c>o;){if(r=+arguments[o++],x(r,1114111)!==r)throw RangeError(r+" is not a valid code point");f.push(r<65536?C(r):C(((r-=65536)>>10)+55296,r%1024+56320))}return f.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(H,F,d){"use strict";var O=H("./_string-at")(!0);H("./_iter-define")(String,"String",function(x){this._t=String(x),this._i=0},function(){var x=this._t,C=this._i,A;return C>=x.length?{value:void 0,done:!0}:(A=O(x,C),this._i+=A.length,{value:A,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(H,F,d){"use strict";var O=H("./_global"),x=H("./_has"),C=H("./_descriptors"),A=H("./_export"),S=H("./_redefine"),g=H("./_meta").KEY,f=H("./_fails"),c=H("./_shared"),o=H("./_set-to-string-tag"),r=H("./_uid"),i=H("./_wks"),n=H("./_wks-ext"),e=H("./_wks-define"),l=H("./_enum-keys"),t=H("./_is-array"),a=H("./_an-object"),s=H("./_is-object"),u=H("./_to-object"),h=H("./_to-iobject"),p=H("./_to-primitive"),m=H("./_property-desc"),v=H("./_object-create"),y=H("./_object-gopn-ext"),E=H("./_object-gopd"),T=H("./_object-gops"),b=H("./_object-dp"),w=H("./_object-keys"),_=E.f,I=b.f,L=y.f,N=O.Symbol,D=O.JSON,R=D&&D.stringify,k="prototype",M=i("_hidden"),U=i("toPrimitive"),B={}.propertyIsEnumerable,j=c("symbol-registry"),W=c("symbols"),V=c("op-symbols"),z=Object[k],J=typeof N=="function"&&!!T.f,Z=O.QObject,de=!Z||!Z[k]||!Z[k].findChild,ie=C&&f(function(){return v(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a!=7})?function(ue,Ce,Ie){var ce=_(z,Ce);ce&&delete z[Ce],I(ue,Ce,Ie),ce&&ue!==z&&I(z,Ce,ce)}:I,ve=function(Ce){var Ie=W[Ce]=v(N[k]);return Ie._k=Ce,Ie},xe=J&&typeof N.iterator=="symbol"?function(ue){return typeof ue=="symbol"}:function(ue){return ue instanceof N},_e=function(Ce,Ie,ce){return Ce===z&&_e(V,Ie,ce),a(Ce),Ie=p(Ie,!0),a(ce),x(W,Ie)?(ce.enumerable?(x(Ce,M)&&Ce[M][Ie]&&(Ce[M][Ie]=!1),ce=v(ce,{enumerable:m(0,!1)})):(x(Ce,M)||I(Ce,M,m(1,{})),Ce[M][Ie]=!0),ie(Ce,Ie,ce)):I(Ce,Ie,ce)},Ue=function(Ce,Ie){a(Ce);for(var ce=l(Ie=h(Ie)),Ae=0,Te=ce.length,Ge;Te>Ae;)_e(Ce,Ge=ce[Ae++],Ie[Ge]);return Ce},fe=function(Ce,Ie){return Ie===void 0?v(Ce):Ue(v(Ce),Ie)},ke=function(Ce){var Ie=B.call(this,Ce=p(Ce,!0));return this===z&&x(W,Ce)&&!x(V,Ce)?!1:Ie||!x(this,Ce)||!x(W,Ce)||x(this,M)&&this[M][Ce]?Ie:!0},se=function(Ce,Ie){if(Ce=h(Ce),Ie=p(Ie,!0),Ce===z&&x(W,Ie)&&!x(V,Ie))return;var ce=_(Ce,Ie);return ce&&x(W,Ie)&&!(x(Ce,M)&&Ce[M][Ie])&&(ce.enumerable=!0),ce},te=function(Ce){for(var Ie=L(h(Ce)),ce=[],Ae=0,Te;Ie.length>Ae;)!x(W,Te=Ie[Ae++])&&Te!=M&&Te!=g&&ce.push(Te);return ce},Ve=function(Ce){for(var Ie=Ce===z,ce=L(Ie?V:h(Ce)),Ae=[],Te=0,Ge;ce.length>Te;)x(W,Ge=ce[Te++])&&(Ie?x(z,Ge):!0)&&Ae.push(W[Ge]);return Ae};J||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var Ce=r(arguments.length>0?arguments[0]:void 0),Ie=function ce(Ae){this===z&&ce.call(V,Ae),x(this,M)&&x(this[M],Ce)&&(this[M][Ce]=!1),ie(this,Ce,m(1,Ae))};return C&&de&&ie(z,Ce,{configurable:!0,set:Ie}),ve(Ce)},S(N[k],"toString",function(){return this._k}),E.f=se,b.f=_e,H("./_object-gopn").f=y.f=te,H("./_object-pie").f=ke,T.f=Ve,C&&!H("./_library")&&S(z,"propertyIsEnumerable",ke,!0),n.f=function(ue){return ve(i(ue))}),A(A.G+A.W+A.F*!J,{Symbol:N});for(var ae="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Q=0;ae.length>Q;)i(ae[Q++]);for(var G=w(i.store),Y=0;G.length>Y;)e(G[Y++]);A(A.S+A.F*!J,"Symbol",{for:function(Ce){return x(j,Ce+="")?j[Ce]:j[Ce]=N(Ce)},keyFor:function(Ce){if(!xe(Ce))throw TypeError(Ce+" is not a symbol!");for(var Ie in j)if(j[Ie]===Ce)return Ie},useSetter:function(){de=!0},useSimple:function(){de=!1}}),A(A.S+A.F*!J,"Object",{create:fe,defineProperty:_e,defineProperties:Ue,getOwnPropertyDescriptor:se,getOwnPropertyNames:te,getOwnPropertySymbols:Ve});var me=f(function(){T.f(1)});A(A.S+A.F*me,"Object",{getOwnPropertySymbols:function(Ce){return T.f(u(Ce))}}),D&&A(A.S+A.F*(!J||f(function(){var ue=N();return R([ue])!="[null]"||R({a:ue})!="{}"||R(Object(ue))!="{}"})),"JSON",{stringify:function(Ce){for(var Ie=[Ce],ce=1,Ae,Te;arguments.length>ce;)Ie.push(arguments[ce++]);return Te=Ae=Ie[1],!s(Ae)&&Ce===void 0||xe(Ce)?void 0:(t(Ae)||(Ae=function(gt,qe){if(typeof Te=="function"&&(qe=Te.call(this,gt,qe)),!xe(qe))return qe}),Ie[1]=Ae,R.apply(D,Ie))}}),N[k][U]||H("./_hide")(N[k],U,N[k].valueOf),o(N,"Symbol"),o(Math,"Math",!0),o(O.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(H,F,d){var O=H("./_export"),x=H("./_object-to-array")(!0);O(O.S,"Object",{entries:function(A){return x(A)}})},{"./_export":107,"./_object-to-array":143}],183:[function(H,F,d){"use strict";var O=H("./_export"),x=H("./_core"),C=H("./_global"),A=H("./_species-constructor"),S=H("./_promise-resolve");O(O.P+O.R,"Promise",{finally:function(f){var c=A(this,x.Promise||C.Promise),o=typeof f=="function";return this.then(o?function(r){return S(c,f()).then(function(){return r})}:f,o?function(r){return S(c,f()).then(function(){throw r})}:f)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(H,F,d){"use strict";var O=H("./_export"),x=H("./_new-promise-capability"),C=H("./_perform");O(O.S,"Promise",{try:function(S){var g=x.f(this),f=C(S);return(f.e?g.reject:g.resolve)(f.v),g.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(H,F,d){H("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(H,F,d){H("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(H,F,d){H("./es6.array.iterator");for(var O=H("./_global"),x=H("./_hide"),C=H("./_iterators"),A=H("./_wks")("toStringTag"),S="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(","),g=0;g<S.length;g++){var f=S[g],c=O[f],o=c&&c.prototype;o&&!o[A]&&x(o,A,f),C[f]=C.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(H,F,d){var O=H("./_export"),x=H("./_task");O(O.G+O.B,{setImmediate:x.set,clearImmediate:x.clear})},{"./_export":107,"./_task":155}],189:[function(H,F,d){(function(O){"use strict";var x=H("babel-runtime/helpers/typeof"),C=A(x);function A(p){return p&&p.__esModule?p:{default:p}}function S(p){return Array.isArray?Array.isArray(p):h(p)==="[object Array]"}d.isArray=S;function g(p){return typeof p=="boolean"}d.isBoolean=g;function f(p){return p===null}d.isNull=f;function c(p){return p==null}d.isNullOrUndefined=c;function o(p){return typeof p=="number"}d.isNumber=o;function r(p){return typeof p=="string"}d.isString=r;function i(p){return(typeof p=="undefined"?"undefined":(0,C.default)(p))==="symbol"}d.isSymbol=i;function n(p){return p===void 0}d.isUndefined=n;function e(p){return h(p)==="[object RegExp]"}d.isRegExp=e;function l(p){return(typeof p=="undefined"?"undefined":(0,C.default)(p))==="object"&&p!==null}d.isObject=l;function t(p){return h(p)==="[object Date]"}d.isDate=t;function a(p){return h(p)==="[object Error]"||p instanceof Error}d.isError=a;function s(p){return typeof p=="function"}d.isFunction=s;function u(p){return p===null||typeof p=="boolean"||typeof p=="number"||typeof p=="string"||(typeof p=="undefined"?"undefined":(0,C.default)(p))==="symbol"||typeof p=="undefined"}d.isPrimitive=u,d.isBuffer=O.isBuffer;function h(p){return Object.prototype.toString.call(p)}}).call(this,{isBuffer:H("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(H,F,d){"use strict";var O=H("babel-runtime/helpers/typeof"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(A){"use strict";var S=function(){var r=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,i=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,n=/[^-+\dA-Z]/g;return function(e,l,t,a){if(arguments.length===1&&o(e)==="string"&&!/\d/.test(e)&&(l=e,e=void 0),e=e||new Date,e instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");l=String(S.masks[l]||l||S.masks.default);var s=l.slice(0,4);(s==="UTC:"||s==="GMT:")&&(l=l.slice(4),t=!0,s==="GMT:"&&(a=!0));var u=t?"getUTC":"get",h=e[u+"Date"](),p=e[u+"Day"](),m=e[u+"Month"](),v=e[u+"FullYear"](),y=e[u+"Hours"](),E=e[u+"Minutes"](),T=e[u+"Seconds"](),b=e[u+"Milliseconds"](),w=t?0:e.getTimezoneOffset(),_=f(e),I=c(e),L={d:h,dd:g(h),ddd:S.i18n.dayNames[p],dddd:S.i18n.dayNames[p+7],m:m+1,mm:g(m+1),mmm:S.i18n.monthNames[m],mmmm:S.i18n.monthNames[m+12],yy:String(v).slice(2),yyyy:v,h:y%12||12,hh:g(y%12||12),H:y,HH:g(y),M:E,MM:g(E),s:T,ss:g(T),l:g(b,3),L:g(Math.round(b/10)),t:y<12?"a":"p",tt:y<12?"am":"pm",T:y<12?"A":"P",TT:y<12?"AM":"PM",Z:a?"GMT":t?"UTC":(String(e).match(i)||[""]).pop().replace(n,""),o:(w>0?"-":"+")+g(Math.floor(Math.abs(w)/60)*100+Math.abs(w)%60,4),S:["th","st","nd","rd"][h%10>3?0:(h%100-h%10!=10)*h%10],W:_,N:I};return l.replace(r,function(N){return N in L?L[N]:N.slice(1,N.length-1)})}}();S.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"},S.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 g(r,i){for(r=String(r),i=i||2;r.length<i;)r="0"+r;return r}function f(r){var i=new Date(r.getFullYear(),r.getMonth(),r.getDate());i.setDate(i.getDate()-(i.getDay()+6)%7+3);var n=new Date(i.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);var e=i.getTimezoneOffset()-n.getTimezoneOffset();i.setHours(i.getHours()-e);var l=(i-n)/(864e5*7);return 1+Math.floor(l)}function c(r){var i=r.getDay();return i===0&&(i=7),i}function o(r){return r===null?"null":r===void 0?"undefined":(typeof r=="undefined"?"undefined":(0,x.default)(r))!=="object"?typeof r=="undefined"?"undefined":(0,x.default)(r):Array.isArray(r)?"array":{}.toString.call(r).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return S}):(typeof d=="undefined"?"undefined":(0,x.default)(d))==="object"?F.exports=S:A.dateFormat=S})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(H,F,d){/*!
|
|
|
* escape-html
|
|
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
|
* Copyright(c) 2015 Andreas Lubbe
|
|
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var O=/["'&<>]/;F.exports=x;function x(C){var A=""+C,S=O.exec(A);if(!S)return A;var g,f="",c=0,o=0;for(c=S.index;c<A.length;c++){switch(A.charCodeAt(c)){case 34:g=""";break;case 38:g="&";break;case 39:g="'";break;case 60:g="<";break;case 62:g=">";break;default:continue}o!==c&&(f+=A.substring(o,c)),o=c+1,f+=g}return o!==c?f+A.substring(o,c):f}},{}],192:[function(H,F,d){function O(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}F.exports=O,O.EventEmitter=O,O.prototype._events=void 0,O.prototype._maxListeners=void 0,O.defaultMaxListeners=10,O.prototype.setMaxListeners=function(g){if(!C(g)||g<0||isNaN(g))throw TypeError("n must be a positive number");return this._maxListeners=g,this},O.prototype.emit=function(g){var f,c,o,r,i,n;if(this._events||(this._events={}),g==="error"&&(!this._events.error||A(this._events.error)&&!this._events.error.length)){if(f=arguments[1],f instanceof Error)throw f;var e=new Error('Uncaught, unspecified "error" event. ('+f+")");throw e.context=f,e}if(c=this._events[g],S(c))return!1;if(x(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:r=Array.prototype.slice.call(arguments,1),c.apply(this,r)}else if(A(c))for(r=Array.prototype.slice.call(arguments,1),n=c.slice(),o=n.length,i=0;i<o;i++)n[i].apply(this,r);return!0},O.prototype.addListener=function(g,f){var c;if(!x(f))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",g,x(f.listener)?f.listener:f),this._events[g]?A(this._events[g])?this._events[g].push(f):this._events[g]=[this._events[g],f]:this._events[g]=f,A(this._events[g])&&!this._events[g].warned&&(S(this._maxListeners)?c=O.defaultMaxListeners:c=this._maxListeners,c&&c>0&&this._events[g].length>c&&(this._events[g].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[g].length),typeof console.trace=="function"&&console.trace())),this},O.prototype.on=O.prototype.addListener,O.prototype.once=function(g,f){if(!x(f))throw TypeError("listener must be a function");var c=!1;function o(){this.removeListener(g,o),c||(c=!0,f.apply(this,arguments))}return o.listener=f,this.on(g,o),this},O.prototype.removeListener=function(g,f){var c,o,r,i;if(!x(f))throw TypeError("listener must be a function");if(!this._events||!this._events[g])return this;if(c=this._events[g],r=c.length,o=-1,c===f||x(c.listener)&&c.listener===f)delete this._events[g],this._events.removeListener&&this.emit("removeListener",g,f);else if(A(c)){for(i=r;i-- >0;)if(c[i]===f||c[i].listener&&c[i].listener===f){o=i;break}if(o<0)return this;c.length===1?(c.length=0,delete this._events[g]):c.splice(o,1),this._events.removeListener&&this.emit("removeListener",g,f)}return this},O.prototype.removeAllListeners=function(g){var f,c;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[g]&&delete this._events[g],this;if(arguments.length===0){for(f in this._events){if(f==="removeListener")continue;this.removeAllListeners(f)}return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[g],x(c))this.removeListener(g,c);else if(c)for(;c.length;)this.removeListener(g,c[c.length-1]);return delete this._events[g],this},O.prototype.listeners=function(g){var f;return!this._events||!this._events[g]?f=[]:x(this._events[g])?f=[this._events[g]]:f=this._events[g].slice(),f},O.prototype.listenerCount=function(g){if(this._events){var f=this._events[g];if(x(f))return 1;if(f)return f.length}return 0},O.listenerCount=function(g,f){return g.listenerCount(f)};function x(g){return typeof g=="function"}function C(g){return typeof g=="number"}function A(g){return typeof g=="object"&&g!==null}function S(g){return g===void 0}},{}],193:[function(H,F,d){var O=H("http"),x=F.exports;for(var C in O)O.hasOwnProperty(C)&&(x[C]=O[C]);x.request=function(A,S){return A||(A={}),A.scheme="https",A.protocol="https:",O.request.call(this,A,S)}},{http:231}],194:[function(H,F,d){/*!
|
|
|
* humanize-ms - index.js
|
|
|
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
|
|
|
* MIT Licensed
|
|
|
*/"use strict";var O=H("util"),x=H("ms");F.exports=function(C){if(typeof C=="number")return C;var A=x(C);if(A===void 0){var S=new Error(O.format("humanize-ms(%j) result undefined",C));console.warn(S.stack)}return A}},{ms:204,util:243}],195:[function(H,F,d){d.read=function(O,x,C,A,S){var g,f,c=S*8-A-1,o=(1<<c)-1,r=o>>1,i=-7,n=C?S-1:0,e=C?-1:1,l=O[x+n];for(n+=e,g=l&(1<<-i)-1,l>>=-i,i+=c;i>0;g=g*256+O[x+n],n+=e,i-=8);for(f=g&(1<<-i)-1,g>>=-i,i+=A;i>0;f=f*256+O[x+n],n+=e,i-=8);if(g===0)g=1-r;else{if(g===o)return f?NaN:(l?-1:1)*Infinity;f=f+Math.pow(2,A),g=g-r}return(l?-1:1)*f*Math.pow(2,g-A)},d.write=function(O,x,C,A,S,g){var f,c,o,r=g*8-S-1,i=(1<<r)-1,n=i>>1,e=S===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=A?0:g-1,t=A?1:-1,a=x<0||x===0&&1/x<0?1:0;for(x=Math.abs(x),isNaN(x)||x===Infinity?(c=isNaN(x)?1:0,f=i):(f=Math.floor(Math.log(x)/Math.LN2),x*(o=Math.pow(2,-f))<1&&(f--,o*=2),f+n>=1?x+=e/o:x+=e*Math.pow(2,1-n),x*o>=2&&(f++,o/=2),f+n>=i?(c=0,f=i):f+n>=1?(c=(x*o-1)*Math.pow(2,S),f=f+n):(c=x*Math.pow(2,n-1)*Math.pow(2,S),f=0));S>=8;O[C+l]=c&255,l+=t,c/=256,S-=8);for(f=f<<S|c,r+=S;r>0;O[C+l]=f&255,l+=t,f/=256,r-=8);O[C+l-t]|=a*128}},{}],196:[function(H,F,d){typeof Object.create=="function"?F.exports=function(x,C){C&&(x.super_=C,x.prototype=Object.create(C.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}))}:F.exports=function(x,C){if(C){x.super_=C;var A=function(){};A.prototype=C.prototype,x.prototype=new A,x.prototype.constructor=x}}},{}],197:[function(H,F,d){/*!
|
|
|
* Determine if an object is a Buffer
|
|
|
*
|
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
|
* @license MIT
|
|
|
*/F.exports=function(C){return C!=null&&(O(C)||x(C)||!!C._isBuffer)};function O(C){return!!C.constructor&&typeof C.constructor.isBuffer=="function"&&C.constructor.isBuffer(C)}function x(C){return typeof C.readFloatLE=="function"&&typeof C.slice=="function"&&O(C.slice(0,0))}},{}],198:[function(H,F,d){var O={}.toString;F.exports=Array.isArray||function(x){return O.call(x)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(H,F){typeof exports=="object"&&typeof module!="undefined"?module.exports=F(H):typeof define=="function"&&define.amd?define(F):F(H)})(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(H){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(H){for(var F={},d=0,O=H.length;d<O;d++)F[H.charAt(d)]=d;return F}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(F){if(F.length<2){var d=F.charCodeAt(0);return d<128?F:d<2048?fromCharCode(192|d>>>6)+fromCharCode(128|d&63):fromCharCode(224|d>>>12&15)+fromCharCode(128|d>>>6&63)+fromCharCode(128|d&63)}else{var d=65536+(F.charCodeAt(0)-55296)*1024+(F.charCodeAt(1)-56320);return fromCharCode(240|d>>>18&7)+fromCharCode(128|d>>>12&63)+fromCharCode(128|d>>>6&63)+fromCharCode(128|d&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(F){return F.replace(re_utob,cb_utob)},cb_encode=function(F){var d=[0,2,1][F.length%3],O=F.charCodeAt(0)<<16|(F.length>1?F.charCodeAt(1):0)<<8|(F.length>2?F.charCodeAt(2):0),x=[b64chars.charAt(O>>>18),b64chars.charAt(O>>>12&63),d>=2?"=":b64chars.charAt(O>>>6&63),d>=1?"=":b64chars.charAt(O&63)];return x.join("")},btoa=global.btoa?function(H){return global.btoa(H)}:function(H){return H.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(F){var d=Object.prototype.toString.call(F)==="[object Uint8Array]";return d?F.toString("base64"):btoa(utob(String(F)))},encode=function(F,d){return d?_encode(String(F)).replace(/[+\/]/g,function(O){return O=="+"?"-":"_"}).replace(/=/g,""):_encode(F)},encodeURI=function(F){return encode(F,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(F){switch(F.length){case 4:var d=(7&F.charCodeAt(0))<<18|(63&F.charCodeAt(1))<<12|(63&F.charCodeAt(2))<<6|63&F.charCodeAt(3),O=d-65536;return fromCharCode((O>>>10)+55296)+fromCharCode((O&1023)+56320);case 3:return fromCharCode((15&F.charCodeAt(0))<<12|(63&F.charCodeAt(1))<<6|63&F.charCodeAt(2));default:return fromCharCode((31&F.charCodeAt(0))<<6|63&F.charCodeAt(1))}},btou=function(F){return F.replace(re_btou,cb_btou)},cb_decode=function(F){var d=F.length,O=d%4,x=(d>0?b64tab[F.charAt(0)]<<18:0)|(d>1?b64tab[F.charAt(1)]<<12:0)|(d>2?b64tab[F.charAt(2)]<<6:0)|(d>3?b64tab[F.charAt(3)]:0),C=[fromCharCode(x>>>16),fromCharCode(x>>>8&255),fromCharCode(x&255)];return C.length-=[0,0,2,1][O],C.join("")},_atob=global.atob?function(H){return global.atob(H)}:function(H){return H.replace(/\S{1,4}/g,cb_decode)},atob=function(F){return _atob(String(F).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(H){return(H.constructor===buffer.constructor?H:buffer.from(H,"base64")).toString()}:function(H){return(H.constructor===buffer.constructor?H:new buffer(H,"base64")).toString()}:function(H){return btou(_atob(H))},decode=function(F){return _decode(String(F).replace(/[-_]/g,function(d){return d=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var F=global.Base64;return global.Base64=_Base64,F};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(F){return{value:F,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(H){return encode(this,H)})),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(H,F,d){/*!
|
|
|
* merge-descriptors
|
|
|
* Copyright(c) 2014 Jonathan Ong
|
|
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
|
* MIT Licensed
|
|
|
*/"use strict";F.exports=x;var O=Object.prototype.hasOwnProperty;function x(C,A,S){if(!C)throw new TypeError("argument dest is required");if(!A)throw new TypeError("argument src is required");return S===void 0&&(S=!0),Object.getOwnPropertyNames(A).forEach(function(f){if(!S&&O.call(C,f))return;var c=Object.getOwnPropertyDescriptor(A,f);Object.defineProperty(C,f,c)}),C}},{}],201:[function(H,F,d){"use strict";function O(){this._types=Object.create(null),this._extensions=Object.create(null);for(var x=0;x<arguments.length;x++)this.define(arguments[x]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}O.prototype.define=function(x,C){for(var A in x){var S=x[A].map(function(c){return c.toLowerCase()});A=A.toLowerCase();for(var g=0;g<S.length;g++){var f=S[g];if(f[0]=="*")continue;if(!C&&f in this._types)throw new Error('Attempt to change mapping for "'+f+'" extension from "'+this._types[f]+'" to "'+A+'". Pass `force=true` to allow this, otherwise remove "'+f+'" from the list of extensions for "'+A+'".');this._types[f]=A}if(C||!this._extensions[A]){var f=S[0];this._extensions[A]=f[0]!="*"?f:f.substr(1)}}},O.prototype.getType=function(x){x=String(x);var C=x.replace(/^.*[/\\]/,"").toLowerCase(),A=C.replace(/^.*\./,"").toLowerCase(),S=C.length<x.length,g=A.length<C.length-1;return(g||!S)&&this._types[A]||null},O.prototype.getExtension=function(x){return x=/^\s*([^;\s]*)/.test(x)&&RegExp.$1,x&&this._extensions[x.toLowerCase()]||null},F.exports=O},{}],202:[function(H,F,d){"use strict";var O=H("./Mime");F.exports=new O(H("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(H,F,d){F.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(H,F,d){var O=1e3,x=O*60,C=x*60,A=C*24,S=A*7,g=A*365.25;F.exports=function(i,n){n=n||{};var e=typeof i;if(e==="string"&&i.length>0)return f(i);if(e==="number"&&isFinite(i))return n.long?o(i):c(i);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))};function f(i){if(i=String(i),i.length>100)return;var n=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!n)return;var e=parseFloat(n[1]),l=(n[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return e*g;case"weeks":case"week":case"w":return e*S;case"days":case"day":case"d":return e*A;case"hours":case"hour":case"hrs":case"hr":case"h":return e*C;case"minutes":case"minute":case"mins":case"min":case"m":return e*x;case"seconds":case"second":case"secs":case"sec":case"s":return e*O;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}function c(i){var n=Math.abs(i);return n>=A?Math.round(i/A)+"d":n>=C?Math.round(i/C)+"h":n>=x?Math.round(i/x)+"m":n>=O?Math.round(i/O)+"s":i+"ms"}function o(i){var n=Math.abs(i);return n>=A?r(i,n,A,"day"):n>=C?r(i,n,C,"hour"):n>=x?r(i,n,x,"minute"):n>=O?r(i,n,O,"second"):i+" ms"}function r(i,n,e,l){var t=n>=e*1.5;return Math.round(i/e)+" "+l+(t?"s":"")}},{}],205:[function(H,F,d){(function(O){function x(g,f){for(var c=0,o=g.length-1;o>=0;o--){var r=g[o];r==="."?g.splice(o,1):r===".."?(g.splice(o,1),c++):c&&(g.splice(o,1),c--)}if(f)for(;c--;c)g.unshift("..");return g}d.resolve=function(){for(var g="",f=!1,c=arguments.length-1;c>=-1&&!f;c--){var o=c>=0?arguments[c]:O.cwd();if(typeof o!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!o)continue;g=o+"/"+g,f=o.charAt(0)==="/"}return g=x(A(g.split("/"),function(r){return!!r}),!f).join("/"),(f?"/":"")+g||"."},d.normalize=function(g){var f=d.isAbsolute(g),c=S(g,-1)==="/";return g=x(A(g.split("/"),function(o){return!!o}),!f).join("/"),!g&&!f&&(g="."),g&&c&&(g+="/"),(f?"/":"")+g},d.isAbsolute=function(g){return g.charAt(0)==="/"},d.join=function(){var g=Array.prototype.slice.call(arguments,0);return d.normalize(A(g,function(f,c){if(typeof f!="string")throw new TypeError("Arguments to path.join must be strings");return f}).join("/"))},d.relative=function(g,f){g=d.resolve(g).substr(1),f=d.resolve(f).substr(1);function c(t){for(var a=0;a<t.length&&!(t[a]!=="");a++);for(var s=t.length-1;s>=0&&!(t[s]!=="");s--);return a>s?[]:t.slice(a,s-a+1)}for(var o=c(g.split("/")),r=c(f.split("/")),i=Math.min(o.length,r.length),n=i,e=0;e<i;e++)if(o[e]!==r[e]){n=e;break}for(var l=[],e=n;e<o.length;e++)l.push("..");return l=l.concat(r.slice(n)),l.join("/")},d.sep="/",d.delimiter=":",d.dirname=function(g){if(typeof g!="string"&&(g=g+""),g.length===0)return".";for(var f=g.charCodeAt(0),c=f===47,o=-1,r=!0,i=g.length-1;i>=1;--i)if(f=g.charCodeAt(i),f===47){if(!r){o=i;break}}else r=!1;return o===-1?c?"/":".":c&&o===1?"/":g.slice(0,o)};function C(g){typeof g!="string"&&(g=g+"");var f=0,c=-1,o=!0,r;for(r=g.length-1;r>=0;--r)if(g.charCodeAt(r)===47){if(!o){f=r+1;break}}else c===-1&&(o=!1,c=r+1);return c===-1?"":g.slice(f,c)}d.basename=function(g,f){var c=C(g);return f&&c.substr(-1*f.length)===f&&(c=c.substr(0,c.length-f.length)),c},d.extname=function(g){typeof g!="string"&&(g=g+"");for(var f=-1,c=0,o=-1,r=!0,i=0,n=g.length-1;n>=0;--n){var e=g.charCodeAt(n);if(e===47){if(!r){c=n+1;break}continue}o===-1&&(r=!1,o=n+1),e===46?f===-1?f=n:i!==1&&(i=1):f!==-1&&(i=-1)}return f===-1||o===-1||i===0||i===1&&f===o-1&&f===c+1?"":g.slice(f,o)};function A(g,f){if(g.filter)return g.filter(f);for(var c=[],o=0;o<g.length;o++)f(g[o],o,g)&&c.push(g[o]);return c}var S="ab".substr(-1)==="b"?function(g,f,c){return g.substr(f,c)}:function(g,f,c){return f<0&&(f=g.length+f),g.substr(f,c)}}).call(this,H("_process"))},{_process:208}],206:[function(H,F,d){(function(O){/*!
|
|
|
* 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 x={function:!0,object:!0},C=x[typeof window]&&window||this,A=C,S=x[typeof d]&&d,g=x[typeof F]&&F&&!F.nodeType&&F,f=S&&g&&typeof O=="object"&&O;f&&(f.global===f||f.window===f||f.self===f)&&(C=f);var c=Math.pow(2,53)-1,o=/\bOpera/,r=this,i=Object.prototype,n=i.hasOwnProperty,e=i.toString;function l(b){return b=String(b),b.charAt(0).toUpperCase()+b.slice(1)}function t(b,w,_){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&&_&&/^Win/i.test(b)&&!/^Windows Phone /i.test(b)&&(I=I[/[\d.]+$/.exec(b)])&&(b="Windows "+I),b=String(b),w&&_&&(b=b.replace(RegExp(w,"i"),_)),b=s(b.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]),b}function a(b,w){var _=-1,I=b?b.length:0;if(typeof I=="number"&&I>-1&&I<=c)for(;++_<I;)w(b[_],_,b);else u(b,w)}function s(b){return b=y(b),/^(?:webOS|i(?:OS|P))/.test(b)?b:l(b)}function u(b,w){for(var _ in b)n.call(b,_)&&w(b[_],_,b)}function h(b){return b==null?l(b):e.call(b).slice(8,-1)}function p(b,w){var _=b!=null?typeof b[w]:"number";return!/^(?:boolean|number|string|undefined)$/.test(_)&&(_=="object"?!!b[w]:!0)}function m(b){return String(b).replace(/([ -])(?!$)/g,"$1?")}function v(b,w){var _=null;return a(b,function(I,L){_=w(_,I,L,b)}),_}function y(b){return String(b).replace(/^ +| +$/g,"")}function E(b){var w=C,_=b&&typeof b=="object"&&h(b)!="String";_&&(w=b,b=null);var I=w.navigator||{},L=I.userAgent||"";b||(b=L);var N=_||r==A,D=_?!!I.likeChrome:/\bChrome\b/.test(b)&&!/internal|\n/i.test(e.toString()),R="Object",k=_?R:"ScriptBridgingProxyObject",M=_?R:"Environment",U=_&&w.java?"JavaPackage":h(w.java),B=_?R:"RuntimeObject",j=/\bJava/.test(U)&&w.java,W=j&&h(w.environment)==M,V=j?"a":"\u03B1",z=j?"b":"\u03B2",J=w.document||{},Z=w.operamini||w.opera,de=o.test(de=_&&Z?Z["[[Class]]"]:h(Z))?de:Z=null,ie,ve=b,xe=[],_e=null,Ue=b==L,fe=Ue&&Z&&typeof Z.version=="function"&&Z.version(),ke,se=G([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),te=me(["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"]),Ve=Ce([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),ae=Y({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}}),Q=ue(["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 G(Te){return v(Te,function(Ge,gt){return Ge||RegExp("\\b"+(gt.pattern||m(gt))+"\\b","i").exec(b)&&(gt.label||gt)})}function Y(Te){return v(Te,function(Ge,gt,qe){return Ge||(gt[Ve]||gt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ve)]||RegExp("\\b"+m(qe)+"(?:\\b|\\w*\\d)","i").exec(b))&&qe})}function me(Te){return v(Te,function(Ge,gt){return Ge||RegExp("\\b"+(gt.pattern||m(gt))+"\\b","i").exec(b)&&(gt.label||gt)})}function ue(Te){return v(Te,function(Ge,gt){var qe=gt.pattern||m(gt);return!Ge&&(Ge=RegExp("\\b"+qe+"(?:/[\\d.]+|[ \\w.]*)","i").exec(b))&&(Ge=t(Ge,qe,gt.label||gt)),Ge})}function Ce(Te){return v(Te,function(Ge,gt){var qe=gt.pattern||m(gt);return!Ge&&(Ge=RegExp("\\b"+qe+" *\\d+[.\\w_]*","i").exec(b)||RegExp("\\b"+qe+" *\\w+-[\\w]*","i").exec(b)||RegExp("\\b"+qe+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(b))&&((Ge=String(gt.label&&!RegExp(qe,"i").test(gt.label)?gt.label:Ge).split("/"))[1]&&!/[\d.]+/.test(Ge[0])&&(Ge[0]+=" "+Ge[1]),gt=gt.label||gt,Ge=s(Ge[0].replace(RegExp(qe,"i"),gt).replace(RegExp("; *(?:"+gt+"[_-])?","i")," ").replace(RegExp("("+gt+")[-_.]?(\\w)","i"),"$1 $2"))),Ge})}function Ie(Te){return v(Te,function(Ge,gt){return Ge||(RegExp(gt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(b)||0)[1]||null})}function ce(){return this.description||""}if(se&&(se=[se]),ae&&!Ve&&(Ve=Ce([ae])),(ie=/\bGoogle TV\b/.exec(Ve))&&(Ve=ie[0]),/\bSimulator\b/i.test(b)&&(Ve=(Ve?Ve+" ":"")+"Simulator"),te=="Opera Mini"&&/\bOPiOS\b/.test(b)&&xe.push("running in Turbo/Uncompressed mode"),te=="IE"&&/\blike iPhone OS\b/.test(b)?(ie=E(b.replace(/like iPhone OS/,"")),ae=ie.manufacturer,Ve=ie.product):/^iP/.test(Ve)?(te||(te="Safari"),Q="iOS"+((ie=/ OS ([\d_]+)/i.exec(b))?" "+ie[1].replace(/_/g,"."):"")):te=="Konqueror"&&!/buntu/i.test(Q)?Q="Kubuntu":ae&&ae!="Google"&&(/Chrome/.test(te)&&!/\bMobile Safari\b/i.test(b)||/\bVita\b/.test(Ve))||/\bAndroid\b/.test(Q)&&/^Chrome/.test(te)&&/\bVersion\//i.test(b)?(te="Android Browser",Q=/\bAndroid\b/.test(Q)?Q:"Android"):te=="Silk"?(/\bMobi/i.test(b)||(Q="Android",xe.unshift("desktop mode")),/Accelerated *= *true/i.test(b)&&xe.unshift("accelerated")):te=="PaleMoon"&&(ie=/\bFirefox\/([\d.]+)\b/.exec(b))?xe.push("identifying as Firefox "+ie[1]):te=="Firefox"&&(ie=/\b(Mobile|Tablet|TV)\b/i.exec(b))?(Q||(Q="Firefox OS"),Ve||(Ve=ie[1])):!te||(ie=!/\bMinefield\b/i.test(b)&&/\b(?:Firefox|Safari)\b/.exec(te))?(te&&!Ve&&/[\/,]|^[^(]+?\)/.test(b.slice(b.indexOf(ie+"/")+8))&&(te=null),(ie=Ve||ae||Q)&&(Ve||ae||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Q))&&(te=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Q)?Q:ie)+" Browser")):te=="Electron"&&(ie=(/\bChrome\/([\d.]+)\b/.exec(b)||0)[1])&&xe.push("Chromium "+ie),fe||(fe=Ie(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",m(te),"(?:Firefox|Minefield|NetFront)"])),(ie=se=="iCab"&&parseFloat(fe)>3&&"WebKit"||/\bOpera\b/.test(te)&&(/\bOPR\b/.test(b)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(b)&&!/^(?:Trident|EdgeHTML)$/.test(se)&&"WebKit"||!se&&/\bMSIE\b/i.test(b)&&(Q=="Mac OS"?"Tasman":"Trident")||se=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(te)&&"NetFront")&&(se=[ie]),te=="IE"&&(ie=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(b)||0)[1])?(te+=" Mobile",Q="Windows Phone "+(/\+$/.test(ie)?ie:ie+".x"),xe.unshift("desktop mode")):/\bWPDesktop\b/i.test(b)?(te="IE Mobile",Q="Windows Phone 8.x",xe.unshift("desktop mode"),fe||(fe=(/\brv:([\d.]+)/.exec(b)||0)[1])):te!="IE"&&se=="Trident"&&(ie=/\brv:([\d.]+)/.exec(b))&&(te&&xe.push("identifying as "+te+(fe?" "+fe:"")),te="IE",fe=ie[1]),Ue){if(p(w,"global"))if(j&&(ie=j.lang.System,ve=ie.getProperty("os.arch"),Q=Q||ie.getProperty("os.name")+" "+ie.getProperty("os.version")),W){try{fe=w.require("ringo/engine").version.join("."),te="RingoJS"}catch(Te){(ie=w.system)&&ie.global.system==w.system&&(te="Narwhal",Q||(Q=ie[0].os||null))}te||(te="Rhino")}else typeof w.process=="object"&&!w.process.browser&&(ie=w.process)&&(typeof ie.versions=="object"&&(typeof ie.versions.electron=="string"?(xe.push("Node "+ie.versions.node),te="Electron",fe=ie.versions.electron):typeof ie.versions.nw=="string"&&(xe.push("Chromium "+fe,"Node "+ie.versions.node),te="NW.js",fe=ie.versions.nw)),te||(te="Node.js",ve=ie.arch,Q=ie.platform,fe=/[\d.]+/.exec(ie.version),fe=fe?fe[0]:null));else h(ie=w.runtime)==k?(te="Adobe AIR",Q=ie.flash.system.Capabilities.os):h(ie=w.phantom)==B?(te="PhantomJS",fe=(ie=ie.version||null)&&ie.major+"."+ie.minor+"."+ie.patch):typeof J.documentMode=="number"&&(ie=/\bTrident\/(\d+)/i.exec(b))?(fe=[fe,J.documentMode],(ie=+ie[1]+4)!=fe[1]&&(xe.push("IE "+fe[1]+" mode"),se&&(se[1]=""),fe[1]=ie),fe=te=="IE"?String(fe[1].toFixed(1)):fe[0]):typeof J.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(te)&&(xe.push("masking as "+te+" "+fe),te="IE",fe="11.0",se=["Trident"],Q="Windows");Q=Q&&s(Q)}if(fe&&(ie=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(fe)||/(?:alpha|beta)(?: ?\d)?/i.exec(b+";"+(Ue&&I.appMinorVersion))||/\bMinefield\b/i.test(b)&&"a")&&(_e=/b/i.test(ie)?"beta":"alpha",fe=fe.replace(RegExp(ie+"\\+?$"),"")+(_e=="beta"?z:V)+(/\d+\+?/.exec(ie)||"")),te=="Fennec"||te=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(Q))te="Firefox Mobile";else if(te=="Maxthon"&&fe)fe=fe.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ve))Ve=="Xbox 360"&&(Q=null),Ve=="Xbox 360"&&/\bIEMobile\b/.test(b)&&xe.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(te)||te&&!Ve&&!/Browser|Mobi/.test(te))&&(Q=="Windows CE"||/Mobi/i.test(b)))te+=" Mobile";else if(te=="IE"&&Ue)try{w.external===null&&xe.unshift("platform preview")}catch(Te){xe.unshift("embedded")}else(/\bBlackBerry\b/.test(Ve)||/\bBB10\b/.test(b))&&(ie=(RegExp(Ve.replace(/ +/g," *")+"/([.\\d]+)","i").exec(b)||0)[1]||fe)?(ie=[ie,/BB10/.test(b)],Q=(ie[1]?(Ve=null,ae="BlackBerry"):"Device Software")+" "+ie[0],fe=null):this!=u&&Ve!="Wii"&&(Ue&&Z||/Opera/.test(te)&&/\b(?:MSIE|Firefox)\b/i.test(b)||te=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Q)||te=="IE"&&(Q&&!/^Win/.test(Q)&&fe>5.5||/\bWindows XP\b/.test(Q)&&fe>8||fe==8&&!/\bTrident\b/.test(b)))&&!o.test(ie=E.call(u,b.replace(o,"")+";"))&&ie.name&&(ie="ing as "+ie.name+((ie=ie.version)?" "+ie:""),o.test(te)?(/\bIE\b/.test(ie)&&Q=="Mac OS"&&(Q=null),ie="identify"+ie):(ie="mask"+ie,de?te=s(de.replace(/([a-z])([A-Z])/g,"$1 $2")):te="Opera",/\bIE\b/.test(ie)&&(Q=null),Ue||(fe=null)),se=["Presto"],xe.push(ie));(ie=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(b)||0)[1])&&(ie=[parseFloat(ie.replace(/\.(\d)$/,".0$1")),ie],te=="Safari"&&ie[1].slice(-1)=="+"?(te="WebKit Nightly",_e="alpha",fe=ie[1].slice(0,-1)):(fe==ie[1]||fe==(ie[2]=(/\bSafari\/([\d.]+\+?)/i.exec(b)||0)[1]))&&(fe=null),ie[1]=(/\bChrome\/([\d.]+)/i.exec(b)||0)[1],ie[0]==537.36&&ie[2]==537.36&&parseFloat(ie[1])>=28&&se=="WebKit"&&(se=["Blink"]),!Ue||!D&&!ie[1]?(se&&(se[1]="like Safari"),ie=(ie=ie[0],ie<400?1:ie<500?2:ie<526?3:ie<533?4:ie<534?"4+":ie<535?5:ie<537?6:ie<538?7:ie<601?8:"8")):(se&&(se[1]="like Chrome"),ie=ie[1]||(ie=ie[0],ie<530?1:ie<532?2:ie<532.05?3:ie<533?4:ie<534.03?5:ie<534.07?6:ie<534.1?7:ie<534.13?8:ie<534.16?9:ie<534.24?10:ie<534.3?11:ie<535.01?12:ie<535.02?"13+":ie<535.07?15:ie<535.11?16:ie<535.19?17:ie<536.05?18:ie<536.1?19:ie<537.01?20:ie<537.11?"21+":ie<537.13?23:ie<537.18?24:ie<537.24?25:ie<537.36?26:se!="Blink"?"27":"28")),se&&(se[1]+=" "+(ie+=typeof ie=="number"?".x":/[.+]/.test(ie)?"":"+")),te=="Safari"&&(!fe||parseInt(fe)>45)&&(fe=ie)),te=="Opera"&&(ie=/\bzbov|zvav$/.exec(Q))?(te+=" ",xe.unshift("desktop mode"),ie=="zvav"?(te+="Mini",fe=null):te+="Mobile",Q=Q.replace(RegExp(" *"+ie+"$"),"")):te=="Safari"&&/\bChrome\b/.exec(se&&se[1])&&(xe.unshift("desktop mode"),te="Chrome Mobile",fe=null,/\bOS X\b/.test(Q)?(ae="Apple",Q="iOS 4.3+"):Q=null),fe&&fe.indexOf(ie=/[\d.]+$/.exec(Q))==0&&b.indexOf("/"+ie+"-")>-1&&(Q=y(Q.replace(ie,""))),se&&!/\b(?:Avant|Nook)\b/.test(te)&&(/Browser|Lunascape|Maxthon/.test(te)||te!="Safari"&&/^iOS/.test(Q)&&/\bSafari\b/.test(se[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(te)&&se[1])&&((ie=se[se.length-1])&&xe.push(ie)),xe.length&&(xe=["("+xe.join("; ")+")"]),ae&&Ve&&Ve.indexOf(ae)<0&&xe.push("on "+ae),Ve&&xe.push((/^on /.test(xe[xe.length-1])?"":"on ")+Ve),Q&&(ie=/ ([\d.+]+)$/.exec(Q),ke=ie&&Q.charAt(Q.length-ie[0].length-1)=="/",Q={architecture:32,family:ie&&!ke?Q.replace(ie[0],""):Q,version:ie?ie[1]:null,toString:function(){var Ge=this.version;return this.family+(Ge&&!ke?" "+Ge:"")+(this.architecture==64?" 64-bit":"")}}),(ie=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ve))&&!/\bi686\b/i.test(ve)?(Q&&(Q.architecture=64,Q.family=Q.family.replace(RegExp(" *"+ie),"")),te&&(/\bWOW64\b/i.test(b)||Ue&&/\w(?:86|32)$/.test(I.cpuClass||I.platform)&&!/\bWin64; x64\b/i.test(b))&&xe.unshift("32-bit")):Q&&/^OS X/.test(Q.family)&&te=="Chrome"&&parseFloat(fe)>=39&&(Q.architecture=64),b||(b=null);var Ae={};return Ae.description=b,Ae.layout=se&&se[0],Ae.manufacturer=ae,Ae.name=te,Ae.prerelease=_e,Ae.product=Ve,Ae.ua=b,Ae.version=te&&fe,Ae.os=Q||{architecture:null,family:null,version:null,toString:function(){return"null"}},Ae.parse=E,Ae.toString=ce,Ae.version&&xe.unshift(fe),Ae.name&&xe.unshift(te),Q&&te&&!(Q==String(Q).split(" ")[0]&&(Q==te.split(" ")[0]||Ve))&&xe.push(Ve?"("+Q+")":"on "+Q),xe.length&&(Ae.description=xe.join(" ")),Ae}var T=E();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(C.platform=T,define(function(){return T})):S&&g?u(T,function(b,w){S[w]=b}):C.platform=T}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(H,F,d){(function(O){"use strict";typeof O=="undefined"||!O.version||O.version.indexOf("v0.")===0||O.version.indexOf("v1.")===0&&O.version.indexOf("v1.8.")!==0?F.exports={nextTick:x}:F.exports=O;function x(C,A,S,g){if(typeof C!="function")throw new TypeError('"callback" argument must be a function');var f=arguments.length,c,o;switch(f){case 0:case 1:return O.nextTick(C);case 2:return O.nextTick(function(){C.call(null,A)});case 3:return O.nextTick(function(){C.call(null,A,S)});case 4:return O.nextTick(function(){C.call(null,A,S,g)});default:for(c=new Array(f-1),o=0;o<c.length;)c[o++]=arguments[o];return O.nextTick(function(){C.apply(null,c)})}}}).call(this,H("_process"))},{_process:208}],208:[function(H,F,d){var O=F.exports={},x,C;function A(){throw new Error("setTimeout has not been defined")}function S(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?x=setTimeout:x=A}catch(a){x=A}try{typeof clearTimeout=="function"?C=clearTimeout:C=S}catch(a){C=S}})();function g(a){if(x===setTimeout)return setTimeout(a,0);if((x===A||!x)&&setTimeout)return x=setTimeout,setTimeout(a,0);try{return x(a,0)}catch(s){try{return x.call(null,a,0)}catch(u){return x.call(this,a,0)}}}function f(a){if(C===clearTimeout)return clearTimeout(a);if((C===S||!C)&&clearTimeout)return C=clearTimeout,clearTimeout(a);try{return C(a)}catch(s){try{return C.call(null,a)}catch(u){return C.call(this,a)}}}var c=[],o=!1,r,i=-1;function n(){if(!o||!r)return;o=!1,r.length?c=r.concat(c):i=-1,c.length&&e()}function e(){if(o)return;var a=g(n);o=!0;for(var s=c.length;s;){for(r=c,c=[];++i<s;)r&&r[i].run();i=-1,s=c.length}r=null,o=!1,f(a)}O.nextTick=function(a){var s=new Array(arguments.length-1);if(arguments.length>1)for(var u=1;u<arguments.length;u++)s[u-1]=arguments[u];c.push(new l(a,s)),c.length===1&&!o&&g(e)};function l(a,s){this.fun=a,this.array=s}l.prototype.run=function(){this.fun.apply(null,this.array)},O.title="browser",O.browser=!0,O.env={},O.argv=[],O.version="",O.versions={};function t(){}O.on=t,O.addListener=t,O.once=t,O.off=t,O.removeListener=t,O.removeAllListeners=t,O.emit=t,O.prependListener=t,O.prependOnceListener=t,O.listeners=function(a){return[]},O.binding=function(a){throw new Error("process.binding is not supported")},O.cwd=function(){return"/"},O.chdir=function(a){throw new Error("process.chdir is not supported")},O.umask=function(){return 0}},{}],209:[function(H,F,d){(function(O){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(x){var C=typeof d=="object"&&d&&!d.nodeType&&d,A=typeof F=="object"&&F&&!F.nodeType&&F,S=typeof O=="object"&&O;(S.global===S||S.window===S||S.self===S)&&(x=S);var g,f=2147483647,c=36,o=1,r=26,i=38,n=700,e=72,l=128,t="-",a=/^xn--/,s=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=c-o,m=Math.floor,v=String.fromCharCode,y;function E(U){throw new RangeError(h[U])}function T(U,B){for(var j=U.length,W=[];j--;)W[j]=B(U[j]);return W}function b(U,B){var j=U.split("@"),W="";j.length>1&&(W=j[0]+"@",U=j[1]),U=U.replace(u,".");var V=U.split("."),z=T(V,B).join(".");return W+z}function w(U){for(var B=[],j=0,W=U.length,V,z;j<W;)V=U.charCodeAt(j++),V>=55296&&V<=56319&&j<W?(z=U.charCodeAt(j++),(z&64512)==56320?B.push(((V&1023)<<10)+(z&1023)+65536):(B.push(V),j--)):B.push(V);return B}function _(U){return T(U,function(B){var j="";return B>65535&&(B-=65536,j+=v(B>>>10&1023|55296),B=56320|B&1023),j+=v(B),j}).join("")}function I(U){return U-48<10?U-22:U-65<26?U-65:U-97<26?U-97:c}function L(U,B){return U+22+75*(U<26)-((B!=0)<<5)}function N(U,B,j){var W=0;for(U=j?m(U/n):U>>1,U+=m(U/B);U>p*r>>1;W+=c)U=m(U/p);return m(W+(p+1)*U/(U+i))}function D(U){var B=[],j=U.length,W,V=0,z=l,J=e,Z,de,ie,ve,xe,_e,Ue,fe,ke;for(Z=U.lastIndexOf(t),Z<0&&(Z=0),de=0;de<Z;++de)U.charCodeAt(de)>=128&&E("not-basic"),B.push(U.charCodeAt(de));for(ie=Z>0?Z+1:0;ie<j;){for(ve=V,xe=1,_e=c;!(ie>=j&&E("invalid-input"),Ue=I(U.charCodeAt(ie++)),(Ue>=c||Ue>m((f-V)/xe))&&E("overflow"),V+=Ue*xe,fe=_e<=J?o:_e>=J+r?r:_e-J,Ue<fe);_e+=c)ke=c-fe,xe>m(f/ke)&&E("overflow"),xe*=ke;W=B.length+1,J=N(V-ve,W,ve==0),m(V/W)>f-z&&E("overflow"),z+=m(V/W),V%=W,B.splice(V++,0,z)}return _(B)}function R(U){var B,j,W,V,z,J,Z,de,ie,ve,xe,_e=[],Ue,fe,ke,se;for(U=w(U),Ue=U.length,B=l,j=0,z=e,J=0;J<Ue;++J)xe=U[J],xe<128&&_e.push(v(xe));for(W=V=_e.length,V&&_e.push(t);W<Ue;){for(Z=f,J=0;J<Ue;++J)xe=U[J],xe>=B&&xe<Z&&(Z=xe);for(fe=W+1,Z-B>m((f-j)/fe)&&E("overflow"),j+=(Z-B)*fe,B=Z,J=0;J<Ue;++J)if(xe=U[J],xe<B&&++j>f&&E("overflow"),xe==B){for(de=j,ie=c;!(ve=ie<=z?o:ie>=z+r?r:ie-z,de<ve);ie+=c)se=de-ve,ke=c-ve,_e.push(v(L(ve+se%ke,0))),de=m(se/ke);_e.push(v(L(de,0))),z=N(j,fe,W==V),j=0,++W}++j,++B}return _e.join("")}function k(U){return b(U,function(B){return a.test(B)?D(B.slice(4).toLowerCase()):B})}function M(U){return b(U,function(B){return s.test(B)?"xn--"+R(B):B})}if(g={version:"1.4.1",ucs2:{decode:w,encode:_},decode:D,encode:R,toASCII:M,toUnicode:k},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return g});else if(C&&A)if(F.exports==C)A.exports=g;else for(y in g)g.hasOwnProperty(y)&&(C[y]=g[y]);else x.punycode=g})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(H,F,d){"use strict";function O(C,A){return Object.prototype.hasOwnProperty.call(C,A)}F.exports=function(C,A,S,g){A=A||"&",S=S||"=";var f={};if(typeof C!="string"||C.length===0)return f;var c=/\+/g;C=C.split(A);var o=1e3;g&&typeof g.maxKeys=="number"&&(o=g.maxKeys);var r=C.length;o>0&&r>o&&(r=o);for(var i=0;i<r;++i){var n=C[i].replace(c,"%20"),e=n.indexOf(S),l,t,a,s;e>=0?(l=n.substr(0,e),t=n.substr(e+1)):(l=n,t=""),a=decodeURIComponent(l),s=decodeURIComponent(t),O(f,a)?x(f[a])?f[a].push(s):f[a]=[f[a],s]:f[a]=s}return f};var x=Array.isArray||function(C){return Object.prototype.toString.call(C)==="[object Array]"}},{}],211:[function(H,F,d){"use strict";var O=function(g){switch(typeof g){case"string":return g;case"boolean":return g?"true":"false";case"number":return isFinite(g)?g:"";default:return""}};F.exports=function(S,g,f,c){return g=g||"&",f=f||"=",S===null&&(S=void 0),typeof S=="object"?C(A(S),function(o){var r=encodeURIComponent(O(o))+f;return x(S[o])?C(S[o],function(i){return r+encodeURIComponent(O(i))}).join(g):r+encodeURIComponent(O(S[o]))}).join(g):c?encodeURIComponent(O(c))+f+encodeURIComponent(O(S)):""};var x=Array.isArray||function(S){return Object.prototype.toString.call(S)==="[object Array]"};function C(S,g){if(S.map)return S.map(g);for(var f=[],c=0;c<S.length;c++)f.push(g(S[c],c));return f}var A=Object.keys||function(S){var g=[];for(var f in S)Object.prototype.hasOwnProperty.call(S,f)&&g.push(f);return g}},{}],212:[function(H,F,d){"use strict";d.decode=d.parse=H("./decode"),d.encode=d.stringify=H("./encode")},{"./decode":210,"./encode":211}],213:[function(H,F,d){F.exports=H("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(H,F,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=S(O),C=H("babel-runtime/core-js/object/keys"),A=S(C);function S(s){return s&&s.__esModule?s:{default:s}}var g=H("process-nextick-args"),f=A.default||function(s){var u=[];for(var h in s)u.push(h);return u};F.exports=l;var c=(0,x.default)(H("core-util-is"));c.inherits=H("inherits");var o=H("./_stream_readable"),r=H("./_stream_writable");c.inherits(l,o);for(var i=f(r.prototype),n=0;n<i.length;n++){var e=i[n];l.prototype[e]||(l.prototype[e]=r.prototype[e])}function l(s){if(!(this instanceof l))return new l(s);o.call(this,s),r.call(this,s),s&&s.readable===!1&&(this.readable=!1),s&&s.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,s&&s.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",t)}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function t(){if(this.allowHalfOpen||this._writableState.ended)return;g.nextTick(a,this)}function a(s){s.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(u){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=u,this._writableState.destroyed=u}}),l.prototype._destroy=function(s,u){this.push(null),this.end(),g.nextTick(u,s)}},{"./_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(H,F,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(f){return f&&f.__esModule?f:{default:f}}F.exports=g;var A=H("./_stream_transform"),S=(0,x.default)(H("core-util-is"));S.inherits=H("inherits"),S.inherits(g,A);function g(f){if(!(this instanceof g))return new g(f);A.call(this,f)}g.prototype._transform=function(f,c,o){o(null,f)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(H,F,d){(function(O,x){"use strict";var C=H("babel-runtime/core-js/object/get-prototype-of"),A=f(C),S=H("babel-runtime/core-js/object/create"),g=f(S);function f(se){return se&&se.__esModule?se:{default:se}}var c=H("process-nextick-args");F.exports=w;var o=H("isarray"),r;w.ReadableState=b;var i=H("events").EventEmitter,n=function(te,Ve){return te.listeners(Ve).length},e=H("./internal/streams/stream"),l=H("safe-buffer").Buffer,t=x.Uint8Array||function(){};function a(se){return l.from(se)}function s(se){return l.isBuffer(se)||se instanceof t}var u=(0,g.default)(H("core-util-is"));u.inherits=H("inherits");var h=H("util"),p=void 0;h&&h.debuglog?p=h.debuglog("stream"):p=function(){};var m=H("./internal/streams/BufferList"),v=H("./internal/streams/destroy"),y;u.inherits(w,e);var E=["error","close","destroy","pause","resume"];function T(se,te,Ve){if(typeof se.prependListener=="function")return se.prependListener(te,Ve);!se._events||!se._events[te]?se.on(te,Ve):o(se._events[te])?se._events[te].unshift(Ve):se._events[te]=[Ve,se._events[te]]}function b(se,te){r=r||H("./_stream_duplex"),se=se||{};var Ve=te instanceof r;this.objectMode=!!se.objectMode,Ve&&(this.objectMode=this.objectMode||!!se.readableObjectMode);var ae=se.highWaterMark,Q=se.readableHighWaterMark,G=this.objectMode?16:16*1024;ae||ae===0?this.highWaterMark=ae:Ve&&(Q||Q===0)?this.highWaterMark=Q:this.highWaterMark=G,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,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=se.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,se.encoding&&(y||(y=H("string_decoder/").StringDecoder),this.decoder=new y(se.encoding),this.encoding=se.encoding)}function w(se){if(r=r||H("./_stream_duplex"),!(this instanceof w))return new w(se);this._readableState=new b(se,this),this.readable=!0,se&&(typeof se.read=="function"&&(this._read=se.read),typeof se.destroy=="function"&&(this._destroy=se.destroy)),e.call(this)}Object.defineProperty(w.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(te){if(!this._readableState)return;this._readableState.destroyed=te}}),w.prototype.destroy=v.destroy,w.prototype._undestroy=v.undestroy,w.prototype._destroy=function(se,te){this.push(null),te(se)},w.prototype.push=function(se,te){var Ve=this._readableState,ae;return Ve.objectMode?ae=!0:typeof se=="string"&&(te=te||Ve.defaultEncoding,te!==Ve.encoding&&(se=l.from(se,te),te=""),ae=!0),_(this,se,te,!1,ae)},w.prototype.unshift=function(se){return _(this,se,null,!0,!1)};function _(se,te,Ve,ae,Q){var G=se._readableState;if(te===null)G.reading=!1,M(se,G);else{var Y;Q||(Y=L(G,te)),Y?se.emit("error",Y):G.objectMode||te&&te.length>0?(typeof te!="string"&&!G.objectMode&&(0,A.default)(te)!==l.prototype&&(te=a(te)),ae?G.endEmitted?se.emit("error",new Error("stream.unshift() after end event")):I(se,G,te,!0):G.ended?se.emit("error",new Error("stream.push() after EOF")):(G.reading=!1,G.decoder&&!Ve?(te=G.decoder.write(te),G.objectMode||te.length!==0?I(se,G,te,!1):j(se,G)):I(se,G,te,!1))):ae||(G.reading=!1)}return N(G)}function I(se,te,Ve,ae){te.flowing&&te.length===0&&!te.sync?(se.emit("data",Ve),se.read(0)):(te.length+=te.objectMode?1:Ve.length,ae?te.buffer.unshift(Ve):te.buffer.push(Ve),te.needReadable&&U(se)),j(se,te)}function L(se,te){var Ve;return!s(te)&&typeof te!="string"&&te!==void 0&&!se.objectMode&&(Ve=new TypeError("Invalid non-string/buffer chunk")),Ve}function N(se){return!se.ended&&(se.needReadable||se.length<se.highWaterMark||se.length===0)}w.prototype.isPaused=function(){return this._readableState.flowing===!1},w.prototype.setEncoding=function(se){return y||(y=H("string_decoder/").StringDecoder),this._readableState.decoder=new y(se),this._readableState.encoding=se,this};var D=8388608;function R(se){return se>=D?se=D:(se--,se|=se>>>1,se|=se>>>2,se|=se>>>4,se|=se>>>8,se|=se>>>16,se++),se}function k(se,te){return se<=0||te.length===0&&te.ended?0:te.objectMode?1:se!==se?te.flowing&&te.length?te.buffer.head.data.length:te.length:(se>te.highWaterMark&&(te.highWaterMark=R(se)),se<=te.length?se:te.ended?te.length:(te.needReadable=!0,0))}w.prototype.read=function(se){p("read",se),se=parseInt(se,10);var te=this._readableState,Ve=se;if(se!==0&&(te.emittedReadable=!1),se===0&&te.needReadable&&(te.length>=te.highWaterMark||te.ended))return p("read: emitReadable",te.length,te.ended),te.length===0&&te.ended?Ue(this):U(this),null;if(se=k(se,te),se===0&&te.ended)return te.length===0&&Ue(this),null;var ae=te.needReadable;p("need readable",ae),(te.length===0||te.length-se<te.highWaterMark)&&(ae=!0,p("length less than watermark",ae)),te.ended||te.reading?(ae=!1,p("reading or ended",ae)):ae&&(p("do read"),te.reading=!0,te.sync=!0,te.length===0&&(te.needReadable=!0),this._read(te.highWaterMark),te.sync=!1,te.reading||(se=k(Ve,te)));var Q;return se>0?Q=ie(se,te):Q=null,Q===null?(te.needReadable=!0,se=0):te.length-=se,te.length===0&&(te.ended||(te.needReadable=!0),Ve!==se&&te.ended&&Ue(this)),Q!==null&&this.emit("data",Q),Q};function M(se,te){if(te.ended)return;if(te.decoder){var Ve=te.decoder.end();Ve&&Ve.length&&(te.buffer.push(Ve),te.length+=te.objectMode?1:Ve.length)}te.ended=!0,U(se)}function U(se){var te=se._readableState;te.needReadable=!1,te.emittedReadable||(p("emitReadable",te.flowing),te.emittedReadable=!0,te.sync?c.nextTick(B,se):B(se))}function B(se){p("emit readable"),se.emit("readable"),de(se)}function j(se,te){te.readingMore||(te.readingMore=!0,c.nextTick(W,se,te))}function W(se,te){for(var Ve=te.length;!te.reading&&!te.flowing&&!te.ended&&te.length<te.highWaterMark&&!(p("maybeReadMore read 0"),se.read(0),Ve===te.length);)Ve=te.length;te.readingMore=!1}w.prototype._read=function(se){this.emit("error",new Error("_read() is not implemented"))},w.prototype.pipe=function(se,te){var Ve=this,ae=this._readableState;switch(ae.pipesCount){case 0:ae.pipes=se;break;case 1:ae.pipes=[ae.pipes,se];break;default:ae.pipes.push(se);break}ae.pipesCount+=1,p("pipe count=%d opts=%j",ae.pipesCount,te);var Q=(!te||te.end!==!1)&&se!==O.stdout&&se!==O.stderr,G=Q?me:qe;ae.endEmitted?c.nextTick(G):Ve.once("end",G),se.on("unpipe",Y);function Y(Le,Ot){p("onunpipe"),Le===Ve&&(Ot&&Ot.hasUnpiped===!1&&(Ot.hasUnpiped=!0,Ie()))}function me(){p("onend"),se.end()}var ue=V(Ve);se.on("drain",ue);var Ce=!1;function Ie(){p("cleanup"),se.removeListener("close",Ge),se.removeListener("finish",gt),se.removeListener("drain",ue),se.removeListener("error",Te),se.removeListener("unpipe",Y),Ve.removeListener("end",me),Ve.removeListener("end",qe),Ve.removeListener("data",Ae),Ce=!0,ae.awaitDrain&&(!se._writableState||se._writableState.needDrain)&&ue()}var ce=!1;Ve.on("data",Ae);function Ae(Le){p("ondata"),ce=!1;var Ot=se.write(Le);Ot===!1&&!ce&&((ae.pipesCount===1&&ae.pipes===se||ae.pipesCount>1&&ke(ae.pipes,se)!==-1)&&!Ce&&(p("false write response, pause",Ve._readableState.awaitDrain),Ve._readableState.awaitDrain++,ce=!0),Ve.pause())}function Te(Le){p("onerror",Le),qe(),se.removeListener("error",Te),n(se,"error")===0&&se.emit("error",Le)}T(se,"error",Te);function Ge(){se.removeListener("finish",gt),qe()}se.once("close",Ge);function gt(){p("onfinish"),se.removeListener("close",Ge),qe()}se.once("finish",gt);function qe(){p("unpipe"),Ve.unpipe(se)}return se.emit("pipe",Ve),ae.flowing||(p("pipe resume"),Ve.resume()),se};function V(se){return function(){var te=se._readableState;p("pipeOnDrain",te.awaitDrain),te.awaitDrain&&te.awaitDrain--,te.awaitDrain===0&&n(se,"data")&&(te.flowing=!0,de(se))}}w.prototype.unpipe=function(se){var te=this._readableState,Ve={hasUnpiped:!1};if(te.pipesCount===0)return this;if(te.pipesCount===1)return se&&se!==te.pipes?this:(se||(se=te.pipes),te.pipes=null,te.pipesCount=0,te.flowing=!1,se&&se.emit("unpipe",this,Ve),this);if(!se){var ae=te.pipes,Q=te.pipesCount;te.pipes=null,te.pipesCount=0,te.flowing=!1;for(var G=0;G<Q;G++)ae[G].emit("unpipe",this,Ve);return this}var Y=ke(te.pipes,se);return Y===-1?this:(te.pipes.splice(Y,1),te.pipesCount-=1,te.pipesCount===1&&(te.pipes=te.pipes[0]),se.emit("unpipe",this,Ve),this)},w.prototype.on=function(se,te){var Ve=e.prototype.on.call(this,se,te);if(se==="data")this._readableState.flowing!==!1&&this.resume();else if(se==="readable"){var ae=this._readableState;!ae.endEmitted&&!ae.readableListening&&(ae.readableListening=ae.needReadable=!0,ae.emittedReadable=!1,ae.reading?ae.length&&U(this):c.nextTick(z,this))}return Ve},w.prototype.addListener=w.prototype.on;function z(se){p("readable nexttick read 0"),se.read(0)}w.prototype.resume=function(){var se=this._readableState;return se.flowing||(p("resume"),se.flowing=!0,J(this,se)),this};function J(se,te){te.resumeScheduled||(te.resumeScheduled=!0,c.nextTick(Z,se,te))}function Z(se,te){te.reading||(p("resume read 0"),se.read(0)),te.resumeScheduled=!1,te.awaitDrain=0,se.emit("resume"),de(se),te.flowing&&!te.reading&&se.read(0)}w.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function de(se){var te=se._readableState;for(p("flow",te.flowing);te.flowing&&se.read()!==null;);}w.prototype.wrap=function(se){var te=this,Ve=this._readableState,ae=!1;se.on("end",function(){if(p("wrapped end"),Ve.decoder&&!Ve.ended){var Y=Ve.decoder.end();Y&&Y.length&&te.push(Y)}te.push(null)}),se.on("data",function(Y){if(p("wrapped data"),Ve.decoder&&(Y=Ve.decoder.write(Y)),Ve.objectMode&&Y==null)return;if(!Ve.objectMode&&(!Y||!Y.length))return;var me=te.push(Y);me||(ae=!0,se.pause())});for(var Q in se)this[Q]===void 0&&typeof se[Q]=="function"&&(this[Q]=function(Y){return function(){return se[Y].apply(se,arguments)}}(Q));for(var G=0;G<E.length;G++)se.on(E[G],this.emit.bind(this,E[G]));return this._read=function(Y){p("wrapped _read",Y),ae&&(ae=!1,se.resume())},this},Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),w._fromList=ie;function ie(se,te){if(te.length===0)return null;var Ve;return te.objectMode?Ve=te.buffer.shift():!se||se>=te.length?(te.decoder?Ve=te.buffer.join(""):te.buffer.length===1?Ve=te.buffer.head.data:Ve=te.buffer.concat(te.length),te.buffer.clear()):Ve=ve(se,te.buffer,te.decoder),Ve}function ve(se,te,Ve){var ae;return se<te.head.data.length?(ae=te.head.data.slice(0,se),te.head.data=te.head.data.slice(se)):se===te.head.data.length?ae=te.shift():ae=Ve?xe(se,te):_e(se,te),ae}function xe(se,te){var Ve=te.head,ae=1,Q=Ve.data;for(se-=Q.length;Ve=Ve.next;){var G=Ve.data,Y=se>G.length?G.length:se;if(Y===G.length?Q+=G:Q+=G.slice(0,se),se-=Y,se===0){Y===G.length?(++ae,Ve.next?te.head=Ve.next:te.head=te.tail=null):(te.head=Ve,Ve.data=G.slice(Y));break}++ae}return te.length-=ae,Q}function _e(se,te){var Ve=l.allocUnsafe(se),ae=te.head,Q=1;for(ae.data.copy(Ve),se-=ae.data.length;ae=ae.next;){var G=ae.data,Y=se>G.length?G.length:se;if(G.copy(Ve,Ve.length-se,0,Y),se-=Y,se===0){Y===G.length?(++Q,ae.next?te.head=ae.next:te.head=te.tail=null):(te.head=ae,ae.data=G.slice(Y));break}++Q}return te.length-=Q,Ve}function Ue(se){var te=se._readableState;if(te.length>0)throw new Error('"endReadable()" called on non-empty stream');te.endEmitted||(te.ended=!0,c.nextTick(fe,te,se))}function fe(se,te){!se.endEmitted&&se.length===0&&(se.endEmitted=!0,te.readable=!1,te.emit("end"))}function ke(se,te){for(var Ve=0,ae=se.length;Ve<ae;Ve++)if(se[Ve]===te)return Ve;return-1}}).call(this,H("_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(H,F,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(r){return r&&r.__esModule?r:{default:r}}F.exports=f;var A=H("./_stream_duplex"),S=(0,x.default)(H("core-util-is"));S.inherits=H("inherits"),S.inherits(f,A);function g(r,i){var n=this._transformState;n.transforming=!1;var e=n.writecb;if(!e)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,i!=null&&this.push(i),e(r);var l=this._readableState;l.reading=!1,(l.needReadable||l.length<l.highWaterMark)&&this._read(l.highWaterMark)}function f(r){if(!(this instanceof f))return new f(r);A.call(this,r),this._transformState={afterTransform:g.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",c)}function c(){var r=this;typeof this._flush=="function"?this._flush(function(i,n){o(r,i,n)}):o(this,null,null)}f.prototype.push=function(r,i){return this._transformState.needTransform=!1,A.prototype.push.call(this,r,i)},f.prototype._transform=function(r,i,n){throw new Error("_transform() is not implemented")},f.prototype._write=function(r,i,n){var e=this._transformState;if(e.writecb=n,e.writechunk=r,e.writeencoding=i,!e.transforming){var l=this._readableState;(e.needTransform||l.needReadable||l.length<l.highWaterMark)&&this._read(l.highWaterMark)}},f.prototype._read=function(r){var i=this._transformState;i.writechunk!==null&&i.writecb&&!i.transforming?(i.transforming=!0,this._transform(i.writechunk,i.writeencoding,i.afterTransform)):i.needTransform=!0},f.prototype._destroy=function(r,i){var n=this;A.prototype._destroy.call(this,r,function(e){i(e),n.emit("close")})};function o(r,i,n){if(i)return r.emit("error",i);if(n!=null&&r.push(n),r._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(r._transformState.transforming)throw new Error("Calling transform done when still transforming");return r.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(H,F,d){(function(O,x){"use strict";var C=H("babel-runtime/core-js/object/define-property"),A=e(C),S=H("babel-runtime/core-js/symbol/has-instance"),g=e(S),f=H("babel-runtime/core-js/symbol"),c=e(f),o=H("babel-runtime/core-js/object/create"),r=e(o),i=H("babel-runtime/core-js/set-immediate"),n=e(i);function e(_e){return _e&&_e.__esModule?_e:{default:_e}}var l=H("process-nextick-args");F.exports=L;function t(_e,Ue,fe){this.chunk=_e,this.encoding=Ue,this.callback=fe,this.next=null}function a(_e){var Ue=this;this.next=null,this.entry=null,this.finish=function(){xe(Ue,_e)}}var s=!O.browser&&["v0.10","v0.9."].indexOf(O.version.slice(0,5))>-1?n.default:l.nextTick,u;L.WritableState=_;var h=(0,r.default)(H("core-util-is"));h.inherits=H("inherits");var p={deprecate:H("util-deprecate")},m=H("./internal/streams/stream"),v=H("safe-buffer").Buffer,y=x.Uint8Array||function(){};function E(_e){return v.from(_e)}function T(_e){return v.isBuffer(_e)||_e instanceof y}var b=H("./internal/streams/destroy");h.inherits(L,m);function w(){}function _(_e,Ue){u=u||H("./_stream_duplex"),_e=_e||{};var fe=Ue instanceof u;this.objectMode=!!_e.objectMode,fe&&(this.objectMode=this.objectMode||!!_e.writableObjectMode);var ke=_e.highWaterMark,se=_e.writableHighWaterMark,te=this.objectMode?16:16*1024;ke||ke===0?this.highWaterMark=ke:fe&&(se||se===0)?this.highWaterMark=se:this.highWaterMark=te,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 Ve=_e.decodeStrings===!1;this.decodeStrings=!Ve,this.defaultEncoding=_e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ae){j(Ue,ae)},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 a(this)}_.prototype.getBuffer=function(){for(var Ue=this.bufferedRequest,fe=[];Ue;)fe.push(Ue),Ue=Ue.next;return fe},function(){try{Object.defineProperty(_.prototype,"buffer",{get:p.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(_e){}}();var I;typeof c.default=="function"&&g.default&&typeof Function.prototype[g.default]=="function"?(I=Function.prototype[g.default],(0,A.default)(L,g.default,{value:function(Ue){return I.call(this,Ue)?!0:this!==L?!1:Ue&&Ue._writableState instanceof _}})):I=function(Ue){return Ue instanceof this};function L(_e){if(u=u||H("./_stream_duplex"),!I.call(L,this)&&!(this instanceof u))return new L(_e);this._writableState=new _(_e,this),this.writable=!0,_e&&(typeof _e.write=="function"&&(this._write=_e.write),typeof _e.writev=="function"&&(this._writev=_e.writev),typeof _e.destroy=="function"&&(this._destroy=_e.destroy),typeof _e.final=="function"&&(this._final=_e.final)),m.call(this)}L.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function N(_e,Ue){var fe=new Error("write after end");_e.emit("error",fe),l.nextTick(Ue,fe)}function D(_e,Ue,fe,ke){var se=!0,te=!1;return fe===null?te=new TypeError("May not write null values to stream"):typeof fe!="string"&&fe!==void 0&&!Ue.objectMode&&(te=new TypeError("Invalid non-string/buffer chunk")),te&&(_e.emit("error",te),l.nextTick(ke,te),se=!1),se}L.prototype.write=function(_e,Ue,fe){var ke=this._writableState,se=!1,te=!ke.objectMode&&T(_e);return te&&!v.isBuffer(_e)&&(_e=E(_e)),typeof Ue=="function"&&(fe=Ue,Ue=null),te?Ue="buffer":Ue||(Ue=ke.defaultEncoding),typeof fe!="function"&&(fe=w),ke.ended?N(this,fe):(te||D(this,ke,_e,fe))&&(ke.pendingcb++,se=k(this,ke,te,_e,Ue,fe)),se},L.prototype.cork=function(){var _e=this._writableState;_e.corked++},L.prototype.uncork=function(){var _e=this._writableState;_e.corked&&(_e.corked--,!_e.writing&&!_e.corked&&!_e.finished&&!_e.bufferProcessing&&_e.bufferedRequest&&z(this,_e))},L.prototype.setDefaultEncoding=function(Ue){if(typeof Ue=="string"&&(Ue=Ue.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ue+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Ue);return this._writableState.defaultEncoding=Ue,this};function R(_e,Ue,fe){return!_e.objectMode&&_e.decodeStrings!==!1&&typeof Ue=="string"&&(Ue=v.from(Ue,fe)),Ue}Object.defineProperty(L.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function k(_e,Ue,fe,ke,se,te){if(!fe){var Ve=R(Ue,ke,se);ke!==Ve&&(fe=!0,se="buffer",ke=Ve)}var ae=Ue.objectMode?1:ke.length;Ue.length+=ae;var Q=Ue.length<Ue.highWaterMark;if(Q||(Ue.needDrain=!0),Ue.writing||Ue.corked){var G=Ue.lastBufferedRequest;Ue.lastBufferedRequest={chunk:ke,encoding:se,isBuf:fe,callback:te,next:null},G?G.next=Ue.lastBufferedRequest:Ue.bufferedRequest=Ue.lastBufferedRequest,Ue.bufferedRequestCount+=1}else M(_e,Ue,!1,ae,ke,se,te);return Q}function M(_e,Ue,fe,ke,se,te,Ve){Ue.writelen=ke,Ue.writecb=Ve,Ue.writing=!0,Ue.sync=!0,fe?_e._writev(se,Ue.onwrite):_e._write(se,te,Ue.onwrite),Ue.sync=!1}function U(_e,Ue,fe,ke,se){--Ue.pendingcb,fe?(l.nextTick(se,ke),l.nextTick(ie,_e,Ue),_e._writableState.errorEmitted=!0,_e.emit("error",ke)):(se(ke),_e._writableState.errorEmitted=!0,_e.emit("error",ke),ie(_e,Ue))}function B(_e){_e.writing=!1,_e.writecb=null,_e.length-=_e.writelen,_e.writelen=0}function j(_e,Ue){var fe=_e._writableState,ke=fe.sync,se=fe.writecb;if(B(fe),Ue)U(_e,fe,ke,Ue,se);else{var te=J(fe);!te&&!fe.corked&&!fe.bufferProcessing&&fe.bufferedRequest&&z(_e,fe),ke?s(W,_e,fe,te,se):W(_e,fe,te,se)}}function W(_e,Ue,fe,ke){fe||V(_e,Ue),Ue.pendingcb--,ke(),ie(_e,Ue)}function V(_e,Ue){Ue.length===0&&Ue.needDrain&&(Ue.needDrain=!1,_e.emit("drain"))}function z(_e,Ue){Ue.bufferProcessing=!0;var fe=Ue.bufferedRequest;if(_e._writev&&fe&&fe.next){var ke=Ue.bufferedRequestCount,se=new Array(ke),te=Ue.corkedRequestsFree;te.entry=fe;for(var Ve=0,ae=!0;fe;)se[Ve]=fe,fe.isBuf||(ae=!1),fe=fe.next,Ve+=1;se.allBuffers=ae,M(_e,Ue,!0,Ue.length,se,"",te.finish),Ue.pendingcb++,Ue.lastBufferedRequest=null,te.next?(Ue.corkedRequestsFree=te.next,te.next=null):Ue.corkedRequestsFree=new a(Ue),Ue.bufferedRequestCount=0}else{for(;fe;){var Q=fe.chunk,G=fe.encoding,Y=fe.callback,me=Ue.objectMode?1:Q.length;if(M(_e,Ue,!1,me,Q,G,Y),fe=fe.next,Ue.bufferedRequestCount--,Ue.writing)break}fe===null&&(Ue.lastBufferedRequest=null)}Ue.bufferedRequest=fe,Ue.bufferProcessing=!1}L.prototype._write=function(_e,Ue,fe){fe(new Error("_write() is not implemented"))},L.prototype._writev=null,L.prototype.end=function(_e,Ue,fe){var ke=this._writableState;typeof _e=="function"?(fe=_e,_e=null,Ue=null):typeof Ue=="function"&&(fe=Ue,Ue=null),_e!=null&&this.write(_e,Ue),ke.corked&&(ke.corked=1,this.uncork()),!ke.ending&&!ke.finished&&ve(this,ke,fe)};function J(_e){return _e.ending&&_e.length===0&&_e.bufferedRequest===null&&!_e.finished&&!_e.writing}function Z(_e,Ue){_e._final(function(fe){Ue.pendingcb--,fe&&_e.emit("error",fe),Ue.prefinished=!0,_e.emit("prefinish"),ie(_e,Ue)})}function de(_e,Ue){!Ue.prefinished&&!Ue.finalCalled&&(typeof _e._final=="function"?(Ue.pendingcb++,Ue.finalCalled=!0,l.nextTick(Z,_e,Ue)):(Ue.prefinished=!0,_e.emit("prefinish")))}function ie(_e,Ue){var fe=J(Ue);return fe&&(de(_e,Ue),Ue.pendingcb===0&&(Ue.finished=!0,_e.emit("finish"))),fe}function ve(_e,Ue,fe){Ue.ending=!0,ie(_e,Ue),fe&&(Ue.finished?l.nextTick(fe):_e.once("finish",fe)),Ue.ended=!0,_e.writable=!1}function xe(_e,Ue,fe){var ke=_e.entry;for(_e.entry=null;ke;){var se=ke.callback;Ue.pendingcb--,se(fe),ke=ke.next}Ue.corkedRequestsFree?Ue.corkedRequestsFree.next=_e:Ue.corkedRequestsFree=_e}Object.defineProperty(L.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Ue){if(!this._writableState)return;this._writableState.destroyed=Ue}}),L.prototype.destroy=b.destroy,L.prototype._undestroy=b.undestroy,L.prototype._destroy=function(_e,Ue){this.end(),Ue(_e)}}).call(this,H("_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(H,F,d){"use strict";function O(S,g){if(!(S instanceof g))throw new TypeError("Cannot call a class as a function")}var x=H("safe-buffer").Buffer,C=H("util");function A(S,g,f){S.copy(g,f)}F.exports=function(){function S(){O(this,S),this.head=null,this.tail=null,this.length=0}return S.prototype.push=function(f){var c={data:f,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length},S.prototype.unshift=function(f){var c={data:f,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length},S.prototype.shift=function(){if(this.length===0)return;var f=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,f},S.prototype.clear=function(){this.head=this.tail=null,this.length=0},S.prototype.join=function(f){if(this.length===0)return"";for(var c=this.head,o=""+c.data;c=c.next;)o+=f+c.data;return o},S.prototype.concat=function(f){if(this.length===0)return x.alloc(0);if(this.length===1)return this.head.data;for(var c=x.allocUnsafe(f>>>0),o=this.head,r=0;o;)A(o.data,c,r),r+=o.data.length,o=o.next;return c},S}(),C&&C.inspect&&C.inspect.custom&&(F.exports.prototype[C.inspect.custom]=function(){var S=C.inspect({length:this.length});return this.constructor.name+" "+S})},{"safe-buffer":228,util:71}],220:[function(H,F,d){"use strict";var O=H("process-nextick-args");function x(S,g){var f=this,c=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return c||o?(g?g(S):S&&(!this._writableState||!this._writableState.errorEmitted)&&O.nextTick(A,this,S),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(S||null,function(r){!g&&r?(O.nextTick(A,f,r),f._writableState&&(f._writableState.errorEmitted=!0)):g&&g(r)}),this)}function C(){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(S,g){S.emit("error",g)}F.exports={destroy:x,undestroy:C}},{"process-nextick-args":207}],221:[function(H,F,d){"use strict";F.exports=H("events").EventEmitter},{events:192}],222:[function(H,F,d){F.exports=H("./readable").PassThrough},{"./readable":223}],223:[function(H,F,d){d=F.exports=H("./lib/_stream_readable.js"),d.Stream=d,d.Readable=d,d.Writable=H("./lib/_stream_writable.js"),d.Duplex=H("./lib/_stream_duplex.js"),d.Transform=H("./lib/_stream_transform.js"),d.PassThrough=H("./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(H,F,d){F.exports=H("./readable").Transform},{"./readable":223}],225:[function(H,F,d){F.exports=H("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(H,F,d){var O=function(){return this}()||Function("return this")(),x=O.regeneratorRuntime&&Object.getOwnPropertyNames(O).indexOf("regeneratorRuntime")>=0,C=x&&O.regeneratorRuntime;if(O.regeneratorRuntime=void 0,F.exports=H("./runtime"),x)O.regeneratorRuntime=C;else try{delete O.regeneratorRuntime}catch(A){O.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(H,F,d){!function(O){"use strict";var x=Object.prototype,C=x.hasOwnProperty,A,S=typeof Symbol=="function"?Symbol:{},g=S.iterator||"@@iterator",f=S.asyncIterator||"@@asyncIterator",c=S.toStringTag||"@@toStringTag",o=typeof F=="object",r=O.regeneratorRuntime;if(r){o&&(F.exports=r);return}r=O.regeneratorRuntime=o?F.exports:{};function i(k,M,U,B){var j=M&&M.prototype instanceof u?M:u,W=Object.create(j.prototype),V=new N(B||[]);return W._invoke=w(k,U,V),W}r.wrap=i;function n(k,M,U){try{return{type:"normal",arg:k.call(M,U)}}catch(B){return{type:"throw",arg:B}}}var e="suspendedStart",l="suspendedYield",t="executing",a="completed",s={};function u(){}function h(){}function p(){}var m={};m[g]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(D([])));y&&y!==x&&C.call(y,g)&&(m=y);var E=p.prototype=u.prototype=Object.create(m);h.prototype=E.constructor=p,p.constructor=h,p[c]=h.displayName="GeneratorFunction";function T(k){["next","throw","return"].forEach(function(M){k[M]=function(U){return this._invoke(M,U)}})}r.isGeneratorFunction=function(k){var M=typeof k=="function"&&k.constructor;return M?M===h||(M.displayName||M.name)==="GeneratorFunction":!1},r.mark=function(k){return Object.setPrototypeOf?Object.setPrototypeOf(k,p):(k.__proto__=p,c in k||(k[c]="GeneratorFunction")),k.prototype=Object.create(E),k},r.awrap=function(k){return{__await:k}};function b(k){function M(j,W,V,z){var J=n(k[j],k,W);if(J.type==="throw")z(J.arg);else{var Z=J.arg,de=Z.value;return de&&typeof de=="object"&&C.call(de,"__await")?Promise.resolve(de.__await).then(function(ie){M("next",ie,V,z)},function(ie){M("throw",ie,V,z)}):Promise.resolve(de).then(function(ie){Z.value=ie,V(Z)},z)}}var U;function B(j,W){function V(){return new Promise(function(z,J){M(j,W,z,J)})}return U=U?U.then(V,V):V()}this._invoke=B}T(b.prototype),b.prototype[f]=function(){return this},r.AsyncIterator=b,r.async=function(k,M,U,B){var j=new b(i(k,M,U,B));return r.isGeneratorFunction(M)?j:j.next().then(function(W){return W.done?W.value:j.next()})};function w(k,M,U){var B=e;return function(W,V){if(B===t)throw new Error("Generator is already running");if(B===a){if(W==="throw")throw V;return R()}for(U.method=W,U.arg=V;;){var z=U.delegate;if(z){var J=_(z,U);if(J){if(J===s)continue;return J}}if(U.method==="next")U.sent=U._sent=U.arg;else if(U.method==="throw"){if(B===e)throw B=a,U.arg;U.dispatchException(U.arg)}else U.method==="return"&&U.abrupt("return",U.arg);B=t;var Z=n(k,M,U);if(Z.type==="normal"){if(B=U.done?a:l,Z.arg===s)continue;return{value:Z.arg,done:U.done}}else Z.type==="throw"&&(B=a,U.method="throw",U.arg=Z.arg)}}}function _(k,M){var U=k.iterator[M.method];if(U===A){if(M.delegate=null,M.method==="throw"){if(k.iterator.return&&(M.method="return",M.arg=A,_(k,M),M.method==="throw"))return s;M.method="throw",M.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var B=n(U,k.iterator,M.arg);if(B.type==="throw")return M.method="throw",M.arg=B.arg,M.delegate=null,s;var j=B.arg;if(!j)return M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,s;if(j.done)M[k.resultName]=j.value,M.next=k.nextLoc,M.method!=="return"&&(M.method="next",M.arg=A);else return j;return M.delegate=null,s}T(E),E[c]="Generator",E[g]=function(){return this},E.toString=function(){return"[object Generator]"};function I(k){var M={tryLoc:k[0]};1 in k&&(M.catchLoc=k[1]),2 in k&&(M.finallyLoc=k[2],M.afterLoc=k[3]),this.tryEntries.push(M)}function L(k){var M=k.completion||{};M.type="normal",delete M.arg,k.completion=M}function N(k){this.tryEntries=[{tryLoc:"root"}],k.forEach(I,this),this.reset(!0)}r.keys=function(k){var M=[];for(var U in k)M.push(U);return M.reverse(),function B(){for(;M.length;){var j=M.pop();if(j in k)return B.value=j,B.done=!1,B}return B.done=!0,B}};function D(k){if(k){var M=k[g];if(M)return M.call(k);if(typeof k.next=="function")return k;if(!isNaN(k.length)){var U=-1,B=function j(){for(;++U<k.length;)if(C.call(k,U))return j.value=k[U],j.done=!1,j;return j.value=A,j.done=!0,j};return B.next=B}}return{next:R}}r.values=D;function R(){return{value:A,done:!0}}N.prototype={constructor:N,reset:function(M){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(L),!M)for(var U in this)U.charAt(0)==="t"&&C.call(this,U)&&!isNaN(+U.slice(1))&&(this[U]=A)},stop:function(){this.done=!0;var M=this.tryEntries[0],U=M.completion;if(U.type==="throw")throw U.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var U=this;function B(Z,de){return V.type="throw",V.arg=M,U.next=Z,de&&(U.method="next",U.arg=A),!!de}for(var j=this.tryEntries.length-1;j>=0;--j){var W=this.tryEntries[j],V=W.completion;if(W.tryLoc==="root")return B("end");if(W.tryLoc<=this.prev){var z=C.call(W,"catchLoc"),J=C.call(W,"finallyLoc");if(z&&J){if(this.prev<W.catchLoc)return B(W.catchLoc,!0);if(this.prev<W.finallyLoc)return B(W.finallyLoc)}else if(z){if(this.prev<W.catchLoc)return B(W.catchLoc,!0)}else if(J){if(this.prev<W.finallyLoc)return B(W.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(M,U){for(var B=this.tryEntries.length-1;B>=0;--B){var j=this.tryEntries[B];if(j.tryLoc<=this.prev&&C.call(j,"finallyLoc")&&this.prev<j.finallyLoc){var W=j;break}}W&&(M==="break"||M==="continue")&&W.tryLoc<=U&&U<=W.finallyLoc&&(W=null);var V=W?W.completion:{};return V.type=M,V.arg=U,W?(this.method="next",this.next=W.finallyLoc,s):this.complete(V)},complete:function(M,U){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&U&&(this.next=U),s},finish:function(M){for(var U=this.tryEntries.length-1;U>=0;--U){var B=this.tryEntries[U];if(B.finallyLoc===M)return this.complete(B.completion,B.afterLoc),L(B),s}},catch:function(M){for(var U=this.tryEntries.length-1;U>=0;--U){var B=this.tryEntries[U];if(B.tryLoc===M){var j=B.completion;if(j.type==="throw"){var W=j.arg;L(B)}return W}}throw new Error("illegal catch attempt")},delegateYield:function(M,U,B){return this.delegate={iterator:D(M),resultName:U,nextLoc:B},this.method==="next"&&(this.arg=A),s}}}(function(){return this}()||Function("return this")())},{}],228:[function(H,F,d){var O=H("buffer"),x=O.Buffer;function C(S,g){for(var f in S)g[f]=S[f]}x.from&&x.alloc&&x.allocUnsafe&&x.allocUnsafeSlow?F.exports=O:(C(O,d),d.Buffer=A);function A(S,g,f){return x(S,g,f)}C(x,A),A.from=function(S,g,f){if(typeof S=="number")throw new TypeError("Argument must not be a number");return x(S,g,f)},A.alloc=function(S,g,f){if(typeof S!="number")throw new TypeError("Argument must be a number");var c=x(S);return g!==void 0?typeof f=="string"?c.fill(g,f):c.fill(g):c.fill(0),c},A.allocUnsafe=function(S){if(typeof S!="number")throw new TypeError("Argument must be a number");return x(S)},A.allocUnsafeSlow=function(S){if(typeof S!="number")throw new TypeError("Argument must be a number");return O.SlowBuffer(S)}},{buffer:73}],229:[function(H,F,d){(function(O){"use strict";var x=H("babel-runtime/core-js/string/from-code-point"),C=l(x),A=H("babel-runtime/core-js/json/stringify"),S=l(A),g=H("babel-runtime/helpers/typeof"),f=l(g),c=H("babel-runtime/core-js/object/define-property"),o=l(c),r=H("babel-runtime/core-js/object/keys"),i=l(r),n=H("babel-runtime/core-js/object/create"),e=l(n);function l(t){return t&&t.__esModule?t:{default:t}}(function(t){t.parser=function(G,Y){return new s(G,Y)},t.SAXParser=s,t.SAXStream=E,t.createStream=y,t.MAX_BUFFER_LENGTH=64*1024;var a=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function s(G,Y){if(!(this instanceof s))return new s(G,Y);var me=this;h(me),me.q=me.c="",me.bufferCheckPosition=t.MAX_BUFFER_LENGTH,me.opt=Y||{},me.opt.lowercase=me.opt.lowercase||me.opt.lowercasetags,me.looseCase=me.opt.lowercase?"toLowerCase":"toUpperCase",me.tags=[],me.closed=me.closedRoot=me.sawRoot=!1,me.tag=me.error=null,me.strict=!!G,me.noscript=!!(G||me.opt.noscript),me.state=W.BEGIN,me.strictEntities=me.opt.strictEntities,me.ENTITIES=me.strictEntities?(0,e.default)(t.XML_ENTITIES):(0,e.default)(t.ENTITIES),me.attribList=[],me.opt.xmlns&&(me.ns=(0,e.default)(I)),me.trackPosition=me.opt.position!==!1,me.trackPosition&&(me.position=me.line=me.column=0),z(me,"onready")}e.default||(Object.create=function(G){function Y(){}Y.prototype=G;var me=new Y;return me}),i.default||(Object.keys=function(G){var Y=[];for(var me in G)G.hasOwnProperty(me)&&Y.push(me);return Y});function u(G){for(var Y=Math.max(t.MAX_BUFFER_LENGTH,10),me=0,ue=0,Ce=a.length;ue<Ce;ue++){var Ie=G[a[ue]].length;if(Ie>Y)switch(a[ue]){case"textNode":Z(G);break;case"cdata":J(G,"oncdata",G.cdata),G.cdata="";break;case"script":J(G,"onscript",G.script),G.script="";break;default:ie(G,"Max buffer length exceeded: "+a[ue])}me=Math.max(me,Ie)}var ce=t.MAX_BUFFER_LENGTH-me;G.bufferCheckPosition=ce+G.position}function h(G){for(var Y=0,me=a.length;Y<me;Y++)G[a[Y]]=""}function p(G){Z(G),G.cdata!==""&&(J(G,"oncdata",G.cdata),G.cdata=""),G.script!==""&&(J(G,"onscript",G.script),G.script="")}s.prototype={end:function(){ve(this)},write:Q,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){p(this)}};var m;try{m=H("stream").Stream}catch(G){m=function(){}}var v=t.EVENTS.filter(function(G){return G!=="error"&&G!=="end"});function y(G,Y){return new E(G,Y)}function E(G,Y){if(!(this instanceof E))return new E(G,Y);m.apply(this),this._parser=new s(G,Y),this.writable=!0,this.readable=!0;var me=this;this._parser.onend=function(){me.emit("end")},this._parser.onerror=function(ue){me.emit("error",ue),me._parser.error=null},this._decoder=null,v.forEach(function(ue){(0,o.default)(me,"on"+ue,{get:function(){return me._parser["on"+ue]},set:function(Ie){if(!Ie)return me.removeAllListeners(ue),me._parser["on"+ue]=Ie,Ie;me.on(ue,Ie)},enumerable:!0,configurable:!1})})}E.prototype=(0,e.default)(m.prototype,{constructor:{value:E}}),E.prototype.write=function(G){if(typeof O=="function"&&typeof O.isBuffer=="function"&&O.isBuffer(G)){if(!this._decoder){var Y=H("string_decoder").StringDecoder;this._decoder=new Y("utf8")}G=this._decoder.write(G)}return this._parser.write(G.toString()),this.emit("data",G),!0},E.prototype.end=function(G){return G&&G.length&&this.write(G),this._parser.end(),!0},E.prototype.on=function(G,Y){var me=this;return!me._parser["on"+G]&&v.indexOf(G)!==-1&&(me._parser["on"+G]=function(){var ue=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);ue.splice(0,0,G),me.emit.apply(me,ue)}),m.prototype.on.call(me,G,Y)};var T="[CDATA[",b="DOCTYPE",w="http://www.w3.org/XML/1998/namespace",_="http://www.w3.org/2000/xmlns/",I={xml:w,xmlns:_},L=/[:_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]/,N=/[:_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-]/,D=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,R=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function k(G){return G===" "||G===`
|
|
|
`||G==="\r"||G===" "}function M(G){return G==='"'||G==="'"}function U(G){return G===">"||k(G)}function B(G,Y){return G.test(Y)}function j(G,Y){return!B(G,Y)}var W=0;t.STATE={BEGIN:W++,BEGIN_WHITESPACE:W++,TEXT:W++,TEXT_ENTITY:W++,OPEN_WAKA:W++,SGML_DECL:W++,SGML_DECL_QUOTED:W++,DOCTYPE:W++,DOCTYPE_QUOTED:W++,DOCTYPE_DTD:W++,DOCTYPE_DTD_QUOTED:W++,COMMENT_STARTING:W++,COMMENT:W++,COMMENT_ENDING:W++,COMMENT_ENDED:W++,CDATA:W++,CDATA_ENDING:W++,CDATA_ENDING_2:W++,PROC_INST:W++,PROC_INST_BODY:W++,PROC_INST_ENDING:W++,OPEN_TAG:W++,OPEN_TAG_SLASH:W++,ATTRIB:W++,ATTRIB_NAME:W++,ATTRIB_NAME_SAW_WHITE:W++,ATTRIB_VALUE:W++,ATTRIB_VALUE_QUOTED:W++,ATTRIB_VALUE_CLOSED:W++,ATTRIB_VALUE_UNQUOTED:W++,ATTRIB_VALUE_ENTITY_Q:W++,ATTRIB_VALUE_ENTITY_U:W++,CLOSE_TAG:W++,CLOSE_TAG_SAW_WHITE:W++,SCRIPT:W++,SCRIPT_ENDING:W++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.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,i.default)(t.ENTITIES).forEach(function(G){var Y=t.ENTITIES[G],me=typeof Y=="number"?String.fromCharCode(Y):Y;t.ENTITIES[G]=me});for(var V in t.STATE)t.STATE[t.STATE[V]]=V;W=t.STATE;function z(G,Y,me){G[Y]&&G[Y](me)}function J(G,Y,me){G.textNode&&Z(G),z(G,Y,me)}function Z(G){G.textNode=de(G.opt,G.textNode),G.textNode&&z(G,"ontext",G.textNode),G.textNode=""}function de(G,Y){return G.trim&&(Y=Y.trim()),G.normalize&&(Y=Y.replace(/\s+/g," ")),Y}function ie(G,Y){return Z(G),G.trackPosition&&(Y+=`
|
|
|
Line: `+G.line+`
|
|
|
Column: `+G.column+`
|
|
|
Char: `+G.c),Y=new Error(Y),G.error=Y,z(G,"onerror",Y),G}function ve(G){return G.sawRoot&&!G.closedRoot&&xe(G,"Unclosed root tag"),G.state!==W.BEGIN&&G.state!==W.BEGIN_WHITESPACE&&G.state!==W.TEXT&&ie(G,"Unexpected end"),Z(G),G.c="",G.closed=!0,z(G,"onend"),s.call(G,G.strict,G.opt),G}function xe(G,Y){if((typeof G=="undefined"?"undefined":(0,f.default)(G))!=="object"||!(G instanceof s))throw new Error("bad call to strictFail");G.strict&&ie(G,Y)}function _e(G){G.strict||(G.tagName=G.tagName[G.looseCase]());var Y=G.tags[G.tags.length-1]||G,me=G.tag={name:G.tagName,attributes:{}};G.opt.xmlns&&(me.ns=Y.ns),G.attribList.length=0,J(G,"onopentagstart",me)}function Ue(G,Y){var me=G.indexOf(":"),ue=me<0?["",G]:G.split(":"),Ce=ue[0],Ie=ue[1];return Y&&G==="xmlns"&&(Ce="xmlns",Ie=""),{prefix:Ce,local:Ie}}function fe(G){if(G.strict||(G.attribName=G.attribName[G.looseCase]()),G.attribList.indexOf(G.attribName)!==-1||G.tag.attributes.hasOwnProperty(G.attribName)){G.attribName=G.attribValue="";return}if(G.opt.xmlns){var Y=Ue(G.attribName,!0),me=Y.prefix,ue=Y.local;if(me==="xmlns")if(ue==="xml"&&G.attribValue!==w)xe(G,"xml: prefix must be bound to "+w+`
|
|
|
Actual: `+G.attribValue);else if(ue==="xmlns"&&G.attribValue!==_)xe(G,"xmlns: prefix must be bound to "+_+`
|
|
|
Actual: `+G.attribValue);else{var Ce=G.tag,Ie=G.tags[G.tags.length-1]||G;Ce.ns===Ie.ns&&(Ce.ns=(0,e.default)(Ie.ns)),Ce.ns[ue]=G.attribValue}G.attribList.push([G.attribName,G.attribValue])}else G.tag.attributes[G.attribName]=G.attribValue,J(G,"onattribute",{name:G.attribName,value:G.attribValue});G.attribName=G.attribValue=""}function ke(G,Y){if(G.opt.xmlns){var me=G.tag,ue=Ue(G.tagName);me.prefix=ue.prefix,me.local=ue.local,me.uri=me.ns[ue.prefix]||"",me.prefix&&!me.uri&&(xe(G,"Unbound namespace prefix: "+(0,S.default)(G.tagName)),me.uri=ue.prefix);var Ce=G.tags[G.tags.length-1]||G;me.ns&&Ce.ns!==me.ns&&(0,i.default)(me.ns).forEach(function(xt){J(G,"onopennamespace",{prefix:xt,uri:me.ns[xt]})});for(var Ie=0,ce=G.attribList.length;Ie<ce;Ie++){var Ae=G.attribList[Ie],Te=Ae[0],Ge=Ae[1],gt=Ue(Te,!0),qe=gt.prefix,Le=gt.local,Ot=qe===""?"":me.ns[qe]||"",$e={name:Te,value:Ge,prefix:qe,local:Le,uri:Ot};qe&&qe!=="xmlns"&&!Ot&&(xe(G,"Unbound namespace prefix: "+(0,S.default)(qe)),$e.uri=qe),G.tag.attributes[Te]=$e,J(G,"onattribute",$e)}G.attribList.length=0}G.tag.isSelfClosing=!!Y,G.sawRoot=!0,G.tags.push(G.tag),J(G,"onopentag",G.tag),Y||(!G.noscript&&G.tagName.toLowerCase()==="script"?G.state=W.SCRIPT:G.state=W.TEXT,G.tag=null,G.tagName=""),G.attribName=G.attribValue="",G.attribList.length=0}function se(G){if(!G.tagName){xe(G,"Weird empty close tag."),G.textNode+="</>",G.state=W.TEXT;return}if(G.script){if(G.tagName!=="script"){G.script+="</"+G.tagName+">",G.tagName="",G.state=W.SCRIPT;return}J(G,"onscript",G.script),G.script=""}var Y=G.tags.length,me=G.tagName;G.strict||(me=me[G.looseCase]());for(var ue=me;Y--;){var Ce=G.tags[Y];if(Ce.name!==ue)xe(G,"Unexpected close tag");else break}if(Y<0){xe(G,"Unmatched closing tag: "+G.tagName),G.textNode+="</"+G.tagName+">",G.state=W.TEXT;return}G.tagName=me;for(var Ie=G.tags.length;Ie-- >Y;){var ce=G.tag=G.tags.pop();G.tagName=G.tag.name,J(G,"onclosetag",G.tagName);var Ae={};for(var Te in ce.ns)Ae[Te]=ce.ns[Te];var Ge=G.tags[G.tags.length-1]||G;G.opt.xmlns&&ce.ns!==Ge.ns&&(0,i.default)(ce.ns).forEach(function(gt){var qe=ce.ns[gt];J(G,"onclosenamespace",{prefix:gt,uri:qe})})}Y===0&&(G.closedRoot=!0),G.tagName=G.attribValue=G.attribName="",G.attribList.length=0,G.state=W.TEXT}function te(G){var Y=G.entity,me=Y.toLowerCase(),ue,Ce="";return G.ENTITIES[Y]?G.ENTITIES[Y]:G.ENTITIES[me]?G.ENTITIES[me]:(Y=me,Y.charAt(0)==="#"&&(Y.charAt(1)==="x"?(Y=Y.slice(2),ue=parseInt(Y,16),Ce=ue.toString(16)):(Y=Y.slice(1),ue=parseInt(Y,10),Ce=ue.toString(10))),Y=Y.replace(/^0+/,""),isNaN(ue)||Ce.toLowerCase()!==Y?(xe(G,"Invalid character entity"),"&"+G.entity+";"):(0,C.default)(ue))}function Ve(G,Y){Y==="<"?(G.state=W.OPEN_WAKA,G.startTagPosition=G.position):k(Y)||(xe(G,"Non-whitespace before first tag."),G.textNode=Y,G.state=W.TEXT)}function ae(G,Y){var me="";return Y<G.length&&(me=G.charAt(Y)),me}function Q(G){var Y=this;if(this.error)throw this.error;if(Y.closed)return ie(Y,"Cannot write after close. Assign an onready handler.");if(G===null)return ve(Y);(typeof G=="undefined"?"undefined":(0,f.default)(G))==="object"&&(G=G.toString());for(var me=0,ue="";!(ue=ae(G,me++),Y.c=ue,!ue);){Y.trackPosition&&(Y.position++,ue===`
|
|
|
`?(Y.line++,Y.column=0):Y.column++);switch(Y.state){case W.BEGIN:if(Y.state=W.BEGIN_WHITESPACE,ue==="\uFEFF")continue;Ve(Y,ue);continue;case W.BEGIN_WHITESPACE:Ve(Y,ue);continue;case W.TEXT:if(Y.sawRoot&&!Y.closedRoot){for(var Ce=me-1;ue&&ue!=="<"&&ue!=="&";)ue=ae(G,me++),ue&&Y.trackPosition&&(Y.position++,ue===`
|
|
|
`?(Y.line++,Y.column=0):Y.column++);Y.textNode+=G.substring(Ce,me-1)}ue==="<"&&!(Y.sawRoot&&Y.closedRoot&&!Y.strict)?(Y.state=W.OPEN_WAKA,Y.startTagPosition=Y.position):(!k(ue)&&(!Y.sawRoot||Y.closedRoot)&&xe(Y,"Text data outside of root node."),ue==="&"?Y.state=W.TEXT_ENTITY:Y.textNode+=ue);continue;case W.SCRIPT:ue==="<"?Y.state=W.SCRIPT_ENDING:Y.script+=ue;continue;case W.SCRIPT_ENDING:ue==="/"?Y.state=W.CLOSE_TAG:(Y.script+="<"+ue,Y.state=W.SCRIPT);continue;case W.OPEN_WAKA:if(ue==="!")Y.state=W.SGML_DECL,Y.sgmlDecl="";else if(!k(ue))if(B(L,ue))Y.state=W.OPEN_TAG,Y.tagName=ue;else if(ue==="/")Y.state=W.CLOSE_TAG,Y.tagName="";else if(ue==="?")Y.state=W.PROC_INST,Y.procInstName=Y.procInstBody="";else{if(xe(Y,"Unencoded <"),Y.startTagPosition+1<Y.position){var Ie=Y.position-Y.startTagPosition;ue=new Array(Ie).join(" ")+ue}Y.textNode+="<"+ue,Y.state=W.TEXT}continue;case W.SGML_DECL:(Y.sgmlDecl+ue).toUpperCase()===T?(J(Y,"onopencdata"),Y.state=W.CDATA,Y.sgmlDecl="",Y.cdata=""):Y.sgmlDecl+ue==="--"?(Y.state=W.COMMENT,Y.comment="",Y.sgmlDecl=""):(Y.sgmlDecl+ue).toUpperCase()===b?(Y.state=W.DOCTYPE,(Y.doctype||Y.sawRoot)&&xe(Y,"Inappropriately located doctype declaration"),Y.doctype="",Y.sgmlDecl=""):ue===">"?(J(Y,"onsgmldeclaration",Y.sgmlDecl),Y.sgmlDecl="",Y.state=W.TEXT):(M(ue)&&(Y.state=W.SGML_DECL_QUOTED),Y.sgmlDecl+=ue);continue;case W.SGML_DECL_QUOTED:ue===Y.q&&(Y.state=W.SGML_DECL,Y.q=""),Y.sgmlDecl+=ue;continue;case W.DOCTYPE:ue===">"?(Y.state=W.TEXT,J(Y,"ondoctype",Y.doctype),Y.doctype=!0):(Y.doctype+=ue,ue==="["?Y.state=W.DOCTYPE_DTD:M(ue)&&(Y.state=W.DOCTYPE_QUOTED,Y.q=ue));continue;case W.DOCTYPE_QUOTED:Y.doctype+=ue,ue===Y.q&&(Y.q="",Y.state=W.DOCTYPE);continue;case W.DOCTYPE_DTD:Y.doctype+=ue,ue==="]"?Y.state=W.DOCTYPE:M(ue)&&(Y.state=W.DOCTYPE_DTD_QUOTED,Y.q=ue);continue;case W.DOCTYPE_DTD_QUOTED:Y.doctype+=ue,ue===Y.q&&(Y.state=W.DOCTYPE_DTD,Y.q="");continue;case W.COMMENT:ue==="-"?Y.state=W.COMMENT_ENDING:Y.comment+=ue;continue;case W.COMMENT_ENDING:ue==="-"?(Y.state=W.COMMENT_ENDED,Y.comment=de(Y.opt,Y.comment),Y.comment&&J(Y,"oncomment",Y.comment),Y.comment=""):(Y.comment+="-"+ue,Y.state=W.COMMENT);continue;case W.COMMENT_ENDED:ue!==">"?(xe(Y,"Malformed comment"),Y.comment+="--"+ue,Y.state=W.COMMENT):Y.state=W.TEXT;continue;case W.CDATA:ue==="]"?Y.state=W.CDATA_ENDING:Y.cdata+=ue;continue;case W.CDATA_ENDING:ue==="]"?Y.state=W.CDATA_ENDING_2:(Y.cdata+="]"+ue,Y.state=W.CDATA);continue;case W.CDATA_ENDING_2:ue===">"?(Y.cdata&&J(Y,"oncdata",Y.cdata),J(Y,"onclosecdata"),Y.cdata="",Y.state=W.TEXT):ue==="]"?Y.cdata+="]":(Y.cdata+="]]"+ue,Y.state=W.CDATA);continue;case W.PROC_INST:ue==="?"?Y.state=W.PROC_INST_ENDING:k(ue)?Y.state=W.PROC_INST_BODY:Y.procInstName+=ue;continue;case W.PROC_INST_BODY:if(!Y.procInstBody&&k(ue))continue;ue==="?"?Y.state=W.PROC_INST_ENDING:Y.procInstBody+=ue;continue;case W.PROC_INST_ENDING:ue===">"?(J(Y,"onprocessinginstruction",{name:Y.procInstName,body:Y.procInstBody}),Y.procInstName=Y.procInstBody="",Y.state=W.TEXT):(Y.procInstBody+="?"+ue,Y.state=W.PROC_INST_BODY);continue;case W.OPEN_TAG:B(N,ue)?Y.tagName+=ue:(_e(Y),ue===">"?ke(Y):ue==="/"?Y.state=W.OPEN_TAG_SLASH:(k(ue)||xe(Y,"Invalid character in tag name"),Y.state=W.ATTRIB));continue;case W.OPEN_TAG_SLASH:ue===">"?(ke(Y,!0),se(Y)):(xe(Y,"Forward-slash in opening tag not followed by >"),Y.state=W.ATTRIB);continue;case W.ATTRIB:if(k(ue))continue;ue===">"?ke(Y):ue==="/"?Y.state=W.OPEN_TAG_SLASH:B(L,ue)?(Y.attribName=ue,Y.attribValue="",Y.state=W.ATTRIB_NAME):xe(Y,"Invalid attribute name");continue;case W.ATTRIB_NAME:ue==="="?Y.state=W.ATTRIB_VALUE:ue===">"?(xe(Y,"Attribute without value"),Y.attribValue=Y.attribName,fe(Y),ke(Y)):k(ue)?Y.state=W.ATTRIB_NAME_SAW_WHITE:B(N,ue)?Y.attribName+=ue:xe(Y,"Invalid attribute name");continue;case W.ATTRIB_NAME_SAW_WHITE:if(ue==="=")Y.state=W.ATTRIB_VALUE;else{if(k(ue))continue;xe(Y,"Attribute without value"),Y.tag.attributes[Y.attribName]="",Y.attribValue="",J(Y,"onattribute",{name:Y.attribName,value:""}),Y.attribName="",ue===">"?ke(Y):B(L,ue)?(Y.attribName=ue,Y.state=W.ATTRIB_NAME):(xe(Y,"Invalid attribute name"),Y.state=W.ATTRIB)}continue;case W.ATTRIB_VALUE:if(k(ue))continue;M(ue)?(Y.q=ue,Y.state=W.ATTRIB_VALUE_QUOTED):(xe(Y,"Unquoted attribute value"),Y.state=W.ATTRIB_VALUE_UNQUOTED,Y.attribValue=ue);continue;case W.ATTRIB_VALUE_QUOTED:if(ue!==Y.q){ue==="&"?Y.state=W.ATTRIB_VALUE_ENTITY_Q:Y.attribValue+=ue;continue}fe(Y),Y.q="",Y.state=W.ATTRIB_VALUE_CLOSED;continue;case W.ATTRIB_VALUE_CLOSED:k(ue)?Y.state=W.ATTRIB:ue===">"?ke(Y):ue==="/"?Y.state=W.OPEN_TAG_SLASH:B(L,ue)?(xe(Y,"No whitespace between attributes"),Y.attribName=ue,Y.attribValue="",Y.state=W.ATTRIB_NAME):xe(Y,"Invalid attribute name");continue;case W.ATTRIB_VALUE_UNQUOTED:if(!U(ue)){ue==="&"?Y.state=W.ATTRIB_VALUE_ENTITY_U:Y.attribValue+=ue;continue}fe(Y),ue===">"?ke(Y):Y.state=W.ATTRIB;continue;case W.CLOSE_TAG:if(Y.tagName)ue===">"?se(Y):B(N,ue)?Y.tagName+=ue:Y.script?(Y.script+="</"+Y.tagName,Y.tagName="",Y.state=W.SCRIPT):(k(ue)||xe(Y,"Invalid tagname in closing tag"),Y.state=W.CLOSE_TAG_SAW_WHITE);else{if(k(ue))continue;j(L,ue)?Y.script?(Y.script+="</"+ue,Y.state=W.SCRIPT):xe(Y,"Invalid tagname in closing tag."):Y.tagName=ue}continue;case W.CLOSE_TAG_SAW_WHITE:if(k(ue))continue;ue===">"?se(Y):xe(Y,"Invalid characters in closing tag");continue;case W.TEXT_ENTITY:case W.ATTRIB_VALUE_ENTITY_Q:case W.ATTRIB_VALUE_ENTITY_U:var ce,Ae;switch(Y.state){case W.TEXT_ENTITY:ce=W.TEXT,Ae="textNode";break;case W.ATTRIB_VALUE_ENTITY_Q:ce=W.ATTRIB_VALUE_QUOTED,Ae="attribValue";break;case W.ATTRIB_VALUE_ENTITY_U:ce=W.ATTRIB_VALUE_UNQUOTED,Ae="attribValue";break}ue===";"?(Y[Ae]+=te(Y),Y.entity="",Y.state=ce):B(Y.entity.length?R:D,ue)?Y.entity+=ue:(xe(Y,"Invalid character in entity name"),Y[Ae]+="&"+Y.entity+ue,Y.entity="",Y.state=ce);continue;default:throw new Error(Y,"Unknown state: "+Y.state)}}return Y.position>=Y.bufferCheckPosition&&u(Y),Y}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */C.default||function(){var G=String.fromCharCode,Y=Math.floor,me=function(){var Ce=16384,Ie=[],ce,Ae,Te=-1,Ge=arguments.length;if(!Ge)return"";for(var gt="";++Te<Ge;){var qe=Number(arguments[Te]);if(!isFinite(qe)||qe<0||qe>1114111||Y(qe)!==qe)throw RangeError("Invalid code point: "+qe);qe<=65535?Ie.push(qe):(qe-=65536,ce=(qe>>10)+55296,Ae=qe%1024+56320,Ie.push(ce,Ae)),(Te+1===Ge||Ie.length>Ce)&&(gt+=G.apply(null,Ie),Ie.length=0)}return gt};o.default?Object.defineProperty(String,"fromCodePoint",{value:me,configurable:!0,writable:!0}):String.fromCodePoint=me}()})(typeof d=="undefined"?(void 0).sax={}:d)}).call(this,H("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(H,F,d){F.exports=C;var O=H("events").EventEmitter,x=H("inherits");x(C,O),C.Readable=H("readable-stream/readable.js"),C.Writable=H("readable-stream/writable.js"),C.Duplex=H("readable-stream/duplex.js"),C.Transform=H("readable-stream/transform.js"),C.PassThrough=H("readable-stream/passthrough.js"),C.Stream=C;function C(){O.call(this)}C.prototype.pipe=function(A,S){var g=this;function f(l){A.writable&&(A.write(l)===!1&&g.pause&&g.pause())}g.on("data",f);function c(){g.readable&&g.resume&&g.resume()}A.on("drain",c),!A._isStdio&&(!S||S.end!==!1)&&(g.on("end",r),g.on("close",i));var o=!1;function r(){if(o)return;o=!0,A.end()}function i(){if(o)return;o=!0,typeof A.destroy=="function"&&A.destroy()}function n(l){if(e(),O.listenerCount(this,"error")===0)throw l}g.on("error",n),A.on("error",n);function e(){g.removeListener("data",f),A.removeListener("drain",c),g.removeListener("end",r),g.removeListener("close",i),g.removeListener("error",n),A.removeListener("error",n),g.removeListener("end",e),g.removeListener("close",e),A.removeListener("close",e)}return g.on("end",e),g.on("close",e),A.on("close",e),A.emit("pipe",g),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(H,F,d){(function(O){var x=H("./lib/request"),C=H("./lib/response"),A=H("xtend"),S=H("builtin-status-codes"),g=H("url"),f=d;f.request=function(c,o){typeof c=="string"?c=g.parse(c):c=A(c);var r=O.location.protocol.search(/^https?:$/)===-1?"http:":"",i=c.protocol||r,n=c.hostname||c.host,e=c.port,l=c.path||"/";n&&n.indexOf(":")!==-1&&(n="["+n+"]"),c.url=(n?i+"//"+n:"")+(e?":"+e:"")+l,c.method=(c.method||"GET").toUpperCase(),c.headers=c.headers||{};var t=new x(c);return o&&t.on("response",o),t},f.get=function(o,r){var i=f.request(o,r);return i.end(),i},f.ClientRequest=x,f.IncomingMessage=C.IncomingMessage,f.Agent=function(){},f.Agent.defaultMaxSockets=4,f.globalAgent=new f.Agent,f.STATUS_CODES=S,f.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(H,F,d){(function(O){"use strict";d.fetch=f(O.fetch)&&f(O.ReadableStream),d.writableStream=f(O.WritableStream),d.abortController=f(O.AbortController),d.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),d.blobConstructor=!0}catch(c){}var x;function C(){if(x!==void 0)return x;if(O.XMLHttpRequest){x=new O.XMLHttpRequest;try{x.open("GET",O.XDomainRequest?"/":"https://example.com")}catch(c){x=null}}else x=null;return x}function A(c){var o=C();if(!o)return!1;try{return o.responseType=c,o.responseType===c}catch(r){}return!1}var S=typeof O.ArrayBuffer!="undefined",g=S&&f(O.ArrayBuffer.prototype.slice);d.arraybuffer=d.fetch||S&&A("arraybuffer"),d.msstream=!d.fetch&&g&&A("ms-stream"),d.mozchunkedarraybuffer=!d.fetch&&S&&A("moz-chunked-arraybuffer"),d.overrideMimeType=d.fetch||(C()?f(C().overrideMimeType):!1),d.vbArray=f(O.VBArray);function f(c){return typeof c=="function"}x=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(H,F,d){(function(O,x,C){"use strict";var A=H("babel-runtime/core-js/object/keys"),S=g(A);function g(u){return u&&u.__esModule?u:{default:u}}var f=H("./capability"),c=H("inherits"),o=H("./response"),r=H("readable-stream"),i=H("to-arraybuffer"),n=o.IncomingMessage,e=o.readyStates;function l(u,h){return f.fetch&&h?"fetch":f.mozchunkedarraybuffer?"moz-chunked-arraybuffer":f.msstream?"ms-stream":f.arraybuffer&&u?"arraybuffer":f.vbArray&&u?"text:vbarray":"text"}var t=F.exports=function(u){var h=this;r.Writable.call(h),h._opts=u,h._body=[],h._headers={},u.auth&&h.setHeader("Authorization","Basic "+new C(u.auth).toString("base64")),(0,S.default)(u.headers).forEach(function(v){h.setHeader(v,u.headers[v])});var p,m=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!f.abortController)m=!1,p=!0;else if(u.mode==="prefer-streaming")p=!1;else if(u.mode==="allow-wrong-content-type")p=!f.overrideMimeType;else if(!u.mode||u.mode==="default"||u.mode==="prefer-fast")p=!0;else throw new Error("Invalid value for opts.mode");h._mode=l(p,m),h._fetchTimer=null,h.on("finish",function(){h._onFinish()})};c(t,r.Writable),t.prototype.setHeader=function(u,h){var p=this,m=u.toLowerCase();if(s.indexOf(m)!==-1)return;p._headers[m]={name:u,value:h}},t.prototype.getHeader=function(u){var h=this._headers[u.toLowerCase()];return h?h.value:null},t.prototype.removeHeader=function(u){var h=this;delete h._headers[u.toLowerCase()]},t.prototype._onFinish=function(){var u=this;if(u._destroyed)return;var h=u._opts,p=u._headers,m=null;h.method!=="GET"&&h.method!=="HEAD"&&(f.arraybuffer?m=i(C.concat(u._body)):f.blobConstructor?m=new x.Blob(u._body.map(function(w){return i(w)}),{type:(p["content-type"]||{}).value||""}):m=C.concat(u._body).toString());var v=[];if((0,S.default)(p).forEach(function(w){var _=p[w].name,I=p[w].value;Array.isArray(I)?I.forEach(function(L){v.push([_,L])}):v.push([_,I])}),u._mode==="fetch"){var y=null,E=null;if(f.abortController){var T=new AbortController;y=T.signal,u._fetchAbortController=T,"requestTimeout"in h&&h.requestTimeout!==0&&(u._fetchTimer=x.setTimeout(function(){u.emit("requestTimeout"),u._fetchAbortController&&u._fetchAbortController.abort()},h.requestTimeout))}x.fetch(u._opts.url,{method:u._opts.method,headers:v,body:m||void 0,mode:"cors",credentials:h.withCredentials?"include":"same-origin",signal:y}).then(function(w){u._fetchResponse=w,u._connect()},function(w){x.clearTimeout(u._fetchTimer),u._destroyed||u.emit("error",w)})}else{var b=u._xhr=new x.XMLHttpRequest;try{b.open(u._opts.method,u._opts.url,!0)}catch(w){O.nextTick(function(){u.emit("error",w)});return}"responseType"in b&&(b.responseType=u._mode.split(":")[0]),"withCredentials"in b&&(b.withCredentials=!!h.withCredentials),u._mode==="text"&&"overrideMimeType"in b&&b.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in h&&(b.timeout=h.requestTimeout,b.ontimeout=function(){u.emit("requestTimeout")}),v.forEach(function(w){b.setRequestHeader(w[0],w[1])}),u._response=null,b.onreadystatechange=function(){switch(b.readyState){case e.LOADING:case e.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(b.onprogress=function(){u._onXHRProgress()}),b.onerror=function(){if(u._destroyed)return;u.emit("error",new Error("XHR error"))};try{b.send(m)}catch(w){O.nextTick(function(){u.emit("error",w)});return}}};function a(u){try{var h=u.status;return h!==null&&h!==0}catch(p){return!1}}t.prototype._onXHRProgress=function(){var u=this;if(!a(u._xhr)||u._destroyed)return;u._response||u._connect(),u._response._onXHRProgress()},t.prototype._connect=function(){var u=this;if(u._destroyed)return;u._response=new n(u._xhr,u._fetchResponse,u._mode,u._fetchTimer),u._response.on("error",function(h){u.emit("error",h)}),u.emit("response",u._response)},t.prototype._write=function(u,h,p){var m=this;m._body.push(u),p()},t.prototype.abort=t.prototype.destroy=function(){var u=this;u._destroyed=!0,x.clearTimeout(u._fetchTimer),u._response&&(u._response._destroyed=!0),u._xhr?u._xhr.abort():u._fetchAbortController&&u._fetchAbortController.abort()},t.prototype.end=function(u,h,p){var m=this;typeof u=="function"&&(p=u,u=void 0),r.Writable.prototype.end.call(m,u,h,p)},t.prototype.flushHeaders=function(){},t.prototype.setTimeout=function(){},t.prototype.setNoDelay=function(){},t.prototype.setSocketKeepAlive=function(){};var s=["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,H("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},H("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(H,F,d){(function(O,x,C){"use strict";var A=H("babel-runtime/core-js/promise"),S=g(A);function g(n){return n&&n.__esModule?n:{default:n}}var f=H("./capability"),c=H("inherits"),o=H("readable-stream"),r=d.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},i=d.IncomingMessage=function(n,e,l,t){var a=this;if(o.Readable.call(a),a._mode=l,a.headers={},a.rawHeaders=[],a.trailers={},a.rawTrailers=[],a.on("end",function(){O.nextTick(function(){a.emit("close")})}),l==="fetch"){var s=function y(){h.read().then(function(E){if(a._destroyed)return;if(E.done){x.clearTimeout(t),a.push(null);return}a.push(new C(E.value)),y()}).catch(function(E){x.clearTimeout(t),a._destroyed||a.emit("error",E)})};if(a._fetchResponse=e,a.url=e.url,a.statusCode=e.status,a.statusMessage=e.statusText,e.headers.forEach(function(y,E){a.headers[E.toLowerCase()]=y,a.rawHeaders.push(E,y)}),f.writableStream){var u=new WritableStream({write:function(E){return new S.default(function(T,b){a._destroyed?b():a.push(new C(E))?T():a._resumeFetch=T})},close:function(){x.clearTimeout(t),a._destroyed||a.push(null)},abort:function(E){a._destroyed||a.emit("error",E)}});try{e.body.pipeTo(u).catch(function(y){x.clearTimeout(t),a._destroyed||a.emit("error",y)});return}catch(y){}}var h=e.body.getReader();s()}else{a._xhr=n,a._pos=0,a.url=n.responseURL,a.statusCode=n.status,a.statusMessage=n.statusText;var p=n.getAllResponseHeaders().split(/\r?\n/);if(p.forEach(function(y){var E=y.match(/^([^:]+):\s*(.*)/);if(E){var T=E[1].toLowerCase();T==="set-cookie"?(a.headers[T]===void 0&&(a.headers[T]=[]),a.headers[T].push(E[2])):a.headers[T]!==void 0?a.headers[T]+=", "+E[2]:a.headers[T]=E[2],a.rawHeaders.push(E[1],E[2])}}),a._charset="x-user-defined",!f.overrideMimeType){var m=a.rawHeaders["mime-type"];if(m){var v=m.match(/;\s*charset=([^;])(;|$)/);v&&(a._charset=v[1].toLowerCase())}a._charset||(a._charset="utf-8")}}};c(i,o.Readable),i.prototype._read=function(){var n=this,e=n._resumeFetch;e&&(n._resumeFetch=null,e())},i.prototype._onXHRProgress=function(){var n=this,e=n._xhr,l=null;switch(n._mode){case"text:vbarray":if(e.readyState!==r.DONE)break;try{l=new x.VBArray(e.responseBody).toArray()}catch(h){}if(l!==null){n.push(new C(l));break}case"text":try{l=e.responseText}catch(h){n._mode="text:vbarray";break}if(l.length>n._pos){var t=l.substr(n._pos);if(n._charset==="x-user-defined"){for(var a=new C(t.length),s=0;s<t.length;s++)a[s]=t.charCodeAt(s)&255;n.push(a)}else n.push(t,n._charset);n._pos=l.length}break;case"arraybuffer":if(e.readyState!==r.DONE||!e.response)break;l=e.response,n.push(new C(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=e.response,e.readyState!==r.LOADING||!l)break;n.push(new C(new Uint8Array(l)));break;case"ms-stream":if(l=e.response,e.readyState!==r.LOADING)break;var u=new x.MSStreamReader;u.onprogress=function(){u.result.byteLength>n._pos&&(n.push(new C(new Uint8Array(u.result.slice(n._pos)))),n._pos=u.result.byteLength)},u.onload=function(){n.push(null)},u.readAsArrayBuffer(l);break}n._xhr.readyState===r.DONE&&n._mode!=="ms-stream"&&n.push(null)}}).call(this,H("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},H("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(H,F,d){"use strict";var O=H("safe-buffer").Buffer,x=O.isEncoding||function(u){u=""+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 C(u){if(!u)return"utf8";for(var h;;)switch(u){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 u;default:if(h)return;u=(""+u).toLowerCase(),h=!0}}function A(u){var h=C(u);if(typeof h!="string"&&(O.isEncoding===x||!x(u)))throw new Error("Unknown encoding: "+u);return h||u}d.StringDecoder=S;function S(u){this.encoding=A(u);var h;switch(this.encoding){case"utf16le":this.text=n,this.end=e,h=4;break;case"utf8":this.fillLast=o,h=4;break;case"base64":this.text=l,this.end=t,h=3;break;default:this.write=a,this.end=s;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=O.allocUnsafe(h)}S.prototype.write=function(u){if(u.length===0)return"";var h,p;if(this.lastNeed){if(h=this.fillLast(u),h===void 0)return"";p=this.lastNeed,this.lastNeed=0}else p=0;return p<u.length?h?h+this.text(u,p):this.text(u,p):h||""},S.prototype.end=i,S.prototype.text=r,S.prototype.fillLast=function(u){if(this.lastNeed<=u.length)return u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,u.length),this.lastNeed-=u.length};function g(u){return u<=127?0:u>>5===6?2:u>>4===14?3:u>>3===30?4:u>>6===2?-1:-2}function f(u,h,p){var m=h.length-1;if(m<p)return 0;var v=g(h[m]);return v>=0?(v>0&&(u.lastNeed=v-1),v):--m<p||v===-2?0:(v=g(h[m]),v>=0?(v>0&&(u.lastNeed=v-2),v):--m<p||v===-2?0:(v=g(h[m]),v>=0?(v>0&&(v===2?v=0:u.lastNeed=v-3),v):0))}function c(u,h,p){if((h[0]&192)!==128)return u.lastNeed=0,"\uFFFD";if(u.lastNeed>1&&h.length>1){if((h[1]&192)!==128)return u.lastNeed=1,"\uFFFD";if(u.lastNeed>2&&h.length>2&&(h[2]&192)!==128)return u.lastNeed=2,"\uFFFD"}}function o(u){var h=this.lastTotal-this.lastNeed,p=c(this,u,h);if(p!==void 0)return p;if(this.lastNeed<=u.length)return u.copy(this.lastChar,h,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,h,0,u.length),this.lastNeed-=u.length}function r(u,h){var p=f(this,u,h);if(!this.lastNeed)return u.toString("utf8",h);this.lastTotal=p;var m=u.length-(p-this.lastNeed);return u.copy(this.lastChar,0,m),u.toString("utf8",h,m)}function i(u){var h=u&&u.length?this.write(u):"";return this.lastNeed?h+"\uFFFD":h}function n(u,h){if((u.length-h)%2===0){var p=u.toString("utf16le",h);if(p){var m=p.charCodeAt(p.length-1);if(m>=55296&&m<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1],p.slice(0,-1)}return p}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=u[u.length-1],u.toString("utf16le",h,u.length-1)}function e(u){var h=u&&u.length?this.write(u):"";if(this.lastNeed){var p=this.lastTotal-this.lastNeed;return h+this.lastChar.toString("utf16le",0,p)}return h}function l(u,h){var p=(u.length-h)%3;return p===0?u.toString("base64",h):(this.lastNeed=3-p,this.lastTotal=3,p===1?this.lastChar[0]=u[u.length-1]:(this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1]),u.toString("base64",h,u.length-p))}function t(u){var h=u&&u.length?this.write(u):"";return this.lastNeed?h+this.lastChar.toString("base64",0,3-this.lastNeed):h}function a(u){return u.toString(this.encoding)}function s(u){return u&&u.length?this.write(u):""}},{"safe-buffer":228}],236:[function(H,F,d){(function(O,x){var C=H("process/browser.js").nextTick,A=Function.prototype.apply,S=Array.prototype.slice,g={},f=0;d.setTimeout=function(){return new c(A.call(setTimeout,window,arguments),clearTimeout)},d.setInterval=function(){return new c(A.call(setInterval,window,arguments),clearInterval)},d.clearTimeout=d.clearInterval=function(o){o.close()};function c(o,r){this._id=o,this._clearFn=r}c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},d.enroll=function(o,r){clearTimeout(o._idleTimeoutId),o._idleTimeout=r},d.unenroll=function(o){clearTimeout(o._idleTimeoutId),o._idleTimeout=-1},d._unrefActive=d.active=function(o){clearTimeout(o._idleTimeoutId);var r=o._idleTimeout;r>=0&&(o._idleTimeoutId=setTimeout(function(){o._onTimeout&&o._onTimeout()},r))},d.setImmediate=typeof O=="function"?O:function(o){var r=f++,i=arguments.length<2?!1:S.call(arguments,1);return g[r]=!0,C(function(){g[r]&&(i?o.apply(null,i):o.call(null),d.clearImmediate(r))}),r},d.clearImmediate=typeof x=="function"?x:function(o){delete g[o]}}).call(this,H("timers").setImmediate,H("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(H,F,d){var O=H("buffer").Buffer;F.exports=function(x){if(x instanceof Uint8Array){if(x.byteOffset===0&&x.byteLength===x.buffer.byteLength)return x.buffer;if(typeof x.buffer.slice=="function")return x.buffer.slice(x.byteOffset,x.byteOffset+x.byteLength)}if(O.isBuffer(x)){for(var C=new Uint8Array(x.length),A=x.length,S=0;S<A;S++)C[S]=x[S];return C.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(H,F,d){"use strict";var O=H("punycode"),x=H("./util");d.parse=h,d.resolve=m,d.resolveObject=v,d.format=p,d.Url=C;function C(){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,S=/:[0-9]*$/,g=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],c=["{","}","|","\\","^","`"].concat(f),o=["'"].concat(c),r=["%","/","?",";","#"].concat(o),i=["/","?","#"],n=255,e=/^[+a-z0-9A-Z_-]{0,63}$/,l=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,t={javascript:!0,"javascript:":!0},a={javascript:!0,"javascript:":!0},s={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},u=H("querystring");function h(y,E,T){if(y&&x.isObject(y)&&y instanceof C)return y;var b=new C;return b.parse(y,E,T),b}C.prototype.parse=function(y,E,T){if(!x.isString(y))throw new TypeError("Parameter 'url' must be a string, not "+typeof y);var b=y.indexOf("?"),w=b!==-1&&b<y.indexOf("#")?"?":"#",_=y.split(w),I=/\\/g;_[0]=_[0].replace(I,"/"),y=_.join(w);var L=y;if(L=L.trim(),!T&&y.split("#").length===1){var N=g.exec(L);if(N)return this.path=L,this.href=L,this.pathname=N[1],N[2]?(this.search=N[2],E?this.query=u.parse(this.search.substr(1)):this.query=this.search.substr(1)):E&&(this.search="",this.query={}),this}var D=A.exec(L);if(D){D=D[0];var R=D.toLowerCase();this.protocol=R,L=L.substr(D.length)}if(T||D||L.match(/^\/\/[^@\/]+@[^@\/]+/)){var k=L.substr(0,2)==="//";k&&!(D&&a[D])&&(L=L.substr(2),this.slashes=!0)}if(!a[D]&&(k||D&&!s[D])){for(var M=-1,U=0;U<i.length;U++){var B=L.indexOf(i[U]);B!==-1&&(M===-1||B<M)&&(M=B)}var j,W;M===-1?W=L.lastIndexOf("@"):W=L.lastIndexOf("@",M),W!==-1&&(j=L.slice(0,W),L=L.slice(W+1),this.auth=decodeURIComponent(j)),M=-1;for(var U=0;U<r.length;U++){var B=L.indexOf(r[U]);B!==-1&&(M===-1||B<M)&&(M=B)}M===-1&&(M=L.length),this.host=L.slice(0,M),L=L.slice(M),this.parseHost(),this.hostname=this.hostname||"";var V=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!V)for(var z=this.hostname.split(/\./),U=0,J=z.length;U<J;U++){var Z=z[U];if(!Z)continue;if(!Z.match(e)){for(var de="",ie=0,ve=Z.length;ie<ve;ie++)Z.charCodeAt(ie)>127?de+="x":de+=Z[ie];if(!de.match(e)){var xe=z.slice(0,U),_e=z.slice(U+1),Ue=Z.match(l);Ue&&(xe.push(Ue[1]),_e.unshift(Ue[2])),_e.length&&(L="/"+_e.join(".")+L),this.hostname=xe.join(".");break}}}this.hostname.length>n?this.hostname="":this.hostname=this.hostname.toLowerCase(),V||(this.hostname=O.toASCII(this.hostname));var fe=this.port?":"+this.port:"",ke=this.hostname||"";this.host=ke+fe,this.href+=this.host,V&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),L[0]!=="/"&&(L="/"+L))}if(!t[R])for(var U=0,J=o.length;U<J;U++){var se=o[U];if(L.indexOf(se)===-1)continue;var te=encodeURIComponent(se);te===se&&(te=escape(se)),L=L.split(se).join(te)}var Ve=L.indexOf("#");Ve!==-1&&(this.hash=L.substr(Ve),L=L.slice(0,Ve));var ae=L.indexOf("?");if(ae!==-1?(this.search=L.substr(ae),this.query=L.substr(ae+1),E&&(this.query=u.parse(this.query)),L=L.slice(0,ae)):E&&(this.search="",this.query={}),L&&(this.pathname=L),s[R]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var fe=this.pathname||"",Q=this.search||"";this.path=fe+Q}return this.href=this.format(),this};function p(y){return x.isString(y)&&(y=h(y)),y instanceof C?y.format():C.prototype.format.call(y)}C.prototype.format=function(){var y=this.auth||"";y&&(y=encodeURIComponent(y),y=y.replace(/%3A/i,":"),y+="@");var E=this.protocol||"",T=this.pathname||"",b=this.hash||"",w=!1,_="";this.host?w=y+this.host:this.hostname&&(w=y+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(w+=":"+this.port)),this.query&&x.isObject(this.query)&&Object.keys(this.query).length&&(_=u.stringify(this.query));var I=this.search||_&&"?"+_||"";return E&&E.substr(-1)!==":"&&(E+=":"),this.slashes||(!E||s[E])&&w!==!1?(w="//"+(w||""),T&&T.charAt(0)!=="/"&&(T="/"+T)):w||(w=""),b&&b.charAt(0)!=="#"&&(b="#"+b),I&&I.charAt(0)!=="?"&&(I="?"+I),T=T.replace(/[?#]/g,function(L){return encodeURIComponent(L)}),I=I.replace("#","%23"),E+w+T+I+b};function m(y,E){return h(y,!1,!0).resolve(E)}C.prototype.resolve=function(y){return this.resolveObject(h(y,!1,!0)).format()};function v(y,E){return y?h(y,!1,!0).resolveObject(E):E}C.prototype.resolveObject=function(y){if(x.isString(y)){var E=new C;E.parse(y,!1,!0),y=E}for(var T=new C,b=Object.keys(this),w=0;w<b.length;w++){var _=b[w];T[_]=this[_]}if(T.hash=y.hash,y.href==="")return T.href=T.format(),T;if(y.slashes&&!y.protocol){for(var I=Object.keys(y),L=0;L<I.length;L++){var N=I[L];N!=="protocol"&&(T[N]=y[N])}return s[T.protocol]&&T.hostname&&!T.pathname&&(T.path=T.pathname="/"),T.href=T.format(),T}if(y.protocol&&y.protocol!==T.protocol){if(!s[y.protocol]){for(var D=Object.keys(y),R=0;R<D.length;R++){var k=D[R];T[k]=y[k]}return T.href=T.format(),T}if(T.protocol=y.protocol,!y.host&&!a[y.protocol]){for(var J=(y.pathname||"").split("/");J.length&&!(y.host=J.shift()););y.host||(y.host=""),y.hostname||(y.hostname=""),J[0]!==""&&J.unshift(""),J.length<2&&J.unshift(""),T.pathname=J.join("/")}else T.pathname=y.pathname;if(T.search=y.search,T.query=y.query,T.host=y.host||"",T.auth=y.auth,T.hostname=y.hostname||y.host,T.port=y.port,T.pathname||T.search){var M=T.pathname||"",U=T.search||"";T.path=M+U}return T.slashes=T.slashes||y.slashes,T.href=T.format(),T}var B=T.pathname&&T.pathname.charAt(0)==="/",j=y.host||y.pathname&&y.pathname.charAt(0)==="/",W=j||B||T.host&&y.pathname,V=W,z=T.pathname&&T.pathname.split("/")||[],J=y.pathname&&y.pathname.split("/")||[],Z=T.protocol&&!s[T.protocol];if(Z&&(T.hostname="",T.port=null,T.host&&(z[0]===""?z[0]=T.host:z.unshift(T.host)),T.host="",y.protocol&&(y.hostname=null,y.port=null,y.host&&(J[0]===""?J[0]=y.host:J.unshift(y.host)),y.host=null),W=W&&(J[0]===""||z[0]==="")),j)T.host=y.host||y.host===""?y.host:T.host,T.hostname=y.hostname||y.hostname===""?y.hostname:T.hostname,T.search=y.search,T.query=y.query,z=J;else if(J.length)z||(z=[]),z.pop(),z=z.concat(J),T.search=y.search,T.query=y.query;else if(!x.isNullOrUndefined(y.search)){if(Z){T.hostname=T.host=z.shift();var de=T.host&&T.host.indexOf("@")>0?T.host.split("@"):!1;de&&(T.auth=de.shift(),T.host=T.hostname=de.shift())}return T.search=y.search,T.query=y.query,(!x.isNull(T.pathname)||!x.isNull(T.search))&&(T.path=(T.pathname?T.pathname:"")+(T.search?T.search:"")),T.href=T.format(),T}if(!z.length)return T.pathname=null,T.search?T.path="/"+T.search:T.path=null,T.href=T.format(),T;for(var ie=z.slice(-1)[0],ve=(T.host||y.host||z.length>1)&&(ie==="."||ie==="..")||ie==="",xe=0,_e=z.length;_e>=0;_e--)ie=z[_e],ie==="."?z.splice(_e,1):ie===".."?(z.splice(_e,1),xe++):xe&&(z.splice(_e,1),xe--);if(!W&&!V)for(;xe--;xe)z.unshift("..");W&&z[0]!==""&&(!z[0]||z[0].charAt(0)!=="/")&&z.unshift(""),ve&&z.join("/").substr(-1)!=="/"&&z.push("");var Ue=z[0]===""||z[0]&&z[0].charAt(0)==="/";if(Z){T.hostname=T.host=Ue?"":z.length?z.shift():"";var de=T.host&&T.host.indexOf("@")>0?T.host.split("@"):!1;de&&(T.auth=de.shift(),T.host=T.hostname=de.shift())}return W=W||T.host&&z.length,W&&!Ue&&z.unshift(""),z.length?T.pathname=z.join("/"):(T.pathname=null,T.path=null),(!x.isNull(T.pathname)||!x.isNull(T.search))&&(T.path=(T.pathname?T.pathname:"")+(T.search?T.search:"")),T.auth=y.auth||T.auth,T.slashes=T.slashes||y.slashes,T.href=T.format(),T},C.prototype.parseHost=function(){var y=this.host,E=S.exec(y);E&&(E=E[0],E!==":"&&(this.port=E.substr(1)),y=y.substr(0,y.length-E.length)),y&&(this.hostname=y)}},{"./util":239,punycode:209,querystring:212}],239:[function(H,F,d){"use strict";F.exports={isString:function(x){return typeof x=="string"},isObject:function(x){return typeof x=="object"&&x!==null},isNull:function(x){return x===null},isNullOrUndefined:function(x){return x==null}}},{}],240:[function(H,F,d){(function(O){F.exports=x;function x(A,S){if(C("noDeprecation"))return A;var g=!1;function f(){if(!g){if(C("throwDeprecation"))throw new Error(S);C("traceDeprecation")?console.trace(S):console.warn(S),g=!0}return A.apply(this,arguments)}return f}function C(A){try{if(!O.localStorage)return!1}catch(g){return!1}var S=O.localStorage[A];return S==null?!1:String(S).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(H,F,d){typeof Object.create=="function"?F.exports=function(x,C){x.super_=C,x.prototype=Object.create(C.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}})}:F.exports=function(x,C){x.super_=C;var A=function(){};A.prototype=C.prototype,x.prototype=new A,x.prototype.constructor=x}},{}],242:[function(H,F,d){F.exports=function(x){return x&&typeof x=="object"&&typeof x.copy=="function"&&typeof x.fill=="function"&&typeof x.readUInt8=="function"}},{}],243:[function(H,F,d){(function(O,x){var C=/%[sdj%]/g;d.format=function(M){if(!m(M)){for(var U=[],B=0;B<arguments.length;B++)U.push(g(arguments[B]));return U.join(" ")}for(var B=1,j=arguments,W=j.length,V=String(M).replace(C,function(J){if(J==="%%")return"%";if(B>=W)return J;switch(J){case"%s":return String(j[B++]);case"%d":return Number(j[B++]);case"%j":try{return JSON.stringify(j[B++])}catch(Z){return"[Circular]"}default:return J}}),z=j[B];B<W;z=j[++B])u(z)||!T(z)?V+=" "+z:V+=" "+g(z);return V},d.deprecate=function(M,U){if(y(x.process))return function(){return d.deprecate(M,U).apply(this,arguments)};if(O.noDeprecation===!0)return M;var B=!1;function j(){if(!B){if(O.throwDeprecation)throw new Error(U);O.traceDeprecation?console.trace(U):console.error(U),B=!0}return M.apply(this,arguments)}return j};var A={},S;d.debuglog=function(M){if(y(S)&&(S=O.env.NODE_DEBUG||""),M=M.toUpperCase(),!A[M])if(new RegExp("\\b"+M+"\\b","i").test(S)){var U=O.pid;A[M]=function(){var B=d.format.apply(d,arguments);console.error("%s %d: %s",M,U,B)}}else A[M]=function(){};return A[M]};function g(M,U){var B={seen:[],stylize:c};return arguments.length>=3&&(B.depth=arguments[2]),arguments.length>=4&&(B.colors=arguments[3]),s(U)?B.showHidden=U:U&&d._extend(B,U),y(B.showHidden)&&(B.showHidden=!1),y(B.depth)&&(B.depth=2),y(B.colors)&&(B.colors=!1),y(B.customInspect)&&(B.customInspect=!0),B.colors&&(B.stylize=f),r(B,M,B.depth)}d.inspect=g,g.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]},g.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function f(M,U){var B=g.styles[U];return B?"["+g.colors[B][0]+"m"+M+"["+g.colors[B][1]+"m":M}function c(M,U){return M}function o(M){var U={};return M.forEach(function(B,j){U[B]=!0}),U}function r(M,U,B){if(M.customInspect&&U&&_(U.inspect)&&U.inspect!==d.inspect&&!(U.constructor&&U.constructor.prototype===U)){var j=U.inspect(B,M);return m(j)||(j=r(M,j,B)),j}var W=i(M,U);if(W)return W;var V=Object.keys(U),z=o(V);if(M.showHidden&&(V=Object.getOwnPropertyNames(U)),w(U)&&(V.indexOf("message")>=0||V.indexOf("description")>=0))return n(U);if(V.length===0){if(_(U)){var J=U.name?": "+U.name:"";return M.stylize("[Function"+J+"]","special")}if(E(U))return M.stylize(RegExp.prototype.toString.call(U),"regexp");if(b(U))return M.stylize(Date.prototype.toString.call(U),"date");if(w(U))return n(U)}var Z="",de=!1,ie=["{","}"];if(a(U)&&(de=!0,ie=["[","]"]),_(U)){var ve=U.name?": "+U.name:"";Z=" [Function"+ve+"]"}if(E(U)&&(Z=" "+RegExp.prototype.toString.call(U)),b(U)&&(Z=" "+Date.prototype.toUTCString.call(U)),w(U)&&(Z=" "+n(U)),V.length===0&&(!de||U.length==0))return ie[0]+Z+ie[1];if(B<0)return E(U)?M.stylize(RegExp.prototype.toString.call(U),"regexp"):M.stylize("[Object]","special");M.seen.push(U);var xe;return de?xe=e(M,U,B,z,V):xe=V.map(function(_e){return l(M,U,B,z,_e,de)}),M.seen.pop(),t(xe,Z,ie)}function i(M,U){if(y(U))return M.stylize("undefined","undefined");if(m(U)){var B="'"+JSON.stringify(U).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return M.stylize(B,"string")}if(p(U))return M.stylize(""+U,"number");if(s(U))return M.stylize(""+U,"boolean");if(u(U))return M.stylize("null","null")}function n(M){return"["+Error.prototype.toString.call(M)+"]"}function e(M,U,B,j,W){for(var V=[],z=0,J=U.length;z<J;++z)k(U,String(z))?V.push(l(M,U,B,j,String(z),!0)):V.push("");return W.forEach(function(Z){Z.match(/^\d+$/)||V.push(l(M,U,B,j,Z,!0))}),V}function l(M,U,B,j,W,V){var z,J,Z;if(Z=Object.getOwnPropertyDescriptor(U,W)||{value:U[W]},Z.get?Z.set?J=M.stylize("[Getter/Setter]","special"):J=M.stylize("[Getter]","special"):Z.set&&(J=M.stylize("[Setter]","special")),k(j,W)||(z="["+W+"]"),J||(M.seen.indexOf(Z.value)<0?(u(B)?J=r(M,Z.value,null):J=r(M,Z.value,B-1),J.indexOf(`
|
|
|
`)>-1&&(V?J=J.split(`
|
|
|
`).map(function(de){return" "+de}).join(`
|
|
|
`).substr(2):J=`
|
|
|
`+J.split(`
|
|
|
`).map(function(de){return" "+de}).join(`
|
|
|
`))):J=M.stylize("[Circular]","special")),y(z)){if(V&&W.match(/^\d+$/))return J;z=JSON.stringify(""+W),z.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(z=z.substr(1,z.length-2),z=M.stylize(z,"name")):(z=z.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),z=M.stylize(z,"string"))}return z+": "+J}function t(M,U,B){var j=0,W=M.reduce(function(V,z){return j++,z.indexOf(`
|
|
|
`)>=0&&j++,V+z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return W>60?B[0]+(U===""?"":U+`
|
|
|
`)+" "+M.join(`,
|
|
|
`)+" "+B[1]:B[0]+U+" "+M.join(", ")+" "+B[1]}function a(M){return Array.isArray(M)}d.isArray=a;function s(M){return typeof M=="boolean"}d.isBoolean=s;function u(M){return M===null}d.isNull=u;function h(M){return M==null}d.isNullOrUndefined=h;function p(M){return typeof M=="number"}d.isNumber=p;function m(M){return typeof M=="string"}d.isString=m;function v(M){return typeof M=="symbol"}d.isSymbol=v;function y(M){return M===void 0}d.isUndefined=y;function E(M){return T(M)&&L(M)==="[object RegExp]"}d.isRegExp=E;function T(M){return typeof M=="object"&&M!==null}d.isObject=T;function b(M){return T(M)&&L(M)==="[object Date]"}d.isDate=b;function w(M){return T(M)&&(L(M)==="[object Error]"||M instanceof Error)}d.isError=w;function _(M){return typeof M=="function"}d.isFunction=_;function I(M){return M===null||typeof M=="boolean"||typeof M=="number"||typeof M=="string"||typeof M=="symbol"||typeof M=="undefined"}d.isPrimitive=I,d.isBuffer=H("./support/isBuffer");function L(M){return Object.prototype.toString.call(M)}function N(M){return M<10?"0"+M.toString(10):M.toString(10)}var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(){var M=new Date,U=[N(M.getHours()),N(M.getMinutes()),N(M.getSeconds())].join(":");return[M.getDate(),D[M.getMonth()],U].join(" ")}d.log=function(){console.log("%s - %s",R(),d.format.apply(d,arguments))},d.inherits=H("inherits"),d._extend=function(M,U){if(!U||!T(U))return M;for(var B=Object.keys(U),j=B.length;j--;)M[B[j]]=U[B[j]];return M};function k(M,U){return Object.prototype.hasOwnProperty.call(M,U)}}).call(this,H("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(H,F,d){"use strict";(function(){"use strict";d.stripBOM=function(O){return O[0]==="\uFEFF"?O.substring(1):O}}).call(void 0)},{}],245:[function(H,F,d){"use strict";var O=H("babel-runtime/helpers/typeof"),x=S(O),C=H("babel-runtime/core-js/object/keys"),A=S(C);function S(g){return g&&g.__esModule?g:{default:g}}(function(){"use strict";var g,f,c,o,r,i={}.hasOwnProperty;g=H("xmlbuilder"),f=H("./defaults").defaults,o=function(e){return typeof e=="string"&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)},r=function(e){return"<![CDATA["+c(e)+"]]>"},c=function(e){return e.replace("]]>","]]]]><![CDATA[>")},d.Builder=function(){function n(e){var l,t,a;this.options={},t=f["0.2"];for(l in t){if(!i.call(t,l))continue;a=t[l],this.options[l]=a}for(l in e){if(!i.call(e,l))continue;a=e[l],this.options[l]=a}}return n.prototype.buildObject=function(e){var l,t,a,s,u;return l=this.options.attrkey,t=this.options.charkey,(0,A.default)(e).length===1&&this.options.rootName===f["0.2"].rootName?(u=(0,A.default)(e)[0],e=e[u]):u=this.options.rootName,a=function(h){return function(p,m){var v,y,E,T,b,w;if((typeof m=="undefined"?"undefined":(0,x.default)(m))!=="object")h.options.cdata&&o(m)?p.raw(r(m)):p.txt(m);else if(Array.isArray(m))for(T in m){if(!i.call(m,T))continue;y=m[T];for(b in y)E=y[b],p=a(p.ele(b),E).up()}else for(b in m){if(!i.call(m,b))continue;if(y=m[b],b===l){if((typeof y=="undefined"?"undefined":(0,x.default)(y))==="object")for(v in y)w=y[v],p=p.att(v,w)}else if(b===t)h.options.cdata&&o(y)?p=p.raw(r(y)):p=p.txt(y);else if(Array.isArray(y))for(T in y){if(!i.call(y,T))continue;E=y[T],typeof E=="string"?h.options.cdata&&o(E)?p=p.ele(b).raw(r(E)).up():p=p.ele(b,E).up():p=a(p.ele(b),E).up()}else(typeof y=="undefined"?"undefined":(0,x.default)(y))==="object"?p=a(p.ele(b),y).up():typeof y=="string"&&h.options.cdata&&o(y)?p=p.ele(b).raw(r(y)).up():(y==null&&(y=""),p=p.ele(b,y.toString()).up())}return p}}(this),s=g.create(u,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),a(s,e).end(this.options.renderOpts)},n}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(H,F,d){"use strict";(function(){d.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(H,F,d){"use strict";var O=H("babel-runtime/core-js/promise"),x=o(O),C=H("babel-runtime/core-js/object/get-own-property-names"),A=o(C),S=H("babel-runtime/core-js/object/keys"),g=o(S),f=H("babel-runtime/helpers/typeof"),c=o(f);function o(r){return r&&r.__esModule?r:{default:r}}(function(){"use strict";var r,i,n,e,l,t,a,s,u=function(v,y){return function(){return v.apply(y,arguments)}},h=function(v,y){for(var E in y)p.call(y,E)&&(v[E]=y[E]);function T(){this.constructor=v}return T.prototype=y.prototype,v.prototype=new T,v.__super__=y.prototype,v},p={}.hasOwnProperty;a=H("sax"),n=H("events"),r=H("./bom"),t=H("./processors"),s=H("timers").setImmediate,i=H("./defaults").defaults,e=function(v){return(typeof v=="undefined"?"undefined":(0,c.default)(v))==="object"&&v!=null&&(0,g.default)(v).length===0},l=function(v,y,E){var T,b,w;for(T=0,b=v.length;T<b;T++)w=v[T],y=w(y,E);return y},d.Parser=function(m){h(v,m);function v(y){this.parseStringPromise=u(this.parseStringPromise,this),this.parseString=u(this.parseString,this),this.reset=u(this.reset,this),this.assignOrPush=u(this.assignOrPush,this),this.processAsync=u(this.processAsync,this);var E,T,b;if(!(this instanceof d.Parser))return new d.Parser(y);this.options={},T=i["0.2"];for(E in T){if(!p.call(T,E))continue;b=T[E],this.options[E]=b}for(E in y){if(!p.call(y,E))continue;b=y[E],this.options[E]=b}this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(t.normalize)),this.reset()}return v.prototype.processAsync=function(){var y,E;try{return this.remaining.length<=this.options.chunkSize?(y=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(y),this.saxParser.close()):(y=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(y),s(this.processAsync))}catch(T){if(E=T,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(E)}},v.prototype.assignOrPush=function(y,E,T){return E in y?(y[E]instanceof Array||(y[E]=[y[E]]),y[E].push(T)):this.options.explicitArray?y[E]=[T]:y[E]=T},v.prototype.reset=function(){var y,E,T,b;return this.removeAllListeners(),this.saxParser=a.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(w){return function(_){if(w.saxParser.resume(),!w.saxParser.errThrown)return w.saxParser.errThrown=!0,w.emit("error",_)}}(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,b=[],y=this.options.attrkey,E=this.options.charkey,this.saxParser.onopentag=function(w){return function(_){var I,L,N,D,R;if(N={},N[E]="",!w.options.ignoreAttrs){R=_.attributes;for(I in R){if(!p.call(R,I))continue;!(y in N)&&!w.options.mergeAttrs&&(N[y]={}),L=w.options.attrValueProcessors?l(w.options.attrValueProcessors,_.attributes[I],I):_.attributes[I],D=w.options.attrNameProcessors?l(w.options.attrNameProcessors,I):I,w.options.mergeAttrs?w.assignOrPush(N,D,L):N[y][D]=L}}return N["#name"]=w.options.tagNameProcessors?l(w.options.tagNameProcessors,_.name):_.name,w.options.xmlns&&(N[w.options.xmlnskey]={uri:_.uri,local:_.local}),b.push(N)}}(this),this.saxParser.onclosetag=function(w){return function(){var _,I,L,N,D,R,k,M,U,B;if(R=b.pop(),D=R["#name"],(!w.options.explicitChildren||!w.options.preserveChildrenOrder)&&delete R["#name"],R.cdata===!0&&(_=R.cdata,delete R.cdata),U=b[b.length-1],R[E].match(/^\s*$/)&&!_?(I=R[E],delete R[E]):(w.options.trim&&(R[E]=R[E].trim()),w.options.normalize&&(R[E]=R[E].replace(/\s{2,}/g," ").trim()),R[E]=w.options.valueProcessors?l(w.options.valueProcessors,R[E],D):R[E],(0,g.default)(R).length===1&&E in R&&!w.EXPLICIT_CHARKEY&&(R=R[E])),e(R)&&(R=w.options.emptyTag!==""?w.options.emptyTag:I),w.options.validator!=null&&(B="/"+function(){var j,W,V;for(V=[],j=0,W=b.length;j<W;j++)N=b[j],V.push(N["#name"]);return V}().concat(D).join("/"),function(){var j;try{return R=w.options.validator(B,U&&U[D],R)}catch(W){return j=W,w.emit("error",j)}}()),w.options.explicitChildren&&!w.options.mergeAttrs&&(typeof R=="undefined"?"undefined":(0,c.default)(R))==="object"){if(!w.options.preserveChildrenOrder)N={},w.options.attrkey in R&&(N[w.options.attrkey]=R[w.options.attrkey],delete R[w.options.attrkey]),!w.options.charsAsChildren&&w.options.charkey in R&&(N[w.options.charkey]=R[w.options.charkey],delete R[w.options.charkey]),(0,A.default)(R).length>0&&(N[w.options.childkey]=R),R=N;else if(U){U[w.options.childkey]=U[w.options.childkey]||[],k={};for(L in R){if(!p.call(R,L))continue;k[L]=R[L]}U[w.options.childkey].push(k),delete R["#name"],(0,g.default)(R).length===1&&E in R&&!w.EXPLICIT_CHARKEY&&(R=R[E])}}return b.length>0?w.assignOrPush(U,D,R):(w.options.explicitRoot&&(M=R,R={},R[D]=M),w.resultObject=R,w.saxParser.ended=!0,w.emit("end",w.resultObject))}}(this),T=function(w){return function(_){var I,L;if(L=b[b.length-1],L)return L[E]+=_,w.options.explicitChildren&&w.options.preserveChildrenOrder&&w.options.charsAsChildren&&(w.options.includeWhiteChars||_.replace(/\\n/g,"").trim()!=="")&&(L[w.options.childkey]=L[w.options.childkey]||[],I={"#name":"__text__"},I[E]=_,w.options.normalize&&(I[E]=I[E].replace(/\s{2,}/g," ").trim()),L[w.options.childkey].push(I)),L}}(this),this.saxParser.ontext=T,this.saxParser.oncdata=function(w){return function(_){var I;if(I=T(_),I)return I.cdata=!0}}(this)},v.prototype.parseString=function(y,E){var T;E!=null&&typeof E=="function"&&(this.on("end",function(b){return this.reset(),E(null,b)}),this.on("error",function(b){return this.reset(),E(b)}));try{return y=y.toString(),y.trim()===""?(this.emit("end",null),!0):(y=r.stripBOM(y),this.options.async?(this.remaining=y,s(this.processAsync),this.saxParser):this.saxParser.write(y).close())}catch(b){if(T=b,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw T}else return this.emit("error",T),this.saxParser.errThrown=!0}},v.prototype.parseStringPromise=function(y){return new x.default(function(E){return function(T,b){return E.parseString(y,function(w,_){return w?b(w):T(_)})}}(this))},v}(n),d.parseString=function(m,v,y){var E,T,b;return y!=null?(typeof y=="function"&&(E=y),(typeof v=="undefined"?"undefined":(0,c.default)(v))==="object"&&(T=v)):(typeof v=="function"&&(E=v),T={}),b=new d.Parser(T),b.parseString(m,E)},d.parseStringPromise=function(m,v){var y,E;return(typeof v=="undefined"?"undefined":(0,c.default)(v))==="object"&&(y=v),E=new d.Parser(y),E.parseStringPromise(m)}}).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(H,F,d){"use strict";(function(){"use strict";var O;O=new RegExp(/(?!xmlns)^.*:/),d.normalize=function(x){return x.toLowerCase()},d.firstCharLowerCase=function(x){return x.charAt(0).toLowerCase()+x.slice(1)},d.stripPrefix=function(x){return x.replace(O,"")},d.parseNumbers=function(x){return isNaN(x)||(x=x%1===0?parseInt(x,10):parseFloat(x)),x},d.parseBooleans=function(x){return/^(?:true|false)$/i.test(x)&&(x=x.toLowerCase()==="true"),x}}).call(void 0)},{}],249:[function(H,F,d){"use strict";(function(){"use strict";var O,x,C,A,S=function(c,o){for(var r in o)g.call(o,r)&&(c[r]=o[r]);function i(){this.constructor=c}return i.prototype=o.prototype,c.prototype=new i,c.__super__=o.prototype,c},g={}.hasOwnProperty;x=H("./defaults"),O=H("./builder"),C=H("./parser"),A=H("./processors"),d.defaults=x.defaults,d.processors=A,d.ValidationError=function(f){S(c,f);function c(o){this.message=o}return c}(Error),d.Builder=O.Builder,d.Parser=C.Parser,d.parseString=C.parseString,d.parseStringPromise=C.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(H,F,d){"use strict";(function(){F.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(H,F,d){"use strict";(function(){F.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(H,F,d){"use strict";var O=H("babel-runtime/core-js/object/get-prototype-of"),x=f(O),C=H("babel-runtime/helpers/typeof"),A=f(C),S=H("babel-runtime/core-js/object/assign"),g=f(S);function f(c){return c&&c.__esModule?c:{default:c}}(function(){var c,o,r,i,n,e,l,t=[].slice,a={}.hasOwnProperty;c=function(){var u,h,p,m,v,y;if(y=arguments[0],v=2<=arguments.length?t.call(arguments,1):[],n(g.default))g.default.apply(null,arguments);else for(u=0,p=v.length;u<p;u++)if(m=v[u],m!=null)for(h in m){if(!a.call(m,h))continue;y[h]=m[h]}return y},n=function(u){return!!u&&Object.prototype.toString.call(u)==="[object Function]"},e=function(u){var h;return!!u&&((h=typeof u=="undefined"?"undefined":(0,A.default)(u))==="function"||h==="object")},r=function(u){return n(Array.isArray)?Array.isArray(u):Object.prototype.toString.call(u)==="[object Array]"},i=function(u){var h;if(r(u))return!u.length;for(h in u){if(!a.call(u,h))continue;return!1}return!0},l=function(u){var h,p;return e(u)&&(p=(0,x.default)(u))&&(h=p.constructor)&&typeof h=="function"&&h instanceof h&&Function.prototype.toString.call(h)===Function.prototype.toString.call(Object)},o=function(u){return n(u.valueOf)?u.valueOf():u},F.exports.assign=c,F.exports.isFunction=n,F.exports.isObject=e,F.exports.isArray=r,F.exports.isEmpty=i,F.exports.isPlainObject=l,F.exports.getValue=o}).call(void 0)},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/get-prototype-of":59,"babel-runtime/helpers/typeof":67}],253:[function(H,F,d){"use strict";(function(){F.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(H,F,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,S,g;A=H("./NodeType"),g=H("./XMLNode"),F.exports=S=function(){function f(c,o,r){if(this.parent=c,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),o==null)throw new Error("Missing attribute name. "+this.debugInfo(o));this.name=this.stringify.name(o),this.value=this.stringify.attValue(r),this.type=A.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(f.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(f.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(f.prototype,"textContent",{get:function(){return this.value},set:function(o){return this.value=o||""}}),Object.defineProperty(f.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(f.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(f.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(f.prototype,"specified",{get:function(){return!0}}),f.prototype.clone=function(){return(0,x.default)(this)},f.prototype.toString=function(c){return this.options.writer.attribute(this,this.options.writer.filterOptions(c))},f.prototype.debugInfo=function(c){return c=c||this.name,c==null?"parent: <"+this.parent.name+">":"attribute: {"+c+"}, parent: <"+this.parent.name+">"},f.prototype.isEqualNode=function(c){return c.namespaceURI!==this.namespaceURI||(c.prefix!==this.prefix||c.localName!==this.localName)?!1:!(c.value!==this.value)},f}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(H,F,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,S,g,f=function(r,i){for(var n in i)c.call(i,n)&&(r[n]=i[n]);function e(){this.constructor=r}return e.prototype=i.prototype,r.prototype=new e,r.__super__=i.prototype,r},c={}.hasOwnProperty;A=H("./NodeType"),g=H("./XMLCharacterData"),F.exports=S=function(o){f(r,o);function r(i,n){if(r.__super__.constructor.call(this,i),n==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=A.CData,this.value=this.stringify.cdata(n)}return r.prototype.clone=function(){return(0,x.default)(this)},r.prototype.toString=function(i){return this.options.writer.cdata(this,this.options.writer.filterOptions(i))},r}(g)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(H,F,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,S,g=function(o,r){for(var i in r)f.call(r,i)&&(o[i]=r[i]);function n(){this.constructor=o}return n.prototype=r.prototype,o.prototype=new n,o.__super__=r.prototype,o},f={}.hasOwnProperty;S=H("./XMLNode"),F.exports=A=function(c){g(o,c);function o(r){o.__super__.constructor.call(this,r),this.value=""}return Object.defineProperty(o.prototype,"data",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(o.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(o.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),o.prototype.clone=function(){return(0,x.default)(this)},o.prototype.substringData=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.appendData=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.insertData=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.deleteData=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.replaceData=function(r,i,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.isEqualNode=function(r){return o.__super__.isEqualNode.apply(this,arguments).isEqualNode(r)?!(r.data!==this.data):!1},o}(S)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(H,F,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,S,g,f=function(r,i){for(var n in i)c.call(i,n)&&(r[n]=i[n]);function e(){this.constructor=r}return e.prototype=i.prototype,r.prototype=new e,r.__super__=i.prototype,r},c={}.hasOwnProperty;A=H("./NodeType"),S=H("./XMLCharacterData"),F.exports=g=function(o){f(r,o);function r(i,n){if(r.__super__.constructor.call(this,i),n==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=A.Comment,this.value=this.stringify.comment(n)}return r.prototype.clone=function(){return(0,x.default)(this)},r.prototype.toString=function(i){return this.options.writer.comment(this,this.options.writer.filterOptions(i))},r}(S)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(H,F,d){"use strict";var O=H("babel-runtime/core-js/object/keys"),x=S(O),C=H("babel-runtime/core-js/object/create"),A=S(C);function S(g){return g&&g.__esModule?g:{default:g}}(function(){var g,f,c;f=H("./XMLDOMErrorHandler"),c=H("./XMLDOMStringList"),F.exports=g=function(){function o(){var r;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new f,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=r=(0,A.default)(this.defaultParams)}return Object.defineProperty(o.prototype,"parameterNames",{get:function(){return new c((0,x.default)(this.defaultParams))}}),o.prototype.getParameter=function(r){return this.params.hasOwnProperty(r)?this.params[r]:null},o.prototype.canSetParameter=function(r,i){return!0},o.prototype.setParameter=function(r,i){return i!=null?this.params[r]=i:delete this.params[r]},o}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(H,F,d){"use strict";(function(){var O;F.exports=O=function(){function x(){}return x.prototype.handleError=function(C){throw new Error(C)},x}()}).call(void 0)},{}],260:[function(H,F,d){"use strict";(function(){var O;F.exports=O=function(){function x(){}return x.prototype.hasFeature=function(C,A){return!0},x.prototype.createDocumentType=function(C,A,S){throw new Error("This DOM method is not implemented.")},x.prototype.createDocument=function(C,A,S){throw new Error("This DOM method is not implemented.")},x.prototype.createHTMLDocument=function(C){throw new Error("This DOM method is not implemented.")},x.prototype.getFeature=function(C,A){throw new Error("This DOM method is not implemented.")},x}()}).call(void 0)},{}],261:[function(H,F,d){"use strict";(function(){var O;F.exports=O=function(){function x(C){this.arr=C||[]}return Object.defineProperty(x.prototype,"length",{get:function(){return this.arr.length}}),x.prototype.item=function(C){return this.arr[C]||null},x.prototype.contains=function(C){return this.arr.indexOf(C)!==-1},x}()}).call(void 0)},{}],262:[function(H,F,d){"use strict";(function(){var O,x,C,A=function(f,c){for(var o in c)S.call(c,o)&&(f[o]=c[o]);function r(){this.constructor=f}return r.prototype=c.prototype,f.prototype=new r,f.__super__=c.prototype,f},S={}.hasOwnProperty;C=H("./XMLNode"),O=H("./NodeType"),F.exports=x=function(g){A(f,g);function f(c,o,r,i,n,e){if(f.__super__.constructor.call(this,c),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(r==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(o));if(!i)throw new Error("Missing DTD attribute type. "+this.debugInfo(o));if(!n)throw new Error("Missing DTD attribute default. "+this.debugInfo(o));if(n.indexOf("#")!==0&&(n="#"+n),!n.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(o));if(e&&!n.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(o));this.elementName=this.stringify.name(o),this.type=O.AttributeDeclaration,this.attributeName=this.stringify.name(r),this.attributeType=this.stringify.dtdAttType(i),e&&(this.defaultValue=this.stringify.dtdAttDefault(e)),this.defaultValueType=n}return f.prototype.toString=function(c){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(c))},f}(C)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(H,F,d){"use strict";(function(){var O,x,C,A=function(f,c){for(var o in c)S.call(c,o)&&(f[o]=c[o]);function r(){this.constructor=f}return r.prototype=c.prototype,f.prototype=new r,f.__super__=c.prototype,f},S={}.hasOwnProperty;C=H("./XMLNode"),O=H("./NodeType"),F.exports=x=function(g){A(f,g);function f(c,o,r){if(f.__super__.constructor.call(this,c),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());r||(r="(#PCDATA)"),Array.isArray(r)&&(r="("+r.join(",")+")"),this.name=this.stringify.name(o),this.type=O.ElementDeclaration,this.value=this.stringify.dtdElementValue(r)}return f.prototype.toString=function(c){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(c))},f}(C)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(H,F,d){"use strict";(function(){var O,x,C,A,S=function(c,o){for(var r in o)g.call(o,r)&&(c[r]=o[r]);function i(){this.constructor=c}return i.prototype=o.prototype,c.prototype=new i,c.__super__=o.prototype,c},g={}.hasOwnProperty;A=H("./Utility").isObject,C=H("./XMLNode"),O=H("./NodeType"),F.exports=x=function(f){S(c,f);function c(o,r,i,n){if(c.__super__.constructor.call(this,o),i==null)throw new Error("Missing DTD entity name. "+this.debugInfo(i));if(n==null)throw new Error("Missing DTD entity value. "+this.debugInfo(i));if(this.pe=!!r,this.name=this.stringify.name(i),this.type=O.EntityDeclaration,!A(n))this.value=this.stringify.dtdEntityValue(n),this.internal=!0;else{if(!n.pubID&&!n.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(i));if(n.pubID&&!n.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(i));if(this.internal=!1,n.pubID!=null&&(this.pubID=this.stringify.dtdPubID(n.pubID)),n.sysID!=null&&(this.sysID=this.stringify.dtdSysID(n.sysID)),n.nData!=null&&(this.nData=this.stringify.dtdNData(n.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(i))}}return Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(c.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return null}}),c.prototype.toString=function(o){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(o))},c}(C)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(H,F,d){"use strict";(function(){var O,x,C,A=function(f,c){for(var o in c)S.call(c,o)&&(f[o]=c[o]);function r(){this.constructor=f}return r.prototype=c.prototype,f.prototype=new r,f.__super__=c.prototype,f},S={}.hasOwnProperty;C=H("./XMLNode"),O=H("./NodeType"),F.exports=x=function(g){A(f,g);function f(c,o,r){if(f.__super__.constructor.call(this,c),o==null)throw new Error("Missing DTD notation name. "+this.debugInfo(o));if(!r.pubID&&!r.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(o));this.name=this.stringify.name(o),this.type=O.NotationDeclaration,r.pubID!=null&&(this.pubID=this.stringify.dtdPubID(r.pubID)),r.sysID!=null&&(this.sysID=this.stringify.dtdSysID(r.sysID))}return Object.defineProperty(f.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(f.prototype,"systemId",{get:function(){return this.sysID}}),f.prototype.toString=function(c){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(c))},f}(C)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(H,F,d){"use strict";(function(){var O,x,C,A,S=function(c,o){for(var r in o)g.call(o,r)&&(c[r]=o[r]);function i(){this.constructor=c}return i.prototype=o.prototype,c.prototype=new i,c.__super__=o.prototype,c},g={}.hasOwnProperty;A=H("./Utility").isObject,C=H("./XMLNode"),O=H("./NodeType"),F.exports=x=function(f){S(c,f);function c(o,r,i,n){var e;c.__super__.constructor.call(this,o),A(r)&&(e=r,r=e.version,i=e.encoding,n=e.standalone),r||(r="1.0"),this.type=O.Declaration,this.version=this.stringify.xmlVersion(r),i!=null&&(this.encoding=this.stringify.xmlEncoding(i)),n!=null&&(this.standalone=this.stringify.xmlStandalone(n))}return c.prototype.toString=function(o){return this.options.writer.declaration(this,this.options.writer.filterOptions(o))},c}(C)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(H,F,d){"use strict";(function(){var O,x,C,A,S,g,f,c,o,r=function(e,l){for(var t in l)i.call(l,t)&&(e[t]=l[t]);function a(){this.constructor=e}return a.prototype=l.prototype,e.prototype=new a,e.__super__=l.prototype,e},i={}.hasOwnProperty;o=H("./Utility").isObject,c=H("./XMLNode"),O=H("./NodeType"),x=H("./XMLDTDAttList"),A=H("./XMLDTDEntity"),C=H("./XMLDTDElement"),S=H("./XMLDTDNotation"),f=H("./XMLNamedNodeMap"),F.exports=g=function(n){r(e,n);function e(l,t,a){var s,u,h,p,m,v;if(e.__super__.constructor.call(this,l),this.type=O.DocType,l.children){for(p=l.children,u=0,h=p.length;u<h;u++)if(s=p[u],s.type===O.Element){this.name=s.name;break}}this.documentObject=l,o(t)&&(m=t,t=m.pubID,a=m.sysID),a==null&&(v=[t,a],a=v[0],t=v[1]),t!=null&&(this.pubID=this.stringify.dtdPubID(t)),a!=null&&(this.sysID=this.stringify.dtdSysID(a))}return Object.defineProperty(e.prototype,"entities",{get:function(){var t,a,s,u,h;for(u={},h=this.children,a=0,s=h.length;a<s;a++)t=h[a],t.type===O.EntityDeclaration&&!t.pe&&(u[t.name]=t);return new f(u)}}),Object.defineProperty(e.prototype,"notations",{get:function(){var t,a,s,u,h;for(u={},h=this.children,a=0,s=h.length;a<s;a++)t=h[a],t.type===O.NotationDeclaration&&(u[t.name]=t);return new f(u)}}),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,t){var a;return a=new C(this,l,t),this.children.push(a),this},e.prototype.attList=function(l,t,a,s,u){var h;return h=new x(this,l,t,a,s,u),this.children.push(h),this},e.prototype.entity=function(l,t){var a;return a=new A(this,!1,l,t),this.children.push(a),this},e.prototype.pEntity=function(l,t){var a;return a=new A(this,!0,l,t),this.children.push(a),this},e.prototype.notation=function(l,t){var a;return a=new S(this,l,t),this.children.push(a),this},e.prototype.toString=function(l){return this.options.writer.docType(this,this.options.writer.filterOptions(l))},e.prototype.ele=function(l,t){return this.element(l,t)},e.prototype.att=function(l,t,a,s,u){return this.attList(l,t,a,s,u)},e.prototype.ent=function(l,t){return this.entity(l,t)},e.prototype.pent=function(l,t){return this.pEntity(l,t)},e.prototype.not=function(l,t){return this.notation(l,t)},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}(c)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(H,F,d){"use strict";(function(){var O,x,C,A,S,g,f,c,o=function(n,e){for(var l in e)r.call(e,l)&&(n[l]=e[l]);function t(){this.constructor=n}return t.prototype=e.prototype,n.prototype=new t,n.__super__=e.prototype,n},r={}.hasOwnProperty;c=H("./Utility").isPlainObject,C=H("./XMLDOMImplementation"),x=H("./XMLDOMConfiguration"),S=H("./XMLNode"),O=H("./NodeType"),f=H("./XMLStringifier"),g=H("./XMLStringWriter"),F.exports=A=function(i){o(n,i);function n(e){n.__super__.constructor.call(this,null),this.name="#document",this.type=O.Document,this.documentURI=null,this.domConfig=new x,e||(e={}),e.writer||(e.writer=new g),this.options=e,this.stringify=new f(e)}return Object.defineProperty(n.prototype,"implementation",{value:new C}),Object.defineProperty(n.prototype,"doctype",{get:function(){var l,t,a,s;for(s=this.children,t=0,a=s.length;t<a;t++)if(l=s[t],l.type===O.DocType)return l;return null}}),Object.defineProperty(n.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(n.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(n.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(n.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===O.Declaration?this.children[0].encoding:null}}),Object.defineProperty(n.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===O.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(n.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===O.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(n.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(n.prototype,"origin",{get:function(){return null}}),Object.defineProperty(n.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(n.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(n.prototype,"contentType",{get:function(){return null}}),n.prototype.end=function(e){var l;return l={},e?c(e)&&(l=e,e=this.options.writer):e=this.options.writer,e.document(this,e.filterOptions(l))},n.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))},n.prototype.createElement=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createTextNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createComment=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createCDATASection=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createProcessingInstruction=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createAttribute=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createEntityReference=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.importNode=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createElementNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createAttributeNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementsByTagNameNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementById=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.adoptNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.renameNode=function(e,l,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createEvent=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createNodeIterator=function(e,l,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createTreeWalker=function(e,l,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n}(S)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(H,F,d){"use strict";(function(){var O,x,C,A,S,g,f,c,o,r,i,n,e,l,t,a,s,u,h,p,m,v,y,E,T={}.hasOwnProperty;E=H("./Utility"),v=E.isObject,m=E.isFunction,y=E.isPlainObject,p=E.getValue,O=H("./NodeType"),n=H("./XMLDocument"),l=H("./XMLElement"),A=H("./XMLCData"),S=H("./XMLComment"),a=H("./XMLRaw"),h=H("./XMLText"),t=H("./XMLProcessingInstruction"),r=H("./XMLDeclaration"),i=H("./XMLDocType"),g=H("./XMLDTDAttList"),c=H("./XMLDTDEntity"),f=H("./XMLDTDElement"),o=H("./XMLDTDNotation"),C=H("./XMLAttribute"),u=H("./XMLStringifier"),s=H("./XMLStringWriter"),x=H("./WriterState"),F.exports=e=function(){function b(w,_,I){var L;this.name="?xml",this.type=O.Document,w||(w={}),L={},w.writer?y(w.writer)&&(L=w.writer,w.writer=new s):w.writer=new s,this.options=w,this.writer=w.writer,this.writerOptions=this.writer.filterOptions(L),this.stringify=new u(w),this.onDataCallback=_||function(){},this.onEndCallback=I||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return b.prototype.createChildNode=function(w){var _,I,L,N,D,R,k,M;switch(w.type){case O.CData:this.cdata(w.value);break;case O.Comment:this.comment(w.value);break;case O.Element:L={},k=w.attribs;for(I in k){if(!T.call(k,I))continue;_=k[I],L[I]=_.value}this.node(w.name,L);break;case O.Dummy:this.dummy();break;case O.Raw:this.raw(w.value);break;case O.Text:this.text(w.value);break;case O.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(M=w.children,D=0,R=M.length;D<R;D++)N=M[D],this.createChildNode(N),N.type===O.Element&&this.up();return this},b.prototype.dummy=function(){return this},b.prototype.node=function(w,_,I){var L;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=p(w),_==null&&(_={}),_=p(_),v(_)||(L=[_,I],I=L[0],_=L[1]),this.currentNode=new l(this,w,_),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,I!=null&&this.text(I),this},b.prototype.element=function(w,_,I){var L,N,D,R,k,M;if(this.currentNode&&this.currentNode.type===O.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(w)||v(w)||m(w))for(R=this.options.noValidation,this.options.noValidation=!0,M=new n(this.options).element("TEMP_ROOT"),M.element(w),this.options.noValidation=R,k=M.children,N=0,D=k.length;N<D;N++)L=k[N],this.createChildNode(L),L.type===O.Element&&this.up();else this.node(w,_,I);return this},b.prototype.attribute=function(w,_){var I,L;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=p(w)),v(w))for(I in w){if(!T.call(w,I))continue;L=w[I],this.attribute(I,L)}else m(_)&&(_=_.apply()),this.options.keepNullAttributes&&_==null?this.currentNode.attribs[w]=new C(this,w,""):_!=null&&(this.currentNode.attribs[w]=new C(this,w,_));return this},b.prototype.text=function(w){var _;return this.openCurrent(),_=new h(this,w),this.onData(this.writer.text(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},b.prototype.cdata=function(w){var _;return this.openCurrent(),_=new A(this,w),this.onData(this.writer.cdata(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},b.prototype.comment=function(w){var _;return this.openCurrent(),_=new S(this,w),this.onData(this.writer.comment(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},b.prototype.raw=function(w){var _;return this.openCurrent(),_=new a(this,w),this.onData(this.writer.raw(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},b.prototype.instruction=function(w,_){var I,L,N,D,R;if(this.openCurrent(),w!=null&&(w=p(w)),_!=null&&(_=p(_)),Array.isArray(w))for(I=0,D=w.length;I<D;I++)L=w[I],this.instruction(L);else if(v(w))for(L in w){if(!T.call(w,L))continue;N=w[L],this.instruction(L,N)}else m(_)&&(_=_.apply()),R=new t(this,w,_),this.onData(this.writer.processingInstruction(R,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},b.prototype.declaration=function(w,_,I){var L;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return L=new r(this,w,_,I),this.onData(this.writer.declaration(L,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},b.prototype.doctype=function(w,_,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 i(this,_,I),this.currentNode.rootNodeName=w,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},b.prototype.dtdElement=function(w,_){var I;return this.openCurrent(),I=new f(this,w,_),this.onData(this.writer.dtdElement(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},b.prototype.attList=function(w,_,I,L,N){var D;return this.openCurrent(),D=new g(this,w,_,I,L,N),this.onData(this.writer.dtdAttList(D,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},b.prototype.entity=function(w,_){var I;return this.openCurrent(),I=new c(this,!1,w,_),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},b.prototype.pEntity=function(w,_){var I;return this.openCurrent(),I=new c(this,!0,w,_),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},b.prototype.notation=function(w,_){var I;return this.openCurrent(),I=new o(this,w,_),this.onData(this.writer.dtdNotation(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},b.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},b.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},b.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},b.prototype.openNode=function(w){var _,I,L,N;if(!w.isOpen){if(!this.root&&this.currentLevel===0&&w.type===O.Element&&(this.root=w),I="",w.type===O.Element){this.writerOptions.state=x.OpenTag,I=this.writer.indent(w,this.writerOptions,this.currentLevel)+"<"+w.name,N=w.attribs;for(L in N){if(!T.call(N,L))continue;_=N[L],I+=this.writer.attribute(_,this.writerOptions,this.currentLevel)}I+=(w.children?">":"/>")+this.writer.endline(w,this.writerOptions,this.currentLevel),this.writerOptions.state=x.InsideTag}else this.writerOptions.state=x.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=x.InsideTag):(this.writerOptions.state=x.CloseTag,I+=">"),I+=this.writer.endline(w,this.writerOptions,this.currentLevel);return this.onData(I,this.currentLevel),w.isOpen=!0}},b.prototype.closeNode=function(w){var _;if(!w.isClosed)return _="",this.writerOptions.state=x.CloseTag,w.type===O.Element?_=this.writer.indent(w,this.writerOptions,this.currentLevel)+"</"+w.name+">"+this.writer.endline(w,this.writerOptions,this.currentLevel):_=this.writer.indent(w,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(w,this.writerOptions,this.currentLevel),this.writerOptions.state=x.None,this.onData(_,this.currentLevel),w.isClosed=!0},b.prototype.onData=function(w,_){return this.documentStarted=!0,this.onDataCallback(w,_+1)},b.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},b.prototype.debugInfo=function(w){return w==null?"":"node: <"+w+">"},b.prototype.ele=function(){return this.element.apply(this,arguments)},b.prototype.nod=function(w,_,I){return this.node(w,_,I)},b.prototype.txt=function(w){return this.text(w)},b.prototype.dat=function(w){return this.cdata(w)},b.prototype.com=function(w){return this.comment(w)},b.prototype.ins=function(w,_){return this.instruction(w,_)},b.prototype.dec=function(w,_,I){return this.declaration(w,_,I)},b.prototype.dtd=function(w,_,I){return this.doctype(w,_,I)},b.prototype.e=function(w,_,I){return this.element(w,_,I)},b.prototype.n=function(w,_,I){return this.node(w,_,I)},b.prototype.t=function(w){return this.text(w)},b.prototype.d=function(w){return this.cdata(w)},b.prototype.c=function(w){return this.comment(w)},b.prototype.r=function(w){return this.raw(w)},b.prototype.i=function(w,_){return this.instruction(w,_)},b.prototype.att=function(){return this.currentNode&&this.currentNode.type===O.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},b.prototype.a=function(){return this.currentNode&&this.currentNode.type===O.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},b.prototype.ent=function(w,_){return this.entity(w,_)},b.prototype.pent=function(w,_){return this.pEntity(w,_)},b.prototype.not=function(w,_){return this.notation(w,_)},b}()}).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(H,F,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,S,g,f=function(r,i){for(var n in i)c.call(i,n)&&(r[n]=i[n]);function e(){this.constructor=r}return e.prototype=i.prototype,r.prototype=new e,r.__super__=i.prototype,r},c={}.hasOwnProperty;g=H("./XMLNode"),A=H("./NodeType"),F.exports=S=function(o){f(r,o);function r(i){r.__super__.constructor.call(this,i),this.type=A.Dummy}return r.prototype.clone=function(){return(0,x.default)(this)},r.prototype.toString=function(i){return""},r}(g)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(H,F,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,S,g,f,c,o,r,i,n,e=function(a,s){for(var u in s)l.call(s,u)&&(a[u]=s[u]);function h(){this.constructor=a}return h.prototype=s.prototype,a.prototype=new h,a.__super__=s.prototype,a},l={}.hasOwnProperty;n=H("./Utility"),i=n.isObject,r=n.isFunction,o=n.getValue,c=H("./XMLNode"),A=H("./NodeType"),S=H("./XMLAttribute"),f=H("./XMLNamedNodeMap"),F.exports=g=function(t){e(a,t);function a(s,u,h){var p,m,v,y;if(a.__super__.constructor.call(this,s),u==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(u),this.type=A.Element,this.attribs={},this.schemaTypeInfo=null,h!=null&&this.attribute(h),s.type===A.Document&&(this.isRoot=!0,this.documentObject=s,s.rootObject=this,s.children)){for(y=s.children,m=0,v=y.length;m<v;m++)if(p=y[m],p.type===A.DocType){p.name=this.name;break}}}return Object.defineProperty(a.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(a.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(a.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new f(this.attribs)),this.attributeMap}}),a.prototype.clone=function(){var s,u,h,p;h=(0,x.default)(this),h.isRoot&&(h.documentObject=null),h.attribs={},p=this.attribs;for(u in p){if(!l.call(p,u))continue;s=p[u],h.attribs[u]=s.clone()}return h.children=[],this.children.forEach(function(m){var v;return v=m.clone(),v.parent=h,h.children.push(v)}),h},a.prototype.attribute=function(s,u){var h,p;if(s!=null&&(s=o(s)),i(s))for(h in s){if(!l.call(s,h))continue;p=s[h],this.attribute(h,p)}else r(u)&&(u=u.apply()),this.options.keepNullAttributes&&u==null?this.attribs[s]=new S(this,s,""):u!=null&&(this.attribs[s]=new S(this,s,u));return this},a.prototype.removeAttribute=function(s){var u,h,p;if(s==null)throw new Error("Missing attribute name. "+this.debugInfo());if(s=o(s),Array.isArray(s))for(h=0,p=s.length;h<p;h++)u=s[h],delete this.attribs[u];else delete this.attribs[s];return this},a.prototype.toString=function(s){return this.options.writer.element(this,this.options.writer.filterOptions(s))},a.prototype.att=function(s,u){return this.attribute(s,u)},a.prototype.a=function(s,u){return this.attribute(s,u)},a.prototype.getAttribute=function(s){return this.attribs.hasOwnProperty(s)?this.attribs[s].value:null},a.prototype.setAttribute=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNode=function(s){return this.attribs.hasOwnProperty(s)?this.attribs[s]:null},a.prototype.setAttributeNode=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeAttributeNode=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagName=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNS=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setAttributeNS=function(s,u,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeAttributeNS=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNodeNS=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setAttributeNodeNS=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagNameNS=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.hasAttribute=function(s){return this.attribs.hasOwnProperty(s)},a.prototype.hasAttributeNS=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setIdAttribute=function(s,u){return this.attribs.hasOwnProperty(s)?this.attribs[s].isId:u},a.prototype.setIdAttributeNS=function(s,u,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setIdAttributeNode=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagName=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagNameNS=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByClassName=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isEqualNode=function(s){var u,h,p;if(!a.__super__.isEqualNode.apply(this,arguments).isEqualNode(s))return!1;if(s.namespaceURI!==this.namespaceURI)return!1;if(s.prefix!==this.prefix)return!1;if(s.localName!==this.localName)return!1;if(s.attribs.length!==this.attribs.length)return!1;for(u=h=0,p=this.attribs.length-1;0<=p?h<=p:h>=p;u=0<=p?++h:--h)if(!this.attribs[u].isEqualNode(s.attribs[u]))return!1;return!0},a}(c)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLAttribute":254,"./XMLNamedNodeMap":272,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],272:[function(H,F,d){"use strict";var O=H("babel-runtime/core-js/object/keys"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A;F.exports=A=function(){function S(g){this.nodes=g}return Object.defineProperty(S.prototype,"length",{get:function(){return(0,x.default)(this.nodes).length||0}}),S.prototype.clone=function(){return this.nodes=null},S.prototype.getNamedItem=function(g){return this.nodes[g]},S.prototype.setNamedItem=function(g){var f;return f=this.nodes[g.nodeName],this.nodes[g.nodeName]=g,f||null},S.prototype.removeNamedItem=function(g){var f;return f=this.nodes[g],delete this.nodes[g],f||null},S.prototype.item=function(g){return this.nodes[(0,x.default)(this.nodes)[g]]||null},S.prototype.getNamedItemNS=function(g,f){throw new Error("This DOM method is not implemented.")},S.prototype.setNamedItemNS=function(g){throw new Error("This DOM method is not implemented.")},S.prototype.removeNamedItemNS=function(g,f){throw new Error("This DOM method is not implemented.")},S}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(H,F,d){"use strict";(function(){var O,x,C,A,S,g,f,c,o,r,i,n,e,l,t,a,s,u,h,p={}.hasOwnProperty;h=H("./Utility"),u=h.isObject,s=h.isFunction,a=h.isEmpty,t=h.getValue,c=null,C=null,A=null,S=null,g=null,e=null,l=null,n=null,f=null,x=null,i=null,o=null,O=null,F.exports=r=function(){function m(v){this.parent=v,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,c||(c=H("./XMLElement"),C=H("./XMLCData"),A=H("./XMLComment"),S=H("./XMLDeclaration"),g=H("./XMLDocType"),e=H("./XMLRaw"),l=H("./XMLText"),n=H("./XMLProcessingInstruction"),f=H("./XMLDummy"),x=H("./NodeType"),i=H("./XMLNodeList"),o=H("./XMLNamedNodeMap"),O=H("./DocumentPosition"))}return Object.defineProperty(m.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(m.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(m.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(m.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(m.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new i(this.children)),this.childNodeList}}),Object.defineProperty(m.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(m.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(m.prototype,"previousSibling",{get:function(){var y;return y=this.parent.children.indexOf(this),this.parent.children[y-1]||null}}),Object.defineProperty(m.prototype,"nextSibling",{get:function(){var y;return y=this.parent.children.indexOf(this),this.parent.children[y+1]||null}}),Object.defineProperty(m.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(m.prototype,"textContent",{get:function(){var y,E,T,b,w;if(this.nodeType===x.Element||this.nodeType===x.DocumentFragment){for(w="",b=this.children,E=0,T=b.length;E<T;E++)y=b[E],y.textContent&&(w+=y.textContent);return w}else return null},set:function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),m.prototype.setParent=function(v){var y,E,T,b,w;for(this.parent=v,v&&(this.options=v.options,this.stringify=v.stringify),b=this.children,w=[],E=0,T=b.length;E<T;E++)y=b[E],w.push(y.setParent(this));return w},m.prototype.element=function(v,y,E){var T,b,w,_,I,L,N,D,R,k,M;if(L=null,y===null&&E==null&&(R=[{},null],y=R[0],E=R[1]),y==null&&(y={}),y=t(y),u(y)||(k=[y,E],E=k[0],y=k[1]),v!=null&&(v=t(v)),Array.isArray(v))for(w=0,N=v.length;w<N;w++)b=v[w],L=this.element(b);else if(s(v))L=this.element(v.apply());else if(u(v))for(I in v){if(!p.call(v,I))continue;if(M=v[I],s(M)&&(M=M.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&I.indexOf(this.stringify.convertAttKey)===0)L=this.attribute(I.substr(this.stringify.convertAttKey.length),M);else if(!this.options.separateArrayItems&&Array.isArray(M)&&a(M))L=this.dummy();else if(u(M)&&a(M))L=this.element(I);else if(!this.options.keepNullNodes&&M==null)L=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(M))for(_=0,D=M.length;_<D;_++)b=M[_],T={},T[I]=b,L=this.element(T);else u(M)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&I.indexOf(this.stringify.convertTextKey)===0?L=this.element(M):(L=this.element(I),L.element(M)):L=this.element(I,M)}else!this.options.keepNullNodes&&E===null?L=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&v.indexOf(this.stringify.convertTextKey)===0?L=this.text(E):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&v.indexOf(this.stringify.convertCDataKey)===0?L=this.cdata(E):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&v.indexOf(this.stringify.convertCommentKey)===0?L=this.comment(E):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&v.indexOf(this.stringify.convertRawKey)===0?L=this.raw(E):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&v.indexOf(this.stringify.convertPIKey)===0?L=this.instruction(v.substr(this.stringify.convertPIKey.length),E):L=this.node(v,y,E);if(L==null)throw new Error("Could not create any elements with: "+v+". "+this.debugInfo());return L},m.prototype.insertBefore=function(v,y,E){var T,b,w,_,I;if(v!=null?v.type:void 0)return w=v,_=y,w.setParent(this),_?(b=children.indexOf(_),I=children.splice(b),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(v));return b=this.parent.children.indexOf(this),I=this.parent.children.splice(b),T=this.parent.element(v,y,E),Array.prototype.push.apply(this.parent.children,I),T},m.prototype.insertAfter=function(v,y,E){var T,b,w;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(v));return b=this.parent.children.indexOf(this),w=this.parent.children.splice(b+1),T=this.parent.element(v,y,E),Array.prototype.push.apply(this.parent.children,w),T},m.prototype.remove=function(){var v,y;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return v=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[v,v-v+1].concat(y=[])),this.parent},m.prototype.node=function(v,y,E){var T,b;return v!=null&&(v=t(v)),y||(y={}),y=t(y),u(y)||(b=[y,E],E=b[0],y=b[1]),T=new c(this,v,y),E!=null&&T.text(E),this.children.push(T),T},m.prototype.text=function(v){var y;return u(v)&&this.element(v),y=new l(this,v),this.children.push(y),this},m.prototype.cdata=function(v){var y;return y=new C(this,v),this.children.push(y),this},m.prototype.comment=function(v){var y;return y=new A(this,v),this.children.push(y),this},m.prototype.commentBefore=function(v){var y,E,T;return E=this.parent.children.indexOf(this),T=this.parent.children.splice(E),y=this.parent.comment(v),Array.prototype.push.apply(this.parent.children,T),this},m.prototype.commentAfter=function(v){var y,E,T;return E=this.parent.children.indexOf(this),T=this.parent.children.splice(E+1),y=this.parent.comment(v),Array.prototype.push.apply(this.parent.children,T),this},m.prototype.raw=function(v){var y;return y=new e(this,v),this.children.push(y),this},m.prototype.dummy=function(){var v;return v=new f(this),v},m.prototype.instruction=function(v,y){var E,T,b,w,_;if(v!=null&&(v=t(v)),y!=null&&(y=t(y)),Array.isArray(v))for(w=0,_=v.length;w<_;w++)E=v[w],this.instruction(E);else if(u(v))for(E in v){if(!p.call(v,E))continue;T=v[E],this.instruction(E,T)}else s(y)&&(y=y.apply()),b=new n(this,v,y),this.children.push(b);return this},m.prototype.instructionBefore=function(v,y){var E,T,b;return T=this.parent.children.indexOf(this),b=this.parent.children.splice(T),E=this.parent.instruction(v,y),Array.prototype.push.apply(this.parent.children,b),this},m.prototype.instructionAfter=function(v,y){var E,T,b;return T=this.parent.children.indexOf(this),b=this.parent.children.splice(T+1),E=this.parent.instruction(v,y),Array.prototype.push.apply(this.parent.children,b),this},m.prototype.declaration=function(v,y,E){var T,b;return T=this.document(),b=new S(T,v,y,E),T.children.length===0?T.children.unshift(b):T.children[0].type===x.Declaration?T.children[0]=b:T.children.unshift(b),T.root()||T},m.prototype.dtd=function(v,y){var E,T,b,w,_,I,L,N,D,R;for(T=this.document(),b=new g(T,v,y),D=T.children,w=_=0,L=D.length;_<L;w=++_)if(E=D[w],E.type===x.DocType)return T.children[w]=b,b;for(R=T.children,w=I=0,N=R.length;I<N;w=++I)if(E=R[w],E.isRoot)return T.children.splice(w,0,b),b;return T.children.push(b),b},m.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},m.prototype.root=function(){var v;for(v=this;v;){if(v.type===x.Document)return v.rootObject;if(v.isRoot)return v;v=v.parent}},m.prototype.document=function(){var v;for(v=this;v;){if(v.type===x.Document)return v;v=v.parent}},m.prototype.end=function(v){return this.document().end(v)},m.prototype.prev=function(){var v;if(v=this.parent.children.indexOf(this),v<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[v-1]},m.prototype.next=function(){var v;if(v=this.parent.children.indexOf(this),v===-1||v===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[v+1]},m.prototype.importDocument=function(v){var y;return y=v.root().clone(),y.parent=this,y.isRoot=!1,this.children.push(y),this},m.prototype.debugInfo=function(v){var y,E;return v=v||this.name,v==null&&!((y=this.parent)!=null?y.name:void 0)?"":v==null?"parent: <"+this.parent.name+">":((E=this.parent)!=null?E.name:void 0)?"node: <"+v+">, parent: <"+this.parent.name+">":"node: <"+v+">"},m.prototype.ele=function(v,y,E){return this.element(v,y,E)},m.prototype.nod=function(v,y,E){return this.node(v,y,E)},m.prototype.txt=function(v){return this.text(v)},m.prototype.dat=function(v){return this.cdata(v)},m.prototype.com=function(v){return this.comment(v)},m.prototype.ins=function(v,y){return this.instruction(v,y)},m.prototype.doc=function(){return this.document()},m.prototype.dec=function(v,y,E){return this.declaration(v,y,E)},m.prototype.e=function(v,y,E){return this.element(v,y,E)},m.prototype.n=function(v,y,E){return this.node(v,y,E)},m.prototype.t=function(v){return this.text(v)},m.prototype.d=function(v){return this.cdata(v)},m.prototype.c=function(v){return this.comment(v)},m.prototype.r=function(v){return this.raw(v)},m.prototype.i=function(v,y){return this.instruction(v,y)},m.prototype.u=function(){return this.up()},m.prototype.importXMLBuilder=function(v){return this.importDocument(v)},m.prototype.replaceChild=function(v,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.removeChild=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.appendChild=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.hasChildNodes=function(){return this.children.length!==0},m.prototype.cloneNode=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.isSupported=function(v,y){return!0},m.prototype.hasAttributes=function(){return this.attribs.length!==0},m.prototype.compareDocumentPosition=function(v){var y,E;return y=this,y===v?0:this.document()!==v.document()?(E=O.Disconnected|O.ImplementationSpecific,Math.random()<.5?E|=O.Preceding:E|=O.Following,E):y.isAncestor(v)?O.Contains|O.Preceding:y.isDescendant(v)?O.Contains|O.Following:y.isPreceding(v)?O.Preceding:O.Following},m.prototype.isSameNode=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.lookupPrefix=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.isDefaultNamespace=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.lookupNamespaceURI=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.isEqualNode=function(v){var y,E,T;if(v.nodeType!==this.nodeType)return!1;if(v.children.length!==this.children.length)return!1;for(y=E=0,T=this.children.length-1;0<=T?E<=T:E>=T;y=0<=T?++E:--E)if(!this.children[y].isEqualNode(v.children[y]))return!1;return!0},m.prototype.getFeature=function(v,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.setUserData=function(v,y,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getUserData=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.contains=function(v){return v?v===this||this.isDescendant(v):!1},m.prototype.isDescendant=function(v){var y,E,T,b,w;for(w=this.children,T=0,b=w.length;T<b;T++){if(y=w[T],v===y)return!0;if(E=y.isDescendant(v),E)return!0}return!1},m.prototype.isAncestor=function(v){return v.isDescendant(this)},m.prototype.isPreceding=function(v){var y,E;return y=this.treePosition(v),E=this.treePosition(this),y===-1||E===-1?!1:y<E},m.prototype.isFollowing=function(v){var y,E;return y=this.treePosition(v),E=this.treePosition(this),y===-1||E===-1?!1:y>E},m.prototype.treePosition=function(v){var y,E;return E=0,y=!1,this.foreachTreeNode(this.document(),function(T){if(E++,!y&&T===v)return y=!0}),y?E:-1},m.prototype.foreachTreeNode=function(v,y){var E,T,b,w,_;for(v||(v=this.document()),w=v.children,T=0,b=w.length;T<b;T++){if(E=w[T],_=y(E))return _;if(_=this.foreachTreeNode(E,y),_)return _}},m}()}).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(H,F,d){"use strict";(function(){var O;F.exports=O=function(){function x(C){this.nodes=C}return Object.defineProperty(x.prototype,"length",{get:function(){return this.nodes.length||0}}),x.prototype.clone=function(){return this.nodes=null},x.prototype.item=function(C){return this.nodes[C]||null},x}()}).call(void 0)},{}],275:[function(H,F,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,S,g,f=function(r,i){for(var n in i)c.call(i,n)&&(r[n]=i[n]);function e(){this.constructor=r}return e.prototype=i.prototype,r.prototype=new e,r.__super__=i.prototype,r},c={}.hasOwnProperty;A=H("./NodeType"),S=H("./XMLCharacterData"),F.exports=g=function(o){f(r,o);function r(i,n,e){if(r.__super__.constructor.call(this,i),n==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=A.ProcessingInstruction,this.target=this.stringify.insTarget(n),this.name=this.target,e&&(this.value=this.stringify.insValue(e))}return r.prototype.clone=function(){return(0,x.default)(this)},r.prototype.toString=function(i){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(i))},r.prototype.isEqualNode=function(i){return r.__super__.isEqualNode.apply(this,arguments).isEqualNode(i)?!(i.target!==this.target):!1},r}(S)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(H,F,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,S,g,f=function(r,i){for(var n in i)c.call(i,n)&&(r[n]=i[n]);function e(){this.constructor=r}return e.prototype=i.prototype,r.prototype=new e,r.__super__=i.prototype,r},c={}.hasOwnProperty;A=H("./NodeType"),S=H("./XMLNode"),F.exports=g=function(o){f(r,o);function r(i,n){if(r.__super__.constructor.call(this,i),n==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=A.Raw,this.value=this.stringify.raw(n)}return r.prototype.clone=function(){return(0,x.default)(this)},r.prototype.toString=function(i){return this.options.writer.raw(this,this.options.writer.filterOptions(i))},r}(S)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(H,F,d){"use strict";(function(){var O,x,C,A,S=function(c,o){for(var r in o)g.call(o,r)&&(c[r]=o[r]);function i(){this.constructor=c}return i.prototype=o.prototype,c.prototype=new i,c.__super__=o.prototype,c},g={}.hasOwnProperty;O=H("./NodeType"),A=H("./XMLWriterBase"),x=H("./WriterState"),F.exports=C=function(f){S(c,f);function c(o,r){this.stream=o,c.__super__.constructor.call(this,r)}return c.prototype.endline=function(o,r,i){return o.isLastRootNode&&r.state===x.CloseTag?"":c.__super__.endline.call(this,o,r,i)},c.prototype.document=function(o,r){var i,n,e,l,t,a,s,u,h;for(s=o.children,n=e=0,t=s.length;e<t;n=++e)i=s[n],i.isLastRootNode=n===o.children.length-1;for(r=this.filterOptions(r),u=o.children,h=[],l=0,a=u.length;l<a;l++)i=u[l],h.push(this.writeChildNode(i,r,0));return h},c.prototype.attribute=function(o,r,i){return this.stream.write(c.__super__.attribute.call(this,o,r,i))},c.prototype.cdata=function(o,r,i){return this.stream.write(c.__super__.cdata.call(this,o,r,i))},c.prototype.comment=function(o,r,i){return this.stream.write(c.__super__.comment.call(this,o,r,i))},c.prototype.declaration=function(o,r,i){return this.stream.write(c.__super__.declaration.call(this,o,r,i))},c.prototype.docType=function(o,r,i){var n,e,l,t;if(i||(i=0),this.openNode(o,r,i),r.state=x.OpenTag,this.stream.write(this.indent(o,r,i)),this.stream.write("<!DOCTYPE "+o.root().name),o.pubID&&o.sysID?this.stream.write(' PUBLIC "'+o.pubID+'" "'+o.sysID+'"'):o.sysID&&this.stream.write(' SYSTEM "'+o.sysID+'"'),o.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(o,r,i)),r.state=x.InsideTag,t=o.children,e=0,l=t.length;e<l;e++)n=t[e],this.writeChildNode(n,r,i+1);r.state=x.CloseTag,this.stream.write("]")}return r.state=x.CloseTag,this.stream.write(r.spaceBeforeSlash+">"),this.stream.write(this.endline(o,r,i)),r.state=x.None,this.closeNode(o,r,i)},c.prototype.element=function(o,r,i){var n,e,l,t,a,s,u,h,p,m;i||(i=0),this.openNode(o,r,i),r.state=x.OpenTag,this.stream.write(this.indent(o,r,i)+"<"+o.name),p=o.attribs;for(u in p){if(!g.call(p,u))continue;n=p[u],this.attribute(n,r,i)}if(l=o.children.length,t=l===0?null:o.children[0],l===0||o.children.every(function(v){return(v.type===O.Text||v.type===O.Raw)&&v.value===""}))r.allowEmpty?(this.stream.write(">"),r.state=x.CloseTag,this.stream.write("</"+o.name+">")):(r.state=x.CloseTag,this.stream.write(r.spaceBeforeSlash+"/>"));else if(r.pretty&&l===1&&(t.type===O.Text||t.type===O.Raw)&&t.value!=null)this.stream.write(">"),r.state=x.InsideTag,r.suppressPrettyCount++,h=!0,this.writeChildNode(t,r,i+1),r.suppressPrettyCount--,h=!1,r.state=x.CloseTag,this.stream.write("</"+o.name+">");else{for(this.stream.write(">"+this.endline(o,r,i)),r.state=x.InsideTag,m=o.children,a=0,s=m.length;a<s;a++)e=m[a],this.writeChildNode(e,r,i+1);r.state=x.CloseTag,this.stream.write(this.indent(o,r,i)+"</"+o.name+">")}return this.stream.write(this.endline(o,r,i)),r.state=x.None,this.closeNode(o,r,i)},c.prototype.processingInstruction=function(o,r,i){return this.stream.write(c.__super__.processingInstruction.call(this,o,r,i))},c.prototype.raw=function(o,r,i){return this.stream.write(c.__super__.raw.call(this,o,r,i))},c.prototype.text=function(o,r,i){return this.stream.write(c.__super__.text.call(this,o,r,i))},c.prototype.dtdAttList=function(o,r,i){return this.stream.write(c.__super__.dtdAttList.call(this,o,r,i))},c.prototype.dtdElement=function(o,r,i){return this.stream.write(c.__super__.dtdElement.call(this,o,r,i))},c.prototype.dtdEntity=function(o,r,i){return this.stream.write(c.__super__.dtdEntity.call(this,o,r,i))},c.prototype.dtdNotation=function(o,r,i){return this.stream.write(c.__super__.dtdNotation.call(this,o,r,i))},c}(A)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(H,F,d){"use strict";(function(){var O,x,C=function(g,f){for(var c in f)A.call(f,c)&&(g[c]=f[c]);function o(){this.constructor=g}return o.prototype=f.prototype,g.prototype=new o,g.__super__=f.prototype,g},A={}.hasOwnProperty;x=H("./XMLWriterBase"),F.exports=O=function(S){C(g,S);function g(f){g.__super__.constructor.call(this,f)}return g.prototype.document=function(f,c){var o,r,i,n,e;for(c=this.filterOptions(c),n="",e=f.children,r=0,i=e.length;r<i;r++)o=e[r],n+=this.writeChildNode(o,c,0);return c.pretty&&n.slice(-c.newline.length)===c.newline&&(n=n.slice(0,-c.newline.length)),n},g}(x)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(H,F,d){"use strict";(function(){var O,x=function(S,g){return function(){return S.apply(g,arguments)}},C={}.hasOwnProperty;F.exports=O=function(){function A(S){this.assertLegalName=x(this.assertLegalName,this),this.assertLegalChar=x(this.assertLegalChar,this);var g,f,c;S||(S={}),this.options=S,this.options.version||(this.options.version="1.0"),f=S.stringify||{};for(g in f){if(!C.call(f,g))continue;c=f[g],this[g]=c}}return A.prototype.name=function(S){return this.options.noValidation?S:this.assertLegalName(""+S||"")},A.prototype.text=function(S){return this.options.noValidation?S:this.assertLegalChar(this.textEscape(""+S||""))},A.prototype.cdata=function(S){return this.options.noValidation?S:(S=""+S||"",S=S.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(S))},A.prototype.comment=function(S){if(this.options.noValidation)return S;if(S=""+S||"",S.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+S);return this.assertLegalChar(S)},A.prototype.raw=function(S){return this.options.noValidation?S:""+S||""},A.prototype.attValue=function(S){return this.options.noValidation?S:this.assertLegalChar(this.attEscape(S=""+S||""))},A.prototype.insTarget=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},A.prototype.insValue=function(S){if(this.options.noValidation)return S;if(S=""+S||"",S.match(/\?>/))throw new Error("Invalid processing instruction value: "+S);return this.assertLegalChar(S)},A.prototype.xmlVersion=function(S){if(this.options.noValidation)return S;if(S=""+S||"",!S.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+S);return S},A.prototype.xmlEncoding=function(S){if(this.options.noValidation)return S;if(S=""+S||"",!S.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+S);return this.assertLegalChar(S)},A.prototype.xmlStandalone=function(S){return this.options.noValidation?S:S?"yes":"no"},A.prototype.dtdPubID=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},A.prototype.dtdSysID=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},A.prototype.dtdElementValue=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},A.prototype.dtdAttType=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},A.prototype.dtdAttDefault=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},A.prototype.dtdEntityValue=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},A.prototype.dtdNData=function(S){return this.options.noValidation?S:this.assertLegalChar(""+S||"")},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(S){var g,f;if(this.options.noValidation)return S;if(g="",this.options.version==="1.0"){if(g=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=S.match(g))throw new Error("Invalid character in string: "+S+" at index "+f.index)}else if(this.options.version==="1.1"&&(g=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=S.match(g)))throw new Error("Invalid character in string: "+S+" at index "+f.index);return S},A.prototype.assertLegalName=function(S){var g;if(this.options.noValidation)return S;if(this.assertLegalChar(S),g=/^([: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])*$/,!S.match(g))throw new Error("Invalid character in name");return S},A.prototype.textEscape=function(S){var g;return this.options.noValidation?S:(g=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,S.replace(g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},A.prototype.attEscape=function(S){var g;return this.options.noValidation?S:(g=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,S.replace(g,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},A}()}).call(void 0)},{}],280:[function(H,F,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,S,g,f=function(r,i){for(var n in i)c.call(i,n)&&(r[n]=i[n]);function e(){this.constructor=r}return e.prototype=i.prototype,r.prototype=new e,r.__super__=i.prototype,r},c={}.hasOwnProperty;A=H("./NodeType"),S=H("./XMLCharacterData"),F.exports=g=function(o){f(r,o);function r(i,n){if(r.__super__.constructor.call(this,i),n==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=A.Text,this.value=this.stringify.text(n)}return Object.defineProperty(r.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(r.prototype,"wholeText",{get:function(){var n,e,l;for(l="",e=this.previousSibling;e;)l=e.data+l,e=e.previousSibling;for(l+=this.data,n=this.nextSibling;n;)l=l+n.data,n=n.nextSibling;return l}}),r.prototype.clone=function(){return(0,x.default)(this)},r.prototype.toString=function(i){return this.options.writer.text(this,this.options.writer.filterOptions(i))},r.prototype.splitText=function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.replaceWholeText=function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())},r}(S)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(H,F,d){"use strict";(function(){var O,x,C,A,S,g,f,c,o,r,i,n,e,l,t,a,s,u={}.hasOwnProperty;s=H("./Utility").assign,O=H("./NodeType"),o=H("./XMLDeclaration"),r=H("./XMLDocType"),C=H("./XMLCData"),A=H("./XMLComment"),n=H("./XMLElement"),l=H("./XMLRaw"),t=H("./XMLText"),e=H("./XMLProcessingInstruction"),i=H("./XMLDummy"),S=H("./XMLDTDAttList"),g=H("./XMLDTDElement"),f=H("./XMLDTDEntity"),c=H("./XMLDTDNotation"),x=H("./WriterState"),F.exports=a=function(){function h(p){var m,v,y;p||(p={}),this.options=p,v=p.writer||{};for(m in v){if(!u.call(v,m))continue;y=v[m],this["_"+m]=this[m],this[m]=y}}return h.prototype.filterOptions=function(p){var m,v,y,E,T,b,w,_;return p||(p={}),p=s({},this.options,p),m={writer:this},m.pretty=p.pretty||!1,m.allowEmpty=p.allowEmpty||!1,m.indent=(v=p.indent)!=null?v:" ",m.newline=(y=p.newline)!=null?y:`
|
|
|
`,m.offset=(E=p.offset)!=null?E:0,m.dontPrettyTextNodes=(T=(b=p.dontPrettyTextNodes)!=null?b:p.dontprettytextnodes)!=null?T:0,m.spaceBeforeSlash=(w=(_=p.spaceBeforeSlash)!=null?_:p.spacebeforeslash)!=null?w:"",m.spaceBeforeSlash===!0&&(m.spaceBeforeSlash=" "),m.suppressPrettyCount=0,m.user={},m.state=x.None,m},h.prototype.indent=function(p,m,v){var y;return!m.pretty||m.suppressPrettyCount?"":m.pretty&&(y=(v||0)+m.offset+1,y>0)?new Array(y).join(m.indent):""},h.prototype.endline=function(p,m,v){return!m.pretty||m.suppressPrettyCount?"":m.newline},h.prototype.attribute=function(p,m,v){var y;return this.openAttribute(p,m,v),y=" "+p.name+'="'+p.value+'"',this.closeAttribute(p,m,v),y},h.prototype.cdata=function(p,m,v){var y;return this.openNode(p,m,v),m.state=x.OpenTag,y=this.indent(p,m,v)+"<![CDATA[",m.state=x.InsideTag,y+=p.value,m.state=x.CloseTag,y+="]]>"+this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),y},h.prototype.comment=function(p,m,v){var y;return this.openNode(p,m,v),m.state=x.OpenTag,y=this.indent(p,m,v)+"<!-- ",m.state=x.InsideTag,y+=p.value,m.state=x.CloseTag,y+=" -->"+this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),y},h.prototype.declaration=function(p,m,v){var y;return this.openNode(p,m,v),m.state=x.OpenTag,y=this.indent(p,m,v)+"<?xml",m.state=x.InsideTag,y+=' version="'+p.version+'"',p.encoding!=null&&(y+=' encoding="'+p.encoding+'"'),p.standalone!=null&&(y+=' standalone="'+p.standalone+'"'),m.state=x.CloseTag,y+=m.spaceBeforeSlash+"?>",y+=this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),y},h.prototype.docType=function(p,m,v){var y,E,T,b,w;if(v||(v=0),this.openNode(p,m,v),m.state=x.OpenTag,b=this.indent(p,m,v),b+="<!DOCTYPE "+p.root().name,p.pubID&&p.sysID?b+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(b+=' SYSTEM "'+p.sysID+'"'),p.children.length>0){for(b+=" [",b+=this.endline(p,m,v),m.state=x.InsideTag,w=p.children,E=0,T=w.length;E<T;E++)y=w[E],b+=this.writeChildNode(y,m,v+1);m.state=x.CloseTag,b+="]"}return m.state=x.CloseTag,b+=m.spaceBeforeSlash+">",b+=this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),b},h.prototype.element=function(p,m,v){var y,E,T,b,w,_,I,L,N,D,R,k,M,U;v||(v=0),D=!1,R="",this.openNode(p,m,v),m.state=x.OpenTag,R+=this.indent(p,m,v)+"<"+p.name,k=p.attribs;for(N in k){if(!u.call(k,N))continue;y=k[N],R+=this.attribute(y,m,v)}if(T=p.children.length,b=T===0?null:p.children[0],T===0||p.children.every(function(B){return(B.type===O.Text||B.type===O.Raw)&&B.value===""}))m.allowEmpty?(R+=">",m.state=x.CloseTag,R+="</"+p.name+">"+this.endline(p,m,v)):(m.state=x.CloseTag,R+=m.spaceBeforeSlash+"/>"+this.endline(p,m,v));else if(m.pretty&&T===1&&(b.type===O.Text||b.type===O.Raw)&&b.value!=null)R+=">",m.state=x.InsideTag,m.suppressPrettyCount++,D=!0,R+=this.writeChildNode(b,m,v+1),m.suppressPrettyCount--,D=!1,m.state=x.CloseTag,R+="</"+p.name+">"+this.endline(p,m,v);else{if(m.dontPrettyTextNodes){for(M=p.children,w=0,I=M.length;w<I;w++)if(E=M[w],(E.type===O.Text||E.type===O.Raw)&&E.value!=null){m.suppressPrettyCount++,D=!0;break}}for(R+=">"+this.endline(p,m,v),m.state=x.InsideTag,U=p.children,_=0,L=U.length;_<L;_++)E=U[_],R+=this.writeChildNode(E,m,v+1);m.state=x.CloseTag,R+=this.indent(p,m,v)+"</"+p.name+">",D&&m.suppressPrettyCount--,R+=this.endline(p,m,v),m.state=x.None}return this.closeNode(p,m,v),R},h.prototype.writeChildNode=function(p,m,v){switch(p.type){case O.CData:return this.cdata(p,m,v);case O.Comment:return this.comment(p,m,v);case O.Element:return this.element(p,m,v);case O.Raw:return this.raw(p,m,v);case O.Text:return this.text(p,m,v);case O.ProcessingInstruction:return this.processingInstruction(p,m,v);case O.Dummy:return"";case O.Declaration:return this.declaration(p,m,v);case O.DocType:return this.docType(p,m,v);case O.AttributeDeclaration:return this.dtdAttList(p,m,v);case O.ElementDeclaration:return this.dtdElement(p,m,v);case O.EntityDeclaration:return this.dtdEntity(p,m,v);case O.NotationDeclaration:return this.dtdNotation(p,m,v);default:throw new Error("Unknown XML node type: "+p.constructor.name)}},h.prototype.processingInstruction=function(p,m,v){var y;return this.openNode(p,m,v),m.state=x.OpenTag,y=this.indent(p,m,v)+"<?",m.state=x.InsideTag,y+=p.target,p.value&&(y+=" "+p.value),m.state=x.CloseTag,y+=m.spaceBeforeSlash+"?>",y+=this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),y},h.prototype.raw=function(p,m,v){var y;return this.openNode(p,m,v),m.state=x.OpenTag,y=this.indent(p,m,v),m.state=x.InsideTag,y+=p.value,m.state=x.CloseTag,y+=this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),y},h.prototype.text=function(p,m,v){var y;return this.openNode(p,m,v),m.state=x.OpenTag,y=this.indent(p,m,v),m.state=x.InsideTag,y+=p.value,m.state=x.CloseTag,y+=this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),y},h.prototype.dtdAttList=function(p,m,v){var y;return this.openNode(p,m,v),m.state=x.OpenTag,y=this.indent(p,m,v)+"<!ATTLIST",m.state=x.InsideTag,y+=" "+p.elementName+" "+p.attributeName+" "+p.attributeType,p.defaultValueType!=="#DEFAULT"&&(y+=" "+p.defaultValueType),p.defaultValue&&(y+=' "'+p.defaultValue+'"'),m.state=x.CloseTag,y+=m.spaceBeforeSlash+">"+this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),y},h.prototype.dtdElement=function(p,m,v){var y;return this.openNode(p,m,v),m.state=x.OpenTag,y=this.indent(p,m,v)+"<!ELEMENT",m.state=x.InsideTag,y+=" "+p.name+" "+p.value,m.state=x.CloseTag,y+=m.spaceBeforeSlash+">"+this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),y},h.prototype.dtdEntity=function(p,m,v){var y;return this.openNode(p,m,v),m.state=x.OpenTag,y=this.indent(p,m,v)+"<!ENTITY",m.state=x.InsideTag,p.pe&&(y+=" %"),y+=" "+p.name,p.value?y+=' "'+p.value+'"':(p.pubID&&p.sysID?y+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(y+=' SYSTEM "'+p.sysID+'"'),p.nData&&(y+=" NDATA "+p.nData)),m.state=x.CloseTag,y+=m.spaceBeforeSlash+">"+this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),y},h.prototype.dtdNotation=function(p,m,v){var y;return this.openNode(p,m,v),m.state=x.OpenTag,y=this.indent(p,m,v)+"<!NOTATION",m.state=x.InsideTag,y+=" "+p.name,p.pubID&&p.sysID?y+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.pubID?y+=' PUBLIC "'+p.pubID+'"':p.sysID&&(y+=' SYSTEM "'+p.sysID+'"'),m.state=x.CloseTag,y+=m.spaceBeforeSlash+">"+this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),y},h.prototype.openNode=function(p,m,v){},h.prototype.closeNode=function(p,m,v){},h.prototype.openAttribute=function(p,m,v){},h.prototype.closeAttribute=function(p,m,v){},h}()}).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(H,F,d){"use strict";(function(){var O,x,C,A,S,g,f,c,o,r;r=H("./Utility"),c=r.assign,o=r.isFunction,C=H("./XMLDOMImplementation"),A=H("./XMLDocument"),S=H("./XMLDocumentCB"),f=H("./XMLStringWriter"),g=H("./XMLStreamWriter"),O=H("./NodeType"),x=H("./WriterState"),F.exports.create=function(i,n,e,l){var t,a;if(i==null)throw new Error("Root element needs a name.");return l=c({},n,e,l),t=new A(l),a=t.element(i),l.headless||(t.declaration(l),(l.pubID!=null||l.sysID!=null)&&t.dtd(l)),a},F.exports.begin=function(i,n,e){var l;return o(i)&&(l=[i,n],n=l[0],e=l[1],i={}),n?new S(i,n,e):new A(i)},F.exports.stringWriter=function(i){return new f(i)},F.exports.streamWriter=function(i,n){return new g(i,n)},F.exports.implementation=new C,F.exports.nodeType=O,F.exports.writerState=x}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(H,F,d){F.exports=x;var O=Object.prototype.hasOwnProperty;function x(){for(var C={},A=0;A<arguments.length;A++){var S=arguments[A];for(var g in S)O.call(S,g)&&(C[g]=S[g])}return C}},{}],284:[function(H,F,d){"use strict";var O=H("buffer").Buffer,x=H("./sha"),C=H("./md5"),A={sha1:x,md5:C},S=64,g=O.alloc(S);g.fill(0);function f(r,i,n){O.isBuffer(i)||(i=O.from(i)),O.isBuffer(n)||(n=O.from(n)),i.length>S?i=r(i):i.length<S&&(i=O.concat([i,g],S));for(var e=O.alloc(S),l=O.alloc(S),t=0;t<S;t++)e[t]=i[t]^54,l[t]=i[t]^92;var a=r(O.concat([e,n]));return r(O.concat([l,a]))}function c(r,i){r=r||"sha1";var n=A[r],e=[],l=0;return n||o("algorithm:",r,"is not yet supported"),{update:function(a){return O.isBuffer(a)||(a=O.from(a)),e.push(a),l+=a.length,this},digest:function(a){var s=O.concat(e),u=i?f(n,i,s):n(s);return e=null,a?u.toString(a):u}}}function o(){var r=[].slice.call(arguments).join(" ");throw new Error([r,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}d.createHash=function(r){return c(r)},d.createHmac=function(r,i){return c(r,i)},d.createCredentials=function(){o("sorry,createCredentials is not implemented yet")},d.createCipher=function(){o("sorry,createCipher is not implemented yet")},d.createCipheriv=function(){o("sorry,createCipheriv is not implemented yet")},d.createDecipher=function(){o("sorry,createDecipher is not implemented yet")},d.createDecipheriv=function(){o("sorry,createDecipheriv is not implemented yet")},d.createSign=function(){o("sorry,createSign is not implemented yet")},d.createVerify=function(){o("sorry,createVerify is not implemented yet")},d.createDiffieHellman=function(){o("sorry,createDiffieHellman is not implemented yet")},d.pbkdf2=function(){o("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(H,F,d){"use strict";var O=H("buffer").Buffer,x=4,C=O.alloc(x);C.fill(0);var A=8;function S(c,o){if(c.length%x!==0){var r=c.length+(x-c.length%x);c=O.concat([c,C],r)}for(var i=[],n=o?c.readInt32BE:c.readInt32LE,e=0;e<c.length;e+=x)i.push(n.call(c,e));return i}function g(c,o,r){for(var i=O.alloc(o),n=r?i.writeInt32BE:i.writeInt32LE,e=0;e<c.length;e++)n.call(i,c[e],e*4,!0);return i}function f(c,o,r,i){O.isBuffer(c)||(c=O.from(c));var n=o(S(c,i),c.length*A);return g(n,r,i)}F.exports={hash:f}},{buffer:73}],286:[function(H,F,d){"use strict";var O=H("./helpers");function x(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function C(i,n){i[n>>5]|=128<<n%32,i[(n+64>>>9<<4)+14]=n;for(var e=1732584193,l=-271733879,t=-1732584194,a=271733878,s=0;s<i.length;s+=16){var u=e,h=l,p=t,m=a;e=S(e,l,t,a,i[s+0],7,-680876936),a=S(a,e,l,t,i[s+1],12,-389564586),t=S(t,a,e,l,i[s+2],17,606105819),l=S(l,t,a,e,i[s+3],22,-1044525330),e=S(e,l,t,a,i[s+4],7,-176418897),a=S(a,e,l,t,i[s+5],12,1200080426),t=S(t,a,e,l,i[s+6],17,-1473231341),l=S(l,t,a,e,i[s+7],22,-45705983),e=S(e,l,t,a,i[s+8],7,1770035416),a=S(a,e,l,t,i[s+9],12,-1958414417),t=S(t,a,e,l,i[s+10],17,-42063),l=S(l,t,a,e,i[s+11],22,-1990404162),e=S(e,l,t,a,i[s+12],7,1804603682),a=S(a,e,l,t,i[s+13],12,-40341101),t=S(t,a,e,l,i[s+14],17,-1502002290),l=S(l,t,a,e,i[s+15],22,1236535329),e=g(e,l,t,a,i[s+1],5,-165796510),a=g(a,e,l,t,i[s+6],9,-1069501632),t=g(t,a,e,l,i[s+11],14,643717713),l=g(l,t,a,e,i[s+0],20,-373897302),e=g(e,l,t,a,i[s+5],5,-701558691),a=g(a,e,l,t,i[s+10],9,38016083),t=g(t,a,e,l,i[s+15],14,-660478335),l=g(l,t,a,e,i[s+4],20,-405537848),e=g(e,l,t,a,i[s+9],5,568446438),a=g(a,e,l,t,i[s+14],9,-1019803690),t=g(t,a,e,l,i[s+3],14,-187363961),l=g(l,t,a,e,i[s+8],20,1163531501),e=g(e,l,t,a,i[s+13],5,-1444681467),a=g(a,e,l,t,i[s+2],9,-51403784),t=g(t,a,e,l,i[s+7],14,1735328473),l=g(l,t,a,e,i[s+12],20,-1926607734),e=f(e,l,t,a,i[s+5],4,-378558),a=f(a,e,l,t,i[s+8],11,-2022574463),t=f(t,a,e,l,i[s+11],16,1839030562),l=f(l,t,a,e,i[s+14],23,-35309556),e=f(e,l,t,a,i[s+1],4,-1530992060),a=f(a,e,l,t,i[s+4],11,1272893353),t=f(t,a,e,l,i[s+7],16,-155497632),l=f(l,t,a,e,i[s+10],23,-1094730640),e=f(e,l,t,a,i[s+13],4,681279174),a=f(a,e,l,t,i[s+0],11,-358537222),t=f(t,a,e,l,i[s+3],16,-722521979),l=f(l,t,a,e,i[s+6],23,76029189),e=f(e,l,t,a,i[s+9],4,-640364487),a=f(a,e,l,t,i[s+12],11,-421815835),t=f(t,a,e,l,i[s+15],16,530742520),l=f(l,t,a,e,i[s+2],23,-995338651),e=c(e,l,t,a,i[s+0],6,-198630844),a=c(a,e,l,t,i[s+7],10,1126891415),t=c(t,a,e,l,i[s+14],15,-1416354905),l=c(l,t,a,e,i[s+5],21,-57434055),e=c(e,l,t,a,i[s+12],6,1700485571),a=c(a,e,l,t,i[s+3],10,-1894986606),t=c(t,a,e,l,i[s+10],15,-1051523),l=c(l,t,a,e,i[s+1],21,-2054922799),e=c(e,l,t,a,i[s+8],6,1873313359),a=c(a,e,l,t,i[s+15],10,-30611744),t=c(t,a,e,l,i[s+6],15,-1560198380),l=c(l,t,a,e,i[s+13],21,1309151649),e=c(e,l,t,a,i[s+4],6,-145523070),a=c(a,e,l,t,i[s+11],10,-1120210379),t=c(t,a,e,l,i[s+2],15,718787259),l=c(l,t,a,e,i[s+9],21,-343485551),e=o(e,u),l=o(l,h),t=o(t,p),a=o(a,m)}return Array(e,l,t,a)}function A(i,n,e,l,t,a){return o(r(o(o(n,i),o(l,a)),t),e)}function S(i,n,e,l,t,a,s){return A(n&e|~n&l,i,n,t,a,s)}function g(i,n,e,l,t,a,s){return A(n&l|e&~l,i,n,t,a,s)}function f(i,n,e,l,t,a,s){return A(n^e^l,i,n,t,a,s)}function c(i,n,e,l,t,a,s){return A(e^(n|~l),i,n,t,a,s)}function o(i,n){var e=(i&65535)+(n&65535),l=(i>>16)+(n>>16)+(e>>16);return l<<16|e&65535}function r(i,n){return i<<n|i>>>32-n}F.exports=function(n){return O.hash(n,C,16)}},{"./helpers":285}],287:[function(H,F,d){"use strict";var O=H("./helpers");function x(f,c){f[c>>5]|=128<<24-c%32,f[(c+64>>9<<4)+15]=c;for(var o=Array(80),r=1732584193,i=-271733879,n=-1732584194,e=271733878,l=-1009589776,t=0;t<f.length;t+=16){for(var a=r,s=i,u=n,h=e,p=l,m=0;m<80;m++){m<16?o[m]=f[t+m]:o[m]=g(o[m-3]^o[m-8]^o[m-14]^o[m-16],1);var v=S(S(g(r,5),C(m,i,n,e)),S(S(l,o[m]),A(m)));l=e,e=n,n=g(i,30),i=r,r=v}r=S(r,a),i=S(i,s),n=S(n,u),e=S(e,h),l=S(l,p)}return Array(r,i,n,e,l)}function C(f,c,o,r){return f<20?c&o|~c&r:f<40?c^o^r:f<60?c&o|c&r|o&r:c^o^r}function A(f){return f<20?1518500249:f<40?1859775393:f<60?-1894007588:-899497514}function S(f,c){var o=(f&65535)+(c&65535),r=(f>>16)+(c>>16)+(o>>16);return r<<16|o&65535}function g(f,c){return f<<c|f>>>32-c}F.exports=function(c){return O.hash(c,x,20,!0)}},{"./helpers":285}],288:[function(H,F,d){"use strict";F.exports=function(){return function(){}}},{}],289:[function(H,F,d){(function(O){"use strict";var x=H("babel-runtime/helpers/typeof"),C=A(x);function A(r){return r&&r.__esModule?r:{default:r}}var S=H("stream"),g=S.Stream,f=H("../lib/common/utils/isArray"),c=f.isArray;F.exports.string=function(i){return typeof i=="string"},F.exports.array=c,F.exports.buffer=O.isBuffer;function o(r){return r instanceof g}F.exports.writableStream=function(i){return o(i)&&typeof i._write=="function"&&(0,C.default)(i._writableState)==="object"}}).call(this,{isBuffer:H("../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(H,F,d){"use strict";d.encodeURIComponent=function(O){try{return encodeURIComponent(O)}catch(x){return O}},d.escape=H("escape-html"),d.timestamp=function(x){if(x){var C=x;return typeof C=="string"&&(C=Number(C)),String(x).length===10&&(C*=1e3),new Date(C)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(H,F,d){(function(O,x){"use strict";var C=H("babel-runtime/core-js/json/stringify"),A=f(C),S=H("babel-runtime/helpers/typeof"),g=f(S);function f(m){return m&&m.__esModule?m:{default:m}}var c=H("util"),o=H("url"),r=H("http"),i=H("https"),n=H("debug")("urllib"),e=H("humanize-ms"),l,t=0,a=Math.pow(2,31)-10,s=/^https?:\/\//i;function u(m,v){return m===void 0?v:m}function h(m,v){return function(y,E,T){if(y)return v(y);m({data:E,status:T.statusCode,headers:T.headers,res:T})}}d.TIMEOUTS=[e("300s"),e("300s")];var p=["json","text"];d.request=function(v,y,E){return arguments.length===2&&typeof y=="function"&&(E=y,y=null),typeof E=="function"?d.requestWithCallback(v,y,E):(l||(l=H("any-promise")),new l(function(T,b){d.requestWithCallback(v,y,h(T,b))}))},d.requestWithCallback=function(v,y,E){if(!v||typeof v!="string"&&(typeof v=="undefined"?"undefined":(0,g.default)(v))!=="object"){var T=c.format("expect request url to be a string or a http request options, but got %j",v);throw new Error(T)}arguments.length===2&&typeof y=="function"&&(E=y,y=null),y=y||{},t>=a&&(t=0);var b=++t;y.requestUrls=y.requestUrls||[];var w={requestId:b,url:v,args:y,ctx:y.ctx};y.emitter&&y.emitter.emit("request",w),y.timeout=y.timeout||d.TIMEOUTS,y.maxRedirects=y.maxRedirects||10,y.streaming=y.streaming||y.customResponse;var _=Date.now(),I;typeof v=="string"?(s.test(v)||(v="http://"+v),I=o.parse(v)):I=v;var L=(y.type||y.method||I.method||"GET").toUpperCase(),N=I.port||80,D=r,R=u(y.agent,d.agent),k=y.fixJSONCtlChars;I.protocol==="https:"&&(D=i,R=u(y.httpsAgent,d.httpsAgent),I.port||(N=443));var M={host:I.hostname||I.host||"localhost",path:I.path||"/",method:L,port:N,agent:R,headers:y.headers||{},lookup:y.lookup};Array.isArray(y.timeout)?M.requestTimeout=y.timeout[y.timeout.length-1]:typeof y.timeout!="undefined"&&(M.requestTimeout=y.timeout);for(var U=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],B=0;B<U.length;B++){var j=U[B];y.hasOwnProperty(j)&&(M[j]=y[j])}M.rejectUnauthorized===!1&&!M.hasOwnProperty("secureOptions")&&(M.secureOptions=H("constants").SSL_OP_NO_TLSv1_2);var W=y.auth||I.auth;W&&(M.auth=W);var V=y.content||y.data,z=L==="GET"||L==="HEAD"||y.dataAsQueryString;if(!y.content&&(V&&!(typeof V=="string"||x.isBuffer(V))))if(z)V=y.nestedQuerystring?qs.stringify(V):querystring.stringify(V);else{var J=M.headers["Content-Type"]||M.headers["content-type"];J||(y.contentType==="json"?J="application/json":J="application/x-www-form-urlencoded",M.headers["Content-Type"]=J),parseContentType(J).type==="application/json"?V=(0,A.default)(V):V=y.nestedQuerystring?qs.stringify(V):querystring.stringify(V)}z&&V&&(M.path+=(I.query?"&":"?")+V,V=null);var Z=0;if(V){var de=V.length;x.isBuffer(V)||(de=x.byteLength(V)),Z=M.headers["Content-Length"]=de}y.dataType==="json"&&(M.headers.Accept="application/json"),typeof y.beforeRequest=="function"&&y.beforeRequest(M);var ie=null,ve=null,xe=null,_e=!1,Ue=!1,fe=0,ke=-1,se=!1,te="",Ve="",ae=null;y.timing&&(ae={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Q(){ie&&(clearTimeout(ie),ie=null)}function G(){ve&&(clearTimeout(ve),ve=null)}function Y(Le,Ot,$e){if(G(),!E){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),b,O.pid,M.method,v),Le&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),b,O.pid,Le.name,Le.message,Le.stack);return}var xt=E;E=null;var Ht={};if($e&&(ke=$e.statusCode,Ht=$e.headers),ke===401&&Ht["www-authenticate"]&&(!y.headers||!y.headers.Authorization)&&y.digestAuth){var tr=Ht["www-authenticate"];if(tr.indexOf("Digest ")>=0)return n("Request#%d %s: got digest auth header WWW-Authenticate: %s",b,v,tr),y.headers=y.headers||{},y.headers.Authorization=digestAuthHeader(M.method,M.path,tr,y.digestAuth),n("Request#%d %s: auth with digest header: %s",b,v,y.headers.Authorization),$e.headers["set-cookie"]&&(y.headers.Cookie=$e.headers["set-cookie"].join(";")),d.requestWithCallback(v,y,xt)}var Mt=Date.now()-_;ae&&(ae.contentDownload=Mt),n("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Mt,fe,ke,M.method,M.host,M.path,Ue,ae);var Tt={status:ke,statusCode:ke,headers:Ht,size:fe,aborted:se,rt:Mt,keepAliveSocket:Ue,data:Ot,requestUrls:y.requestUrls,timing:ae,remoteAddress:te,remotePort:Ve};if(Le){var Xe="";R&&typeof R.getCurrentStatus=="function"&&(Xe=", agent status: "+(0,A.default)(R.getCurrentStatus())),Le.message+=", "+M.method+" "+v+" "+ke+" (connected: "+_e+", keepalive socket: "+Ue+Xe+`)
|
|
|
headers: `+(0,A.default)(Ht),Le.data=Ot,Le.path=M.path,Le.status=ke,Le.headers=Ht,Le.res=Tt}xt(Le,Ot,y.streaming?$e:Tt),y.emitter&&(w.url=v,w.socket=gt&>.connection,w.options=M,w.size=Z,y.emitter.emit("response",{requestId:b,error:Le,ctx:y.ctx,req:w,res:Tt}))}function me(Le){var Ot=null;if(y.followRedirect&&statuses.redirect[Le.statusCode]){y._followRedirectCount=(y._followRedirectCount||0)+1;var $e=Le.headers.location;if(!$e)Ot=new Error("Got statusCode "+Le.statusCode+" but cannot resolve next location from headers"),Ot.name="FollowRedirectError";else if(y._followRedirectCount>y.maxRedirects)Ot=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+v),Ot.name="MaxRedirectError";else{var xt=y.formatRedirectUrl?y.formatRedirectUrl(v,$e):o.resolve(v,$e);n("Request#%d %s: `redirected` from %s to %s",b,M.path,v,xt),G(),y.headers&&y.headers.Host&&s.test($e)&&(y.headers.Host=null);var Ht=E;return E=null,d.requestWithCallback(xt,y,Ht),{redirect:!0,error:null}}}return{redirect:!1,error:Ot}}!M.headers["User-Agent"]&&!M.headers["user-agent"]&&(M.headers["User-Agent"]=navigator.userAgent),y.gzip&&(!M.headers["Accept-Encoding"]&&!M.headers["accept-encoding"]&&(M.headers["Accept-Encoding"]="gzip"));function ue(Le,Ot,$e){var xt=Le.headers["content-encoding"];return $e(null,Ot,xt)}var Ce=y.writeStream;n("Request#%d %s %s with headers %j, options.path: %s",b,L,v,M.headers,M.path),y.requestUrls.push(v);function Ie(Le){if(ae&&(ae.waiting=Date.now()-_),n("Request#%d %s `req response` event emit: status %d, headers: %j",b,v,Le.statusCode,Le.headers),y.streaming){var Ot=me(Le);if(Ot.redirect){Le.resume();return}return Ot.error?(Le.resume(),Y(Ot.error,null,Le)):Y(null,null,Le)}if(Le.on("close",function(){n("Request#%d %s: `res close` event emit, total size %d",b,v,fe)}),Le.on("error",function(){n("Request#%d %s: `res error` event emit, total size %d",b,v,fe)}),Le.on("aborted",function(){se=!0,n("Request#%d %s: `res aborted` event emit, total size %d",b,v,fe)}),Ce){var Ot=me(Le);if(Ot.redirect){Le.resume();return}return Ot.error?(Le.resume(),Ce.end(),Y(Ot.error,null,Le)):(y.consumeWriteStream===!1?Le.on("end",Y.bind(null,null,null,Le)):isNode010||isNode012?first([[Ce,"close"],[Le,"aborted"]],function(Ht,tr,Mt){n("Request#%d %s: writeStream or res %s event emitted",b,v,Mt),Y(xe||null,null,Le)}):Ce.on("close",function(){n("Request#%d %s: writeStream close event emitted",b,v),Y(xe||null,null,Le)}),Le.pipe(Ce))}var $e=[];Le.on("data",function(xt){n("Request#%d %s: `res data` event emit, size %d",b,v,xt.length),fe+=xt.length,$e.push(xt)}),Le.on("end",function(){var xt=x.concat($e,fe);if(n("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",b,v,fe,Le._dumped),xe)return Y(xe,xt,Le);var Ht=me(Le);if(Ht.error)return Y(Ht.error,xt,Le);if(Ht.redirect)return;ue(Le,xt,function(tr,Mt,Tt){if(tr)return Y(tr,xt,Le);if(!Tt&&p.indexOf(y.dataType)>=0){try{Mt=decodeBodyByCharset(Mt,Le)}catch(oe){return n("decodeBodyByCharset error: %s",oe),Y(null,Mt,Le)}if(y.dataType==="json")if(fe===0)Mt=null;else{var Xe=parseJSON(Mt,k);Xe.error?tr=Xe.error:Mt=Xe.data}}se&&n("Request#%d %s: Remote socket was terminated before `response.end()` was called",b,v),Y(tr,Mt,Le)})})}var ce,Ae;Array.isArray(y.timeout)?(ce=e(y.timeout[0]),Ae=e(y.timeout[1])):ce=Ae=e(y.timeout),n("ConnectTimeout: %d, ResponseTimeout: %d",ce,Ae);function Te(){n("Connect timer ticking, timeout: %d",ce),ie=setTimeout(function(){ie=null,ke===-1&&(ke=-2);var Le="Connect timeout for "+ce+"ms",Ot="ConnectionTimeoutError";gt.socket||(Ot="SocketAssignTimeoutError",Le+=", working sockets is full"),xe=new Error(Le),xe.name=Ot,xe.requestId=b,n("ConnectTimeout: Request#%d %s %s: %s, connected: %s",b,v,xe.name,Le,_e),qe()},ce)}function Ge(){n("Response timer ticking, timeout: %d",Ae),ve=setTimeout(function(){ve=null;var Le="Response timeout for "+Ae+"ms",Ot="ResponseTimeoutError";xe=new Error(Le),xe.name=Ot,xe.requestId=b,n("ResponseTimeout: Request#%d %s %s: %s, connected: %s",b,v,xe.name,Le,_e),qe()},Ae)}var gt;M.mode=y.mode?y.mode:"";try{gt=D.request(M,Ie)}catch(Le){return Y(Le)}typeof window=="undefined"?Te():gt.on("requestTimeout",function(){ke===-1&&(ke=-2);var Le="Connect timeout for "+ce+"ms",Ot="ConnectionTimeoutError";xe=new Error(Le),xe.name=Ot,xe.requestId=b,qe()});function qe(){n("Request#%d %s abort, connected: %s",b,v,_e),gt.socket||(xe.noSocket=!0,Y(xe)),gt.abort()}return ae&>.on("finish",function(){ae.requestSent=Date.now()-_}),gt.once("socket",function(Le){ae&&(ae.queuing=Date.now()-_),isNode010&&Le.socket&&(Le=Le.socket);var Ot=Le.readyState;if(Ot==="opening"){Le.once("lookup",function($e,xt,Ht){n("Request#%d %s lookup: %s, %s, %s",b,v,$e,xt,Ht),ae&&(ae.dnslookup=Date.now()-_),xt&&(te=xt)}),Le.once("connect",function(){ae&&(ae.connected=Date.now()-_),Q(),Ge(),n("Request#%d %s new socket connected",b,v),_e=!0,te||(te=Le.remoteAddress),Ve=Le.remotePort});return}n("Request#%d %s reuse socket connected, readyState: %s",b,v,Ot),_e=!0,Ue=!0,te||(te=Le.remoteAddress),Ve=Le.remotePort,Q(),Ge()}),gt.on("error",function(Le){(Le.name==="Error"||Le.name==="TypeError")&&(Le.name=_e?"ResponseError":"RequestError"),Le.message+=' (req "error")',n("Request#%d %s `req error` event emit, %s: %s",b,v,Le.name,Le.message),Y(xe||Le)}),Ce&&Ce.once("error",function(Le){Le.message+=' (writeStream "error")',xe=Le,n("Request#%d %s `writeStream error` event emit, %s: %s",b,v,Le.name,Le.message),qe()}),y.stream?(y.stream.pipe(gt),y.stream.once("error",function(Le){Le.message+=' (stream "error")',xe=Le,n("Request#%d %s `readStream error` event emit, %s: %s",b,v,Le.name,Le.message),qe()})):gt.end(V),gt.requestId=b,gt}}).call(this,H("_process"),H("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(H,F,d){var O=d("hX1E"),x=O.normalizeRadian,C=Math.PI*2;function A(S,g,f,c,o,r,i,n,e){if(i===0)return!1;var l=i;n-=S,e-=g;var t=Math.sqrt(n*n+e*e);if(t-l>f||t+l<f)return!1;if(Math.abs(c-o)%C<1e-4)return!0;if(r){var a=c;c=x(o),o=x(a)}else c=x(c),o=x(o);c>o&&(o+=C);var s=Math.atan2(e,n);return s<0&&(s+=C),s>=c&&s<=o||s+C>=c&&s+C<=o}F.containStroke=A},n4Lv:function(H,F,d){var O=d("7hqr"),x=O.isDimensionStacked,C=d("bYtY"),A=C.map;function S(c,o,r){var i=c.getBaseAxis(),n=c.getOtherAxis(i),e=g(n,r),l=i.dim,t=n.dim,a=o.mapDimension(t),s=o.mapDimension(l),u=t==="x"||t==="radius"?1:0,h=A(c.dimensions,function(v){return o.mapDimension(v)}),p,m=o.getCalculationInfo("stackResultDimension");return(p|=x(o,h[0]))&&(h[0]=m),(p|=x(o,h[1]))&&(h[1]=m),{dataDimsForPoint:h,valueStart:e,valueAxisDim:t,baseAxisDim:l,stacked:!!p,valueDim:a,baseDim:s,baseDataOffset:u,stackedOverDimension:o.getCalculationInfo("stackedOverDimension")}}function g(c,o){var r=0,i=c.scale.getExtent();return o==="start"?r=i[0]:o==="end"?r=i[1]:i[0]>0?r=i[0]:i[1]<0&&(r=i[1]),r}function f(c,o,r,i){var n=NaN;c.stacked&&(n=r.get(r.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=c.valueStart);var e=c.baseDataOffset,l=[];return l[e]=r.get(c.baseDim,i),l[1-e]=n,o.dataToPoint(l)}F.prepareDataCoordInfo=S,F.getStackedOnPoint=f},n6Mw:function(H,F,d){var O=d("SrGk"),x=d("bYtY"),C=d("Fofx");function A(g,f){O.call(this,g,f,"clipPath","__clippath_in_use__")}x.inherits(A,O),A.prototype.update=function(g){var f=this.getSvgElement(g);f&&this.updateDom(f,g.__clipPaths,!1);var c=this.getTextSvgElement(g);c&&this.updateDom(c,g.__clipPaths,!0),this.markUsed(g)},A.prototype.updateDom=function(g,f,c){if(f&&f.length>0){var o=this.getDefs(!0),r=f[0],i,n,e=c?"_textDom":"_dom";r[e]?(n=r[e].getAttribute("id"),i=r[e],o.contains(i)||o.appendChild(i)):(n="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,i=this.createElement("clipPath"),i.setAttribute("id",n),o.appendChild(i),r[e]=i);var l=this.getSvgProxy(r);if(r.transform&&r.parent.invTransform&&!c){var t=Array.prototype.slice.call(r.transform);C.mul(r.transform,r.parent.invTransform,r.transform),l.brush(r),r.transform=t}else l.brush(r);var a=this.getSvgElement(r);i.innerHTML="",i.appendChild(a.cloneNode()),g.setAttribute("clip-path","url(#"+n+")"),f.length>1&&this.updateDom(i,f.slice(1),c)}else g&&g.setAttribute("clip-path","none")},A.prototype.markUsed=function(g){var f=this;g.__clipPaths&&x.each(g.__clipPaths,function(c){c._dom&&O.prototype.markUsed.call(f,c._dom),c._textDom&&O.prototype.markUsed.call(f,c._textDom)})};var S=A;H.exports=S},nCxF:function(H,F,d){var O=d("QBsz"),x=O.min,C=O.max,A=O.scale,S=O.distance,g=O.add,f=O.clone,c=O.sub;function o(r,i,n,e){var l=[],t=[],a=[],s=[],u,h,p,m;if(e){p=[Infinity,Infinity],m=[-Infinity,-Infinity];for(var v=0,y=r.length;v<y;v++)x(p,p,r[v]),C(m,m,r[v]);x(p,p,e[0]),C(m,m,e[1])}for(var v=0,y=r.length;v<y;v++){var E=r[v];if(n)u=r[v?v-1:y-1],h=r[(v+1)%y];else if(v===0||v===y-1){l.push(f(r[v]));continue}else u=r[v-1],h=r[v+1];c(t,h,u),A(t,t,i);var T=S(E,u),b=S(E,h),w=T+b;w!==0&&(T/=w,b/=w),A(a,t,-T),A(s,t,b);var _=g([],E,a),I=g([],E,s);e&&(C(_,_,p),x(_,_,m),C(I,I,p),x(I,I,m)),l.push(_),l.push(I)}return n&&l.push(l.shift()),l}H.exports=o},nKiI:function(H,F,d){var O=d("bYtY"),x=d("mFDi"),C=d("OELB"),A=C.parsePercent,S=C.MAX_SAFE_INTEGER,g=d("+TT/"),f=d("VaxA"),c=Math.max,o=Math.min,r=O.retrieve,i=O.each,n=["itemStyle","borderWidth"],e=["itemStyle","gapWidth"],l=["upperLabel","show"],t=["upperLabel","height"],a={seriesType:"treemap",reset:function(_,I,L,N){var D=L.getWidth(),R=L.getHeight(),k=_.option,M=g.getLayoutRect(_.getBoxLayoutParams(),{width:L.getWidth(),height:L.getHeight()}),U=k.size||[],B=A(r(M.width,U[0]),D),j=A(r(M.height,U[1]),R),W=N&&N.type,V=["treemapZoomToNode","treemapRootToNode"],z=f.retrieveTargetInfo(N,V,_),J=W==="treemapRender"||W==="treemapMove"?N.rootRect:null,Z=_.getViewRoot(),de=f.getPathToRoot(Z);if(W!=="treemapMove"){var ie=W==="treemapZoomToNode"?E(_,z,Z,B,j):J?[J.width,J.height]:[B,j],ve=k.sort;ve&&ve!=="asc"&&ve!=="desc"&&(ve="desc");var xe={squareRatio:k.squareRatio,sort:ve,leafDepth:k.leafDepth};Z.hostTree.clearLayouts();var _e={x:0,y:0,width:ie[0],height:ie[1],area:ie[0]*ie[1]};Z.setLayout(_e),s(Z,xe,!1,0);var _e=Z.getLayout();i(de,function(fe,ke){var se=(de[ke+1]||Z).getValue();fe.setLayout(O.extend({dataExtent:[se,se],borderWidth:0,upperHeight:0},_e))})}var Ue=_.getData().tree.root;Ue.setLayout(T(M,J,z),!0),_.setLayoutInfo(M),b(Ue,new x(-M.x,-M.y,D,R),de,Z,0)}};function s(_,I,L,N){var D,R;if(_.isRemoved())return;var k=_.getLayout();D=k.width,R=k.height;var M=_.getModel(),U=M.get(n),B=M.get(e)/2,j=w(M),W=Math.max(U,j),V=U-B,z=W-B,M=_.getModel();_.setLayout({borderWidth:U,upperHeight:W,upperLabelHeight:j},!0),D=c(D-2*V,0),R=c(R-V-z,0);var J=D*R,Z=u(_,M,J,I,L,N);if(!Z.length)return;var de={x:V,y:z,width:D,height:R},ie=o(D,R),ve=Infinity,xe=[];xe.area=0;for(var _e=0,Ue=Z.length;_e<Ue;){var fe=Z[_e];xe.push(fe),xe.area+=fe.getLayout().area;var ke=v(xe,ie,I.squareRatio);ke<=ve?(_e++,ve=ke):(xe.area-=xe.pop().getLayout().area,y(xe,ie,de,B,!1),ie=o(de.width,de.height),xe.length=xe.area=0,ve=Infinity)}if(xe.length&&y(xe,ie,de,B,!0),!L){var se=M.get("childrenVisibleMin");se!=null&&J<se&&(L=!0)}for(var _e=0,Ue=Z.length;_e<Ue;_e++)s(Z[_e],I,L,N+1)}function u(_,I,L,N,D,R){var k=_.children||[],M=N.sort;M!=="asc"&&M!=="desc"&&(M=null);var U=N.leafDepth!=null&&N.leafDepth<=R;if(D&&!U)return _.viewChildren=[];k=O.filter(k,function(z){return!z.isRemoved()}),p(k,M);var B=m(I,k,M);if(B.sum===0)return _.viewChildren=[];if(B.sum=h(I,L,B.sum,M,k),B.sum===0)return _.viewChildren=[];for(var j=0,W=k.length;j<W;j++){var V=k[j].getValue()/B.sum*L;k[j].setLayout({area:V})}return U&&(k.length&&_.setLayout({isLeafRoot:!0},!0),k.length=0),_.viewChildren=k,_.setLayout({dataExtent:B.dataExtent},!0),k}function h(_,I,L,N,D){if(!N)return L;for(var R=_.get("visibleMin"),k=D.length,M=k,U=k-1;U>=0;U--){var B=D[N==="asc"?k-U-1:U].getValue();B/L*I<R&&(M=U,L-=B)}return N==="asc"?D.splice(0,k-M):D.splice(M,k-M),L}function p(_,I){return I&&_.sort(function(L,N){var D=I==="asc"?L.getValue()-N.getValue():N.getValue()-L.getValue();return D===0?I==="asc"?L.dataIndex-N.dataIndex:N.dataIndex-L.dataIndex:D}),_}function m(_,I,L){for(var N=0,D=0,R=I.length;D<R;D++)N+=I[D].getValue();var k=_.get("visualDimension"),M;if(!I||!I.length)M=[NaN,NaN];else if(k==="value"&&L)M=[I[I.length-1].getValue(),I[0].getValue()],L==="asc"&&M.reverse();else{var M=[Infinity,-Infinity];i(I,function(B){var j=B.getValue(k);j<M[0]&&(M[0]=j),j>M[1]&&(M[1]=j)})}return{sum:N,dataExtent:M}}function v(_,I,L){for(var N=0,D=Infinity,R=0,k,M=_.length;R<M;R++)k=_[R].getLayout().area,k&&(k<D&&(D=k),k>N&&(N=k));var U=_.area*_.area,B=I*I*L;return U?c(B*N/U,U/(B*D)):Infinity}function y(_,I,L,N,D){var R=I===L.width?0:1,k=1-R,M=["x","y"],U=["width","height"],B=L[M[R]],j=I?_.area/I:0;(D||j>L[U[k]])&&(j=L[U[k]]);for(var W=0,V=_.length;W<V;W++){var z=_[W],J={},Z=j?z.getLayout().area/j:0,de=J[U[k]]=c(j-2*N,0),ie=L[M[R]]+L[U[R]]-B,ve=W===V-1||ie<Z?ie:Z,xe=J[U[R]]=c(ve-2*N,0);J[M[k]]=L[M[k]]+o(N,de/2),J[M[R]]=B+o(N,xe/2),B+=ve,z.setLayout(J,!0)}L[M[k]]+=j,L[U[k]]-=j}function E(_,I,L,N,D){var R=(I||{}).node,k=[N,D];if(!R||R===L)return k;for(var M,U=N*D,B=U*_.option.zoomToNodeRatio;M=R.parentNode;){for(var j=0,W=M.children,V=0,z=W.length;V<z;V++)j+=W[V].getValue();var J=R.getValue();if(J===0)return k;B*=j/J;var Z=M.getModel(),de=Z.get(n),ie=Math.max(de,w(Z,de));B+=4*de*de+(3*de+ie)*Math.pow(B,.5),B>S&&(B=S),R=M}B<U&&(B=U);var ve=Math.pow(B/U,.5);return[N*ve,D*ve]}function T(_,I,L){if(I)return{x:I.x,y:I.y};var N={x:0,y:0};if(!L)return N;var D=L.node,R=D.getLayout();if(!R)return N;for(var k=[R.width/2,R.height/2],M=D;M;){var U=M.getLayout();k[0]+=U.x,k[1]+=U.y,M=M.parentNode}return{x:_.width/2-k[0],y:_.height/2-k[1]}}function b(_,I,L,N,D){var R=_.getLayout(),k=L[D],M=k&&k===_;if(k&&!M||D===L.length&&_!==N)return;_.setLayout({isInView:!0,invisible:!M&&!I.intersect(R),isAboveViewRoot:M},!0);var U=new x(I.x-R.x,I.y-R.y,I.width,I.height);i(_.viewChildren||[],function(B){b(B,U,L,N,D+1)})}function w(_){return _.get(l)?_.get(t):0}H.exports=a},nPnh:function(H,F){var d=Math.round;function O(A,S,g){if(!S)return;var f=S.x1,c=S.x2,o=S.y1,r=S.y2;A.x1=f,A.x2=c,A.y1=o,A.y2=r;var i=g&&g.lineWidth;if(!i)return;d(f*2)===d(c*2)&&(A.x1=A.x2=C(f,i,!0)),d(o*2)===d(r*2)&&(A.y1=A.y2=C(o,i,!0))}function x(A,S,g){if(!S)return;var f=S.x,c=S.y,o=S.width,r=S.height;A.x=f,A.y=c,A.width=o,A.height=r;var i=g&&g.lineWidth;if(!i)return;A.x=C(f,i,!0),A.y=C(c,i,!0),A.width=Math.max(C(f+o,i,!1)-A.x,o===0?0:1),A.height=Math.max(C(c+r,i,!1)-A.y,r===0?0:1)}function C(A,S,g){if(!S)return A;var f=d(A*2);return(f+d(S))%2===0?f/2:(f+(g?1:-1))/2}F.subPixelOptimizeLine=O,F.subPixelOptimizeRect=x,F.subPixelOptimize=C},nRaC:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("0fbx"),A=d.n(C),S=d("OaEy"),g=d("R9oj")},nVfU:function(H,F,d){var O=d("bYtY"),x=d("OELB"),C=x.parsePercent,A=d("7hqr"),S=A.isDimensionStacked,g=d("zM3Q"),f="__ec_stack_",c=.5,o=typeof Float32Array!="undefined"?Float32Array:Array;function r(y){return y.get("stack")||f+y.seriesIndex}function i(y){return y.dim+y.index}function n(y){var E=[],T=y.axis,b="axis0";if(T.type!=="category")return;for(var w=T.getBandWidth(),_=0;_<y.count||0;_++)E.push(O.defaults({bandWidth:w,axisKey:b,stackId:f+_},y));for(var I=a(E),L=[],_=0;_<y.count;_++){var N=I[b][f+_];N.offsetCenter=N.offset+N.width/2,L.push(N)}return L}function e(y,E){var T=[];return E.eachSeriesByType(y,function(b){p(b)&&!m(b)&&T.push(b)}),T}function l(y){var E={};O.each(y,function(N){var D=N.coordinateSystem,R=D.getBaseAxis();if(R.type!=="time"&&R.type!=="value")return;for(var k=N.getData(),M=R.dim+"_"+R.index,U=k.mapDimension(R.dim),B=0,j=k.count();B<j;++B){var W=k.get(U,B);E[M]?E[M].push(W):E[M]=[W]}});var T=[];for(var b in E)if(E.hasOwnProperty(b)){var w=E[b];if(w){w.sort(function(N,D){return N-D});for(var _=null,I=1;I<w.length;++I){var L=w[I]-w[I-1];L>0&&(_=_===null?L:Math.min(_,L))}T[b]=_}}return T}function t(y){var E=l(y),T=[];return O.each(y,function(b){var w=b.coordinateSystem,_=w.getBaseAxis(),I=_.getExtent(),L;if(_.type==="category")L=_.getBandWidth();else if(_.type==="value"||_.type==="time"){var N=_.dim+"_"+_.index,D=E[N],R=Math.abs(I[1]-I[0]),k=_.scale.getExtent(),M=Math.abs(k[1]-k[0]);L=D?R/M*D:R}else{var U=b.getData();L=Math.abs(I[1]-I[0])/U.count()}var B=C(b.get("barWidth"),L),j=C(b.get("barMaxWidth"),L),W=C(b.get("barMinWidth")||1,L),V=b.get("barGap"),z=b.get("barCategoryGap");T.push({bandWidth:L,barWidth:B,barMaxWidth:j,barMinWidth:W,barGap:V,barCategoryGap:z,axisKey:i(_),stackId:r(b)})}),a(T)}function a(y){var E={};O.each(y,function(b,w){var _=b.axisKey,I=b.bandWidth,L=E[_]||{bandWidth:I,remainedWidth:I,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},N=L.stacks;E[_]=L;var D=b.stackId;N[D]||L.autoWidthCount++,N[D]=N[D]||{width:0,maxWidth:0};var R=b.barWidth;R&&!N[D].width&&(N[D].width=R,R=Math.min(L.remainedWidth,R),L.remainedWidth-=R);var k=b.barMaxWidth;k&&(N[D].maxWidth=k);var M=b.barMinWidth;M&&(N[D].minWidth=M);var U=b.barGap;U!=null&&(L.gap=U);var B=b.barCategoryGap;B!=null&&(L.categoryGap=B)});var T={};return O.each(E,function(b,w){T[w]={};var _=b.stacks,I=b.bandWidth,L=C(b.categoryGap,I),N=C(b.gap,1),D=b.remainedWidth,R=b.autoWidthCount,k=(D-L)/(R+(R-1)*N);k=Math.max(k,0),O.each(_,function(j){var W=j.maxWidth,V=j.minWidth;if(j.width){var z=j.width;W&&(z=Math.min(z,W)),V&&(z=Math.max(z,V)),j.width=z,D-=z+N*z,R--}else{var z=k;W&&W<z&&(z=Math.min(W,D)),V&&V>z&&(z=V),z!==k&&(j.width=z,D-=z+N*z,R--)}}),k=(D-L)/(R+(R-1)*N),k=Math.max(k,0);var M=0,U;O.each(_,function(j,W){j.width||(j.width=k),U=j,M+=j.width*(1+N)}),U&&(M-=U.width*N);var B=-M/2;O.each(_,function(j,W){T[w][W]=T[w][W]||{bandWidth:I,offset:B,width:j.width},B+=j.width*(1+N)})}),T}function s(y,E,T){if(y&&E){var b=y[i(E)];return b!=null&&T!=null&&(b=b[r(T)]),b}}function u(y,E){var T=e(y,E),b=t(T),w={},_={};O.each(T,function(I){var L=I.getData(),N=I.coordinateSystem,D=N.getBaseAxis(),R=r(I),k=b[i(D)][R],M=k.offset,U=k.width,B=N.getOtherAxis(D),j=I.get("barMinHeight")||0;w[R]=w[R]||[],_[R]=_[R]||[],L.setLayout({bandWidth:k.bandWidth,offset:M,size:U});for(var W=L.mapDimension(B.dim),V=L.mapDimension(D.dim),z=S(L,W),J=B.isHorizontal(),Z=v(D,B,z),de=0,ie=L.count();de<ie;de++){var ve=L.get(W,de),xe=L.get(V,de),_e=ve>=0?"p":"n",Ue=Z;z&&(w[R][xe]||(w[R][xe]={p:Z,n:Z}),Ue=w[R][xe][_e]);var fe,ke,se,te;if(J){var Ve=N.dataToPoint([ve,xe]);fe=Ue,ke=Ve[1]+M,se=Ve[0]-Z,te=U,Math.abs(se)<j&&(se=(se<0?-1:1)*j),isNaN(se)||z&&(w[R][xe][_e]+=se)}else{var Ve=N.dataToPoint([xe,ve]);fe=Ve[0]+M,ke=Ue,se=U,te=Ve[1]-Z,Math.abs(te)<j&&(te=(te<=0?-1:1)*j),isNaN(te)||z&&(w[R][xe][_e]+=te)}L.setItemLayout(de,{x:fe,y:ke,width:se,height:te})}},this)}var h={seriesType:"bar",plan:g(),reset:function(y){if(!p(y)||!m(y))return;var E=y.getData(),T=y.coordinateSystem,b=T.grid.getRect(),w=T.getBaseAxis(),_=T.getOtherAxis(w),I=E.mapDimension(_.dim),L=E.mapDimension(w.dim),N=_.isHorizontal(),D=N?0:1,R=s(t([y]),w,y).width;return R>c||(R=c),{progress:k};function k(M,U){for(var B=M.count,j=new o(B*2),W=new o(B*2),V=new o(B),z,J=[],Z=[],de=0,ie=0;(z=M.next())!=null;)Z[D]=U.get(I,z),Z[1-D]=U.get(L,z),J=T.dataToPoint(Z,null,J),W[de]=N?b.x+b.width:J[0],j[de++]=J[0],W[de]=N?J[1]:b.y+b.height,j[de++]=J[1],V[ie++]=z;U.setLayout({largePoints:j,largeDataIndices:V,largeBackgroundPoints:W,barWidth:R,valueAxisStart:v(w,_,!1),backgroundStart:N?b.x:b.y,valueAxisHorizontal:N})}}};function p(y){return y.coordinateSystem&&y.coordinateSystem.type==="cartesian2d"}function m(y){return y.pipelineContext&&y.pipelineContext.large}function v(y,E,T){return E.toGlobalCoord(E.dataToCoord(E.type==="log"?1:0))}F.getLayoutOnAxis=n,F.prepareLayoutBarSeries=e,F.makeColumnLayout=t,F.retrieveColumnLayout=s,F.layout=u,F.largeLayout=h},ngQI:function(H,F,d){"use strict";d.d(F,"a",function(){return $l}),d.d(F,"b",function(){return Iu}),d.d(F,"c",function(){return Xr});var O=d("q1tI"),x=d.n(O),C=d("dI71"),A=d("wx14"),S=d("ANjH"),g=d("/MKj");function f(Oe,q){if(Oe.length!==q.length)return!1;for(var ye=0;ye<Oe.length;ye++)if(Oe[ye]!==q[ye])return!1;return!0}function c(Oe,q){var ye=Object(O.useState)(function(){return{inputs:q,result:Oe()}})[0],ze=Object(O.useRef)(!0),at=Object(O.useRef)(ye),Nt=ze.current||Boolean(q&&at.current.inputs&&f(q,at.current.inputs)),Kt=Nt?at.current:{inputs:q,result:Oe()};return Object(O.useEffect)(function(){ze.current=!1,at.current=Kt},[Kt]),Kt.result}function o(Oe,q){return c(function(){return Oe},q)}var r=c,i=o,n=d("9R94"),e=function(q){var ye=q.top,ze=q.right,at=q.bottom,Nt=q.left,Kt=ze-Nt,Qt=at-ye,Ir={top:ye,right:ze,bottom:at,left:Nt,width:Kt,height:Qt,x:Nt,y:ye,center:{x:(ze+Nt)/2,y:(at+ye)/2}};return Ir},l=function(q,ye){return{top:q.top-ye.top,left:q.left-ye.left,bottom:q.bottom+ye.bottom,right:q.right+ye.right}},t=function(q,ye){return{top:q.top+ye.top,left:q.left+ye.left,bottom:q.bottom-ye.bottom,right:q.right-ye.right}},a=function(q,ye){return{top:q.top+ye.y,left:q.left+ye.x,bottom:q.bottom+ye.y,right:q.right+ye.x}},s={top:0,right:0,bottom:0,left:0},u=function(q){var ye=q.borderBox,ze=q.margin,at=ze===void 0?s:ze,Nt=q.border,Kt=Nt===void 0?s:Nt,Qt=q.padding,Ir=Qt===void 0?s:Qt,Zr=e(l(ye,at)),Tr=e(t(ye,Kt)),xr=e(t(Tr,Ir));return{marginBox:Zr,borderBox:e(ye),paddingBox:Tr,contentBox:xr,margin:at,border:Kt,padding:Ir}},h=function(q){var ye=q.slice(0,-2),ze=q.slice(-2);if(ze!=="px")return 0;var at=Number(ye);return isNaN(at)&&Object(n.a)(!1),at},p=function(){return{x:window.pageXOffset,y:window.pageYOffset}},m=function(q,ye){var ze=q.borderBox,at=q.border,Nt=q.margin,Kt=q.padding,Qt=a(ze,ye);return u({borderBox:Qt,border:at,margin:Nt,padding:Kt})},v=function(q,ye){return ye===void 0&&(ye=p()),m(q,ye)},y=function(q,ye){var ze={top:h(ye.marginTop),right:h(ye.marginRight),bottom:h(ye.marginBottom),left:h(ye.marginLeft)},at={top:h(ye.paddingTop),right:h(ye.paddingRight),bottom:h(ye.paddingBottom),left:h(ye.paddingLeft)},Nt={top:h(ye.borderTopWidth),right:h(ye.borderRightWidth),bottom:h(ye.borderBottomWidth),left:h(ye.borderLeftWidth)};return u({borderBox:q,margin:ze,padding:at,border:Nt})},E=function(q){var ye=q.getBoundingClientRect(),ze=window.getComputedStyle(q);return y(ye,ze)},T=Number.isNaN||function(q){return typeof q=="number"&&q!==q};function b(Oe,q){return Oe===q?!0:!!(T(Oe)&&T(q))}function w(Oe,q){if(Oe.length!==q.length)return!1;for(var ye=0;ye<Oe.length;ye++)if(!b(Oe[ye],q[ye]))return!1;return!0}function _(Oe,q){q===void 0&&(q=w);var ye,ze=[],at,Nt=!1;function Kt(){for(var Qt=[],Ir=0;Ir<arguments.length;Ir++)Qt[Ir]=arguments[Ir];return Nt&&ye===this&&q(Qt,ze)||(at=Oe.apply(this,Qt),Nt=!0,ye=this,ze=Qt),at}return Kt}var I=_,L=function(q){var ye=[],ze=null,at=function(){for(var Kt=arguments.length,Qt=new Array(Kt),Ir=0;Ir<Kt;Ir++)Qt[Ir]=arguments[Ir];if(ye=Qt,ze)return;ze=requestAnimationFrame(function(){ze=null,q.apply(void 0,ye)})};return at.cancel=function(){if(!ze)return;cancelAnimationFrame(ze),ze=null},at},N=L,D=d("i8i4"),R=d.n(D),k=!0,M=/[ \t]{2,}/g,U=/^[ \t]*/gm,B=function(q){return q.replace(M," ").replace(U,"").trim()},j=function(q){return B(`
|
|
|
%creact-beautiful-dnd
|
|
|
|
|
|
%c`+B(q)+`
|
|
|
|
|
|
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
|
|
|
`)},W=function(q){return[j(q),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},V="__react-beautiful-dnd-disable-dev-warnings";function z(Oe,q){var ye;if(k)return;if(typeof window!="undefined"&&window[V])return;(ye=console)[Oe].apply(ye,W(q))}var J=z.bind(null,"warn"),Z=z.bind(null,"error");function de(){}function ie(Oe,q){return Object(A.a)({},Oe,{},q)}function ve(Oe,q,ye){var ze=q.map(function(at){var Nt=ie(ye,at.options);return Oe.addEventListener(at.eventName,at.fn,Nt),function(){Oe.removeEventListener(at.eventName,at.fn,Nt)}});return function(){ze.forEach(function(Nt){Nt()})}}var xe=!0,_e="Invariant failed";function Ue(Oe){this.message=Oe}Ue.prototype.toString=function(){return this.message};function fe(Oe,q){if(Oe)return;throw xe?new Ue(_e):new Ue(_e+": "+(q||""))}var ke=function(Oe){Object(C.a)(q,Oe);function q(){for(var ze,at=arguments.length,Nt=new Array(at),Kt=0;Kt<at;Kt++)Nt[Kt]=arguments[Kt];return ze=Oe.call.apply(Oe,[this].concat(Nt))||this,ze.callbacks=null,ze.unbind=de,ze.onWindowError=function(Qt){var Ir=ze.getCallbacks();Ir.isDragging()&&Ir.tryAbort();var Zr=Qt.error;Zr instanceof Ue&&Qt.preventDefault()},ze.getCallbacks=function(){if(!ze.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return ze.callbacks},ze.setCallbacks=function(Qt){ze.callbacks=Qt},ze}var ye=q.prototype;return ye.componentDidMount=function(){this.unbind=ve(window,[{eventName:"error",fn:this.onWindowError}])},ye.componentWillUnmount=function(){this.unbind()},ye.componentDidCatch=function(at){if(at instanceof Ue){this.setState({});return}throw at},ye.render=function(){return this.props.children(this.setCallbacks)},q}(x.a.Component),se=`
|
|
|
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
|
|
|
`,te=function(q){return q+1},Ve=function(q){return`
|
|
|
You have lifted an item in position `+te(q.source.index)+`
|
|
|
`},ae=function(q,ye){var ze=q.droppableId===ye.droppableId,at=te(q.index),Nt=te(ye.index);return ze?`
|
|
|
You have moved the item from position `+at+`
|
|
|
to position `+Nt+`
|
|
|
`:`
|
|
|
You have moved the item from position `+at+`
|
|
|
in list `+q.droppableId+`
|
|
|
to list `+ye.droppableId+`
|
|
|
in position `+Nt+`
|
|
|
`},Q=function(q,ye,ze){var at=ye.droppableId===ze.droppableId;return at?`
|
|
|
The item `+q+`
|
|
|
has been combined with `+ze.draggableId:`
|
|
|
The item `+q+`
|
|
|
in list `+ye.droppableId+`
|
|
|
has been combined with `+ze.draggableId+`
|
|
|
in list `+ze.droppableId+`
|
|
|
`},G=function(q){var ye=q.destination;if(ye)return ae(q.source,ye);var ze=q.combine;return ze?Q(q.draggableId,q.source,ze):"You are over an area that cannot be dropped on"},Y=function(q){return`
|
|
|
The item has returned to its starting position
|
|
|
of `+te(q.index)+`
|
|
|
`},me=function(q){if(q.reason==="CANCEL")return`
|
|
|
Movement cancelled.
|
|
|
`+Y(q.source)+`
|
|
|
`;var ye=q.destination,ze=q.combine;return ye?`
|
|
|
You have dropped the item.
|
|
|
`+ae(q.source,ye)+`
|
|
|
`:ze?`
|
|
|
You have dropped the item.
|
|
|
`+Q(q.draggableId,q.source,ze)+`
|
|
|
`:`
|
|
|
The item has been dropped while not over a drop area.
|
|
|
`+Y(q.source)+`
|
|
|
`},ue={dragHandleUsageInstructions:se,onDragStart:Ve,onDragUpdate:G,onDragEnd:me},Ce={x:0,y:0},Ie=function(q,ye){return{x:q.x+ye.x,y:q.y+ye.y}},ce=function(q,ye){return{x:q.x-ye.x,y:q.y-ye.y}},Ae=function(q,ye){return q.x===ye.x&&q.y===ye.y},Te=function(q){return{x:q.x!==0?-q.x:0,y:q.y!==0?-q.y:0}},Ge=function(q,ye,ze){var at;return ze===void 0&&(ze=0),at={},at[q]=ye,at[q==="x"?"y":"x"]=ze,at},gt=function(q,ye){return Math.sqrt(Math.pow(ye.x-q.x,2)+Math.pow(ye.y-q.y,2))},qe=function(q,ye){return Math.min.apply(Math,ye.map(function(ze){return gt(q,ze)}))},Le=function(q){return function(ye){return{x:q(ye.x),y:q(ye.y)}}},Ot=function(q,ye){var ze=e({top:Math.max(ye.top,q.top),right:Math.min(ye.right,q.right),bottom:Math.min(ye.bottom,q.bottom),left:Math.max(ye.left,q.left)});return ze.width<=0||ze.height<=0?null:ze},$e=function(q,ye){return{top:q.top+ye.y,left:q.left+ye.x,bottom:q.bottom+ye.y,right:q.right+ye.x}},xt=function(q){return[{x:q.left,y:q.top},{x:q.right,y:q.top},{x:q.left,y:q.bottom},{x:q.right,y:q.bottom}]},Ht={top:0,right:0,bottom:0,left:0},tr=function(q,ye){return ye?$e(q,ye.scroll.diff.displacement):q},Mt=function(q,ye,ze){if(ze&&ze.increasedBy){var at;return Object(A.a)({},q,(at={},at[ye.end]=q[ye.end]+ze.increasedBy[ye.line],at))}return q},Tt=function(q,ye){return ye&&ye.shouldClipSubject?Ot(ye.pageMarginBox,q):e(q)},Xe=function(q){var ye=q.page,ze=q.withPlaceholder,at=q.axis,Nt=q.frame,Kt=tr(ye.marginBox,Nt),Qt=Mt(Kt,at,ze),Ir=Tt(Qt,Nt);return{page:ye,withPlaceholder:ze,active:Ir}},oe=function(q,ye){q.frame||fe(!1);var ze=q.frame,at=ce(ye,ze.scroll.initial),Nt=Te(at),Kt=Object(A.a)({},ze,{scroll:{initial:ze.scroll.initial,current:ye,diff:{value:at,displacement:Nt},max:ze.scroll.max}}),Qt=Xe({page:q.subject.page,withPlaceholder:q.subject.withPlaceholder,axis:q.axis,frame:Kt}),Ir=Object(A.a)({},q,{frame:Kt,subject:Qt});return Ir};function X(Oe){return Number.isInteger?Number.isInteger(Oe):typeof Oe=="number"&&isFinite(Oe)&&Math.floor(Oe)===Oe}function Be(Oe){return Object.values?Object.values(Oe):Object.keys(Oe).map(function(q){return Oe[q]})}function Ee(Oe,q){if(Oe.findIndex)return Oe.findIndex(q);for(var ye=0;ye<Oe.length;ye++)if(q(Oe[ye]))return ye;return-1}function ee(Oe,q){if(Oe.find)return Oe.find(q);var ye=Ee(Oe,q);return ye!==-1?Oe[ye]:void 0}function lt(Oe){return Array.prototype.slice.call(Oe)}var Ct=I(function(Oe){return Oe.reduce(function(q,ye){return q[ye.descriptor.id]=ye,q},{})}),dt=I(function(Oe){return Oe.reduce(function(q,ye){return q[ye.descriptor.id]=ye,q},{})}),_t=I(function(Oe){return Be(Oe)}),ir=I(function(Oe){return Be(Oe)}),$r=I(function(Oe,q){var ye=ir(q).filter(function(ze){return Oe===ze.descriptor.droppableId}).sort(function(ze,at){return ze.descriptor.index-at.descriptor.index});return ye});function nr(Oe){return Oe.at&&Oe.at.type==="REORDER"?Oe.at.destination:null}function lr(Oe){return Oe.at&&Oe.at.type==="COMBINE"?Oe.at.combine:null}var zt=I(function(Oe,q){return q.filter(function(ye){return ye.descriptor.id!==Oe.descriptor.id})}),Ut=function(q){var ye=q.isMovingForward,ze=q.draggable,at=q.destination,Nt=q.insideDestination,Kt=q.previousImpact;if(!at.isCombineEnabled)return null;var Qt=nr(Kt);if(!Qt)return null;function Ir(Ai){var Qi={type:"COMBINE",combine:{draggableId:Ai,droppableId:at.descriptor.id}};return Object(A.a)({},Kt,{at:Qi})}var Zr=Kt.displaced.all,Tr=Zr.length?Zr[0]:null;if(ye)return Tr?Ir(Tr):null;var xr=zt(ze,Nt);if(!Tr){if(!xr.length)return null;var Wr=xr[xr.length-1];return Ir(Wr.descriptor.id)}var nn=Ee(xr,function(Ai){return Ai.descriptor.id===Tr});nn!==-1||fe(!1);var _n=nn-1;if(_n<0)return null;var gi=xr[_n];return Ir(gi.descriptor.id)},st=function(q,ye){return q.descriptor.droppableId===ye.descriptor.id},Hr={point:Ce,value:0},mn={invisible:{},visible:{},all:[]},In={displaced:mn,displacedBy:Hr,at:null},Yn=function(q,ye){return function(ze){return q<=ze&&ze<=ye}},Mi=function(q){var ye=Yn(q.top,q.bottom),ze=Yn(q.left,q.right);return function(at){var Nt=ye(at.top)&&ye(at.bottom)&&ze(at.left)&&ze(at.right);if(Nt)return!0;var Kt=ye(at.top)||ye(at.bottom),Qt=ze(at.left)||ze(at.right),Ir=Kt&&Qt;if(Ir)return!0;var Zr=at.top<q.top&&at.bottom>q.bottom,Tr=at.left<q.left&&at.right>q.right,xr=Zr&&Tr;if(xr)return!0;var Wr=Zr&&Qt||Tr&&Kt;return Wr}},wn=function(q){var ye=Yn(q.top,q.bottom),ze=Yn(q.left,q.right);return function(at){var Nt=ye(at.top)&&ye(at.bottom)&&ze(at.left)&&ze(at.right);return Nt}},Rn={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},kt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},vt=function(q){return function(ye){var ze=Yn(ye.top,ye.bottom),at=Yn(ye.left,ye.right);return function(Nt){return q===Rn?ze(Nt.top)&&ze(Nt.bottom):at(Nt.left)&&at(Nt.right)}}},Re=function(q,ye){var ze=ye.frame?ye.frame.scroll.diff.displacement:Ce;return $e(q,ze)},Ke=function(q,ye,ze){return ye.subject.active?ze(ye.subject.active)(q):!1},Pe=function(q,ye,ze){return ze(ye)(q)},nt=function(q){var ye=q.target,ze=q.destination,at=q.viewport,Nt=q.withDroppableDisplacement,Kt=q.isVisibleThroughFrameFn,Qt=Nt?Re(ye,ze):ye;return Ke(Qt,ze,Kt)&&Pe(Qt,at,Kt)},yt=function(q){return nt(Object(A.a)({},q,{isVisibleThroughFrameFn:Mi}))},Dt=function(q){return nt(Object(A.a)({},q,{isVisibleThroughFrameFn:wn}))},bt=function(q){return nt(Object(A.a)({},q,{isVisibleThroughFrameFn:vt(q.destination.axis)}))},It=function(q,ye,ze){if(typeof ze=="boolean")return ze;if(!ye)return!0;var at=ye.invisible,Nt=ye.visible;if(at[q])return!1;var Kt=Nt[q];return Kt?Kt.shouldAnimate:!0};function gr(Oe,q){var ye=Oe.page.marginBox,ze={top:q.point.y,right:0,bottom:0,left:q.point.x};return e(l(ye,ze))}function kr(Oe){var q=Oe.afterDragging,ye=Oe.destination,ze=Oe.displacedBy,at=Oe.viewport,Nt=Oe.forceShouldAnimate,Kt=Oe.last;return q.reduce(function(Ir,Zr){var Tr=gr(Zr,ze),xr=Zr.descriptor.id;Ir.all.push(xr);var Wr=yt({target:Tr,destination:ye,viewport:at,withDroppableDisplacement:!0});if(!Wr)return Ir.invisible[Zr.descriptor.id]=!0,Ir;var nn=It(xr,Kt,Nt),_n={draggableId:xr,shouldAnimate:nn};return Ir.visible[xr]=_n,Ir},{all:[],visible:{},invisible:{}})}function wt(Oe,q){if(!Oe.length)return 0;var ye=Oe[Oe.length-1].descriptor.index;return q.inHomeList?ye:ye+1}function rt(Oe){var q=Oe.insideDestination,ye=Oe.inHomeList,ze=Oe.displacedBy,at=Oe.destination,Nt=wt(q,{inHomeList:ye});return{displaced:mn,displacedBy:ze,at:{type:"REORDER",destination:{droppableId:at.descriptor.id,index:Nt}}}}function tt(Oe){var q=Oe.draggable,ye=Oe.insideDestination,ze=Oe.destination,at=Oe.viewport,Nt=Oe.displacedBy,Kt=Oe.last,Qt=Oe.index,Ir=Oe.forceShouldAnimate,Zr=st(q,ze);if(Qt==null)return rt({insideDestination:ye,inHomeList:Zr,displacedBy:Nt,destination:ze});var Tr=ee(ye,function(gi){return gi.descriptor.index===Qt});if(!Tr)return rt({insideDestination:ye,inHomeList:Zr,displacedBy:Nt,destination:ze});var xr=zt(q,ye),Wr=ye.indexOf(Tr),nn=xr.slice(Wr),_n=kr({afterDragging:nn,destination:ze,displacedBy:Nt,last:Kt,viewport:at.frame,forceShouldAnimate:Ir});return{displaced:_n,displacedBy:Nt,at:{type:"REORDER",destination:{droppableId:ze.descriptor.id,index:Qt}}}}function Rt(Oe,q){return Boolean(q.effected[Oe])}var Ft=function(q){var ye=q.isMovingForward,ze=q.destination,at=q.draggables,Nt=q.combine,Kt=q.afterCritical;if(!ze.isCombineEnabled)return null;var Qt=Nt.draggableId,Ir=at[Qt],Zr=Ir.descriptor.index,Tr=Rt(Qt,Kt);return Tr?ye?Zr:Zr-1:ye?Zr+1:Zr},At=function(q){var ye=q.isMovingForward,ze=q.isInHomeList,at=q.insideDestination,Nt=q.location;if(!at.length)return null;var Kt=Nt.index,Qt=ye?Kt+1:Kt-1,Ir=at[0].descriptor.index,Zr=at[at.length-1].descriptor.index,Tr=ze?Zr:Zr+1;return Qt<Ir||Qt>Tr?null:Qt},Wt=function(q){var ye=q.isMovingForward,ze=q.isInHomeList,at=q.draggable,Nt=q.draggables,Kt=q.destination,Qt=q.insideDestination,Ir=q.previousImpact,Zr=q.viewport,Tr=q.afterCritical,xr=Ir.at;if(xr||fe(!1),xr.type==="REORDER"){var Wr=At({isMovingForward:ye,isInHomeList:ze,location:xr.destination,insideDestination:Qt});return Wr==null?null:tt({draggable:at,insideDestination:Qt,destination:Kt,viewport:Zr,last:Ir.displaced,displacedBy:Ir.displacedBy,index:Wr})}var nn=Ft({isMovingForward:ye,destination:Kt,displaced:Ir.displaced,draggables:Nt,combine:xr.combine,afterCritical:Tr});return nn==null?null:tt({draggable:at,insideDestination:Qt,destination:Kt,viewport:Zr,last:Ir.displaced,displacedBy:Ir.displacedBy,index:nn})},ot=function(q){var ye=q.displaced,ze=q.afterCritical,at=q.combineWith,Nt=q.displacedBy,Kt=Boolean(ye.visible[at]||ye.invisible[at]);return Rt(at,ze)?Kt?Ce:Te(Nt.point):Kt?Nt.point:Ce},Bt=function(q){var ye=q.afterCritical,ze=q.impact,at=q.draggables,Nt=lr(ze);Nt||fe(!1);var Kt=Nt.draggableId,Qt=at[Kt].page.borderBox.center,Ir=ot({displaced:ze.displaced,afterCritical:ye,combineWith:Kt,displacedBy:ze.displacedBy});return Ie(Qt,Ir)},Ar=function(q,ye){return ye.margin[q.start]+ye.borderBox[q.size]/2},rr=function(q,ye){return ye.margin[q.end]+ye.borderBox[q.size]/2},pr=function(q,ye,ze){return ye[q.crossAxisStart]+ze.margin[q.crossAxisStart]+ze.borderBox[q.crossAxisSize]/2},tn=function(q){var ye=q.axis,ze=q.moveRelativeTo,at=q.isMoving;return Ge(ye.line,ze.marginBox[ye.end]+Ar(ye,at),pr(ye,ze.marginBox,at))},hn=function(q){var ye=q.axis,ze=q.moveRelativeTo,at=q.isMoving;return Ge(ye.line,ze.marginBox[ye.start]-rr(ye,at),pr(ye,ze.marginBox,at))},Mn=function(q){var ye=q.axis,ze=q.moveInto,at=q.isMoving;return Ge(ye.line,ze.contentBox[ye.start]+Ar(ye,at),pr(ye,ze.contentBox,at))},Xn=function(q){var ye=q.impact,ze=q.draggable,at=q.draggables,Nt=q.droppable,Kt=q.afterCritical,Qt=$r(Nt.descriptor.id,at),Ir=ze.page,Zr=Nt.axis;if(!Qt.length)return Mn({axis:Zr,moveInto:Nt.page,isMoving:Ir});var Tr=ye.displaced,xr=ye.displacedBy,Wr=Tr.all[0];if(Wr){var nn=at[Wr];if(Rt(Wr,Kt))return hn({axis:Zr,moveRelativeTo:nn.page,isMoving:Ir});var _n=m(nn.page,xr.point);return hn({axis:Zr,moveRelativeTo:_n,isMoving:Ir})}var gi=Qt[Qt.length-1];if(gi.descriptor.id===ze.descriptor.id)return Ir.borderBox.center;if(Rt(gi.descriptor.id,Kt)){var Ai=m(gi.page,Te(Kt.displacedBy.point));return tn({axis:Zr,moveRelativeTo:Ai,isMoving:Ir})}return tn({axis:Zr,moveRelativeTo:gi.page,isMoving:Ir})},si=function(q,ye){var ze=q.frame;return ze?Ie(ye,ze.scroll.diff.displacement):ye},vi=function(q){var ye=q.impact,ze=q.draggable,at=q.droppable,Nt=q.draggables,Kt=q.afterCritical,Qt=ze.page.borderBox.center,Ir=ye.at;return at&&Ir?Ir.type==="REORDER"?Xn({impact:ye,draggable:ze,draggables:Nt,droppable:at,afterCritical:Kt}):Bt({impact:ye,draggables:Nt,afterCritical:Kt}):Qt},xi=function(q){var ye=vi(q),ze=q.droppable,at=ze?si(ze,ye):ye;return at},_i=function(q,ye){var ze=ce(ye,q.scroll.initial),at=Te(ze),Nt=e({top:ye.y,bottom:ye.y+q.frame.height,left:ye.x,right:ye.x+q.frame.width}),Kt={frame:Nt,scroll:{initial:q.scroll.initial,max:q.scroll.max,current:ye,diff:{value:ze,displacement:at}}};return Kt};function Qe(Oe,q){return Oe.map(function(ye){return q[ye]})}function we(Oe,q){for(var ye=0;ye<q.length;ye++){var ze=q[ye].visible[Oe];if(ze)return ze}return null}var Ne=function(q){var ye=q.impact,ze=q.viewport,at=q.destination,Nt=q.draggables,Kt=q.maxScrollChange,Qt=_i(ze,Ie(ze.scroll.current,Kt)),Ir=at.frame?oe(at,Ie(at.frame.scroll.current,Kt)):at,Zr=ye.displaced,Tr=kr({afterDragging:Qe(Zr.all,Nt),destination:at,displacedBy:ye.displacedBy,viewport:Qt.frame,last:Zr,forceShouldAnimate:!1}),xr=kr({afterDragging:Qe(Zr.all,Nt),destination:Ir,displacedBy:ye.displacedBy,viewport:ze.frame,last:Zr,forceShouldAnimate:!1}),Wr={},nn={},_n=[Zr,Tr,xr];Zr.all.forEach(function(Ai){var Qi=we(Ai,_n);if(Qi){nn[Ai]=Qi;return}Wr[Ai]=!0});var gi=Object(A.a)({},ye,{displaced:{all:Zr.all,invisible:Wr,visible:nn}});return gi},Fe=function(q,ye){return Ie(q.scroll.diff.displacement,ye)},Ye=function(q){var ye=q.pageBorderBoxCenter,ze=q.draggable,at=q.viewport,Nt=Fe(at,ye),Kt=ce(Nt,ze.page.borderBox.center);return Ie(ze.client.borderBox.center,Kt)},We=function(q){var ye=q.draggable,ze=q.destination,at=q.newPageBorderBoxCenter,Nt=q.viewport,Kt=q.withDroppableDisplacement,Qt=q.onlyOnMainAxis,Ir=Qt===void 0?!1:Qt,Zr=ce(at,ye.page.borderBox.center),Tr=$e(ye.page.borderBox,Zr),xr={target:Tr,destination:ze,withDroppableDisplacement:Kt,viewport:Nt};return Ir?bt(xr):Dt(xr)},Ze=function(q){var ye=q.isMovingForward,ze=q.draggable,at=q.destination,Nt=q.draggables,Kt=q.previousImpact,Qt=q.viewport,Ir=q.previousPageBorderBoxCenter,Zr=q.previousClientSelection,Tr=q.afterCritical;if(!at.isEnabled)return null;var xr=$r(at.descriptor.id,Nt),Wr=st(ze,at),nn=Ut({isMovingForward:ye,draggable:ze,destination:at,insideDestination:xr,previousImpact:Kt})||Wt({isMovingForward:ye,isInHomeList:Wr,draggable:ze,draggables:Nt,destination:at,insideDestination:xr,previousImpact:Kt,viewport:Qt,afterCritical:Tr});if(!nn)return null;var _n=xi({impact:nn,draggable:ze,droppable:at,draggables:Nt,afterCritical:Tr}),gi=We({draggable:ze,destination:at,newPageBorderBoxCenter:_n,viewport:Qt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(gi){var Ai=Ye({pageBorderBoxCenter:_n,draggable:ze,viewport:Qt});return{clientSelection:Ai,impact:nn,scrollJumpRequest:null}}var Qi=ce(_n,Ir),Bi=Ne({impact:nn,viewport:Qt,destination:at,draggables:Nt,maxScrollChange:Qi});return{clientSelection:Zr,impact:Bi,scrollJumpRequest:Qi}},mt=function(q){var ye=q.subject.active;return ye||fe(!1),ye},it=function(q){var ye=q.isMovingForward,ze=q.pageBorderBoxCenter,at=q.source,Nt=q.droppables,Kt=q.viewport,Qt=at.subject.active;if(!Qt)return null;var Ir=at.axis,Zr=Yn(Qt[Ir.start],Qt[Ir.end]),Tr=_t(Nt).filter(function(Wr){return Wr!==at}).filter(function(Wr){return Wr.isEnabled}).filter(function(Wr){return Boolean(Wr.subject.active)}).filter(function(Wr){return Mi(Kt.frame)(mt(Wr))}).filter(function(Wr){var nn=mt(Wr);return ye?Qt[Ir.crossAxisEnd]<nn[Ir.crossAxisEnd]:nn[Ir.crossAxisStart]<Qt[Ir.crossAxisStart]}).filter(function(Wr){var nn=mt(Wr),_n=Yn(nn[Ir.start],nn[Ir.end]);return Zr(nn[Ir.start])||Zr(nn[Ir.end])||_n(Qt[Ir.start])||_n(Qt[Ir.end])}).sort(function(Wr,nn){var _n=mt(Wr)[Ir.crossAxisStart],gi=mt(nn)[Ir.crossAxisStart];return ye?_n-gi:gi-_n}).filter(function(Wr,nn,_n){return mt(Wr)[Ir.crossAxisStart]===mt(_n[0])[Ir.crossAxisStart]});if(!Tr.length)return null;if(Tr.length===1)return Tr[0];var xr=Tr.filter(function(Wr){var nn=Yn(mt(Wr)[Ir.start],mt(Wr)[Ir.end]);return nn(ze[Ir.line])});return xr.length===1?xr[0]:xr.length>1?xr.sort(function(Wr,nn){return mt(Wr)[Ir.start]-mt(nn)[Ir.start]})[0]:Tr.sort(function(Wr,nn){var _n=qe(ze,xt(mt(Wr))),gi=qe(ze,xt(mt(nn)));return _n!==gi?_n-gi:mt(Wr)[Ir.start]-mt(nn)[Ir.start]})[0]},Jt=function(q,ye){var ze=q.page.borderBox.center;return Rt(q.descriptor.id,ye)?ce(ze,ye.displacedBy.point):ze},Dr=function(q,ye){var ze=q.page.borderBox;return Rt(q.descriptor.id,ye)?$e(ze,Te(ye.displacedBy.point)):ze},Sr=function(q){var ye=q.pageBorderBoxCenter,ze=q.viewport,at=q.destination,Nt=q.insideDestination,Kt=q.afterCritical,Qt=Nt.filter(function(Ir){return Dt({target:Dr(Ir,Kt),destination:at,viewport:ze.frame,withDroppableDisplacement:!0})}).sort(function(Ir,Zr){var Tr=gt(ye,si(at,Jt(Ir,Kt))),xr=gt(ye,si(at,Jt(Zr,Kt)));return Tr<xr?-1:xr<Tr?1:Ir.descriptor.index-Zr.descriptor.index});return Qt[0]||null},Br=I(function(q,ye){var ze=ye[q.line];return{value:ze,point:Ge(q.line,ze)}}),$t=function(q,ye,ze){var at=q.axis;if(q.descriptor.mode==="virtual")return Ge(at.line,ye[at.line]);var Nt=q.subject.page.contentBox[at.size],Kt=$r(q.descriptor.id,ze),Qt=Kt.reduce(function(Tr,xr){return Tr+xr.client.marginBox[at.size]},0),Ir=Qt+ye[at.line],Zr=Ir-Nt;return Zr<=0?null:Ge(at.line,Zr)},gn=function(q,ye){return Object(A.a)({},q,{scroll:Object(A.a)({},q.scroll,{max:ye})})},or=function(q,ye,ze){var at=q.frame;st(ye,q)&&fe(!1),q.subject.withPlaceholder&&fe(!1);var Nt=Br(q.axis,ye.displaceBy).point,Kt=$t(q,Nt,ze),Qt={placeholderSize:Nt,increasedBy:Kt,oldFrameMaxScroll:q.frame?q.frame.scroll.max:null};if(!at){var Ir=Xe({page:q.subject.page,withPlaceholder:Qt,axis:q.axis,frame:q.frame});return Object(A.a)({},q,{subject:Ir})}var Zr=Kt?Ie(at.scroll.max,Kt):at.scroll.max,Tr=gn(at,Zr),xr=Xe({page:q.subject.page,withPlaceholder:Qt,axis:q.axis,frame:Tr});return Object(A.a)({},q,{subject:xr,frame:Tr})},ln=function(q){var ye=q.subject.withPlaceholder;ye||fe(!1);var ze=q.frame;if(!ze){var at=Xe({page:q.subject.page,axis:q.axis,frame:null,withPlaceholder:null});return Object(A.a)({},q,{subject:at})}var Nt=ye.oldFrameMaxScroll;Nt||fe(!1);var Kt=gn(ze,Nt),Qt=Xe({page:q.subject.page,axis:q.axis,frame:Kt,withPlaceholder:null});return Object(A.a)({},q,{subject:Qt,frame:Kt})},an=function(q){var ye=q.previousPageBorderBoxCenter,ze=q.moveRelativeTo,at=q.insideDestination,Nt=q.draggable,Kt=q.draggables,Qt=q.destination,Ir=q.viewport,Zr=q.afterCritical;if(!ze){if(at.length)return null;var Tr={displaced:mn,displacedBy:Hr,at:{type:"REORDER",destination:{droppableId:Qt.descriptor.id,index:0}}},xr=xi({impact:Tr,draggable:Nt,droppable:Qt,draggables:Kt,afterCritical:Zr}),Wr=st(Nt,Qt)?Qt:or(Qt,Nt,Kt),nn=We({draggable:Nt,destination:Wr,newPageBorderBoxCenter:xr,viewport:Ir.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return nn?Tr:null}var _n=Boolean(ye[Qt.axis.line]<=ze.page.borderBox.center[Qt.axis.line]),gi=function(){var Qi=ze.descriptor.index;return ze.descriptor.id===Nt.descriptor.id||_n?Qi:Qi+1}(),Ai=Br(Qt.axis,Nt.displaceBy);return tt({draggable:Nt,insideDestination:at,destination:Qt,viewport:Ir,displacedBy:Ai,last:mn,index:gi})},Rr=function(q){var ye=q.isMovingForward,ze=q.previousPageBorderBoxCenter,at=q.draggable,Nt=q.isOver,Kt=q.draggables,Qt=q.droppables,Ir=q.viewport,Zr=q.afterCritical,Tr=it({isMovingForward:ye,pageBorderBoxCenter:ze,source:Nt,droppables:Qt,viewport:Ir});if(!Tr)return null;var xr=$r(Tr.descriptor.id,Kt),Wr=Sr({pageBorderBoxCenter:ze,viewport:Ir,destination:Tr,insideDestination:xr,afterCritical:Zr}),nn=an({previousPageBorderBoxCenter:ze,destination:Tr,draggable:at,draggables:Kt,moveRelativeTo:Wr,insideDestination:xr,viewport:Ir,afterCritical:Zr});if(!nn)return null;var _n=xi({impact:nn,draggable:at,droppable:Tr,draggables:Kt,afterCritical:Zr}),gi=Ye({pageBorderBoxCenter:_n,draggable:at,viewport:Ir});return{clientSelection:gi,impact:nn,scrollJumpRequest:null}},On=function(q){var ye=q.at;return ye?ye.type==="REORDER"?ye.destination.droppableId:ye.combine.droppableId:null},ci=function(q,ye){var ze=On(q);return ze?ye[ze]:null},Ui=function(q){var ye=q.state,ze=q.type,at=ci(ye.impact,ye.dimensions.droppables),Nt=Boolean(at),Kt=ye.dimensions.droppables[ye.critical.droppable.id],Qt=at||Kt,Ir=Qt.axis.direction,Zr=Ir==="vertical"&&(ze==="MOVE_UP"||ze==="MOVE_DOWN")||Ir==="horizontal"&&(ze==="MOVE_LEFT"||ze==="MOVE_RIGHT");if(Zr&&!Nt)return null;var Tr=ze==="MOVE_DOWN"||ze==="MOVE_RIGHT",xr=ye.dimensions.draggables[ye.critical.draggable.id],Wr=ye.current.page.borderBoxCenter,nn=ye.dimensions,_n=nn.draggables,gi=nn.droppables;return Zr?Ze({isMovingForward:Tr,previousPageBorderBoxCenter:Wr,draggable:xr,destination:Qt,draggables:_n,viewport:ye.viewport,previousClientSelection:ye.current.client.selection,previousImpact:ye.impact,afterCritical:ye.afterCritical}):Rr({isMovingForward:Tr,previousPageBorderBoxCenter:Wr,draggable:xr,isOver:Qt,draggables:_n,droppables:gi,viewport:ye.viewport,afterCritical:ye.afterCritical})};function ki(Oe){return Oe.phase==="DRAGGING"||Oe.phase==="COLLECTING"}function Di(Oe){var q=Yn(Oe.top,Oe.bottom),ye=Yn(Oe.left,Oe.right);return function(at){return q(at.y)&&ye(at.x)}}function Ki(Oe,q){return Oe.left<q.right&&Oe.right>q.left&&Oe.top<q.bottom&&Oe.bottom>q.top}function Ur(Oe){var q=Oe.pageBorderBox,ye=Oe.draggable,ze=Oe.candidates,at=ye.page.borderBox.center,Nt=ze.map(function(Kt){var Qt=Kt.axis,Ir=Ge(Kt.axis.line,q.center[Qt.line],Kt.page.borderBox.center[Qt.crossAxisLine]);return{id:Kt.descriptor.id,distance:gt(at,Ir)}}).sort(function(Kt,Qt){return Qt.distance-Kt.distance});return Nt[0]?Nt[0].id:null}function Tn(Oe){var q=Oe.pageBorderBox,ye=Oe.draggable,ze=Oe.droppables,at=_t(ze).filter(function(Nt){if(!Nt.isEnabled)return!1;var Kt=Nt.subject.active;if(!Kt)return!1;if(!Ki(q,Kt))return!1;if(Di(Kt)(q.center))return!0;var Qt=Nt.axis,Ir=Kt.center[Qt.crossAxisLine],Zr=q[Qt.crossAxisStart],Tr=q[Qt.crossAxisEnd],xr=Yn(Kt[Qt.crossAxisStart],Kt[Qt.crossAxisEnd]),Wr=xr(Zr),nn=xr(Tr);return!Wr&&!nn?!0:Wr?Zr<Ir:Tr>Ir});return at.length?at.length===1?at[0].descriptor.id:Ur({pageBorderBox:q,draggable:ye,candidates:at}):null}var Mr=function(q,ye){return e($e(q,ye))},mr=function(q,ye){var ze=q.frame;return ze?Mr(ye,ze.scroll.diff.value):ye};function Cr(Oe){var q=Oe.displaced,ye=Oe.id;return Boolean(q.visible[ye]||q.invisible[ye])}function Lt(Oe){var q=Oe.draggable,ye=Oe.closest,ze=Oe.inHomeList;return ye?ze&&ye.descriptor.index>q.descriptor.index?ye.descriptor.index-1:ye.descriptor.index:null}var wr=function(q){var ye=q.pageBorderBoxWithDroppableScroll,ze=q.draggable,at=q.destination,Nt=q.insideDestination,Kt=q.last,Qt=q.viewport,Ir=q.afterCritical,Zr=at.axis,Tr=Br(at.axis,ze.displaceBy),xr=Tr.value,Wr=ye[Zr.start],nn=ye[Zr.end],_n=zt(ze,Nt),gi=ee(_n,function(Qi){var Bi=Qi.descriptor.id,Ma=Qi.page.borderBox.center[Zr.line],ea=Rt(Bi,Ir),oo=Cr({displaced:Kt,id:Bi});return ea?oo?nn<=Ma:Wr<Ma-xr:oo?nn<=Ma+xr:Wr<Ma}),Ai=Lt({draggable:ze,closest:gi,inHomeList:st(ze,at)});return tt({draggable:ze,insideDestination:Nt,destination:at,viewport:Qt,last:Kt,displacedBy:Tr,index:Ai})},Vr=4,jr=function(q){var ye=q.draggable,ze=q.pageBorderBoxWithDroppableScroll,at=q.previousImpact,Nt=q.destination,Kt=q.insideDestination,Qt=q.afterCritical;if(!Nt.isCombineEnabled)return null;var Ir=Nt.axis,Zr=Br(Nt.axis,ye.displaceBy),Tr=Zr.value,xr=ze[Ir.start],Wr=ze[Ir.end],nn=zt(ye,Kt),_n=ee(nn,function(Ai){var Qi=Ai.descriptor.id,Bi=Ai.page.borderBox,Ma=Bi[Ir.size],ea=Ma/Vr,oo=Rt(Qi,Qt),Ba=Cr({displaced:at.displaced,id:Qi});return oo?Ba?Wr>Bi[Ir.start]+ea&&Wr<Bi[Ir.end]-ea:xr>Bi[Ir.start]-Tr+ea&&xr<Bi[Ir.end]-Tr-ea:Ba?Wr>Bi[Ir.start]+Tr+ea&&Wr<Bi[Ir.end]+Tr-ea:xr>Bi[Ir.start]+ea&&xr<Bi[Ir.end]-ea});if(!_n)return null;var gi={displacedBy:Zr,displaced:at.displaced,at:{type:"COMBINE",combine:{draggableId:_n.descriptor.id,droppableId:Nt.descriptor.id}}};return gi},qr=function(q){var ye=q.pageOffset,ze=q.draggable,at=q.draggables,Nt=q.droppables,Kt=q.previousImpact,Qt=q.viewport,Ir=q.afterCritical,Zr=Mr(ze.page.borderBox,ye),Tr=Tn({pageBorderBox:Zr,draggable:ze,droppables:Nt});if(!Tr)return In;var xr=Nt[Tr],Wr=$r(xr.descriptor.id,at),nn=mr(xr,Zr);return jr({pageBorderBoxWithDroppableScroll:nn,draggable:ze,previousImpact:Kt,destination:xr,insideDestination:Wr,afterCritical:Ir})||wr({pageBorderBoxWithDroppableScroll:nn,draggable:ze,destination:xr,insideDestination:Wr,last:Kt.displaced,viewport:Qt,afterCritical:Ir})},oi=function(q,ye){var ze;return Object(A.a)({},q,(ze={},ze[ye.descriptor.id]=ye,ze))},Vn=function(q){var ye=q.previousImpact,ze=q.impact,at=q.droppables,Nt=On(ye),Kt=On(ze);if(!Nt)return at;if(Nt===Kt)return at;var Qt=at[Nt];if(!Qt.subject.withPlaceholder)return at;var Ir=ln(Qt);return oi(at,Ir)},Ti=function(q){var ye=q.draggable,ze=q.draggables,at=q.droppables,Nt=q.previousImpact,Kt=q.impact,Qt=Vn({previousImpact:Nt,impact:Kt,droppables:at}),Ir=On(Kt);if(!Ir)return Qt;var Zr=at[Ir];if(st(ye,Zr))return Qt;if(Zr.subject.withPlaceholder)return Qt;var Tr=or(Zr,ye,ze);return oi(Qt,Tr)},dn=function(q){var ye=q.state,ze=q.clientSelection,at=q.dimensions,Nt=q.viewport,Kt=q.impact,Qt=q.scrollJumpRequest,Ir=Nt||ye.viewport,Zr=at||ye.dimensions,Tr=ze||ye.current.client.selection,xr=ce(Tr,ye.initial.client.selection),Wr={offset:xr,selection:Tr,borderBoxCenter:Ie(ye.initial.client.borderBoxCenter,xr)},nn={selection:Ie(Wr.selection,Ir.scroll.current),borderBoxCenter:Ie(Wr.borderBoxCenter,Ir.scroll.current),offset:Ie(Wr.offset,Ir.scroll.diff.value)},_n={client:Wr,page:nn};if(ye.phase==="COLLECTING")return Object(A.a)({phase:"COLLECTING"},ye,{dimensions:Zr,viewport:Ir,current:_n});var gi=Zr.draggables[ye.critical.draggable.id],Ai=Kt||qr({pageOffset:nn.offset,draggable:gi,draggables:Zr.draggables,droppables:Zr.droppables,previousImpact:ye.impact,viewport:Ir,afterCritical:ye.afterCritical}),Qi=Ti({draggable:gi,impact:Ai,previousImpact:ye.impact,draggables:Zr.draggables,droppables:Zr.droppables}),Bi=Object(A.a)({},ye,{current:_n,dimensions:{draggables:Zr.draggables,droppables:Qi},impact:Ai,viewport:Ir,scrollJumpRequest:Qt||null,forceShouldAnimate:Qt?!1:null});return Bi};function _r(Oe,q){return Oe.map(function(ye){return q[ye]})}var xn=function(q){var ye=q.impact,ze=q.viewport,at=q.draggables,Nt=q.destination,Kt=q.forceShouldAnimate,Qt=ye.displaced,Ir=_r(Qt.all,at),Zr=kr({afterDragging:Ir,destination:Nt,displacedBy:ye.displacedBy,viewport:ze.frame,forceShouldAnimate:Kt,last:Qt});return Object(A.a)({},ye,{displaced:Zr})},Fn=function(q){var ye=q.impact,ze=q.draggable,at=q.droppable,Nt=q.draggables,Kt=q.viewport,Qt=q.afterCritical,Ir=xi({impact:ye,draggable:ze,draggables:Nt,droppable:at,afterCritical:Qt});return Ye({pageBorderBoxCenter:Ir,draggable:ze,viewport:Kt})},zn=function(q){var ye=q.state,ze=q.dimensions,at=q.viewport;ye.movementMode==="SNAP"||fe(!1);var Nt=ye.impact,Kt=at||ye.viewport,Qt=ze||ye.dimensions,Ir=Qt.draggables,Zr=Qt.droppables,Tr=Ir[ye.critical.draggable.id],xr=On(Nt);xr||fe(!1);var Wr=Zr[xr],nn=xn({impact:Nt,viewport:Kt,destination:Wr,draggables:Ir}),_n=Fn({impact:nn,draggable:Tr,droppable:Wr,draggables:Ir,viewport:Kt,afterCritical:ye.afterCritical});return dn({impact:nn,clientSelection:_n,state:ye,dimensions:Qt,viewport:Kt})},qn=function(q){return{index:q.index,droppableId:q.droppableId}},Oi=function(q){var ye=q.draggable,ze=q.home,at=q.draggables,Nt=q.viewport,Kt=Br(ze.axis,ye.displaceBy),Qt=$r(ze.descriptor.id,at),Ir=Qt.indexOf(ye);Ir!==-1||fe(!1);var Zr=Qt.slice(Ir+1),Tr=Zr.reduce(function(_n,gi){return _n[gi.descriptor.id]=!0,_n},{}),xr={inVirtualList:ze.descriptor.mode==="virtual",displacedBy:Kt,effected:Tr},Wr=kr({afterDragging:Zr,destination:ze,displacedBy:Kt,last:null,viewport:Nt.frame,forceShouldAnimate:!1}),nn={displaced:Wr,displacedBy:Kt,at:{type:"REORDER",destination:qn(ye.descriptor)}};return{impact:nn,afterCritical:xr}},Li=function(q,ye){return{draggables:q.draggables,droppables:oi(q.droppables,ye)}},Ri=function(q){},Ji=function(q){},ma=function(q){var ye=q.draggable,ze=q.offset,at=q.initialWindowScroll,Nt=m(ye.client,ze),Kt=v(Nt,at),Qt=Object(A.a)({},ye,{placeholder:Object(A.a)({},ye.placeholder,{client:Nt}),client:Nt,page:Kt});return Qt},la=function(q){var ye=q.frame;return ye||fe(!1),ye},qa=function(q){var ye=q.additions,ze=q.updatedDroppables,at=q.viewport,Nt=at.scroll.diff.value;return ye.map(function(Kt){var Qt=Kt.descriptor.droppableId,Ir=ze[Qt],Zr=la(Ir),Tr=Zr.scroll.diff.value,xr=Ie(Nt,Tr),Wr=ma({draggable:Kt,offset:xr,initialWindowScroll:at.scroll.initial});return Wr})},bi=function(q){var ye=q.state,ze=q.published;Ri();var at=ze.modified.map(function(ea){var oo=ye.dimensions.droppables[ea.droppableId],Ba=oe(oo,ea.scroll);return Ba}),Nt=Object(A.a)({},ye.dimensions.droppables,{},Ct(at)),Kt=dt(qa({additions:ze.additions,updatedDroppables:Nt,viewport:ye.viewport})),Qt=Object(A.a)({},ye.dimensions.draggables,{},Kt);ze.removals.forEach(function(ea){delete Qt[ea]});var Ir={droppables:Nt,draggables:Qt},Zr=On(ye.impact),Tr=Zr?Ir.droppables[Zr]:null,xr=Ir.draggables[ye.critical.draggable.id],Wr=Ir.droppables[ye.critical.droppable.id],nn=Oi({draggable:xr,home:Wr,draggables:Qt,viewport:ye.viewport}),_n=nn.impact,gi=nn.afterCritical,Ai=Tr&&Tr.isCombineEnabled?ye.impact:_n,Qi=qr({pageOffset:ye.current.page.offset,draggable:Ir.draggables[ye.critical.draggable.id],draggables:Ir.draggables,droppables:Ir.droppables,previousImpact:Ai,viewport:ye.viewport,afterCritical:gi});Ji();var Bi=Object(A.a)({phase:"DRAGGING"},ye,{phase:"DRAGGING",impact:Qi,onLiftImpact:_n,dimensions:Ir,afterCritical:gi,forceShouldAnimate:!1});if(ye.phase==="COLLECTING")return Bi;var Ma=Object(A.a)({phase:"DROP_PENDING"},Bi,{phase:"DROP_PENDING",reason:ye.reason,isWaiting:!1});return Ma},Sn=function(q){return q.movementMode==="SNAP"},zi=function(q,ye,ze){var at=Li(q.dimensions,ye);return!Sn(q)||ze?dn({state:q,dimensions:at}):zn({state:q,dimensions:at})};function oa(Oe){return Oe.isDragging&&Oe.movementMode==="SNAP"?Object(A.a)({phase:"DRAGGING"},Oe,{scrollJumpRequest:null}):Oe}var Yi={phase:"IDLE",completed:null,shouldFlush:!1},ca=function(q,ye){if(q===void 0&&(q=Yi),ye.type==="FLUSH")return Object(A.a)({},Yi,{shouldFlush:!0});if(ye.type==="INITIAL_PUBLISH"){q.phase==="IDLE"||fe(!1);var ze=ye.payload,at=ze.critical,Nt=ze.clientSelection,Kt=ze.viewport,Qt=ze.dimensions,Ir=ze.movementMode,Zr=Qt.draggables[at.draggable.id],Tr=Qt.droppables[at.droppable.id],xr={selection:Nt,borderBoxCenter:Zr.client.borderBox.center,offset:Ce},Wr={client:xr,page:{selection:Ie(xr.selection,Kt.scroll.initial),borderBoxCenter:Ie(xr.selection,Kt.scroll.initial),offset:Ie(xr.selection,Kt.scroll.diff.value)}},nn=_t(Qt.droppables).every(function(ns){return!ns.isFixedOnPage}),_n=Oi({draggable:Zr,home:Tr,draggables:Qt.draggables,viewport:Kt}),gi=_n.impact,Ai=_n.afterCritical,Qi={phase:"DRAGGING",isDragging:!0,critical:at,movementMode:Ir,dimensions:Qt,initial:Wr,current:Wr,isWindowScrollAllowed:nn,impact:gi,afterCritical:Ai,onLiftImpact:gi,viewport:Kt,scrollJumpRequest:null,forceShouldAnimate:null};return Qi}if(ye.type==="COLLECTION_STARTING"){if(q.phase==="COLLECTING"||q.phase==="DROP_PENDING")return q;q.phase==="DRAGGING"||fe(!1);var Bi=Object(A.a)({phase:"COLLECTING"},q,{phase:"COLLECTING"});return Bi}if(ye.type==="PUBLISH_WHILE_DRAGGING")return q.phase==="COLLECTING"||q.phase==="DROP_PENDING"||fe(!1),bi({state:q,published:ye.payload});if(ye.type==="MOVE"){if(q.phase==="DROP_PENDING")return q;ki(q)||fe(!1);var Ma=ye.payload.client;return Ae(Ma,q.current.client.selection)?q:dn({state:q,clientSelection:Ma,impact:Sn(q)?q.impact:null})}if(ye.type==="UPDATE_DROPPABLE_SCROLL"){if(q.phase==="DROP_PENDING")return oa(q);if(q.phase==="COLLECTING")return oa(q);ki(q)||fe(!1);var ea=ye.payload,oo=ea.id,Ba=ea.newScroll,Ro=q.dimensions.droppables[oo];if(!Ro)return q;var Zo=oe(Ro,Ba);return zi(q,Zo,!1)}if(ye.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(q.phase==="DROP_PENDING")return q;ki(q)||fe(!1);var P=ye.payload,K=P.id,$=P.isEnabled,re=q.dimensions.droppables[K];re||fe(!1),re.isEnabled!==$||fe(!1);var le=Object(A.a)({},re,{isEnabled:$});return zi(q,le,!0)}if(ye.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(q.phase==="DROP_PENDING")return q;ki(q)||fe(!1);var Me=ye.payload,pt=Me.id,jt=Me.isCombineEnabled,ar=q.dimensions.droppables[pt];ar||fe(!1),ar.isCombineEnabled!==jt||fe(!1);var cr=Object(A.a)({},ar,{isCombineEnabled:jt});return zi(q,cr,!0)}if(ye.type==="MOVE_BY_WINDOW_SCROLL"){if(q.phase==="DROP_PENDING"||q.phase==="DROP_ANIMATING")return q;ki(q)||fe(!1),q.isWindowScrollAllowed||fe(!1);var bn=ye.payload.newScroll;if(Ae(q.viewport.scroll.current,bn))return oa(q);var Dn=_i(q.viewport,bn);return Sn(q)?zn({state:q,viewport:Dn}):dn({state:q,viewport:Dn})}if(ye.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!ki(q))return q;var ui=ye.payload.maxScroll;if(Ae(ui,q.viewport.scroll.max))return q;var hi=Object(A.a)({},q.viewport,{scroll:Object(A.a)({},q.viewport.scroll,{max:ui})});return Object(A.a)({phase:"DRAGGING"},q,{viewport:hi})}if(ye.type==="MOVE_UP"||ye.type==="MOVE_DOWN"||ye.type==="MOVE_LEFT"||ye.type==="MOVE_RIGHT"){if(q.phase==="COLLECTING"||q.phase==="DROP_PENDING")return q;q.phase==="DRAGGING"||fe(!1);var Wi=Ui({state:q,type:ye.type});return Wi?dn({state:q,impact:Wi.impact,clientSelection:Wi.clientSelection,scrollJumpRequest:Wi.scrollJumpRequest}):q}if(ye.type==="DROP_PENDING"){var ia=ye.payload.reason;q.phase==="COLLECTING"||fe(!1);var xa=Object(A.a)({phase:"DROP_PENDING"},q,{phase:"DROP_PENDING",isWaiting:!0,reason:ia});return xa}if(ye.type==="DROP_ANIMATE"){var ba=ye.payload,va=ba.completed,Ua=ba.dropDuration,eo=ba.newHomeClientOffset;q.phase==="DRAGGING"||q.phase==="DROP_PENDING"||fe(!1);var ko={phase:"DROP_ANIMATING",completed:va,dropDuration:Ua,newHomeClientOffset:eo,dimensions:q.dimensions};return ko}if(ye.type==="DROP_COMPLETE"){var To=ye.payload.completed;return{phase:"IDLE",completed:To,shouldFlush:!1}}return q},Hi=function(q){return{type:"BEFORE_INITIAL_CAPTURE",payload:q}},Ia=function(q){return{type:"LIFT",payload:q}},Da=function(q){return{type:"INITIAL_PUBLISH",payload:q}},Qa=function(q){return{type:"PUBLISH_WHILE_DRAGGING",payload:q}},Wo=function(){return{type:"COLLECTION_STARTING",payload:null}},po=function(q){return{type:"UPDATE_DROPPABLE_SCROLL",payload:q}},Mo=function(q){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:q}},Fo=function(q){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:q}},yo=function(q){return{type:"MOVE",payload:q}},Oo=function(q){return{type:"MOVE_BY_WINDOW_SCROLL",payload:q}},sa=function(q){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:q}},hs=function(){return{type:"MOVE_UP",payload:null}},Jo=function(){return{type:"MOVE_DOWN",payload:null}},wo=function(){return{type:"MOVE_RIGHT",payload:null}},_o=function(){return{type:"MOVE_LEFT",payload:null}},Bo=function(){return{type:"FLUSH",payload:null}},Ds=function(q){return{type:"DROP_ANIMATE",payload:q}},Nr=function(q){return{type:"DROP_COMPLETE",payload:q}},rn=function(q){return{type:"DROP",payload:q}},En=function(q){return{type:"DROP_PENDING",payload:q}},en=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function ur(Oe){if(Oe.length<=1)return;for(var q=Oe.map(function(Qt){return Qt.descriptor.index}),ye={},ze=1;ze<q.length;ze++){var at=q[ze],Nt=q[ze-1];at!==Nt+1&&(ye[at]=!0)}if(!Object.keys(ye).length)return;var Kt=q.map(function(Qt){var Ir=Boolean(ye[Qt]);return Ir?"[\u{1F525}"+Qt+"]":""+Qt}).join(", ")}function on(Oe,q){if(!1)var ye}var Bn=function(q){return function(ye){var ze=ye.getState,at=ye.dispatch;return function(Nt){return function(Kt){if(Kt.type!=="LIFT"){Nt(Kt);return}var Qt=Kt.payload,Ir=Qt.id,Zr=Qt.clientSelection,Tr=Qt.movementMode,xr=ze();xr.phase==="DROP_ANIMATING"&&at(Nr({completed:xr.completed})),ze().phase==="IDLE"||fe(!1),at(Bo()),at(Hi({draggableId:Ir,movementMode:Tr}));var Wr={shouldPublishImmediately:Tr==="SNAP"},nn={draggableId:Ir,scrollOptions:Wr},_n=q.startPublishing(nn),gi=_n.critical,Ai=_n.dimensions,Qi=_n.viewport;on(gi,Ai),at(Da({critical:gi,dimensions:Ai,clientSelection:Zr,movementMode:Tr,viewport:Qi}))}}}},Hn=function(q){return function(){return function(ye){return function(ze){ze.type==="INITIAL_PUBLISH"&&q.dragging(),ze.type==="DROP_ANIMATE"&&q.dropping(ze.payload.completed.result.reason),(ze.type==="FLUSH"||ze.type==="DROP_COMPLETE")&&q.resting(),ye(ze)}}}},Ii={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Ci={opacity:{drop:0,combining:.7},scale:{drop:.75}},Jn={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},mi=Jn.outOfTheWay+"s "+Ii.outOfTheWay,yi={fluid:"opacity "+mi,snap:"transform "+mi+", opacity "+mi,drop:function(q){var ye=q+"s "+Ii.drop;return"transform "+ye+", opacity "+ye},outOfTheWay:"transform "+mi,placeholder:"height "+mi+", width "+mi+", margin "+mi},da=function(q){return Ae(q,Ce)?null:"translate("+q.x+"px, "+q.y+"px)"},ha={moveTo:da,drop:function(q,ye){var ze=da(q);return ze?ye?ze+" scale("+Ci.scale.drop+")":ze:null}},Pa=Jn.minDropTime,Ra=Jn.maxDropTime,so=Ra-Pa,La=1500,lo=.6,So=function(q){var ye=q.current,ze=q.destination,at=q.reason,Nt=gt(ye,ze);if(Nt<=0)return Pa;if(Nt>=La)return Ra;var Kt=Nt/La,Qt=Pa+so*Kt,Ir=at==="CANCEL"?Qt*lo:Qt;return Number(Ir.toFixed(2))},Xt=function(q){var ye=q.impact,ze=q.draggable,at=q.dimensions,Nt=q.viewport,Kt=q.afterCritical,Qt=at.draggables,Ir=at.droppables,Zr=On(ye),Tr=Zr?Ir[Zr]:null,xr=Ir[ze.descriptor.droppableId],Wr=Fn({impact:ye,draggable:ze,draggables:Qt,afterCritical:Kt,droppable:Tr||xr,viewport:Nt}),nn=ce(Wr,ze.client.borderBox.center);return nn},zr=function(q){var ye=q.draggables,ze=q.reason,at=q.lastImpact,Nt=q.home,Kt=q.viewport,Qt=q.onLiftImpact;if(!at.at||ze!=="DROP"){var Ir=xn({draggables:ye,impact:Qt,destination:Nt,viewport:Kt,forceShouldAnimate:!0});return{impact:Ir,didDropInsideDroppable:!1}}if(at.at.type==="REORDER")return{impact:at,didDropInsideDroppable:!0};var Zr=Object(A.a)({},at,{displaced:mn});return{impact:Zr,didDropInsideDroppable:!0}},un=function(q){var ye=q.getState,ze=q.dispatch;return function(at){return function(Nt){if(Nt.type!=="DROP"){at(Nt);return}var Kt=ye(),Qt=Nt.payload.reason;if(Kt.phase==="COLLECTING"){ze(En({reason:Qt}));return}if(Kt.phase==="IDLE")return;var Ir=Kt.phase==="DROP_PENDING"&&Kt.isWaiting;Ir&&fe(!1),Kt.phase==="DRAGGING"||Kt.phase==="DROP_PENDING"||fe(!1);var Zr=Kt.critical,Tr=Kt.dimensions,xr=Tr.draggables[Kt.critical.draggable.id],Wr=zr({reason:Qt,lastImpact:Kt.impact,afterCritical:Kt.afterCritical,onLiftImpact:Kt.onLiftImpact,home:Kt.dimensions.droppables[Kt.critical.droppable.id],viewport:Kt.viewport,draggables:Kt.dimensions.draggables}),nn=Wr.impact,_n=Wr.didDropInsideDroppable,gi=_n?nr(nn):null,Ai=_n?lr(nn):null,Qi={index:Zr.draggable.index,droppableId:Zr.droppable.id},Bi={draggableId:xr.descriptor.id,type:xr.descriptor.type,source:Qi,reason:Qt,mode:Kt.movementMode,destination:gi,combine:Ai},Ma=Xt({impact:nn,draggable:xr,dimensions:Tr,viewport:Kt.viewport,afterCritical:Kt.afterCritical}),ea={critical:Kt.critical,afterCritical:Kt.afterCritical,result:Bi,impact:nn},oo=!Ae(Kt.current.client.offset,Ma)||Boolean(Bi.combine);if(!oo){ze(Nr({completed:ea}));return}var Ba=So({current:Kt.current.client.offset,destination:Ma,reason:Qt}),Ro={newHomeClientOffset:Ma,dropDuration:Ba,completed:ea};ze(Ds(Ro))}}},vn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function ni(Oe){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ye){if(ye.target!==window&&ye.target!==window.document)return;Oe()}}}function li(Oe){var q=Oe.onWindowScroll;function ye(){q(vn())}var ze=N(ye),at=ni(ze),Nt=de;function Kt(){return Nt!==de}function Qt(){Kt()&&fe(!1),Nt=ve(window,[at])}function Ir(){Kt()||fe(!1),ze.cancel(),Nt(),Nt=de}return{start:Qt,stop:Ir,isActive:Kt}}var fi=function(q){return q.type==="DROP_COMPLETE"||q.type==="DROP_ANIMATE"||q.type==="FLUSH"},di=function(q){var ye=li({onWindowScroll:function(at){q.dispatch(Oo({newScroll:at}))}});return function(ze){return function(at){!ye.isActive()&&at.type==="INITIAL_PUBLISH"&&ye.start(),ye.isActive()&&fi(at)&&ye.stop(),ze(at)}}},Yt=function(q){var ye=!1,ze=!1,at=setTimeout(function(){ze=!0}),Nt=function(Qt){if(ye)return;if(ze)return;ye=!0,q(Qt),clearTimeout(at)};return Nt.wasCalled=function(){return ye},Nt},Et=function(){var q=[],ye=function(Kt){var Qt=Ee(q,function(Tr){return Tr.timerId===Kt});Qt!==-1||fe(!1);var Ir=q.splice(Qt,1),Zr=Ir[0];Zr.callback()},ze=function(Kt){var Qt=setTimeout(function(){return ye(Qt)}),Ir={timerId:Qt,callback:Kt};q.push(Ir)},at=function(){if(!q.length)return;var Kt=[].concat(q);q.length=0,Kt.forEach(function(Qt){clearTimeout(Qt.timerId),Qt.callback()})};return{add:ze,flush:at}},yr=function(q,ye){return q==null&&ye==null?!0:q==null||ye==null?!1:q.droppableId===ye.droppableId&&q.index===ye.index},ct=function(q,ye){return q==null&&ye==null?!0:q==null||ye==null?!1:q.draggableId===ye.draggableId&&q.droppableId===ye.droppableId},Zt=function(q,ye){if(q===ye)return!0;var ze=q.draggable.id===ye.draggable.id&&q.draggable.droppableId===ye.draggable.droppableId&&q.draggable.type===ye.draggable.type&&q.draggable.index===ye.draggable.index,at=q.droppable.id===ye.droppable.id&&q.droppable.type===ye.droppable.type;return ze&&at},dr=function(q,ye){Ri(),ye(),Ji()},Lr=function(q,ye){return{draggableId:q.draggable.id,type:q.droppable.type,source:{droppableId:q.droppable.id,index:q.draggable.index},mode:ye}},Jr=function(q,ye,ze,at){if(!q){ze(at(ye));return}var Nt=Yt(ze),Kt={announce:Nt};q(ye,Kt),Nt.wasCalled()||ze(at(ye))},fn=function(q,ye){var ze=Et(),at=null,Nt=function(nn,_n){at&&fe(!1),dr("onBeforeCapture",function(){var gi=q().onBeforeCapture;if(gi){var Ai={draggableId:nn,mode:_n};gi(Ai)}})},Kt=function(nn,_n){at&&fe(!1),dr("onBeforeDragStart",function(){var gi=q().onBeforeDragStart;gi&&gi(Lr(nn,_n))})},Qt=function(nn,_n){at&&fe(!1);var gi=Lr(nn,_n);at={mode:_n,lastCritical:nn,lastLocation:gi.source,lastCombine:null},ze.add(function(){dr("onDragStart",function(){return Jr(q().onDragStart,gi,ye,ue.onDragStart)})})},Ir=function(nn,_n){var gi=nr(_n),Ai=lr(_n);at||fe(!1);var Qi=!Zt(nn,at.lastCritical);Qi&&(at.lastCritical=nn);var Bi=!yr(at.lastLocation,gi);Bi&&(at.lastLocation=gi);var Ma=!ct(at.lastCombine,Ai);if(Ma&&(at.lastCombine=Ai),!Qi&&!Bi&&!Ma)return;var ea=Object(A.a)({},Lr(nn,at.mode),{combine:Ai,destination:gi});ze.add(function(){dr("onDragUpdate",function(){return Jr(q().onDragUpdate,ea,ye,ue.onDragUpdate)})})},Zr=function(){at||fe(!1),ze.flush()},Tr=function(nn){at||fe(!1),at=null,dr("onDragEnd",function(){return Jr(q().onDragEnd,nn,ye,ue.onDragEnd)})},xr=function(){if(!at)return;var nn=Object(A.a)({},Lr(at.lastCritical,at.mode),{combine:null,destination:null,reason:"CANCEL"});Tr(nn)};return{beforeCapture:Nt,beforeStart:Kt,start:Qt,update:Ir,flush:Zr,drop:Tr,abort:xr}},Cn=function(q,ye){var ze=fn(q,ye);return function(at){return function(Nt){return function(Kt){if(Kt.type==="BEFORE_INITIAL_CAPTURE"){ze.beforeCapture(Kt.payload.draggableId,Kt.payload.movementMode);return}if(Kt.type==="INITIAL_PUBLISH"){var Qt=Kt.payload.critical;ze.beforeStart(Qt,Kt.payload.movementMode),Nt(Kt),ze.start(Qt,Kt.payload.movementMode);return}if(Kt.type==="DROP_COMPLETE"){var Ir=Kt.payload.completed.result;ze.flush(),Nt(Kt),ze.drop(Ir);return}if(Nt(Kt),Kt.type==="FLUSH"){ze.abort();return}var Zr=at.getState();Zr.phase==="DRAGGING"&&ze.update(Zr.critical,Zr.impact)}}}},Nn=function(q){return function(ye){return function(ze){if(ze.type!=="DROP_ANIMATION_FINISHED"){ye(ze);return}var at=q.getState();at.phase==="DROP_ANIMATING"||fe(!1),q.dispatch(Nr({completed:at.completed}))}}},Zn=function(q){var ye=null,ze=null;function at(){ze&&(cancelAnimationFrame(ze),ze=null),ye&&(ye(),ye=null)}return function(Nt){return function(Kt){if((Kt.type==="FLUSH"||Kt.type==="DROP_COMPLETE"||Kt.type==="DROP_ANIMATION_FINISHED")&&at(),Nt(Kt),Kt.type!=="DROP_ANIMATE")return;var Qt={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var Zr=q.getState();Zr.phase==="DROP_ANIMATING"&&q.dispatch(en())}};ze=requestAnimationFrame(function(){ze=null,ye=ve(window,[Qt])})}}},ii=function(q){return function(){return function(ye){return function(ze){(ze.type==="DROP_COMPLETE"||ze.type==="FLUSH"||ze.type==="DROP_ANIMATE")&&q.stopPublishing(),ye(ze)}}}},pi=function(q){var ye=!1;return function(){return function(ze){return function(at){if(at.type==="INITIAL_PUBLISH"){ye=!0,q.tryRecordFocus(at.payload.critical.draggable.id),ze(at),q.tryRestoreFocusRecorded();return}if(ze(at),!ye)return;if(at.type==="FLUSH"){ye=!1,q.tryRestoreFocusRecorded();return}if(at.type==="DROP_COMPLETE"){ye=!1;var Nt=at.payload.completed.result;Nt.combine&&q.tryShiftRecord(Nt.draggableId,Nt.combine.draggableId),q.tryRestoreFocusRecorded()}}}}},ri=function(q){return q.type==="DROP_COMPLETE"||q.type==="DROP_ANIMATE"||q.type==="FLUSH"},ji=function(q){return function(ye){return function(ze){return function(at){if(ri(at)){q.stop(),ze(at);return}if(at.type==="INITIAL_PUBLISH"){ze(at);var Nt=ye.getState();Nt.phase==="DRAGGING"||fe(!1),q.start(Nt);return}ze(at),q.scroll(ye.getState())}}}},ei=function(q){return function(ye){return function(ze){if(ye(ze),ze.type!=="PUBLISH_WHILE_DRAGGING")return;var at=q.getState();if(at.phase!=="DROP_PENDING")return;if(at.isWaiting)return;q.dispatch(rn({reason:at.reason}))}}},Je=S.d,Gt=function(q){var ye=q.dimensionMarshal,ze=q.focusMarshal,at=q.styleMarshal,Nt=q.getResponders,Kt=q.announce,Qt=q.autoScroller;return Object(S.e)(ca,Je(Object(S.a)(Hn(at),ii(ye),Bn(ye),un,Nn,Zn,ei,ji(Qt),di,pi(ze),Cn(Nt,Kt))))},vr=function(){return{additions:{},removals:{},modified:{}}};function fr(Oe){var q=Oe.registry,ye=Oe.callbacks,ze=vr(),at=null,Nt=function(){if(at)return;ye.collectionStarting(),at=requestAnimationFrame(function(){at=null,Ri();var Tr=ze,xr=Tr.additions,Wr=Tr.removals,nn=Tr.modified,_n=Object.keys(xr).map(function(Qi){return q.draggable.getById(Qi).getDimension(Ce)}).sort(function(Qi,Bi){return Qi.descriptor.index-Bi.descriptor.index}),gi=Object.keys(nn).map(function(Qi){var Bi=q.droppable.getById(Qi),Ma=Bi.callbacks.getScrollWhileDragging();return{droppableId:Qi,scroll:Ma}}),Ai={additions:_n,removals:Object.keys(Wr),modified:gi};ze=vr(),Ji(),ye.publish(Ai)})},Kt=function(Tr){var xr=Tr.descriptor.id;ze.additions[xr]=Tr,ze.modified[Tr.descriptor.droppableId]=!0,ze.removals[xr]&&delete ze.removals[xr],Nt()},Qt=function(Tr){var xr=Tr.descriptor;ze.removals[xr.id]=!0,ze.modified[xr.droppableId]=!0,ze.additions[xr.id]&&delete ze.additions[xr.id],Nt()},Ir=function(){if(!at)return;cancelAnimationFrame(at),at=null,ze=vr()};return{add:Kt,remove:Qt,stop:Ir}}var Gr=function(q){var ye=q.scrollHeight,ze=q.scrollWidth,at=q.height,Nt=q.width,Kt=ce({x:ze,y:ye},{x:Nt,y:at}),Qt={x:Math.max(0,Kt.x),y:Math.max(0,Kt.y)};return Qt},Pr=function(){var q=document.documentElement;return q||fe(!1),q},hr=function(){var q=Pr(),ye=Gr({scrollHeight:q.scrollHeight,scrollWidth:q.scrollWidth,width:q.clientWidth,height:q.clientHeight});return ye},An=function(){var q=vn(),ye=hr(),ze=q.y,at=q.x,Nt=Pr(),Kt=Nt.clientWidth,Qt=Nt.clientHeight,Ir=at+Kt,Zr=ze+Qt,Tr=e({top:ze,left:at,right:Ir,bottom:Zr}),xr={frame:Tr,scroll:{initial:q,current:q,max:ye,diff:{value:Ce,displacement:Ce}}};return xr},br=function(q){var ye=q.critical,ze=q.scrollOptions,at=q.registry;Ri();var Nt=An(),Kt=Nt.scroll.current,Qt=ye.droppable,Ir=at.droppable.getAllByType(Qt.type).map(function(Wr){return Wr.callbacks.getDimensionAndWatchScroll(Kt,ze)}),Zr=at.draggable.getAllByType(ye.draggable.type).map(function(Wr){return Wr.getDimension(Kt)}),Tr={draggables:dt(Zr),droppables:Ct(Ir)};Ji();var xr={dimensions:Tr,critical:ye,viewport:Nt};return xr};function pn(Oe,q,ye){if(ye.descriptor.id===q.id)return!1;if(ye.descriptor.type!==q.type)return!1;var ze=Oe.droppable.getById(ye.descriptor.droppableId);return!(ze.descriptor.mode!=="virtual")}var Kn=function(q,ye){var ze=null,at=fr({callbacks:{publish:ye.publishWhileDragging,collectionStarting:ye.collectionStarting},registry:q}),Nt=function(_n,gi){if(q.droppable.exists(_n)||fe(!1),!ze)return;ye.updateDroppableIsEnabled({id:_n,isEnabled:gi})},Kt=function(_n,gi){if(!ze)return;q.droppable.exists(_n)||fe(!1),ye.updateDroppableIsCombineEnabled({id:_n,isCombineEnabled:gi})},Qt=function(_n,gi){if(!ze)return;q.droppable.exists(_n)||fe(!1),ye.updateDroppableScroll({id:_n,newScroll:gi})},Ir=function(_n,gi){if(!ze)return;q.droppable.getById(_n).callbacks.scroll(gi)},Zr=function(){if(!ze)return;at.stop();var _n=ze.critical.droppable;q.droppable.getAllByType(_n.type).forEach(function(gi){return gi.callbacks.dragStopped()}),ze.unsubscribe(),ze=null},Tr=function(_n){ze||fe(!1);var gi=ze.critical.draggable;_n.type==="ADDITION"&&(pn(q,gi,_n.value)&&at.add(_n.value)),_n.type==="REMOVAL"&&(pn(q,gi,_n.value)&&at.remove(_n.value))},xr=function(_n){ze&&fe(!1);var gi=q.draggable.getById(_n.draggableId),Ai=q.droppable.getById(gi.descriptor.droppableId),Qi={draggable:gi.descriptor,droppable:Ai.descriptor},Bi=q.subscribe(Tr);return ze={critical:Qi,unsubscribe:Bi},br({critical:Qi,registry:q,scrollOptions:_n.scrollOptions})},Wr={updateDroppableIsEnabled:Nt,updateDroppableIsCombineEnabled:Kt,scrollDroppable:Ir,updateDroppableScroll:Qt,startPublishing:xr,stopPublishing:Zr};return Wr},Wn=function(q,ye){return q.phase==="IDLE"?!0:q.phase!=="DROP_ANIMATING"||q.completed.result.draggableId===ye?!1:q.completed.result.reason==="DROP"},Ln=function(q){window.scrollBy(q.x,q.y)},$n=I(function(Oe){return _t(Oe).filter(function(q){return q.isEnabled?!!q.frame:!1})}),Un=function(q,ye){var ze=ee($n(ye),function(at){return at.frame||fe(!1),Di(at.frame.pageMarginBox)(q)});return ze},ti=function(q){var ye=q.center,ze=q.destination,at=q.droppables;if(ze){var Nt=at[ze];return Nt.frame?Nt:null}var Kt=Un(ye,at);return Kt},Gn={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(q){return Math.pow(q,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},wi=function(q,ye){var ze=q[ye.size]*Gn.startFromPercentage,at=q[ye.size]*Gn.maxScrollAtPercentage,Nt={startScrollingFrom:ze,maxScrollValueAt:at};return Nt},Ei=function(q){var ye=q.startOfRange,ze=q.endOfRange,at=q.current,Nt=ze-ye;if(Nt===0)return 0;var Kt=at-ye,Qt=Kt/Nt;return Qt},Zi=1,ua=function(q,ye){if(q>ye.startScrollingFrom)return 0;if(q<=ye.maxScrollValueAt)return Gn.maxPixelScroll;if(q===ye.startScrollingFrom)return Zi;var ze=Ei({startOfRange:ye.maxScrollValueAt,endOfRange:ye.startScrollingFrom,current:q}),at=1-ze,Nt=Gn.maxPixelScroll*Gn.ease(at);return Math.ceil(Nt)},Xi=Gn.durationDampening.accelerateAt,Gi=Gn.durationDampening.stopDampeningAt,wa=function(q,ye){var ze=ye,at=Gi,Nt=Date.now(),Kt=Nt-ze;if(Kt>=Gi)return q;if(Kt<Xi)return Zi;var Qt=Ei({startOfRange:Xi,endOfRange:at,current:Kt}),Ir=q*Gn.ease(Qt);return Math.ceil(Ir)},na=function(q){var ye=q.distanceToEdge,ze=q.thresholds,at=q.dragStartTime,Nt=q.shouldUseTimeDampening,Kt=ua(ye,ze);return Kt===0?0:Nt?Math.max(wa(Kt,at),Zi):Kt},mo=function(q){var ye=q.container,ze=q.distanceToEdges,at=q.dragStartTime,Nt=q.axis,Kt=q.shouldUseTimeDampening,Qt=wi(ye,Nt),Ir=ze[Nt.end]<ze[Nt.start];return Ir?na({distanceToEdge:ze[Nt.end],thresholds:Qt,dragStartTime:at,shouldUseTimeDampening:Kt}):-1*na({distanceToEdge:ze[Nt.start],thresholds:Qt,dragStartTime:at,shouldUseTimeDampening:Kt})},Ca=function(q){var ye=q.container,ze=q.subject,at=q.proposedScroll,Nt=ze.height>ye.height,Kt=ze.width>ye.width;return!Kt&&!Nt?at:Kt&&Nt?null:{x:Kt?0:at.x,y:Nt?0:at.y}},qi=Le(function(Oe){return Oe===0?0:Oe}),aa=function(q){var ye=q.dragStartTime,ze=q.container,at=q.subject,Nt=q.center,Kt=q.shouldUseTimeDampening,Qt={top:Nt.y-ze.top,right:ze.right-Nt.x,bottom:ze.bottom-Nt.y,left:Nt.x-ze.left},Ir=mo({container:ze,distanceToEdges:Qt,dragStartTime:ye,axis:Rn,shouldUseTimeDampening:Kt}),Zr=mo({container:ze,distanceToEdges:Qt,dragStartTime:ye,axis:kt,shouldUseTimeDampening:Kt}),Tr=qi({x:Zr,y:Ir});if(Ae(Tr,Ce))return null;var xr=Ca({container:ze,subject:at,proposedScroll:Tr});return xr?Ae(xr,Ce)?null:xr:null},$i=Le(function(Oe){return Oe===0?0:Oe>0?1:-1}),Aa=function(){var Oe=function(ye,ze){return ye<0?ye:ye>ze?ye-ze:0};return function(q){var ye=q.current,ze=q.max,at=q.change,Nt=Ie(ye,at),Kt={x:Oe(Nt.x,ze.x),y:Oe(Nt.y,ze.y)};return Ae(Kt,Ce)?null:Kt}}(),ya=function(q){var ye=q.max,ze=q.current,at=q.change,Nt={x:Math.max(ze.x,ye.x),y:Math.max(ze.y,ye.y)},Kt=$i(at),Qt=Aa({max:Nt,current:ze,change:Kt});return Qt?Kt.x!==0&&Qt.x===0?!0:Kt.y!==0&&Qt.y===0:!0},Ha=function(q,ye){return ya({current:q.scroll.current,max:q.scroll.max,change:ye})},ta=function(q,ye){if(!Ha(q,ye))return null;var ze=q.scroll.max,at=q.scroll.current;return Aa({current:at,max:ze,change:ye})},ra=function(q,ye){var ze=q.frame;return ze?ya({current:ze.scroll.current,max:ze.scroll.max,change:ye}):!1},_a=function(q,ye){var ze=q.frame;return ze&&ra(q,ye)?Aa({current:ze.scroll.current,max:ze.scroll.max,change:ye}):null},Ka=function(q){var ye=q.viewport,ze=q.subject,at=q.center,Nt=q.dragStartTime,Kt=q.shouldUseTimeDampening,Qt=aa({dragStartTime:Nt,container:ye.frame,subject:ze,center:at,shouldUseTimeDampening:Kt});return Qt&&Ha(ye,Qt)?Qt:null},bo=function(q){var ye=q.droppable,ze=q.subject,at=q.center,Nt=q.dragStartTime,Kt=q.shouldUseTimeDampening,Qt=ye.frame;if(!Qt)return null;var Ir=aa({dragStartTime:Nt,container:Qt.pageMarginBox,subject:ze,center:at,shouldUseTimeDampening:Kt});return Ir&&ra(ye,Ir)?Ir:null},ga=function(q){var ye=q.state,ze=q.dragStartTime,at=q.shouldUseTimeDampening,Nt=q.scrollWindow,Kt=q.scrollDroppable,Qt=ye.current.page.borderBoxCenter,Ir=ye.dimensions.draggables[ye.critical.draggable.id],Zr=Ir.page.marginBox;if(ye.isWindowScrollAllowed){var Tr=ye.viewport,xr=Ka({dragStartTime:ze,viewport:Tr,subject:Zr,center:Qt,shouldUseTimeDampening:at});if(xr){Nt(xr);return}}var Wr=ti({center:Qt,destination:On(ye.impact),droppables:ye.dimensions.droppables});if(!Wr)return;var nn=bo({dragStartTime:ze,droppable:Wr,subject:Zr,center:Qt,shouldUseTimeDampening:at});nn&&Kt(Wr.descriptor.id,nn)},go=function(q){var ye=q.scrollWindow,ze=q.scrollDroppable,at=N(ye),Nt=N(ze),Kt=null,Qt=function(xr){Kt||fe(!1);var Wr=Kt,nn=Wr.shouldUseTimeDampening,_n=Wr.dragStartTime;ga({state:xr,scrollWindow:at,scrollDroppable:Nt,dragStartTime:_n,shouldUseTimeDampening:nn})},Ir=function(xr){Ri(),Kt&&fe(!1);var Wr=Date.now(),nn=!1,_n=function(){nn=!0};ga({state:xr,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:_n,scrollDroppable:_n}),Kt={dragStartTime:Wr,shouldUseTimeDampening:nn},Ji(),nn&&Qt(xr)},Zr=function(){if(!Kt)return;at.cancel(),Nt.cancel(),Kt=null};return{start:Ir,stop:Zr,scroll:Qt}},Sa=function(q){var ye=q.move,ze=q.scrollDroppable,at=q.scrollWindow,Nt=function(Tr,xr){var Wr=Ie(Tr.current.client.selection,xr);ye({client:Wr})},Kt=function(Tr,xr){if(!ra(Tr,xr))return xr;var Wr=_a(Tr,xr);if(!Wr)return ze(Tr.descriptor.id,xr),null;var nn=ce(xr,Wr);ze(Tr.descriptor.id,nn);var _n=ce(xr,nn);return _n},Qt=function(Tr,xr,Wr){if(!Tr)return Wr;if(!Ha(xr,Wr))return Wr;var nn=ta(xr,Wr);if(!nn)return at(Wr),null;var _n=ce(Wr,nn);at(_n);var gi=ce(Wr,_n);return gi},Ir=function(Tr){var xr=Tr.scrollJumpRequest;if(!xr)return;var Wr=On(Tr.impact);Wr||fe(!1);var nn=Kt(Tr.dimensions.droppables[Wr],xr);if(!nn)return;var _n=Tr.viewport,gi=Qt(Tr.isWindowScrollAllowed,_n,nn);if(!gi)return;Nt(Tr,gi)};return Ir},Va=function(q){var ye=q.scrollDroppable,ze=q.scrollWindow,at=q.move,Nt=go({scrollWindow:ze,scrollDroppable:ye}),Kt=Sa({move:at,scrollWindow:ze,scrollDroppable:ye}),Qt=function(Tr){if(Tr.phase!=="DRAGGING")return;if(Tr.movementMode==="FLUID"){Nt.scroll(Tr);return}if(!Tr.scrollJumpRequest)return;Kt(Tr)},Ir={scroll:Qt,start:Nt.start,stop:Nt.stop};return Ir},uo="data-rbd",No=function(){var Oe=uo+"-drag-handle";return{base:Oe,draggableId:Oe+"-draggable-id",contextId:Oe+"-context-id"}}(),Po=function(){var Oe=uo+"-draggable";return{base:Oe,contextId:Oe+"-context-id",id:Oe+"-id"}}(),to=function(){var Oe=uo+"-droppable";return{base:Oe,contextId:Oe+"-context-id",id:Oe+"-id"}}(),Uo={contextId:uo+"-scroll-container-context-id"},co=function(q){return function(ye){return"["+ye+'="'+q+'"]'}},fa=function(q,ye){return q.map(function(ze){var at=ze.styles[ye];return at?ze.selector+" { "+at+" }":""}).join(" ")},ro="pointer-events: none;",Wa=function(q){var ye=co(q),ze=function(){var Ir=`
|
|
|
cursor: -webkit-grab;
|
|
|
cursor: grab;
|
|
|
`;return{selector:ye(No.contextId),styles:{always:`
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
|
touch-action: manipulation;
|
|
|
`,resting:Ir,dragging:ro,dropAnimating:Ir}}}(),at=function(){var Ir=`
|
|
|
transition: `+yi.outOfTheWay+`;
|
|
|
`;return{selector:ye(Po.contextId),styles:{dragging:Ir,dropAnimating:Ir,userCancel:Ir}}}(),Nt={selector:ye(to.contextId),styles:{always:"overflow-anchor: none;"}},Kt={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;
|
|
|
`}},Qt=[at,ze,Nt,Kt];return{always:fa(Qt,"always"),resting:fa(Qt,"resting"),dragging:fa(Qt,"dragging"),dropAnimating:fa(Qt,"dropAnimating"),userCancel:fa(Qt,"userCancel")}},Ea=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?O.useLayoutEffect:O.useEffect,Qr=function(){var q=document.querySelector("head");return q||fe(!1),q},za=function(q){var ye=document.createElement("style");return q&&ye.setAttribute("nonce",q),ye.type="text/css",ye};function rs(Oe,q){var ye=r(function(){return Wa(Oe)},[Oe]),ze=Object(O.useRef)(null),at=Object(O.useRef)(null),Nt=i(I(function(xr){var Wr=at.current;Wr||fe(!1),Wr.textContent=xr}),[]),Kt=i(function(xr){var Wr=ze.current;Wr||fe(!1),Wr.textContent=xr},[]);Ea(function(){!ze.current&&!at.current||fe(!1);var xr=za(q),Wr=za(q);return ze.current=xr,at.current=Wr,xr.setAttribute(uo+"-always",Oe),Wr.setAttribute(uo+"-dynamic",Oe),Qr().appendChild(xr),Qr().appendChild(Wr),Kt(ye.always),Nt(ye.resting),function(){var nn=function(gi){var Ai=gi.current;Ai||fe(!1),Qr().removeChild(Ai),gi.current=null};nn(ze),nn(at)}},[q,Kt,Nt,ye.always,ye.resting,Oe]);var Qt=i(function(){return Nt(ye.dragging)},[Nt,ye.dragging]),Ir=i(function(xr){if(xr==="DROP"){Nt(ye.dropAnimating);return}Nt(ye.userCancel)},[Nt,ye.dropAnimating,ye.userCancel]),Zr=i(function(){if(!at.current)return;Nt(ye.resting)},[Nt,ye.resting]),Tr=r(function(){return{dragging:Qt,dropping:Ir,resting:Zr}},[Qt,Ir,Zr]);return Tr}var Vo=function(q){return q&&q.ownerDocument?q.ownerDocument.defaultView:window};function Go(Oe){return Oe instanceof Vo(Oe).HTMLElement}function Qo(Oe,q){var ye="["+No.contextId+'="'+Oe+'"]',ze=lt(document.querySelectorAll(ye));if(!ze.length)return null;var at=ee(ze,function(Nt){return Nt.getAttribute(No.draggableId)===q});return at&&Go(at)?at:null}function Yo(Oe){var q=Object(O.useRef)({}),ye=Object(O.useRef)(null),ze=Object(O.useRef)(null),at=Object(O.useRef)(!1),Nt=i(function(Wr,nn){var _n={id:Wr,focus:nn};return q.current[Wr]=_n,function(){var Ai=q.current,Qi=Ai[Wr];Qi!==_n&&delete Ai[Wr]}},[]),Kt=i(function(Wr){var nn=Qo(Oe,Wr);nn&&nn!==document.activeElement&&nn.focus()},[Oe]),Qt=i(function(Wr,nn){ye.current===Wr&&(ye.current=nn)},[]),Ir=i(function(){if(ze.current)return;if(!at.current)return;ze.current=requestAnimationFrame(function(){ze.current=null;var Wr=ye.current;Wr&&Kt(Wr)})},[Kt]),Zr=i(function(Wr){ye.current=null;var nn=document.activeElement;if(!nn)return;if(nn.getAttribute(No.draggableId)!==Wr)return;ye.current=Wr},[]);Ea(function(){return at.current=!0,function(){at.current=!1;var Wr=ze.current;Wr&&cancelAnimationFrame(Wr)}},[]);var Tr=r(function(){return{register:Nt,tryRecordFocus:Zr,tryRestoreFocusRecorded:Ir,tryShiftRecord:Qt}},[Nt,Zr,Ir,Qt]);return Tr}function vo(){var Oe={draggables:{},droppables:{}},q=[];function ye(xr){return q.push(xr),function(){var nn=q.indexOf(xr);if(nn===-1)return;q.splice(nn,1)}}function ze(xr){q.length&&q.forEach(function(Wr){return Wr(xr)})}function at(xr){return Oe.draggables[xr]||null}function Nt(xr){var Wr=at(xr);return Wr||fe(!1),Wr}var Kt={register:function(Wr){Oe.draggables[Wr.descriptor.id]=Wr,ze({type:"ADDITION",value:Wr})},update:function(Wr,nn){var _n=Oe.draggables[nn.descriptor.id];if(!_n)return;if(_n.uniqueId!==Wr.uniqueId)return;delete Oe.draggables[nn.descriptor.id],Oe.draggables[Wr.descriptor.id]=Wr},unregister:function(Wr){var nn=Wr.descriptor.id,_n=at(nn);if(!_n)return;if(Wr.uniqueId!==_n.uniqueId)return;delete Oe.draggables[nn],ze({type:"REMOVAL",value:Wr})},getById:Nt,findById:at,exists:function(Wr){return Boolean(at(Wr))},getAllByType:function(Wr){return Be(Oe.draggables).filter(function(nn){return nn.descriptor.type===Wr})}};function Qt(xr){return Oe.droppables[xr]||null}function Ir(xr){var Wr=Qt(xr);return Wr||fe(!1),Wr}var Zr={register:function(Wr){Oe.droppables[Wr.descriptor.id]=Wr},unregister:function(Wr){var nn=Qt(Wr.descriptor.id);if(!nn)return;if(Wr.uniqueId!==nn.uniqueId)return;delete Oe.droppables[Wr.descriptor.id]},getById:Ir,findById:Qt,exists:function(Wr){return Boolean(Qt(Wr))},getAllByType:function(Wr){return Be(Oe.droppables).filter(function(nn){return nn.descriptor.type===Wr})}};function Tr(){Oe.draggables={},Oe.droppables={},q.length=0}return{draggable:Kt,droppable:Zr,subscribe:ye,clean:Tr}}function Io(){var Oe=r(vo,[]);return Object(O.useEffect)(function(){return function(){requestAnimationFrame(Oe.clean)}},[Oe]),Oe}var zo=x.a.createContext(null),Fa=function(){var q=document.body;return q||fe(!1),q},Ja={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},ho=function(q){return"rbd-announcement-"+q};function Ao(Oe){var q=r(function(){return ho(Oe)},[Oe]),ye=Object(O.useRef)(null);Object(O.useEffect)(function(){var Nt=document.createElement("div");return ye.current=Nt,Nt.id=q,Nt.setAttribute("aria-live","assertive"),Nt.setAttribute("aria-atomic","true"),Object(A.a)(Nt.style,Ja),Fa().appendChild(Nt),function(){setTimeout(function(){var Ir=Fa();Ir.contains(Nt)&&Ir.removeChild(Nt),Nt===ye.current&&(ye.current=null)})}},[q]);var ze=i(function(at){var Nt=ye.current;if(Nt){Nt.textContent=at;return}},[]);return ze}var $o=0,ps={separator:"::"};function is(){$o=0}function Za(Oe,q){return q===void 0&&(q=ps),r(function(){return""+Oe+q.separator+$o++},[q.separator,Oe])}function St(Oe){var q=Oe.contextId,ye=Oe.uniqueId;return"rbd-hidden-text-"+q+"-"+ye}function Pt(Oe){var q=Oe.contextId,ye=Oe.text,ze=Za("hidden-text",{separator:"-"}),at=r(function(){return St({contextId:q,uniqueId:ze})},[ze,q]);return Object(O.useEffect)(function(){var Kt=document.createElement("div");return Kt.id=at,Kt.textContent=ye,Kt.style.display="none",Fa().appendChild(Kt),function(){var Ir=Fa();Ir.contains(Kt)&&Ir.removeChild(Kt)}},[at,ye]),at}var Kr=x.a.createContext(null),Pn={react:"^16.8.5","react-dom":"^16.8.5"},ut=/(\d+)\.(\d+)\.(\d+)/,ne=function(q){var ye=ut.exec(q);ye!=null||fe(!1);var ze=Number(ye[1]),at=Number(ye[2]),Nt=Number(ye[3]);return{major:ze,minor:at,patch:Nt,raw:q}},pe=function(q,ye){return ye.major>q.major?!0:ye.major<q.major?!1:ye.minor>q.minor?!0:ye.minor<q.minor?!1:ye.patch>=q.patch},be=function(q,ye){var ze=ne(q),at=ne(ye);if(pe(ze,at))return},je=`
|
|
|
We expect a html5 doctype: <!doctype html>
|
|
|
This is to ensure consistent browser layout and measurement
|
|
|
|
|
|
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
|
|
|
`,ht=function(q){var ye=q.doctype;if(!ye)return;ye.name.toLowerCase()!=="html",ye.publicId!==""};function Vt(Oe){}function Or(Oe,q){Vt(function(){Object(O.useEffect)(function(){try{Oe()}catch(ye){Z(`
|
|
|
A setup problem was encountered.
|
|
|
|
|
|
> `+ye.message+`
|
|
|
`)}},q)})}function Yr(){Or(function(){be(Pn.react,x.a.version),ht(document)},[])}function cn(Oe){var q=Object(O.useRef)(Oe);return Object(O.useEffect)(function(){q.current=Oe}),q}function jn(){var Oe=null;function q(){return Boolean(Oe)}function ye(Kt){return Kt===Oe}function ze(Kt){Oe&&fe(!1);var Qt={abandon:Kt};return Oe=Qt,Qt}function at(){Oe||fe(!1),Oe=null}function Nt(){Oe&&(Oe.abandon(),at())}return{isClaimed:q,isActive:ye,claim:ze,release:at,tryAbandon:Nt}}var ai=9,Qn=13,Ni=27,Vi=32,Ta=33,Ga=34,ao=35,Do=36,fo=37,as=38,io=39,Xa=40,Ya,ka=(Ya={},Ya[Qn]=!0,Ya[ai]=!0,Ya),os=function(q){ka[q.keyCode]&&q.preventDefault()},Es=function(){var Oe="visibilitychange";if(typeof document=="undefined")return Oe;var q=[Oe,"ms"+Oe,"webkit"+Oe,"moz"+Oe,"o"+Oe],ye=ee(q,function(ze){return"on"+ze in document});return ye||Oe}(),qo=0,pa=5;function ls(Oe,q){return Math.abs(q.x-Oe.x)>=pa||Math.abs(q.y-Oe.y)>=pa}var Os={type:"IDLE"};function ys(Oe){var q=Oe.cancel,ye=Oe.completed,ze=Oe.getPhase,at=Oe.setPhase;return[{eventName:"mousemove",fn:function(Kt){var Qt=Kt.button,Ir=Kt.clientX,Zr=Kt.clientY;if(Qt!==qo)return;var Tr={x:Ir,y:Zr},xr=ze();if(xr.type==="DRAGGING"){Kt.preventDefault(),xr.actions.move(Tr);return}xr.type==="PENDING"||fe(!1);var Wr=xr.point;if(!ls(Wr,Tr))return;Kt.preventDefault();var nn=xr.actions.fluidLift(Tr);at({type:"DRAGGING",actions:nn})}},{eventName:"mouseup",fn:function(Kt){var Qt=ze();if(Qt.type!=="DRAGGING"){q();return}Kt.preventDefault(),Qt.actions.drop({shouldBlockNextClick:!0}),ye()}},{eventName:"mousedown",fn:function(Kt){ze().type==="DRAGGING"&&Kt.preventDefault(),q()}},{eventName:"keydown",fn:function(Kt){var Qt=ze();if(Qt.type==="PENDING"){q();return}if(Kt.keyCode===Ni){Kt.preventDefault(),q();return}os(Kt)}},{eventName:"resize",fn:q},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ze().type==="PENDING"&&q()}},{eventName:"webkitmouseforcedown",fn:function(Kt){var Qt=ze();if(Qt.type!=="IDLE"||fe(!1),Qt.actions.shouldRespectForcePress()){q();return}Kt.preventDefault()}},{eventName:Es,fn:q}]}function ms(Oe){var q=Object(O.useRef)(Os),ye=Object(O.useRef)(de),ze=r(function(){return{eventName:"mousedown",fn:function(xr){if(xr.defaultPrevented)return;if(xr.button!==qo)return;if(xr.ctrlKey||xr.metaKey||xr.shiftKey||xr.altKey)return;var Wr=Oe.findClosestDraggableId(xr);if(!Wr)return;var nn=Oe.tryGetLock(Wr,Kt,{sourceEvent:xr});if(!nn)return;xr.preventDefault();var _n={x:xr.clientX,y:xr.clientY};ye.current(),Zr(nn,_n)}}},[Oe]),at=r(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(xr){if(xr.defaultPrevented)return;var Wr=Oe.findClosestDraggableId(xr);if(!Wr)return;var nn=Oe.findOptionsForDraggable(Wr);if(!nn)return;if(nn.shouldRespectForcePress)return;if(!Oe.canGetLock(Wr))return;xr.preventDefault()}}},[Oe]),Nt=i(function(){var xr={passive:!1,capture:!0};ye.current=ve(window,[at,ze],xr)},[at,ze]),Kt=i(function(){var Tr=q.current;if(Tr.type==="IDLE")return;q.current=Os,ye.current(),Nt()},[Nt]),Qt=i(function(){var Tr=q.current;Kt(),Tr.type==="DRAGGING"&&Tr.actions.cancel({shouldBlockNextClick:!0}),Tr.type==="PENDING"&&Tr.actions.abort()},[Kt]),Ir=i(function(){var xr={capture:!0,passive:!1},Wr=ys({cancel:Qt,completed:Kt,getPhase:function(){return q.current},setPhase:function(_n){q.current=_n}});ye.current=ve(window,Wr,xr)},[Qt,Kt]),Zr=i(function(xr,Wr){q.current.type==="IDLE"||fe(!1),q.current={type:"PENDING",point:Wr,actions:xr},Ir()},[Ir]);Ea(function(){return Nt(),function(){ye.current()}},[Nt])}var ws;function Pl(){}var ml=(ws={},ws[Ga]=!0,ws[Ta]=!0,ws[Do]=!0,ws[ao]=!0,ws);function Ws(Oe,q){function ye(){q(),Oe.cancel()}function ze(){q(),Oe.drop()}return[{eventName:"keydown",fn:function(Nt){if(Nt.keyCode===Ni){Nt.preventDefault(),ye();return}if(Nt.keyCode===Vi){Nt.preventDefault(),ze();return}if(Nt.keyCode===Xa){Nt.preventDefault(),Oe.moveDown();return}if(Nt.keyCode===as){Nt.preventDefault(),Oe.moveUp();return}if(Nt.keyCode===io){Nt.preventDefault(),Oe.moveRight();return}if(Nt.keyCode===fo){Nt.preventDefault(),Oe.moveLeft();return}if(ml[Nt.keyCode]){Nt.preventDefault();return}os(Nt)}},{eventName:"mousedown",fn:ye},{eventName:"mouseup",fn:ye},{eventName:"click",fn:ye},{eventName:"touchstart",fn:ye},{eventName:"resize",fn:ye},{eventName:"wheel",fn:ye,options:{passive:!0}},{eventName:Es,fn:ye}]}function fs(Oe){var q=Object(O.useRef)(Pl),ye=r(function(){return{eventName:"keydown",fn:function(Nt){if(Nt.defaultPrevented)return;if(Nt.keyCode!==Vi)return;var Kt=Oe.findClosestDraggableId(Nt);if(!Kt)return;var Qt=Oe.tryGetLock(Kt,Tr,{sourceEvent:Nt});if(!Qt)return;Nt.preventDefault();var Ir=!0,Zr=Qt.snapLift();q.current();function Tr(){Ir||fe(!1),Ir=!1,q.current(),ze()}q.current=ve(window,Ws(Zr,Tr),{capture:!0,passive:!1})}}},[Oe]),ze=i(function(){var Nt={passive:!1,capture:!0};q.current=ve(window,[ye],Nt)},[ye]);Ea(function(){return ze(),function(){q.current()}},[ze])}var _s={type:"IDLE"},gl=120,Bs=.15;function Us(Oe){var q=Oe.cancel,ye=Oe.getPhase;return[{eventName:"orientationchange",fn:q},{eventName:"resize",fn:q},{eventName:"contextmenu",fn:function(at){at.preventDefault()}},{eventName:"keydown",fn:function(at){if(ye().type!=="DRAGGING"){q();return}at.keyCode===Ni&&at.preventDefault(),q()}},{eventName:Es,fn:q}]}function Qs(Oe){var q=Oe.cancel,ye=Oe.completed,ze=Oe.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Nt){var Kt=ze();if(Kt.type!=="DRAGGING"){q();return}Kt.hasMoved=!0;var Qt=Nt.touches[0],Ir=Qt.clientX,Zr=Qt.clientY,Tr={x:Ir,y:Zr};Nt.preventDefault(),Kt.actions.move(Tr)}},{eventName:"touchend",fn:function(Nt){var Kt=ze();if(Kt.type!=="DRAGGING"){q();return}Nt.preventDefault(),Kt.actions.drop({shouldBlockNextClick:!0}),ye()}},{eventName:"touchcancel",fn:function(Nt){if(ze().type!=="DRAGGING"){q();return}Nt.preventDefault(),q()}},{eventName:"touchforcechange",fn:function(Nt){var Kt=ze();Kt.type!=="IDLE"||fe(!1);var Qt=Nt.touches[0];if(!Qt)return;var Ir=Qt.force>=Bs;if(!Ir)return;var Zr=Kt.actions.shouldRespectForcePress();if(Kt.type==="PENDING"){Zr&&q();return}if(Zr){if(Kt.hasMoved){Nt.preventDefault();return}q();return}Nt.preventDefault()}},{eventName:Es,fn:q}]}function al(Oe){var q=Object(O.useRef)(_s),ye=Object(O.useRef)(de),ze=i(function(){return q.current},[]),at=i(function(nn){q.current=nn},[]),Nt=r(function(){return{eventName:"touchstart",fn:function(nn){if(nn.defaultPrevented)return;var _n=Oe.findClosestDraggableId(nn);if(!_n)return;var gi=Oe.tryGetLock(_n,Qt,{sourceEvent:nn});if(!gi)return;var Ai=nn.touches[0],Qi=Ai.clientX,Bi=Ai.clientY,Ma={x:Qi,y:Bi};ye.current(),xr(gi,Ma)}}},[Oe]),Kt=i(function(){var nn={capture:!0,passive:!1};ye.current=ve(window,[Nt],nn)},[Nt]),Qt=i(function(){var Wr=q.current;if(Wr.type==="IDLE")return;Wr.type==="PENDING"&&clearTimeout(Wr.longPressTimerId),at(_s),ye.current(),Kt()},[Kt,at]),Ir=i(function(){var Wr=q.current;Qt(),Wr.type==="DRAGGING"&&Wr.actions.cancel({shouldBlockNextClick:!0}),Wr.type==="PENDING"&&Wr.actions.abort()},[Qt]),Zr=i(function(){var nn={capture:!0,passive:!1},_n={cancel:Ir,completed:Qt,getPhase:ze},gi=ve(window,Qs(_n),nn),Ai=ve(window,Us(_n),nn);ye.current=function(){gi(),Ai()}},[Ir,ze,Qt]),Tr=i(function(){var nn=ze();nn.type==="PENDING"||fe(!1);var _n=nn.actions.fluidLift(nn.point);at({type:"DRAGGING",actions:_n,hasMoved:!1})},[ze,at]),xr=i(function(nn,_n){ze().type==="IDLE"||fe(!1);var gi=setTimeout(Tr,gl);at({type:"PENDING",point:_n,actions:nn,longPressTimerId:gi}),Zr()},[Zr,ze,at,Tr]);Ea(function(){return Kt(),function(){ye.current();var _n=ze();_n.type==="PENDING"&&(clearTimeout(_n.longPressTimerId),at(_s))}},[ze,Kt,at]),Ea(function(){var nn=ve(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return nn},[])}function El(Oe){Vt(function(){var q=cn(Oe);Or(function(){q.current.length===Oe.length||fe(!1)})})}var bl={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function ol(Oe,q){if(q==null)return!1;var ye=Boolean(bl[q.tagName.toLowerCase()]);if(ye)return!0;var ze=q.getAttribute("contenteditable");return ze==="true"||ze===""?!0:q===Oe?!1:ol(Oe,q.parentElement)}function Gs(Oe,q){var ye=q.target;return Go(ye)?ol(Oe,ye):!1}var zs=function(q){return e(q.getBoundingClientRect()).center};function vl(Oe){return Oe instanceof Vo(Oe).Element}var Xs=function(){var Oe="matches";if(typeof document=="undefined")return Oe;var q=[Oe,"msMatchesSelector","webkitMatchesSelector"],ye=ee(q,function(ze){return ze in Element.prototype});return ye||Oe}();function sl(Oe,q){return Oe==null?null:Oe[Xs](q)?Oe:sl(Oe.parentElement,q)}function dl(Oe,q){return Oe.closest?Oe.closest(q):sl(Oe,q)}function rl(Oe){return"["+No.contextId+'="'+Oe+'"]'}function nl(Oe,q){var ye=q.target;if(!vl(ye))return null;var ze=rl(Oe),at=dl(ye,ze);return at&&Go(at)?at:null}function Tl(Oe,q){var ye=nl(Oe,q);return ye?ye.getAttribute(No.draggableId):null}function Rs(Oe,q){var ye="["+Po.contextId+'="'+Oe+'"]',ze=lt(document.querySelectorAll(ye)),at=ee(ze,function(Nt){return Nt.getAttribute(Po.id)===q});return at&&Go(at)?at:null}function bs(Oe){Oe.preventDefault()}function Ms(Oe){var q=Oe.expected,ye=Oe.phase,ze=Oe.isLockActive,at=Oe.shouldWarn;return ze()?!(q!==ye):!1}function Ts(Oe){var q=Oe.lockAPI,ye=Oe.store,ze=Oe.registry,at=Oe.draggableId;if(q.isClaimed())return!1;var Nt=ze.draggable.findById(at);return Nt&&Nt.options.isEnabled?!!Wn(ye.getState(),at):!1}function Zs(Oe){var q=Oe.lockAPI,ye=Oe.contextId,ze=Oe.store,at=Oe.registry,Nt=Oe.draggableId,Kt=Oe.forceSensorStop,Qt=Oe.sourceEvent,Ir=Ts({lockAPI:q,store:ze,registry:at,draggableId:Nt});if(!Ir)return null;var Zr=at.draggable.getById(Nt),Tr=Rs(ye,Zr.descriptor.id);if(!Tr)return null;if(Qt&&!Zr.options.canDragInteractiveElements&&Gs(Tr,Qt))return null;var xr=q.claim(Kt||de),Wr="PRE_DRAG";function nn(){return Zr.options.shouldRespectForcePress}function _n(){return q.isActive(xr)}function gi(Ba,Ro){Ms({expected:Ba,phase:Wr,isLockActive:_n,shouldWarn:!0})&&ze.dispatch(Ro())}var Ai=gi.bind(null,"DRAGGING");function Qi(Ba){function Ro(){q.release(),Wr="COMPLETED"}Wr!=="PRE_DRAG"&&(Ro(),Wr==="PRE_DRAG"||fe(!1)),ze.dispatch(Ia(Ba.liftActionArgs)),Wr="DRAGGING";function Zo(P,K){if(K===void 0&&(K={shouldBlockNextClick:!1}),Ba.cleanup(),K.shouldBlockNextClick){var $=ve(window,[{eventName:"click",fn:bs,options:{once:!0,passive:!1,capture:!0}}]);setTimeout($)}Ro(),ze.dispatch(rn({reason:P}))}return Object(A.a)({isActive:function(){return Ms({expected:"DRAGGING",phase:Wr,isLockActive:_n,shouldWarn:!1})},shouldRespectForcePress:nn,drop:function(K){return Zo("DROP",K)},cancel:function(K){return Zo("CANCEL",K)}},Ba.actions)}function Bi(Ba){var Ro=N(function(P){Ai(function(){return yo({client:P})})}),Zo=Qi({liftActionArgs:{id:Nt,clientSelection:Ba,movementMode:"FLUID"},cleanup:function(){return Ro.cancel()},actions:{move:Ro}});return Object(A.a)({},Zo,{move:Ro})}function Ma(){var Ba={moveUp:function(){return Ai(hs)},moveRight:function(){return Ai(wo)},moveDown:function(){return Ai(Jo)},moveLeft:function(){return Ai(_o)}};return Qi({liftActionArgs:{id:Nt,clientSelection:zs(Tr),movementMode:"SNAP"},cleanup:de,actions:Ba})}function ea(){var Ba=Ms({expected:"PRE_DRAG",phase:Wr,isLockActive:_n,shouldWarn:!0});Ba&&q.release()}var oo={isActive:function(){return Ms({expected:"PRE_DRAG",phase:Wr,isLockActive:_n,shouldWarn:!1})},shouldRespectForcePress:nn,fluidLift:Bi,snapLift:Ma,abort:ea};return oo}var hl=[ms,fs,al];function wl(Oe){var q=Oe.contextId,ye=Oe.store,ze=Oe.registry,at=Oe.customSensors,Nt=Oe.enableDefaultSensors,Kt=[].concat(Nt?hl:[],at||[]),Qt=Object(O.useState)(function(){return jn()})[0],Ir=i(function(Bi,Ma){Bi.isDragging&&!Ma.isDragging&&Qt.tryAbandon()},[Qt]);Ea(function(){var Bi=ye.getState(),Ma=ye.subscribe(function(){var ea=ye.getState();Ir(Bi,ea),Bi=ea});return Ma},[Qt,ye,Ir]),Ea(function(){return Qt.tryAbandon},[Qt.tryAbandon]);var Zr=i(function(Qi){return Ts({lockAPI:Qt,registry:ze,store:ye,draggableId:Qi})},[Qt,ze,ye]),Tr=i(function(Qi,Bi,Ma){return Zs({lockAPI:Qt,registry:ze,contextId:q,store:ye,draggableId:Qi,forceSensorStop:Bi,sourceEvent:Ma&&Ma.sourceEvent?Ma.sourceEvent:null})},[q,Qt,ze,ye]),xr=i(function(Qi){return Tl(q,Qi)},[q]),Wr=i(function(Qi){var Bi=ze.draggable.findById(Qi);return Bi?Bi.options:null},[ze.draggable]),nn=i(function(){if(!Qt.isClaimed())return;Qt.tryAbandon(),ye.getState().phase!=="IDLE"&&ye.dispatch(Bo())},[Qt,ye]),_n=i(Qt.isClaimed,[Qt]),gi=r(function(){return{canGetLock:Zr,tryGetLock:Tr,findClosestDraggableId:xr,findOptionsForDraggable:Wr,tryReleaseLock:nn,isLockClaimed:_n}},[Zr,Tr,xr,Wr,nn,_n]);El(Kt);for(var Ai=0;Ai<Kt.length;Ai++)Kt[Ai](gi)}var Kl=function(q){return{onBeforeCapture:q.onBeforeCapture,onBeforeDragStart:q.onBeforeDragStart,onDragStart:q.onDragStart,onDragEnd:q.onDragEnd,onDragUpdate:q.onDragUpdate}};function il(Oe){return Oe.current||fe(!1),Oe.current}function fl(Oe){var q=Oe.contextId,ye=Oe.setCallbacks,ze=Oe.sensors,at=Oe.nonce,Nt=Oe.dragHandleUsageInstructions,Kt=Object(O.useRef)(null);Yr();var Qt=cn(Oe),Ir=i(function(){return Kl(Qt.current)},[Qt]),Zr=Ao(q),Tr=Pt({contextId:q,text:Nt}),xr=rs(q,at),Wr=i(function(P){il(Kt).dispatch(P)},[]),nn=r(function(){return Object(S.b)({publishWhileDragging:Qa,updateDroppableScroll:po,updateDroppableIsEnabled:Mo,updateDroppableIsCombineEnabled:Fo,collectionStarting:Wo},Wr)},[Wr]),_n=Io(),gi=r(function(){return Kn(_n,nn)},[_n,nn]),Ai=r(function(){return Va(Object(A.a)({scrollWindow:Ln,scrollDroppable:gi.scrollDroppable},Object(S.b)({move:yo},Wr)))},[gi.scrollDroppable,Wr]),Qi=Yo(q),Bi=r(function(){return Gt({announce:Zr,autoScroller:Ai,dimensionMarshal:gi,focusMarshal:Qi,getResponders:Ir,styleMarshal:xr})},[Zr,Ai,gi,Qi,Ir,xr]);Kt.current=Bi;var Ma=i(function(){var P=il(Kt),K=P.getState();K.phase!=="IDLE"&&P.dispatch(Bo())},[]),ea=i(function(){var P=il(Kt).getState();return P.isDragging||P.phase==="DROP_ANIMATING"},[]),oo=r(function(){return{isDragging:ea,tryAbort:Ma}},[ea,Ma]);ye(oo);var Ba=i(function(P){return Wn(il(Kt).getState(),P)},[]),Ro=i(function(){return ki(il(Kt).getState())},[]),Zo=r(function(){return{marshal:gi,focus:Qi,contextId:q,canLift:Ba,isMovementAllowed:Ro,dragHandleUsageInstructionsId:Tr,registry:_n}},[q,gi,Tr,Qi,Ba,Ro,_n]);return wl({contextId:q,store:Bi,registry:_n,customSensors:ze,enableDefaultSensors:Oe.enableDefaultSensors!==!1}),Object(O.useEffect)(function(){return Ma},[Ma]),x.a.createElement(Kr.Provider,{value:Zo},x.a.createElement(g.a,{context:zo,store:Bi},Oe.children))}var kl=0;function gu(){kl=0}function Jl(){return r(function(){return""+kl++},[])}function Zl(){gu(),is()}function $l(Oe){var q=Jl(),ye=Oe.dragHandleUsageInstructions||ue.dragHandleUsageInstructions;return x.a.createElement(ke,null,function(ze){return x.a.createElement(fl,{nonce:Oe.nonce,contextId:q,setCallbacks:ze,dragHandleUsageInstructions:ye,enableDefaultSensors:Oe.enableDefaultSensors,sensors:Oe.sensors,onBeforeCapture:Oe.onBeforeCapture,onBeforeDragStart:Oe.onBeforeDragStart,onDragStart:Oe.onDragStart,onDragUpdate:Oe.onDragUpdate,onDragEnd:Oe.onDragEnd},Oe.children)})}var Gl=function(q){return function(ye){return q===ye}},$s=Gl("scroll"),ll=Gl("auto"),pl=Gl("visible"),Nl=function(q,ye){return ye(q.overflowX)||ye(q.overflowY)},ou=function(q,ye){return ye(q.overflowX)&&ye(q.overflowY)},ql=function(q){var ye=window.getComputedStyle(q),ze={overflowX:ye.overflowX,overflowY:ye.overflowY};return Nl(ze,$s)||Nl(ze,ll)},eu=function(){return!1;var q,ye;if(!ql(q))return!1;var ze,at;if(ou(at,pl))return!1},el=function Oe(q){return q==null?null:q===document.body?eu()?q:null:q===document.documentElement?null:ql(q)?q:Oe(q.parentElement)},tu=function(q){if(!q)return;var ye=el(q.parentElement);if(!ye)return},ru=function(q){return{x:q.scrollLeft,y:q.scrollTop}},su=function Oe(q){if(!q)return!1;var ye=window.getComputedStyle(q);return ye.position==="fixed"?!0:Oe(q.parentElement)},Cl=function(q){var ye=el(q),ze=su(q);return{closestScrollable:ye,isFixedOnPage:ze}},Dl=function(q){var ye=q.descriptor,ze=q.isEnabled,at=q.isCombineEnabled,Nt=q.isFixedOnPage,Kt=q.direction,Qt=q.client,Ir=q.page,Zr=q.closest,Tr=function(){if(!Zr)return null;var _n=Zr.scrollSize,gi=Zr.client,Ai=Gr({scrollHeight:_n.scrollHeight,scrollWidth:_n.scrollWidth,height:gi.paddingBox.height,width:gi.paddingBox.width});return{pageMarginBox:Zr.page.marginBox,frameClient:gi,scrollSize:_n,shouldClipSubject:Zr.shouldClipSubject,scroll:{initial:Zr.scroll,current:Zr.scroll,max:Ai,diff:{value:Ce,displacement:Ce}}}}(),xr=Kt==="vertical"?Rn:kt,Wr=Xe({page:Ir,withPlaceholder:null,axis:xr,frame:Tr}),nn={descriptor:ye,isCombineEnabled:at,isFixedOnPage:Nt,axis:xr,isEnabled:ze,client:Qt,page:Ir,frame:Tr,subject:Wr};return nn},Fl=function(q,ye){var ze=E(q);if(!ye)return ze;if(q!==ye)return ze;var at=ze.paddingBox.top-ye.scrollTop,Nt=ze.paddingBox.left-ye.scrollLeft,Kt=at+ye.scrollHeight,Qt=Nt+ye.scrollWidth,Ir={top:at,right:Qt,bottom:Kt,left:Nt},Zr=l(Ir,ze.border),Tr=u({borderBox:Zr,margin:ze.margin,border:ze.border,padding:ze.padding});return Tr},Xl=function(q){var ye=q.ref,ze=q.descriptor,at=q.env,Nt=q.windowScroll,Kt=q.direction,Qt=q.isDropDisabled,Ir=q.isCombineEnabled,Zr=q.shouldClipSubject,Tr=at.closestScrollable,xr=Fl(ye,Tr),Wr=v(xr,Nt),nn=function(){if(!Tr)return null;var gi=E(Tr),Ai={scrollHeight:Tr.scrollHeight,scrollWidth:Tr.scrollWidth};return{client:gi,page:v(gi,Nt),scroll:ru(Tr),scrollSize:Ai,shouldClipSubject:Zr}}(),_n=Dl({descriptor:ze,isEnabled:!Qt,isCombineEnabled:Ir,isFixedOnPage:at.isFixedOnPage,direction:Kt,client:xr,page:Wr,closest:nn});return _n},jo={passive:!1},Ho={passive:!0},us=function(q){return q.shouldPublishImmediately?jo:Ho};function cs(Oe){var q=Object(O.useContext)(Oe);return q||fe(!1),q}var Cs=function(q){return q&&q.env.closestScrollable||null};function ds(Oe){var q=Object(O.useRef)(null),ye=cs(Kr),ze=Za("droppable"),at=ye.registry,Nt=ye.marshal,Kt=cn(Oe),Qt=r(function(){return{id:Oe.droppableId,type:Oe.type,mode:Oe.mode}},[Oe.droppableId,Oe.mode,Oe.type]),Ir=Object(O.useRef)(Qt),Zr=r(function(){return I(function(ea,oo){q.current||fe(!1);var Ba={x:ea,y:oo};Nt.updateDroppableScroll(Qt.id,Ba)})},[Qt.id,Nt]),Tr=i(function(){var ea=q.current;return!ea||!ea.env.closestScrollable?Ce:ru(ea.env.closestScrollable)},[]),xr=i(function(){var ea=Tr();Zr(ea.x,ea.y)},[Tr,Zr]),Wr=r(function(){return N(xr)},[xr]),nn=i(function(){var ea=q.current,oo=Cs(ea);ea&&oo||fe(!1);var Ba=ea.scrollOptions;if(Ba.shouldPublishImmediately){xr();return}Wr()},[Wr,xr]),_n=i(function(ea,oo){q.current&&fe(!1);var Ba=Kt.current,Ro=Ba.getDroppableRef();Ro||fe(!1);var Zo=Cl(Ro),P={ref:Ro,descriptor:Qt,env:Zo,scrollOptions:oo};q.current=P;var K=Xl({ref:Ro,descriptor:Qt,env:Zo,windowScroll:ea,direction:Ba.direction,isDropDisabled:Ba.isDropDisabled,isCombineEnabled:Ba.isCombineEnabled,shouldClipSubject:!Ba.ignoreContainerClipping}),$=Zo.closestScrollable;return $&&($.setAttribute(Uo.contextId,ye.contextId),$.addEventListener("scroll",nn,us(P.scrollOptions))),K},[ye.contextId,Qt,nn,Kt]),gi=i(function(){var ea=q.current,oo=Cs(ea);return ea&&oo||fe(!1),ru(oo)},[]),Ai=i(function(){var ea=q.current;ea||fe(!1);var oo=Cs(ea);if(q.current=null,!oo)return;Wr.cancel(),oo.removeAttribute(Uo.contextId),oo.removeEventListener("scroll",nn,us(ea.scrollOptions))},[nn,Wr]),Qi=i(function(ea){var oo=q.current;oo||fe(!1);var Ba=Cs(oo);Ba||fe(!1),Ba.scrollTop+=ea.y,Ba.scrollLeft+=ea.x},[]),Bi=r(function(){return{getDimensionAndWatchScroll:_n,getScrollWhileDragging:gi,dragStopped:Ai,scroll:Qi}},[Ai,_n,gi,Qi]),Ma=r(function(){return{uniqueId:ze,descriptor:Qt,callbacks:Bi}},[Bi,Qt,ze]);Ea(function(){return Ir.current=Ma.descriptor,at.droppable.register(Ma),function(){q.current&&Ai(),at.droppable.unregister(Ma)}},[Bi,Qt,Ai,Ma,Nt,at.droppable]),Ea(function(){if(!q.current)return;Nt.updateDroppableIsEnabled(Ir.current.id,!Oe.isDropDisabled)},[Oe.isDropDisabled,Nt]),Ea(function(){if(!q.current)return;Nt.updateDroppableIsCombineEnabled(Ir.current.id,Oe.isCombineEnabled)},[Oe.isCombineEnabled,Nt])}function Js(){}var ss={width:0,height:0,margin:Ht},Is=function(q){var ye=q.isAnimatingOpenOnMount,ze=q.placeholder,at=q.animate;return ye||at==="close"?ss:{height:ze.client.borderBox.height,width:ze.client.borderBox.width,margin:ze.client.margin}},Al=function(q){var ye=q.isAnimatingOpenOnMount,ze=q.placeholder,at=q.animate,Nt=Is({isAnimatingOpenOnMount:ye,placeholder:ze,animate:at});return{display:ze.display,boxSizing:"border-box",width:Nt.width,height:Nt.height,marginTop:Nt.margin.top,marginRight:Nt.margin.right,marginBottom:Nt.margin.bottom,marginLeft:Nt.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:at!=="none"?yi.placeholder:null}};function lu(Oe){var q=Object(O.useRef)(null),ye=i(function(){if(!q.current)return;clearTimeout(q.current),q.current=null},[]),ze=Oe.animate,at=Oe.onTransitionEnd,Nt=Oe.onClose,Kt=Oe.contextId,Qt=Object(O.useState)(Oe.animate==="open"),Ir=Qt[0],Zr=Qt[1];Object(O.useEffect)(function(){return Ir?ze!=="open"?(ye(),Zr(!1),Js):q.current?Js:(q.current=setTimeout(function(){q.current=null,Zr(!1)}),ye):Js},[ze,Ir,ye]);var Tr=i(function(Wr){if(Wr.propertyName!=="height")return;at(),ze==="close"&&Nt()},[ze,Nt,at]),xr=Al({isAnimatingOpenOnMount:Ir,animate:Oe.animate,placeholder:Oe.placeholder});return x.a.createElement(Oe.placeholder.tagName,{style:xr,"data-rbd-placeholder-context-id":Kt,onTransitionEnd:Tr,ref:Oe.innerRef})}var uu=x.a.memo(lu),Yl=x.a.createContext(null);function nu(Oe){Oe&&Go(Oe)||fe(!1)}function vu(Oe){return typeof Oe=="boolean"}function yu(Oe,q){q.forEach(function(ye){return ye(Oe)})}var bu=[function(q){var ye=q.props;ye.droppableId||fe(!1),typeof ye.droppableId=="string"||fe(!1)},function(q){var ye=q.props;vu(ye.isDropDisabled)||fe(!1),vu(ye.isCombineEnabled)||fe(!1),vu(ye.ignoreContainerClipping)||fe(!1)},function(q){var ye=q.getDroppableRef;nu(ye())}],_l=[function(q){var ye=q.props,ze=q.getPlaceholderRef;if(!ye.placeholder)return;var at=ze();if(at)return}],Rl=[function(q){var ye=q.props;ye.renderClone||fe(!1)},function(q){var ye=q.getPlaceholderRef;ye()&&fe(!1)}];function Wl(Oe){Or(function(){yu(Oe,bu),Oe.props.mode==="standard"&&yu(Oe,_l),Oe.props.mode==="virtual"&&yu(Oe,Rl)})}var es=function(Oe){Object(C.a)(q,Oe);function q(){for(var ze,at=arguments.length,Nt=new Array(at),Kt=0;Kt<at;Kt++)Nt[Kt]=arguments[Kt];return ze=Oe.call.apply(Oe,[this].concat(Nt))||this,ze.state={isVisible:Boolean(ze.props.on),data:ze.props.on,animate:ze.props.shouldAnimate&&ze.props.on?"open":"none"},ze.onClose=function(){if(ze.state.animate!=="close")return;ze.setState({isVisible:!1})},ze}q.getDerivedStateFromProps=function(at,Nt){return at.shouldAnimate?at.on?{isVisible:!0,data:at.on,animate:"open"}:Nt.isVisible?{isVisible:!0,data:Nt.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(at.on),data:at.on,animate:"none"}};var ye=q.prototype;return ye.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)},q}(x.a.PureComponent),$a={dragging:5e3,dropAnimating:4500},Eo=function(q,ye){return ye?yi.drop(ye.duration):q?yi.snap:yi.fluid},Ko=function(q,ye){return q?ye?Ci.opacity.drop:Ci.opacity.combining:null},js=function(q){return q.forceShouldAnimate!=null?q.forceShouldAnimate:q.mode==="SNAP"};function Bl(Oe){var q=Oe.dimension,ye=q.client,ze=Oe.offset,at=Oe.combineWith,Nt=Oe.dropping,Kt=Boolean(at),Qt=js(Oe),Ir=Boolean(Nt),Zr=Ir?ha.drop(ze,Kt):ha.moveTo(ze),Tr={position:"fixed",top:ye.marginBox.top,left:ye.marginBox.left,boxSizing:"border-box",width:ye.borderBox.width,height:ye.borderBox.height,transition:Eo(Qt,Nt),transform:Zr,opacity:Ko(Kt,Ir),zIndex:Ir?$a.dropAnimating:$a.dragging,pointerEvents:"none"};return Tr}function Ul(Oe){return{transform:ha.moveTo(Oe.offset),transition:Oe.shouldAnimateDisplacement?null:"none"}}function Ol(Oe){return Oe.type==="DRAGGING"?Bl(Oe):Ul(Oe)}function Ll(Oe,q,ye){ye===void 0&&(ye=Ce);var ze=window.getComputedStyle(q),at=q.getBoundingClientRect(),Nt=y(at,ze),Kt=v(Nt,ye),Qt={client:Nt,tagName:q.tagName.toLowerCase(),display:ze.display},Ir={x:Nt.marginBox.width,y:Nt.marginBox.height},Zr={descriptor:Oe,placeholder:Qt,displaceBy:Ir,client:Nt,page:Kt};return Zr}function jl(Oe){var q=Za("draggable"),ye=Oe.descriptor,ze=Oe.registry,at=Oe.getDraggableRef,Nt=Oe.canDragInteractiveElements,Kt=Oe.shouldRespectForcePress,Qt=Oe.isEnabled,Ir=r(function(){return{canDragInteractiveElements:Nt,shouldRespectForcePress:Kt,isEnabled:Qt}},[Nt,Qt,Kt]),Zr=i(function(nn){var _n=at();return _n||fe(!1),Ll(ye,_n,nn)},[ye,at]),Tr=r(function(){return{uniqueId:q,descriptor:ye,options:Ir,getDimension:Zr}},[ye,Zr,Ir,q]),xr=Object(O.useRef)(Tr),Wr=Object(O.useRef)(!0);Ea(function(){return ze.draggable.register(xr.current),function(){return ze.draggable.unregister(xr.current)}},[ze.draggable]),Ea(function(){if(Wr.current){Wr.current=!1;return}var nn=xr.current;xr.current=Tr,ze.draggable.update(Tr,nn)},[Tr,ze.draggable])}function Hl(Oe,q,ye){Or(function(){function ze(Nt){return"Draggable[id: "+Nt+"]: "}var at=Oe.draggableId;if(at||fe(!1),typeof at=="string"||fe(!1),X(Oe.index)||fe(!1),Oe.mapped.type==="DRAGGING")return;nu(ye()),Oe.isEnabled&&(Qo(q,at)||fe(!1))})}function Vs(Oe){Vt(function(){var q=Object(O.useRef)(Oe);Or(function(){Oe===q.current||fe(!1)},[Oe])})}function cu(Oe){Oe.preventDefault()}function wu(Oe){var q=Object(O.useRef)(null),ye=i(function(P){q.current=P},[]),ze=i(function(){return q.current},[]),at=cs(Kr),Nt=at.contextId,Kt=at.dragHandleUsageInstructionsId,Qt=at.registry,Ir=cs(Yl),Zr=Ir.type,Tr=Ir.droppableId,xr=r(function(){return{id:Oe.draggableId,index:Oe.index,type:Zr,droppableId:Tr}},[Oe.draggableId,Oe.index,Zr,Tr]),Wr=Oe.children,nn=Oe.draggableId,_n=Oe.isEnabled,gi=Oe.shouldRespectForcePress,Ai=Oe.canDragInteractiveElements,Qi=Oe.isClone,Bi=Oe.mapped,Ma=Oe.dropAnimationFinished;if(Hl(Oe,Nt,ze),Vs(Qi),!Qi){var ea=r(function(){return{descriptor:xr,registry:Qt,getDraggableRef:ze,canDragInteractiveElements:Ai,shouldRespectForcePress:gi,isEnabled:_n}},[xr,Qt,ze,Ai,gi,_n]);jl(ea)}var oo=r(function(){return _n?{tabIndex:0,role:"button","aria-describedby":Kt,"data-rbd-drag-handle-draggable-id":nn,"data-rbd-drag-handle-context-id":Nt,draggable:!1,onDragStart:cu}:null},[Nt,Kt,nn,_n]),Ba=i(function(P){if(Bi.type!=="DRAGGING")return;if(!Bi.dropping)return;if(P.propertyName!=="transform")return;Ma()},[Ma,Bi]),Ro=r(function(){var P=Ol(Bi),K=Bi.type==="DRAGGING"&&Bi.dropping?Ba:null,$={innerRef:ye,draggableProps:{"data-rbd-draggable-context-id":Nt,"data-rbd-draggable-id":nn,style:P,onTransitionEnd:K},dragHandleProps:oo};return $},[Nt,oo,nn,Bi,Ba,ye]),Zo=r(function(){return{draggableId:xr.id,type:xr.type,source:{index:xr.index,droppableId:xr.droppableId}}},[xr.droppableId,xr.id,xr.index,xr.type]);return Wr(Ro,Bi.snapshot,Zo)}var Au=function(q,ye){return q===ye},_u=function(q){var ye=q.combine,ze=q.destination;return ze?ze.droppableId:ye?ye.droppableId:null},Vu=function(q){return q.combine?q.combine.draggableId:null},Fu=function(q){return q.at&&q.at.type==="COMBINE"?q.at.combine.draggableId:null};function ec(){var Oe=I(function(at,Nt){return{x:at,y:Nt}}),q=I(function(at,Nt,Kt,Qt,Ir){return{isDragging:!0,isClone:Nt,isDropAnimating:Boolean(Ir),dropAnimation:Ir,mode:at,draggingOver:Kt,combineWith:Qt,combineTargetFor:null}}),ye=I(function(at,Nt,Kt,Qt,Ir,Zr,Tr){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:Ir,combineWith:Zr,mode:Nt,offset:at,dimension:Kt,forceShouldAnimate:Tr,snapshot:q(Nt,Qt,Ir,Zr,null)}}}),ze=function(Nt,Kt){if(Nt.isDragging){if(Nt.critical.draggable.id!==Kt.draggableId)return null;var Qt=Nt.current.client.offset,Ir=Nt.dimensions.draggables[Kt.draggableId],Zr=On(Nt.impact),Tr=Fu(Nt.impact),xr=Nt.forceShouldAnimate;return ye(Oe(Qt.x,Qt.y),Nt.movementMode,Ir,Kt.isClone,Zr,Tr,xr)}if(Nt.phase==="DROP_ANIMATING"){var Wr=Nt.completed;if(Wr.result.draggableId!==Kt.draggableId)return null;var nn=Kt.isClone,_n=Nt.dimensions.draggables[Kt.draggableId],gi=Wr.result,Ai=gi.mode,Qi=_u(gi),Bi=Vu(gi),Ma=Nt.dropDuration,ea={duration:Ma,curve:Ii.drop,moveTo:Nt.newHomeClientOffset,opacity:Bi?Ci.opacity.drop:null,scale:Bi?Ci.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Nt.newHomeClientOffset,dimension:_n,dropping:ea,draggingOver:Qi,combineWith:Bi,mode:Ai,forceShouldAnimate:null,snapshot:q(Ai,nn,Qi,Bi,ea)}}}return null};return ze}function Bu(Oe){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:Oe,combineWith:null}}var Gu={mapped:{type:"SECONDARY",offset:Ce,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Bu(null)}};function Xu(){var Oe=I(function(Kt,Qt){return{x:Kt,y:Qt}}),q=I(Bu),ye=I(function(Kt,Qt,Ir){return Qt===void 0&&(Qt=null),{mapped:{type:"SECONDARY",offset:Kt,combineTargetFor:Qt,shouldAnimateDisplacement:Ir,snapshot:q(Qt)}}}),ze=function(Qt){return Qt?ye(Ce,Qt,!0):null},at=function(Qt,Ir,Zr,Tr){var xr=Zr.displaced.visible[Qt],Wr=Boolean(Tr.inVirtualList&&Tr.effected[Qt]),nn=lr(Zr),_n=nn&&nn.draggableId===Qt?Ir:null;if(!xr){if(!Wr)return ze(_n);if(Zr.displaced.invisible[Qt])return null;var gi=Te(Tr.displacedBy.point),Ai=Oe(gi.x,gi.y);return ye(Ai,_n,!0)}if(Wr)return ze(_n);var Qi=Zr.displacedBy.point,Bi=Oe(Qi.x,Qi.y);return ye(Bi,_n,xr.shouldAnimate)},Nt=function(Qt,Ir){if(Qt.isDragging)return Qt.critical.draggable.id===Ir.draggableId?null:at(Ir.draggableId,Qt.critical.draggable.id,Qt.impact,Qt.afterCritical);if(Qt.phase==="DROP_ANIMATING"){var Zr=Qt.completed;return Zr.result.draggableId===Ir.draggableId?null:at(Ir.draggableId,Zr.result.draggableId,Zr.impact,Zr.afterCritical)}return null};return Nt}var Yu=function(){var q=ec(),ye=Xu(),ze=function(Nt,Kt){return q(Nt,Kt)||ye(Nt,Kt)||Gu};return ze},Uu={dropAnimationFinished:en},Ou=Object(g.c)(Yu,Uu,null,{context:zo,pure:!0,areStatePropsEqual:Au})(wu);function Ql(Oe){var q=cs(Yl),ye=q.isUsingCloneFor;return ye===Oe.draggableId&&!Oe.isClone?null:x.a.createElement(Ou,Oe)}function Iu(Oe){var q=typeof Oe.isDragDisabled=="boolean"?!Oe.isDragDisabled:!0,ye=Boolean(Oe.disableInteractiveElementBlocking),ze=Boolean(Oe.shouldRespectForcePress);return x.a.createElement(Ql,Object(A.a)({},Oe,{isClone:!1,isEnabled:q,canDragInteractiveElements:ye,shouldRespectForcePress:ze}))}function iu(Oe){var q=Object(O.useContext)(Kr);q||fe(!1);var ye=q.contextId,ze=q.isMovementAllowed,at=Object(O.useRef)(null),Nt=Object(O.useRef)(null),Kt=Oe.children,Qt=Oe.droppableId,Ir=Oe.type,Zr=Oe.mode,Tr=Oe.direction,xr=Oe.ignoreContainerClipping,Wr=Oe.isDropDisabled,nn=Oe.isCombineEnabled,_n=Oe.snapshot,gi=Oe.useClone,Ai=Oe.updateViewportMaxScroll,Qi=Oe.getContainerForClone,Bi=i(function(){return at.current},[]),Ma=i(function(re){at.current=re},[]),ea=i(function(){return Nt.current},[]),oo=i(function(re){Nt.current=re},[]);Wl({props:Oe,getDroppableRef:Bi,getPlaceholderRef:ea});var Ba=i(function(){ze()&&Ai({maxScroll:hr()})},[ze,Ai]);ds({droppableId:Qt,type:Ir,mode:Zr,direction:Tr,isDropDisabled:Wr,isCombineEnabled:nn,ignoreContainerClipping:xr,getDroppableRef:Bi});var Ro=x.a.createElement(es,{on:Oe.placeholder,shouldAnimate:Oe.shouldAnimatePlaceholder},function(re){var le=re.onClose,Me=re.data,pt=re.animate;return x.a.createElement(uu,{placeholder:Me,onClose:le,innerRef:oo,animate:pt,contextId:ye,onTransitionEnd:Ba})}),Zo=r(function(){return{innerRef:Ma,placeholder:Ro,droppableProps:{"data-rbd-droppable-id":Qt,"data-rbd-droppable-context-id":ye}}},[ye,Qt,Ro,Ma]),P=gi?gi.dragging.draggableId:null,K=r(function(){return{droppableId:Qt,type:Ir,isUsingCloneFor:P}},[Qt,P,Ir]);function $(){if(!gi)return null;var re=gi.dragging,le=gi.render,Me=x.a.createElement(Ql,{draggableId:re.draggableId,index:re.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(pt,jt){return le(pt,jt,re)});return R.a.createPortal(Me,Qi())}return x.a.createElement(Yl.Provider,{value:K},Kt(Zo,_n),$())}var Eu=function(q,ye){return q===ye.droppable.type},ge=function(q,ye){return ye.draggables[q.draggable.id]},He=function(){var q={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},ye=Object(A.a)({},q,{shouldAnimatePlaceholder:!1}),ze=I(function(Kt){return{draggableId:Kt.id,type:Kt.type,source:{index:Kt.index,droppableId:Kt.droppableId}}}),at=I(function(Kt,Qt,Ir,Zr,Tr,xr){var Wr=Tr.descriptor.id,nn=Tr.descriptor.droppableId===Kt;if(nn){var _n=xr?{render:xr,dragging:ze(Tr.descriptor)}:null,gi={isDraggingOver:Ir,draggingOverWith:Ir?Wr:null,draggingFromThisWith:Wr,isUsingPlaceholder:!0};return{placeholder:Tr.placeholder,shouldAnimatePlaceholder:!1,snapshot:gi,useClone:_n}}if(!Qt)return ye;if(!Zr)return q;var Ai={isDraggingOver:Ir,draggingOverWith:Wr,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Tr.placeholder,shouldAnimatePlaceholder:!0,snapshot:Ai,useClone:null}}),Nt=function(Qt,Ir){var Zr=Ir.droppableId,Tr=Ir.type,xr=!Ir.isDropDisabled,Wr=Ir.renderClone;if(Qt.isDragging){var nn=Qt.critical;if(!Eu(Tr,nn))return ye;var _n=ge(nn,Qt.dimensions),gi=On(Qt.impact)===Zr;return at(Zr,xr,gi,gi,_n,Wr)}if(Qt.phase==="DROP_ANIMATING"){var Ai=Qt.completed;if(!Eu(Tr,Ai.critical))return ye;var Qi=ge(Ai.critical,Qt.dimensions);return at(Zr,xr,_u(Ai.result)===Zr,On(Ai.impact)===Zr,Qi,Wr)}if(Qt.phase==="IDLE"&&Qt.completed&&!Qt.shouldFlush){var Bi=Qt.completed;if(!Eu(Tr,Bi.critical))return ye;var Ma=On(Bi.impact)===Zr,ea=Boolean(Bi.impact.at&&Bi.impact.at.type==="COMBINE"),oo=Bi.critical.droppable.id===Zr;return Ma?ea?q:ye:oo?q:ye}return ye};return Nt},ft={updateViewportMaxScroll:sa};function er(){return document.body||fe(!1),document.body}var Er={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:er},Xr=Object(g.c)(He,ft,null,{context:zo,pure:!0,areStatePropsEqual:Au})(iu);Xr.defaultProps=Er},ni6a:function(H,F,d){var O=d("pzxd"),x=d("mFDi"),C=d("gut8"),A=C.WILL_BE_RESTORED,S=new x,g=function(){};g.prototype={constructor:g,drawRectText:function(o,r){var i=this.style;r=i.textRect||r,this.__dirty&&O.normalizeTextStyle(i,!0);var n=i.text;if(n!=null&&(n+=""),!O.needDrawText(n,i))return;o.save();var e=this.transform;i.transformText?this.setTransform(o):e&&(S.copy(r),S.applyTransform(e),r=S),O.renderText(this,o,n,i,r,A),o.restore()}};var f=g;H.exports=f},nkfE:function(H,F,d){var O=d("bYtY"),x=d("ca2m"),C=d("bLfw"),A=d("+TT/"),S=A.getLayoutParams,g=A.mergeLayoutParam,f=d("jkPA"),c=["value","category","time","log"];function o(r,i,n,e){O.each(c,function(l){i.extend({type:r+"Axis."+l,mergeDefaultAndTheme:function(t,a){var s=this.layoutMode,u=s?S(t):{},h=a.getTheme();O.merge(t,h.get(l+"Axis")),O.merge(t,this.getDefaultOption()),t.type=n(r,t),s&&g(t,u,s)},optionUpdated:function(){var t=this.option;t.type==="category"&&(this.__ordinalMeta=f.createByAxisModel(this))},getCategories:function(t){var a=this.option;if(a.type==="category")return t?a.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:O.mergeAll([{},x[l+"Axis"],e],!0)})}),C.registerSubTypeDefaulter(r+"Axis",O.curry(n,r))}H.exports=o},noeP:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("UOVi");O.registerAction("dataZoom",function(A,S){var g=C.createLinkedNodesFinder(x.bind(S.eachComponent,S,"dataZoom"),C.eachAxisDim,function(c,o){return c.get(o.axisIndex)}),f=[];S.eachComponent({mainType:"dataZoom",query:A},function(c,o){f.push.apply(f,g(c).nodes)}),x.each(f,function(c,o){c.setRawRange({start:A.start,end:A.end,startValue:A.startValue,endValue:A.endValue})})})},o40c:function(H,F,d){var O=d("IwbS"),x=d("OS9S"),C=d("loD1"),A=d("aKvl"),S=O.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(o,r){var i=r.segs,n=r.curveness;if(r.polyline)for(var e=0;e<i.length;){var l=i[e++];if(l>0){o.moveTo(i[e++],i[e++]);for(var t=1;t<l;t++)o.lineTo(i[e++],i[e++])}}else for(var e=0;e<i.length;){var a=i[e++],s=i[e++],u=i[e++],h=i[e++];if(o.moveTo(a,s),n>0){var p=(a+u)/2-(s-h)*n,m=(s+h)/2-(u-a)*n;o.quadraticCurveTo(p,m,u,h)}else o.lineTo(u,h)}},findDataIndex:function(o,r){var i=this.shape,n=i.segs,e=i.curveness;if(i.polyline)for(var l=0,t=0;t<n.length;){var a=n[t++];if(a>0)for(var s=n[t++],u=n[t++],h=1;h<a;h++){var p=n[t++],m=n[t++];if(C.containStroke(s,u,p,m))return l}l++}else for(var l=0,t=0;t<n.length;){var s=n[t++],u=n[t++],p=n[t++],m=n[t++];if(e>0){var v=(s+p)/2-(u-m)*e,y=(u+m)/2-(p-s)*e;if(A.containStroke(s,u,v,y,p,m))return l}else if(C.containStroke(s,u,p,m))return l;l++}return-1}});function g(){this.group=new O.Group}var f=g.prototype;f.isPersistent=function(){return!this._incremental},f.updateData=function(o){this.group.removeAll();var r=new S({rectHover:!0,cursor:"default"});r.setShape({segs:o.getLayout("linesPoints")}),this._setCommon(r,o),this.group.add(r),this._incremental=null},f.incrementalPrepareUpdate=function(o){this.group.removeAll(),this._clearIncremental(),o.count()>5e5?(this._incremental||(this._incremental=new x({silent:!0})),this.group.add(this._incremental)):this._incremental=null},f.incrementalUpdate=function(o,r){var i=new S;i.setShape({segs:r.getLayout("linesPoints")}),this._setCommon(i,r,!!this._incremental),this._incremental?this._incremental.addDisplayable(i,!0):(i.rectHover=!0,i.cursor="default",i.__startIndex=o.start,this.group.add(i))},f.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},f._setCommon=function(o,r,i){var n=r.hostModel;o.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),o.useStyle(n.getModel("lineStyle").getLineStyle()),o.style.strokeNoScale=!0;var e=r.getVisual("color");e&&o.setStyle("stroke",e),o.setStyle("fill"),i||(o.seriesIndex=n.seriesIndex,o.on("mousemove",function(l){o.dataIndex=null;var t=o.findDataIndex(l.offsetX,l.offsetY);t>0&&(o.dataIndex=t+o.__startIndex)}))},f._clearIncremental=function(){var o=this._incremental;o&&o.clearDisplaybles()};var c=g;H.exports=c},oBaM:function(H,F,d){var O=d("T4UG"),x=d("5GtS"),C=d("bYtY"),A=d("7aKB"),S=A.encodeHTML,g=d("xKMd"),f=O.extend({type:"series.radar",dependencies:["radar"],init:function(o){f.superApply(this,"init",arguments),this.legendVisualProvider=new g(C.bind(this.getData,this),C.bind(this.getRawData,this))},getInitialData:function(o,r){return x(this,{generateCoord:"indicator_",generateCoordCount:Infinity})},formatTooltip:function(o){var r=this.getData(),i=this.coordinateSystem,n=i.getIndicatorAxes(),e=this.getData().getName(o);return S(e===""?this.name:e)+"<br/>"+C.map(n,function(l,t){var a=r.get(r.mapDimension(l.dim),o);return S(l.name+" : "+a)}).join("<br />")},getTooltipPosition:function(o){if(o!=null){for(var r=this.getData(),i=this.coordinateSystem,n=r.getValues(C.map(i.dimensions,function(a){return r.mapDimension(a)}),o,!0),e=0,l=n.length;e<l;e++)if(!isNaN(n[e])){var t=i.getIndicatorAxes();return i.coordToPoint(t[e].dataToCoord(n[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}}),c=f;H.exports=c},oE7X:function(H,F,d){var O=d("bLfw");O.registerSubTypeDefaulter("timeline",function(){return"slider"})},oIFs:function(H,F,d){},oRuE:function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.Iso10126={pad:function(C,A){var S=A*4,g=S-C.sigBytes%S;C.concat(O.lib.WordArray.random(g-1)).concat(O.lib.WordArray.create([g<<24],1))},unpad:function(C){var A=C.words[C.sigBytes-1>>>2]&255;C.sigBytes-=A}},O.pad.Iso10126})},oVpE:function(H,F,d){var O=d("bYtY"),x=d("IwbS"),C=d("mFDi"),A=d("6GrX"),S=A.calculateTextPosition,g=x.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(a,s){var u=s.cx,h=s.cy,p=s.width/2,m=s.height/2;a.moveTo(u,h-m),a.lineTo(u+p,h+m),a.lineTo(u-p,h+m),a.closePath()}}),f=x.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(a,s){var u=s.cx,h=s.cy,p=s.width/2,m=s.height/2;a.moveTo(u,h-m),a.lineTo(u+p,h),a.lineTo(u,h+m),a.lineTo(u-p,h),a.closePath()}}),c=x.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(a,s){var u=s.x,h=s.y,p=s.width/5*3,m=Math.max(p,s.height),v=p/2,y=v*v/(m-v),E=h-m+v+y,T=Math.asin(y/v),b=Math.cos(T)*v,w=Math.sin(T),_=Math.cos(T),I=v*.6,L=v*.7;a.moveTo(u-b,E+y),a.arc(u,E,v,Math.PI-T,Math.PI*2+T),a.bezierCurveTo(u+b-w*I,E+y+_*I,u,h-L,u,h),a.bezierCurveTo(u,h-L,u-b+w*I,E+y+_*I,u-b,E+y),a.closePath()}}),o=x.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(a,s){var u=s.height,h=s.width,p=s.x,m=s.y,v=h/3*2;a.moveTo(p,m),a.lineTo(p+v,m+u),a.lineTo(p,m+u/4*3),a.lineTo(p-v,m+u),a.lineTo(p,m),a.closePath()}}),r={line:x.Line,rect:x.Rect,roundRect:x.Rect,square:x.Rect,circle:x.Circle,diamond:f,pin:c,arrow:o,triangle:g},i={line:function(a,s,u,h,p){p.x1=a,p.y1=s+h/2,p.x2=a+u,p.y2=s+h/2},rect:function(a,s,u,h,p){p.x=a,p.y=s,p.width=u,p.height=h},roundRect:function(a,s,u,h,p){p.x=a,p.y=s,p.width=u,p.height=h,p.r=Math.min(u,h)/4},square:function(a,s,u,h,p){var m=Math.min(u,h);p.x=a,p.y=s,p.width=m,p.height=m},circle:function(a,s,u,h,p){p.cx=a+u/2,p.cy=s+h/2,p.r=Math.min(u,h)/2},diamond:function(a,s,u,h,p){p.cx=a+u/2,p.cy=s+h/2,p.width=u,p.height=h},pin:function(a,s,u,h,p){p.x=a+u/2,p.y=s+h/2,p.width=u,p.height=h},arrow:function(a,s,u,h,p){p.x=a+u/2,p.y=s+h/2,p.width=u,p.height=h},triangle:function(a,s,u,h,p){p.cx=a+u/2,p.cy=s+h/2,p.width=u,p.height=h}},n={};O.each(r,function(a,s){n[s]=new a});var e=x.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(a,s,u){var h=S(a,s,u),p=this.shape;return p&&p.symbolType==="pin"&&s.textPosition==="inside"&&(h.y=u.y+u.height*.4),h},buildPath:function(a,s,u){var h=s.symbolType;if(h!=="none"){var p=n[h];p||(h="rect",p=n[h]),i[h](s.x,s.y,s.width,s.height,p.shape),p.buildPath(a,p.shape,u)}}});function l(a,s){if(this.type!=="image"){var u=this.style,h=this.shape;h&&h.symbolType==="line"?u.stroke=a:this.__isEmptyBrush?(u.stroke=a,u.fill=s||"#fff"):(u.fill&&(u.fill=a),u.stroke&&(u.stroke=a)),this.dirty(!1)}}function t(a,s,u,h,p,m,v){var y=a.indexOf("empty")===0;y&&(a=a.substr(5,1).toLowerCase()+a.substr(6));var E;return a.indexOf("image://")===0?E=x.makeImage(a.slice(8),new C(s,u,h,p),v?"center":"cover"):a.indexOf("path://")===0?E=x.makePath(a.slice(7),{},new C(s,u,h,p),v?"center":"cover"):E=new e({shape:{symbolType:a,x:s,y:u,width:h,height:p}}),E.__isEmptyBrush=y,E.setColor=l,E.setColor(m),E}F.createSymbol=t},oY9F:function(H,F,d){var O=d("OlYY"),x=O.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});H.exports=x},osHv:function(H,F,d){(function(O){O(d("VrN/"))})(function(O){"use strict";var x=O.Pos;function C(s,u){return s.line-u.line||s.ch-u.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",S=A+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",g=new RegExp("<(/?)(["+A+"]["+S+"]*)","g");function f(s,u,h,p){this.line=u,this.ch=h,this.cm=s,this.text=s.getLine(u),this.min=p?Math.max(p.from,s.firstLine()):s.firstLine(),this.max=p?Math.min(p.to-1,s.lastLine()):s.lastLine()}function c(s,u){var h=s.cm.getTokenTypeAt(x(s.line,u));return h&&/\btag\b/.test(h)}function o(s){return s.line>=s.max?void 0:(s.ch=0,s.text=s.cm.getLine(++s.line),!0)}function r(s){return s.line<=s.min?void 0:(s.text=s.cm.getLine(--s.line),s.ch=s.text.length,!0)}function i(s){for(;;){var u=s.text.indexOf(">",s.ch);if(u==-1){if(o(s))continue;return}if(!c(s,u+1)){s.ch=u+1;continue}var h=s.text.lastIndexOf("/",u),p=h>-1&&!/\S/.test(s.text.slice(h+1,u));return s.ch=u+1,p?"selfClose":"regular"}}function n(s){for(;;){var u=s.ch?s.text.lastIndexOf("<",s.ch-1):-1;if(u==-1){if(r(s))continue;return}if(!c(s,u+1)){s.ch=u;continue}g.lastIndex=u,s.ch=u;var h=g.exec(s.text);if(h&&h.index==u)return h}}function e(s){for(;;){g.lastIndex=s.ch;var u=g.exec(s.text);if(!u){if(o(s))continue;return}if(!c(s,u.index+1)){s.ch=u.index+1;continue}return s.ch=u.index+u[0].length,u}}function l(s){for(;;){var u=s.ch?s.text.lastIndexOf(">",s.ch-1):-1;if(u==-1){if(r(s))continue;return}if(!c(s,u+1)){s.ch=u;continue}var h=s.text.lastIndexOf("/",u),p=h>-1&&!/\S/.test(s.text.slice(h+1,u));return s.ch=u+1,p?"selfClose":"regular"}}function t(s,u){for(var h=[];;){var p=e(s),m,v=s.line,y=s.ch-(p?p[0].length:0);if(!p||!(m=i(s)))return;if(m=="selfClose")continue;if(p[1]){for(var E=h.length-1;E>=0;--E)if(h[E]==p[2]){h.length=E;break}if(E<0&&(!u||u==p[2]))return{tag:p[2],from:x(v,y),to:x(s.line,s.ch)}}else h.push(p[2])}}function a(s,u){for(var h=[];;){var p=l(s);if(!p)return;if(p=="selfClose"){n(s);continue}var m=s.line,v=s.ch,y=n(s);if(!y)return;if(y[1])h.push(y[2]);else{for(var E=h.length-1;E>=0;--E)if(h[E]==y[2]){h.length=E;break}if(E<0&&(!u||u==y[2]))return{tag:y[2],from:x(s.line,s.ch),to:x(m,v)}}}}O.registerHelper("fold","xml",function(s,u){for(var h=new f(s,u.line,0);;){var p=e(h);if(!p||h.line!=u.line)return;var m=i(h);if(!m)return;if(!p[1]&&m!="selfClose"){var v=x(h.line,h.ch),y=t(h,p[2]);return y&&C(y.from,v)>0?{from:v,to:y.from}:null}}}),O.findMatchingTag=function(s,u,h){var p=new f(s,u.line,u.ch,h);if(p.text.indexOf(">")==-1&&p.text.indexOf("<")==-1)return;var m=i(p),v=m&&x(p.line,p.ch),y=m&&n(p);if(!m||!y||C(p,u)>0)return;var E={from:x(p.line,p.ch),to:v,tag:y[2]};return m=="selfClose"?{open:E,close:null,at:"open"}:y[1]?{open:a(p,y[2]),close:E,at:"close"}:(p=new f(s,v.line,v.ch,h),{open:E,close:t(p,y[2]),at:"open"})},O.findEnclosingTag=function(s,u,h,p){for(var m=new f(s,u.line,u.ch,h);;){var v=a(m,p);if(!v)break;var y=new f(s,u.line,u.ch,h),E=t(y,v.tag);if(E)return{open:v,close:E}}},O.scanForClosingTag=function(s,u,h,p){var m=new f(s,u.line,u.ch,p?{from:0,to:p}:null);return t(m,h)}})},ozfa:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("KxFI"),A=d.n(C)},"p+If":function(H,F,d){var O=d("ProS");d("cpOr"),d("rkZ5");var x=d("ZYIC"),C=d("7ph2");O.registerLayout(x),O.registerVisual(C)},"p/La":function(H,F){var d=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function O(x,C){x==="china"&&C.name==="\u53F0\u6E7E"&&C.geometries.push({type:"polygon",exterior:d[0]})}H.exports=O},p1MT:function(H,F,d){var O=d("Hw7h"),x=d("IwbS"),C=d("6Ic6"),A=d("OELB"),S=A.parsePercent,g=A.round,f=A.linearMap;function c(e,l){var t=e.get("center"),a=l.getWidth(),s=l.getHeight(),u=Math.min(a,s),h=S(t[0],l.getWidth()),p=S(t[1],l.getHeight()),m=S(e.get("radius"),u/2);return{cx:h,cy:p,r:m}}function o(e,l){return l&&(typeof l=="string"?e=l.replace("{value}",e!=null?e:""):typeof l=="function"&&(e=l(e))),e}var r=Math.PI*2,i=C.extend({type:"gauge",render:function(e,l,t){this.group.removeAll();var a=e.get("axisLine.lineStyle.color"),s=c(e,t);this._renderMain(e,l,t,a,s)},dispose:function(){},_renderMain:function(e,l,t,a,s){for(var u=this.group,h=e.getModel("axisLine"),p=h.getModel("lineStyle"),m=e.get("clockwise"),v=-e.get("startAngle")/180*Math.PI,y=-e.get("endAngle")/180*Math.PI,E=(y-v)%r,T=v,b=p.get("width"),w=h.get("show"),_=0;w&&_<a.length;_++){var I=Math.min(Math.max(a[_][0],0),1),y=v+E*I,L=new x.Sector({shape:{startAngle:T,endAngle:y,cx:s.cx,cy:s.cy,clockwise:m,r0:s.r-b,r:s.r},silent:!0});L.setStyle({fill:a[_][1]}),L.setStyle(p.getLineStyle(["color","borderWidth","borderColor"])),u.add(L),T=y}var N=function(R){if(R<=0)return a[0][1];for(var k=0;k<a.length;k++)if(a[k][0]>=R&&(k===0?0:a[k-1][0])<R)return a[k][1];return a[k-1][1]};if(!m){var D=v;v=y,y=D}this._renderTicks(e,l,t,N,s,v,y,m),this._renderPointer(e,l,t,N,s,v,y,m),this._renderTitle(e,l,t,N,s),this._renderDetail(e,l,t,N,s)},_renderTicks:function(e,l,t,a,s,u,h,p){for(var m=this.group,v=s.cx,y=s.cy,E=s.r,T=+e.get("min"),b=+e.get("max"),w=e.getModel("splitLine"),_=e.getModel("axisTick"),I=e.getModel("axisLabel"),L=e.get("splitNumber"),N=_.get("splitNumber"),D=S(w.get("length"),E),R=S(_.get("length"),E),k=u,M=(h-u)/L,U=M/N,B=w.getModel("lineStyle").getLineStyle(),j=_.getModel("lineStyle").getLineStyle(),W=0;W<=L;W++){var V=Math.cos(k),z=Math.sin(k);if(w.get("show")){var J=new x.Line({shape:{x1:V*E+v,y1:z*E+y,x2:V*(E-D)+v,y2:z*(E-D)+y},style:B,silent:!0});B.stroke==="auto"&&J.setStyle({stroke:a(W/L)}),m.add(J)}if(I.get("show")){var Z=o(g(W/L*(b-T)+T),I.get("formatter")),de=I.get("distance"),ie=a(W/L);m.add(new x.Text({style:x.setTextStyle({},I,{text:Z,x:V*(E-D-de)+v,y:z*(E-D-de)+y,textVerticalAlign:z<-.4?"top":z>.4?"bottom":"middle",textAlign:V<-.4?"left":V>.4?"right":"center"},{autoColor:ie}),silent:!0}))}if(_.get("show")&&W!==L){for(var ve=0;ve<=N;ve++){var V=Math.cos(k),z=Math.sin(k),xe=new x.Line({shape:{x1:V*E+v,y1:z*E+y,x2:V*(E-R)+v,y2:z*(E-R)+y},silent:!0,style:j});j.stroke==="auto"&&xe.setStyle({stroke:a((W+ve/N)/L)}),m.add(xe),k+=U}k-=U}else k+=M}},_renderPointer:function(e,l,t,a,s,u,h,p){var m=this.group,v=this._data;if(!e.get("pointer.show")){v&&v.eachItemGraphicEl(function(w){m.remove(w)});return}var y=[+e.get("min"),+e.get("max")],E=[u,h],T=e.getData(),b=T.mapDimension("value");T.diff(v).add(function(w){var _=new O({shape:{angle:u}});x.initProps(_,{shape:{angle:f(T.get(b,w),y,E,!0)}},e),m.add(_),T.setItemGraphicEl(w,_)}).update(function(w,_){var I=v.getItemGraphicEl(_);x.updateProps(I,{shape:{angle:f(T.get(b,w),y,E,!0)}},e),m.add(I),T.setItemGraphicEl(w,I)}).remove(function(w){var _=v.getItemGraphicEl(w);m.remove(_)}).execute(),T.eachItemGraphicEl(function(w,_){var I=T.getItemModel(_),L=I.getModel("pointer");w.setShape({x:s.cx,y:s.cy,width:S(L.get("width"),s.r),r:S(L.get("length"),s.r)}),w.useStyle(I.getModel("itemStyle").getItemStyle()),w.style.fill==="auto"&&w.setStyle("fill",a(f(T.get(b,_),y,[0,1],!0))),x.setHoverStyle(w,I.getModel("emphasis.itemStyle").getItemStyle())}),this._data=T},_renderTitle:function(e,l,t,a,s){var u=e.getData(),h=u.mapDimension("value"),p=e.getModel("title");if(p.get("show")){var m=p.get("offsetCenter"),v=s.cx+S(m[0],s.r),y=s.cy+S(m[1],s.r),E=+e.get("min"),T=+e.get("max"),b=e.getData().get(h,0),w=a(f(b,[E,T],[0,1],!0));this.group.add(new x.Text({silent:!0,style:x.setTextStyle({},p,{x:v,y,text:u.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:w,forceRich:!0})}))}},_renderDetail:function(e,l,t,a,s){var u=e.getModel("detail"),h=+e.get("min"),p=+e.get("max");if(u.get("show")){var m=u.get("offsetCenter"),v=s.cx+S(m[0],s.r),y=s.cy+S(m[1],s.r),E=S(u.get("width"),s.r),T=S(u.get("height"),s.r),b=e.getData(),w=b.get(b.mapDimension("value"),0),_=a(f(w,[h,p],[0,1],!0));this.group.add(new x.Text({silent:!0,style:x.setTextStyle({},u,{x:v,y,text:o(w,u.get("formatter")),textWidth:isNaN(E)?null:E,textHeight:isNaN(T)?null:T,textAlign:"center",textVerticalAlign:"middle"},{autoColor:_,forceRich:!0})}))}}}),n=i;H.exports=n},"p77/":function(H,F,d){},pA7S:function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.WordArray,S=C.BlockCipher,g=x.algo,f=[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],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],o=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],r=[{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}],i=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],n=g.DES=S.extend({_doReset:function(){for(var s=this._key,u=s.words,h=[],p=0;p<56;p++){var m=f[p]-1;h[p]=u[m>>>5]>>>31-m%32&1}for(var v=this._subKeys=[],y=0;y<16;y++){for(var E=v[y]=[],T=o[y],p=0;p<24;p++)E[p/6|0]|=h[(c[p]-1+T)%28]<<31-p%6,E[4+(p/6|0)]|=h[28+(c[p+24]-1+T)%28]<<31-p%6;E[0]=E[0]<<1|E[0]>>>31;for(var p=1;p<7;p++)E[p]=E[p]>>>(p-1)*4+3;E[7]=E[7]<<5|E[7]>>>27}for(var b=this._invSubKeys=[],p=0;p<16;p++)b[p]=v[15-p]},encryptBlock:function(s,u){this._doCryptBlock(s,u,this._subKeys)},decryptBlock:function(s,u){this._doCryptBlock(s,u,this._invSubKeys)},_doCryptBlock:function(s,u,h){this._lBlock=s[u],this._rBlock=s[u+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 p=0;p<16;p++){for(var m=h[p],v=this._lBlock,y=this._rBlock,E=0,T=0;T<8;T++)E|=r[T][((y^m[T])&i[T])>>>0];this._lBlock=y,this._rBlock=v^E}var b=this._lBlock;this._lBlock=this._rBlock,this._rBlock=b,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),s[u]=this._lBlock,s[u+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function e(a,s){var u=(this._lBlock>>>a^this._rBlock)&s;this._rBlock^=u,this._lBlock^=u<<a}function l(a,s){var u=(this._rBlock>>>a^this._lBlock)&s;this._lBlock^=u,this._rBlock^=u<<a}x.DES=S._createHelper(n);var t=g.TripleDES=S.extend({_doReset:function(){var s=this._key,u=s.words;if(u.length!==2&&u.length!==4&&u.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var h=u.slice(0,2),p=u.length<4?u.slice(0,2):u.slice(2,4),m=u.length<6?u.slice(0,2):u.slice(4,6);this._des1=n.createEncryptor(A.create(h)),this._des2=n.createEncryptor(A.create(p)),this._des3=n.createEncryptor(A.create(m))},encryptBlock:function(s,u){this._des1.encryptBlock(s,u),this._des2.decryptBlock(s,u),this._des3.encryptBlock(s,u)},decryptBlock:function(s,u){this._des3.decryptBlock(s,u),this._des2.encryptBlock(s,u),this._des1.decryptBlock(s,u)},keySize:192/32,ivSize:64/32,blockSize:64/32});x.TripleDES=S._createHelper(t)}(),O.TripleDES})},pC0b:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("xzDV"),A=d.n(C),S=d("5Dmo")},"pED+":function(H,F,d){},pG52:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("WXVj"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},pLH3:function(H,F,d){var O=d("ProS");d("ALo7"),d("TWL2");var x=d("mOdp"),C=d("JLnu"),A=d("0/Rx");O.registerVisual(x("funnel")),O.registerLayout(C),O.registerProcessor(A("funnel"))},pP6R:function(H,F,d){var O=d("ProS"),x="\0_ec_interaction_mutex";function C(f,c,o){var r=g(f);r[c]=o}function A(f,c,o){var r=g(f),i=r[c];i===o&&(r[c]=null)}function S(f,c){return!!g(f)[c]}function g(f){return f[x]||(f[x]={})}O.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),F.take=C,F.release=A,F.isTaken=S},pmaE:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("IwbS"),A=d("DEFe"),S="__seriesMapHighDown",g="__seriesMapCallKey",f=O.extendChartView({type:"map",render:function(r,i,n,e){if(e&&e.type==="mapToggleSelect"&&e.from===this.uid)return;var l=this.group;if(l.removeAll(),r.getHostGeoModel())return;if(e&&e.type==="geoRoam"&&e.componentType==="series"&&e.seriesId===r.id){var t=this._mapDraw;t&&l.add(t.group)}else if(r.needsDrawMap){var t=this._mapDraw||new A(n,!0);l.add(t.group),t.draw(r,i,n,this,e),this._mapDraw=t}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;r.get("showLegendSymbol")&&i.getComponent("legend")&&this._renderSymbols(r,i,n)},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(r,i,n){var e=r.originalData,l=this.group;e.each(e.mapDimension("value"),function(t,a){if(isNaN(t))return;var s=e.getItemLayout(a);if(!s||!s.point)return;var u=s.point,h=s.offset,p=new C.Circle({style:{fill:r.getData().getVisual("color")},shape:{cx:u[0]+h*9,cy:u[1],r:3},silent:!0,z2:8+(h?0:C.Z2_EMPHASIS_LIFT+1)});if(!h){var m=r.mainSeries.getData(),v=e.getName(a),y=m.indexOfName(v),E=e.getItemModel(a),T=E.getModel("label"),b=E.getModel("emphasis.label"),w=m.getItemGraphicEl(y),_=x.retrieve2(r.getFormattedLabel(y,"normal"),v),I=x.retrieve2(r.getFormattedLabel(y,"emphasis"),_),L=w[S],N=Math.random();if(!L){L=w[S]={};var D=x.curry(c,!0),R=x.curry(c,!1);w.on("mouseover",D).on("mouseout",R).on("emphasis",D).on("normal",R)}w[g]=N,x.extend(L,{recordVersion:N,circle:p,labelModel:T,hoverLabelModel:b,emphasisText:I,normalText:_}),o(L,!1)}l.add(p)})}});function c(r){var i=this[S];i&&i.recordVersion===this[g]&&o(i,r)}function o(r,i){var n=r.circle,e=r.labelModel,l=r.hoverLabelModel,t=r.emphasisText,a=r.normalText;i?(n.style.extendFrom(C.setTextStyle({},l,{text:l.get("show")?t:null},{isRectText:!0,useInsideStyle:!1},!0)),n.__mapOriginalZ2=n.z2,n.z2+=C.Z2_EMPHASIS_LIFT):(C.setTextStyle(n.style,e,{text:e.get("show")?a:null,textPosition:e.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),n.dirty(!1),n.__mapOriginalZ2!=null&&(n.z2=n.__mapOriginalZ2,n.__mapOriginalZ2=null))}H.exports=f},pwpV:function(H,F,d){},pzxd:function(H,F,d){var O=d("bYtY"),x=O.retrieve2,C=O.retrieve3,A=O.each,S=O.normalizeCssArray,g=O.isString,f=O.isObject,c=d("6GrX"),o=d("VpOo"),r=d("Xnb7"),i=d("fW2E"),n=d("gut8"),e=n.ContextCachedBy,l=n.WILL_BE_RESTORED,t=c.DEFAULT_FONT,a={left:1,right:1,center:1},s={top:1,bottom:1,middle:1},u=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],h={},p={};function m(W){return v(W),A(W.rich,v),W}function v(W){if(W){W.font=c.makeFont(W);var V=W.textAlign;V==="middle"&&(V="center"),W.textAlign=V==null||a[V]?V:"left";var z=W.textVerticalAlign||W.textBaseline;z==="center"&&(z="middle"),W.textVerticalAlign=z==null||s[z]?z:"top";var J=W.textPadding;J&&(W.textPadding=S(W.textPadding))}}function y(W,V,z,J,Z,de){J.rich?T(W,V,z,J,Z,de):E(W,V,z,J,Z,de)}function E(W,V,z,J,Z,de){"use strict";var ie=I(J),ve,xe=!1,_e=V.__attrCachedBy===e.PLAIN_TEXT;de!==l?(de&&(ve=de.style,xe=!ie&&_e&&ve),V.__attrCachedBy=ie?e.NONE:e.PLAIN_TEXT):_e&&(V.__attrCachedBy=e.NONE);var Ue=J.font||t;(!xe||Ue!==(ve.font||t))&&(V.font=Ue);var fe=W.__computedFont;W.__styleFont!==Ue&&(W.__styleFont=Ue,fe=W.__computedFont=V.font);var ke=J.textPadding,se=J.textLineHeight,te=W.__textCotentBlock;(!te||W.__dirtyText)&&(te=W.__textCotentBlock=c.parsePlainText(z,fe,ke,se,J.truncate));var Ve=te.outerHeight,ae=te.lines,Q=te.lineHeight,G=D(p,W,J,Z),Y=G.baseX,me=G.baseY,ue=G.textAlign||"left",Ce=G.textVerticalAlign;w(V,J,Z,Y,me);var Ie=c.adjustTextY(me,Ve,Ce),ce=Y,Ae=Ie;if(ie||ke){var Te=c.getWidth(z,fe),Ge=Te;ke&&(Ge+=ke[1]+ke[3]);var gt=c.adjustTextX(Y,Ge,ue);ie&&L(W,V,J,gt,Ie,Ge,Ve),ke&&(ce=B(Y,ue,ke),Ae+=ke[0])}V.textAlign=ue,V.textBaseline="middle",V.globalAlpha=J.opacity||1;for(var qe=0;qe<u.length;qe++){var Le=u[qe],Ot=Le[0],$e=Le[1],xt=J[Ot];(!xe||xt!==ve[Ot])&&(V[$e]=i(V,$e,xt||Le[2]))}Ae+=Q/2;var Ht=J.textStrokeWidth,tr=xe?ve.textStrokeWidth:null,Mt=!xe||Ht!==tr,Tt=!xe||Mt||J.textStroke!==ve.textStroke,Xe=k(J.textStroke,Ht),oe=M(J.textFill);if(Xe&&(Mt&&(V.lineWidth=Ht),Tt&&(V.strokeStyle=Xe)),oe&&((!xe||J.textFill!==ve.textFill)&&(V.fillStyle=oe)),ae.length===1)Xe&&V.strokeText(ae[0],ce,Ae),oe&&V.fillText(ae[0],ce,Ae);else for(var qe=0;qe<ae.length;qe++)Xe&&V.strokeText(ae[qe],ce,Ae),oe&&V.fillText(ae[qe],ce,Ae),Ae+=Q}function T(W,V,z,J,Z,de){de!==l&&(V.__attrCachedBy=e.NONE);var ie=W.__textCotentBlock;(!ie||W.__dirtyText)&&(ie=W.__textCotentBlock=c.parseRichText(z,J)),b(W,V,ie,J,Z)}function b(W,V,z,J,Z){var de=z.width,ie=z.outerWidth,ve=z.outerHeight,xe=J.textPadding,_e=D(p,W,J,Z),Ue=_e.baseX,fe=_e.baseY,ke=_e.textAlign,se=_e.textVerticalAlign;w(V,J,Z,Ue,fe);var te=c.adjustTextX(Ue,ie,ke),Ve=c.adjustTextY(fe,ve,se),ae=te,Q=Ve;xe&&(ae+=xe[3],Q+=xe[0]);var G=ae+de;I(J)&&L(W,V,J,te,Ve,ie,ve);for(var Y=0;Y<z.lines.length;Y++){for(var me=z.lines[Y],ue=me.tokens,Ce=ue.length,Ie=me.lineHeight,ce=me.width,Ae=0,Te=ae,Ge=G,gt=Ce-1,qe;Ae<Ce&&(qe=ue[Ae],!qe.textAlign||qe.textAlign==="left");)_(W,V,qe,J,Ie,Q,Te,"left"),ce-=qe.width,Te+=qe.width,Ae++;for(;gt>=0&&(qe=ue[gt],qe.textAlign==="right");)_(W,V,qe,J,Ie,Q,Ge,"right"),ce-=qe.width,Ge-=qe.width,gt--;for(Te+=(de-(Te-ae)-(G-Ge)-ce)/2;Ae<=gt;)qe=ue[Ae],_(W,V,qe,J,Ie,Q,Te+qe.width/2,"center"),Te+=qe.width,Ae++;Q+=Ie}}function w(W,V,z,J,Z){if(z&&V.textRotation){var de=V.textOrigin;de==="center"?(J=z.width/2+z.x,Z=z.height/2+z.y):de&&(J=de[0]+z.x,Z=de[1]+z.y),W.translate(J,Z),W.rotate(-V.textRotation),W.translate(-J,-Z)}}function _(W,V,z,J,Z,de,ie,ve){var xe=J.rich[z.styleName]||{};xe.text=z.text;var _e=z.textVerticalAlign,Ue=de+Z/2;_e==="top"?Ue=de+z.height/2:_e==="bottom"&&(Ue=de+Z-z.height/2),!z.isLineHolder&&I(xe)&&L(W,V,xe,ve==="right"?ie-z.width:ve==="center"?ie-z.width/2:ie,Ue-z.height/2,z.width,z.height);var fe=z.textPadding;fe&&(ie=B(ie,ve,fe),Ue-=z.height/2-fe[2]-z.textHeight/2),R(V,"shadowBlur",C(xe.textShadowBlur,J.textShadowBlur,0)),R(V,"shadowColor",xe.textShadowColor||J.textShadowColor||"transparent"),R(V,"shadowOffsetX",C(xe.textShadowOffsetX,J.textShadowOffsetX,0)),R(V,"shadowOffsetY",C(xe.textShadowOffsetY,J.textShadowOffsetY,0)),R(V,"textAlign",ve),R(V,"textBaseline","middle"),R(V,"font",z.font||t);var ke=k(xe.textStroke||J.textStroke,te),se=M(xe.textFill||J.textFill),te=x(xe.textStrokeWidth,J.textStrokeWidth);ke&&(R(V,"lineWidth",te),R(V,"strokeStyle",ke),V.strokeText(z.text,ie,Ue)),se&&(R(V,"fillStyle",se),V.fillText(z.text,ie,Ue))}function I(W){return!!(W.textBackgroundColor||W.textBorderWidth&&W.textBorderColor)}function L(W,V,z,J,Z,de,ie){var ve=z.textBackgroundColor,xe=z.textBorderWidth,_e=z.textBorderColor,Ue=g(ve);if(R(V,"shadowBlur",z.textBoxShadowBlur||0),R(V,"shadowColor",z.textBoxShadowColor||"transparent"),R(V,"shadowOffsetX",z.textBoxShadowOffsetX||0),R(V,"shadowOffsetY",z.textBoxShadowOffsetY||0),Ue||xe&&_e){V.beginPath();var fe=z.textBorderRadius;fe?o.buildPath(V,{x:J,y:Z,width:de,height:ie,r:fe}):V.rect(J,Z,de,ie),V.closePath()}if(Ue)if(R(V,"fillStyle",ve),z.fillOpacity!=null){var ke=V.globalAlpha;V.globalAlpha=z.fillOpacity*z.opacity,V.fill(),V.globalAlpha=ke}else V.fill();else if(f(ve)){var se=ve.image;se=r.createOrUpdateImage(se,null,W,N,ve),se&&r.isImageReady(se)&&V.drawImage(se,J,Z,de,ie)}if(xe&&_e)if(R(V,"lineWidth",xe),R(V,"strokeStyle",_e),z.strokeOpacity!=null){var ke=V.globalAlpha;V.globalAlpha=z.strokeOpacity*z.opacity,V.stroke(),V.globalAlpha=ke}else V.stroke()}function N(W,V){V.image=W}function D(W,V,z,J){var Z=z.x||0,de=z.y||0,ie=z.textAlign,ve=z.textVerticalAlign;if(J){var xe=z.textPosition;if(xe instanceof Array)Z=J.x+U(xe[0],J.width),de=J.y+U(xe[1],J.height);else{var _e=V&&V.calculateTextPosition?V.calculateTextPosition(h,z,J):c.calculateTextPosition(h,z,J);Z=_e.x,de=_e.y,ie=ie||_e.textAlign,ve=ve||_e.textVerticalAlign}var Ue=z.textOffset;Ue&&(Z+=Ue[0],de+=Ue[1])}return W=W||{},W.baseX=Z,W.baseY=de,W.textAlign=ie,W.textVerticalAlign=ve,W}function R(W,V,z){return W[V]=i(W,V,z),W[V]}function k(W,V){return W==null||V<=0||W==="transparent"||W==="none"?null:W.image||W.colorStops?"#000":W}function M(W){return W==null||W==="none"?null:W.image||W.colorStops?"#000":W}function U(W,V){return typeof W=="string"?W.lastIndexOf("%")>=0?parseFloat(W)/100*V:parseFloat(W):W}function B(W,V,z){return V==="right"?W-z[1]:V==="center"?W+z[3]/2-z[1]/2:W+z[3]}function j(W,V){return W!=null&&(W||V.textBackgroundColor||V.textBorderWidth&&V.textBorderColor||V.textPadding)}F.normalizeTextStyle=m,F.renderText=y,F.getBoxPosition=D,F.getStroke=k,F.getFill=M,F.parsePercent=U,F.needDrawText=j},"q/+u":function(H,F,d){var O=d("ProS"),x=d("9wZj"),C=d("yWXo"),A=d("h8O9");O.extendChartView({type:"scatter",render:function(S,g,f){var c=S.getData(),o=this._updateSymbolDraw(c,S);o.updateData(c,{clipShape:this._getClipShape(S)}),this._finished=!0},incrementalPrepareRender:function(S,g,f){var c=S.getData(),o=this._updateSymbolDraw(c,S);o.incrementalPrepareUpdate(c),this._finished=!1},incrementalRender:function(S,g,f){this._symbolDraw.incrementalUpdate(S,g.getData(),{clipShape:this._getClipShape(g)}),this._finished=S.end===g.getData().count()},updateTransform:function(S,g,f){var c=S.getData();if(this.group.dirty(),!this._finished||c.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var o=A().reset(S);o.progress&&o.progress({start:0,end:c.count()},c),this._symbolDraw.updateLayout(c)},_getClipShape:function(S){var g=S.coordinateSystem,f=g&&g.getArea&&g.getArea();return S.get("clip",!0)?f:null},_updateSymbolDraw:function(S,g){var f=this._symbolDraw,c=g.pipelineContext,o=c.large;return(!f||o!==this._isLargeDraw)&&(f&&f.remove(),f=this._symbolDraw=o?new C:new x,this._isLargeDraw=o,this.group.removeAll()),this.group.add(f.group),f},remove:function(S,g){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},q3GZ:function(H,F){var d=["lineStyle","normal","opacity"],O={seriesType:"parallel",reset:function(x,C,A){var S=x.getModel("itemStyle"),g=x.getModel("lineStyle"),f=C.get("color"),c=g.get("color")||S.get("color")||f[x.seriesIndex%f.length],o=x.get("inactiveOpacity"),r=x.get("activeOpacity"),i=x.getModel("lineStyle").getLineStyle(),n=x.coordinateSystem,e=x.getData(),l={normal:i.opacity,active:r,inactive:o};e.setVisual("color",c);function t(a,s){n.eachActiveState(s,function(u,h){var p=l[u];if(u==="normal"&&s.hasItemOption){var m=s.getItemModel(h).get(d,!0);m!=null&&(p=m)}s.setItemVisual(h,"opacity",p)},a.start,a.end)}return{progress:t}}};H.exports=O},q4HE:function(H,F){var d="\\ud800-\\udfff",O="\\u0300-\\u036f",x="\\ufe20-\\ufe2f",C="\\u20d0-\\u20ff",A=O+x+C,S="\\ufe0e\\ufe0f",g="["+d+"]",f="["+A+"]",c="\\ud83c[\\udffb-\\udfff]",o="(?:"+f+"|"+c+")",r="[^"+d+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",n="[\\ud800-\\udbff][\\udc00-\\udfff]",e="\\u200d",l=o+"?",t="["+S+"]?",a="(?:"+e+"(?:"+[r,i,n].join("|")+")"+t+l+")*",s=t+l+a,u="(?:"+[r+f+"?",f,i,n,g].join("|")+")",h=RegExp(c+"(?="+c+")|"+u+s,"g");function p(m){for(var v=h.lastIndex=0;h.test(m);)++v;return v}H.exports=p},q7KB:function(H,F,d){},qBft:function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.AnsiX923={pad:function(C,A){var S=C.sigBytes,g=A*4,f=g-S%g,c=S+f-1;C.clamp(),C.words[c>>>2]|=f<<24-c%4*8,C.sigBytes+=f},unpad:function(C){var A=C.words[C.sigBytes-1>>>2]&255;C.sigBytes-=A}},O.pad.Ansix923})},qH13:function(H,F,d){var O=d("ItGF"),x=d("QBsz"),C=x.applyTransform,A=d("mFDi"),S=d("Qe9p"),g=d("6GrX"),f=d("pzxd"),c=d("ni6a"),o=d("Gev7"),r=d("Dagg"),i=d("dqUG"),n=d("y+Vt"),e=d("IMiH"),l=d("QuXc"),t=d("06Qe"),a=e.CMD,s=Math.round,u=Math.sqrt,h=Math.abs,p=Math.cos,m=Math.sin,v=Math.max;if(!O.canvasSupported){var y=",",E="progid:DXImageTransform.Microsoft",T=21600,b=T/2,w=1e5,_=1e3,I=function(me){me.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",me.coordsize=T+","+T,me.coordorigin="0,0"},L=function(me){return String(me).replace(/&/g,"&").replace(/"/g,""")},N=function(me,ue,Ce){return"rgb("+[me,ue,Ce].join(",")+")"},D=function(me,ue){ue&&me&&ue.parentNode!==me&&me.appendChild(ue)},R=function(me,ue){ue&&me&&ue.parentNode===me&&me.removeChild(ue)},k=function(me,ue,Ce){return(parseFloat(me)||0)*w+(parseFloat(ue)||0)*_+Ce},M=f.parsePercent,U=function(me,ue,Ce){var Ie=S.parse(ue);Ce=+Ce,isNaN(Ce)&&(Ce=1),Ie&&(me.color=N(Ie[0],Ie[1],Ie[2]),me.opacity=Ce*Ie[3])},B=function(me){var ue=S.parse(me);return[N(ue[0],ue[1],ue[2]),ue[3]]},j=function(me,ue,Ce){var Ie=ue.fill;if(Ie!=null)if(Ie instanceof l){var ce,Ae=0,Te=[0,0],Ge=0,gt=1,qe=Ce.getBoundingRect(),Le=qe.width,Ot=qe.height;if(Ie.type==="linear"){ce="gradient";var $e=Ce.transform,xt=[Ie.x*Le,Ie.y*Ot],Ht=[Ie.x2*Le,Ie.y2*Ot];$e&&(C(xt,xt,$e),C(Ht,Ht,$e));var tr=Ht[0]-xt[0],Mt=Ht[1]-xt[1];Ae=Math.atan2(tr,Mt)*180/Math.PI,Ae<0&&(Ae+=360),Ae<1e-6&&(Ae=0)}else{ce="gradientradial";var xt=[Ie.x*Le,Ie.y*Ot],$e=Ce.transform,Tt=Ce.scale,Xe=Le,oe=Ot;Te=[(xt[0]-qe.x)/Xe,(xt[1]-qe.y)/oe],$e&&C(xt,xt,$e),Xe/=Tt[0]*T,oe/=Tt[1]*T;var X=v(Xe,oe);Ge=2*0/X,gt=2*Ie.r/X-Ge}var Be=Ie.colorStops.slice();Be.sort(function(zt,Ut){return zt.offset-Ut.offset});for(var Ee=Be.length,ee=[],lt=[],Ct=0;Ct<Ee;Ct++){var dt=Be[Ct],_t=B(dt.color);lt.push(dt.offset*gt+Ge+" "+_t[0]),(Ct===0||Ct===Ee-1)&&ee.push(_t)}if(Ee>=2){var ir=ee[0][0],$r=ee[1][0],nr=ee[0][1]*ue.opacity,lr=ee[1][1]*ue.opacity;me.type=ce,me.method="none",me.focus="100%",me.angle=Ae,me.color=ir,me.color2=$r,me.colors=lt.join(","),me.opacity=lr,me.opacity2=nr}ce==="radial"&&(me.focusposition=Te.join(","))}else U(me,Ie,ue.opacity)},W=function(me,ue){ue.lineDash&&(me.dashstyle=ue.lineDash.join(" ")),ue.stroke!=null&&!(ue.stroke instanceof l)&&U(me,ue.stroke,ue.opacity)},V=function(me,ue,Ce,Ie){var ce=ue==="fill",Ae=me.getElementsByTagName(ue)[0];Ce[ue]!=null&&Ce[ue]!=="none"&&(ce||!ce&&Ce.lineWidth)?(me[ce?"filled":"stroked"]="true",Ce[ue]instanceof l&&R(me,Ae),Ae||(Ae=t.createNode(ue)),ce?j(Ae,Ce,Ie):W(Ae,Ce),D(me,Ae)):(me[ce?"filled":"stroked"]="false",R(me,Ae))},z=[[],[],[]],J=function(me,ue){var Ce=a.M,Ie=a.C,ce=a.L,Ae=a.A,Te=a.Q,Ge=[],gt,qe,Le,Ot,$e,xt,Ht=me.data,tr=me.len();for(Ot=0;Ot<tr;){Le=Ht[Ot++],qe="",gt=0;switch(Le){case Ce:qe=" m ",gt=1,$e=Ht[Ot++],xt=Ht[Ot++],z[0][0]=$e,z[0][1]=xt;break;case ce:qe=" l ",gt=1,$e=Ht[Ot++],xt=Ht[Ot++],z[0][0]=$e,z[0][1]=xt;break;case Te:case Ie:qe=" c ",gt=3;var Mt=Ht[Ot++],Tt=Ht[Ot++],Xe=Ht[Ot++],oe=Ht[Ot++],X,Be;Le===Te?(X=Xe,Be=oe,Xe=(Xe+2*Mt)/3,oe=(oe+2*Tt)/3,Mt=($e+2*Mt)/3,Tt=(xt+2*Tt)/3):(X=Ht[Ot++],Be=Ht[Ot++]),z[0][0]=Mt,z[0][1]=Tt,z[1][0]=Xe,z[1][1]=oe,z[2][0]=X,z[2][1]=Be,$e=X,xt=Be;break;case Ae:var Ee=0,ee=0,lt=1,Ct=1,dt=0;ue&&(Ee=ue[4],ee=ue[5],lt=u(ue[0]*ue[0]+ue[1]*ue[1]),Ct=u(ue[2]*ue[2]+ue[3]*ue[3]),dt=Math.atan2(-ue[1]/Ct,ue[0]/lt));var _t=Ht[Ot++],ir=Ht[Ot++],$r=Ht[Ot++],nr=Ht[Ot++],lr=Ht[Ot++]+dt,zt=Ht[Ot++]+lr+dt;Ot++;var Ut=Ht[Ot++],st=_t+p(lr)*$r,Hr=ir+m(lr)*nr,Mt=_t+p(zt)*$r,Tt=ir+m(zt)*nr,mn=Ut?" wa ":" at ";Math.abs(st-Mt)<1e-4&&(Math.abs(zt-lr)>.01?Ut&&(st+=270/T):Math.abs(Hr-ir)<1e-4?Ut&&st<_t||!Ut&&st>_t?Tt-=270/T:Tt+=270/T:Ut&&Hr<ir||!Ut&&Hr>ir?Mt+=270/T:Mt-=270/T),Ge.push(mn,s(((_t-$r)*lt+Ee)*T-b),y,s(((ir-nr)*Ct+ee)*T-b),y,s(((_t+$r)*lt+Ee)*T-b),y,s(((ir+nr)*Ct+ee)*T-b),y,s((st*lt+Ee)*T-b),y,s((Hr*Ct+ee)*T-b),y,s((Mt*lt+Ee)*T-b),y,s((Tt*Ct+ee)*T-b)),$e=Mt,xt=Tt;break;case a.R:var In=z[0],Yn=z[1];In[0]=Ht[Ot++],In[1]=Ht[Ot++],Yn[0]=In[0]+Ht[Ot++],Yn[1]=In[1]+Ht[Ot++],ue&&(C(In,In,ue),C(Yn,Yn,ue)),In[0]=s(In[0]*T-b),Yn[0]=s(Yn[0]*T-b),In[1]=s(In[1]*T-b),Yn[1]=s(Yn[1]*T-b),Ge.push(" m ",In[0],y,In[1]," l ",Yn[0],y,In[1]," l ",Yn[0],y,Yn[1]," l ",In[0],y,Yn[1]);break;case a.Z:Ge.push(" x ")}if(gt>0){Ge.push(qe);for(var Mi=0;Mi<gt;Mi++){var wn=z[Mi];ue&&C(wn,wn,ue),Ge.push(s(wn[0]*T-b),y,s(wn[1]*T-b),Mi<gt-1?y:"")}}}return Ge.join("")};n.prototype.brushVML=function(Y){var me=this.style,ue=this._vmlEl;ue||(ue=t.createNode("shape"),I(ue),this._vmlEl=ue),V(ue,"fill",me,this),V(ue,"stroke",me,this);var Ce=this.transform,Ie=Ce!=null,ce=ue.getElementsByTagName("stroke")[0];if(ce){var Ae=me.lineWidth;if(Ie&&!me.strokeNoScale){var Te=Ce[0]*Ce[3]-Ce[1]*Ce[2];Ae*=u(h(Te))}ce.weight=Ae+"px"}var Ge=this.path||(this.path=new e);this.__dirtyPath&&(Ge.beginPath(),Ge.subPixelOptimize=!1,this.buildPath(Ge,this.shape),Ge.toStatic(),this.__dirtyPath=!1),ue.path=J(Ge,this.transform),ue.style.zIndex=k(this.zlevel,this.z,this.z2),D(Y,ue),me.text!=null?this.drawRectText(Y,this.getBoundingRect()):this.removeRectText(Y)},n.prototype.onRemove=function(Y){R(Y,this._vmlEl),this.removeRectText(Y)},n.prototype.onAdd=function(Y){D(Y,this._vmlEl),this.appendRectText(Y)};var Z=function(me){return typeof me=="object"&&me.tagName&&me.tagName.toUpperCase()==="IMG"};r.prototype.brushVML=function(Y){var me=this.style,ue=me.image,Ce,Ie;if(Z(ue)){var ce=ue.src;if(ce===this._imageSrc)Ce=this._imageWidth,Ie=this._imageHeight;else{var Ae=ue.runtimeStyle,Te=Ae.width,Ge=Ae.height;Ae.width="auto",Ae.height="auto",Ce=ue.width,Ie=ue.height,Ae.width=Te,Ae.height=Ge,this._imageSrc=ce,this._imageWidth=Ce,this._imageHeight=Ie}ue=ce}else ue===this._imageSrc&&(Ce=this._imageWidth,Ie=this._imageHeight);if(!ue)return;var gt=me.x||0,qe=me.y||0,Le=me.width,Ot=me.height,$e=me.sWidth,xt=me.sHeight,Ht=me.sx||0,tr=me.sy||0,Mt=$e&&xt,Tt=this._vmlEl;Tt||(Tt=t.doc.createElement("div"),I(Tt),this._vmlEl=Tt);var Xe=Tt.style,oe=!1,X,Be=1,Ee=1;if(this.transform&&(X=this.transform,Be=u(X[0]*X[0]+X[1]*X[1]),Ee=u(X[2]*X[2]+X[3]*X[3]),oe=X[1]||X[2]),oe){var ee=[gt,qe],lt=[gt+Le,qe],Ct=[gt,qe+Ot],dt=[gt+Le,qe+Ot];C(ee,ee,X),C(lt,lt,X),C(Ct,Ct,X),C(dt,dt,X);var _t=v(ee[0],lt[0],Ct[0],dt[0]),ir=v(ee[1],lt[1],Ct[1],dt[1]),$r=[];$r.push("M11=",X[0]/Be,y,"M12=",X[2]/Ee,y,"M21=",X[1]/Be,y,"M22=",X[3]/Ee,y,"Dx=",s(gt*Be+X[4]),y,"Dy=",s(qe*Ee+X[5])),Xe.padding="0 "+s(_t)+"px "+s(ir)+"px 0",Xe.filter=E+".Matrix("+$r.join("")+", SizingMethod=clip)"}else X&&(gt=gt*Be+X[4],qe=qe*Ee+X[5]),Xe.filter="",Xe.left=s(gt)+"px",Xe.top=s(qe)+"px";var nr=this._imageEl,lr=this._cropEl;nr||(nr=t.doc.createElement("div"),this._imageEl=nr);var zt=nr.style;if(Mt){if(Ce&&Ie)zt.width=s(Be*Ce*Le/$e)+"px",zt.height=s(Ee*Ie*Ot/xt)+"px";else{var Ut=new Image,st=this;Ut.onload=function(){Ut.onload=null,Ce=Ut.width,Ie=Ut.height,zt.width=s(Be*Ce*Le/$e)+"px",zt.height=s(Ee*Ie*Ot/xt)+"px",st._imageWidth=Ce,st._imageHeight=Ie,st._imageSrc=ue},Ut.src=ue}lr||(lr=t.doc.createElement("div"),lr.style.overflow="hidden",this._cropEl=lr);var Hr=lr.style;Hr.width=s((Le+Ht*Le/$e)*Be),Hr.height=s((Ot+tr*Ot/xt)*Ee),Hr.filter=E+".Matrix(Dx="+-Ht*Le/$e*Be+",Dy="+-tr*Ot/xt*Ee+")",lr.parentNode||Tt.appendChild(lr),nr.parentNode!==lr&&lr.appendChild(nr)}else zt.width=s(Be*Le)+"px",zt.height=s(Ee*Ot)+"px",Tt.appendChild(nr),lr&&lr.parentNode&&(Tt.removeChild(lr),this._cropEl=null);var mn="",In=me.opacity;In<1&&(mn+=".Alpha(opacity="+s(In*100)+") "),mn+=E+".AlphaImageLoader(src="+ue+", SizingMethod=scale)",zt.filter=mn,Tt.style.zIndex=k(this.zlevel,this.z,this.z2),D(Y,Tt),me.text!=null&&this.drawRectText(Y,this.getBoundingRect())},r.prototype.onRemove=function(Y){R(Y,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(Y)},r.prototype.onAdd=function(Y){D(Y,this._vmlEl),this.appendRectText(Y)};var de="normal",ie={},ve=0,xe=100,_e=document.createElement("div"),Ue=function(me){var ue=ie[me];if(!ue){ve>xe&&(ve=0,ie={});var Ce=_e.style,Ie;try{Ce.font=me,Ie=Ce.fontFamily.split(",")[0]}catch(ce){}ue={style:Ce.fontStyle||de,variant:Ce.fontVariant||de,weight:Ce.fontWeight||de,size:parseFloat(Ce.fontSize||12)|0,family:Ie||"Microsoft YaHei"},ie[me]=ue,ve++}return ue},fe;g.$override("measureText",function(Y,me){var ue=t.doc;fe||(fe=ue.createElement("div"),fe.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",t.doc.body.appendChild(fe));try{fe.style.font=me}catch(Ce){}return fe.innerHTML="",fe.appendChild(ue.createTextNode(Y)),{width:fe.offsetWidth}});for(var ke=new A,se=function(me,ue,Ce,Ie){var ce=this.style;this.__dirty&&f.normalizeTextStyle(ce,!0);var Ae=ce.text;if(Ae!=null&&(Ae+=""),!Ae)return;if(ce.rich){var Te=g.parseRichText(Ae,ce);Ae=[];for(var Ge=0;Ge<Te.lines.length;Ge++){for(var gt=Te.lines[Ge].tokens,qe=[],Le=0;Le<gt.length;Le++)qe.push(gt[Le].text);Ae.push(qe.join(""))}Ae=Ae.join(`
|
|
|
`)}var Ot,$e,xt=ce.textAlign,Ht=ce.textVerticalAlign,tr=Ue(ce.font),Mt=tr.style+" "+tr.variant+" "+tr.weight+" "+tr.size+'px "'+tr.family+'"';Ce=Ce||g.getBoundingRect(Ae,Mt,xt,Ht,ce.textPadding,ce.textLineHeight);var Tt=this.transform;if(Tt&&!Ie&&(ke.copy(ue),ke.applyTransform(Tt),ue=ke),Ie)Ot=ue.x,$e=ue.y;else{var Xe=ce.textPosition;if(Xe instanceof Array)Ot=ue.x+M(Xe[0],ue.width),$e=ue.y+M(Xe[1],ue.height),xt=xt||"left";else{var oe=this.calculateTextPosition?this.calculateTextPosition({},ce,ue):g.calculateTextPosition({},ce,ue);Ot=oe.x,$e=oe.y,xt=xt||oe.textAlign,Ht=Ht||oe.textVerticalAlign}}Ot=g.adjustTextX(Ot,Ce.width,xt),$e=g.adjustTextY($e,Ce.height,Ht),$e+=Ce.height/2;var X=t.createNode,Be=this._textVmlEl,Ee,ee,lt;Be?(lt=Be.firstChild,Ee=lt.nextSibling,ee=Ee.nextSibling):(Be=X("line"),Ee=X("path"),ee=X("textpath"),lt=X("skew"),ee.style["v-text-align"]="left",I(Be),Ee.textpathok=!0,ee.on=!0,Be.from="0 0",Be.to="1000 0.05",D(Be,lt),D(Be,Ee),D(Be,ee),this._textVmlEl=Be);var Ct=[Ot,$e],dt=Be.style;Tt&&Ie?(C(Ct,Ct,Tt),lt.on=!0,lt.matrix=Tt[0].toFixed(3)+y+Tt[2].toFixed(3)+y+Tt[1].toFixed(3)+y+Tt[3].toFixed(3)+",0,0",lt.offset=(s(Ct[0])||0)+","+(s(Ct[1])||0),lt.origin="0 0",dt.left="0px",dt.top="0px"):(lt.on=!1,dt.left=s(Ot)+"px",dt.top=s($e)+"px"),ee.string=L(Ae);try{ee.style.font=Mt}catch(_t){}V(Be,"fill",{fill:ce.textFill,opacity:ce.opacity},this),V(Be,"stroke",{stroke:ce.textStroke,opacity:ce.opacity,lineDash:ce.lineDash||null},this),Be.style.zIndex=k(this.zlevel,this.z,this.z2),D(me,Be)},te=function(me){R(me,this._textVmlEl),this._textVmlEl=null},Ve=function(me){D(me,this._textVmlEl)},ae=[c,o,r,n,i],Q=0;Q<ae.length;Q++){var G=ae[Q].prototype;G.drawRectText=se,G.removeRectText=te,G.appendRectText=Ve}i.prototype.brushVML=function(Y){var me=this.style;me.text!=null?this.drawRectText(Y,{x:me.x||0,y:me.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(Y)},i.prototype.onRemove=function(Y){this.removeRectText(Y)},i.prototype.onAdd=function(Y){this.appendRectText(Y)}}},qJCg:function(H,F,d){var O=d("BlVb"),x=d("mFDi"),C=d("IwbS"),A=C.linePolygonIntersect,S={lineX:g(0),lineY:g(1),rect:{point:function(o,r,i){return o&&i.boundingRect.contain(o[0],o[1])},rect:function(o,r,i){return o&&i.boundingRect.intersect(o)}},polygon:{point:function(o,r,i){return o&&i.boundingRect.contain(o[0],o[1])&&O.contain(i.range,o[0],o[1])},rect:function(o,r,i){var n=i.range;if(!o||n.length<=1)return!1;var e=o.x,l=o.y,t=o.width,a=o.height,s=n[0];if(O.contain(n,e,l)||O.contain(n,e+t,l)||O.contain(n,e,l+a)||O.contain(n,e+t,l+a)||x.create(o).contain(s[0],s[1])||A(e,l,e+t,l,n)||A(e,l,e,l+a,n)||A(e+t,l,e+t,l+a,n)||A(e,l+a,e+t,l+a,n))return!0}}};function g(o){var r=["x","y"],i=["width","height"];return{point:function(n,e,l){if(n){var t=l.range,a=n[o];return f(a,t)}},rect:function(n,e,l){if(n){var t=l.range,a=[n[r[o]],n[r[o]]+n[i[o]]];return a[1]<a[0]&&a.reverse(),f(a[0],t)||f(a[1],t)||f(t[0],a)||f(t[1],a)}}}}function f(o,r){return r[0]<=o&&o<=r[1]}var c=S;H.exports=c},qM6L:function(H,F,d){(function(O,x){H.exports=F=x(d("Ib8C"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.WordArray,S=x.enc,g=S.Utf16=S.Utf16BE={stringify:function(o){for(var r=o.words,i=o.sigBytes,n=[],e=0;e<i;e+=2){var l=r[e>>>2]>>>16-e%4*8&65535;n.push(String.fromCharCode(l))}return n.join("")},parse:function(o){for(var r=o.length,i=[],n=0;n<r;n++)i[n>>>1]|=o.charCodeAt(n)<<16-n%2*16;return A.create(i,r*2)}};S.Utf16LE={stringify:function(o){for(var r=o.words,i=o.sigBytes,n=[],e=0;e<i;e+=2){var l=f(r[e>>>2]>>>16-e%4*8&65535);n.push(String.fromCharCode(l))}return n.join("")},parse:function(o){for(var r=o.length,i=[],n=0;n<r;n++)i[n>>>1]|=f(o.charCodeAt(n)<<16-n%2*16);return A.create(i,r*2)}};function f(c){return c<<8&4278255360|c>>>8&16711935}}(),O.enc.Utf16})},qMZE:function(H,F,d){var O=d("JEkh"),x=O.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}}}});H.exports=x},qOx5:function(H,F,d){"use strict";d.d(F,"a",function(){return g});var O=d("xroW");function x(f,c){var o=new Set;return f.forEach(function(r){c.has(r)||o.add(r)}),o}function C(f){var c=f||{},o=c.disabled,r=c.disableCheckbox,i=c.checkable;return!!(o||r)||i===!1}function A(f,c,o,r){for(var i=new Set(f),n=new Set,e=0;e<=o;e+=1){var l=c.get(e)||new Set;l.forEach(function(u){var h=u.key,p=u.node,m=u.children,v=m===void 0?[]:m;i.has(h)&&!r(p)&&v.filter(function(y){return!r(y.node)}).forEach(function(y){i.add(y.key)})})}for(var t=new Set,a=o;a>=0;a-=1){var s=c.get(a)||new Set;s.forEach(function(u){var h=u.parent,p=u.node;if(r(p)||!u.parent||t.has(u.parent.key))return;if(r(u.parent.node)){t.add(h.key);return}var m=!0,v=!1;(h.children||[]).filter(function(y){return!r(y.node)}).forEach(function(y){var E=y.key,T=i.has(E);m&&!T&&(m=!1),!v&&(T||n.has(E))&&(v=!0)}),m&&i.add(h.key),v&&n.add(h.key),t.add(h.key)})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(x(n,i))}}function S(f,c,o,r,i){for(var n=new Set(f),e=new Set(c),l=0;l<=r;l+=1){var t=o.get(l)||new Set;t.forEach(function(h){var p=h.key,m=h.node,v=h.children,y=v===void 0?[]:v;!n.has(p)&&!e.has(p)&&!i(m)&&y.filter(function(E){return!i(E.node)}).forEach(function(E){n.delete(E.key)})})}e=new Set;for(var a=new Set,s=r;s>=0;s-=1){var u=o.get(s)||new Set;u.forEach(function(h){var p=h.parent,m=h.node;if(i(m)||!h.parent||a.has(h.parent.key))return;if(i(h.parent.node)){a.add(p.key);return}var v=!0,y=!1;(p.children||[]).filter(function(E){return!i(E.node)}).forEach(function(E){var T=E.key,b=n.has(T);v&&!b&&(v=!1),!y&&(b||e.has(T))&&(y=!0)}),v||n.delete(p.key),y&&e.add(p.key),a.add(p.key)})}return{checkedKeys:Array.from(n),halfCheckedKeys:Array.from(x(e,n))}}function g(f,c,o,r){var i=[],n;r?n=r:n=C;var e=new Set(f.filter(function(s){var u=!!o[s];return u||i.push(s),u})),l=new Map,t=0;Object.keys(o).forEach(function(s){var u=o[s],h=u.level,p=l.get(h);p||(p=new Set,l.set(h,p)),p.add(u),t=Math.max(t,h)}),Object(O.a)(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(s){return"'".concat(s,"'")}).join(", ")));var a;return c===!0?a=A(e,l,t,n):a=S(e,c.halfCheckedKeys,l,t,n),a}},qPY4:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("u4NN"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},qWUW:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("DL4k")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="CaretDownOutlined";var c=A.forwardRef(f);F.default=c},qWt2:function(H,F,d){var O=d("ProS"),x=O.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}}});H.exports=x},qZFw:function(H,F,d){var O=d("bYtY"),x=d("6GrX"),C=d("hM6l"),A=d("4NO4"),S=A.makeInner,g=S();function f(o,r){r=r||[0,360],C.call(this,"angle",o,r),this.type="category"}f.prototype={constructor:f,pointToData:function(o,r){return this.polar.pointToData(o,r)[this.dim==="radius"?0:1]},dataToAngle:C.prototype.dataToCoord,angleToData:C.prototype.coordToData,calculateCategoryInterval:function(){var o=this,r=o.getLabelModel(),i=o.scale,n=i.getExtent(),e=i.count();if(n[1]-n[0]<1)return 0;var l=n[0],t=o.dataToCoord(l+1)-o.dataToCoord(l),a=Math.abs(t),s=x.getBoundingRect(l,r.getFont(),"center","top"),u=Math.max(s.height,7),h=u/a;isNaN(h)&&(h=Infinity);var p=Math.max(0,Math.floor(h)),m=g(o.model),v=m.lastAutoInterval,y=m.lastTickCount;return v!=null&&y!=null&&Math.abs(v-p)<=1&&Math.abs(y-e)<=1&&v>p?p=v:(m.lastTickCount=e,m.lastAutoInterval=p),p}},O.inherits(f,C);var c=f;H.exports=c},qgGe:function(H,F,d){var O=d("bYtY"),x=d("T4UG"),C=d("Bsck"),A=d("VaxA"),S=A.wrapTreePathInfo,g=x.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(c,o){var r={name:c.name,children:c.data};f(r);var i=c.levels||[],n={};return n.levels=i,C.createTree(r,this,n).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(c){var o=x.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(c);return o.treePathInfo=S(r,this),o},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(c){c?this._viewRoot=c:c=this._viewRoot;var o=this.getRawData().tree.root;(!c||c!==o&&!o.contains(c))&&(this._viewRoot=o)}});function f(c){var o=0;O.each(c.children,function(i){f(i);var n=i.value;O.isArray(n)&&(n=n[0]),o+=n});var r=c.value;O.isArray(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=o),r<0&&(r=0),O.isArray(c.value)?c.value[0]=r:c.value=r}H.exports=g},qj72:function(H,F,d){var O=d("bYtY");function x(A,S){return S=S||[0,0],O.map(["x","y"],function(g,f){var c=this.getAxis(g),o=S[f],r=A[f]/2;return c.type==="category"?c.getBandWidth():Math.abs(c.dataToCoord(o-r)-c.dataToCoord(o+r))},this)}function C(A){var S=A.grid.getRect();return{coordSys:{type:"cartesian2d",x:S.x,y:S.y,width:S.width,height:S.height},api:{coord:function(g){return A.dataToPoint(g)},size:O.bind(x,A)}}}H.exports=C},"qt/9":function(H,F,d){var O=d("ProS"),x=d("bYtY");d("Wqna"),d("1tlw"),d("Mylv");var C=d("nVfU"),A=C.layout,S=d("f5Yq");d("Ae16"),O.registerLayout(x.curry(A,"pictorialBar")),O.registerVisual(S("pictorialBar","roundRect"))},qu8F:function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("OLod"))})(this,function(O){/** @preserve
|
|
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
|
* derived from CryptoJS.mode.CTR
|
|
|
* Jan Hruby jhruby.web@gmail.com
|
|
|
*/return O.mode.CTRGladman=function(){var x=O.lib.BlockCipherMode.extend();function C(g){if((g>>24&255)===255){var f=g>>16&255,c=g>>8&255,o=g&255;f===255?(f=0,c===255?(c=0,o===255?o=0:++o):++c):++f,g=0,g+=f<<16,g+=c<<8,g+=o}else g+=1<<24;return g}function A(g){return(g[0]=C(g[0]))===0&&(g[1]=C(g[1])),g}var S=x.Encryptor=x.extend({processBlock:function(f,c){var o=this._cipher,r=o.blockSize,i=this._iv,n=this._counter;i&&(n=this._counter=i.slice(0),this._iv=void 0),A(n);var e=n.slice(0);o.encryptBlock(e,0);for(var l=0;l<r;l++)f[c+l]^=e[l]}});return x.Decryptor=S,x}(),O.mode.CTRGladman})},quyA:function(H,F){var d="\\ud800-\\udfff",O="\\u0300-\\u036f",x="\\ufe20-\\ufe2f",C="\\u20d0-\\u20ff",A=O+x+C,S="\\ufe0e\\ufe0f",g="\\u200d",f=RegExp("["+g+d+A+S+"]");function c(o){return f.test(o)}H.exports=c},qwVE:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("K4ya"),A=d("XxSj"),S=O.PRIORITY.VISUAL.COMPONENT;O.registerVisual(S,{createOnAllSeries:!0,reset:function(f,c){var o=[];return c.eachComponent("visualMap",function(r){var i=f.pipelineContext;if(!r.isTargetSeries(f)||i&&i.large)return;o.push(C.incrementalApplyVisual(r.stateList,r.targetVisuals,x.bind(r.getValueState,r),r.getDataDimension(f.getData())))}),o}}),O.registerVisual(S,{createOnAllSeries:!0,reset:function(f,c){var o=f.getData(),r=[];c.eachComponent("visualMap",function(i){if(i.isTargetSeries(f)){var n=i.getVisualMeta(x.bind(g,null,f,i))||{stops:[],outerColors:[]},e=i.getDataDimension(o),l=o.getDimensionInfo(e);l!=null&&(n.dimension=l.index,r.push(n))}}),f.getData().setVisual("visualMeta",r)}});function g(f,c,o,r){for(var i=c.targetVisuals[r],n=A.prepareVisualTypes(i),e={color:f.getData().getVisual("color")},l=0,t=n.length;l<t;l++){var a=n[l],s=i[a==="opacity"?"__alphaForOpacity":a];s&&s.applyVisual(o,u,h)}return e.color;function u(p){return e[p]}function h(p,m){e[p]=m}}},"r+aA":function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("s2MQ")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="EyeInvisibleOutlined";var c=A.forwardRef(f);F.default=c},"r/2G":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("+Zaj"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},r6Bn:function(H,F,d){var O=d("bYtY"),x=d("ItGF"),C=d("4fz+"),A=d("BPZU");function S(c,o){return c.zlevel===o.zlevel?c.z===o.z?c.z2-o.z2:c.z-o.z:c.zlevel-o.zlevel}var g=function(){this._roots=[],this._displayList=[],this._displayListLen=0};g.prototype={constructor:g,traverse:function(o,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(o,r)},getDisplayList:function(o,r){return r=r||!1,o&&this.updateDisplayList(r),this._displayList},updateDisplayList:function(o){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,e=r.length;n<e;n++)this._updateAndAddDisplayable(r[n],null,o);i.length=this._displayListLen,x.canvasSupported&&A(i,S)},_updateAndAddDisplayable:function(o,r,i){if(o.ignore&&!i)return;o.beforeUpdate(),o.__dirty&&o.update(),o.afterUpdate();var n=o.clipPath;if(n){r?r=r.slice():r=[];for(var e=n,l=o;e;)e.parent=l,e.updateTransform(),r.push(e),l=e,e=e.clipPath}if(o.isGroup){for(var t=o._children,a=0;a<t.length;a++){var s=t[a];o.__dirty&&(s.__dirty=!0),this._updateAndAddDisplayable(s,r,i)}o.__dirty=!1}else o.__clipPaths=r,this._displayList[this._displayListLen++]=o},addRoot:function(o){if(o.__storage===this)return;o instanceof C&&o.addChildrenToStorage(this),this.addToStorage(o),this._roots.push(o)},delRoot:function(o){if(o==null){for(var r=0;r<this._roots.length;r++){var i=this._roots[r];i instanceof C&&i.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(o instanceof Array){for(var r=0,n=o.length;r<n;r++)this.delRoot(o[r]);return}var e=O.indexOf(this._roots,o);e>=0&&(this.delFromStorage(o),this._roots.splice(e,1),o instanceof C&&o.delChildrenFromStorage(this))},addToStorage:function(o){return o&&(o.__storage=this,o.dirty(!1)),this},delFromStorage:function(o){return o&&(o.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:S};var f=g;H.exports=f},rA99:function(H,F,d){var O=d("y+Vt"),x=d("QBsz"),C=d("Sj9i"),A=C.quadraticSubdivide,S=C.cubicSubdivide,g=C.quadraticAt,f=C.cubicAt,c=C.quadraticDerivativeAt,o=C.cubicDerivativeAt,r=[];function i(e,l,t){var a=e.cpx2,s=e.cpy2;return a===null||s===null?[(t?o:f)(e.x1,e.cpx1,e.cpx2,e.x2,l),(t?o:f)(e.y1,e.cpy1,e.cpy2,e.y2,l)]:[(t?c:g)(e.x1,e.cpx1,e.x2,l),(t?c:g)(e.y1,e.cpy1,e.y2,l)]}var n=O.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,t){var a=t.x1,s=t.y1,u=t.x2,h=t.y2,p=t.cpx1,m=t.cpy1,v=t.cpx2,y=t.cpy2,E=t.percent;if(E===0)return;l.moveTo(a,s),v==null||y==null?(E<1&&(A(a,p,u,E,r),p=r[1],u=r[2],A(s,m,h,E,r),m=r[1],h=r[2]),l.quadraticCurveTo(p,m,u,h)):(E<1&&(S(a,p,v,u,E,r),p=r[1],v=r[2],u=r[3],S(s,m,y,h,E,r),m=r[1],y=r[2],h=r[3]),l.bezierCurveTo(p,m,v,y,u,h))},pointAt:function(l){return i(this.shape,l,!1)},tangentAt:function(l){var t=i(this.shape,l,!0);return x.normalize(t,t)}});H.exports=n},"rAM+":function(H,F,d){"use strict";d.d(F,"a",function(){return x});var O=d("Qw5x");function x(C,A){var S;if(typeof Symbol=="undefined"||C[Symbol.iterator]==null){if(Array.isArray(C)||(S=Object(O.a)(C))||A&&C&&typeof C.length=="number"){S&&(C=S);var g=0,f=function(){};return{s:f,n:function(){return g>=C.length?{done:!0}:{done:!1,value:C[g++]}},e:function(n){throw n},f}}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 c=!0,o=!1,r;return{s:function(){S=C[Symbol.iterator]()},n:function(){var n=S.next();return c=n.done,n},e:function(n){o=!0,r=n},f:function(){try{!c&&S.return!=null&&S.return()}finally{if(o)throw r}}}}},rHrb:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.CopyToClipboard=void 0;var O=C(d("q1tI")),x=C(d("+QRC"));function C(h){return h&&h.__esModule?h:{default:h}}function A(h){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?A=function(m){return typeof m}:A=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},A(h)}function S(h,p){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(h);p&&(v=v.filter(function(y){return Object.getOwnPropertyDescriptor(h,y).enumerable})),m.push.apply(m,v)}return m}function g(h){for(var p=1;p<arguments.length;p++){var m=arguments[p]!=null?arguments[p]:{};p%2?S(m,!0).forEach(function(v){s(h,v,m[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(m)):S(m).forEach(function(v){Object.defineProperty(h,v,Object.getOwnPropertyDescriptor(m,v))})}return h}function f(h,p){if(h==null)return{};var m=c(h,p),v,y;if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(h);for(y=0;y<E.length;y++){if(v=E[y],p.indexOf(v)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(h,v))continue;m[v]=h[v]}}return m}function c(h,p){if(h==null)return{};var m={},v=Object.keys(h),y,E;for(E=0;E<v.length;E++){if(y=v[E],p.indexOf(y)>=0)continue;m[y]=h[y]}return m}function o(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function r(h,p){for(var m=0;m<p.length;m++){var v=p[m];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(h,v.key,v)}}function i(h,p,m){return p&&r(h.prototype,p),m&&r(h,m),h}function n(h,p){return p&&(A(p)==="object"||typeof p=="function")?p:l(h)}function e(h){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(m){return m.__proto__||Object.getPrototypeOf(m)},e(h)}function l(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function t(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),p&&a(h,p)}function a(h,p){return a=Object.setPrototypeOf||function(v,y){return v.__proto__=y,v},a(h,p)}function s(h,p,m){return p in h?Object.defineProperty(h,p,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[p]=m,h}var u=function(h){t(p,h);function p(){var m,v;o(this,p);for(var y=arguments.length,E=new Array(y),T=0;T<y;T++)E[T]=arguments[T];return v=n(this,(m=e(p)).call.apply(m,[this].concat(E))),s(l(v),"onClick",function(b){var w=v.props,_=w.text,I=w.onCopy,L=w.children,N=w.options,D=O.default.Children.only(L),R=(0,x.default)(_,N);I&&I(_,R),D&&D.props&&typeof D.props.onClick=="function"&&D.props.onClick(b)}),v}return i(p,[{key:"render",value:function(){var v=this.props,y=v.text,E=v.onCopy,T=v.options,b=v.children,w=f(v,["text","onCopy","options","children"]),_=O.default.Children.only(b);return O.default.cloneElement(_,g({},w,{onClick:this.onClick}))}}]),p}(O.default.PureComponent);F.CopyToClipboard=u,s(u,"defaultProps",{onCopy:void 0,options:void 0})},rLCj:function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="ReloadOutlined";var f=F.a=x.forwardRef(g)},rUJ1:function(H,F){var d=/[&<>"']/,O=/[&<>"']/g,x=/[<>"']|&(?!#?\w+;)/,C=/[<>"']|&(?!#?\w+;)/g,A={"&":"&","<":"<",">":">",'"':""","'":"'"},S=function(b){return A[b]};function g(T,b){if(b){if(d.test(T))return T.replace(O,S)}else if(x.test(T))return T.replace(C,S);return T}var f=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function c(T){return T.replace(f,function(b,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 o=/(^|[^\[])\^/g;function r(T,b){T=T.source||T,b=b||"";var w={replace:function(I,L){return L=L.source||L,L=L.replace(o,"$1"),T=T.replace(I,L),w},getRegex:function(){return new RegExp(T,b)}};return w}var i=/[^\w:]/g,n=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function e(T,b,w){if(T){var _;try{_=decodeURIComponent(c(w)).replace(i,"").toLowerCase()}catch(I){return null}if(_.indexOf("javascript:")===0||_.indexOf("vbscript:")===0||_.indexOf("data:")===0)return null}b&&!n.test(w)&&(w=u(b,w));try{w=encodeURI(w).replace(/%25/g,"%")}catch(I){return null}return w}var l={},t=/^[^:]+:\/*[^/]*$/,a=/^([^:]+:)[\s\S]*$/,s=/^([^:]+:\/*[^/]*)[\s\S]*$/;function u(T,b){l[" "+T]||(t.test(T)?l[" "+T]=T+"/":l[" "+T]=v(T,"/",!0)),T=l[" "+T];var w=T.indexOf(":")===-1;return b.substring(0,2)==="//"?w?b:T.replace(a,"$1")+b:b.charAt(0)==="/"?w?b:T.replace(s,"$1")+b:T+b}var h={exec:function(){}};function p(T){for(var b=1,w,_;b<arguments.length;b++){w=arguments[b];for(_ in w)Object.prototype.hasOwnProperty.call(w,_)&&(T[_]=w[_])}return T}function m(T,b){var w=T.replace(/\|/g,function(L,N,D){for(var R=!1,k=N;--k>=0&&D[k]==="\\";)R=!R;return R?"|":" |"}),_=w.split(/ \|/),I=0;if(_.length>b)_.splice(b);else for(;_.length<b;)_.push("");for(;I<_.length;I++)_[I]=_[I].trim().replace(/\\\|/g,"|");return _}function v(T,b,w){var _=T.length;if(_===0)return"";for(var I=0;I<_;){var L=T.charAt(_-I-1);if(L===b&&!w)I++;else if(L!==b&&w)I++;else break}return T.substr(0,_-I)}function y(T,b){if(T.indexOf(b[1])===-1)return-1;for(var w=T.length,_=0,I=0;I<w;I++)if(T[I]==="\\")I++;else if(T[I]===b[0])_++;else if(T[I]===b[1]&&(_--,_<0))return I;return-1}function E(T){T&&T.sanitize&&!T.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")}H.exports={escape:g,unescape:c,edit:r,cleanUrl:e,resolveUrl:u,noopTest:h,merge:p,splitCells:m,rtrim:v,findClosingBracket:y,checkSanitizeDeprecation:E}},rdUC:function(H,F,d){var O=d("MFOe"),x=O.Global;H.exports={name:"localStorage",read:A,write:S,each:g,remove:f,clearAll:c};function C(){return x.localStorage}function A(o){return C().getItem(o)}function S(o,r){return C().setItem(o,r)}function g(o){for(var r=C().length-1;r>=0;r--){var i=C().key(r);o(A(i),i)}}function f(o){return C().removeItem(o)}function c(){return C().clear()}},rdor:function(H,F,d){var O=d("lOQZ"),x=O.circularLayout;function C(A){A.eachSeriesByType("graph",function(S){S.get("layout")==="circular"&&x(S,"symbolSize")})}H.exports=C},rfSb:function(H,F,d){var O=d("T4UG"),x=d("sdST"),C=d("L0Ub"),A=C.getDimensionTypeByAxis,S=d("YXkt"),g=d("bYtY"),f=d("4NO4"),c=f.groupData,o=d("7aKB"),r=o.encodeHTML,i=d("xKMd"),n=2,e=O.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){e.superApply(this,"init",arguments),this.legendVisualProvider=new i(g.bind(this.getData,this),g.bind(this.getRawData,this))},fixData:function(t){var a=t.length,s=c(t,function(D){return D[2]}),u=[];s.buckets.each(function(D,R){u.push({name:R,dataList:D})});for(var h=u.length,p=-1,m=-1,v=0;v<h;++v){var y=u[v].dataList.length;y>p&&(p=y,m=v)}for(var E=0;E<h;++E){if(E===m)continue;for(var T=u[E].name,b=0;b<p;++b){for(var w=u[m].dataList[b][0],_=u[E].dataList.length,I=-1,L=0;L<_;++L){var N=u[E].dataList[L][0];if(N===w){I=L;break}}I===-1&&(t[a]=[],t[a][0]=w,t[a][1]=0,t[a][2]=T,a++)}}return t},getInitialData:function(t,a){for(var s=a.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],u=s.get("type"),h=g.filter(t.data,function(w){return w[2]!==void 0}),p=this.fixData(h||[]),m=[],v=this.nameMap=g.createHashMap(),y=0,E=0;E<p.length;++E)m.push(p[E][n]),v.get(p[E][n])||(v.set(p[E][n],y),y++);var T=x(p,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:A(u)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),b=new S(T,this);return b.initData(p),b},getLayerSeries:function(){for(var t=this.getData(),a=t.count(),s=[],u=0;u<a;++u)s[u]=u;var h=t.mapDimension("single"),p=c(s,function(v){return t.get("name",v)}),m=[];return p.buckets.each(function(v,y){v.sort(function(E,T){return t.get(h,E)-t.get(h,T)}),m.push({name:y,indices:v})}),m},getAxisTooltipData:function(t,a,s){g.isArray(t)||(t=t?[t]:[]);for(var u=this.getData(),h=this.getLayerSeries(),p=[],m=h.length,v,y=0;y<m;++y){for(var E=Number.MAX_VALUE,T=-1,b=h[y].indices.length,w=0;w<b;++w){var _=u.get(t[0],h[y].indices[w]),I=Math.abs(_-a);I<=E&&(v=_,E=I,T=h[y].indices[w])}p.push(T)}return{dataIndices:p,nestestValue:v}},formatTooltip:function(t){var a=this.getData(),s=a.getName(t),u=a.get(a.mapDimension("value"),t);return(isNaN(u)||u==null)&&(u="-"),r(s+" : "+u)},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;H.exports=l},rkZ5:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("c8qY"),S=d("D9ME"),g=d("fls0"),f=d("RSch"),c=d("akwb"),o=d("o40c"),r=d("ZYIC"),i=d("sK/D"),n=i.createClipPath,e=C.extendChartView({type:"lines",init:function(){},render:function(l,t,a){var s=l.getData(),u=this._updateLineDraw(s,l),h=l.get("zlevel"),p=l.get("effect.trailLength"),m=a.getZr(),v=m.painter.getType()==="svg";v||m.painter.getLayer(h).clear(!0),this._lastZlevel!=null&&!v&&m.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(l)&&p&&(v||m.configLayer(h,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(p/10+.9,1),0)})),u.updateData(s);var y=l.get("clip",!0)&&n(l.coordinateSystem,!1,l);y?this.group.setClipPath(y):this.group.removeClipPath(),this._lastZlevel=h,this._finished=!0},incrementalPrepareRender:function(l,t,a){var s=l.getData(),u=this._updateLineDraw(s,l);u.incrementalPrepareUpdate(s),this._clearLayer(a),this._finished=!1},incrementalRender:function(l,t,a){this._lineDraw.incrementalUpdate(l,t.getData()),this._finished=l.end===t.getData().count()},updateTransform:function(l,t,a){var s=l.getData(),u=l.pipelineContext;if(!this._finished||u.large||u.progressiveRender)return{update:!0};var h=r.reset(l);h.progress&&h.progress({start:0,end:s.count()},s),this._lineDraw.updateLayout(),this._clearLayer(a)},_updateLineDraw:function(l,t){var a=this._lineDraw,s=this._showEffect(t),u=!!t.get("polyline"),h=t.pipelineContext,p=h.large;return(!a||s!==this._hasEffet||u!==this._isPolyline||p!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=p?new o:new A(u?s?c:f:s?S:g),this._hasEffet=s,this._isPolyline=u,this._isLargeDraw=p,this.group.removeAll()),this.group.add(a.group),a},_showEffect:function(l){return!!l.get("effect.show")},_clearLayer:function(l){var t=l.getZr(),a=t.painter.getType()==="svg";!a&&this._lastZlevel!=null&&t.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(l,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},dispose:function(){}});H.exports=e},rmlV:function(H,F,d){var O=d("y+Vt"),x=O.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(A,S){var g=.5522848,f=S.cx,c=S.cy,o=S.rx,r=S.ry,i=o*g,n=r*g;A.moveTo(f-o,c),A.bezierCurveTo(f-o,c-n,f-i,c-r,f,c-r),A.bezierCurveTo(f+i,c-r,f+o,c-n,f+o,c),A.bezierCurveTo(f+o,c+n,f+i,c+r,f,c+r),A.bezierCurveTo(f-i,c+r,f-o,c+n,f-o,c),A.closePath()}});H.exports=x},rnVJ:function(H,F,d){var O=d("bYtY"),x=["rect","polygon","keep","clear"];function C(S,g){var f=S&&S.brush;if(O.isArray(f)||(f=f?[f]:[]),!f.length)return;var c=[];O.each(f,function(e){var l=e.hasOwnProperty("toolbox")?e.toolbox:[];l instanceof Array&&(c=c.concat(l))});var o=S&&S.toolbox;O.isArray(o)&&(o=o[0]),o||(o={feature:{}},S.toolbox=[o]);var r=o.feature||(o.feature={}),i=r.brush||(r.brush={}),n=i.type||(i.type=[]);n.push.apply(n,c),A(n),g&&!n.length&&n.push.apply(n,x)}function A(S){var g={};O.each(S,function(f){g[f]=1}),S.length=0,O.each(g,function(f,c){S.push(c)})}H.exports=C},rwxt:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=d("GdRQ");function x(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function C(f,c){for(var o=0;o<c.length;o++){var r=c[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(f,r.key,r)}}function A(f,c,o){return c&&C(f.prototype,c),o&&C(f,o),f}var S=!O.supportsCursorURIs||O.isTouchDevice,g=function(){function f(){x(this,f),this._target=null,this._canvas=document.createElement("canvas"),S&&(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(f,[{key:"attach",value:function(o){if(this._target&&this.detach(),this._target=o,S){document.body.appendChild(this._canvas);var r={capture:!0,passive:!0};this._target.addEventListener("mouseover",this._eventHandlers.mouseover,r),this._target.addEventListener("mouseleave",this._eventHandlers.mouseleave,r),this._target.addEventListener("mousemove",this._eventHandlers.mousemove,r),this._target.addEventListener("mouseup",this._eventHandlers.mouseup,r)}this.clear()}},{key:"detach",value:function(){if(!this._target)return;if(S){var o={capture:!0,passive:!0};this._target.removeEventListener("mouseover",this._eventHandlers.mouseover,o),this._target.removeEventListener("mouseleave",this._eventHandlers.mouseleave,o),this._target.removeEventListener("mousemove",this._eventHandlers.mousemove,o),this._target.removeEventListener("mouseup",this._eventHandlers.mouseup,o),document.body.removeChild(this._canvas)}this._target=null}},{key:"change",value:function(o,r,i,n,e){if(n===0||e===0){this.clear();return}this._position.x=this._position.x+this._hotSpot.x-r,this._position.y=this._position.y+this._hotSpot.y-i,this._hotSpot.x=r,this._hotSpot.y=i;var l=this._canvas.getContext("2d");this._canvas.width=n,this._canvas.height=e;var t;try{t=new ImageData(new Uint8ClampedArray(o),n,e)}catch(s){t=l.createImageData(n,e),t.data.set(new Uint8ClampedArray(o))}if(l.clearRect(0,0,n,e),l.putImageData(t,0,0),S)this._updatePosition();else{var a=this._canvas.toDataURL();this._target.style.cursor="url("+a+")"+r+" "+i+", default"}}},{key:"clear",value:function(){this._target.style.cursor="none",this._canvas.width=0,this._canvas.height=0,this._position.x=this._position.x+this._hotSpot.x,this._position.y=this._position.y+this._hotSpot.y,this._hotSpot.x=0,this._hotSpot.y=0}},{key:"move",value:function(o,r){if(!S)return;window.visualViewport?(this._position.x=o+window.visualViewport.offsetLeft,this._position.y=r+window.visualViewport.offsetTop):(this._position.x=o,this._position.y=r),this._updatePosition();var i=document.elementFromPoint(o,r);this._updateVisibility(i)}},{key:"_handleMouseOver",value:function(o){this._handleMouseMove(o)}},{key:"_handleMouseLeave",value:function(o){this._updateVisibility(o.relatedTarget)}},{key:"_handleMouseMove",value:function(o){this._updateVisibility(o.target),this._position.x=o.clientX-this._hotSpot.x,this._position.y=o.clientY-this._hotSpot.y,this._updatePosition()}},{key:"_handleMouseUp",value:function(o){var r=this,i=document.elementFromPoint(o.clientX,o.clientY);this._updateVisibility(i),this._captureIsActive()&&window.setTimeout(function(){if(!r._target)return;i=document.elementFromPoint(o.clientX,o.clientY),r._updateVisibility(i)},0)}},{key:"_showCursor",value:function(){this._canvas.style.visibility==="hidden"&&(this._canvas.style.visibility="")}},{key:"_hideCursor",value:function(){this._canvas.style.visibility!=="hidden"&&(this._canvas.style.visibility="hidden")}},{key:"_shouldShowCursor",value:function(o){return o?o===this._target?!0:this._target.contains(o)?!(window.getComputedStyle(o).cursor!=="none"):!1:!1}},{key:"_updateVisibility",value:function(o){this._captureIsActive()&&(o=document.captureElement),this._shouldShowCursor(o)?this._showCursor():this._hideCursor()}},{key:"_updatePosition",value:function(){this._canvas.style.left=this._position.x+"px",this._canvas.style.top=this._position.y+"px"}},{key:"_captureIsActive",value:function(){return document.captureElement&&document.documentElement.contains(document.captureElement)}}]),f}();F.default=g},rySg:function(H,F,d){d("SMc4"),d("8nMs")},s2MQ:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},s2lz:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("IwbS"),A=d("gPAo"),S=d("VaxA"),g=d("9hCq"),f=d("SgGq"),c=d("mFDi"),o=d("Fofx"),r=d("5s0K"),i=d("KCsZ"),n=d("7aKB"),e=n.windowOpen,l=x.bind,t=C.Group,a=C.Rect,s=x.each,u=3,h=["label"],p=["emphasis","label"],m=["upperLabel"],v=["emphasis","upperLabel"],y=10,E=1,T=2,b=i([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),w=function(D){var R=b(D);return R.stroke=R.fill=R.lineWidth=null,R},_=O.extendChartView({type:"treemap",init:function(D,R){this._containerGroup,this._storage=I(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(D,R,k,M){var U=R.findComponents({mainType:"series",subType:"treemap",query:M});if(x.indexOf(U,D)<0)return;this.seriesModel=D,this.api=k,this.ecModel=R;var B=["treemapZoomToNode","treemapRootToNode"],j=S.retrieveTargetInfo(M,B,D),W=M&&M.type,V=D.layoutInfo,z=!this._oldTree,J=this._storage,Z=W==="treemapRootToNode"&&j&&J?{rootNodeGroup:J.nodeGroup[j.node.getRawIndex()],direction:M.direction}:null,de=this._giveContainerGroup(V),ie=this._doRender(de,D,Z);!z&&(!W||W==="treemapZoomToNode"||W==="treemapRootToNode")?this._doAnimation(de,ie,D,Z):ie.renderFinally(),this._resetController(k),this._renderBreadcrumb(D,k,j)},_giveContainerGroup:function(D){var R=this._containerGroup;return R||(R=this._containerGroup=new t,this._initEvents(R),this.group.add(R)),R.attr("position",[D.x,D.y]),R},_doRender:function(D,R,k){var M=R.getData().tree,U=this._oldTree,B=I(),j=I(),W=this._storage,V=[],z=x.curry(L,R,j,W,k,B,V);Z(M.root?[M.root]:[],U&&U.root?[U.root]:[],D,M===U||!U,0);var J=de(W);return this._oldTree=M,this._storage=j,{lastsForAnimation:B,willDeleteEls:J,renderFinally:ie};function Z(ve,xe,_e,Ue,fe){Ue?(xe=ve,s(ve,function(te,Ve){!te.isRemoved()&&se(Ve,Ve)})):new A(xe,ve,ke,ke).add(se).update(se).remove(x.curry(se,null)).execute();function ke(te){return te.getId()}function se(te,Ve){var ae=te!=null?ve[te]:null,Q=Ve!=null?xe[Ve]:null,G=z(ae,Q,_e,fe);G&&Z(ae&&ae.viewChildren||[],Q&&Q.viewChildren||[],G,Ue,fe+1)}}function de(ve){var xe=I();return ve&&s(ve,function(_e,Ue){var fe=xe[Ue];s(_e,function(ke){ke&&(fe.push(ke),ke.__tmWillDelete=1)})}),xe}function ie(){s(J,function(ve){s(ve,function(xe){xe.parent&&xe.parent.remove(xe)})}),s(V,function(ve){ve.invisible=!0,ve.dirty()})}},_doAnimation:function(D,R,k,M){if(!k.get("animation"))return;var U=k.get("animationDurationUpdate"),B=k.get("animationEasing"),j=r.createWrap();s(R.willDeleteEls,function(W,V){s(W,function(z,J){if(z.invisible)return;var Z=z.parent,de;if(M&&M.direction==="drillDown")de=Z===M.rootNodeGroup?{shape:{x:0,y:0,width:Z.__tmNodeWidth,height:Z.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var ie=0,ve=0;Z.__tmWillDelete||(ie=Z.__tmNodeWidth/2,ve=Z.__tmNodeHeight/2),de=V==="nodeGroup"?{position:[ie,ve],style:{opacity:0}}:{shape:{x:ie,y:ve,width:0,height:0},style:{opacity:0}}}de&&j.add(z,de,U,B)})}),s(this._storage,function(W,V){s(W,function(z,J){var Z=R.lastsForAnimation[V][J],de={};if(!Z)return;V==="nodeGroup"?Z.old&&(de.position=z.position.slice(),z.attr("position",Z.old)):(Z.old&&(de.shape=x.extend({},z.shape),z.setShape(Z.old)),Z.fadein?(z.setStyle("opacity",0),de.style={opacity:1}):z.style.opacity!==1&&(de.style={opacity:1})),j.add(z,de,U,B)})},this),this._state="animating",j.done(l(function(){this._state="ready",R.renderFinally()},this)).start()},_resetController:function(D){var R=this._controller;R||(R=this._controller=new f(D.getZr()),R.enable(this.seriesModel.get("roam")),R.on("pan",l(this._onPan,this)),R.on("zoom",l(this._onZoom,this)));var k=new c(0,0,D.getWidth(),D.getHeight());R.setPointerChecker(function(M,U,B){return k.contain(U,B)})},_clearController:function(){var D=this._controller;D&&(D.dispose(),D=null)},_onPan:function(D){if(this._state!=="animating"&&(Math.abs(D.dx)>u||Math.abs(D.dy)>u)){var R=this.seriesModel.getData().tree.root;if(!R)return;var k=R.getLayout();if(!k)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:k.x+D.dx,y:k.y+D.dy,width:k.width,height:k.height}})}},_onZoom:function(D){var R=D.originX,k=D.originY;if(this._state!=="animating"){var M=this.seriesModel.getData().tree.root;if(!M)return;var U=M.getLayout();if(!U)return;var B=new c(U.x,U.y,U.width,U.height),j=this.seriesModel.layoutInfo;R-=j.x,k-=j.y;var W=o.create();o.translate(W,W,[-R,-k]),o.scale(W,W,[D.scale,D.scale]),o.translate(W,W,[R,k]),B.applyTransform(W),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:B.x,y:B.y,width:B.width,height:B.height}})}},_initEvents:function(D){D.on("click",function(R){if(this._state!=="ready")return;var k=this.seriesModel.get("nodeClick",!0);if(!k)return;var M=this.findTarget(R.offsetX,R.offsetY);if(!M)return;var U=M.node;if(U.getLayout().isLeafRoot)this._rootToNode(M);else if(k==="zoomToNode")this._zoomToNode(M);else if(k==="link"){var B=U.hostTree.data.getItemModel(U.dataIndex),j=B.get("link",!0),W=B.get("target",!0)||"blank";j&&e(j,W)}},this)},_renderBreadcrumb:function(D,R,k){k||(k=D.get("leafDepth",!0)!=null?{node:D.getViewRoot()}:this.findTarget(R.getWidth()/2,R.getHeight()/2),k||(k={node:D.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new g(this.group))).render(D,R,k.node,l(M,this));function M(U){this._state!=="animating"&&(S.aboveViewRoot(D.getViewRoot(),U)?this._rootToNode({node:U}):this._zoomToNode({node:U}))}},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(D){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:D.node})},_rootToNode:function(D){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:D.node})},findTarget:function(D,R){var k,M=this.seriesModel.getViewRoot();return M.eachNode({attr:"viewChildren",order:"preorder"},function(U){var B=this._storage.background[U.getRawIndex()];if(B){var j=B.transformCoordToLocal(D,R),W=B.shape;if(W.x<=j[0]&&j[0]<=W.x+W.width&&W.y<=j[1]&&j[1]<=W.y+W.height)k={node:U,offsetX:j[0],offsetY:j[1]};else return!1}},this),k}});function I(){return{nodeGroup:[],background:[],content:[]}}function L(D,R,k,M,U,B,j,W,V,z){if(!j)return;var J=j.getLayout(),Z=D.getData();if(Z.setItemGraphicEl(j.dataIndex,null),!J||!J.isInView)return;var de=J.width,ie=J.height,ve=J.borderWidth,xe=J.invisible,_e=j.getRawIndex(),Ue=W&&W.getRawIndex(),fe=j.viewChildren,ke=J.upperHeight,se=fe&&fe.length,te=j.getModel("itemStyle"),Ve=j.getModel("emphasis.itemStyle"),ae=Ae("nodeGroup",t);if(!ae)return;if(V.add(ae),ae.attr("position",[J.x||0,J.y||0]),ae.__tmNodeWidth=de,ae.__tmNodeHeight=ie,J.isAboveViewRoot)return ae;var Q=j.getModel(),G=Ae("background",a,z,E);if(G&&me(ae,G,se&&J.upperLabelHeight),se)C.isHighDownDispatcher(ae)&&C.setAsHighDownDispatcher(ae,!1),G&&(C.setAsHighDownDispatcher(G,!0),Z.setItemGraphicEl(j.dataIndex,G));else{var Y=Ae("content",a,z,T);Y&&ue(ae,Y),G&&C.isHighDownDispatcher(G)&&C.setAsHighDownDispatcher(G,!1),C.setAsHighDownDispatcher(ae,!0),Z.setItemGraphicEl(j.dataIndex,ae)}return ae;function me(gt,qe,Le){if(qe.dataIndex=j.dataIndex,qe.seriesIndex=D.seriesIndex,qe.setShape({x:0,y:0,width:de,height:ie}),xe)Ce(qe);else{qe.invisible=!1;var Ot=j.getVisual("borderColor",!0),$e=Ve.get("borderColor"),xt=w(te);xt.fill=Ot;var Ht=b(Ve);if(Ht.fill=$e,Le){var tr=de-2*ve;Ie(xt,Ht,Ot,tr,ke,{x:ve,y:0,width:tr,height:ke})}else xt.text=Ht.text=null;qe.setStyle(xt),C.setElementHoverStyle(qe,Ht)}gt.add(qe)}function ue(gt,qe){qe.dataIndex=j.dataIndex,qe.seriesIndex=D.seriesIndex;var Le=Math.max(de-2*ve,0),Ot=Math.max(ie-2*ve,0);if(qe.culling=!0,qe.setShape({x:ve,y:ve,width:Le,height:Ot}),xe)Ce(qe);else{qe.invisible=!1;var $e=j.getVisual("color",!0),xt=w(te);xt.fill=$e;var Ht=b(Ve);Ie(xt,Ht,$e,Le,Ot),qe.setStyle(xt),C.setElementHoverStyle(qe,Ht)}gt.add(qe)}function Ce(gt){!gt.invisible&&B.push(gt)}function Ie(gt,qe,Le,Ot,$e,xt){var Ht=Q.get("name"),tr=Q.getModel(xt?m:h),Mt=Q.getModel(xt?v:p),Tt=tr.getShallow("show");C.setLabelStyle(gt,qe,tr,Mt,{defaultText:Tt?Ht:null,autoColor:Le,isRectText:!0,labelFetcher:D,labelDataIndex:j.dataIndex,labelProp:xt?"upperLabel":"label"}),ce(gt,xt,J),ce(qe,xt,J),xt&&(gt.textRect=x.clone(xt)),gt.truncate=Tt&&tr.get("ellipsis")?{outerWidth:Ot,outerHeight:$e,minChar:2}:null}function ce(gt,qe,Le){var Ot=gt.text;if(!qe&&Le.isLeafRoot&&Ot!=null){var $e=D.get("drillDownIcon",!0);gt.text=$e?$e+" "+Ot:Ot}}function Ae(gt,qe,Le,Ot){var $e=Ue!=null&&k[gt][Ue],xt=U[gt];return $e?(k[gt][Ue]=null,Te(xt,$e,gt)):xe||($e=new qe({z:N(Le,Ot)}),$e.__tmDepth=Le,$e.__tmStorageName=gt,Ge(xt,$e,gt)),R[gt][_e]=$e}function Te(gt,qe,Le){var Ot=gt[_e]={};Ot.old=Le==="nodeGroup"?qe.position.slice():x.extend({},qe.shape)}function Ge(gt,qe,Le){var Ot=gt[_e]={},$e=j.parentNode;if($e&&(!M||M.direction==="drillDown")){var xt=0,Ht=0,tr=U.background[$e.getRawIndex()];!M&&tr&&tr.old&&(xt=tr.old.width,Ht=tr.old.height),Ot.old=Le==="nodeGroup"?[0,Ht]:{x:xt,y:Ht,width:0,height:0}}Ot.fadein=Le!=="nodeGroup"}}function N(D,R){var k=D*y+R;return(k-1)/k}H.exports=_},sAZ8:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("+rIm"),A=d("/IIm"),S=d("9KIM"),g=d("IwbS"),f=["axisLine","axisTickLabel","axisName"],c=O.extendComponentView({type:"parallelAxis",init:function(e,l){c.superApply(this,"init",arguments),(this._brushController=new A(l.getZr())).on("brush",x.bind(this._onBrush,this))},render:function(e,l,t,a){if(o(e,l,a))return;this.axisModel=e,this.api=t,this.group.removeAll();var s=this._axisGroup;if(this._axisGroup=new g.Group,this.group.add(this._axisGroup),!e.get("show"))return;var u=i(e,l),h=u.coordinateSystem,p=e.getAreaSelectStyle(),m=p.width,v=e.axis.dim,y=h.getAxisLayout(v),E=x.extend({strokeContainThreshold:m},y),T=new C(e,E);x.each(f,T.add,T),this._axisGroup.add(T.getGroup()),this._refreshBrushController(E,p,e,u,m,t);var b=a&&a.animation===!1?null:e;g.groupTransition(s,this._axisGroup,b)},_refreshBrushController:function(e,l,t,a,s,u){var h=t.axis.getExtent(),p=h[1]-h[0],m=Math.min(30,Math.abs(p)*.1),v=g.BoundingRect.create({x:h[0],y:-s/2,width:p,height:s});v.x-=m,v.width+=2*m,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:S.makeRectPanelClipPath(v),isTargetByCursor:S.makeRectIsTargetByCursor(v,u,a),getLinearBrushOtherExtent:S.makeLinearBrushOtherExtent(v,0)}]).enableBrush({brushType:"lineX",brushStyle:l,removeOnClick:!0}).updateCovers(r(t))},_onBrush:function(e,l){var t=this.axisModel,a=t.axis,s=x.map(e,function(u){return[a.coordToData(u.range[0],!0),a.coordToData(u.range[1],!0)]});(!t.option.realtime===l.isEnd||l.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:t.id,intervals:s})},dispose:function(){this._brushController.dispose()}});function o(e,l,t){return t&&t.type==="axisAreaSelect"&&l.findComponents({mainType:"parallelAxis",query:t})[0]===e}function r(e){var l=e.axis;return x.map(e.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[l.dataToCoord(t[0],!0),l.dataToCoord(t[1],!0)]}})}function i(e,l){return l.getComponent("parallel",e.get("parallelIndex"))}var n=c;H.exports=n},sE09:function(H,F,d){},sGsY:function(H,F,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),S=d("q1tI"),g=d("TSYQ"),f=d.n(g),c=d("H84U"),o=d("B6l+"),r=d.n(o),i=function(j){var W=j.value,V=j.formatter,z=j.precision,J=j.decimalSeparator,Z=j.groupSeparator,de=Z===void 0?"":Z,ie=j.prefixCls,ve;if(typeof V=="function")ve=V(W);else{var xe=String(W),_e=xe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!_e||xe==="-")ve=xe;else{var Ue=_e[1],fe=_e[2]||"0",ke=_e[4]||"";fe=fe.replace(/\B(?=(\d{3})+(?!\d))/g,de),typeof z=="number"&&(ke=r()(ke,z,"0").slice(0,z)),ke&&(ke="".concat(J).concat(ke)),ve=[S.createElement("span",{key:"int",className:"".concat(ie,"-content-value-int")},Ue,fe),ke&&S.createElement("span",{key:"decimal",className:"".concat(ie,"-content-value-decimal")},ke)]}}return S.createElement("span",{className:"".concat(ie,"-content-value")},ve)},n=i,e=function(j){var W=j.prefixCls,V=j.className,z=j.style,J=j.valueStyle,Z=j.value,de=Z===void 0?0:Z,ie=j.title,ve=j.valueRender,xe=j.prefix,_e=j.suffix,Ue=j.direction,fe=j.onMouseEnter,ke=j.onMouseLeave,se=S.createElement(n,A()({},j,{value:de})),te=f()(W,V,x()({},"".concat(W,"-rtl"),Ue==="rtl"));return S.createElement("div",{className:te,style:z,onMouseEnter:fe,onMouseLeave:ke},ie&&S.createElement("div",{className:"".concat(W,"-title")},ie),S.createElement("div",{style:J,className:"".concat(W,"-content")},xe&&S.createElement("span",{className:"".concat(W,"-content-prefix")},xe),ve?ve(se):se,_e&&S.createElement("span",{className:"".concat(W,"-content-suffix")},_e)))};e.defaultProps={decimalSeparator:".",groupSeparator:","};var l=Object(c.c)({prefixCls:"statistic"})(e),t=l,a=d("lwsE"),s=d.n(a),u=d("W8MJ"),h=d.n(u),p=d("7W2i"),m=d.n(p),v=d("LQ03"),y=d.n(v),E=d("J4zp"),T=d.n(E),b=d("QQZ/"),w=d.n(b),_=[["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(B,j){var W=B,V=/\[[^\]]*]/g,z=(j.match(V)||[]).map(function(ie){return ie.slice(1,-1)}),J=j.replace(V,"[]"),Z=_.reduce(function(ie,ve){var xe=T()(ve,2),_e=xe[0],Ue=xe[1];if(ie.indexOf(_e)!==-1){var fe=Math.floor(W/Ue);return W-=fe*Ue,ie.replace(new RegExp("".concat(_e,"+"),"g"),function(ke){var se=ke.length;return w()(fe.toString(),se,"0")})}return ie},J),de=0;return Z.replace(V,function(){var ie=z[de];return de+=1,ie})}function L(B,j){var W=j.format,V=W===void 0?"":W,z=new Date(B).getTime(),J=Date.now(),Z=Math.max(z-J,0);return I(Z,V)}var N=d("0n0R"),D=1e3/30;function R(B){return new Date(B).getTime()}var k=function(B){m()(W,B);var j=y()(W);function W(){var V;return s()(this,W),V=j.apply(this,arguments),V.syncTimer=function(){var z=V.props.value,J=R(z);J>=Date.now()?V.startTimer():V.stopTimer()},V.startTimer=function(){if(V.countdownId)return;V.countdownId=window.setInterval(function(){V.forceUpdate()},D)},V.stopTimer=function(){var z=V.props,J=z.onFinish,Z=z.value;if(V.countdownId){clearInterval(V.countdownId),V.countdownId=void 0;var de=R(Z);J&&de<Date.now()&&J()}},V.formatCountdown=function(z,J){var Z=V.props.format;return L(z,A()(A()({},J),{format:Z}))},V.valueRender=function(z){return Object(N.a)(z,{title:void 0})},V}return h()(W,[{key:"componentDidMount",value:function(){this.syncTimer()}},{key:"componentDidUpdate",value:function(){this.syncTimer()}},{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){return S.createElement(t,A()({valueRender:this.valueRender},this.props,{formatter:this.formatCountdown}))}}]),W}(S.Component);k.defaultProps={format:"HH:mm:ss"};var M=k;t.Countdown=M;var U=F.a=t},"sK/D":function(H,F,d){var O=d("IwbS"),x=d("OELB"),C=x.round;function A(f,c,o){var r=f.getArea(),i=f.getBaseAxis().isHorizontal(),n=r.x,e=r.y,l=r.width,t=r.height,a=o.get("lineStyle.width")||2;n-=a/2,e-=a/2,l+=a,t+=a,n=Math.floor(n),l=Math.round(l);var s=new O.Rect({shape:{x:n,y:e,width:l,height:t}});return c&&(s.shape[i?"width":"height"]=0,O.initProps(s,{shape:{width:l,height:t}},o)),s}function S(f,c,o){var r=f.getArea(),i=new O.Sector({shape:{cx:C(f.cx,1),cy:C(f.cy,1),r0:C(r.r0,1),r:C(r.r,1),startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return c&&(i.shape.endAngle=r.startAngle,O.initProps(i,{shape:{endAngle:r.endAngle}},o)),i}function g(f,c,o){if(f){if(f.type==="polar")return S(f,c,o);if(f.type==="cartesian2d")return A(f,c,o)}else return null;return null}F.createGridClipPath=A,F.createPolarClipPath=S,F.createClipPath=g},sKgW:function(H,F){var d=9007199254740991,O=Math.floor;function x(C,A){var S="";if(!C||A<1||A>d)return S;do A%2&&(S+=C),A=O(A/2),A&&(C+=C);while(A);return S}H.exports=x},sPJy:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("AOa7"),A=d.n(C),S=d("lUTK"),g=d("qVdP")},sPtV:function(H,F,d){"use strict";d.d(F,"a",function(){return A});var O=d("q1tI"),x=d.n(O),C=d("hkKa");function A(S){var g=O.useRef(S),f=Object(C.a)();return[function(){return g.current},function(c){g.current=c,f()}]}},sRwP:function(H,F,d){d("jsU+"),d("2548"),d("Tp9H"),d("06DH"),d("dnwI"),d("fE02"),d("33Ds")},"sS/r":function(H,F,d){var O=d("4fz+"),x=d("iRjW"),C=d("Yl7c"),A=function(){this.group=new O,this.uid=x.getUID("viewComponent")};A.prototype={constructor:A,init:function(f,c){},render:function(f,c,o,r){},dispose:function(){},filterForExposedEvent:null};var S=A.prototype;S.updateView=S.updateLayout=S.updateVisual=function(f,c,o,r){},C.enableClassExtend(A),C.enableClassManagement(A,{registerWhenExtend:!0});var g=A;H.exports=g},"sW+o":function(H,F,d){var O=d("SrGk"),x=d("bYtY"),C=d("SUKs"),A=d("Qe9p");function S(f,c){O.call(this,f,c,["linearGradient","radialGradient"],"__gradient_in_use__")}x.inherits(S,O),S.prototype.addWithoutUpdate=function(f,c){if(c&&c.style){var o=this;x.each(["fill","stroke"],function(r){if(c.style[r]&&(c.style[r].type==="linear"||c.style[r].type==="radial")){var i=c.style[r],n=o.getDefs(!0),e;i._dom?(e=i._dom,n.contains(i._dom)||o.addDom(e)):e=o.add(i),o.markUsed(c);var l=e.getAttribute("id");f.setAttribute(r,"url(#"+l+")")}})}},S.prototype.add=function(f){var c;if(f.type==="linear")c=this.createElement("linearGradient");else if(f.type==="radial")c=this.createElement("radialGradient");else return C("Illegal gradient type."),null;return f.id=f.id||this.nextId++,c.setAttribute("id","zr"+this._zrId+"-gradient-"+f.id),this.updateDom(f,c),this.addDom(c),c},S.prototype.update=function(f){var c=this;O.prototype.update.call(this,f,function(){var o=f.type,r=f._dom.tagName;o==="linear"&&r==="linearGradient"||o==="radial"&&r==="radialGradient"?c.updateDom(f,f._dom):(c.removeDom(f),c.add(f))})},S.prototype.updateDom=function(f,c){if(f.type==="linear")c.setAttribute("x1",f.x),c.setAttribute("y1",f.y),c.setAttribute("x2",f.x2),c.setAttribute("y2",f.y2);else if(f.type==="radial")c.setAttribute("cx",f.x),c.setAttribute("cy",f.y),c.setAttribute("r",f.r);else{C("Illegal gradient type.");return}f.global?c.setAttribute("gradientUnits","userSpaceOnUse"):c.setAttribute("gradientUnits","objectBoundingBox"),c.innerHTML="";for(var o=f.colorStops,r=0,i=o.length;r<i;++r){var n=this.createElement("stop");n.setAttribute("offset",o[r].offset*100+"%");var e=o[r].color;if(e.indexOf("rgba">-1)){var l=A.parse(e)[3],t=A.toHex(e);n.setAttribute("stop-color","#"+t),n.setAttribute("stop-opacity",l)}else n.setAttribute("stop-color",o[r].color);c.appendChild(n)}f._dom=c},S.prototype.markUsed=function(f){if(f.style){var c=f.style.fill;c&&c._dom&&O.prototype.markUsed.call(this,c._dom),c=f.style.stroke,c&&c._dom&&O.prototype.markUsed.call(this,c._dom)}};var g=S;H.exports=g},sdST:function(H,F,d){var O=d("hi0g");function x(C,A){return A=A||{},O(A.coordDimensions||[],C,{dimsDef:A.dimensionsDefine||C.dimensionsDefine,encodeDef:A.encodeDefine||C.encodeDefine,dimCount:A.dimensionsCount,encodeDefaulter:A.encodeDefaulter,generateCoord:A.generateCoord,generateCoordCount:A.generateCoordCount})}H.exports=x},sjKO:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=C;var O=30,x=12;function C(A,S){var g,f,c,o,r,i,n,e,l,t,a,s,u,h,p,m,v,y,E,T,b,w,_,I,L;g=A.state,f=A.next_in,I=A.input,c=f+(A.avail_in-5),o=A.next_out,L=A.output,r=o-(S-A.avail_out),i=o+(A.avail_out-257),n=g.dmax,e=g.wsize,l=g.whave,t=g.wnext,a=g.window,s=g.hold,u=g.bits,h=g.lencode,p=g.distcode,m=(1<<g.lenbits)-1,v=(1<<g.distbits)-1;e:do{u<15&&(s+=I[f++]<<u,u+=8,s+=I[f++]<<u,u+=8),y=h[s&m];t:for(;;){if(E=y>>>24,s>>>=E,u-=E,E=y>>>16&255,E===0)L[o++]=y&65535;else if(E&16){T=y&65535,E&=15,E&&(u<E&&(s+=I[f++]<<u,u+=8),T+=s&(1<<E)-1,s>>>=E,u-=E),u<15&&(s+=I[f++]<<u,u+=8,s+=I[f++]<<u,u+=8),y=p[s&v];r:for(;;){if(E=y>>>24,s>>>=E,u-=E,E=y>>>16&255,E&16){if(b=y&65535,E&=15,u<E&&(s+=I[f++]<<u,u+=8,u<E&&(s+=I[f++]<<u,u+=8)),b+=s&(1<<E)-1,b>n){A.msg="invalid distance too far back",g.mode=O;break e}if(s>>>=E,u-=E,E=o-r,b>E){if(E=b-E,E>l&&g.sane){A.msg="invalid distance too far back",g.mode=O;break e}if(w=0,_=a,t===0){if(w+=e-E,E<T){T-=E;do L[o++]=a[w++];while(--E);w=o-b,_=L}}else if(t<E){if(w+=e+t-E,E-=t,E<T){T-=E;do L[o++]=a[w++];while(--E);if(w=0,t<T){E=t,T-=E;do L[o++]=a[w++];while(--E);w=o-b,_=L}}}else if(w+=t-E,E<T){T-=E;do L[o++]=a[w++];while(--E);w=o-b,_=L}for(;T>2;)L[o++]=_[w++],L[o++]=_[w++],L[o++]=_[w++],T-=3;T&&(L[o++]=_[w++],T>1&&(L[o++]=_[w++]))}else{w=o-b;do L[o++]=L[w++],L[o++]=L[w++],L[o++]=L[w++],T-=3;while(T>2);T&&(L[o++]=L[w++],T>1&&(L[o++]=L[w++]))}}else if((E&64)===0){y=p[(y&65535)+(s&(1<<E)-1)];continue r}else{A.msg="invalid distance code",g.mode=O;break e}break}}else if((E&64)===0){y=h[(y&65535)+(s&(1<<E)-1)];continue t}else if(E&32){g.mode=x;break e}else{A.msg="invalid literal/length code",g.mode=O;break e}break}}while(f<c&&o<i);T=u>>3,f-=T,u-=T<<3,s&=(1<<u)-1,A.next_in=f,A.next_out=o,A.avail_in=f<c?5+(c-f):5-(f-c),A.avail_out=o<i?257+(i-o):257-(o-i),g.hold=s,g.bits=u;return}},szbU:function(H,F,d){var O=d("bYtY"),x=O.each;function C(S){var g=S&&S.visualMap;O.isArray(g)||(g=g?[g]:[]),x(g,function(f){if(!f)return;A(f,"splitList")&&!A(f,"pieces")&&(f.pieces=f.splitList,delete f.splitList);var c=f.pieces;c&&O.isArray(c)&&x(c,function(o){O.isObject(o)&&(A(o,"start")&&!A(o,"min")&&(o.min=o.start),A(o,"end")&&!A(o,"max")&&(o.max=o.end))})})}function A(S,g){return S&&S.hasOwnProperty&&S.hasOwnProperty(g)}H.exports=C},t23M:function(H,F,d){"use strict";var O=d("wx14"),x=d("q1tI"),C=d("Zm9Q"),A=d("Kwbf"),S=d("VTBJ"),g=d("c+Xe"),f=d("m+aA"),c=d("bdgK"),o=new Map;function r(w){w.forEach(function(_){var I,L=_.target;(I=o.get(L))===null||I===void 0||I.forEach(function(N){return N(L)})})}var i=new c.default(r),n=null,e=null;function l(w,_){o.has(w)||(o.set(w,new Set),i.observe(w)),o.get(w).add(_)}function t(w,_){o.has(w)&&(o.get(w).delete(_),o.get(w).size||(i.unobserve(w),o.delete(w)))}var a=d("1OyB"),s=d("vuIU"),u=d("Ji7U"),h=d("LK+K"),p=function(w){Object(u.a)(I,w);var _=Object(h.a)(I);function I(){return Object(a.a)(this,I),_.apply(this,arguments)}return Object(s.a)(I,[{key:"render",value:function(){return this.props.children}}]),I}(x.Component),m=x.createContext(null);function v(w){var _=w.children,I=w.onBatchResize,L=x.useRef(0),N=x.useRef([]),D=x.useContext(m),R=x.useCallback(function(k,M,U){L.current+=1;var B=L.current;N.current.push({size:k,element:M,data:U}),Promise.resolve().then(function(){B===L.current&&(I==null||I(N.current),N.current=[])}),D==null||D(k,M,U)},[I,D]);return x.createElement(m.Provider,{value:R},_)}function y(w){var _=w.children,I=w.disabled,L=x.useRef(null),N=x.useRef(null),D=x.useContext(m),R=typeof _=="function",k=R?_(L):_,M=x.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),U=!R&&x.isValidElement(k)&&Object(g.c)(k),B=U?k.ref:null,j=x.useMemo(function(){return Object(g.a)(B,L)},[B,L]),W=x.useRef(w);W.current=w;var V=x.useCallback(function(z){var J=W.current,Z=J.onResize,de=J.data,ie=z.getBoundingClientRect(),ve=ie.width,xe=ie.height,_e=z.offsetWidth,Ue=z.offsetHeight,fe=Math.floor(ve),ke=Math.floor(xe);if(M.current.width!==fe||M.current.height!==ke||M.current.offsetWidth!==_e||M.current.offsetHeight!==Ue){var se={width:fe,height:ke,offsetWidth:_e,offsetHeight:Ue};M.current=se;var te=_e===Math.round(ve)?ve:_e,Ve=Ue===Math.round(xe)?xe:Ue,ae=Object(S.a)(Object(S.a)({},se),{},{offsetWidth:te,offsetHeight:Ve});D==null||D(ae,z,de),Z&&Promise.resolve().then(function(){Z(ae,z)})}},[]);return x.useEffect(function(){var z=Object(f.a)(L.current)||Object(f.a)(N.current);return z&&!I&&l(z,V),function(){return t(z,V)}},[L.current,I]),x.createElement(p,{ref:N},U?x.cloneElement(k,{ref:j}):k)}var E="rc-observer-key";function T(w){var _=w.children,I=typeof _=="function"?[_]:Object(C.a)(_);return I.map(function(L,N){var D=(L==null?void 0:L.key)||"".concat(E,"-").concat(N);return x.createElement(y,Object(O.a)({},w,{key:D}),L)})}T.Collection=v;var b=F.a=T},t3Fx:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=Object.assign||function(a){for(var s=1;s<arguments.length;s++){var u=arguments[s];for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(a[h]=u[h])}return a},x=function(){function a(s,u){for(var h=0;h<u.length;h++){var p=u[h];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(s,p.key,p)}}return function(s,u,h){return u&&a(s.prototype,u),h&&a(s,h),s}}(),C=d("q1tI"),A=i(C),S=d("17x9"),g=i(S),f=d("tkwv"),c=i(f),o=d("u3os"),r=d("kzFp");function i(a){return a&&a.__esModule?a:{default:a}}function n(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function e(a,s){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:a}function l(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(a,s):a.__proto__=s)}var t=function(a){l(s,a);function s(u){n(this,s);var h=e(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,u));return h.getEchartsInstance=function(){return h.echartsLib.getInstanceByDom(h.echartsElement)||h.echartsLib.init(h.echartsElement,h.props.theme,h.props.opts)},h.dispose=function(){if(h.echartsElement){try{(0,o.clear)(h.echartsElement)}catch(p){console.warn(p)}h.echartsLib.dispose(h.echartsElement)}},h.rerender=function(){var p=h.props,m=p.onEvents,v=p.onChartReady,y=h.renderEchartDom();h.bindEvents(y,m||{}),typeof v=="function"&&h.props.onChartReady(y),h.echartsElement&&(0,o.bind)(h.echartsElement,function(){try{y.resize()}catch(E){console.warn(E)}})},h.bindEvents=function(p,m){var v=function(T,b){typeof T=="string"&&typeof b=="function"&&p.on(T,function(w){b(w,p)})};for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&v(y,m[y])},h.renderEchartDom=function(){var p=h.getEchartsInstance();return p.setOption(h.props.option,h.props.notMerge||!1,h.props.lazyUpdate||!1),h.props.showLoading?p.showLoading(h.props.loadingOption||null):p.hideLoading(),p},h.echartsLib=u.echarts,h.echartsElement=null,h}return x(s,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(h){if(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(h,this.props))return;if(!(0,c.default)(h.theme,this.props.theme)||!(0,c.default)(h.opts,this.props.opts)||!(0,c.default)(h.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var p=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if((0,c.default)((0,r.pick)(this.props,p),(0,r.pick)(h,p)))return;var m=this.renderEchartDom();if(!(0,c.default)(h.style,this.props.style)||!(0,c.default)(h.className,this.props.className))try{m.resize()}catch(v){console.warn(v)}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var h=this,p=this.props,m=p.style,v=p.className,y=O({height:300},m);return A.default.createElement("div",{ref:function(T){h.echartsElement=T},style:y,className:"echarts-for-react "+v})}}]),s}(C.Component);F.default=t,t.propTypes={option:g.default.object.isRequired,echarts:g.default.object,notMerge:g.default.bool,lazyUpdate:g.default.bool,style:g.default.object,className:g.default.string,theme:g.default.oneOfType([g.default.string,g.default.object]),onChartReady:g.default.func,showLoading:g.default.bool,loadingOption:g.default.object,onEvents:g.default.object,opts:g.default.shape({devicePixelRatio:g.default.number,renderer:g.default.oneOf(["canvas","svg"]),width:g.default.oneOfType([g.default.number,g.default.oneOf([null,void 0,"auto"])]),height:g.default.oneOfType([g.default.number,g.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:g.default.func},t.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},tBnm:function(H,F,d){var O=d("bYtY"),x=d("IwbS"),C=d("Qxkt"),A=d("Znkb"),S=d("+rIm"),g=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function f(i,n,e){n[1]>n[0]&&(n=n.slice().reverse());var l=i.coordToPoint([n[0],e]),t=i.coordToPoint([n[1],e]);return{x1:l[0],y1:l[1],x2:t[0],y2:t[1]}}function c(i){var n=i.getRadiusAxis();return n.inverse?0:1}function o(i){var n=i[0],e=i[i.length-1];n&&e&&Math.abs(Math.abs(n.coord-e.coord)-360)<1e-4&&i.pop()}var r=A.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(i,n){if(this.group.removeAll(),!i.get("show"))return;var e=i.axis,l=e.polar,t=l.getRadiusAxis().getExtent(),a=e.getTicksCoords(),s=e.getMinorTicksCoords(),u=O.map(e.getViewLabels(),function(h){var h=O.clone(h);return h.coord=e.dataToCoord(h.tickValue),h});o(u),o(a),O.each(g,function(h){i.get(h+".show")&&(!e.scale.isBlank()||h==="axisLine")&&this["_"+h](i,l,a,s,t,u)},this)},_axisLine:function(i,n,e,l,t){var a=i.getModel("axisLine.lineStyle"),s=c(n),u=s?0:1,h;t[u]===0?h=new x.Circle({shape:{cx:n.cx,cy:n.cy,r:t[s]},style:a.getLineStyle(),z2:1,silent:!0}):h=new x.Ring({shape:{cx:n.cx,cy:n.cy,r:t[s],r0:t[u]},style:a.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,this.group.add(h)},_axisTick:function(i,n,e,l,t){var a=i.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),u=t[c(n)],h=O.map(e,function(p){return new x.Line({shape:f(n,[u,u+s],p.coord)})});this.group.add(x.mergePath(h,{style:O.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:i.get("axisLine.lineStyle.color")})}))},_minorTick:function(i,n,e,l,t){if(!l.length)return;for(var a=i.getModel("axisTick"),s=i.getModel("minorTick"),u=(a.get("inside")?-1:1)*s.get("length"),h=t[c(n)],p=[],m=0;m<l.length;m++)for(var v=0;v<l[m].length;v++)p.push(new x.Line({shape:f(n,[h,h+u],l[m][v].coord)}));this.group.add(x.mergePath(p,{style:O.defaults(s.getModel("lineStyle").getLineStyle(),O.defaults(a.getLineStyle(),{stroke:i.get("axisLine.lineStyle.color")}))}))},_axisLabel:function(i,n,e,l,t,a){var s=i.getCategories(!0),u=i.getModel("axisLabel"),h=u.get("margin"),p=i.get("triggerEvent");O.each(a,function(m,v){var y=u,E=m.tickValue,T=t[c(n)],b=n.coordToPoint([T+h,m.coord]),w=n.cx,_=n.cy,I=Math.abs(b[0]-w)/T<.3?"center":b[0]>w?"left":"right",L=Math.abs(b[1]-_)/T<.3?"middle":b[1]>_?"top":"bottom";s&&s[E]&&s[E].textStyle&&(y=new C(s[E].textStyle,u,u.ecModel));var N=new x.Text({silent:S.isLabelSilent(i)});this.group.add(N),x.setTextStyle(N.style,y,{x:b[0],y:b[1],textFill:y.getTextColor()||i.get("axisLine.lineStyle.color"),text:m.formattedLabel,textAlign:I,textVerticalAlign:L}),p&&(N.eventData=S.makeAxisEventDataBase(i),N.eventData.targetType="axisLabel",N.eventData.value=m.rawLabel)},this)},_splitLine:function(i,n,e,l,t){var a=i.getModel("splitLine"),s=a.getModel("lineStyle"),u=s.get("color"),h=0;u=u instanceof Array?u:[u];for(var p=[],m=0;m<e.length;m++){var v=h++%u.length;p[v]=p[v]||[],p[v].push(new x.Line({shape:f(n,t,e[m].coord)}))}for(var m=0;m<p.length;m++)this.group.add(x.mergePath(p[m],{style:O.defaults({stroke:u[m%u.length]},s.getLineStyle()),silent:!0,z:i.get("z")}))},_minorSplitLine:function(i,n,e,l,t){if(!l.length)return;for(var a=i.getModel("minorSplitLine"),s=a.getModel("lineStyle"),u=[],h=0;h<l.length;h++)for(var p=0;p<l[h].length;p++)u.push(new x.Line({shape:f(n,t,l[h][p].coord)}));this.group.add(x.mergePath(u,{style:s.getLineStyle(),silent:!0,z:i.get("z")}))},_splitArea:function(i,n,e,l,t){if(!e.length)return;var a=i.getModel("splitArea"),s=a.getModel("areaStyle"),u=s.get("color"),h=0;u=u instanceof Array?u:[u];for(var p=[],m=Math.PI/180,v=-e[0].coord*m,y=Math.min(t[0],t[1]),E=Math.max(t[0],t[1]),T=i.get("clockwise"),b=1;b<e.length;b++){var w=h++%u.length;p[w]=p[w]||[],p[w].push(new x.Sector({shape:{cx:n.cx,cy:n.cy,r0:y,r:E,startAngle:v,endAngle:-e[b].coord*m,clockwise:T},silent:!0})),v=-e[b].coord*m}for(var b=0;b<p.length;b++)this.group.add(x.mergePath(p[b],{style:O.defaults({fill:u[b%u.length]},s.getAreaStyle()),silent:!0}))}});H.exports=r},tSko:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("SRve")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="PlusOutlined";var c=A.forwardRef(f);F.default=c},tceW:function(H,F,d){var O=d("KCsZ"),x=O([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),C={getBarItemStyle:function(A){var S=x(this,A);if(this.getBorderLineDash){var g=this.getBorderLineDash();g&&(S.lineDash=g)}return S}};H.exports=C},tkwv:function(H,F,d){"use strict";var O=Array.isArray,x=Object.keys,C=Object.prototype.hasOwnProperty;H.exports=function A(S,g){if(S===g)return!0;if(S&&g&&typeof S=="object"&&typeof g=="object"){var f=O(S),c=O(g),o,r,i;if(f&&c){if(r=S.length,r!=g.length)return!1;for(o=r;o--!==0;)if(!A(S[o],g[o]))return!1;return!0}if(f!=c)return!1;var n=S instanceof Date,e=g instanceof Date;if(n!=e)return!1;if(n&&e)return S.getTime()==g.getTime();var l=S instanceof RegExp,t=g instanceof RegExp;if(l!=t)return!1;if(l&&t)return S.toString()==g.toString();var a=x(S);if(r=a.length,r!==x(g).length)return!1;for(o=r;o--!==0;)if(!C.call(g,a[o]))return!1;for(o=r;o--!==0;)if(i=a[o],!A(S[i],g[i]))return!1;return!0}return S!==S&&g!==g}},txkQ:function(H,F,d){var O=d("aX58");F.zrender=O;var x=d("Fofx");F.matrix=x;var C=d("QBsz");F.vector=C;var A=d("bYtY"),S=d("Qe9p");F.color=S;var g=d("IwbS"),f=d("OELB");F.number=f;var c=d("7aKB");F.format=c;var o=d("iLNv"),r=o.throttle;F.throttle=o.throttle;var i=d("FUi9");F.helper=i;var n=d("vafp");F.parseGeoJSON=n;var e=d("YXkt");F.List=e;var l=d("Qxkt");F.Model=l;var t=d("hM6l");F.Axis=t;var a=d("ItGF");F.env=a;var s=n,u={};A.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(p){u[p]=A[p]});var h={};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(p){h[p]=g[p]}),F.parseGeoJson=s,F.util=u,F.graphic=h},u3DP:function(H,F,d){var O=d("6GrX"),x=d("OELB"),C=x.parsePercent,A=Math.PI/180;function S(o,r,i,n,e,l,t,a,s,u){o.sort(function(I,L){return I.y-L.y});function h(I,L,N,D){for(var R=I;R<L&&!(o[R].y+N>s+t);R++)if(o[R].y+=N,R>I&&R+1<L&&o[R+1].y>o[R].y+o[R].height){p(R,N/2);return}p(L-1,N/2)}function p(I,L){for(var N=I;N>=0&&!(o[N].y-L<s);N--)if(o[N].y-=L,N>0&&o[N].y>o[N-1].y+o[N-1].height)break}function m(I,L,N,D,R,k){for(var M=(k>0,L?Number.MAX_VALUE:0),U=0,B=I.length;U<B;U++){if(I[U].labelAlignTo!=="none")continue;var j=Math.abs(I[U].y-D),W=I[U].len,V=I[U].len2,z=j<R+W?Math.sqrt((R+W+V)*(R+W+V)-j*j):Math.abs(I[U].x-N);L&&z>=M&&(z=M-10),!L&&z<=M&&(z=M+10),I[U].x=N+z*k,M=z}}for(var v=0,y,E=o.length,T=[],b=[],w=0;w<E;w++){if(o[w].position==="outer"&&o[w].labelAlignTo==="labelLine"){var _=o[w].x-u;o[w].linePoints[1][0]+=_,o[w].x=u}y=o[w].y-v,y<0&&h(w,E,-y,e),v=o[w].y+o[w].height}t-v<0&&p(E-1,v-t);for(var w=0;w<E;w++)o[w].y>=i?b.push(o[w]):T.push(o[w]);m(T,!1,r,i,n,e),m(b,!0,r,i,n,e)}function g(o,r,i,n,e,l,t,a){for(var s=[],u=[],h=Number.MAX_VALUE,p=-Number.MAX_VALUE,m=0;m<o.length;m++){if(f(o[m]))continue;o[m].x<r?(h=Math.min(h,o[m].x),s.push(o[m])):(p=Math.max(p,o[m].x),u.push(o[m]))}S(u,r,i,n,1,e,l,t,a,p),S(s,r,i,n,-1,e,l,t,a,h);for(var m=0;m<o.length;m++){var v=o[m];if(f(v))continue;var y=v.linePoints;if(y){var E=v.labelAlignTo==="edge",T=v.textRect.width,b;E?v.x<r?b=y[2][0]-v.labelDistance-t-v.labelMargin:b=t+e-v.labelMargin-y[2][0]-v.labelDistance:v.x<r?b=v.x-t-v.bleedMargin:b=t+e-v.x-v.bleedMargin,b<v.textRect.width&&(v.text=O.truncateText(v.text,b,v.font),v.labelAlignTo==="edge"&&(T=O.getWidth(v.text,v.font)));var w=y[1][0]-y[2][0];E?v.x<r?y[2][0]=t+v.labelMargin+T+v.labelDistance:y[2][0]=t+e-v.labelMargin-T-v.labelDistance:(v.x<r?y[2][0]=v.x+v.labelDistance:y[2][0]=v.x-v.labelDistance,y[1][0]=y[2][0]+w),y[1][1]=y[2][1]=v.y}}}function f(o){return o.position==="center"}function c(o,r,i,n,e,l){var t=o.getData(),a=[],s,u,h=!1,p=(o.get("minShowLabelAngle")||0)*A;t.each(function(m){var v=t.getItemLayout(m),y=t.getItemModel(m),E=y.getModel("label"),T=E.get("position")||y.get("emphasis.label.position"),b=E.get("distanceToLabelLine"),w=E.get("alignTo"),_=C(E.get("margin"),i),I=E.get("bleedMargin"),L=E.getFont(),N=y.getModel("labelLine"),D=N.get("length");D=C(D,i);var R=N.get("length2");if(R=C(R,i),v.angle<p)return;var k=(v.startAngle+v.endAngle)/2,M=Math.cos(k),U=Math.sin(k),B,j,W,V;s=v.cx,u=v.cy;var z=o.getFormattedLabel(m,"normal")||t.getName(m),J=O.getBoundingRect(z,L,V,"top"),Z=T==="inside"||T==="inner";if(T==="center")B=v.cx,j=v.cy,V="center";else{var de=(Z?(v.r+v.r0)/2*M:v.r*M)+s,ie=(Z?(v.r+v.r0)/2*U:v.r*U)+u;if(B=de+M*3,j=ie+U*3,!Z){var ve=de+M*(D+r-v.r),xe=ie+U*(D+r-v.r),_e=ve+(M<0?-1:1)*R,Ue=xe;w==="edge"?B=M<0?e+_:e+i-_:B=_e+(M<0?-b:b),j=Ue,W=[[de,ie],[ve,xe],[_e,Ue]]}V=Z?"center":w==="edge"?M>0?"right":"left":M>0?"left":"right"}var fe,ke=E.get("rotate");typeof ke=="number"?fe=ke*(Math.PI/180):fe=ke?M<0?-k+Math.PI:-k:0,h=!!fe,v.label={x:B,y:j,position:T,height:J.height,len:D,len2:R,linePoints:W,textAlign:V,verticalAlign:"middle",rotation:fe,inside:Z,labelDistance:b,labelAlignTo:w,labelMargin:_,bleedMargin:I,textRect:J,text:z,font:L},Z||a.push(v.label)}),!h&&o.get("avoidLabelOverlap")&&g(a,s,u,r,i,n,e,l)}H.exports=c},u3os:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.ver=F.clear=F.bind=void 0;var O=d("P4Qj"),x=function(g,f){var c=(0,O.getSensor)(g);return c.bind(f),function(){c.unbind(f)}};F.bind=x;var C=function(g){var f=(0,O.getSensor)(g);(0,O.removeSensor)(f)};F.clear=C;var A="1.0.1";F.ver=A},u4NN:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("Uc92")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="EyeOutlined";var c=A.forwardRef(f);F.default=c},u9fO:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("b80e"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},uAnK:function(H,F,d){var O=d("bYtY"),x=d("Kagy"),C=d("KxfA"),A=C.retrieveRawValue;function S(g,f){var c=f.getModel("aria");if(c.get("show")){if(c.get("description")){g.setAttribute("aria-label",c.get("description"));return}}else return;var o=0;f.eachSeries(function(m,v){++o},this);var r=c.get("data.maxCount")||10,i=c.get("series.maxCount")||10,n=Math.min(o,i),e;if(o<1)return;var l=h();l?e=s(u("general.withTitle"),{title:l}):e=u("general.withoutTitle");var t=[],a=o>1?"series.multiple.prefix":"series.single.prefix";e+=s(u(a),{seriesCount:o}),f.eachSeries(function(m,v){if(v<n){var y,E=m.get("name"),T="series."+(o>1?"multiple":"single")+".";y=u(E?T+"withName":T+"withoutName"),y=s(y,{seriesId:m.seriesIndex,seriesName:m.get("name"),seriesType:p(m.subType)});var b=m.getData();window.data=b,b.count()>r?y+=s(u("data.partialData"),{displayCnt:r}):y+=u("data.allData");for(var w=[],_=0;_<b.count();_++)if(_<r){var I=b.getName(_),L=A(b,_);w.push(s(u(I?"data.withName":"data.withoutName"),{name:I,value:L}))}y+=w.join(u("data.separator.middle"))+u("data.separator.end"),t.push(y)}}),e+=t.join(u("series.multiple.separator.middle"))+u("series.multiple.separator.end"),g.setAttribute("aria-label",e);function s(m,v){if(typeof m!="string")return m;var y=m;return O.each(v,function(E,T){y=y.replace(new RegExp("\\{\\s*"+T+"\\s*\\}","g"),E)}),y}function u(m){var v=c.get(m);if(v==null){for(var y=m.split("."),E=x.aria,T=0;T<y.length;++T)E=E[y[T]];return E}else return v}function h(){var m=f.getModel("title").option;return m&&m.length&&(m=m[0]),m&&m.text}function p(m){return x.series.typeNames[m]||"\u81EA\u5B9A\u4E49\u56FE"}}H.exports=S},uGsb:function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("MlIO"),d("1uat"))})(this,function(O){return function(){var x=O,C=x.x64,A=C.Word,S=C.WordArray,g=x.algo,f=g.SHA512,c=g.SHA384=f.extend({_doReset:function(){this._hash=new S.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 r=f._doFinalize.call(this);return r.sigBytes-=16,r}});x.SHA384=f._createHelper(c),x.HmacSHA384=f._createHmacHelper(c)}(),O.SHA384})},uGxW:function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.NoPadding={pad:function(){},unpad:function(){}},O.pad.NoPadding})},uK0f:function(H,F,d){(function(O,x){H.exports=x()})(this,function(){"use strict";function O(x,C,A){A=A||{},A.childrenKeyName=A.childrenKeyName||"children";var S=x||[],g=[],f=0;do{var c=S.filter(function(o){return C(o,f)})[0];if(!c)break;g.push(c),S=c[A.childrenKeyName]||[],f+=1}while(S.length>0);return g}return O})},uOyE:function(H,F,d){var O=d("ProS");O.registerAction({type:"brush",event:"brush"},function(x,C){C.eachComponent({mainType:"brush",query:x},function(A){A.setAreas(x.areas)})}),O.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),O.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){})},uQRt:function(H,F,d){H.exports=O;function O(){return d("gaXo"),{}}},uciX:function(H,F,d){"use strict";var O=d("VTBJ"),x=d("wx14"),C=d("1OyB"),A=d("vuIU"),S=d("JX7q"),g=d("Ji7U"),f=d("LK+K"),c=d("q1tI"),o=d("i8i4"),r=d.n(o),i=d("wgJM"),n=d("l4aY"),e=d("m+aA"),l=d("c+Xe"),t=d("zT1h"),a=d("QC+M"),s=d("TSYQ"),u=d.n(s);function h(se,te,Ve){return Ve?se[0]===te[0]:se[0]===te[0]&&se[1]===te[1]}function p(se,te,Ve){var ae=se[te]||{};return Object(O.a)(Object(O.a)({},ae),Ve)}function m(se,te,Ve,ae){for(var Q=Ve.points,G=Object.keys(se),Y=0;Y<G.length;Y+=1){var me=G[Y];if(h(se[me].points,Q,ae))return"".concat(te,"-placement-").concat(me)}return""}var v=d("ODXe"),y=d("Ff2n"),E=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var se=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(se)||/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(se==null?void 0:se.substr(0,4)))},T=d("8XRh");function b(se){var te=se.prefixCls,Ve=se.motion,ae=se.animation,Q=se.transitionName;return Ve||(ae?{motionName:"".concat(te,"-").concat(ae)}:Q?{motionName:Q}:null)}function w(se){var te=se.prefixCls,Ve=se.visible,ae=se.zIndex,Q=se.mask,G=se.maskMotion,Y=se.maskAnimation,me=se.maskTransitionName;if(!Q)return null;var ue={};return(G||me||Y)&&(ue=Object(O.a)({motionAppear:!0},b({motion:G,prefixCls:te,transitionName:me,animation:Y}))),c.createElement(T.b,Object(x.a)({},ue,{visible:Ve,removeOnLeave:!0}),function(Ce){var Ie=Ce.className;return c.createElement("div",{style:{zIndex:ae},className:u()("".concat(te,"-mask"),Ie)})})}var _=d("9mu1"),I=d("TNol"),L=d("U8pU");function N(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */N=function(){return se};var se={},te=Object.prototype,Ve=te.hasOwnProperty,ae=typeof Symbol=="function"?Symbol:{},Q=ae.iterator||"@@iterator",G=ae.asyncIterator||"@@asyncIterator",Y=ae.toStringTag||"@@toStringTag";function me(oe,X,Be){return Object.defineProperty(oe,X,{value:Be,enumerable:!0,configurable:!0,writable:!0}),oe[X]}try{me({},"")}catch(oe){me=function(Be,Ee,ee){return Be[Ee]=ee}}function ue(oe,X,Be,Ee){var ee=X&&X.prototype instanceof ce?X:ce,lt=Object.create(ee.prototype),Ct=new Mt(Ee||[]);return lt._invoke=function(dt,_t,ir){var $r="suspendedStart";return function(nr,lr){if($r==="executing")throw new Error("Generator is already running");if($r==="completed"){if(nr==="throw")throw lr;return Xe()}for(ir.method=nr,ir.arg=lr;;){var zt=ir.delegate;if(zt){var Ut=xt(zt,ir);if(Ut){if(Ut===Ie)continue;return Ut}}if(ir.method==="next")ir.sent=ir._sent=ir.arg;else if(ir.method==="throw"){if($r==="suspendedStart")throw $r="completed",ir.arg;ir.dispatchException(ir.arg)}else ir.method==="return"&&ir.abrupt("return",ir.arg);$r="executing";var st=Ce(dt,_t,ir);if(st.type==="normal"){if($r=ir.done?"completed":"suspendedYield",st.arg===Ie)continue;return{value:st.arg,done:ir.done}}st.type==="throw"&&($r="completed",ir.method="throw",ir.arg=st.arg)}}}(oe,Be,Ct),lt}function Ce(oe,X,Be){try{return{type:"normal",arg:oe.call(X,Be)}}catch(Ee){return{type:"throw",arg:Ee}}}se.wrap=ue;var Ie={};function ce(){}function Ae(){}function Te(){}var Ge={};me(Ge,Q,function(){return this});var gt=Object.getPrototypeOf,qe=gt&>(gt(Tt([])));qe&&qe!==te&&Ve.call(qe,Q)&&(Ge=qe);var Le=Te.prototype=ce.prototype=Object.create(Ge);function Ot(oe){["next","throw","return"].forEach(function(X){me(oe,X,function(Be){return this._invoke(X,Be)})})}function $e(oe,X){function Be(ee,lt,Ct,dt){var _t=Ce(oe[ee],oe,lt);if(_t.type!=="throw"){var ir=_t.arg,$r=ir.value;return $r&&Object(L.a)($r)=="object"&&Ve.call($r,"__await")?X.resolve($r.__await).then(function(nr){Be("next",nr,Ct,dt)},function(nr){Be("throw",nr,Ct,dt)}):X.resolve($r).then(function(nr){ir.value=nr,Ct(ir)},function(nr){return Be("throw",nr,Ct,dt)})}dt(_t.arg)}var Ee;this._invoke=function(ee,lt){function Ct(){return new X(function(dt,_t){Be(ee,lt,dt,_t)})}return Ee=Ee?Ee.then(Ct,Ct):Ct()}}function xt(oe,X){var Be=oe.iterator[X.method];if(Be===void 0){if(X.delegate=null,X.method==="throw"){if(oe.iterator.return&&(X.method="return",X.arg=void 0,xt(oe,X),X.method==="throw"))return Ie;X.method="throw",X.arg=new TypeError("The iterator does not provide a 'throw' method")}return Ie}var Ee=Ce(Be,oe.iterator,X.arg);if(Ee.type==="throw")return X.method="throw",X.arg=Ee.arg,X.delegate=null,Ie;var ee=Ee.arg;return ee?ee.done?(X[oe.resultName]=ee.value,X.next=oe.nextLoc,X.method!=="return"&&(X.method="next",X.arg=void 0),X.delegate=null,Ie):ee:(X.method="throw",X.arg=new TypeError("iterator result is not an object"),X.delegate=null,Ie)}function Ht(oe){var X={tryLoc:oe[0]};1 in oe&&(X.catchLoc=oe[1]),2 in oe&&(X.finallyLoc=oe[2],X.afterLoc=oe[3]),this.tryEntries.push(X)}function tr(oe){var X=oe.completion||{};X.type="normal",delete X.arg,oe.completion=X}function Mt(oe){this.tryEntries=[{tryLoc:"root"}],oe.forEach(Ht,this),this.reset(!0)}function Tt(oe){if(oe){var X=oe[Q];if(X)return X.call(oe);if(typeof oe.next=="function")return oe;if(!isNaN(oe.length)){var Be=-1,Ee=function ee(){for(;++Be<oe.length;)if(Ve.call(oe,Be))return ee.value=oe[Be],ee.done=!1,ee;return ee.value=void 0,ee.done=!0,ee};return Ee.next=Ee}}return{next:Xe}}function Xe(){return{value:void 0,done:!0}}return Ae.prototype=Te,me(Le,"constructor",Te),me(Te,"constructor",Ae),Ae.displayName=me(Te,Y,"GeneratorFunction"),se.isGeneratorFunction=function(oe){var X=typeof oe=="function"&&oe.constructor;return!!X&&(X===Ae||(X.displayName||X.name)==="GeneratorFunction")},se.mark=function(oe){return Object.setPrototypeOf?Object.setPrototypeOf(oe,Te):(oe.__proto__=Te,me(oe,Y,"GeneratorFunction")),oe.prototype=Object.create(Le),oe},se.awrap=function(oe){return{__await:oe}},Ot($e.prototype),me($e.prototype,G,function(){return this}),se.AsyncIterator=$e,se.async=function(oe,X,Be,Ee,ee){ee===void 0&&(ee=Promise);var lt=new $e(ue(oe,X,Be,Ee),ee);return se.isGeneratorFunction(X)?lt:lt.next().then(function(Ct){return Ct.done?Ct.value:lt.next()})},Ot(Le),me(Le,Y,"Generator"),me(Le,Q,function(){return this}),me(Le,"toString",function(){return"[object Generator]"}),se.keys=function(oe){var X=[];for(var Be in oe)X.push(Be);return X.reverse(),function Ee(){for(;X.length;){var ee=X.pop();if(ee in oe)return Ee.value=ee,Ee.done=!1,Ee}return Ee.done=!0,Ee}},se.values=Tt,Mt.prototype={constructor:Mt,reset:function(X){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(tr),!X)for(var Be in this)Be.charAt(0)==="t"&&Ve.call(this,Be)&&!isNaN(+Be.slice(1))&&(this[Be]=void 0)},stop:function(){this.done=!0;var X=this.tryEntries[0].completion;if(X.type==="throw")throw X.arg;return this.rval},dispatchException:function(X){if(this.done)throw X;var Be=this;function Ee(ir,$r){return Ct.type="throw",Ct.arg=X,Be.next=ir,$r&&(Be.method="next",Be.arg=void 0),!!$r}for(var ee=this.tryEntries.length-1;ee>=0;--ee){var lt=this.tryEntries[ee],Ct=lt.completion;if(lt.tryLoc==="root")return Ee("end");if(lt.tryLoc<=this.prev){var dt=Ve.call(lt,"catchLoc"),_t=Ve.call(lt,"finallyLoc");if(dt&&_t){if(this.prev<lt.catchLoc)return Ee(lt.catchLoc,!0);if(this.prev<lt.finallyLoc)return Ee(lt.finallyLoc)}else if(dt){if(this.prev<lt.catchLoc)return Ee(lt.catchLoc,!0)}else{if(!_t)throw new Error("try statement without catch or finally");if(this.prev<lt.finallyLoc)return Ee(lt.finallyLoc)}}}},abrupt:function(X,Be){for(var Ee=this.tryEntries.length-1;Ee>=0;--Ee){var ee=this.tryEntries[Ee];if(ee.tryLoc<=this.prev&&Ve.call(ee,"finallyLoc")&&this.prev<ee.finallyLoc){var lt=ee;break}}lt&&(X==="break"||X==="continue")&<.tryLoc<=Be&&Be<=lt.finallyLoc&&(lt=null);var Ct=lt?lt.completion:{};return Ct.type=X,Ct.arg=Be,lt?(this.method="next",this.next=lt.finallyLoc,Ie):this.complete(Ct)},complete:function(X,Be){if(X.type==="throw")throw X.arg;return X.type==="break"||X.type==="continue"?this.next=X.arg:X.type==="return"?(this.rval=this.arg=X.arg,this.method="return",this.next="end"):X.type==="normal"&&Be&&(this.next=Be),Ie},finish:function(X){for(var Be=this.tryEntries.length-1;Be>=0;--Be){var Ee=this.tryEntries[Be];if(Ee.finallyLoc===X)return this.complete(Ee.completion,Ee.afterLoc),tr(Ee),Ie}},catch:function(X){for(var Be=this.tryEntries.length-1;Be>=0;--Be){var Ee=this.tryEntries[Be];if(Ee.tryLoc===X){var ee=Ee.completion;if(ee.type==="throw"){var lt=ee.arg;tr(Ee)}return lt}}throw new Error("illegal catch attempt")},delegateYield:function(X,Be,Ee){return this.delegate={iterator:Tt(X),resultName:Be,nextLoc:Ee},this.method==="next"&&(this.arg=void 0),Ie}},se}var D=d("HaE+"),R=d("dm2S"),k=["measure","alignPre","align",null,"motion"],M=function(se,te){var Ve=Object(R.a)(null),ae=Object(v.a)(Ve,2),Q=ae[0],G=ae[1],Y=Object(c.useRef)();function me(Ie){G(Ie,!0)}function ue(){i.a.cancel(Y.current)}function Ce(Ie){ue(),Y.current=Object(i.a)(function(){me(function(ce){switch(Q){case"align":return"motion";case"motion":return"stable";default:}return ce}),Ie==null||Ie()})}return Object(c.useEffect)(function(){me("measure")},[se]),Object(c.useEffect)(function(){switch(Q){case"measure":te();break;default:}Q&&(Y.current=Object(i.a)(Object(D.a)(N().mark(function Ie(){var ce,Ae;return N().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:ce=k.indexOf(Q),Ae=k[ce+1],Ae&&ce!==-1&&me(Ae);case 3:case"end":return Ge.stop()}},Ie)}))))},[Q]),Object(c.useEffect)(function(){return function(){ue()}},[]),[Q,Ce]},U=function(se){var te=c.useState({width:0,height:0}),Ve=Object(v.a)(te,2),ae=Ve[0],Q=Ve[1];function G(me){Q({width:me.offsetWidth,height:me.offsetHeight})}var Y=c.useMemo(function(){var me={};if(se){var ue=ae.width,Ce=ae.height;se.indexOf("height")!==-1&&Ce?me.height=Ce:se.indexOf("minHeight")!==-1&&Ce&&(me.minHeight=Ce),se.indexOf("width")!==-1&&ue?me.width=ue:se.indexOf("minWidth")!==-1&&ue&&(me.minWidth=ue)}return me},[se,ae]);return[Y,G]},B=c.forwardRef(function(se,te){var Ve=se.visible,ae=se.prefixCls,Q=se.className,G=se.style,Y=se.children,me=se.zIndex,ue=se.stretch,Ce=se.destroyPopupOnHide,Ie=se.forceRender,ce=se.align,Ae=se.point,Te=se.getRootDomNode,Ge=se.getClassNameFromAlign,gt=se.onAlign,qe=se.onMouseEnter,Le=se.onMouseLeave,Ot=se.onMouseDown,$e=se.onTouchStart,xt=se.onClick,Ht=Object(c.useRef)(),tr=Object(c.useRef)(),Mt=Object(c.useState)(),Tt=Object(v.a)(Mt,2),Xe=Tt[0],oe=Tt[1],X=U(ue),Be=Object(v.a)(X,2),Ee=Be[0],ee=Be[1];function lt(){ue&&ee(Te())}var Ct=M(Ve,lt),dt=Object(v.a)(Ct,2),_t=dt[0],ir=dt[1],$r=Object(c.useState)(0),nr=Object(v.a)($r,2),lr=nr[0],zt=nr[1],Ut=Object(c.useRef)();Object(I.a)(function(){_t==="alignPre"&&zt(0)},[_t]);function st(){return Ae||Te}function Hr(){var kt;(kt=Ht.current)===null||kt===void 0||kt.forceAlign()}function mn(kt,vt){var Re=Ge(vt);Xe!==Re&&oe(Re),zt(function(Ke){return Ke+1}),_t==="align"&&(gt==null||gt(kt,vt))}Object(I.a)(function(){_t==="align"&&(lr<2?Hr():ir(function(){var kt;(kt=Ut.current)===null||kt===void 0||kt.call(Ut)}))},[lr]);var In=Object(O.a)({},b(se));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(kt){var vt=In[kt];In[kt]=function(Re,Ke){return ir(),vt==null?void 0:vt(Re,Ke)}});function Yn(){return new Promise(function(kt){Ut.current=kt})}c.useEffect(function(){!In.motionName&&_t==="motion"&&ir()},[In.motionName,_t]),c.useImperativeHandle(te,function(){return{forceAlign:Hr,getElement:function(){return tr.current}}});var Mi=Object(O.a)(Object(O.a)({},Ee),{},{zIndex:me,opacity:_t==="motion"||_t==="stable"||!Ve?void 0:0,pointerEvents:!Ve&&_t!=="stable"?"none":void 0},G),wn=!0;(ce==null?void 0:ce.points)&&(_t==="align"||_t==="stable")&&(wn=!1);var Rn=Y;return c.Children.count(Y)>1&&(Rn=c.createElement("div",{className:"".concat(ae,"-content")},Y)),c.createElement(T.b,Object(x.a)({visible:Ve,ref:tr,leavedClassName:"".concat(ae,"-hidden")},In,{onAppearPrepare:Yn,onEnterPrepare:Yn,removeOnLeave:Ce,forceRender:Ie}),function(kt,vt){var Re=kt.className,Ke=kt.style,Pe=u()(ae,Q,Xe,Re);return c.createElement(_.a,{target:st(),key:"popup",ref:Ht,monitorWindowResize:!0,disabled:wn,align:ce,onAlign:mn},c.createElement("div",{ref:vt,className:Pe,onMouseEnter:qe,onMouseLeave:Le,onMouseDownCapture:Ot,onTouchStartCapture:$e,onClick:xt,style:Object(O.a)(Object(O.a)({},Ke),Mi)},Rn))})});B.displayName="PopupInner";var j=B,W=c.forwardRef(function(se,te){var Ve=se.prefixCls,ae=se.visible,Q=se.zIndex,G=se.children,Y=se.mobile;Y=Y===void 0?{}:Y;var me=Y.popupClassName,ue=Y.popupStyle,Ce=Y.popupMotion,Ie=Ce===void 0?{}:Ce,ce=Y.popupRender,Ae=se.onClick,Te=c.useRef();c.useImperativeHandle(te,function(){return{forceAlign:function(){},getElement:function(){return Te.current}}});var Ge=Object(O.a)({zIndex:Q},ue),gt=G;return c.Children.count(G)>1&&(gt=c.createElement("div",{className:"".concat(Ve,"-content")},G)),ce&&(gt=ce(gt)),c.createElement(T.b,Object(x.a)({visible:ae,ref:Te,removeOnLeave:!0},Ie),function(qe,Le){var Ot=qe.className,$e=qe.style,xt=u()(Ve,me,Ot);return c.createElement("div",{ref:Le,className:xt,onClick:Ae,style:Object(O.a)(Object(O.a)({},$e),Ge)},gt)})});W.displayName="MobilePopupInner";var V=W,z=["visible","mobile"],J=c.forwardRef(function(se,te){var Ve=se.visible,ae=se.mobile,Q=Object(y.a)(se,z),G=Object(c.useState)(Ve),Y=Object(v.a)(G,2),me=Y[0],ue=Y[1],Ce=Object(c.useState)(!1),Ie=Object(v.a)(Ce,2),ce=Ie[0],Ae=Ie[1],Te=Object(O.a)(Object(O.a)({},Q),{},{visible:me});Object(c.useEffect)(function(){ue(Ve),Ve&&ae&&Ae(E())},[Ve,ae]);var Ge=ce?c.createElement(V,Object(x.a)({},Te,{mobile:ae,ref:te})):c.createElement(j,Object(x.a)({},Te,{ref:te}));return c.createElement("div",null,c.createElement(w,Te),Ge)});J.displayName="Popup";var Z=J,de=c.createContext(null),ie=de;function ve(){}function xe(){return""}function _e(se){return se?se.ownerDocument:window.document}var Ue=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function fe(se){var te=function(Ve){Object(g.a)(Q,Ve);var ae=Object(f.a)(Q);function Q(G){var Y;Object(C.a)(this,Q),Y=ae.call(this,G),Y.popupRef=c.createRef(),Y.triggerRef=c.createRef(),Y.portalContainer=void 0,Y.attachId=void 0,Y.clickOutsideHandler=void 0,Y.touchOutsideHandler=void 0,Y.contextMenuOutsideHandler1=void 0,Y.contextMenuOutsideHandler2=void 0,Y.mouseDownTimeout=void 0,Y.focusTime=void 0,Y.preClickTime=void 0,Y.preTouchTime=void 0,Y.delayTimer=void 0,Y.hasPopupMouseDown=void 0,Y.onMouseEnter=function(ue){var Ce=Y.props.mouseEnterDelay;Y.fireEvents("onMouseEnter",ue),Y.delaySetPopupVisible(!0,Ce,Ce?null:ue)},Y.onMouseMove=function(ue){Y.fireEvents("onMouseMove",ue),Y.setPoint(ue)},Y.onMouseLeave=function(ue){Y.fireEvents("onMouseLeave",ue),Y.delaySetPopupVisible(!1,Y.props.mouseLeaveDelay)},Y.onPopupMouseEnter=function(){Y.clearDelayTimer()},Y.onPopupMouseLeave=function(ue){var Ce;if(ue.relatedTarget&&!ue.relatedTarget.setTimeout&&Object(n.a)((Ce=Y.popupRef.current)===null||Ce===void 0?void 0:Ce.getElement(),ue.relatedTarget))return;Y.delaySetPopupVisible(!1,Y.props.mouseLeaveDelay)},Y.onFocus=function(ue){Y.fireEvents("onFocus",ue),Y.clearDelayTimer(),Y.isFocusToShow()&&(Y.focusTime=Date.now(),Y.delaySetPopupVisible(!0,Y.props.focusDelay))},Y.onMouseDown=function(ue){Y.fireEvents("onMouseDown",ue),Y.preClickTime=Date.now()},Y.onTouchStart=function(ue){Y.fireEvents("onTouchStart",ue),Y.preTouchTime=Date.now()},Y.onBlur=function(ue){Y.fireEvents("onBlur",ue),Y.clearDelayTimer(),Y.isBlurToHide()&&Y.delaySetPopupVisible(!1,Y.props.blurDelay)},Y.onContextMenu=function(ue){ue.preventDefault(),Y.fireEvents("onContextMenu",ue),Y.setPopupVisible(!0,ue)},Y.onContextMenuClose=function(){Y.isContextMenuToShow()&&Y.close()},Y.onClick=function(ue){if(Y.fireEvents("onClick",ue),Y.focusTime){var Ce;if(Y.preClickTime&&Y.preTouchTime?Ce=Math.min(Y.preClickTime,Y.preTouchTime):Y.preClickTime?Ce=Y.preClickTime:Y.preTouchTime&&(Ce=Y.preTouchTime),Math.abs(Ce-Y.focusTime)<20)return;Y.focusTime=0}Y.preClickTime=0,Y.preTouchTime=0,Y.isClickToShow()&&(Y.isClickToHide()||Y.isBlurToHide())&&ue&&ue.preventDefault&&ue.preventDefault();var Ie=!Y.state.popupVisible;(Y.isClickToHide()&&!Ie||Ie&&Y.isClickToShow())&&Y.setPopupVisible(!Y.state.popupVisible,ue)},Y.onPopupMouseDown=function(){if(Y.hasPopupMouseDown=!0,clearTimeout(Y.mouseDownTimeout),Y.mouseDownTimeout=window.setTimeout(function(){Y.hasPopupMouseDown=!1},0),Y.context){var ue;(ue=Y.context).onPopupMouseDown.apply(ue,arguments)}},Y.onDocumentClick=function(ue){if(Y.props.mask&&!Y.props.maskClosable)return;var Ce=ue.target,Ie=Y.getRootDomNode(),ce=Y.getPopupDomNode();(!Object(n.a)(Ie,Ce)||Y.isContextMenuOnly())&&!Object(n.a)(ce,Ce)&&!Y.hasPopupMouseDown&&Y.close()},Y.getRootDomNode=function(){var ue=Y.props.getTriggerDOMNode;if(ue)return ue(Y.triggerRef.current);try{var Ce=Object(e.a)(Y.triggerRef.current);if(Ce)return Ce}catch(Ie){}return r.a.findDOMNode(Object(S.a)(Y))},Y.getPopupClassNameFromAlign=function(ue){var Ce=[],Ie=Y.props,ce=Ie.popupPlacement,Ae=Ie.builtinPlacements,Te=Ie.prefixCls,Ge=Ie.alignPoint,gt=Ie.getPopupClassNameFromAlign;return ce&&Ae&&Ce.push(m(Ae,Te,ue,Ge)),gt&&Ce.push(gt(ue)),Ce.join(" ")},Y.getComponent=function(){var ue=Y.props,Ce=ue.prefixCls,Ie=ue.destroyPopupOnHide,ce=ue.popupClassName,Ae=ue.onPopupAlign,Te=ue.popupMotion,Ge=ue.popupAnimation,gt=ue.popupTransitionName,qe=ue.popupStyle,Le=ue.mask,Ot=ue.maskAnimation,$e=ue.maskTransitionName,xt=ue.maskMotion,Ht=ue.zIndex,tr=ue.popup,Mt=ue.stretch,Tt=ue.alignPoint,Xe=ue.mobile,oe=ue.forceRender,X=ue.onPopupClick,Be=Y.state,Ee=Be.popupVisible,ee=Be.point,lt=Y.getPopupAlign(),Ct={};return Y.isMouseEnterToShow()&&(Ct.onMouseEnter=Y.onPopupMouseEnter),Y.isMouseLeaveToHide()&&(Ct.onMouseLeave=Y.onPopupMouseLeave),Ct.onMouseDown=Y.onPopupMouseDown,Ct.onTouchStart=Y.onPopupMouseDown,c.createElement(Z,Object(x.a)({prefixCls:Ce,destroyPopupOnHide:Ie,visible:Ee,point:Tt&&ee,className:ce,align:lt,onAlign:Ae,animation:Ge,getClassNameFromAlign:Y.getPopupClassNameFromAlign},Ct,{stretch:Mt,getRootDomNode:Y.getRootDomNode,style:qe,mask:Le,zIndex:Ht,transitionName:gt,maskAnimation:Ot,maskTransitionName:$e,maskMotion:xt,ref:Y.popupRef,motion:Te,mobile:Xe,forceRender:oe,onClick:X}),typeof tr=="function"?tr():tr)},Y.attachParent=function(ue){i.a.cancel(Y.attachId);var Ce=Y.props,Ie=Ce.getPopupContainer,ce=Ce.getDocument,Ae=Y.getRootDomNode(),Te;Ie?(Ae||Ie.length===0)&&(Te=Ie(Ae)):Te=ce(Y.getRootDomNode()).body,Te?Te.appendChild(ue):Y.attachId=Object(i.a)(function(){Y.attachParent(ue)})},Y.getContainer=function(){if(!Y.portalContainer){var ue=Y.props.getDocument,Ce=ue(Y.getRootDomNode()).createElement("div");Ce.style.position="absolute",Ce.style.top="0",Ce.style.left="0",Ce.style.width="100%",Y.portalContainer=Ce}return Y.attachParent(Y.portalContainer),Y.portalContainer},Y.setPoint=function(ue){var Ce=Y.props.alignPoint;if(!Ce||!ue)return;Y.setState({point:{pageX:ue.pageX,pageY:ue.pageY}})},Y.handlePortalUpdate=function(){Y.state.prevPopupVisible!==Y.state.popupVisible&&Y.props.afterPopupVisibleChange(Y.state.popupVisible)},Y.triggerContextValue={onPopupMouseDown:Y.onPopupMouseDown};var me;return"popupVisible"in G?me=!!G.popupVisible:me=!!G.defaultPopupVisible,Y.state={prevPopupVisible:me,popupVisible:me},Ue.forEach(function(ue){Y["fire".concat(ue)]=function(Ce){Y.fireEvents(ue,Ce)}}),Y}return Object(A.a)(Q,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Y=this.props,me=this.state;if(me.popupVisible){var ue;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(ue=Y.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(t.a)(ue,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(ue=ue||Y.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(t.a)(ue,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(ue=ue||Y.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(t.a)(ue,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(t.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),i.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Y;return((Y=this.popupRef.current)===null||Y===void 0?void 0:Y.getElement())||null}},{key:"getPopupAlign",value:function(){var Y=this.props,me=Y.popupPlacement,ue=Y.popupAlign,Ce=Y.builtinPlacements;return me&&Ce?p(Ce,me,ue):ue}},{key:"setPopupVisible",value:function(Y,me){var ue=this.props.alignPoint,Ce=this.state.popupVisible;this.clearDelayTimer(),Ce!==Y&&("popupVisible"in this.props||this.setState({popupVisible:Y,prevPopupVisible:Ce}),this.props.onPopupVisibleChange(Y)),ue&&me&&Y&&this.setPoint(me)}},{key:"delaySetPopupVisible",value:function(Y,me,ue){var Ce=this,Ie=me*1e3;if(this.clearDelayTimer(),Ie){var ce=ue?{pageX:ue.pageX,pageY:ue.pageY}:null;this.delayTimer=window.setTimeout(function(){Ce.setPopupVisible(Y,ce),Ce.clearDelayTimer()},Ie)}else this.setPopupVisible(Y,ue)}},{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(Y){var me=this.props.children.props,ue=this.props;return me[Y]&&ue[Y]?this["fire".concat(Y)]:me[Y]||ue[Y]}},{key:"isClickToShow",value:function(){var Y=this.props,me=Y.action,ue=Y.showAction;return me.indexOf("click")!==-1||ue.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Y=this.props.action;return Y==="contextMenu"||Y.length===1&&Y[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Y=this.props,me=Y.action,ue=Y.showAction;return me.indexOf("contextMenu")!==-1||ue.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Y=this.props,me=Y.action,ue=Y.hideAction;return me.indexOf("click")!==-1||ue.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Y=this.props,me=Y.action,ue=Y.showAction;return me.indexOf("hover")!==-1||ue.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Y=this.props,me=Y.action,ue=Y.hideAction;return me.indexOf("hover")!==-1||ue.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Y=this.props,me=Y.action,ue=Y.showAction;return me.indexOf("focus")!==-1||ue.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Y=this.props,me=Y.action,ue=Y.hideAction;return me.indexOf("focus")!==-1||ue.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Y;(Y=this.popupRef.current)===null||Y===void 0||Y.forceAlign()}}},{key:"fireEvents",value:function(Y,me){var ue=this.props.children.props[Y];ue&&ue(me);var Ce=this.props[Y];Ce&&Ce(me)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Y=this.state.popupVisible,me=this.props,ue=me.children,Ce=me.forceRender,Ie=me.alignPoint,ce=me.className,Ae=me.autoDestroy,Te=c.Children.only(ue),Ge={key:"trigger"};this.isContextMenuToShow()?Ge.onContextMenu=this.onContextMenu:Ge.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Ge.onClick=this.onClick,Ge.onMouseDown=this.onMouseDown,Ge.onTouchStart=this.onTouchStart):(Ge.onClick=this.createTwoChains("onClick"),Ge.onMouseDown=this.createTwoChains("onMouseDown"),Ge.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Ge.onMouseEnter=this.onMouseEnter,Ie&&(Ge.onMouseMove=this.onMouseMove)):Ge.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Ge.onMouseLeave=this.onMouseLeave:Ge.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Ge.onFocus=this.onFocus,Ge.onBlur=this.onBlur):(Ge.onFocus=this.createTwoChains("onFocus"),Ge.onBlur=this.createTwoChains("onBlur"));var gt=u()(Te&&Te.props&&Te.props.className,ce);gt&&(Ge.className=gt);var qe=Object(O.a)({},Ge);Object(l.c)(Te)&&(qe.ref=Object(l.a)(this.triggerRef,Te.ref));var Le=c.cloneElement(Te,qe),Ot;return(Y||this.popupRef.current||Ce)&&(Ot=c.createElement(se,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Y&&Ae&&(Ot=null),c.createElement(ie.Provider,{value:this.triggerContextValue},Le,Ot)}}],[{key:"getDerivedStateFromProps",value:function(Y,me){var ue=Y.popupVisible,Ce={};return ue!==void 0&&me.popupVisible!==ue&&(Ce.popupVisible=ue,Ce.prevPopupVisible=me.popupVisible),Ce}}]),Q}(c.Component);return te.contextType=ie,te.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:xe,getDocument:_e,onPopupVisibleChange:ve,afterPopupVisibleChange:ve,onPopupAlign:ve,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},te}var ke=F.a=fe(a.a)},ugBc:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},ulZh:function(H,F,d){typeof window!="undefined"&&function(x,C){H.exports=C()}(this,function(){return function(O){var x={};function C(A){if(x[A])return x[A].exports;var S=x[A]={i:A,l:!1,exports:{}};return O[A].call(S.exports,S,S.exports,C),S.l=!0,S.exports}return C.m=O,C.c=x,C.d=function(A,S,g){C.o(A,S)||Object.defineProperty(A,S,{enumerable:!0,get:g})},C.r=function(A){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},C.t=function(A,S){if(S&1&&(A=C(A)),S&8)return A;if(S&4&&typeof A=="object"&&A&&A.__esModule)return A;var g=Object.create(null);if(C.r(g),Object.defineProperty(g,"default",{enumerable:!0,value:A}),S&2&&typeof A!="string")for(var f in A)C.d(g,f,function(c){return A[c]}.bind(null,f));return g},C.n=function(A){var S=A&&A.__esModule?function(){return A.default}:function(){return A};return C.d(S,"a",S),S},C.o=function(A,S){return Object.prototype.hasOwnProperty.call(A,S)},C.p="/dist/",C(C.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(x,C,A){"use strict";var S=Object.prototype.hasOwnProperty,g="~";function f(){}Object.create&&(f.prototype=Object.create(null),new f().__proto__||(g=!1));function c(n,e,l){this.fn=n,this.context=e,this.once=l||!1}function o(n,e,l,t,a){if(typeof l!="function")throw new TypeError("The listener must be a function");var s=new c(l,t||n,a),u=g?g+e:e;return n._events[u]?n._events[u].fn?n._events[u]=[n._events[u],s]:n._events[u].push(s):(n._events[u]=s,n._eventsCount++),n}function r(n,e){--n._eventsCount===0?n._events=new f:delete n._events[e]}function i(){this._events=new f,this._eventsCount=0}i.prototype.eventNames=function(){var e=[],l,t;if(this._eventsCount===0)return e;for(t in l=this._events)S.call(l,t)&&e.push(g?t.slice(1):t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(l)):e},i.prototype.listeners=function(e){var l=g?g+e:e,t=this._events[l];if(!t)return[];if(t.fn)return[t.fn];for(var a=0,s=t.length,u=new Array(s);a<s;a++)u[a]=t[a].fn;return u},i.prototype.listenerCount=function(e){var l=g?g+e:e,t=this._events[l];return t?t.fn?1:t.length:0},i.prototype.emit=function(e,l,t,a,s,u){var h=g?g+e:e;if(!this._events[h])return!1;var p=this._events[h],m=arguments.length,v,y;if(p.fn){p.once&&this.removeListener(e,p.fn,void 0,!0);switch(m){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,l),!0;case 3:return p.fn.call(p.context,l,t),!0;case 4:return p.fn.call(p.context,l,t,a),!0;case 5:return p.fn.call(p.context,l,t,a,s),!0;case 6:return p.fn.call(p.context,l,t,a,s,u),!0}for(y=1,v=new Array(m-1);y<m;y++)v[y-1]=arguments[y];p.fn.apply(p.context,v)}else{var E=p.length,T;for(y=0;y<E;y++){p[y].once&&this.removeListener(e,p[y].fn,void 0,!0);switch(m){case 1:p[y].fn.call(p[y].context);break;case 2:p[y].fn.call(p[y].context,l);break;case 3:p[y].fn.call(p[y].context,l,t);break;case 4:p[y].fn.call(p[y].context,l,t,a);break;default:if(!v)for(T=1,v=new Array(m-1);T<m;T++)v[T-1]=arguments[T];p[y].fn.apply(p[y].context,v)}}}return!0},i.prototype.on=function(e,l,t){return o(this,e,l,t,!1)},i.prototype.once=function(e,l,t){return o(this,e,l,t,!0)},i.prototype.removeListener=function(e,l,t,a){var s=g?g+e:e;if(!this._events[s])return this;if(!l)return r(this,s),this;var u=this._events[s];if(u.fn)u.fn===l&&(!a||u.once)&&(!t||u.context===t)&&r(this,s);else{for(var h=0,p=[],m=u.length;h<m;h++)(u[h].fn!==l||a&&!u[h].once||t&&u[h].context!==t)&&p.push(u[h]);p.length?this._events[s]=p.length===1?p[0]:p:r(this,s)}return this},i.prototype.removeAllListeners=function(e){var l;return e?(l=g?g+e:e,this._events[l]&&r(this,l)):(this._events=new f,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prefixed=g,i.EventEmitter=i,x.exports=i},"./node_modules/url-toolkit/src/url-toolkit.js":function(x,C,A){(function(S){var g=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,f=/^([^\/?#]*)([^]*)$/,c=/(?:\/|^)\.(?=\/)/g,o=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,r={buildAbsoluteURL:function(n,e,l){if(l=l||{},n=n.trim(),e=e.trim(),!e){if(!l.alwaysNormalize)return n;var t=r.parseURL(n);if(!t)throw new Error("Error trying to parse base URL.");return t.path=r.normalizePath(t.path),r.buildURLFromParts(t)}var a=r.parseURL(e);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return l.alwaysNormalize?(a.path=r.normalizePath(a.path),r.buildURLFromParts(a)):e;var s=r.parseURL(n);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&s.path[0]!=="/"){var u=f.exec(s.path);s.netLoc=u[1],s.path=u[2]}s.netLoc&&!s.path&&(s.path="/");var h={scheme:s.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(h.netLoc=s.netLoc,a.path[0]!=="/"))if(!a.path)h.path=s.path,a.params||(h.params=s.params,a.query||(h.query=s.query));else{var p=s.path,m=p.substring(0,p.lastIndexOf("/")+1)+a.path;h.path=r.normalizePath(m)}return h.path===null&&(h.path=l.alwaysNormalize?r.normalizePath(a.path):a.path),r.buildURLFromParts(h)},parseURL:function(n){var e=g.exec(n);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(n){for(n=n.split("").reverse().join("").replace(c,"");n.length!==(n=n.replace(o,"")).length;);return n.split("").reverse().join("")},buildURLFromParts:function(n){return n.scheme+n.netLoc+n.path+n.params+n.query+n.fragment}};x.exports=r})(this)},"./node_modules/webworkify-webpack/index.js":function(x,C,A){function S(e){var l={};function t(s){if(l[s])return l[s].exports;var u=l[s]={i:s,l:!1,exports:{}};return e[s].call(u.exports,u,u.exports,t),u.l=!0,u.exports}t.m=e,t.c=l,t.i=function(s){return s},t.d=function(s,u,h){t.o(s,u)||Object.defineProperty(s,u,{configurable:!1,enumerable:!0,get:h})},t.r=function(s){Object.defineProperty(s,"__esModule",{value:!0})},t.n=function(s){var u=s&&s.__esModule?function(){return s.default}:function(){return s};return t.d(u,"a",u),u},t.o=function(s,u){return Object.prototype.hasOwnProperty.call(s,u)},t.p="/",t.oe=function(s){throw console.error(s),s};var a=t(t.s=ENTRY_MODULE);return a.default||a}var g="[\\.|\\-|\\+|\\w|/|@]+",f="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+g+").*?\\)";function c(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function o(e){return!isNaN(1*e)}function r(e,l,t){var a={};a[t]=[];var s=l.toString(),u=s.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!u)return a;for(var h=u[1],p=new RegExp("(\\\\n|\\W)"+c(h)+f,"g"),m;m=p.exec(s);){if(m[3]==="dll-reference")continue;a[t].push(m[3])}for(p=new RegExp("\\("+c(h)+'\\("(dll-reference\\s('+g+'))"\\)\\)'+f,"g");m=p.exec(s);)e[m[2]]||(a[t].push(m[1]),e[m[2]]=A(m[1]).m),a[m[2]]=a[m[2]]||[],a[m[2]].push(m[4]);for(var v=Object.keys(a),y=0;y<v.length;y++)for(var E=0;E<a[v[y]].length;E++)o(a[v[y]][E])&&(a[v[y]][E]=1*a[v[y]][E]);return a}function i(e){var l=Object.keys(e);return l.reduce(function(t,a){return t||e[a].length>0},!1)}function n(e,l){for(var t={main:[l]},a={main:[]},s={main:{}};i(t);)for(var u=Object.keys(t),h=0;h<u.length;h++){var p=u[h],m=t[p],v=m.pop();if(s[p]=s[p]||{},s[p][v]||!e[p][v])continue;s[p][v]=!0,a[p]=a[p]||[],a[p].push(v);for(var y=r(e,e[p][v],p),E=Object.keys(y),T=0;T<E.length;T++)t[E[T]]=t[E[T]]||[],t[E[T]]=t[E[T]].concat(y[E[T]])}return a}x.exports=function(e,l){l=l||{};var t={main:A.m},a=l.all?{main:Object.keys(t.main)}:n(t,e),s="";Object.keys(a).filter(function(v){return v!=="main"}).forEach(function(v){for(var y=0;a[v][y];)y++;a[v].push(y),t[v][y]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",s=s+"var "+v+" = ("+S.toString().replace("ENTRY_MODULE",JSON.stringify(y))+")({"+a[v].map(function(E){return""+JSON.stringify(E)+": "+t[v][E].toString()}).join(",")+`});
|
|
|
`}),s=s+"new (("+S.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+a.main.map(function(v){return""+JSON.stringify(v)+": "+t.main[v].toString()}).join(",")+"}))(self);";var u=new window.Blob([s],{type:"text/javascript"});if(l.bare)return u;var h=window.URL||window.webkitURL||window.mozURL||window.msURL,p=h.createObjectURL(u),m=new window.Worker(p);return m.objectURL=p,m}},"./src/config.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"hlsDefaultConfig",function(){return T}),A.d(C,"mergeConfig",function(){return w}),A.d(C,"enableStreamingMode",function(){return _});var S=A("./src/controller/abr-controller.ts"),g=A("./src/controller/audio-stream-controller.ts"),f=A("./src/controller/audio-track-controller.ts"),c=A("./src/controller/subtitle-stream-controller.ts"),o=A("./src/controller/subtitle-track-controller.ts"),r=A("./src/controller/buffer-controller.ts"),i=A("./src/controller/timeline-controller.ts"),n=A("./src/controller/cap-level-controller.ts"),e=A("./src/controller/fps-controller.ts"),l=A("./src/controller/eme-controller.ts"),t=A("./src/controller/cmcd-controller.ts"),a=A("./src/utils/xhr-loader.ts"),s=A("./src/utils/fetch-loader.ts"),u=A("./src/utils/cues.ts"),h=A("./src/utils/mediakeys-helper.ts"),p=A("./src/utils/logger.ts");function m(){return m=Object.assign||function(I){for(var L=1;L<arguments.length;L++){var N=arguments[L];for(var D in N)Object.prototype.hasOwnProperty.call(N,D)&&(I[D]=N[D])}return I},m.apply(this,arguments)}function v(I,L){var N=Object.keys(I);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(I);L&&(D=D.filter(function(R){return Object.getOwnPropertyDescriptor(I,R).enumerable})),N.push.apply(N,D)}return N}function y(I){for(var L=1;L<arguments.length;L++){var N=arguments[L]!=null?arguments[L]:{};L%2?v(Object(N),!0).forEach(function(D){E(I,D,N[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(N)):v(Object(N)).forEach(function(D){Object.defineProperty(I,D,Object.getOwnPropertyDescriptor(N,D))})}return I}function E(I,L,N){return L in I?Object.defineProperty(I,L,{value:N,enumerable:!0,configurable:!0,writable:!0}):I[L]=N,I}var T=y(y({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!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,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:a.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:S.default,bufferController:r.default,capLevelController:n.default,fpsController:e.default,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,drmSystemOptions:{},requestMediaKeySystemAccessFunc:h.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},b()),{},{subtitleStreamController:c.SubtitleStreamController,subtitleTrackController:o.default,timelineController:i.TimelineController,audioStreamController:g.default,audioTrackController:f.default,emeController:l.default,cmcdController:t.default});function b(){return{cueHandler:u.default,enableCEA708Captions:!0,enableWebVTT:!0,enableIMSC1:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function w(I,L){if((L.liveSyncDurationCount||L.liveMaxLatencyDurationCount)&&(L.liveSyncDuration||L.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(L.liveMaxLatencyDurationCount!==void 0&&(L.liveSyncDurationCount===void 0||L.liveMaxLatencyDurationCount<=L.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(L.liveMaxLatencyDuration!==void 0&&(L.liveSyncDuration===void 0||L.liveMaxLatencyDuration<=L.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');return m({},I,L)}function _(I){var L=I.loader;if(L!==s.default&&L!==a.default)p.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),I.progressive=!1;else{var N=Object(s.fetchSupported)();N&&(I.loader=s.default,I.progressive=!0,I.enableSoftwareAES=!0,p.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(x,C,A){"use strict";A.r(C);var S=A("./src/polyfills/number.ts"),g=A("./src/utils/ewma-bandwidth-estimator.ts"),f=A("./src/events.ts"),c=A("./src/utils/buffer-helper.ts"),o=A("./src/errors.ts"),r=A("./src/types/loader.ts"),i=A("./src/utils/logger.ts");function n(t,a){for(var s=0;s<a.length;s++){var u=a[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function e(t,a,s){return a&&n(t.prototype,a),s&&n(t,s),t}var l=function(){function t(s){this.hls=void 0,this.lastLoadedFragLevel=0,this._nextAutoLevel=-1,this.timer=void 0,this.onCheck=this._abandonRulesCheck.bind(this),this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this.hls=s;var u=s.config;this.bwEstimator=new g.default(u.abrEwmaSlowVoD,u.abrEwmaFastVoD,u.abrEwmaDefaultEstimate),this.registerListeners()}var a=t.prototype;return a.registerListeners=function(){var u=this.hls;u.on(f.Events.FRAG_LOADING,this.onFragLoading,this),u.on(f.Events.FRAG_LOADED,this.onFragLoaded,this),u.on(f.Events.FRAG_BUFFERED,this.onFragBuffered,this),u.on(f.Events.LEVEL_LOADED,this.onLevelLoaded,this),u.on(f.Events.ERROR,this.onError,this)},a.unregisterListeners=function(){var u=this.hls;u.off(f.Events.FRAG_LOADING,this.onFragLoading,this),u.off(f.Events.FRAG_LOADED,this.onFragLoaded,this),u.off(f.Events.FRAG_BUFFERED,this.onFragBuffered,this),u.off(f.Events.LEVEL_LOADED,this.onLevelLoaded,this),u.off(f.Events.ERROR,this.onError,this)},a.destroy=function(){this.unregisterListeners(),this.clearTimer(),this.hls=this.onCheck=null,this.fragCurrent=this.partCurrent=null},a.onFragLoading=function(u,h){var p=h.frag;if(p.type===r.PlaylistLevelType.MAIN&&!this.timer){var m;this.fragCurrent=p,this.partCurrent=(m=h.part)!=null?m:null,this.timer=self.setInterval(this.onCheck,100)}},a.onLevelLoaded=function(u,h){var p=this.hls.config;h.details.live?this.bwEstimator.update(p.abrEwmaSlowLive,p.abrEwmaFastLive):this.bwEstimator.update(p.abrEwmaSlowVoD,p.abrEwmaFastVoD)},a._abandonRulesCheck=function(){var u=this.fragCurrent,h=this.partCurrent,p=this.hls,m=p.autoLevelEnabled,v=p.config,y=p.media;if(!u||!y)return;var E=h?h.stats:u.stats,T=h?h.duration:u.duration;if(E.aborted){i.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!m||y.paused||!y.playbackRate||!y.readyState)return;var b=performance.now()-E.loading.start,w=Math.abs(y.playbackRate);if(b<=500*T/w)return;var _=p.levels,I=p.minAutoLevel,L=_[u.level],N=E.total||Math.max(E.loaded,Math.round(T*L.maxBitrate/8)),D=Math.max(1,E.bwEstimate?E.bwEstimate/8:E.loaded*1e3/b),R=(N-E.loaded)/D,k=y.currentTime,M=(c.BufferHelper.bufferInfo(y,k,v.maxBufferHole).end-k)/w;if(M>=2*T/w||R<=M)return;var U=Number.POSITIVE_INFINITY,B;for(B=u.level-1;B>I;B--){var j=_[B].maxBitrate;if(U=T*j/(8*.8*D),U<M)break}if(U>=R)return;var W=this.bwEstimator.getEstimate();i.logger.warn("Fragment "+u.sn+(h?" part "+h.index:"")+" of level "+u.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+B+`
|
|
|
Current BW estimate: `+(Object(S.isFiniteNumber)(W)?(W/1024).toFixed(3):"Unknown")+` Kb/s
|
|
|
Estimated load time for current fragment: `+R.toFixed(3)+` s
|
|
|
Estimated load time for the next fragment: `+U.toFixed(3)+` s
|
|
|
Time to underbuffer: `+M.toFixed(3)+" s"),p.nextLoadLevel=B,this.bwEstimator.sample(b,E.loaded),this.clearTimer(),u.loader&&(this.fragCurrent=this.partCurrent=null,u.loader.abort()),p.trigger(f.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:u,part:h,stats:E})},a.onFragLoaded=function(u,h){var p=h.frag,m=h.part;if(p.type===r.PlaylistLevelType.MAIN&&Object(S.isFiniteNumber)(p.sn)){var v=m?m.stats:p.stats,y=m?m.duration:p.duration;if(this.clearTimer(),this.lastLoadedFragLevel=p.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var E=this.hls.levels[p.level],T=(E.loaded?E.loaded.bytes:0)+v.loaded,b=(E.loaded?E.loaded.duration:0)+y;E.loaded={bytes:T,duration:b},E.realBitrate=Math.round(8*T/b)}if(p.bitrateTest){var w={stats:v,frag:p,part:m,id:p.type};this.onFragBuffered(f.Events.FRAG_BUFFERED,w),p.bitrateTest=!1}}},a.onFragBuffered=function(u,h){var p=h.frag,m=h.part,v=m?m.stats:p.stats;if(v.aborted)return;if(p.type!==r.PlaylistLevelType.MAIN||p.sn==="initSegment")return;var y=v.parsing.end-v.loading.start;this.bwEstimator.sample(y,v.loaded),v.bwEstimate=this.bwEstimator.getEstimate(),p.bitrateTest?this.bitrateTestDelay=y/1e3:this.bitrateTestDelay=0},a.onError=function(u,h){switch(h.details){case o.ErrorDetails.FRAG_LOAD_ERROR:case o.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},a.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},a.getNextABRAutoLevel=function(){var u=this.fragCurrent,h=this.partCurrent,p=this.hls,m=p.maxAutoLevel,v=p.config,y=p.minAutoLevel,E=p.media,T=h?h.duration:u?u.duration:0,b=E?E.currentTime:0,w=E&&E.playbackRate!==0?Math.abs(E.playbackRate):1,_=this.bwEstimator?this.bwEstimator.getEstimate():v.abrEwmaDefaultEstimate,I=(c.BufferHelper.bufferInfo(E,b,v.maxBufferHole).end-b)/w,L=this.findBestLevel(_,y,m,I,v.abrBandWidthFactor,v.abrBandWidthUpFactor);if(L>=0)return L;i.logger.trace((I?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var N=T?Math.min(T,v.maxStarvationDelay):v.maxStarvationDelay,D=v.abrBandWidthFactor,R=v.abrBandWidthUpFactor;if(!I){var k=this.bitrateTestDelay;if(k){var M=T?Math.min(T,v.maxLoadingDelay):v.maxLoadingDelay;N=M-k,i.logger.trace("bitrate test took "+Math.round(1e3*k)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*N)+" ms"),D=R=1}}return L=this.findBestLevel(_,y,m,I+N,D,R),Math.max(L,0)},a.findBestLevel=function(u,h,p,m,v,y){for(var E,T=this.fragCurrent,b=this.partCurrent,w=this.lastLoadedFragLevel,_=this.hls.levels,I=_[w],L=!!(I!=null&&(E=I.details)!==null&&E!==void 0&&E.live),N=I==null?void 0:I.codecSet,D=b?b.duration:T?T.duration:0,R=p;R>=h;R--){var k=_[R];if(!k||N&&k.codecSet!==N)continue;var M=k.details,U=(b?M==null?void 0:M.partTarget:M==null?void 0:M.averagetargetduration)||D,B=void 0;R<=w?B=v*u:B=y*u;var j=_[R].maxBitrate,W=j*U/B;if(i.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+R+"/"+Math.round(B)+"/"+j+"/"+U+"/"+m+"/"+W),B>j&&(!W||L&&!this.bitrateTestDelay||W<m))return R}return-1},e(t,[{key:"nextAutoLevel",get:function(){var u=this._nextAutoLevel,h=this.bwEstimator;if(u!==-1&&(!h||!h.canEstimate()))return u;var p=this.getNextABRAutoLevel();return u!==-1&&(p=Math.min(u,p)),p},set:function(u){this._nextAutoLevel=u}}]),t}();C.default=l},"./src/controller/audio-stream-controller.ts":function(x,C,A){"use strict";A.r(C);var S=A("./src/polyfills/number.ts"),g=A("./src/controller/base-stream-controller.ts"),f=A("./src/events.ts"),c=A("./src/utils/buffer-helper.ts"),o=A("./src/controller/fragment-tracker.ts"),r=A("./src/types/level.ts"),i=A("./src/types/loader.ts"),n=A("./src/loader/fragment.ts"),e=A("./src/demux/chunk-cache.ts"),l=A("./src/demux/transmuxer-interface.ts"),t=A("./src/types/transmuxer.ts"),a=A("./src/controller/fragment-finders.ts"),s=A("./src/utils/discontinuities.ts"),u=A("./src/errors.ts"),h=A("./src/utils/logger.ts");function p(){return p=Object.assign||function(T){for(var b=1;b<arguments.length;b++){var w=arguments[b];for(var _ in w)Object.prototype.hasOwnProperty.call(w,_)&&(T[_]=w[_])}return T},p.apply(this,arguments)}function m(T,b){T.prototype=Object.create(b.prototype),T.prototype.constructor=T,v(T,b)}function v(T,b){return v=Object.setPrototypeOf||function(_,I){return _.__proto__=I,_},v(T,b)}var y=100,E=function(T){m(b,T);function b(_,I){var L;return L=T.call(this,_,I,"[audio-stream-controller]")||this,L.videoBuffer=null,L.videoTrackCC=-1,L.waitingVideoCC=-1,L.audioSwitch=!1,L.trackId=-1,L.waitingData=null,L.mainDetails=null,L.bufferFlushed=!1,L._registerListeners(),L}var w=b.prototype;return w.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},w._registerListeners=function(){var I=this.hls;I.on(f.Events.MEDIA_ATTACHED,this.onMediaAttached,this),I.on(f.Events.MEDIA_DETACHING,this.onMediaDetaching,this),I.on(f.Events.MANIFEST_LOADING,this.onManifestLoading,this),I.on(f.Events.LEVEL_LOADED,this.onLevelLoaded,this),I.on(f.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),I.on(f.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),I.on(f.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),I.on(f.Events.ERROR,this.onError,this),I.on(f.Events.BUFFER_RESET,this.onBufferReset,this),I.on(f.Events.BUFFER_CREATED,this.onBufferCreated,this),I.on(f.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),I.on(f.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),I.on(f.Events.FRAG_BUFFERED,this.onFragBuffered,this)},w._unregisterListeners=function(){var I=this.hls;I.off(f.Events.MEDIA_ATTACHED,this.onMediaAttached,this),I.off(f.Events.MEDIA_DETACHING,this.onMediaDetaching,this),I.off(f.Events.MANIFEST_LOADING,this.onManifestLoading,this),I.off(f.Events.LEVEL_LOADED,this.onLevelLoaded,this),I.off(f.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),I.off(f.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),I.off(f.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),I.off(f.Events.ERROR,this.onError,this),I.off(f.Events.BUFFER_RESET,this.onBufferReset,this),I.off(f.Events.BUFFER_CREATED,this.onBufferCreated,this),I.off(f.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),I.off(f.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),I.off(f.Events.FRAG_BUFFERED,this.onFragBuffered,this)},w.onInitPtsFound=function(I,L){var N=L.frag,D=L.id,R=L.initPTS;if(D==="main"){var k=N.cc;this.initPTS[N.cc]=R,this.log("InitPTS for cc: "+k+" found from main: "+R),this.videoTrackCC=k,this.state===g.State.WAITING_INIT_PTS&&this.tick()}},w.startLoad=function(I){if(!this.levels){this.startPosition=I,this.state=g.State.STOPPED;return}var L=this.lastCurrentTime;this.stopLoad(),this.setInterval(y),this.fragLoadError=0,L>0&&I===-1?(this.log("Override startPosition with lastCurrentTime @"+L.toFixed(3)),this.state=g.State.IDLE):(this.loadedmetadata=!1,this.state=g.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=I,this.tick()},w.doTick=function(){switch(this.state){case g.State.IDLE:this.doTickIdle();break;case g.State.WAITING_TRACK:{var I,L=this.levels,N=this.trackId,D=L==null||((I=L[N])===null||I===void 0)?void 0:I.details;if(D){if(this.waitForCdnTuneIn(D))break;this.state=g.State.WAITING_INIT_PTS}break}case g.State.FRAG_LOADING_WAITING_RETRY:{var R,k=performance.now(),M=this.retryDate;(!M||k>=M||(R=this.media)!==null&&R!==void 0&&R.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=g.State.IDLE);break}case g.State.WAITING_INIT_PTS:{var U=this.waitingData;if(U){var B=U.frag,j=U.part,W=U.cache,V=U.complete;if(this.initPTS[B.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=g.State.FRAG_LOADING;var z=W.flush(),J={frag:B,part:j,payload:z,networkDetails:null};this._handleFragmentLoadProgress(J),V&&T.prototype._handleFragmentLoadComplete.call(this,J)}else if(this.videoTrackCC!==this.waitingVideoCC)h.logger.log("Waiting fragment cc ("+B.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var Z=this.getLoadPosition(),de=c.BufferHelper.bufferInfo(this.mediaBuffer,Z,this.config.maxBufferHole),ie=Object(a.fragmentWithinToleranceTest)(de.end,this.config.maxFragLookUpTolerance,B);ie<0&&(h.logger.log("Waiting fragment cc ("+B.cc+") @ "+B.start+" cancelled because another fragment at "+de.end+" is needed"),this.clearWaitingFragment())}}else this.state=g.State.IDLE}}this.onTickEnd()},w.clearWaitingFragment=function(){var I=this.waitingData;I&&(this.fragmentTracker.removeFragment(I.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=g.State.IDLE)},w.onTickEnd=function(){var I=this.media;if(!I||!I.readyState)return;var L=this.mediaBuffer?this.mediaBuffer:I,N=L.buffered;!this.loadedmetadata&&N.length&&(this.loadedmetadata=!0),this.lastCurrentTime=I.currentTime},w.doTickIdle=function(){var I,L,N=this.hls,D=this.levels,R=this.media,k=this.trackId,M=N.config;if(!D||!D[k])return;if(!R&&(this.startFragRequested||!M.startFragPrefetch))return;var U=D[k],B=U.details;if(!B||B.live&&this.levelLastLoaded!==k||this.waitForCdnTuneIn(B)){this.state=g.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,n.ElementaryStreamTypes.AUDIO,i.PlaylistLevelType.AUDIO));var j=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,i.PlaylistLevelType.AUDIO);if(j===null)return;var W=j.len,V=this.getMaxBufferLength(),z=this.audioSwitch;if(W>=V&&!z)return;if(!z&&this._streamEnded(j,B)){N.trigger(f.Events.BUFFER_EOS,{type:"audio"}),this.state=g.State.ENDED;return}var J=B.fragments,Z=J[0].start,de=j.end;if(z){var ie=this.getLoadPosition();de=ie,B.PTSKnown&&ie<Z&&((j.end>Z||j.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),R.currentTime=Z+.05))}var ve=this.getNextFragment(de,B);if(!ve){this.bufferFlushed=!0;return}((I=ve.decryptdata)===null||I===void 0?void 0:I.keyFormat)==="identity"&&!((L=ve.decryptdata)!==null&&L!==void 0&&L.key)?this.loadKey(ve,B):this.loadFragment(ve,B,de)},w.getMaxBufferLength=function(){var I=T.prototype.getMaxBufferLength.call(this),L=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,i.PlaylistLevelType.MAIN);return L===null?I:Math.max(I,L.len)},w.onMediaDetaching=function(){this.videoBuffer=null,T.prototype.onMediaDetaching.call(this)},w.onAudioTracksUpdated=function(I,L){var N=L.audioTracks;this.resetTransmuxer(),this.levels=N.map(function(D){return new r.Level(D)})},w.onAudioTrackSwitching=function(I,L){var N=!!L.url;this.trackId=L.id;var D=this.fragCurrent;D!=null&&D.loader&&D.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),N?this.setInterval(y):this.resetTransmuxer(),N?(this.audioSwitch=!0,this.state=g.State.IDLE):this.state=g.State.STOPPED,this.tick()},w.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},w.onLevelLoaded=function(I,L){this.mainDetails=L.details},w.onAudioTrackLoaded=function(I,L){var N,D=this.levels,R=L.details,k=L.id;if(!D){this.warn("Audio tracks were reset while loading level "+k);return}this.log("Track "+k+" loaded ["+R.startSN+","+R.endSN+"],duration:"+R.totalduration);var M=D[k],U=0;if(R.live||(N=M.details)!==null&&N!==void 0&&N.live){var B=this.mainDetails;if(R.fragments[0]||(R.deltaUpdateFailed=!0),R.deltaUpdateFailed||!B)return;!M.details&&R.hasProgramDateTime&&B.hasProgramDateTime?(Object(s.alignMediaPlaylistByPDT)(R,B),U=R.fragments[0].start):U=this.alignPlaylists(R,M.details)}M.details=R,this.levelLastLoaded=k,!this.startFragRequested&&(this.mainDetails||!R.live)&&this.setStartPosition(M.details,U),this.state===g.State.WAITING_TRACK&&!this.waitForCdnTuneIn(R)&&(this.state=g.State.IDLE),this.tick()},w._handleFragmentLoadProgress=function(I){var L,N=I.frag,D=I.part,R=I.payload,k=this.config,M=this.trackId,U=this.levels;if(!U){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+N.sn+" of level "+N.level+" will not be buffered");return}var B=U[M];console.assert(B,"Audio track is defined on fragment load progress");var j=B.details;console.assert(j,"Audio track details are defined on fragment load progress");var W=k.defaultAudioCodec||B.audioCodec||"mp4a.40.2",V=this.transmuxer;V||(V=this.transmuxer=new l.default(this.hls,i.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var z=this.initPTS[N.cc],J=(L=N.initSegment)===null||L===void 0?void 0:L.data;if(z!==void 0){var Z=!1,de=D?D.index:-1,ie=de!==-1,ve=new t.ChunkMetadata(N.level,N.sn,N.stats.chunkCount,R.byteLength,de,ie);V.push(R,J,W,"",N,D,j.totalduration,Z,ve,z)}else{h.logger.log("Unknown video PTS for cc "+N.cc+", waiting for video PTS before demuxing audio frag "+N.sn+" of ["+j.startSN+" ,"+j.endSN+"],track "+M);var xe=this.waitingData=this.waitingData||{frag:N,part:D,cache:new e.default,complete:!1},_e=xe.cache;_e.push(new Uint8Array(R)),this.waitingVideoCC=this.videoTrackCC,this.state=g.State.WAITING_INIT_PTS}},w._handleFragmentLoadComplete=function(I){if(this.waitingData){this.waitingData.complete=!0;return}T.prototype._handleFragmentLoadComplete.call(this,I)},w.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},w.onBufferCreated=function(I,L){var N=L.tracks.audio;N&&(this.mediaBuffer=N.buffer),L.tracks.video&&(this.videoBuffer=L.tracks.video.buffer)},w.onFragBuffered=function(I,L){var N=L.frag,D=L.part;if(N.type!==i.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(N)){this.warn("Fragment "+N.sn+(D?" p: "+D.index:"")+" of level "+N.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}N.sn!=="initSegment"&&(this.fragPrevious=N,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(f.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(N,D)},w.onError=function(I,L){switch(L.details){case u.ErrorDetails.FRAG_LOAD_ERROR:case u.ErrorDetails.FRAG_LOAD_TIMEOUT:case u.ErrorDetails.KEY_LOAD_ERROR:case u.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(i.PlaylistLevelType.AUDIO,L);break;case u.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case u.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==g.State.ERROR&&this.state!==g.State.STOPPED&&(this.state=L.fatal?g.State.ERROR:g.State.IDLE,this.warn(L.details+" while loading frag, switching to "+this.state+" state"));break;case u.ErrorDetails.BUFFER_FULL_ERROR:if(L.parent==="audio"&&(this.state===g.State.PARSING||this.state===g.State.PARSED)){var N=!0,D=this.getFwdBufferInfo(this.mediaBuffer,i.PlaylistLevelType.AUDIO);D&&D.len>.5&&(N=!this.reduceMaxBufferLength(D.len)),N&&(this.warn("Buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,T.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.resetLoadingState()}break;default:break}},w.onBufferFlushed=function(I,L){var N=L.type;N===n.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},w._handleTransmuxComplete=function(I){var L,N="audio",D=this.hls,R=I.remuxResult,k=I.chunkMeta,M=this.getCurrentContext(k);if(!M){this.warn("The loading context changed while buffering fragment "+k.sn+" of level "+k.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(k.level);return}var U=M.frag,B=M.part,j=R.audio,W=R.text,V=R.id3,z=R.initSegment;if(this.fragContextChanged(U))return;if(this.state=g.State.PARSING,this.audioSwitch&&j&&this.completeAudioSwitch(),z!=null&&z.tracks&&(this._bufferInitSegment(z.tracks,U,k),D.trigger(f.Events.FRAG_PARSING_INIT_SEGMENT,{frag:U,id:N,tracks:z.tracks})),j){var J=j.startPTS,Z=j.endPTS,de=j.startDTS,ie=j.endDTS;B&&(B.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:J,endPTS:Z,startDTS:de,endDTS:ie}),U.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,J,Z,de,ie),this.bufferFragmentData(j,U,B,k)}if(V!=null&&(L=V.samples)!==null&&L!==void 0&&L.length){var ve=p({frag:U,id:N},V);D.trigger(f.Events.FRAG_PARSING_METADATA,ve)}if(W){var xe=p({frag:U,id:N},W);D.trigger(f.Events.FRAG_PARSING_USERDATA,xe)}},w._bufferInitSegment=function(I,L,N){if(this.state!==g.State.PARSING)return;I.video&&delete I.video;var D=I.audio;if(!D)return;D.levelCodec=D.codec,D.id="audio",this.log("Init audio buffer, container:"+D.container+", codecs[parsed]=["+D.codec+"]"),this.hls.trigger(f.Events.BUFFER_CODECS,I);var R=D.initSegment;if(R!=null&&R.byteLength){var k={type:"audio",frag:L,part:null,chunkMeta:N,parent:L.type,data:R};this.hls.trigger(f.Events.BUFFER_APPENDING,k)}this.tick()},w.loadFragment=function(I,L,N){var D=this.fragmentTracker.getState(I);this.fragCurrent=I,(this.audioSwitch||D===o.FragmentState.NOT_LOADED||D===o.FragmentState.PARTIAL)&&(I.sn==="initSegment"?this._loadInitSegment(I):L.live&&!Object(S.isFiniteNumber)(this.initPTS[I.cc])?(this.log("Waiting for video PTS in continuity counter "+I.cc+" of live stream before loading audio fragment "+I.sn+" of level "+this.trackId),this.state=g.State.WAITING_INIT_PTS):(this.startFragRequested=!0,T.prototype.loadFragment.call(this,I,L,N)))},w.completeAudioSwitch=function(){var I=this.hls,L=this.media,N=this.trackId;L&&(this.log("Switching audio track : flushing all audio"),T.prototype.flushMainBuffer.call(this,0,Number.POSITIVE_INFINITY,"audio")),this.audioSwitch=!1,I.trigger(f.Events.AUDIO_TRACK_SWITCHED,{id:N})},b}(g.default);C.default=E},"./src/controller/audio-track-controller.ts":function(x,C,A){"use strict";A.r(C);var S=A("./src/events.ts"),g=A("./src/errors.ts"),f=A("./src/controller/base-playlist-controller.ts"),c=A("./src/types/loader.ts");function o(l,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(l,s.key,s)}}function r(l,t,a){return t&&o(l.prototype,t),a&&o(l,a),l}function i(l,t){l.prototype=Object.create(t.prototype),l.prototype.constructor=l,n(l,t)}function n(l,t){return n=Object.setPrototypeOf||function(s,u){return s.__proto__=u,s},n(l,t)}var e=function(l){i(t,l);function t(s){var u;return u=l.call(this,s,"[audio-track-controller]")||this,u.tracks=[],u.groupId=null,u.tracksInGroup=[],u.trackId=-1,u.trackName="",u.selectDefaultTrack=!0,u.registerListeners(),u}var a=t.prototype;return a.registerListeners=function(){var u=this.hls;u.on(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.on(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),u.on(S.Events.LEVEL_LOADING,this.onLevelLoading,this),u.on(S.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),u.on(S.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),u.on(S.Events.ERROR,this.onError,this)},a.unregisterListeners=function(){var u=this.hls;u.off(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.off(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),u.off(S.Events.LEVEL_LOADING,this.onLevelLoading,this),u.off(S.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),u.off(S.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),u.off(S.Events.ERROR,this.onError,this)},a.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,l.prototype.destroy.call(this)},a.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.trackName="",this.selectDefaultTrack=!0},a.onManifestParsed=function(u,h){this.tracks=h.audioTracks||[]},a.onAudioTrackLoaded=function(u,h){var p=h.id,m=h.details,v=this.tracksInGroup[p];if(!v){this.warn("Invalid audio track id "+p);return}var y=v.details;v.details=h.details,this.log("audioTrack "+p+" loaded ["+m.startSN+"-"+m.endSN+"]"),p===this.trackId&&(this.retryCount=0,this.playlistLoaded(p,h,y))},a.onLevelLoading=function(u,h){this.switchLevel(h.level)},a.onLevelSwitching=function(u,h){this.switchLevel(h.level)},a.switchLevel=function(u){var h=this.hls.levels[u];if(!(h!=null&&h.audioGroupIds))return;var p=h.audioGroupIds[h.urlId];if(this.groupId!==p){this.groupId=p;var m=this.tracks.filter(function(y){return!p||y.groupId===p});this.selectDefaultTrack&&!m.some(function(y){return y.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=m;var v={audioTracks:m};this.log("Updating audio tracks, "+m.length+' track(s) found in "'+p+'" group-id'),this.hls.trigger(S.Events.AUDIO_TRACKS_UPDATED,v),this.selectInitialTrack()}},a.onError=function(u,h){if(l.prototype.onError.call(this,u,h),h.fatal||!h.context)return;h.context.type===c.PlaylistContextType.AUDIO_TRACK&&h.context.id===this.trackId&&h.context.groupId===this.groupId&&this.retryLoadingOrFail(h)},a.setAudioTrack=function(u){var h=this.tracksInGroup;if(u<0||u>=h.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var p=h[this.trackId];this.log("Now switching to audio-track index "+u);var m=h[u],v=m.id,y=m.groupId,E=y===void 0?"":y,T=m.name,b=m.type,w=m.url;if(this.trackId=u,this.trackName=T,this.selectDefaultTrack=!1,this.hls.trigger(S.Events.AUDIO_TRACK_SWITCHING,{id:v,groupId:E,name:T,type:b,url:w}),m.details&&!m.details.live)return;var _=this.switchParams(m.url,p==null?void 0:p.details);this.loadPlaylist(_)},a.selectInitialTrack=function(){var u=this.tracksInGroup;console.assert(u.length,"Initial audio track should be selected when tracks are known");var h=this.trackName,p=this.findTrackId(h)||this.findTrackId();p!==-1?this.setAudioTrack(p):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(S.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},a.findTrackId=function(u){for(var h=this.tracksInGroup,p=0;p<h.length;p++){var m=h[p];if((!this.selectDefaultTrack||m.default)&&(!u||u===m.name))return m.id}return-1},a.loadPlaylist=function(u){var h=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(h)){var p=h.id,m=h.groupId,v=h.url;if(u)try{v=u.addDirectives(v)}catch(y){this.warn("Could not construct new URL with HLS Delivery Directives: "+y)}this.log("loading audio-track playlist for id: "+p),this.clearTimer(),this.hls.trigger(S.Events.AUDIO_TRACK_LOADING,{url:v,id:p,groupId:m,deliveryDirectives:u||null})}},r(t,[{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(u){this.selectDefaultTrack=!1,this.setAudioTrack(u)}}]),t}(f.default);C.default=e},"./src/controller/base-playlist-controller.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return r});var S=A("./src/polyfills/number.ts"),g=A("./src/types/level.ts"),f=A("./src/controller/level-helper.ts"),c=A("./src/utils/logger.ts"),o=A("./src/errors.ts"),r=function(){function i(e,l){this.hls=void 0,this.timer=-1,this.canLoad=!1,this.retryCount=0,this.log=void 0,this.warn=void 0,this.log=c.logger.log.bind(c.logger,l+":"),this.warn=c.logger.warn.bind(c.logger,l+":"),this.hls=e}var n=i.prototype;return n.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},n.onError=function(l,t){t.fatal&&t.type===o.ErrorTypes.NETWORK_ERROR&&this.clearTimer()},n.clearTimer=function(){clearTimeout(this.timer),this.timer=-1},n.startLoad=function(){this.canLoad=!0,this.retryCount=0,this.loadPlaylist()},n.stopLoad=function(){this.canLoad=!1,this.clearTimer()},n.switchParams=function(l,t){var a=t==null?void 0:t.renditionReports;if(a)for(var s=0;s<a.length;s++){var u=a[s],h=""+u.URI;if(h===l.substr(-h.length)){var p=parseInt(u["LAST-MSN"]),m=parseInt(u["LAST-PART"]);if(t&&this.hls.config.lowLatencyMode){var v=Math.min(t.age-t.partTarget,t.targetduration);m!==void 0&&v>t.partTarget&&(m+=1)}if(Object(S.isFiniteNumber)(p))return new g.HlsUrlParameters(p,Object(S.isFiniteNumber)(m)?m:void 0,g.HlsSkip.No)}}},n.loadPlaylist=function(l){},n.shouldLoadTrack=function(l){return this.canLoad&&l&&!!l.url&&(!l.details||l.details.live)},n.playlistLoaded=function(l,t,a){var s=this,u=t.details,h=t.stats,p=h.loading.end?Math.max(0,self.performance.now()-h.loading.end):0;if(u.advancedDateTime=Date.now()-p,u.live||a!=null&&a.live){if(u.reloaded(a),a&&this.log("live playlist "+l+" "+(u.advanced?"REFRESHED "+u.lastPartSn+"-"+u.lastPartIndex:"MISSED")),a&&u.fragments.length>0&&Object(f.mergeDetails)(a,u),!this.canLoad||!u.live)return;var m,v=void 0,y=void 0;if(u.canBlockReload&&u.endSN&&u.advanced){var E=this.hls.config.lowLatencyMode,T=u.lastPartSn,b=u.endSN,w=u.lastPartIndex,_=w!==-1,I=T===b,L=E?0:w;_?(v=I?b+1:T,y=I?L:w+1):v=b+1;var N=u.age,D=N+u.ageHeader,R=Math.min(D-u.partTarget,u.targetduration*1.5);if(R>0){if(a&&R>a.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+a.tuneInGoal+" to: "+R+" with playlist age: "+u.age),R=0;else{var k=Math.floor(R/u.targetduration);if(v+=k,y!==void 0){var M=Math.round(R%u.targetduration/u.partTarget);y+=M}this.log("CDN Tune-in age: "+u.ageHeader+"s last advanced "+N.toFixed(2)+"s goal: "+R+" skip sn "+k+" to part "+y)}u.tuneInGoal=R}if(m=this.getDeliveryDirectives(u,t.deliveryDirectives,v,y),E||!I){this.loadPlaylist(m);return}}else m=this.getDeliveryDirectives(u,t.deliveryDirectives,v,y);var U=Object(f.computeReloadInterval)(u,h);v!==void 0&&u.canBlockReload&&(U-=u.partTarget||1),this.log("reload live playlist "+l+" in "+Math.round(U)+" ms"),this.timer=self.setTimeout(function(){return s.loadPlaylist(m)},U)}else this.clearTimer()},n.getDeliveryDirectives=function(l,t,a,s){var u=Object(g.getSkipValue)(l,a);return t!=null&&t.skip&&l.deltaUpdateFailed&&(a=t.msn,s=t.part,u=g.HlsSkip.No),new g.HlsUrlParameters(a,s,u)},n.retryLoadingOrFail=function(l){var t=this,a=this.hls.config,s=this.retryCount<a.levelLoadingMaxRetry;if(s){var u;if(this.retryCount++,l.details.indexOf("LoadTimeOut")>-1&&(u=l.context)!==null&&u!==void 0&&u.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+l.details+'"'),this.loadPlaylist();else{var h=Math.min(Math.pow(2,this.retryCount)*a.levelLoadingRetryDelay,a.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return t.loadPlaylist()},h),this.warn("retry playlist loading #"+this.retryCount+" in "+h+' ms after "'+l.details+'"')}}else this.warn('cannot recover from error "'+l.details+'"'),this.clearTimer(),l.fatal=!0;return s},i}()},"./src/controller/base-stream-controller.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"State",function(){return b}),A.d(C,"default",function(){return w});var S=A("./src/polyfills/number.ts"),g=A("./src/task-loop.ts"),f=A("./src/controller/fragment-tracker.ts"),c=A("./src/utils/buffer-helper.ts"),o=A("./src/utils/logger.ts"),r=A("./src/events.ts"),i=A("./src/errors.ts"),n=A("./src/types/transmuxer.ts"),e=A("./src/utils/mp4-tools.ts"),l=A("./src/utils/discontinuities.ts"),t=A("./src/controller/fragment-finders.ts"),a=A("./src/controller/level-helper.ts"),s=A("./src/loader/fragment-loader.ts"),u=A("./src/crypt/decrypter.ts"),h=A("./src/utils/time-ranges.ts"),p=A("./src/types/loader.ts");function m(_,I){for(var L=0;L<I.length;L++){var N=I[L];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(_,N.key,N)}}function v(_,I,L){return I&&m(_.prototype,I),L&&m(_,L),_}function y(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function E(_,I){_.prototype=Object.create(I.prototype),_.prototype.constructor=_,T(_,I)}function T(_,I){return T=Object.setPrototypeOf||function(N,D){return N.__proto__=D,N},T(_,I)}var b={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",BACKTRACKING:"BACKTRACKING",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},w=function(_){E(I,_);function I(N,D,R){var k;return k=_.call(this)||this,k.hls=void 0,k.fragPrevious=null,k.fragCurrent=null,k.fragmentTracker=void 0,k.transmuxer=null,k._state=b.STOPPED,k.media=void 0,k.mediaBuffer=void 0,k.config=void 0,k.bitrateTest=!1,k.lastCurrentTime=0,k.nextLoadPosition=0,k.startPosition=0,k.loadedmetadata=!1,k.fragLoadError=0,k.retryDate=0,k.levels=null,k.fragmentLoader=void 0,k.levelLastLoaded=null,k.startFragRequested=!1,k.decrypter=void 0,k.initPTS=[],k.onvseeking=null,k.onvended=null,k.logPrefix="",k.log=void 0,k.warn=void 0,k.logPrefix=R,k.log=o.logger.log.bind(o.logger,R+":"),k.warn=o.logger.warn.bind(o.logger,R+":"),k.hls=N,k.fragmentLoader=new s.default(N.config),k.fragmentTracker=D,k.config=N.config,k.decrypter=new u.default(N,N.config),N.on(r.Events.KEY_LOADED,k.onKeyLoaded,y(k)),k}var L=I.prototype;return L.doTick=function(){this.onTickEnd()},L.onTickEnd=function(){},L.startLoad=function(D){},L.stopLoad=function(){this.fragmentLoader.abort();var D=this.fragCurrent;D&&this.fragmentTracker.removeFragment(D),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=b.STOPPED},L._streamEnded=function(D,R){var k=this.fragCurrent,M=this.fragmentTracker;if(!R.live&&k&&k.sn>=R.endSN&&!D.nextStart){var U=R.partList;if(U!=null&&U.length){var B=U[U.length-1],j=c.BufferHelper.isBuffered(this.media,B.start+B.duration/2);return j}var W=M.getState(k);return W===f.FragmentState.PARTIAL||W===f.FragmentState.OK}return!1},L.onMediaAttached=function(D,R){var k=this.media=this.mediaBuffer=R.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),k.addEventListener("seeking",this.onvseeking),k.addEventListener("ended",this.onvended);var M=this.config;this.levels&&M.autoStartLoad&&this.state===b.STOPPED&&this.startLoad(M.startPosition)},L.onMediaDetaching=function(){var D=this.media;D!=null&&D.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),D&&(D.removeEventListener("seeking",this.onvseeking),D.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},L.onMediaSeeking=function(){var D=this.config,R=this.fragCurrent,k=this.media,M=this.mediaBuffer,U=this.state,B=k?k.currentTime:0,j=c.BufferHelper.bufferInfo(M||k,B,D.maxBufferHole);if(this.log("media seeking to "+(Object(S.isFiniteNumber)(B)?B.toFixed(3):B)+", state: "+U),U===b.ENDED)this.resetLoadingState();else if(R&&!j.len){var W=D.maxFragLookUpTolerance,V=R.start-W,z=R.start+R.duration+W,J=B>z;(B<V||J)&&(J&&R.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),R.loader.abort()),this.resetLoadingState())}k&&(this.lastCurrentTime=B),!this.loadedmetadata&&!j.len&&(this.nextLoadPosition=this.startPosition=B),this.tickImmediate()},L.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},L.onKeyLoaded=function(D,R){if(this.state!==b.KEY_LOADING||R.frag!==this.fragCurrent||!this.levels)return;this.state=b.IDLE;var k=this.levels[R.frag.level].details;k&&this.loadFragment(R.frag,k,R.frag.start)},L.onHandlerDestroying=function(){this.stopLoad(),_.prototype.onHandlerDestroying.call(this)},L.onHandlerDestroyed=function(){this.state=b.STOPPED,this.hls.off(r.Events.KEY_LOADED,this.onKeyLoaded,this),this.fragmentLoader&&this.fragmentLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.fragmentLoader=this.fragmentTracker=null,_.prototype.onHandlerDestroyed.call(this)},L.loadKey=function(D,R){this.log("Loading key for "+D.sn+" of ["+R.startSN+"-"+R.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+D.level),this.state=b.KEY_LOADING,this.fragCurrent=D,this.hls.trigger(r.Events.KEY_LOADING,{frag:D})},L.loadFragment=function(D,R,k){this._loadFragForPlayback(D,R,k)},L._loadFragForPlayback=function(D,R,k){var M=this,U=function(j){if(M.fragContextChanged(D)){M.warn("Fragment "+D.sn+(j.part?" p: "+j.part.index:"")+" of level "+D.level+" was dropped during download."),M.fragmentTracker.removeFragment(D);return}D.stats.chunkCount++,M._handleFragmentLoadProgress(j)};this._doFragLoad(D,R,k,U).then(function(B){if(!B)return;M.fragLoadError=0;var j=M.state;if(M.fragContextChanged(D)){(j===b.FRAG_LOADING||j===b.BACKTRACKING||!M.fragCurrent&&j===b.PARSING)&&(M.fragmentTracker.removeFragment(D),M.state=b.IDLE);return}if("payload"in B&&(M.log("Loaded fragment "+D.sn+" of level "+D.level),M.hls.trigger(r.Events.FRAG_LOADED,B),M.state===b.BACKTRACKING)){M.fragmentTracker.backtrack(D,B),M.resetFragmentLoading(D);return}M._handleFragmentLoadComplete(B)}).catch(function(B){M.warn(B),M.resetFragmentLoading(D)})},L.flushMainBuffer=function(D,R,k){if(k===void 0&&(k=null),!(D-R))return;var M={startOffset:D,endOffset:R,type:k};this.fragLoadError=0,this.hls.trigger(r.Events.BUFFER_FLUSHING,M)},L._loadInitSegment=function(D){var R=this;this._doFragLoad(D).then(function(k){if(!k||R.fragContextChanged(D)||!R.levels)throw new Error("init load aborted");return k}).then(function(k){var M=R.hls,U=k.payload,B=D.decryptdata;if(U&&U.byteLength>0&&B&&B.key&&B.iv&&B.method==="AES-128"){var j=self.performance.now();return R.decrypter.webCryptoDecrypt(new Uint8Array(U),B.key.buffer,B.iv.buffer).then(function(W){var V=self.performance.now();return M.trigger(r.Events.FRAG_DECRYPTED,{frag:D,payload:W,stats:{tstart:j,tdecrypt:V}}),k.payload=W,k})}return k}).then(function(k){var M=R.fragCurrent,U=R.hls,B=R.levels;if(!B)throw new Error("init load aborted, missing levels");var j=B[D.level].details;console.assert(j,"Level details are defined when init segment is loaded");var W=D.stats;R.state=b.IDLE,R.fragLoadError=0,D.data=new Uint8Array(k.payload),W.parsing.start=W.buffering.start=self.performance.now(),W.parsing.end=W.buffering.end=self.performance.now(),k.frag===M&&U.trigger(r.Events.FRAG_BUFFERED,{stats:W,frag:M,part:null,id:D.type}),R.tick()}).catch(function(k){R.warn(k),R.resetFragmentLoading(D)})},L.fragContextChanged=function(D){var R=this.fragCurrent;return!D||!R||D.level!==R.level||D.sn!==R.sn||D.urlId!==R.urlId},L.fragBufferedComplete=function(D,R){var k=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+D.type+" sn: "+D.sn+(R?" part: "+R.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+D.level+" "+h.default.toString(c.BufferHelper.getBuffered(k))),this.state=b.IDLE,this.tick()},L._handleFragmentLoadComplete=function(D){var R=this.transmuxer;if(!R)return;var k=D.frag,M=D.part,U=D.partsLoaded,B=!U||U.length===0||U.some(function(W){return!W}),j=new n.ChunkMetadata(k.level,k.sn,k.stats.chunkCount+1,0,M?M.index:-1,!B);R.flush(j)},L._handleFragmentLoadProgress=function(D){},L._doFragLoad=function(D,R,k,M){var U=this;if(k===void 0&&(k=null),!this.levels)throw new Error("frag load aborted, missing levels");if(k=Math.max(D.start,k||0),this.config.lowLatencyMode&&R){var B=R.partList;if(B&&M){k>D.end&&R.fragmentHint&&(D=R.fragmentHint);var j=this.getNextPart(B,D,k);if(j>-1){var W=B[j];return this.log("Loading part sn: "+D.sn+" p: "+W.index+" cc: "+D.cc+" of playlist ["+R.startSN+"-"+R.endSN+"] parts [0-"+j+"-"+(B.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+D.level+", target: "+parseFloat(k.toFixed(3))),this.nextLoadPosition=W.start+W.duration,this.state=b.FRAG_LOADING,this.hls.trigger(r.Events.FRAG_LOADING,{frag:D,part:B[j],targetBufferTime:k}),this.doFragPartsLoad(D,B,j,M).catch(function(V){return U.handleFragLoadError(V)})}else if(!D.url||this.loadedEndOfParts(B,k))return Promise.resolve(null)}}return this.log("Loading fragment "+D.sn+" cc: "+D.cc+" "+(R?"of ["+R.startSN+"-"+R.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+D.level+", target: "+parseFloat(k.toFixed(3))),Object(S.isFiniteNumber)(D.sn)&&!this.bitrateTest&&(this.nextLoadPosition=D.start+D.duration),this.state=b.FRAG_LOADING,this.hls.trigger(r.Events.FRAG_LOADING,{frag:D,targetBufferTime:k}),this.fragmentLoader.load(D,M).catch(function(V){return U.handleFragLoadError(V)})},L.doFragPartsLoad=function(D,R,k,M){var U=this;return new Promise(function(B,j){var W=[],V=function z(J){var Z=R[J];U.fragmentLoader.loadPart(D,Z,M).then(function(de){W[Z.index]=de;var ie=de.part;U.hls.trigger(r.Events.FRAG_LOADED,de);var ve=R[J+1];if(ve&&ve.fragment===D)z(J+1);else return B({frag:D,part:ie,partsLoaded:W})}).catch(j)};V(k)})},L.handleFragLoadError=function(D){var R=D.data;return R&&R.details===i.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(R.frag,R.part):this.hls.trigger(r.Events.ERROR,R),null},L._handleTransmuxerFlush=function(D){var R=this.getCurrentContext(D);if(!R||this.state!==b.PARSING){this.fragCurrent||(this.state=b.IDLE);return}var k=R.frag,M=R.part,U=R.level,B=self.performance.now();k.stats.parsing.end=B,M&&(M.stats.parsing.end=B),this.updateLevelTiming(k,M,U,D.partial)},L.getCurrentContext=function(D){var R=this.levels,k=D.level,M=D.sn,U=D.part;if(!R||!R[k])return this.warn("Levels object was unset while buffering fragment "+M+" of level "+k+". The current chunk will not be buffered."),null;var B=R[k],j=U>-1?Object(a.getPartWith)(B,M,U):null,W=j?j.fragment:Object(a.getFragmentWithSN)(B,M,this.fragCurrent);return W?{frag:W,part:j,level:B}:null},L.bufferFragmentData=function(D,R,k,M){if(!D||this.state!==b.PARSING)return;var U=D.data1,B=D.data2,j=U;if(U&&B&&(j=Object(e.appendUint8Array)(U,B)),!j||!j.length)return;var W={type:D.type,frag:R,part:k,chunkMeta:M,parent:R.type,data:j};this.hls.trigger(r.Events.BUFFER_APPENDING,W),D.dropped&&D.independent&&!k&&this.flushBufferGap(R)},L.flushBufferGap=function(D){var R=this.media;if(!R)return;if(!c.BufferHelper.isBuffered(R,R.currentTime)){this.flushMainBuffer(0,D.start);return}var k=R.currentTime,M=c.BufferHelper.bufferInfo(R,k,0),U=D.duration,B=Math.min(this.config.maxFragLookUpTolerance*2,U*.25),j=Math.max(Math.min(D.start-B,M.end-B),k+B);D.start-j>B&&this.flushMainBuffer(j,D.start)},L.getFwdBufferInfo=function(D,R){var k=this.config,M=this.getLoadPosition();if(!Object(S.isFiniteNumber)(M))return null;var U=c.BufferHelper.bufferInfo(D,M,k.maxBufferHole);if(U.len===0&&U.nextStart!==void 0){var B=this.fragmentTracker.getBufferedFrag(M,R);if(B&&U.nextStart<B.end)return c.BufferHelper.bufferInfo(D,M,Math.max(U.nextStart,k.maxBufferHole))}return U},L.getMaxBufferLength=function(D){var R=this.config,k;return D?k=Math.max(8*R.maxBufferSize/D,R.maxBufferLength):k=R.maxBufferLength,Math.min(k,R.maxMaxBufferLength)},L.reduceMaxBufferLength=function(D){var R=this.config,k=D||R.maxBufferLength;return R.maxMaxBufferLength>=k?(R.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+R.maxMaxBufferLength+"s"),!0):!1},L.getNextFragment=function(D,R){var k,M,U=R.fragments,B=U.length;if(!B)return null;var j=this.config,W=U[0].start,V;if(R.live){var z=j.initialLiveManifestSize;if(B<z)return this.warn("Not enough fragments to start playback (have: "+B+", need: "+z+")"),null;!R.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(V=this.getInitialLiveFragment(R,U),this.startPosition=V?this.hls.liveSyncPosition||V.start:D)}else D<=W&&(V=U[0]);if(!V){var J=j.lowLatencyMode?R.partEnd:R.fragmentEnd;V=this.getFragmentAtPosition(D,J,R)}return(k=V)!==null&&k!==void 0&&k.initSegment&&!((M=V)!==null&&M!==void 0&&M.initSegment.data)&&!this.bitrateTest&&(V=V.initSegment),V},L.getNextPart=function(D,R,k){for(var M=-1,U=!1,B=!0,j=0,W=D.length;j<W;j++){var V=D[j];if(B=B&&!V.independent,M>-1&&k<V.start)break;var z=V.loaded;!z&&(U||V.independent||B)&&V.fragment===R&&(M=j),U=z}return M},L.loadedEndOfParts=function(D,R){var k=D[D.length-1];return k&&R>k.start&&k.loaded},L.getInitialLiveFragment=function(D,R){var k=this.fragPrevious,M=null;if(k){if(D.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+k.programDateTime),M=Object(t.findFragmentByPDT)(R,k.endProgramDateTime,this.config.maxFragLookUpTolerance)),!M){var U=k.sn+1;if(U>=D.startSN&&U<=D.endSN){var B=R[U-D.startSN];k.cc===B.cc&&(M=B,this.log("Live playlist, switching playlist, load frag with next SN: "+M.sn))}M||(M=Object(t.findFragWithCC)(R,k.cc),M&&this.log("Live playlist, switching playlist, load frag with same CC: "+M.sn))}}else{var j=this.hls.liveSyncPosition;j!==null&&(M=this.getFragmentAtPosition(j,this.bitrateTest?D.fragmentEnd:D.edge,D))}return M},L.getFragmentAtPosition=function(D,R,k){var M=this.config,U=this.fragPrevious,B=k.fragments,j=k.endSN,W=k.fragmentHint,V=M.maxFragLookUpTolerance,z=!!(M.lowLatencyMode&&k.partList&&W);z&&W&&!this.bitrateTest&&(B=B.concat(W),j=W.sn);var J;if(D<R){var Z=D>R-V?0:V;J=Object(t.findFragmentByPTS)(U,B,D,Z)}else J=B[B.length-1];if(J){var de=J.sn-k.startSN,ie=U&&J.level===U.level,ve=B[de+1],xe=this.fragmentTracker.getState(J);if(xe===f.FragmentState.BACKTRACKED){J=null;for(var _e=de;B[_e]&&this.fragmentTracker.getState(B[_e])===f.FragmentState.BACKTRACKED;)U?J=B[_e--]:J=B[--_e];J||(J=ve)}else U&&J.sn===U.sn&&!z&&(ie&&(J.sn<j&&this.fragmentTracker.getState(ve)!==f.FragmentState.OK?(this.log("SN "+J.sn+" just loaded, load next one: "+ve.sn),J=ve):J=null))}return J},L.synchronizeToLiveEdge=function(D){var R=this.config,k=this.media;if(!k)return;var M=this.hls.liveSyncPosition,U=k.currentTime,B=D.fragments[0].start,j=D.edge,W=U>=B-R.maxFragLookUpTolerance&&U<=j;if(M!==null&&k.duration>M&&(U<M||!W)){var V=R.liveMaxLatencyDuration!==void 0?R.liveMaxLatencyDuration:R.liveMaxLatencyDurationCount*D.targetduration;(!W&&k.readyState<4||U<j-V)&&(this.loadedmetadata||(this.nextLoadPosition=M),k.readyState&&(this.warn("Playback: "+U.toFixed(3)+" is located too far from the end of live sliding playlist: "+j+", reset currentTime to : "+M.toFixed(3)),k.currentTime=M))}},L.alignPlaylists=function(D,R){var k=this.levels,M=this.levelLastLoaded,U=this.fragPrevious,B=M!==null?k[M]:null,j=D.fragments.length;if(!j)return this.warn("No fragments in live playlist"),0;var W=D.fragments[0].start,V=!R,z=D.alignedSliding&&Object(S.isFiniteNumber)(W);if(V||!z&&!W){Object(l.alignStream)(U,B,D);var J=D.fragments[0].start;return this.log("Live playlist sliding: "+J.toFixed(2)+" start-sn: "+(R?R.startSN:"na")+"->"+D.startSN+" prev-sn: "+(U?U.sn:"na")+" fragments: "+j),J}return W},L.waitForCdnTuneIn=function(D){var R=3;return D.live&&D.canBlockReload&&D.tuneInGoal>Math.max(D.partHoldBack,D.partTarget*R)},L.setStartPosition=function(D,R){var k=this.startPosition;if(k<R&&(k=-1),k===-1||this.lastCurrentTime===-1){var M=D.startTimeOffset;Object(S.isFiniteNumber)(M)?(k=R+M,M<0&&(k+=D.totalduration),k=Math.min(Math.max(R,k),R+D.totalduration),this.log("Start time offset "+M+" found in playlist, adjust startPosition to "+k),this.startPosition=k):D.live?k=this.hls.liveSyncPosition||R:this.startPosition=k=0,this.lastCurrentTime=k}this.nextLoadPosition=k},L.getLoadPosition=function(){var D=this.media,R=0;return this.loadedmetadata&&D?R=D.currentTime:this.nextLoadPosition&&(R=this.nextLoadPosition),R},L.handleFragLoadAborted=function(D,R){this.transmuxer&&D.sn!=="initSegment"&&D.stats.aborted&&(this.warn("Fragment "+D.sn+(R?" part"+R.index:"")+" of level "+D.level+" was aborted"),this.resetFragmentLoading(D))},L.resetFragmentLoading=function(D){(!this.fragCurrent||!this.fragContextChanged(D))&&(this.state=b.IDLE)},L.onFragmentOrKeyLoadError=function(D,R){if(R.fatal)return;var k=R.frag;if(!k||k.type!==D)return;var M=this.fragCurrent;console.assert(M&&k.sn===M.sn&&k.level===M.level&&k.urlId===M.urlId,"Frag load error must match current frag to retry");var U=this.config;if(this.fragLoadError+1<=U.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(k.level))return;var B=Math.min(Math.pow(2,this.fragLoadError)*U.fragLoadingRetryDelay,U.fragLoadingMaxRetryTimeout);this.warn("Fragment "+k.sn+" of "+D+" "+k.level+" failed to load, retrying in "+B+"ms"),this.retryDate=self.performance.now()+B,this.fragLoadError++,this.state=b.FRAG_LOADING_WAITING_RETRY}else R.levelRetry?(D===p.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=b.IDLE):(o.logger.error(R.details+" reaches max retry, redispatch as fatal ..."),R.fatal=!0,this.hls.stopLoad(),this.state=b.ERROR)},L.afterBufferFlushed=function(D,R,k){if(!D)return;var M=c.BufferHelper.getBuffered(D);this.fragmentTracker.detectEvictedFragments(R,M,k),this.state===b.ENDED&&this.resetLoadingState()},L.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=b.IDLE},L.resetLiveStartWhenNotLoaded=function(D){if(!this.loadedmetadata){this.startFragRequested=!1;var R=this.levels?this.levels[D].details:null;if(R!=null&&R.live)return this.startPosition=-1,this.setStartPosition(R,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},L.updateLevelTiming=function(D,R,k,M){var U=this,B=k.details;console.assert(!!B,"level.details must be defined");var j=Object.keys(D.elementaryStreams).reduce(function(W,V){var z=D.elementaryStreams[V];if(z){var J=z.endPTS-z.startPTS;if(J<=0)return U.warn("Could not parse fragment "+D.sn+" "+V+" duration reliably ("+J+") resetting transmuxer to fallback to playlist timing"),U.resetTransmuxer(),W||!1;var Z=M?0:Object(a.updateFragPTSDTS)(B,D,z.startPTS,z.endPTS,z.startDTS,z.endDTS);return U.hls.trigger(r.Events.LEVEL_PTS_UPDATED,{details:B,level:k,drift:Z,type:V,frag:D,start:z.startPTS,end:z.endPTS}),!0}return W},!1);j?(this.state=b.PARSED,this.hls.trigger(r.Events.FRAG_PARSED,{frag:D,part:R})):this.resetLoadingState()},L.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},v(I,[{key:"state",get:function(){return this._state},set:function(D){var R=this._state;R!==D&&(this._state=D,this.log(R+"->"+D))}}]),I}(g.default)},"./src/controller/buffer-controller.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return t});var S=A("./src/polyfills/number.ts"),g=A("./src/events.ts"),f=A("./src/utils/logger.ts"),c=A("./src/errors.ts"),o=A("./src/utils/buffer-helper.ts"),r=A("./src/utils/mediasource-helper.ts"),i=A("./src/loader/fragment.ts"),n=A("./src/controller/buffer-operation-queue.ts"),e=Object(r.getMediaSource)(),l=/([ha]vc.)(?:\.[^.,]+)+/,t=function(){function a(u){var h=this;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.appendError=0,this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this._onMediaSourceOpen=function(){var p=h.hls,m=h.media,v=h.mediaSource;f.logger.log("[buffer-controller]: Media source opened"),m&&(h.updateMediaElementDuration(),p.trigger(g.Events.MEDIA_ATTACHED,{media:m})),v&&v.removeEventListener("sourceopen",h._onMediaSourceOpen),h.checkPendingTracks()},this._onMediaSourceClose=function(){f.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){f.logger.log("[buffer-controller]: Media source ended")},this.hls=u,this._initSourceBuffer(),this.registerListeners()}var s=a.prototype;return s.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},s.destroy=function(){this.unregisterListeners(),this.details=null},s.registerListeners=function(){var h=this.hls;h.on(g.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),h.on(g.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.on(g.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.on(g.Events.BUFFER_RESET,this.onBufferReset,this),h.on(g.Events.BUFFER_APPENDING,this.onBufferAppending,this),h.on(g.Events.BUFFER_CODECS,this.onBufferCodecs,this),h.on(g.Events.BUFFER_EOS,this.onBufferEos,this),h.on(g.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),h.on(g.Events.LEVEL_UPDATED,this.onLevelUpdated,this),h.on(g.Events.FRAG_PARSED,this.onFragParsed,this),h.on(g.Events.FRAG_CHANGED,this.onFragChanged,this)},s.unregisterListeners=function(){var h=this.hls;h.off(g.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),h.off(g.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.off(g.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.off(g.Events.BUFFER_RESET,this.onBufferReset,this),h.off(g.Events.BUFFER_APPENDING,this.onBufferAppending,this),h.off(g.Events.BUFFER_CODECS,this.onBufferCodecs,this),h.off(g.Events.BUFFER_EOS,this.onBufferEos,this),h.off(g.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),h.off(g.Events.LEVEL_UPDATED,this.onLevelUpdated,this),h.off(g.Events.FRAG_PARSED,this.onFragParsed,this),h.off(g.Events.FRAG_CHANGED,this.onFragChanged,this)},s._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new n.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},s.onManifestParsed=function(h,p){var m=2;(p.audio&&!p.video||!p.altAudio)&&(m=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=m,this.details=null,f.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},s.onMediaAttaching=function(h,p){var m=this.media=p.media;if(m&&e){var v=this.mediaSource=new e;v.addEventListener("sourceopen",this._onMediaSourceOpen),v.addEventListener("sourceended",this._onMediaSourceEnded),v.addEventListener("sourceclose",this._onMediaSourceClose),m.src=self.URL.createObjectURL(v),this._objectUrl=m.src}},s.onMediaDetaching=function(){var h=this.media,p=this.mediaSource,m=this._objectUrl;if(p){if(f.logger.log("[buffer-controller]: media source detaching"),p.readyState==="open")try{p.endOfStream()}catch(v){f.logger.warn("[buffer-controller]: onMediaDetaching: "+v.message+" while calling endOfStream")}this.onBufferReset(),p.removeEventListener("sourceopen",this._onMediaSourceOpen),p.removeEventListener("sourceended",this._onMediaSourceEnded),p.removeEventListener("sourceclose",this._onMediaSourceClose),h&&(m&&self.URL.revokeObjectURL(m),h.src===m?(h.removeAttribute("src"),h.load()):f.logger.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(g.Events.MEDIA_DETACHED,void 0)},s.onBufferReset=function(){var h=this;this.getSourceBufferTypes().forEach(function(p){var m=h.sourceBuffer[p];try{m&&(h.removeBufferListeners(p),h.mediaSource&&h.mediaSource.removeSourceBuffer(m),h.sourceBuffer[p]=void 0)}catch(v){f.logger.warn("[buffer-controller]: Failed to reset the "+p+" buffer",v)}}),this._initSourceBuffer()},s.onBufferCodecs=function(h,p){var m=this,v=this.getSourceBufferTypes().length;if(Object.keys(p).forEach(function(y){if(v){var E=m.tracks[y];if(E&&typeof E.buffer.changeType=="function"){var T=p[y],b=T.codec,w=T.levelCodec,_=T.container,I=(E.levelCodec||E.codec).replace(l,"$1"),L=(w||b).replace(l,"$1");if(I!==L){var N=_+";codecs="+(w||b);m.appendChangeType(y,N)}}}else m.pendingTracks[y]=p[y]}),v)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},s.appendChangeType=function(h,p){var m=this,v=this.operationQueue,y={execute:function(){var T=m.sourceBuffer[h];T&&(f.logger.log("[buffer-controller]: changing "+h+" sourceBuffer type to "+p),T.changeType(p)),v.shiftAndExecuteNext(h)},onStart:function(){},onComplete:function(){},onError:function(T){f.logger.warn("[buffer-controller]: Failed to change "+h+" SourceBuffer type",T)}};v.append(y,h)},s.onBufferAppending=function(h,p){var m=this,v=this.hls,y=this.operationQueue,E=this.tracks,T=p.data,b=p.type,w=p.frag,_=p.part,I=p.chunkMeta,L=I.buffering[b],N=self.performance.now();L.start=N;var D=w.stats.buffering,R=_?_.stats.buffering:null;D.start===0&&(D.start=N),R&&R.start===0&&(R.start=N);var k=E.audio,M=b==="audio"&&I.id===1&&(k==null?void 0:k.container)==="audio/mpeg",U={execute:function(){if(L.executeStart=self.performance.now(),M){var j=m.sourceBuffer[b];if(j){var W=w.start-j.timestampOffset;Math.abs(W)>=.1&&(f.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+w.start+" (delta: "+W+") sn: "+w.sn+")"),j.timestampOffset=w.start)}}m.appendExecutor(T,b)},onStart:function(){},onComplete:function(){var j=self.performance.now();L.executeEnd=L.end=j,D.first===0&&(D.first=j),R&&R.first===0&&(R.first=j);var W=m.sourceBuffer,V={};for(var z in W)V[z]=o.BufferHelper.getBuffered(W[z]);m.appendError=0,m.hls.trigger(g.Events.BUFFER_APPENDED,{type:b,frag:w,part:_,chunkMeta:I,parent:w.type,timeRanges:V})},onError:function(j){f.logger.error("[buffer-controller]: Error encountered while trying to append to the "+b+" SourceBuffer",j);var W={type:c.ErrorTypes.MEDIA_ERROR,parent:w.type,details:c.ErrorDetails.BUFFER_APPEND_ERROR,err:j,fatal:!1};j.code===DOMException.QUOTA_EXCEEDED_ERR?W.details=c.ErrorDetails.BUFFER_FULL_ERROR:(m.appendError++,W.details=c.ErrorDetails.BUFFER_APPEND_ERROR,m.appendError>v.config.appendErrorMaxRetry&&(f.logger.error("[buffer-controller]: Failed "+v.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),W.fatal=!0)),v.trigger(g.Events.ERROR,W)}};y.append(U,b)},s.onBufferFlushing=function(h,p){var m=this,v=this.operationQueue,y=function(T){return{execute:m.removeExecutor.bind(m,T,p.startOffset,p.endOffset),onStart:function(){},onComplete:function(){m.hls.trigger(g.Events.BUFFER_FLUSHED,{type:T})},onError:function(w){f.logger.warn("[buffer-controller]: Failed to remove from "+T+" SourceBuffer",w)}}};p.type?v.append(y(p.type),p.type):this.getSourceBufferTypes().forEach(function(E){v.append(y(E),E)})},s.onFragParsed=function(h,p){var m=this,v=p.frag,y=p.part,E=[],T=y?y.elementaryStreams:v.elementaryStreams;T[i.ElementaryStreamTypes.AUDIOVIDEO]?E.push("audiovideo"):(T[i.ElementaryStreamTypes.AUDIO]&&E.push("audio"),T[i.ElementaryStreamTypes.VIDEO]&&E.push("video"));var b=function(){var _=self.performance.now();v.stats.buffering.end=_,y&&(y.stats.buffering.end=_);var I=y?y.stats:v.stats;m.hls.trigger(g.Events.FRAG_BUFFERED,{frag:v,part:y,stats:I,id:v.type})};E.length===0&&f.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+v.type+" level: "+v.level+" sn: "+v.sn),this.blockBuffers(b,E)},s.onFragChanged=function(h,p){this.flushBackBuffer()},s.onBufferEos=function(h,p){var m=this,v=this.getSourceBufferTypes().reduce(function(y,E){var T=m.sourceBuffer[E];return(!p.type||p.type===E)&&(T&&!T.ended&&(T.ended=!0,f.logger.log("[buffer-controller]: "+E+" sourceBuffer now EOS"))),y&&!!(!T||T.ended)},!0);v&&this.blockBuffers(function(){var y=m.mediaSource;if(!y||y.readyState!=="open")return;y.endOfStream()})},s.onLevelUpdated=function(h,p){var m=p.details;if(!m.fragments.length)return;this.details=m,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},s.flushBackBuffer=function(){var h=this.hls,p=this.details,m=this.media,v=this.sourceBuffer;if(!m||p===null)return;var y=this.getSourceBufferTypes();if(!y.length)return;var E=p.live&&h.config.liveBackBufferLength!==null?h.config.liveBackBufferLength:h.config.backBufferLength;if(!Object(S.isFiniteNumber)(E)||E<0)return;var T=m.currentTime,b=p.levelTargetDuration,w=Math.max(E,b),_=Math.floor(T/b)*b-w;y.forEach(function(I){var L=v[I];if(L){var N=o.BufferHelper.getBuffered(L);N.length>0&&_>N.start(0)&&(h.trigger(g.Events.BACK_BUFFER_REACHED,{bufferEnd:_}),p.live&&h.trigger(g.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:_}),h.trigger(g.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:_,type:I}))}})},s.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var h=this.details,p=this.hls,m=this.media,v=this.mediaSource,y=h.fragments[0].start+h.totalduration,E=m.duration,T=Object(S.isFiniteNumber)(v.duration)?v.duration:0;h.live&&p.config.liveDurationInfinity?(f.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),v.duration=Infinity,this.updateSeekableRange(h)):(y>T&&y>E||!Object(S.isFiniteNumber)(E))&&(f.logger.log("[buffer-controller]: Updating Media Source duration to "+y.toFixed(3)),v.duration=y)},s.updateSeekableRange=function(h){var p=this.mediaSource,m=h.fragments,v=m.length;if(v&&h.live&&p!==null&&p!==void 0&&p.setLiveSeekableRange){var y=Math.max(0,m[0].start),E=Math.max(y,y+h.totalduration);p.setLiveSeekableRange(y,E)}},s.checkPendingTracks=function(){var h=this.bufferCodecEventsExpected,p=this.operationQueue,m=this.pendingTracks,v=Object.keys(m).length;if(v&&!h||v===2){this.createSourceBuffers(m),this.pendingTracks={};var y=this.getSourceBufferTypes();if(y.length===0){this.hls.trigger(g.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}y.forEach(function(E){p.executeNext(E)})}},s.createSourceBuffers=function(h){var p=this.sourceBuffer,m=this.mediaSource;if(!m)throw Error("createSourceBuffers called when mediaSource was null");var v=0;for(var y in h)if(!p[y]){var E=h[y];if(!E)throw Error("source buffer exists for track "+y+", however track does not");var T=E.levelCodec||E.codec,b=E.container+";codecs="+T;f.logger.log("[buffer-controller]: creating sourceBuffer("+b+")");try{var w=p[y]=m.addSourceBuffer(b),_=y;this.addBufferListener(_,"updatestart",this._onSBUpdateStart),this.addBufferListener(_,"updateend",this._onSBUpdateEnd),this.addBufferListener(_,"error",this._onSBUpdateError),this.tracks[y]={buffer:w,codec:T,container:E.container,levelCodec:E.levelCodec,id:E.id},v++}catch(I){f.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+I.message),this.hls.trigger(g.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:I,mimeType:b})}}v&&this.hls.trigger(g.Events.BUFFER_CREATED,{tracks:this.tracks})},s._onSBUpdateStart=function(h){var p=this.operationQueue,m=p.current(h);m.onStart()},s._onSBUpdateEnd=function(h){var p=this.operationQueue,m=p.current(h);m.onComplete(),p.shiftAndExecuteNext(h)},s._onSBUpdateError=function(h,p){f.logger.error("[buffer-controller]: "+h+" SourceBuffer error",p),this.hls.trigger(g.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var m=this.operationQueue.current(h);m&&m.onError(p)},s.removeExecutor=function(h,p,m){var v=this.media,y=this.mediaSource,E=this.operationQueue,T=this.sourceBuffer,b=T[h];if(!v||!y||!b){f.logger.warn("[buffer-controller]: Attempting to remove from the "+h+" SourceBuffer, but it does not exist"),E.shiftAndExecuteNext(h);return}var w=Object(S.isFiniteNumber)(v.duration)?v.duration:Infinity,_=Object(S.isFiniteNumber)(y.duration)?y.duration:Infinity,I=Math.max(0,p),L=Math.min(m,w,_);L>I?(f.logger.log("[buffer-controller]: Removing ["+I+","+L+"] from the "+h+" SourceBuffer"),console.assert(!b.updating,h+" sourceBuffer must not be updating"),b.remove(I,L)):E.shiftAndExecuteNext(h)},s.appendExecutor=function(h,p){var m=this.operationQueue,v=this.sourceBuffer,y=v[p];if(!y){f.logger.warn("[buffer-controller]: Attempting to append to the "+p+" SourceBuffer, but it does not exist"),m.shiftAndExecuteNext(p);return}y.ended=!1,console.assert(!y.updating,p+" sourceBuffer must not be updating"),y.appendBuffer(h)},s.blockBuffers=function(h,p){var m=this;if(p===void 0&&(p=this.getSourceBufferTypes()),!p.length){f.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(h);return}var v=this.operationQueue,y=p.map(function(E){return v.appendBlocker(E)});Promise.all(y).then(function(){h(),p.forEach(function(E){var T=m.sourceBuffer[E];(!T||!T.updating)&&v.shiftAndExecuteNext(E)})})},s.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},s.addBufferListener=function(h,p,m){var v=this.sourceBuffer[h];if(!v)return;var y=m.bind(this,h);this.listeners[h].push({event:p,listener:y}),v.addEventListener(p,y)},s.removeBufferListeners=function(h){var p=this.sourceBuffer[h];if(!p)return;this.listeners[h].forEach(function(m){p.removeEventListener(m.event,m.listener)})},a}()},"./src/controller/buffer-operation-queue.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return g});var S=A("./src/utils/logger.ts"),g=function(){function f(o){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=o}var c=f.prototype;return c.append=function(r,i){var n=this.queues[i];n.push(r),n.length===1&&this.buffers[i]&&this.executeNext(i)},c.insertAbort=function(r,i){var n=this.queues[i];n.unshift(r),this.executeNext(i)},c.appendBlocker=function(r){var i,n=new Promise(function(l){i=l}),e={execute:i,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(e,r),n},c.executeNext=function(r){var i=this.buffers,n=this.queues,e=i[r],l=n[r];if(l.length){var t=l[0];try{t.execute()}catch(a){S.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),t.onError(a),(!e||!e.updating)&&(l.shift(),this.executeNext(r))}}},c.shiftAndExecuteNext=function(r){this.queues[r].shift(),this.executeNext(r)},c.current=function(r){return this.queues[r][0]},f}()},"./src/controller/cap-level-controller.ts":function(x,C,A){"use strict";A.r(C);var S=A("./src/events.ts");function g(o,r){for(var i=0;i<r.length;i++){var n=r[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}function f(o,r,i){return r&&g(o.prototype,r),i&&g(o,i),o}var c=function(){function o(i){this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.hls=void 0,this.streamController=void 0,this.clientRect=void 0,this.hls=i,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var r=o.prototype;return r.setStreamController=function(n){this.streamController=n},r.destroy=function(){this.unregisterListener(),this.hls.config.capLevelToPlayerSize&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null},r.registerListeners=function(){var n=this.hls;n.on(S.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),n.on(S.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.on(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.on(S.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.on(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},r.unregisterListener=function(){var n=this.hls;n.off(S.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),n.off(S.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.off(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.off(S.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.off(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},r.onFpsDropLevelCapping=function(n,e){o.isLevelAllowed(e.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(e.droppedLevel)},r.onMediaAttaching=function(n,e){this.media=e.media instanceof HTMLVideoElement?e.media:null},r.onManifestParsed=function(n,e){var l=this.hls;this.restrictedLevels=[],this.firstLevel=e.firstLevel,l.config.capLevelToPlayerSize&&e.video&&this.startCapping()},r.onBufferCodecs=function(n,e){var l=this.hls;l.config.capLevelToPlayerSize&&e.video&&this.startCapping()},r.onMediaDetaching=function(){this.stopCapping()},r.detectPlayerSize=function(){if(this.media&&this.mediaHeight>0&&this.mediaWidth>0){var n=this.hls.levels;if(n.length){var e=this.hls;e.autoLevelCapping=this.getMaxLevel(n.length-1),e.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}},r.getMaxLevel=function(n){var e=this,l=this.hls.levels;if(!l.length)return-1;var t=l.filter(function(a,s){return o.isLevelAllowed(s,e.restrictedLevels)&&s<=n});return this.clientRect=null,o.getMaxLevelByMediaSize(t,this.mediaWidth,this.mediaHeight)},r.startCapping=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()},r.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},r.getDimensions=function(){if(this.clientRect)return this.clientRect;var n=this.media,e={width:0,height:0};if(n){var l=n.getBoundingClientRect();e.width=l.width,e.height=l.height,!e.width&&!e.height&&(e.width=l.right-l.left||n.width||0,e.height=l.bottom-l.top||n.height||0)}return this.clientRect=e,e},o.isLevelAllowed=function(n,e){return e===void 0&&(e=[]),e.indexOf(n)===-1},o.getMaxLevelByMediaSize=function(n,e,l){if(!n||!n.length)return-1;for(var t=function(p,m){return m?p.width!==m.width||p.height!==m.height:!0},a=n.length-1,s=0;s<n.length;s+=1){var u=n[s];if((u.width>=e||u.height>=l)&&t(u,n[s+1])){a=s;break}}return a},f(o,[{key:"mediaWidth",get:function(){return this.getDimensions().width*o.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*o.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var n=1;try{n=self.devicePixelRatio}catch(e){}return n}}]),o}();C.default=c},"./src/controller/cmcd-controller.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return t});var S=A("./src/events.ts"),g=A("./src/types/cmcd.ts"),f=A("./src/utils/buffer-helper.ts"),c=A("./src/utils/logger.ts");function o(a,s){for(var u=0;u<s.length;u++){var h=s[u];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(a,h.key,h)}}function r(a,s,u){return s&&o(a.prototype,s),u&&o(a,u),a}function i(a,s){var u=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(u)return(u=u.call(a)).next.bind(u);if(Array.isArray(a)||(u=n(a))||s&&a&&typeof a.length=="number"){u&&(a=u);var h=0;return function(){return h>=a.length?{done:!0}:{done:!1,value:a[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.`)}function n(a,s){if(!a)return;if(typeof a=="string")return e(a,s);var u=Object.prototype.toString.call(a).slice(8,-1);if(u==="Object"&&a.constructor&&(u=a.constructor.name),u==="Map"||u==="Set")return Array.from(a);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return e(a,s)}function e(a,s){(s==null||s>a.length)&&(s=a.length);for(var u=0,h=new Array(s);u<s;u++)h[u]=a[u];return h}function l(){return l=Object.assign||function(a){for(var s=1;s<arguments.length;s++){var u=arguments[s];for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(a[h]=u[h])}return a},l.apply(this,arguments)}var t=function(){function a(u){var h=this;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(){h.initialized&&(h.starved=!0),h.buffering=!0},this.onPlaying=function(){h.initialized||(h.initialized=!0),h.buffering=!1},this.applyPlaylistData=function(v){try{h.apply(v,{ot:g.CMCDObjectType.MANIFEST,su:!h.initialized})}catch(y){c.logger.warn("Could not generate manifest CMCD data.",y)}},this.applyFragmentData=function(v){try{var y=v.frag,E=h.hls.levels[y.level],T=h.getObjectType(y),b={d:y.duration*1e3,ot:T};(T===g.CMCDObjectType.VIDEO||T===g.CMCDObjectType.AUDIO||T==g.CMCDObjectType.MUXED)&&(b.br=E.bitrate/1e3,b.tb=h.getTopBandwidth(T)/1e3,b.bl=h.getBufferLength(T)),h.apply(v,b)}catch(w){c.logger.warn("Could not generate segment CMCD data.",w)}},this.hls=u;var p=this.config=u.config,m=p.cmcd;m!=null&&(p.pLoader=this.createPlaylistLoader(),p.fLoader=this.createFragmentLoader(),this.sid=m.sessionId||a.uuid(),this.cid=m.contentId,this.useHeaders=m.useHeaders===!0,this.registerListeners())}var s=a.prototype;return s.registerListeners=function(){var h=this.hls;h.on(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.on(S.Events.MEDIA_DETACHED,this.onMediaDetached,this),h.on(S.Events.BUFFER_CREATED,this.onBufferCreated,this)},s.unregisterListeners=function(){var h=this.hls;h.off(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.off(S.Events.MEDIA_DETACHED,this.onMediaDetached,this),h.off(S.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},s.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},s.onMediaAttached=function(h,p){this.media=p.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},s.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},s.onBufferCreated=function(h,p){var m,v;this.audioBuffer=(m=p.tracks.audio)===null||m===void 0?void 0:m.buffer,this.videoBuffer=(v=p.tracks.video)===null||v===void 0?void 0:v.buffer},s.createData=function(){var h;return{v:g.CMCDVersion,sf:g.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(h=this.media)===null||h===void 0?void 0:h.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},s.apply=function(h,p){p===void 0&&(p={}),l(p,this.createData());var m=p.ot===g.CMCDObjectType.INIT||p.ot===g.CMCDObjectType.VIDEO||p.ot===g.CMCDObjectType.MUXED;if(this.starved&&m&&(p.bs=!0,p.su=!0,this.starved=!1),p.su==null&&(p.su=this.buffering),this.useHeaders){var v=a.toHeaders(p);if(!Object.keys(v).length)return;h.headers||(h.headers={}),l(h.headers,v)}else{var y=a.toQuery(p);if(!y)return;h.url=a.appendQueryToUri(h.url,y)}},s.getObjectType=function(h){var p=h.type;return p==="subtitle"?g.CMCDObjectType.TIMED_TEXT:h.sn==="initSegment"?g.CMCDObjectType.INIT:p==="audio"?g.CMCDObjectType.AUDIO:p==="main"?this.hls.audioTracks.length?g.CMCDObjectType.VIDEO:g.CMCDObjectType.MUXED:void 0},s.getTopBandwidth=function(h){var p=0,m,v=this.hls;if(h===g.CMCDObjectType.AUDIO)m=v.audioTracks;else{var y=v.maxAutoLevel,E=y>-1?y+1:v.levels.length;m=v.levels.slice(0,E)}for(var T=i(m),b;!(b=T()).done;){var w=b.value;w.bitrate>p&&(p=w.bitrate)}return p>0?p:NaN},s.getBufferLength=function(h){var p=this.hls.media,m=h===g.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!m||!p)return NaN;var v=f.BufferHelper.bufferInfo(m,p.currentTime,this.config.maxBufferHole);return v.len*1e3},s.createPlaylistLoader=function(){var h=this.config.pLoader,p=this.applyPlaylistData,m=h||this.config.loader;return function(){function v(E){this.loader=void 0,this.loader=new m(E)}var y=v.prototype;return y.destroy=function(){this.loader.destroy()},y.abort=function(){this.loader.abort()},y.load=function(T,b,w){p(T),this.loader.load(T,b,w)},r(v,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),v}()},s.createFragmentLoader=function(){var h=this.config.fLoader,p=this.applyFragmentData,m=h||this.config.loader;return function(){function v(E){this.loader=void 0,this.loader=new m(E)}var y=v.prototype;return y.destroy=function(){this.loader.destroy()},y.abort=function(){this.loader.abort()},y.load=function(T,b,w){p(T),this.loader.load(T,b,w)},r(v,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),v}()},a.uuid=function(){var h=URL.createObjectURL(new Blob),p=h.toString();return URL.revokeObjectURL(h),p.substr(p.lastIndexOf("/")+1)},a.serialize=function(h){for(var p=[],m=function(M){return!Number.isNaN(M)&&M!=null&&M!==""&&M!==!1},v=function(M){return Math.round(M)},y=function(M){return v(M/100)*100},E=function(M){return encodeURIComponent(M)},T={br:v,d:v,bl:y,dl:y,mtp:y,nor:E,rtp:y,tb:v},b=Object.keys(h||{}).sort(),w=i(b),_;!(_=w()).done;){var I=_.value,L=h[I];if(!m(L))continue;if(I==="v"&&L===1)continue;if(I=="pr"&&L===1)continue;var N=T[I];N&&(L=N(L));var D=typeof L,R=void 0;I==="ot"||I==="sf"||I==="st"?R=I+"="+L:D==="boolean"?R=I:D==="number"?R=I+"="+L:R=I+"="+JSON.stringify(L),p.push(R)}return p.join(",")},a.toHeaders=function(h){for(var p=Object.keys(h),m={},v=["Object","Request","Session","Status"],y=[{},{},{},{}],E={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},T=0,b=p;T<b.length;T++){var w=b[T],_=E[w]!=null?E[w]:1;y[_][w]=h[w]}for(var I=0;I<y.length;I++){var L=a.serialize(y[I]);L&&(m["CMCD-"+v[I]]=L)}return m},a.toQuery=function(h){return"CMCD="+encodeURIComponent(a.serialize(h))},a.appendQueryToUri=function(h,p){if(!p)return h;var m=h.includes("?")?"&":"?";return""+h+m+p},a}()},"./src/controller/eme-controller.ts":function(x,C,A){"use strict";A.r(C);var S=A("./src/events.ts"),g=A("./src/errors.ts"),f=A("./src/utils/logger.ts"),c=A("./src/utils/mediakeys-helper.ts");function o(t,a){for(var s=0;s<a.length;s++){var u=a[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function r(t,a,s){return a&&o(t.prototype,a),s&&o(t,s),t}var i=3,n=function(a,s,u){var h={audioCapabilities:[],videoCapabilities:[]};return a.forEach(function(p){h.audioCapabilities.push({contentType:'audio/mp4; codecs="'+p+'"',robustness:u.audioRobustness||""})}),s.forEach(function(p){h.videoCapabilities.push({contentType:'video/mp4; codecs="'+p+'"',robustness:u.videoRobustness||""})}),[h]},e=function(a,s,u,h){switch(a){case c.KeySystems.WIDEVINE:return n(s,u,h);default:throw new Error("Unknown key-system: "+a)}},l=function(){function t(s){this.hls=void 0,this._widevineLicenseUrl=void 0,this._licenseXhrSetup=void 0,this._licenseResponseCallback=void 0,this._emeEnabled=void 0,this._requestMediaKeySystemAccess=void 0,this._drmSystemOptions=void 0,this._config=void 0,this._mediaKeysList=[],this._media=null,this._hasSetMediaKeys=!1,this._requestLicenseFailureCount=0,this.mediaKeysPromise=null,this._onMediaEncrypted=this.onMediaEncrypted.bind(this),this.hls=s,this._config=s.config,this._widevineLicenseUrl=this._config.widevineLicenseUrl,this._licenseXhrSetup=this._config.licenseXhrSetup,this._licenseResponseCallback=this._config.licenseResponseCallback,this._emeEnabled=this._config.emeEnabled,this._requestMediaKeySystemAccess=this._config.requestMediaKeySystemAccessFunc,this._drmSystemOptions=this._config.drmSystemOptions,this._registerListeners()}var a=t.prototype;return a.destroy=function(){this._unregisterListeners(),this.hls=this._onMediaEncrypted=null,this._requestMediaKeySystemAccess=null},a._registerListeners=function(){this.hls.on(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(S.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(S.Events.MANIFEST_PARSED,this.onManifestParsed,this)},a._unregisterListeners=function(){this.hls.off(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(S.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(S.Events.MANIFEST_PARSED,this.onManifestParsed,this)},a.getLicenseServerUrl=function(u){switch(u){case c.KeySystems.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+u+'"')},a._attemptKeySystemAccess=function(u,h,p){var m=this,v=e(u,h,p,this._drmSystemOptions);f.logger.log("Requesting encrypted media key-system access");var y=this.requestMediaKeySystemAccess(u,v);this.mediaKeysPromise=y.then(function(E){return m._onMediaKeySystemAccessObtained(u,E)}),y.catch(function(E){f.logger.error('Failed to obtain key-system "'+u+'" access:',E)})},a._onMediaKeySystemAccessObtained=function(u,h){var p=this;f.logger.log('Access for key-system "'+u+'" obtained');var m={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:h,mediaKeySystemDomain:u};this._mediaKeysList.push(m);var v=Promise.resolve().then(function(){return h.createMediaKeys()}).then(function(y){return m.mediaKeys=y,f.logger.log('Media-keys created for key-system "'+u+'"'),p._onMediaKeysCreated(),y});return v.catch(function(y){f.logger.error("Failed to create media-keys:",y)}),v},a._onMediaKeysCreated=function(){var u=this;this._mediaKeysList.forEach(function(h){h.mediaKeysSession||(h.mediaKeysSession=h.mediaKeys.createSession(),u._onNewMediaKeySession(h.mediaKeysSession))})},a._onNewMediaKeySession=function(u){var h=this;f.logger.log("New key-system session "+u.sessionId),u.addEventListener("message",function(p){h._onKeySessionMessage(u,p.message)},!1)},a._onKeySessionMessage=function(u,h){f.logger.log("Got EME message event, creating license request"),this._requestLicense(h,function(p){f.logger.log("Received license data (length: "+(p&&p.byteLength)+"), updating key-session"),u.update(p)})},a.onMediaEncrypted=function(u){var h=this;if(f.logger.log('Media is encrypted using "'+u.initDataType+'" init data type'),!this.mediaKeysPromise){f.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),this.hls.trigger(S.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}var p=function(v){if(!h._media)return;h._attemptSetMediaKeys(v),h._generateRequestWithPreferredKeySession(u.initDataType,u.initData)};this.mediaKeysPromise.then(p).catch(p)},a._attemptSetMediaKeys=function(u){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var h=this._mediaKeysList[0];if(!h||!h.mediaKeys){f.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(S.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}f.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(h.mediaKeys),this._hasSetMediaKeys=!0}},a._generateRequestWithPreferredKeySession=function(u,h){var p=this,m=this._mediaKeysList[0];if(!m){f.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(S.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(m.mediaKeysSessionInitialized){f.logger.warn("Key-Session already initialized but requested again");return}var v=m.mediaKeysSession;if(!v){f.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(S.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!h){f.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(S.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}f.logger.log('Generating key-session request for "'+u+'" init data type'),m.mediaKeysSessionInitialized=!0,v.generateRequest(u,h).then(function(){f.logger.debug("Key-session generation succeeded")}).catch(function(y){f.logger.error("Error generating key-session request:",y),p.hls.trigger(S.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},a._createLicenseXhr=function(u,h,p){var m=new XMLHttpRequest;m.responseType="arraybuffer",m.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,m,u,h,p);var v=this._licenseXhrSetup;if(v)try{v.call(this.hls,m,u),v=void 0}catch(y){f.logger.error(y)}try{m.readyState||m.open("POST",u,!0),v&&v.call(this.hls,m,u)}catch(y){throw new Error("issue setting up KeySystem license XHR "+y)}return m},a._onLicenseRequestReadyStageChange=function(u,h,p,m){switch(u.readyState){case 4:if(u.status===200){this._requestLicenseFailureCount=0,f.logger.log("License request succeeded");var v=u.response,y=this._licenseResponseCallback;if(y)try{v=y.call(this.hls,u,h)}catch(T){f.logger.error(T)}m(v)}else{if(f.logger.error("License Request XHR failed ("+h+"). Status: "+u.status+" ("+u.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>i){this.hls.trigger(S.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var E=i-this._requestLicenseFailureCount+1;f.logger.warn("Retrying license request, "+E+" attempts left"),this._requestLicense(p,m)}break}},a._generateLicenseRequestChallenge=function(u,h){switch(u.mediaKeySystemDomain){case c.KeySystems.WIDEVINE:return h}throw new Error("unsupported key-system: "+u.mediaKeySystemDomain)},a._requestLicense=function(u,h){f.logger.log("Requesting content license for key-system");var p=this._mediaKeysList[0];if(!p){f.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(S.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var m=this.getLicenseServerUrl(p.mediaKeySystemDomain),v=this._createLicenseXhr(m,u,h);f.logger.log("Sending license request to URL: "+m);var y=this._generateLicenseRequestChallenge(p,u);v.send(y)}catch(E){f.logger.error("Failure requesting DRM license: "+E),this.hls.trigger(S.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},a.onMediaAttached=function(u,h){if(!this._emeEnabled)return;var p=h.media;this._media=p,p.addEventListener("encrypted",this._onMediaEncrypted)},a.onMediaDetached=function(){var u=this._media,h=this._mediaKeysList;if(!u)return;u.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(h.map(function(p){if(p.mediaKeysSession)return p.mediaKeysSession.close().catch(function(){})})).then(function(){return u.setMediaKeys(null)}).catch(function(){})},a.onManifestParsed=function(u,h){if(!this._emeEnabled)return;var p=h.levels.map(function(v){return v.audioCodec}).filter(function(v){return!!v}),m=h.levels.map(function(v){return v.videoCodec}).filter(function(v){return!!v});this._attemptKeySystemAccess(c.KeySystems.WIDEVINE,p,m)},r(t,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),t}();C.default=l},"./src/controller/fps-controller.ts":function(x,C,A){"use strict";A.r(C);var S=A("./src/events.ts"),g=A("./src/utils/logger.ts"),f=function(){function c(r){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=r,this.registerListeners()}var o=c.prototype;return o.setStreamController=function(i){this.streamController=i},o.registerListeners=function(){this.hls.on(S.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},o.unregisterListeners=function(){this.hls.off(S.Events.MEDIA_ATTACHING,this.onMediaAttaching)},o.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},o.onMediaAttaching=function(i,n){var e=this.hls.config;if(e.capLevelOnFPSDrop){var l=n.media instanceof self.HTMLVideoElement?n.media:null;this.media=l,l&&typeof l.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),e.fpsDroppedMonitoringPeriod)}},o.checkFPS=function(i,n,e){var l=performance.now();if(n){if(this.lastTime){var t=l-this.lastTime,a=e-this.lastDroppedFrames,s=n-this.lastDecodedFrames,u=1e3*a/t,h=this.hls;if(h.trigger(S.Events.FPS_DROP,{currentDropped:a,currentDecoded:s,totalDroppedFrames:e}),u>0&&a>h.config.fpsDroppedMonitoringThreshold*s){var p=h.currentLevel;g.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+p),p>0&&(h.autoLevelCapping===-1||h.autoLevelCapping>=p)&&(p=p-1,h.trigger(S.Events.FPS_DROP_LEVEL_CAPPING,{level:p,droppedLevel:h.currentLevel}),h.autoLevelCapping=p,this.streamController.nextLevelSwitch())}}this.lastTime=l,this.lastDroppedFrames=e,this.lastDecodedFrames=n}},o.checkFPSInterval=function(){var i=this.media;if(i)if(this.isVideoPlaybackQualityAvailable){var n=i.getVideoPlaybackQuality();this.checkFPS(i,n.totalVideoFrames,n.droppedVideoFrames)}else this.checkFPS(i,i.webkitDecodedFrameCount,i.webkitDroppedFrameCount)},c}();C.default=f},"./src/controller/fragment-finders.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"findFragmentByPDT",function(){return f}),A.d(C,"findFragmentByPTS",function(){return c}),A.d(C,"fragmentWithinToleranceTest",function(){return o}),A.d(C,"pdtWithinToleranceTest",function(){return r}),A.d(C,"findFragWithCC",function(){return i});var S=A("./src/polyfills/number.ts"),g=A("./src/utils/binary-search.ts");function f(n,e,l){if(e===null||!Array.isArray(n)||!n.length||!Object(S.isFiniteNumber)(e))return null;var t=n[0].programDateTime;if(e<(t||0))return null;var a=n[n.length-1].endProgramDateTime;if(e>=(a||0))return null;l=l||0;for(var s=0;s<n.length;++s){var u=n[s];if(r(e,l,u))return u}return null}function c(n,e,l,t){l===void 0&&(l=0),t===void 0&&(t=0);var a=null;if(n?a=e[n.sn-e[0].sn+1]||null:l===0&&e[0].start===0&&(a=e[0]),a&&o(l,t,a)===0)return a;var s=g.default.search(e,o.bind(null,l,t));return s||a}function o(n,e,l){n===void 0&&(n=0),e===void 0&&(e=0);var t=Math.min(e,l.duration+(l.deltaPTS?l.deltaPTS:0));return l.start+l.duration-t<=n?1:l.start-t>n&&l.start?-1:0}function r(n,e,l){var t=Math.min(e,l.duration+(l.deltaPTS?l.deltaPTS:0))*1e3,a=l.endProgramDateTime||0;return a-t>n}function i(n,e){return g.default.search(n,function(l){return l.cc<e?1:l.cc>e?-1:0})}},"./src/controller/fragment-tracker.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"FragmentState",function(){return f}),A.d(C,"FragmentTracker",function(){return c});var S=A("./src/events.ts"),g=A("./src/types/loader.ts"),f;(function(i){i.NOT_LOADED="NOT_LOADED",i.BACKTRACKED="BACKTRACKED",i.APPENDING="APPENDING",i.PARTIAL="PARTIAL",i.OK="OK"})(f||(f={}));var c=function(){function i(e){this.activeFragment=null,this.activeParts=null,this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hls=e,this._registerListeners()}var n=i.prototype;return n._registerListeners=function(){var l=this.hls;l.on(S.Events.BUFFER_APPENDED,this.onBufferAppended,this),l.on(S.Events.FRAG_BUFFERED,this.onFragBuffered,this),l.on(S.Events.FRAG_LOADED,this.onFragLoaded,this)},n._unregisterListeners=function(){var l=this.hls;l.off(S.Events.BUFFER_APPENDED,this.onBufferAppended,this),l.off(S.Events.FRAG_BUFFERED,this.onFragBuffered,this),l.off(S.Events.FRAG_LOADED,this.onFragLoaded,this)},n.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},n.getAppendedFrag=function(l,t){if(t===g.PlaylistLevelType.MAIN){var a=this.activeFragment,s=this.activeParts;if(!a)return null;if(s)for(var u=s.length;u--;){var h=s[u],p=h?h.end:a.appendedPTS;if(h.start<=l&&p!==void 0&&l<=p)return u>9&&(this.activeParts=s.slice(u-9)),h}else if(a.start<=l&&a.appendedPTS!==void 0&&l<=a.appendedPTS)return a}return this.getBufferedFrag(l,t)},n.getBufferedFrag=function(l,t){for(var a=this.fragments,s=Object.keys(a),u=s.length;u--;){var h=a[s[u]];if((h==null?void 0:h.body.type)===t&&h.buffered){var p=h.body;if(p.start<=l&&l<=p.end)return p}}return null},n.detectEvictedFragments=function(l,t,a){var s=this;Object.keys(this.fragments).forEach(function(u){var h=s.fragments[u];if(!h)return;if(!h.buffered){h.body.type===a&&s.removeFragment(h.body);return}var p=h.range[l];if(!p)return;p.time.some(function(m){var v=!s.isTimeBuffered(m.startPTS,m.endPTS,t);return v&&s.removeFragment(h.body),v})})},n.detectPartialFragments=function(l){var t=this,a=this.timeRanges,s=l.frag,u=l.part;if(!a||s.sn==="initSegment")return;var h=r(s),p=this.fragments[h];if(!p)return;Object.keys(a).forEach(function(m){var v=s.elementaryStreams[m];if(!v)return;var y=a[m],E=u!==null||v.partial===!0;p.range[m]=t.getBufferedTimes(s,u,E,y)}),p.backtrack=p.loaded=null,Object.keys(p.range).length?p.buffered=!0:this.removeFragment(p.body)},n.fragBuffered=function(l){var t=r(l),a=this.fragments[t];a&&(a.backtrack=a.loaded=null,a.buffered=!0)},n.getBufferedTimes=function(l,t,a,s){for(var u={time:[],partial:a},h=t?t.start:l.start,p=t?t.end:l.end,m=l.minEndPTS||p,v=l.maxStartPTS||h,y=0;y<s.length;y++){var E=s.start(y)-this.bufferPadding,T=s.end(y)+this.bufferPadding;if(v>=E&&m<=T){u.time.push({startPTS:Math.max(h,s.start(y)),endPTS:Math.min(p,s.end(y))});break}else if(h<T&&p>E)u.partial=!0,u.time.push({startPTS:Math.max(h,s.start(y)),endPTS:Math.min(p,s.end(y))});else if(p<=E)break}return u},n.getPartialFragment=function(l){var t=null,a,s,u,h=0,p=this.bufferPadding,m=this.fragments;return Object.keys(m).forEach(function(v){var y=m[v];if(!y)return;o(y)&&(s=y.body.start-p,u=y.body.end+p,l>=s&&l<=u&&(a=Math.min(l-s,u-l),h<=a&&(t=y.body,h=a)))}),t},n.getState=function(l){var t=r(l),a=this.fragments[t];return a?a.buffered?o(a)?f.PARTIAL:f.OK:a.backtrack?f.BACKTRACKED:f.APPENDING:f.NOT_LOADED},n.backtrack=function(l,t){var a=r(l),s=this.fragments[a];if(!s||s.backtrack)return null;var u=s.backtrack=t||s.loaded;return s.loaded=null,u},n.getBacktrackData=function(l){var t=r(l),a=this.fragments[t];if(a){var s,u=a.backtrack;if(u!=null&&(s=u.payload)!==null&&s!==void 0&&s.byteLength)return u;this.removeFragment(l)}return null},n.isTimeBuffered=function(l,t,a){for(var s,u,h=0;h<a.length;h++){if(s=a.start(h)-this.bufferPadding,u=a.end(h)+this.bufferPadding,l>=s&&t<=u)return!0;if(t<=s)return!1}return!1},n.onFragLoaded=function(l,t){var a=t.frag,s=t.part;if(a.sn==="initSegment"||a.bitrateTest||s)return;var u=r(a);this.fragments[u]={body:a,loaded:t,backtrack:null,buffered:!1,range:Object.create(null)}},n.onBufferAppended=function(l,t){var a=this,s=t.frag,u=t.part,h=t.timeRanges;if(s.type===g.PlaylistLevelType.MAIN)if(this.activeFragment=s,u){var p=this.activeParts;p||(this.activeParts=p=[]),p.push(u)}else this.activeParts=null;this.timeRanges=h,Object.keys(h).forEach(function(m){var v=h[m];if(a.detectEvictedFragments(m,v),!u)for(var y=0;y<v.length;y++)s.appendedPTS=Math.max(v.end(y),s.appendedPTS||0)})},n.onFragBuffered=function(l,t){this.detectPartialFragments(t)},n.hasFragment=function(l){var t=r(l);return!!this.fragments[t]},n.removeFragmentsInRange=function(l,t,a){var s=this;Object.keys(this.fragments).forEach(function(u){var h=s.fragments[u];if(!h)return;if(h.buffered){var p=h.body;p.type===a&&p.start<t&&p.end>l&&s.removeFragment(p)}})},n.removeFragment=function(l){var t=r(l);l.stats.loaded=0,l.clearElementaryStreamInfo(),delete this.fragments[t]},n.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},i}();function o(i){var n,e;return i.buffered&&(((n=i.range.video)===null||n===void 0?void 0:n.partial)||((e=i.range.audio)===null||e===void 0?void 0:e.partial))}function r(i){return i.type+"_"+i.level+"_"+i.urlId+"_"+i.sn}},"./src/controller/gap-controller.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"STALL_MINIMUM_DURATION_MS",function(){return o}),A.d(C,"MAX_START_GAP_JUMP",function(){return r}),A.d(C,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return i}),A.d(C,"SKIP_BUFFER_RANGE_START",function(){return n}),A.d(C,"default",function(){return e});var S=A("./src/utils/buffer-helper.ts"),g=A("./src/errors.ts"),f=A("./src/events.ts"),c=A("./src/utils/logger.ts"),o=250,r=2,i=.1,n=.05,e=function(){function l(a,s,u,h){this.config=void 0,this.media=void 0,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=a,this.media=s,this.fragmentTracker=u,this.hls=h}var t=l.prototype;return t.destroy=function(){this.hls=this.fragmentTracker=this.media=null},t.poll=function(s){var u=this.config,h=this.media,p=this.stalled,m=h.currentTime,v=h.seeking,y=this.seeking&&!v,E=!this.seeking&&v;if(this.seeking=v,m!==s){if(this.moved=!0,p!==null){if(this.stallReported){var T=self.performance.now()-p;c.logger.warn("playback not stuck anymore @"+m+", after "+Math.round(T)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((E||y)&&(this.stalled=null),h.paused||h.ended||h.playbackRate===0||!S.BufferHelper.getBuffered(h).length)return;var b=S.BufferHelper.bufferInfo(h,m,0),w=b.len>0,_=b.nextStart||0;if(!w&&!_)return;if(v){var I=b.len>r,L=!_||_-m>r&&!this.fragmentTracker.getPartialFragment(m);if(I||L)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var N,D=Math.max(_,b.start||0)-m,R=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,k=R==null||((N=R.details)===null||N===void 0)?void 0:N.live,M=k?R.details.targetduration*2:r;if(D>0&&D<=M){this._trySkipBufferHole(null);return}}var U=self.performance.now();if(p===null){this.stalled=U;return}var B=U-p;!v&&B>=o&&this._reportStall(b.len);var j=S.BufferHelper.bufferInfo(h,m,u.maxBufferHole);this._tryFixBufferStall(j,B)},t._tryFixBufferStall=function(s,u){var h=this.config,p=this.fragmentTracker,m=this.media,v=m.currentTime,y=p.getPartialFragment(v);if(y){var E=this._trySkipBufferHole(y);if(E)return}s.len>h.maxBufferHole&&u>h.highBufferWatchdogPeriod*1e3&&(c.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},t._reportStall=function(s){var u=this.hls,h=this.media,p=this.stallReported;p||(this.stallReported=!0,c.logger.warn("Playback stalling at @"+h.currentTime+" due to low buffer (buffer="+s+")"),u.trigger(f.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:s}))},t._trySkipBufferHole=function(s){for(var u=this.config,h=this.hls,p=this.media,m=p.currentTime,v=0,y=S.BufferHelper.getBuffered(p),E=0;E<y.length;E++){var T=y.start(E);if(m+u.maxBufferHole>=v&&m<T){var b=Math.max(T+n,p.currentTime+i);return c.logger.warn("skipping hole, adjusting currentTime from "+m+" to "+b),this.moved=!0,this.stalled=null,p.currentTime=b,s&&h.trigger(f.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+m+" to "+b,frag:s}),b}v=y.end(E)}return 0},t._tryNudgeBuffer=function(){var s=this.config,u=this.hls,h=this.media,p=h.currentTime,m=(this.nudgeRetry||0)+1;if(this.nudgeRetry=m,m<s.nudgeMaxRetry){var v=p+m*s.nudgeOffset;c.logger.warn("Nudging 'currentTime' from "+p+" to "+v),h.currentTime=v,u.trigger(f.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else c.logger.error("Playhead still not moving while enough data buffered @"+p+" after "+s.nudgeMaxRetry+" nudges"),u.trigger(f.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},l}()},"./src/controller/id3-track-controller.ts":function(x,C,A){"use strict";A.r(C);var S=A("./src/events.ts"),g=A("./src/utils/texttrack-utils.ts"),f=A("./src/demux/id3.ts"),c=.25,o=function(){function r(n){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=n,this._registerListeners()}var i=r.prototype;return i.destroy=function(){this._unregisterListeners()},i._registerListeners=function(){var e=this.hls;e.on(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(S.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(S.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},i._unregisterListeners=function(){var e=this.hls;e.off(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(S.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(S.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},i.onMediaAttached=function(e,l){this.media=l.media},i.onMediaDetaching=function(){if(!this.id3Track)return;Object(g.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},i.getID3Track=function(e){if(!this.media)return;for(var l=0;l<e.length;l++){var t=e[l];if(t.kind==="metadata"&&t.label==="id3")return Object(g.sendAddTrackEvent)(t,this.media),t}return this.media.addTextTrack("metadata","id3")},i.onFragParsingMetadata=function(e,l){if(!this.media)return;var t=l.frag,a=l.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var s=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,u=0;u<a.length;u++){var h=f.getID3Frames(a[u].data);if(h){var p=a[u].pts,m=u<a.length-1?a[u+1].pts:t.end,v=m-p;v<=0&&(m=p+c);for(var y=0;y<h.length;y++){var E=h[y];if(!f.isTimeStampFrame(E)){var T=new s(p,m,"");T.value=E,this.id3Track.addCue(T)}}}}},i.onBufferFlushing=function(e,l){var t=l.startOffset,a=l.endOffset,s=l.type;if(!s||s==="audio"){var u=this.id3Track;u&&Object(g.removeCuesInRange)(u,t,a)}},r}();C.default=o},"./src/controller/latency-controller.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return r});var S=A("./src/errors.ts"),g=A("./src/events.ts"),f=A("./src/utils/logger.ts");function c(i,n){for(var e=0;e<n.length;e++){var l=n[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(i,l.key,l)}}function o(i,n,e){return n&&c(i.prototype,n),e&&c(i,e),i}var r=function(){function i(e){var l=this;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=e,this.config=e.config,this.registerListeners()}var n=i.prototype;return n.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},n.registerListeners=function(){this.hls.on(g.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(g.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(g.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(g.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(g.Events.ERROR,this.onError,this)},n.unregisterListeners=function(){this.hls.off(g.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(g.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(g.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(g.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(g.Events.ERROR,this.onError)},n.onMediaAttached=function(l,t){this.media=t.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)},n.onMediaDetaching=function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)},n.onManifestLoading=function(){this.levelDetails=null,this._latency=null,this.stallCount=0},n.onLevelUpdated=function(l,t){var a=t.details;this.levelDetails=a,a.advanced&&this.timeupdate(),!a.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)},n.onError=function(l,t){if(t.details!==S.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,f.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},n.timeupdate=function(){var l=this.media,t=this.levelDetails;if(!l||!t)return;this.currentTime=l.currentTime;var a=this.computeLatency();if(a===null)return;this._latency=a;var s=this.config,u=s.lowLatencyMode,h=s.maxLiveSyncPlaybackRate;if(!u||h===1)return;var p=this.targetLatency;if(p===null)return;var m=a-p,v=Math.min(this.maxLatency,p+t.targetduration),y=m<v;if(t.live&&y&&m>.05&&this.forwardBufferLength>1){var E=Math.min(2,Math.max(1,h)),T=Math.round(2/(1+Math.exp(-.75*m-this.edgeStalled))*20)/20;l.playbackRate=Math.min(E,Math.max(1,T))}else l.playbackRate!==1&&l.playbackRate!==0&&(l.playbackRate=1)},n.estimateLiveEdge=function(){var l=this.levelDetails;return l===null?null:l.edge+l.age},n.computeLatency=function(){var l=this.estimateLiveEdge();return l===null?null:l-this.currentTime},o(i,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var l=this.config,t=this.levelDetails;return l.liveMaxLatencyDuration!==void 0?l.liveMaxLatencyDuration:t?l.liveMaxLatencyDurationCount*t.targetduration:0}},{key:"targetLatency",get:function(){var l=this.levelDetails;if(l===null)return null;var t=l.holdBack,a=l.partHoldBack,s=l.targetduration,u=this.config,h=u.liveSyncDuration,p=u.liveSyncDurationCount,m=u.lowLatencyMode,v=this.hls.userConfig,y=m&&a||t;(v.liveSyncDuration||v.liveSyncDurationCount||y===0)&&(y=h!==void 0?h:p*s);var E=s,T=1;return y+Math.min(this.stallCount*T,E)}},{key:"liveSyncPosition",get:function(){var l=this.estimateLiveEdge(),t=this.targetLatency,a=this.levelDetails;if(l===null||t===null||a===null)return null;var s=a.edge,u=l-t-this.edgeStalled,h=s-a.totalduration,p=s-(this.config.lowLatencyMode&&a.partTarget||a.targetduration);return Math.min(Math.max(h,u),p)}},{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 t=(this.config.lowLatencyMode&&l.partTarget||l.targetduration)*3;return Math.max(l.age-t,0)}},{key:"forwardBufferLength",get:function(){var l=this.media,t=this.levelDetails;if(!l||!t)return 0;var a=l.buffered.length;return a?l.buffered.end(a-1):t.edge-this.currentTime}}]),i}()},"./src/controller/level-controller.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return u});var S=A("./src/types/level.ts"),g=A("./src/events.ts"),f=A("./src/errors.ts"),c=A("./src/utils/codecs.ts"),o=A("./src/controller/level-helper.ts"),r=A("./src/controller/base-playlist-controller.ts"),i=A("./src/types/loader.ts");function n(){return n=Object.assign||function(h){for(var p=1;p<arguments.length;p++){var m=arguments[p];for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(h[v]=m[v])}return h},n.apply(this,arguments)}function e(h,p){for(var m=0;m<p.length;m++){var v=p[m];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(h,v.key,v)}}function l(h,p,m){return p&&e(h.prototype,p),m&&e(h,m),h}function t(h,p){h.prototype=Object.create(p.prototype),h.prototype.constructor=h,a(h,p)}function a(h,p){return a=Object.setPrototypeOf||function(v,y){return v.__proto__=y,v},a(h,p)}var s=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),u=function(h){t(p,h);function p(v){var y;return y=h.call(this,v,"[level-controller]")||this,y._levels=[],y._firstLevel=-1,y._startLevel=void 0,y.currentLevelIndex=-1,y.manualLevelIndex=-1,y.onParsedComplete=void 0,y._registerListeners(),y}var m=p.prototype;return m._registerListeners=function(){var y=this.hls;y.on(g.Events.MANIFEST_LOADED,this.onManifestLoaded,this),y.on(g.Events.LEVEL_LOADED,this.onLevelLoaded,this),y.on(g.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),y.on(g.Events.FRAG_LOADED,this.onFragLoaded,this),y.on(g.Events.ERROR,this.onError,this)},m._unregisterListeners=function(){var y=this.hls;y.off(g.Events.MANIFEST_LOADED,this.onManifestLoaded,this),y.off(g.Events.LEVEL_LOADED,this.onLevelLoaded,this),y.off(g.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),y.off(g.Events.FRAG_LOADED,this.onFragLoaded,this),y.off(g.Events.ERROR,this.onError,this)},m.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,h.prototype.destroy.call(this)},m.startLoad=function(){var y=this._levels;y.forEach(function(E){E.loadError=0}),h.prototype.startLoad.call(this)},m.onManifestLoaded=function(y,E){var T=[],b=[],w=[],_,I={},L,N=!1,D=!1,R=!1;if(E.levels.forEach(function(B){var j=B.attrs;N=N||!!(B.width&&B.height),D=D||!!B.videoCodec,R=R||!!B.audioCodec,s&&B.audioCodec&&B.audioCodec.indexOf("mp4a.40.34")!==-1&&(B.audioCodec=void 0);var W=B.bitrate+"-"+B.attrs.RESOLUTION+"-"+B.attrs.CODECS;L=I[W],L?L.url.push(B.url):(L=new S.Level(B),I[W]=L,T.push(L)),j&&(j.AUDIO&&Object(o.addGroupId)(L,"audio",j.AUDIO),j.SUBTITLES&&Object(o.addGroupId)(L,"text",j.SUBTITLES))}),(N||D)&&R&&(T=T.filter(function(B){var j=B.videoCodec,W=B.width,V=B.height;return!!j||!!(W&&V)})),T=T.filter(function(B){var j=B.audioCodec,W=B.videoCodec;return(!j||Object(c.isCodecSupportedInMp4)(j,"audio"))&&(!W||Object(c.isCodecSupportedInMp4)(W,"video"))}),E.audioTracks&&(b=E.audioTracks.filter(function(B){return!B.audioCodec||Object(c.isCodecSupportedInMp4)(B.audioCodec,"audio")}),Object(o.assignTrackIdsByGroup)(b)),E.subtitles&&(w=E.subtitles,Object(o.assignTrackIdsByGroup)(w)),T.length>0){_=T[0].bitrate,T.sort(function(B,j){return B.bitrate-j.bitrate}),this._levels=T;for(var k=0;k<T.length;k++)if(T[k].bitrate===_){this._firstLevel=k,this.log("manifest loaded, "+T.length+" level(s) found, first bitrate: "+_);break}var M=R&&!D,U={levels:T,audioTracks:b,subtitleTracks:w,firstLevel:this._firstLevel,stats:E.stats,audio:R,video:D,altAudio:!M&&b.some(function(B){return!!B.url})};this.hls.trigger(g.Events.MANIFEST_PARSED,U),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(g.Events.ERROR,{type:f.ErrorTypes.MEDIA_ERROR,details:f.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:E.url,reason:"no level with compatible codecs found in manifest"})},m.onError=function(y,E){if(h.prototype.onError.call(this,y,E),E.fatal)return;var T=E.context,b=this._levels[this.currentLevelIndex];if(T&&(T.type===i.PlaylistContextType.AUDIO_TRACK&&b.audioGroupIds&&T.groupId===b.audioGroupIds[b.urlId]||T.type===i.PlaylistContextType.SUBTITLE_TRACK&&b.textGroupIds&&T.groupId===b.textGroupIds[b.urlId])){this.redundantFailover(this.currentLevelIndex);return}var w=!1,_=!0,I;switch(E.details){case f.ErrorDetails.FRAG_LOAD_ERROR:case f.ErrorDetails.FRAG_LOAD_TIMEOUT:case f.ErrorDetails.KEY_LOAD_ERROR:case f.ErrorDetails.KEY_LOAD_TIMEOUT:if(E.frag){var L=this._levels[E.frag.level];L?(L.fragmentError++,L.fragmentError>this.hls.config.fragLoadingMaxRetry&&(I=E.frag.level)):I=E.frag.level}break;case f.ErrorDetails.LEVEL_LOAD_ERROR:case f.ErrorDetails.LEVEL_LOAD_TIMEOUT:T&&(T.deliveryDirectives&&(_=!1),I=T.level),w=!0;break;case f.ErrorDetails.REMUX_ALLOC_ERROR:I=E.level,w=!0;break}I!==void 0&&this.recoverLevel(E,I,w,_)},m.recoverLevel=function(y,E,T,b){var w=y.details,_=this._levels[E];if(_.loadError++,T){var I=this.retryLoadingOrFail(y);if(I)y.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(b){var L=_.url.length;if(L>1&&_.loadError<L)y.levelRetry=!0,this.redundantFailover(E);else if(this.manualLevelIndex===-1){var N=E===0?this._levels.length-1:E-1;this.currentLevelIndex!==N&&this._levels[N].loadError===0&&(this.warn(w+": switch to "+N),y.levelRetry=!0,this.hls.nextAutoLevel=N)}}},m.redundantFailover=function(y){var E=this._levels[y],T=E.url.length;if(T>1){var b=(E.urlId+1)%T;this.warn("Switching to redundant URL-id "+b),this._levels.forEach(function(w){w.urlId=b}),this.level=y}},m.onFragLoaded=function(y,E){var T=E.frag;if(T!==void 0&&T.type===i.PlaylistLevelType.MAIN){var b=this._levels[T.level];b!==void 0&&(b.fragmentError=0,b.loadError=0)}},m.onLevelLoaded=function(y,E){var T,b=E.level,w=E.details,_=this._levels[b];if(!_){var I;this.warn("Invalid level index "+b),(I=E.deliveryDirectives)!==null&&I!==void 0&&I.skip&&(w.deltaUpdateFailed=!0);return}b===this.currentLevelIndex?(_.fragmentError===0&&(_.loadError=0,this.retryCount=0),this.playlistLoaded(b,E,_.details)):(T=E.deliveryDirectives)!==null&&T!==void 0&&T.skip&&(w.deltaUpdateFailed=!0)},m.onAudioTrackSwitched=function(y,E){var T=this.hls.levels[this.currentLevelIndex];if(!T)return;if(T.audioGroupIds){for(var b=-1,w=this.hls.audioTracks[E.id].groupId,_=0;_<T.audioGroupIds.length;_++)if(T.audioGroupIds[_]===w){b=_;break}b!==T.urlId&&(T.urlId=b,this.startLoad())}},m.loadPlaylist=function(y){var E=this.currentLevelIndex,T=this._levels[E];if(this.canLoad&&T&&T.url.length>0){var b=T.urlId,w=T.url[b];if(y)try{w=y.addDirectives(w)}catch(_){this.warn("Could not construct new URL with HLS Delivery Directives: "+_)}this.log("Attempt loading level index "+E+(y?" at sn "+y.msn+" part "+y.part:"")+" with URL-id "+b+" "+w),this.clearTimer(),this.hls.trigger(g.Events.LEVEL_LOADING,{url:w,level:E,id:b,deliveryDirectives:y||null})}},m.removeLevel=function(y,E){var T=function(_,I){return I!==E},b=this._levels.filter(function(w,_){return _!==y?!0:w.url.length>1&&E!==void 0?(w.url=w.url.filter(T),w.audioGroupIds&&(w.audioGroupIds=w.audioGroupIds.filter(T)),w.textGroupIds&&(w.textGroupIds=w.textGroupIds.filter(T)),w.urlId=0,!0):!1}).map(function(w,_){var I=w.details;return I!=null&&I.fragments&&I.fragments.forEach(function(L){L.level=_}),w});this._levels=b,this.hls.trigger(g.Events.LEVELS_UPDATED,{levels:b})},l(p,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(y){var E,T=this._levels;if(T.length===0)return;if(this.currentLevelIndex===y&&(E=T[y])!==null&&E!==void 0&&E.details)return;if(y<0||y>=T.length){var b=y<0;if(this.hls.trigger(g.Events.ERROR,{type:f.ErrorTypes.OTHER_ERROR,details:f.ErrorDetails.LEVEL_SWITCH_ERROR,level:y,fatal:b,reason:"invalid level idx"}),b)return;y=Math.min(y,T.length-1)}this.clearTimer();var w=this.currentLevelIndex,_=T[w],I=T[y];this.log("switching to level "+y+" from "+w),this.currentLevelIndex=y;var L=n({},I,{level:y,maxBitrate:I.maxBitrate,uri:I.uri,urlId:I.urlId});delete L._urlId,this.hls.trigger(g.Events.LEVEL_SWITCHING,L);var N=I.details;if(!N||N.live){var D=this.switchParams(I.uri,_==null?void 0:_.details);this.loadPlaylist(D)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(y){this.manualLevelIndex=y,this._startLevel===void 0&&(this._startLevel=y),y!==-1&&(this.level=y)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(y){this._firstLevel=y}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var y=this.hls.config.startLevel;return y!==void 0?y:this._firstLevel}else return this._startLevel},set:function(y){this._startLevel=y}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(y){this.level=y,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=y)}}]),p}(r.default)},"./src/controller/level-helper.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"addGroupId",function(){return f}),A.d(C,"assignTrackIdsByGroup",function(){return c}),A.d(C,"updatePTS",function(){return o}),A.d(C,"updateFragPTSDTS",function(){return i}),A.d(C,"mergeDetails",function(){return n}),A.d(C,"mapPartIntersection",function(){return e}),A.d(C,"mapFragmentIntersection",function(){return l}),A.d(C,"adjustSliding",function(){return t}),A.d(C,"addSliding",function(){return a}),A.d(C,"computeReloadInterval",function(){return s}),A.d(C,"getFragmentWithSN",function(){return u}),A.d(C,"getPartWith",function(){return h});var S=A("./src/polyfills/number.ts"),g=A("./src/utils/logger.ts");function f(p,m,v){switch(m){case"audio":p.audioGroupIds||(p.audioGroupIds=[]),p.audioGroupIds.push(v);break;case"text":p.textGroupIds||(p.textGroupIds=[]),p.textGroupIds.push(v);break}}function c(p){var m={};p.forEach(function(v){var y=v.groupId||"";v.id=m[y]=m[y]||0,m[y]++})}function o(p,m,v){var y=p[m],E=p[v];r(y,E)}function r(p,m){var v=m.startPTS;if(Object(S.isFiniteNumber)(v)){var y=0,E;m.sn>p.sn?(y=v-p.start,E=p):(y=p.start-v,E=m),E.duration!==y&&(E.duration=y)}else if(m.sn>p.sn){var T=p.cc===m.cc;T&&p.minEndPTS?m.start=p.start+(p.minEndPTS-p.start):m.start=p.start+p.duration}else m.start=Math.max(p.start-m.duration,0)}function i(p,m,v,y,E,T){var b=y-v;b<=0&&(g.logger.warn("Fragment should have a positive duration",m),y=v+m.duration,T=E+m.duration);var w=v,_=y,I=m.startPTS,L=m.endPTS;if(Object(S.isFiniteNumber)(I)){var N=Math.abs(I-v);Object(S.isFiniteNumber)(m.deltaPTS)?m.deltaPTS=Math.max(N,m.deltaPTS):m.deltaPTS=N,w=Math.max(v,I),v=Math.min(v,I),E=Math.min(E,m.startDTS),_=Math.min(y,L),y=Math.max(y,L),T=Math.max(T,m.endDTS)}m.duration=y-v;var D=v-m.start;m.appendedPTS=y,m.start=m.startPTS=v,m.maxStartPTS=w,m.startDTS=E,m.endPTS=y,m.minEndPTS=_,m.endDTS=T;var R=m.sn;if(!p||R<p.startSN||R>p.endSN)return 0;var k,M=R-p.startSN,U=p.fragments;for(U[M]=m,k=M;k>0;k--)r(U[k],U[k-1]);for(k=M;k<U.length-1;k++)r(U[k],U[k+1]);return p.fragmentHint&&r(U[U.length-1],p.fragmentHint),p.PTSKnown=p.alignedSliding=!0,D}function n(p,m){for(var v=null,y=p.fragments,E=y.length-1;E>=0;E--){var T=y[E].initSegment;if(T){v=T;break}}p.fragmentHint&&delete p.fragmentHint.endPTS;var b=0,w;if(l(p,m,function(k,M){k.relurl&&(b=k.cc-M.cc),Object(S.isFiniteNumber)(k.startPTS)&&Object(S.isFiniteNumber)(k.endPTS)&&(M.start=M.startPTS=k.startPTS,M.startDTS=k.startDTS,M.appendedPTS=k.appendedPTS,M.maxStartPTS=k.maxStartPTS,M.endPTS=k.endPTS,M.endDTS=k.endDTS,M.minEndPTS=k.minEndPTS,M.duration=k.endPTS-k.startPTS,M.duration&&(w=M),m.PTSKnown=m.alignedSliding=!0),M.elementaryStreams=k.elementaryStreams,M.loader=k.loader,M.stats=k.stats,M.urlId=k.urlId,k.initSegment&&(M.initSegment=k.initSegment,v=k.initSegment)}),v){var _=m.fragmentHint?m.fragments.concat(m.fragmentHint):m.fragments;_.forEach(function(k){var M;(!k.initSegment||k.initSegment.relurl===((M=v)===null||M===void 0?void 0:M.relurl))&&(k.initSegment=v)})}if(m.skippedSegments&&(m.deltaUpdateFailed=m.fragments.some(function(k){return!k}),m.deltaUpdateFailed)){g.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var I=m.skippedSegments;I--;)m.fragments.shift();m.startSN=m.fragments[0].sn,m.startCC=m.fragments[0].cc}var L=m.fragments;if(b){g.logger.warn("discontinuity sliding from playlist, take drift into account");for(var N=0;N<L.length;N++)L[N].cc+=b}m.skippedSegments&&(m.startCC=m.fragments[0].cc),e(p.partList,m.partList,function(k,M){M.elementaryStreams=k.elementaryStreams,M.stats=k.stats}),w?i(m,w,w.startPTS,w.endPTS,w.startDTS,w.endDTS):t(p,m),L.length&&(m.totalduration=m.edge-L[0].start),m.driftStartTime=p.driftStartTime,m.driftStart=p.driftStart;var D=m.advancedDateTime;if(m.advanced&&D){var R=m.edge;m.driftStart||(m.driftStartTime=D,m.driftStart=R),m.driftEndTime=D,m.driftEnd=R}else m.driftEndTime=p.driftEndTime,m.driftEnd=p.driftEnd,m.advancedDateTime=p.advancedDateTime}function e(p,m,v){if(p&&m)for(var y=0,E=0,T=p.length;E<=T;E++){var b=p[E],w=m[E+y];b&&w&&b.index===w.index&&b.fragment.sn===w.fragment.sn?v(b,w):y--}}function l(p,m,v){for(var y=m.skippedSegments,E=Math.max(p.startSN,m.startSN)-m.startSN,T=(p.fragmentHint?1:0)+(y?m.endSN:Math.min(p.endSN,m.endSN))-m.startSN,b=m.startSN-p.startSN,w=m.fragmentHint?m.fragments.concat(m.fragmentHint):m.fragments,_=p.fragmentHint?p.fragments.concat(p.fragmentHint):p.fragments,I=E;I<=T;I++){var L=_[b+I],N=w[I];y&&!N&&I<y&&(N=m.fragments[I]=L),L&&N&&v(L,N)}}function t(p,m){var v=m.startSN+m.skippedSegments-p.startSN,y=p.fragments;if(v<0||v>=y.length)return;a(m,y[v].start)}function a(p,m){if(m){for(var v=p.fragments,y=p.skippedSegments;y<v.length;y++)v[y].start+=m;p.fragmentHint&&(p.fragmentHint.start+=m)}}function s(p,m){var v=1e3*p.levelTargetDuration,y=v/2,E=p.age,T=E>0&&E<v*3,b=m.loading.end-m.loading.start,w,_=p.availabilityDelay;if(p.updated===!1)if(T){var I=333*p.misses;w=Math.max(Math.min(y,b*2),I),p.availabilityDelay=(p.availabilityDelay||0)+w}else w=y;else T?(_=Math.min(_||v/2,E),p.availabilityDelay=_,w=_+v-E):w=v-b;return Math.round(w)}function u(p,m,v){if(!p||!p.details)return null;var y=p.details,E=y.fragments[m-y.startSN];return E||(E=y.fragmentHint,E&&E.sn===m?E:m<y.startSN&&v&&v.sn===m?v:null)}function h(p,m,v){if(!p||!p.details)return null;var y=p.details.partList;if(y)for(var E=y.length;E--;){var T=y[E];if(T.index===v&&T.fragment.sn===m)return T}return null}},"./src/controller/stream-controller.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return y});var S=A("./src/polyfills/number.ts"),g=A("./src/controller/base-stream-controller.ts"),f=A("./src/is-supported.ts"),c=A("./src/events.ts"),o=A("./src/utils/buffer-helper.ts"),r=A("./src/controller/fragment-tracker.ts"),i=A("./src/types/loader.ts"),n=A("./src/loader/fragment.ts"),e=A("./src/demux/transmuxer-interface.ts"),l=A("./src/types/transmuxer.ts"),t=A("./src/controller/gap-controller.ts"),a=A("./src/errors.ts"),s=A("./src/utils/logger.ts");function u(E,T){for(var b=0;b<T.length;b++){var w=T[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(E,w.key,w)}}function h(E,T,b){return T&&u(E.prototype,T),b&&u(E,b),E}function p(E,T){E.prototype=Object.create(T.prototype),E.prototype.constructor=E,m(E,T)}function m(E,T){return m=Object.setPrototypeOf||function(w,_){return w.__proto__=_,w},m(E,T)}var v=100,y=function(E){p(T,E);function T(w,_){var I;return I=E.call(this,w,_,"[stream-controller]")||this,I.audioCodecSwap=!1,I.gapController=null,I.level=-1,I._forceStartLoad=!1,I.altAudio=!1,I.audioOnly=!1,I.fragPlaying=null,I.onvplaying=null,I.onvseeked=null,I.fragLastKbps=0,I.stalled=!1,I.couldBacktrack=!1,I.audioCodecSwitch=!1,I.videoBuffer=null,I._registerListeners(),I}var b=T.prototype;return b._registerListeners=function(){var _=this.hls;_.on(c.Events.MEDIA_ATTACHED,this.onMediaAttached,this),_.on(c.Events.MEDIA_DETACHING,this.onMediaDetaching,this),_.on(c.Events.MANIFEST_LOADING,this.onManifestLoading,this),_.on(c.Events.MANIFEST_PARSED,this.onManifestParsed,this),_.on(c.Events.LEVEL_LOADING,this.onLevelLoading,this),_.on(c.Events.LEVEL_LOADED,this.onLevelLoaded,this),_.on(c.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),_.on(c.Events.ERROR,this.onError,this),_.on(c.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),_.on(c.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),_.on(c.Events.BUFFER_CREATED,this.onBufferCreated,this),_.on(c.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),_.on(c.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),_.on(c.Events.FRAG_BUFFERED,this.onFragBuffered,this)},b._unregisterListeners=function(){var _=this.hls;_.off(c.Events.MEDIA_ATTACHED,this.onMediaAttached,this),_.off(c.Events.MEDIA_DETACHING,this.onMediaDetaching,this),_.off(c.Events.MANIFEST_LOADING,this.onManifestLoading,this),_.off(c.Events.MANIFEST_PARSED,this.onManifestParsed,this),_.off(c.Events.LEVEL_LOADED,this.onLevelLoaded,this),_.off(c.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),_.off(c.Events.ERROR,this.onError,this),_.off(c.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),_.off(c.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),_.off(c.Events.BUFFER_CREATED,this.onBufferCreated,this),_.off(c.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),_.off(c.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),_.off(c.Events.FRAG_BUFFERED,this.onFragBuffered,this)},b.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},b.startLoad=function(_){if(this.levels){var I=this.lastCurrentTime,L=this.hls;if(this.stopLoad(),this.setInterval(v),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var N=L.startLevel;N===-1&&(L.config.testBandwidth?(N=0,this.bitrateTest=!0):N=L.nextAutoLevel),this.level=L.nextLoadLevel=N,this.loadedmetadata=!1}I>0&&_===-1&&(this.log("Override startPosition with lastCurrentTime @"+I.toFixed(3)),_=I),this.state=g.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=_,this.tick()}else this._forceStartLoad=!0,this.state=g.State.STOPPED},b.stopLoad=function(){this._forceStartLoad=!1,E.prototype.stopLoad.call(this)},b.doTick=function(){switch(this.state){case g.State.IDLE:this.doTickIdle();break;case g.State.WAITING_LEVEL:{var _,I=this.levels,L=this.level,N=I==null||((_=I[L])===null||_===void 0)?void 0:_.details;if(N&&(!N.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(N))break;this.state=g.State.IDLE;break}break}case g.State.FRAG_LOADING_WAITING_RETRY:{var D,R=self.performance.now(),k=this.retryDate;(!k||R>=k||(D=this.media)!==null&&D!==void 0&&D.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=g.State.IDLE)}break;default:break}this.onTickEnd()},b.onTickEnd=function(){E.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},b.doTickIdle=function(){var _,I,L=this.hls,N=this.levelLastLoaded,D=this.levels,R=this.media,k=L.config,M=L.nextLoadLevel;if(N===null||!R&&(this.startFragRequested||!k.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!D||!D[M])return;var U=D[M];this.level=L.nextLoadLevel=M;var B=U.details;if(!B||this.state===g.State.WAITING_LEVEL||B.live&&this.levelLastLoaded!==M){this.state=g.State.WAITING_LEVEL;return}var j=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:R,i.PlaylistLevelType.MAIN);if(j===null)return;var W=j.len,V=this.getMaxBufferLength(U.maxBitrate);if(W>=V)return;if(this._streamEnded(j,B)){var z={};this.altAudio&&(z.type="video"),this.hls.trigger(c.Events.BUFFER_EOS,z),this.state=g.State.ENDED;return}var J=j.end,Z=this.getNextFragment(J,B);if(this.couldBacktrack&&!this.fragPrevious&&Z&&Z.sn!=="initSegment"){var de=Z.sn-B.startSN;de>1&&(Z=B.fragments[de-1],this.fragmentTracker.removeFragment(Z))}if(Z&&this.fragmentTracker.getState(Z)===r.FragmentState.OK&&this.nextLoadPosition>J){var ie=this.audioOnly&&!this.altAudio?n.ElementaryStreamTypes.AUDIO:n.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(R,ie,i.PlaylistLevelType.MAIN),Z=this.getNextFragment(this.nextLoadPosition,B)}if(!Z)return;Z.initSegment&&!Z.initSegment.data&&!this.bitrateTest&&(Z=Z.initSegment),((_=Z.decryptdata)===null||_===void 0?void 0:_.keyFormat)==="identity"&&!((I=Z.decryptdata)!==null&&I!==void 0&&I.key)?this.loadKey(Z,B):this.loadFragment(Z,B,J)},b.loadFragment=function(_,I,L){var N,D=this.fragmentTracker.getState(_);if(this.fragCurrent=_,D===r.FragmentState.BACKTRACKED){var R=this.fragmentTracker.getBacktrackData(_);if(R){this._handleFragmentLoadProgress(R),this._handleFragmentLoadComplete(R);return}else D=r.FragmentState.NOT_LOADED}D===r.FragmentState.NOT_LOADED||D===r.FragmentState.PARTIAL?_.sn==="initSegment"?this._loadInitSegment(_):this.bitrateTest?(_.bitrateTest=!0,this.log("Fragment "+_.sn+" of level "+_.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(_)):(this.startFragRequested=!0,E.prototype.loadFragment.call(this,_,I,L)):D===r.FragmentState.APPENDING?this.reduceMaxBufferLength(_.duration)&&this.fragmentTracker.removeFragment(_):((N=this.media)===null||N===void 0?void 0:N.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},b.getAppendedFrag=function(_){var I=this.fragmentTracker.getAppendedFrag(_,i.PlaylistLevelType.MAIN);return I&&"fragment"in I?I.fragment:I},b.getBufferedFrag=function(_){return this.fragmentTracker.getBufferedFrag(_,i.PlaylistLevelType.MAIN)},b.followingBufferedFrag=function(_){return _?this.getBufferedFrag(_.end+.5):null},b.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},b.nextLevelSwitch=function(){var _=this.levels,I=this.media;if(I!=null&&I.readyState){var L,N=this.getAppendedFrag(I.currentTime);if(N&&N.start>1&&this.flushMainBuffer(0,N.start-1),!I.paused&&_){var D=this.hls.nextLoadLevel,R=_[D],k=this.fragLastKbps;k&&this.fragCurrent?L=this.fragCurrent.duration*R.maxBitrate/(1e3*k)+1:L=0}else L=0;var M=this.getBufferedFrag(I.currentTime+L);if(M){var U=this.followingBufferedFrag(M);if(U){this.abortCurrentFrag();var B=U.maxStartPTS?U.maxStartPTS:U.start,j=U.duration,W=Math.max(M.end,B+Math.min(Math.max(j-this.config.maxFragLookUpTolerance,j*.5),j*.75));this.flushMainBuffer(W,Number.POSITIVE_INFINITY)}}}},b.abortCurrentFrag=function(){var _=this.fragCurrent;this.fragCurrent=null,_!=null&&_.loader&&_.loader.abort(),this.state===g.State.KEY_LOADING&&(this.state=g.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},b.flushMainBuffer=function(_,I){E.prototype.flushMainBuffer.call(this,_,I,this.altAudio?"video":null)},b.onMediaAttached=function(_,I){E.prototype.onMediaAttached.call(this,_,I);var L=I.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),L.addEventListener("playing",this.onvplaying),L.addEventListener("seeked",this.onvseeked),this.gapController=new t.default(this.config,L,this.fragmentTracker,this.hls)},b.onMediaDetaching=function(){var _=this.media;_&&(_.removeEventListener("playing",this.onvplaying),_.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),E.prototype.onMediaDetaching.call(this)},b.onMediaPlaying=function(){this.tick()},b.onMediaSeeked=function(){var _=this.media,I=_?_.currentTime:null;Object(S.isFiniteNumber)(I)&&this.log("Media seeked to "+I.toFixed(3)),this.tick()},b.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(c.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},b.onManifestParsed=function(_,I){var L=!1,N=!1,D;I.levels.forEach(function(R){D=R.audioCodec,D&&(D.indexOf("mp4a.40.2")!==-1&&(L=!0),D.indexOf("mp4a.40.5")!==-1&&(N=!0))}),this.audioCodecSwitch=L&&N&&!Object(f.changeTypeSupported)(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=I.levels,this.startFragRequested=!1},b.onLevelLoading=function(_,I){var L=this.levels;if(!L||this.state!==g.State.IDLE)return;var N=L[I.level];(!N.details||N.details.live&&this.levelLastLoaded!==I.level||this.waitForCdnTuneIn(N.details))&&(this.state=g.State.WAITING_LEVEL)},b.onLevelLoaded=function(_,I){var L,N=this.levels,D=I.level,R=I.details,k=R.totalduration;if(!N){this.warn("Levels were reset while loading level "+D);return}this.log("Level "+D+" loaded ["+R.startSN+","+R.endSN+"], cc ["+R.startCC+", "+R.endCC+"] duration:"+k);var M=this.fragCurrent;M&&(this.state===g.State.FRAG_LOADING||this.state===g.State.FRAG_LOADING_WAITING_RETRY)&&(M.level!==I.level&&M.loader&&(this.state=g.State.IDLE,M.loader.abort()));var U=N[D],B=0;if(R.live||(L=U.details)!==null&&L!==void 0&&L.live){if(R.fragments[0]||(R.deltaUpdateFailed=!0),R.deltaUpdateFailed)return;B=this.alignPlaylists(R,U.details)}if(U.details=R,this.levelLastLoaded=D,this.hls.trigger(c.Events.LEVEL_UPDATED,{details:R,level:D}),this.state===g.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(R))return;this.state=g.State.IDLE}this.startFragRequested?R.live&&this.synchronizeToLiveEdge(R):this.setStartPosition(R,B),this.tick()},b._handleFragmentLoadProgress=function(_){var I,L=_.frag,N=_.part,D=_.payload,R=this.levels;if(!R){this.warn("Levels were reset while fragment load was in progress. Fragment "+L.sn+" of level "+L.level+" will not be buffered");return}var k=R[L.level],M=k.details;if(!M){this.warn("Dropping fragment "+L.sn+" of level "+L.level+" after level details were reset");return}var U=k.videoCodec,B=M.PTSKnown||!M.live,j=(I=L.initSegment)===null||I===void 0?void 0:I.data,W=this._getAudioCodec(k),V=this.transmuxer=this.transmuxer||new e.default(this.hls,i.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),z=N?N.index:-1,J=z!==-1,Z=new l.ChunkMetadata(L.level,L.sn,L.stats.chunkCount,D.byteLength,z,J),de=this.initPTS[L.cc];V.push(D,j,W,U,L,N,M.totalduration,B,Z,de)},b.onAudioTrackSwitching=function(_,I){var L=this.altAudio,N=!!I.url,D=I.id;if(!N){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var R=this.fragCurrent;R!=null&&R.loader&&(this.log("Switching to main audio track, cancel main fragment load"),R.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var k=this.hls;L&&k.trigger(c.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),k.trigger(c.Events.AUDIO_TRACK_SWITCHED,{id:D})}},b.onAudioTrackSwitched=function(_,I){var L=I.id,N=!!this.hls.audioTracks[L].url;if(N){var D=this.videoBuffer;D&&this.mediaBuffer!==D&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=D)}this.altAudio=N,this.tick()},b.onBufferCreated=function(_,I){var L=I.tracks,N,D,R=!1;for(var k in L){var M=L[k];if(M.id==="main"){if(D=k,N=M,k==="video"){var U=L[k];U&&(this.videoBuffer=U.buffer)}}else R=!0}R&&N?(this.log("Alternate track found, use "+D+".buffered to schedule main fragment loading"),this.mediaBuffer=N.buffer):this.mediaBuffer=this.media},b.onFragBuffered=function(_,I){var L=I.frag,N=I.part;if(L&&L.type!==i.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(L)){this.warn("Fragment "+L.sn+(N?" p: "+N.index:"")+" of level "+L.level+" finished buffering, but was aborted. state: "+this.state),this.state===g.State.PARSED&&(this.state=g.State.IDLE);return}var D=N?N.stats:L.stats;this.fragLastKbps=Math.round(8*D.total/(D.buffering.end-D.loading.first)),L.sn!=="initSegment"&&(this.fragPrevious=L),this.fragBufferedComplete(L,N)},b.onError=function(_,I){switch(I.details){case a.ErrorDetails.FRAG_LOAD_ERROR:case a.ErrorDetails.FRAG_LOAD_TIMEOUT:case a.ErrorDetails.KEY_LOAD_ERROR:case a.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(i.PlaylistLevelType.MAIN,I);break;case a.ErrorDetails.LEVEL_LOAD_ERROR:case a.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==g.State.ERROR&&(I.fatal?(this.warn(""+I.details),this.state=g.State.ERROR):!I.levelRetry&&this.state===g.State.WAITING_LEVEL&&(this.state=g.State.IDLE));break;case a.ErrorDetails.BUFFER_FULL_ERROR:if(I.parent==="main"&&(this.state===g.State.PARSING||this.state===g.State.PARSED)){var L=!0,N=this.getFwdBufferInfo(this.media,i.PlaylistLevelType.MAIN);N&&N.len>.5&&(L=!this.reduceMaxBufferLength(N.len)),L&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},b.checkBuffer=function(){var _=this.media,I=this.gapController;if(!_||!I||!_.readyState)return;var L=o.BufferHelper.getBuffered(_);!this.loadedmetadata&&L.length?(this.loadedmetadata=!0,this.seekToStartPos()):I.poll(this.lastCurrentTime),this.lastCurrentTime=_.currentTime},b.onFragLoadEmergencyAborted=function(){this.state=g.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},b.onBufferFlushed=function(_,I){var L=I.type;if(L!==n.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var N=(L===n.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(N,L,i.PlaylistLevelType.MAIN)}},b.onLevelsUpdated=function(_,I){this.levels=I.levels},b.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},b.seekToStartPos=function(){var _=this.media,I=_.currentTime,L=this.startPosition;if(L>=0&&I<L){if(_.seeking){s.logger.log("could not seek to "+L+", already seeking at "+I);return}var N=o.BufferHelper.getBuffered(_),D=N.length?N.start(0):0,R=D-L;R>0&&(R<this.config.maxBufferHole||R<this.config.maxFragLookUpTolerance)&&(s.logger.log("adjusting start position by "+R+" to match buffer start"),L+=R,this.startPosition=L),this.log("seek to target start position "+L+" from current time "+I),_.currentTime=L}},b._getAudioCodec=function(_){var I=this.config.defaultAudioCodec||_.audioCodec;return this.audioCodecSwap&&I&&(this.log("Swapping audio codec"),I.indexOf("mp4a.40.5")!==-1?I="mp4a.40.2":I="mp4a.40.5"),I},b._loadBitrateTestFrag=function(_){var I=this;this._doFragLoad(_).then(function(L){var N=I.hls;if(!L||N.nextLoadLevel||I.fragContextChanged(_))return;I.fragLoadError=0,I.state=g.State.IDLE,I.startFragRequested=!1,I.bitrateTest=!1;var D=_.stats;D.parsing.start=D.parsing.end=D.buffering.start=D.buffering.end=self.performance.now(),N.trigger(c.Events.FRAG_LOADED,L)})},b._handleTransmuxComplete=function(_){var I,L="main",N=this.hls,D=_.remuxResult,R=_.chunkMeta,k=this.getCurrentContext(R);if(!k){this.warn("The loading context changed while buffering fragment "+R.sn+" of level "+R.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(R.level);return}var M=k.frag,U=k.part,B=k.level,j=D.video,W=D.text,V=D.id3,z=D.initSegment,J=this.altAudio?void 0:D.audio;if(this.fragContextChanged(M))return;if(this.state=g.State.PARSING,z){z.tracks&&(this._bufferInitSegment(B,z.tracks,M,R),N.trigger(c.Events.FRAG_PARSING_INIT_SEGMENT,{frag:M,id:L,tracks:z.tracks}));var Z=z.initPTS,de=z.timescale;Object(S.isFiniteNumber)(Z)&&(this.initPTS[M.cc]=Z,N.trigger(c.Events.INIT_PTS_FOUND,{frag:M,id:L,initPTS:Z,timescale:de}))}if(j&&D.independent!==!1){if(B.details){var ie=j.startPTS,ve=j.endPTS,xe=j.startDTS,_e=j.endDTS;if(U)U.elementaryStreams[j.type]={startPTS:ie,endPTS:ve,startDTS:xe,endDTS:_e};else if(j.firstKeyFrame&&j.independent&&(this.couldBacktrack=!0),j.dropped&&j.independent){var Ue=this.getLoadPosition()+this.config.maxBufferHole;if(Ue<ie){this.backtrack(M);return}M.setElementaryStreamInfo(j.type,M.start,ve,M.start,_e,!0)}M.setElementaryStreamInfo(j.type,ie,ve,xe,_e),this.bufferFragmentData(j,M,U,R)}}else if(D.independent===!1){this.backtrack(M);return}if(J){var fe=J.startPTS,ke=J.endPTS,se=J.startDTS,te=J.endDTS;U&&(U.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:fe,endPTS:ke,startDTS:se,endDTS:te}),M.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,fe,ke,se,te),this.bufferFragmentData(J,M,U,R)}if(V!=null&&(I=V.samples)!==null&&I!==void 0&&I.length){var Ve={frag:M,id:L,samples:V.samples};N.trigger(c.Events.FRAG_PARSING_METADATA,Ve)}if(W){var ae={frag:M,id:L,samples:W.samples};N.trigger(c.Events.FRAG_PARSING_USERDATA,ae)}},b._bufferInitSegment=function(_,I,L,N){var D=this;if(this.state!==g.State.PARSING)return;this.audioOnly=!!I.audio&&!I.video,this.altAudio&&!this.audioOnly&&delete I.audio;var R=I.audio,k=I.video,M=I.audiovideo;if(R){var U=_.audioCodec,B=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(U&&(U.indexOf("mp4a.40.5")!==-1?U="mp4a.40.2":U="mp4a.40.5"),R.metadata.channelCount!==1&&B.indexOf("firefox")===-1&&(U="mp4a.40.5")),B.indexOf("android")!==-1&&R.container!=="audio/mpeg"&&(U="mp4a.40.2",this.log("Android: force audio codec to "+U)),_.audioCodec&&_.audioCodec!==U&&this.log('Swapping manifest audio codec "'+_.audioCodec+'" for "'+U+'"'),R.levelCodec=U,R.id="main",this.log("Init audio buffer, container:"+R.container+", codecs[selected/level/parsed]=["+(U||"")+"/"+(_.audioCodec||"")+"/"+R.codec+"]")}k&&(k.levelCodec=_.videoCodec,k.id="main",this.log("Init video buffer, container:"+k.container+", codecs[level/parsed]=["+(_.videoCodec||"")+"/"+k.codec+"]")),M&&this.log("Init audiovideo buffer, container:"+M.container+", codecs[level/parsed]=["+(_.attrs.CODECS||"")+"/"+M.codec+"]"),this.hls.trigger(c.Events.BUFFER_CODECS,I),Object.keys(I).forEach(function(j){var W=I[j],V=W.initSegment;V!=null&&V.byteLength&&D.hls.trigger(c.Events.BUFFER_APPENDING,{type:j,data:V,frag:L,part:null,chunkMeta:N,parent:L.type})}),this.tick()},b.backtrack=function(_){this.couldBacktrack=!0,this.resetTransmuxer(),this.flushBufferGap(_);var I=this.fragmentTracker.backtrack(_);this.fragPrevious=null,this.nextLoadPosition=_.start,I?this.resetFragmentLoading(_):this.state=g.State.BACKTRACKING},b.checkFragmentChanged=function(){var _=this.media,I=null;if(_&&_.readyState>1&&_.seeking===!1){var L=_.currentTime;if(o.BufferHelper.isBuffered(_,L)?I=this.getAppendedFrag(L):o.BufferHelper.isBuffered(_,L+.1)&&(I=this.getAppendedFrag(L+.1)),I){var N=this.fragPlaying,D=I.level;(!N||I.sn!==N.sn||N.level!==D||I.urlId!==N.urlId)&&(this.hls.trigger(c.Events.FRAG_CHANGED,{frag:I}),(!N||N.level!==D)&&this.hls.trigger(c.Events.LEVEL_SWITCHED,{level:D}),this.fragPlaying=I)}}},h(T,[{key:"nextLevel",get:function(){var _=this.nextBufferedFrag;return _?_.level:-1}},{key:"currentLevel",get:function(){var _=this.media;if(_){var I=this.getAppendedFrag(_.currentTime);if(I)return I.level}return-1}},{key:"nextBufferedFrag",get:function(){var _=this.media;if(_){var I=this.getAppendedFrag(_.currentTime);return this.followingBufferedFrag(I)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),T}(g.default)},"./src/controller/subtitle-stream-controller.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"SubtitleStreamController",function(){return h});var S=A("./src/events.ts"),g=A("./src/utils/buffer-helper.ts"),f=A("./src/controller/fragment-finders.ts"),c=A("./src/utils/discontinuities.ts"),o=A("./src/controller/level-helper.ts"),r=A("./src/controller/fragment-tracker.ts"),i=A("./src/controller/base-stream-controller.ts"),n=A("./src/types/loader.ts"),e=A("./src/types/level.ts");function l(p,m){for(var v=0;v<m.length;v++){var y=m[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}function t(p,m,v){return m&&l(p.prototype,m),v&&l(p,v),p}function a(p,m){p.prototype=Object.create(m.prototype),p.prototype.constructor=p,s(p,m)}function s(p,m){return s=Object.setPrototypeOf||function(y,E){return y.__proto__=E,y},s(p,m)}var u=500,h=function(p){a(m,p);function m(y,E){var T;return T=p.call(this,y,E,"[subtitle-stream-controller]")||this,T.levels=[],T.currentTrackId=-1,T.tracksBuffered=[],T.mainDetails=null,T._registerListeners(),T}var v=m.prototype;return v.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},v._registerListeners=function(){var E=this.hls;E.on(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),E.on(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),E.on(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),E.on(S.Events.LEVEL_LOADED,this.onLevelLoaded,this),E.on(S.Events.ERROR,this.onError,this),E.on(S.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),E.on(S.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),E.on(S.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),E.on(S.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),E.on(S.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},v._unregisterListeners=function(){var E=this.hls;E.off(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),E.off(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),E.off(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),E.off(S.Events.LEVEL_LOADED,this.onLevelLoaded,this),E.off(S.Events.ERROR,this.onError,this),E.off(S.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),E.off(S.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),E.off(S.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),E.off(S.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),E.off(S.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},v.startLoad=function(){this.stopLoad(),this.state=i.State.IDLE,this.setInterval(u),this.tick()},v.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},v.onLevelLoaded=function(E,T){this.mainDetails=T.details},v.onSubtitleFragProcessed=function(E,T){var b=T.frag,w=T.success;if(this.fragPrevious=b,this.state=i.State.IDLE,!w)return;var _=this.tracksBuffered[this.currentTrackId];if(!_)return;for(var I,L=b.start,N=0;N<_.length;N++)if(L>=_[N].start&&L<=_[N].end){I=_[N];break}var D=b.start+b.duration;I?I.end=D:(I={start:L,end:D},_.push(I)),this.fragmentTracker.fragBuffered(b)},v.onBufferFlushing=function(E,T){var b=T.startOffset,w=T.endOffset;if(b===0&&w!==Number.POSITIVE_INFINITY){var _=this.currentTrackId,I=this.levels;if(!I.length||!I[_]||!I[_].details)return;var L=I[_].details,N=L.targetduration,D=w-N;if(D<=0)return;T.endOffsetSubtitles=Math.max(0,D),this.tracksBuffered.forEach(function(R){for(var k=0;k<R.length;){if(R[k].end<=D){R.shift();continue}else if(R[k].start<D)R[k].start=D;else break;k++}}),this.fragmentTracker.removeFragmentsInRange(b,D,n.PlaylistLevelType.SUBTITLE)}},v.onError=function(E,T){var b,w=T.frag;if(!w||w.type!==n.PlaylistLevelType.SUBTITLE)return;(b=this.fragCurrent)!==null&&b!==void 0&&b.loader&&this.fragCurrent.loader.abort(),this.state=i.State.IDLE},v.onSubtitleTracksUpdated=function(E,T){var b=this,w=T.subtitleTracks;this.tracksBuffered=[],this.levels=w.map(function(_){return new e.Level(_)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(_){b.tracksBuffered[_.id]=[]}),this.mediaBuffer=null},v.onSubtitleTrackSwitch=function(E,T){if(this.currentTrackId=T.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var b=this.levels[this.currentTrackId];b!=null&&b.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,b&&this.setInterval(u)},v.onSubtitleTrackLoaded=function(E,T){var b,w=T.details,_=T.id,I=this.currentTrackId,L=this.levels;if(!L.length)return;var N=L[I];if(_>=L.length||_!==I||!N)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,w.live||(b=N.details)!==null&&b!==void 0&&b.live){var D=this.mainDetails;if(w.deltaUpdateFailed||!D)return;var R=D.fragments[0];if(!N.details)w.hasProgramDateTime&&D.hasProgramDateTime?Object(c.alignMediaPlaylistByPDT)(w,D):R&&Object(o.addSliding)(w,R.start);else{var k=this.alignPlaylists(w,N.details);k===0&&R&&Object(o.addSliding)(w,R.start)}}if(N.details=w,this.levelLastLoaded=_,this.tick(),w.live&&!this.fragCurrent&&this.media&&this.state===i.State.IDLE){var M=Object(f.findFragmentByPTS)(null,w.fragments,this.media.currentTime,0);M||(this.warn("Subtitle playlist not aligned with playback"),N.details=void 0)}},v._handleFragmentLoadComplete=function(E){var T=E.frag,b=E.payload,w=T.decryptdata,_=this.hls;if(this.fragContextChanged(T))return;if(b&&b.byteLength>0&&w&&w.key&&w.iv&&w.method==="AES-128"){var I=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(b),w.key.buffer,w.iv.buffer).then(function(L){var N=performance.now();_.trigger(S.Events.FRAG_DECRYPTED,{frag:T,payload:L,stats:{tstart:I,tdecrypt:N}})})}},v.doTick=function(){if(!this.media){this.state=i.State.IDLE;return}if(this.state===i.State.IDLE){var E,T=this.currentTrackId,b=this.levels;if(!b.length||!b[T]||!b[T].details)return;var w=b[T].details,_=w.targetduration,I=this.config,L=this.media,N=g.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,L.currentTime-_,I.maxBufferHole),D=N.end,R=N.len,k=this.getMaxBufferLength()+_;if(R>k)return;console.assert(w,"Subtitle track details are defined on idle subtitle stream controller tick");var M=w.fragments,U=M.length,B=w.edge,j,W=this.fragPrevious;if(D<B){var V=I.maxFragLookUpTolerance;j=Object(f.findFragmentByPTS)(W,M,D,V),!j&&W&&W.start<M[0].start&&(j=M[0])}else j=M[U-1];(E=j)!==null&&E!==void 0&&E.encrypted?this.loadKey(j,w):j&&this.fragmentTracker.getState(j)===r.FragmentState.NOT_LOADED&&this.loadFragment(j,w,D)}},v.loadFragment=function(E,T,b){this.fragCurrent=E,p.prototype.loadFragment.call(this,E,T,b)},t(m,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),m}(i.default)},"./src/controller/subtitle-track-controller.ts":function(x,C,A){"use strict";A.r(C);var S=A("./src/events.ts"),g=A("./src/utils/texttrack-utils.ts"),f=A("./src/controller/base-playlist-controller.ts"),c=A("./src/types/loader.ts");function o(t,a){for(var s=0;s<a.length;s++){var u=a[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function r(t,a,s){return a&&o(t.prototype,a),s&&o(t,s),t}function i(t,a){t.prototype=Object.create(a.prototype),t.prototype.constructor=t,n(t,a)}function n(t,a){return n=Object.setPrototypeOf||function(u,h){return u.__proto__=h,u},n(t,a)}var e=function(t){i(a,t);function a(u){var h;return h=t.call(this,u,"[subtitle-track-controller]")||this,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}var s=a.prototype;return s.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,t.prototype.destroy.call(this)},s.registerListeners=function(){var h=this.hls;h.on(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.on(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.on(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.on(S.Events.LEVEL_LOADING,this.onLevelLoading,this),h.on(S.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),h.on(S.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),h.on(S.Events.ERROR,this.onError,this)},s.unregisterListeners=function(){var h=this.hls;h.off(S.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.off(S.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.off(S.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(S.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.off(S.Events.LEVEL_LOADING,this.onLevelLoading,this),h.off(S.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),h.off(S.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),h.off(S.Events.ERROR,this.onError,this)},s.onMediaAttached=function(h,p){if(this.media=p.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)},s.pollTrackChange=function(h){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,h)},s.onMediaDetaching=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=l(this.media.textTracks);h.forEach(function(p){Object(g.clearCurrentCues)(p)}),this.subtitleTrack=-1,this.media=null},s.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},s.onManifestParsed=function(h,p){this.tracks=p.subtitleTracks},s.onSubtitleTrackLoaded=function(h,p){var m=p.id,v=p.details,y=this.trackId,E=this.tracksInGroup[y];if(!E){this.warn("Invalid subtitle track id "+m);return}var T=E.details;E.details=p.details,this.log("subtitle track "+m+" loaded ["+v.startSN+"-"+v.endSN+"]"),m===this.trackId&&(this.retryCount=0,this.playlistLoaded(m,p,T))},s.onLevelLoading=function(h,p){this.switchLevel(p.level)},s.onLevelSwitching=function(h,p){this.switchLevel(p.level)},s.switchLevel=function(h){var p=this.hls.levels[h];if(!(p!=null&&p.textGroupIds))return;var m=p.textGroupIds[p.urlId];if(this.groupId!==m){var v=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,y=this.tracks.filter(function(b){return!m||b.groupId===m});this.tracksInGroup=y;var E=this.findTrackId(v==null?void 0:v.name)||this.findTrackId();this.groupId=m;var T={subtitleTracks:y};this.log("Updating subtitle tracks, "+y.length+' track(s) found in "'+m+'" group-id'),this.hls.trigger(S.Events.SUBTITLE_TRACKS_UPDATED,T),E!==-1&&this.setSubtitleTrack(E,v)}},s.findTrackId=function(h){for(var p=this.tracksInGroup,m=0;m<p.length;m++){var v=p[m];if((!this.selectDefaultTrack||v.default)&&(!h||h===v.name))return v.id}return-1},s.onError=function(h,p){if(t.prototype.onError.call(this,h,p),p.fatal||!p.context)return;p.context.type===c.PlaylistContextType.SUBTITLE_TRACK&&p.context.id===this.trackId&&p.context.groupId===this.groupId&&this.retryLoadingOrFail(p)},s.loadPlaylist=function(h){var p=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(p)){var m=p.id,v=p.groupId,y=p.url;if(h)try{y=h.addDirectives(y)}catch(E){this.warn("Could not construct new URL with HLS Delivery Directives: "+E)}this.log("Loading subtitle playlist for id "+m),this.hls.trigger(S.Events.SUBTITLE_TRACK_LOADING,{url:y,id:m,groupId:v,deliveryDirectives:h||null})}},s.toggleTrackModes=function(h){var p=this,m=this.media,v=this.subtitleDisplay,y=this.trackId;if(!m)return;var E=l(m.textTracks),T=E.filter(function(_){return _.groupId===p.groupId});if(h===-1)[].slice.call(E).forEach(function(_){_.mode="disabled"});else{var b=T[y];b&&(b.mode="disabled")}var w=T[h];w&&(w.mode=v?"showing":"hidden")},s.setSubtitleTrack=function(h,p){var m,v=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=h;return}if(this.trackId!==h&&this.toggleTrackModes(h),this.trackId===h&&(h===-1||(m=v[h])!==null&&m!==void 0&&m.details)||h<-1||h>=v.length)return;this.clearTimer();var y=v[h];if(this.log("Switching to subtitle track "+h),this.trackId=h,y){var E=y.id,T=y.groupId,b=T===void 0?"":T,w=y.name,_=y.type,I=y.url;this.hls.trigger(S.Events.SUBTITLE_TRACK_SWITCH,{id:E,groupId:b,name:w,type:_,url:I});var L=this.switchParams(y.url,p==null?void 0:p.details);this.loadPlaylist(L)}else this.hls.trigger(S.Events.SUBTITLE_TRACK_SWITCH,{id:h})},s.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var h=-1,p=l(this.media.textTracks),m=0;m<p.length;m++)if(p[m].mode==="hidden")h=m;else if(p[m].mode==="showing"){h=m;break}this.subtitleTrack!==h&&(this.subtitleTrack=h)},r(a,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(h){this.selectDefaultTrack=!1;var p=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(h,p)}}]),a}(f.default);function l(t){for(var a=[],s=0;s<t.length;s++){var u=t[s];u.kind==="subtitles"&&u.label&&a.push(t[s])}return a}C.default=e},"./src/controller/timeline-controller.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"TimelineController",function(){return l});var S=A("./src/polyfills/number.ts"),g=A("./src/events.ts"),f=A("./src/utils/cea-608-parser.ts"),c=A("./src/utils/output-filter.ts"),o=A("./src/utils/webvtt-parser.ts"),r=A("./src/utils/texttrack-utils.ts"),i=A("./src/utils/imsc1-ttml-parser.ts"),n=A("./src/types/loader.ts"),e=A("./src/utils/logger.ts"),l=function(){function u(p){if(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.timescale=[],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=s(),this.captionsProperties=void 0,this.hls=p,this.config=p.config,this.Cues=p.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 m=new c.default(this,"textTrack1"),v=new c.default(this,"textTrack2"),y=new c.default(this,"textTrack3"),E=new c.default(this,"textTrack4");this.cea608Parser1=new f.default(1,m,v),this.cea608Parser2=new f.default(3,y,E)}p.on(g.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),p.on(g.Events.MEDIA_DETACHING,this.onMediaDetaching,this),p.on(g.Events.MANIFEST_LOADING,this.onManifestLoading,this),p.on(g.Events.MANIFEST_LOADED,this.onManifestLoaded,this),p.on(g.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),p.on(g.Events.FRAG_LOADING,this.onFragLoading,this),p.on(g.Events.FRAG_LOADED,this.onFragLoaded,this),p.on(g.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),p.on(g.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),p.on(g.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),p.on(g.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),p.on(g.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var h=u.prototype;return h.destroy=function(){var m=this.hls;m.off(g.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),m.off(g.Events.MEDIA_DETACHING,this.onMediaDetaching,this),m.off(g.Events.MANIFEST_LOADING,this.onManifestLoading,this),m.off(g.Events.MANIFEST_LOADED,this.onManifestLoaded,this),m.off(g.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),m.off(g.Events.FRAG_LOADING,this.onFragLoading,this),m.off(g.Events.FRAG_LOADED,this.onFragLoaded,this),m.off(g.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),m.off(g.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),m.off(g.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),m.off(g.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),m.off(g.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},h.addCues=function(m,v,y,E,T){for(var b=!1,w=T.length;w--;){var _=T[w],I=a(_[0],_[1],v,y);if(I>=0&&(_[0]=Math.min(_[0],v),_[1]=Math.max(_[1],y),b=!0,I/(y-v)>.5))return}if(b||T.push([v,y]),this.config.renderTextTracksNatively){var L=this.captionsTracks[m];this.Cues.newCue(L,v,y,E)}else{var N=this.Cues.newCue(null,v,y,E);this.hls.trigger(g.Events.CUES_PARSED,{type:"captions",cues:N,track:m})}},h.onInitPtsFound=function(m,v){var y=this,E=v.frag,T=v.id,b=v.initPTS,w=v.timescale,_=this.unparsedVttFrags;T==="main"&&(this.initPTS[E.cc]=b,this.timescale[E.cc]=w),_.length&&(this.unparsedVttFrags=[],_.forEach(function(I){y.onFragLoaded(g.Events.FRAG_LOADED,I)}))},h.getExistingTrack=function(m){var v=this.media;if(v)for(var y=0;y<v.textTracks.length;y++){var E=v.textTracks[y];if(E[m])return E}return null},h.createCaptionsTrack=function(m){this.config.renderTextTracksNatively?this.createNativeTrack(m):this.createNonNativeTrack(m)},h.createNativeTrack=function(m){if(this.captionsTracks[m])return;var v=this.captionsProperties,y=this.captionsTracks,E=this.media,T=v[m],b=T.label,w=T.languageCode,_=this.getExistingTrack(m);if(_)y[m]=_,Object(r.clearCurrentCues)(y[m]),Object(r.sendAddTrackEvent)(y[m],E);else{var I=this.createTextTrack("captions",b,w);I&&(I[m]=!0,y[m]=I)}},h.createNonNativeTrack=function(m){if(this.nonNativeCaptionsTracks[m])return;var v=this.captionsProperties[m];if(!v)return;var y=v.label,E={_id:m,label:y,kind:"captions",default:v.media?!!v.media.default:!1,closedCaptions:v.media};this.nonNativeCaptionsTracks[m]=E,this.hls.trigger(g.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[E]})},h.createTextTrack=function(m,v,y){var E=this.media;return E?E.addTextTrack(m,v,y):void 0},h.onMediaAttaching=function(m,v){this.media=v.media,this._cleanTracks()},h.onMediaDetaching=function(){var m=this.captionsTracks;Object.keys(m).forEach(function(v){Object(r.clearCurrentCues)(m[v]),delete m[v]}),this.nonNativeCaptionsTracks={}},h.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=s(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.timescale=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())},h._cleanTracks=function(){var m=this.media;if(!m)return;var v=m.textTracks;if(v)for(var y=0;y<v.length;y++)Object(r.clearCurrentCues)(v[y])},h.onSubtitleTracksUpdated=function(m,v){var y=this;this.textTracks=[];var E=v.subtitleTracks||[],T=E.some(function(I){return I.textCodec===i.IMSC1_CODEC});if(this.config.enableWebVTT||T&&this.config.enableIMSC1){var b=this.tracks&&E&&this.tracks.length===E.length;if(this.tracks=E||[],this.config.renderTextTracksNatively){var w=this.media?this.media.textTracks:[];this.tracks.forEach(function(I,L){var N;if(L<w.length){for(var D=null,R=0;R<w.length;R++)if(t(w[R],I)){D=w[R];break}D&&(N=D)}N?Object(r.clearCurrentCues)(N):(N=y.createTextTrack("subtitles",I.name,I.lang),N&&(N.mode="disabled")),N&&(N.groupId=I.groupId,y.textTracks.push(N))})}else if(!b&&this.tracks&&this.tracks.length){var _=this.tracks.map(function(I){return{label:I.name,kind:I.type.toLowerCase(),default:I.default,subtitleTrack:I}});this.hls.trigger(g.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:_})}}},h.onManifestLoaded=function(m,v){var y=this;this.config.enableCEA708Captions&&v.captions&&v.captions.forEach(function(E){var T=/(?:CC|SERVICE)([1-4])/.exec(E.instreamId);if(!T)return;var b="textTrack"+T[1],w=y.captionsProperties[b];if(!w)return;w.label=E.name,E.lang&&(w.languageCode=E.lang),w.media=E})},h.onFragLoading=function(m,v){var y=this.cea608Parser1,E=this.cea608Parser2,T=this.lastSn,b=this.lastPartIndex;if(!this.enabled||!(y&&E))return;if(v.frag.type===n.PlaylistLevelType.MAIN){var w,_,I=v.frag.sn,L=(w=v==null||((_=v.part)===null||_===void 0)?void 0:_.index)!=null?w:-1;I===T+1||I===T&&L===b+1||(y.reset(),E.reset()),this.lastSn=I,this.lastPartIndex=L}},h.onFragLoaded=function(m,v){var y=v.frag,E=v.payload,T=this.initPTS,b=this.unparsedVttFrags;if(y.type===n.PlaylistLevelType.SUBTITLE)if(E.byteLength){if(!Object(S.isFiniteNumber)(T[y.cc])){b.push(v),T.length&&this.hls.trigger(g.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:y,error:new Error("Missing initial subtitle PTS")});return}var w=y.decryptdata,_="stats"in v;if(w==null||w.key==null||w.method!=="AES-128"||_){var I=this.tracks[y.level],L=this.vttCCs;L[y.cc]||(L[y.cc]={start:y.start,prevCC:this.prevCC,new:!0},this.prevCC=y.cc),I&&I.textCodec===i.IMSC1_CODEC?this._parseIMSC1(y,E):this._parseVTTs(y,E,L)}}else this.hls.trigger(g.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:y,error:new Error("Empty subtitle payload")})},h._parseIMSC1=function(m,v){var y=this,E=this.hls;Object(i.parseIMSC1)(v,this.initPTS[m.cc],this.timescale[m.cc],function(T){y._appendCues(T,m.level),E.trigger(g.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:m})},function(T){e.logger.log("Failed to parse IMSC1: "+T),E.trigger(g.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:m,error:T})})},h._parseVTTs=function(m,v,y){var E=this,T=this.hls;Object(o.parseWebVTT)(v,this.initPTS[m.cc],this.timescale[m.cc],y,m.cc,m.start,function(b){E._appendCues(b,m.level),T.trigger(g.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:m})},function(b){E._fallbackToIMSC1(m,v),e.logger.log("Failed to parse VTT cue: "+b),T.trigger(g.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:m,error:b})})},h._fallbackToIMSC1=function(m,v){var y=this,E=this.tracks[m.level];E.textCodec||Object(i.parseIMSC1)(v,this.initPTS[m.cc],this.timescale[m.cc],function(){E.textCodec=i.IMSC1_CODEC,y._parseIMSC1(m,v)},function(){E.textCodec="wvtt"})},h._appendCues=function(m,v){var y=this.hls;if(this.config.renderTextTracksNatively){var E=this.textTracks[v];if(E.mode==="disabled")return;m.forEach(function(w){return Object(r.addCueToTrack)(E,w)})}else{var T=this.tracks[v],b=T.default?"default":"subtitles"+v;y.trigger(g.Events.CUES_PARSED,{type:"subtitles",cues:m,track:b})}},h.onFragDecrypted=function(m,v){var y=v.frag;if(y.type===n.PlaylistLevelType.SUBTITLE){if(!Object(S.isFiniteNumber)(this.initPTS[y.cc])){this.unparsedVttFrags.push(v);return}this.onFragLoaded(g.Events.FRAG_LOADED,v)}},h.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},h.onFragParsingUserdata=function(m,v){var y=this.cea608Parser1,E=this.cea608Parser2;if(!this.enabled||!(y&&E))return;for(var T=0;T<v.samples.length;T++){var b=v.samples[T].bytes;if(b){var w=this.extractCea608Data(b);y.addData(v.samples[T].pts,w[0]),E.addData(v.samples[T].pts,w[1])}}},h.onBufferFlushing=function(m,v){var y=v.startOffset,E=v.endOffset,T=v.endOffsetSubtitles,b=v.type,w=this.media;if(!w||w.currentTime<E)return;if(!b||b==="video"){var _=this.captionsTracks;Object.keys(_).forEach(function(L){return Object(r.removeCuesInRange)(_[L],y,E)})}if(this.config.renderTextTracksNatively&&(y===0&&T!==void 0)){var I=this.textTracks;Object.keys(I).forEach(function(L){return Object(r.removeCuesInRange)(I[L],y,T)})}},h.extractCea608Data=function(m){for(var v=m[0]&31,y=2,E=[[],[]],T=0;T<v;T++){var b=m[y++],w=127&m[y++],_=127&m[y++],I=(4&b)!==0,L=3&b;if(w===0&&_===0)continue;I&&((L===0||L===1)&&(E[L].push(w),E[L].push(_)))}return E},u}();function t(u,h){return u&&u.label===h.name&&!(u.textTrack1||u.textTrack2)}function a(u,h,p,m){return Math.min(h,m)-Math.max(u,p)}function s(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return S});var S=function(){function g(c,o){this.subtle=void 0,this.aesIV=void 0,this.subtle=c,this.aesIV=o}var f=g.prototype;return f.decrypt=function(o,r){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},r,o)},g}()},"./src/crypt/aes-decryptor.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"removePadding",function(){return g}),A.d(C,"default",function(){return f});var S=A("./src/utils/typed-array.ts");function g(c){var o=c.byteLength,r=o&&new DataView(c.buffer).getUint8(o-1);return r?Object(S.sliceUint8)(c,0,o-r):c}var f=function(){function c(){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()}var o=c.prototype;return o.uint8ArrayToUint32Array_=function(i){for(var n=new DataView(i),e=new Uint32Array(4),l=0;l<4;l++)e[l]=n.getUint32(l*4);return e},o.initTable=function(){var i=this.sBox,n=this.invSBox,e=this.subMix,l=e[0],t=e[1],a=e[2],s=e[3],u=this.invSubMix,h=u[0],p=u[1],m=u[2],v=u[3],y=new Uint32Array(256),E=0,T=0,b=0;for(b=0;b<256;b++)b<128?y[b]=b<<1:y[b]=b<<1^283;for(b=0;b<256;b++){var w=T^T<<1^T<<2^T<<3^T<<4;w=w>>>8^w&255^99,i[E]=w,n[w]=E;var _=y[E],I=y[_],L=y[I],N=y[w]*257^w*16843008;l[E]=N<<24|N>>>8,t[E]=N<<16|N>>>16,a[E]=N<<8|N>>>24,s[E]=N,N=L*16843009^I*65537^_*257^E*16843008,h[w]=N<<24|N>>>8,p[w]=N<<16|N>>>16,m[w]=N<<8|N>>>24,v[w]=N,E?(E=_^y[y[y[L^_]]],T^=y[y[T]]):E=T=1}},o.expandKey=function(i){for(var n=this.uint8ArrayToUint32Array_(i),e=!0,l=0;l<n.length&&e;)e=n[l]===this.key[l],l++;if(e)return;this.key=n;var t=this.keySize=n.length;if(t!==4&&t!==6&&t!==8)throw new Error("Invalid aes key size="+t);var a=this.ksRows=(t+6+1)*4,s,u,h=this.keySchedule=new Uint32Array(a),p=this.invKeySchedule=new Uint32Array(a),m=this.sBox,v=this.rcon,y=this.invSubMix,E=y[0],T=y[1],b=y[2],w=y[3],_,I;for(s=0;s<a;s++){if(s<t){_=h[s]=n[s];continue}I=_,s%t===0?(I=I<<8|I>>>24,I=m[I>>>24]<<24|m[I>>>16&255]<<16|m[I>>>8&255]<<8|m[I&255],I^=v[s/t|0]<<24):t>6&&s%t===4&&(I=m[I>>>24]<<24|m[I>>>16&255]<<16|m[I>>>8&255]<<8|m[I&255]),h[s]=_=(h[s-t]^I)>>>0}for(u=0;u<a;u++)s=a-u,u&3?I=h[s]:I=h[s-4],u<4||s<=4?p[u]=I:p[u]=E[m[I>>>24]]^T[m[I>>>16&255]]^b[m[I>>>8&255]]^w[m[I&255]],p[u]=p[u]>>>0},o.networkToHostOrderSwap=function(i){return i<<24|(i&65280)<<8|(i&16711680)>>8|i>>>24},o.decrypt=function(i,n,e){for(var l=this.keySize+6,t=this.invKeySchedule,a=this.invSBox,s=this.invSubMix,u=s[0],h=s[1],p=s[2],m=s[3],v=this.uint8ArrayToUint32Array_(e),y=v[0],E=v[1],T=v[2],b=v[3],w=new Int32Array(i),_=new Int32Array(w.length),I,L,N,D,R,k,M,U,B,j,W,V,z,J,Z=this.networkToHostOrderSwap;n<w.length;){for(B=Z(w[n]),j=Z(w[n+1]),W=Z(w[n+2]),V=Z(w[n+3]),R=B^t[0],k=V^t[1],M=W^t[2],U=j^t[3],z=4,J=1;J<l;J++)I=u[R>>>24]^h[k>>16&255]^p[M>>8&255]^m[U&255]^t[z],L=u[k>>>24]^h[M>>16&255]^p[U>>8&255]^m[R&255]^t[z+1],N=u[M>>>24]^h[U>>16&255]^p[R>>8&255]^m[k&255]^t[z+2],D=u[U>>>24]^h[R>>16&255]^p[k>>8&255]^m[M&255]^t[z+3],R=I,k=L,M=N,U=D,z=z+4;I=a[R>>>24]<<24^a[k>>16&255]<<16^a[M>>8&255]<<8^a[U&255]^t[z],L=a[k>>>24]<<24^a[M>>16&255]<<16^a[U>>8&255]<<8^a[R&255]^t[z+1],N=a[M>>>24]<<24^a[U>>16&255]<<16^a[R>>8&255]<<8^a[k&255]^t[z+2],D=a[U>>>24]<<24^a[R>>16&255]<<16^a[k>>8&255]<<8^a[M&255]^t[z+3],_[n]=Z(I^y),_[n+1]=Z(D^E),_[n+2]=Z(N^T),_[n+3]=Z(L^b),y=B,E=j,T=W,b=V,n=n+4}return _.buffer},c}()},"./src/crypt/decrypter.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return n});var S=A("./src/crypt/aes-crypto.ts"),g=A("./src/crypt/fast-aes-key.ts"),f=A("./src/crypt/aes-decryptor.ts"),c=A("./src/utils/logger.ts"),o=A("./src/utils/mp4-tools.ts"),r=A("./src/utils/typed-array.ts"),i=16,n=function(){function e(t,a,s){var u=s===void 0?{}:s,h=u.removePKCS7Padding,p=h===void 0?!0:h;if(this.logEnabled=!0,this.observer=void 0,this.config=void 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.observer=t,this.config=a,this.removePKCS7Padding=p,p)try{var m=self.crypto;m&&(this.subtle=m.subtle||m.webkitSubtle)}catch(v){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var l=e.prototype;return l.destroy=function(){this.observer=null},l.isSync=function(){return this.config.enableSoftwareAES},l.flush=function(){var a=this.currentResult;if(!a){this.reset();return}var s=new Uint8Array(a);return this.reset(),this.removePKCS7Padding?Object(f.removePadding)(s):s},l.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},l.decrypt=function(a,s,u,h){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(a),s,u);var p=this.flush();p&&h(p.buffer)}else this.webCryptoDecrypt(new Uint8Array(a),s,u).then(h)},l.softwareDecrypt=function(a,s,u){var h=this.currentIV,p=this.currentResult,m=this.remainderData;this.logOnce("JS AES decrypt"),m&&(a=Object(o.appendUint8Array)(m,a),this.remainderData=null);var v=this.getValidChunk(a);if(!v.length)return null;h&&(u=h);var y=this.softwareDecrypter;y||(y=this.softwareDecrypter=new f.default),y.expandKey(s);var E=p;return this.currentResult=y.decrypt(v.buffer,0,u),this.currentIV=Object(r.sliceUint8)(v,-16).buffer,E||null},l.webCryptoDecrypt=function(a,s,u){var h=this,p=this.subtle;return(this.key!==s||!this.fastAesKey)&&(this.key=s,this.fastAesKey=new g.default(p,s)),this.fastAesKey.expandKey().then(function(m){if(!p)return Promise.reject(new Error("web crypto not initialized"));var v=new S.default(p,u);return v.decrypt(a.buffer,m)}).catch(function(m){return h.onWebCryptoError(m,a,s,u)})},l.onWebCryptoError=function(a,s,u,h){return c.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",a),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(s,u,h)},l.getValidChunk=function(a){var s=a,u=a.length-a.length%i;return u!==a.length&&(s=Object(r.sliceUint8)(a,0,u),this.remainderData=Object(r.sliceUint8)(a,u)),s},l.logOnce=function(a){if(!this.logEnabled)return;c.logger.log("[decrypter.ts]: "+a),this.logEnabled=!1},e}()},"./src/crypt/fast-aes-key.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return S});var S=function(){function g(c,o){this.subtle=void 0,this.key=void 0,this.subtle=c,this.key=o}var f=g.prototype;return f.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},g}()},"./src/demux/aacdemuxer.ts":function(x,C,A){"use strict";A.r(C);var S=A("./src/demux/base-audio-demuxer.ts"),g=A("./src/demux/adts.ts"),f=A("./src/utils/logger.ts"),c=A("./src/demux/id3.ts");function o(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,r(n,e)}function r(n,e){return r=Object.setPrototypeOf||function(t,a){return t.__proto__=a,t},r(n,e)}var i=function(n){o(e,n);function e(t,a){var s;return s=n.call(this)||this,s.observer=void 0,s.config=void 0,s.observer=t,s.config=a,s}var l=e.prototype;return l.resetInitSegment=function(a,s,u){n.prototype.resetInitSegment.call(this,a,s,u),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!0,samples:[],manifestCodec:a,duration:u,inputTimeScale:9e4,dropped:0}},e.probe=function(a){if(!a)return!1;for(var s=c.getID3Data(a,0)||[],u=s.length,h=a.length;u<h;u++)if(g.probe(a,u))return f.logger.log("ADTS sync word found !"),!0;return!1},l.canParse=function(a,s){return g.canParse(a,s)},l.appendFrame=function(a,s,u){g.initTrackConfig(a,this.observer,s,u,a.manifestCodec);var h=g.appendFrame(a,s,u,this.initPTS,this.frameIndex);if(h&&h.missing===0)return h},e}(S.default);i.minProbeByteLength=9,C.default=i},"./src/demux/adts.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"getAudioConfig",function(){return c}),A.d(C,"isHeaderPattern",function(){return o}),A.d(C,"getHeaderLength",function(){return r}),A.d(C,"getFullFrameLength",function(){return i}),A.d(C,"canGetFrameLength",function(){return n}),A.d(C,"isHeader",function(){return e}),A.d(C,"canParse",function(){return l}),A.d(C,"probe",function(){return t}),A.d(C,"initTrackConfig",function(){return a}),A.d(C,"getFrameDuration",function(){return s}),A.d(C,"parseFrameHeader",function(){return u}),A.d(C,"appendFrame",function(){return h});var S=A("./src/utils/logger.ts"),g=A("./src/errors.ts"),f=A("./src/events.ts");function c(p,m,v,y){var E,T,b,w,_=navigator.userAgent.toLowerCase(),I=y,L=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];E=((m[v+2]&192)>>>6)+1;var N=(m[v+2]&60)>>>2;if(N>L.length-1){p.trigger(f.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+N});return}return b=(m[v+2]&1)<<2,b|=(m[v+3]&192)>>>6,S.logger.log("manifest codec:"+y+", ADTS type:"+E+", samplingIndex:"+N),/firefox/i.test(_)?N>=6?(E=5,w=new Array(4),T=N-3):(E=2,w=new Array(2),T=N):_.indexOf("android")!==-1?(E=2,w=new Array(2),T=N):(E=5,w=new Array(4),y&&(y.indexOf("mp4a.40.29")!==-1||y.indexOf("mp4a.40.5")!==-1)||!y&&N>=6?T=N-3:((y&&y.indexOf("mp4a.40.2")!==-1&&(N>=6&&b===1||/vivaldi/i.test(_))||!y&&b===1)&&(E=2,w=new Array(2)),T=N)),w[0]=E<<3,w[0]|=(N&14)>>1,w[1]|=(N&1)<<7,w[1]|=b<<3,E===5&&(w[1]|=(T&14)>>1,w[2]=(T&1)<<7,w[2]|=2<<2,w[3]=0),{config:w,samplerate:L[N],channelCount:b,codec:"mp4a.40."+E,manifestCodec:I}}function o(p,m){return p[m]===255&&(p[m+1]&246)===240}function r(p,m){return p[m+1]&1?7:9}function i(p,m){return(p[m+3]&3)<<11|p[m+4]<<3|(p[m+5]&224)>>>5}function n(p,m){return m+5<p.length}function e(p,m){return m+1<p.length&&o(p,m)}function l(p,m){return n(p,m)&&o(p,m)&&i(p,m)<=p.length-m}function t(p,m){if(e(p,m)){var v=r(p,m);if(m+v>=p.length)return!1;var y=i(p,m);if(y<=v)return!1;var E=m+y;return E===p.length||e(p,E)}return!1}function a(p,m,v,y,E){if(!p.samplerate){var T=c(m,v,y,E);if(!T)return;p.config=T.config,p.samplerate=T.samplerate,p.channelCount=T.channelCount,p.codec=T.codec,p.manifestCodec=T.manifestCodec,S.logger.log("parsed codec:"+p.codec+", rate:"+T.samplerate+", channels:"+T.channelCount)}}function s(p){return 1024*9e4/p}function u(p,m,v,y,E){var T=r(p,m),b=i(p,m);if(b-=T,b>0){var w=v+y*E;return{headerLength:T,frameLength:b,stamp:w}}}function h(p,m,v,y,E){var T=s(p.samplerate),b=u(m,v,y,E,T);if(b){var w=b.frameLength,_=b.headerLength,I=b.stamp,L=_+w,N=Math.max(0,v+L-m.length),D;N?(D=new Uint8Array(L-_),D.set(m.subarray(v+_,m.length),0)):D=m.subarray(v+_,v+L);var R={unit:D,pts:I};return N||p.samples.push(R),{sample:R,length:L,missing:N}}}},"./src/demux/base-audio-demuxer.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"initPTSFn",function(){return i});var S=A("./src/polyfills/number.ts"),g=A("./src/demux/id3.ts"),f=A("./src/demux/dummy-demuxed-track.ts"),c=A("./src/utils/mp4-tools.ts"),o=A("./src/utils/typed-array.ts"),r=function(){function n(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var e=n.prototype;return e.resetInitSegment=function(t,a,s){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},e.resetTimeStamp=function(){},e.resetContiguity=function(){},e.canParse=function(t,a){return!1},e.appendFrame=function(t,a,s){},e.demux=function(t,a){this.cachedData&&(t=Object(c.appendUint8Array)(this.cachedData,t),this.cachedData=null);var s=g.getID3Data(t,0),u=s?s.length:0,h,p,m=this._audioTrack,v=this._id3Track,y=s?g.getTimeStamp(s):void 0,E=t.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=i(y,a)),s&&s.length>0&&v.samples.push({pts:this.initPTS,dts:this.initPTS,data:s}),p=this.initPTS;u<E;){if(this.canParse(t,u)){var T=this.appendFrame(m,t,u);T?(this.frameIndex++,p=T.sample.pts,u+=T.length,h=u):u=E}else g.canParse(t,u)?(s=g.getID3Data(t,u),v.samples.push({pts:p,dts:p,data:s}),u+=s.length,h=u):u++;if(u===E&&h!==E){var b=Object(o.sliceUint8)(t,h);this.cachedData?this.cachedData=Object(c.appendUint8Array)(this.cachedData,b):this.cachedData=b}}return{audioTrack:m,avcTrack:Object(f.dummyTrack)(),id3Track:v,textTrack:Object(f.dummyTrack)()}},e.demuxSampleAes=function(t,a,s){return Promise.reject(new Error("["+this+"] This demuxer does not support Sample-AES decryption"))},e.flush=function(t){var a=this.cachedData;return a&&(this.cachedData=null,this.demux(a,0)),this.frameIndex=0,{audioTrack:this._audioTrack,avcTrack:Object(f.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(f.dummyTrack)()}},e.destroy=function(){},n}(),i=function(e,l){return Object(S.isFiniteNumber)(e)?e*90:l*9e4};C.default=r},"./src/demux/chunk-cache.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return S});var S=function(){function f(){this.chunks=[],this.dataLength=0}var c=f.prototype;return c.push=function(r){this.chunks.push(r),this.dataLength+=r.length},c.flush=function(){var r=this.chunks,i=this.dataLength,n;if(r.length)r.length===1?n=r[0]:n=g(r,i);else return new Uint8Array(0);return this.reset(),n},c.reset=function(){this.chunks.length=0,this.dataLength=0},f}();function g(f,c){for(var o=new Uint8Array(c),r=0,i=0;i<f.length;i++){var n=f[i];o.set(n,r),r+=n.length}return o}},"./src/demux/dummy-demuxed-track.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"dummyTrack",function(){return S});function S(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(x,C,A){"use strict";A.r(C);var S=A("./src/utils/logger.ts"),g=function(){function f(o){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=o,this.bytesAvailable=o.byteLength,this.word=0,this.bitsAvailable=0}var c=f.prototype;return c.loadWord=function(){var r=this.data,i=this.bytesAvailable,n=r.byteLength-i,e=new Uint8Array(4),l=Math.min(4,i);if(l===0)throw new Error("no bytes available");e.set(r.subarray(n,n+l)),this.word=new DataView(e.buffer).getUint32(0),this.bitsAvailable=l*8,this.bytesAvailable-=l},c.skipBits=function(r){var i;this.bitsAvailable>r?(this.word<<=r,this.bitsAvailable-=r):(r-=this.bitsAvailable,i=r>>3,r-=i>>3,this.bytesAvailable-=i,this.loadWord(),this.word<<=r,this.bitsAvailable-=r)},c.readBits=function(r){var i=Math.min(this.bitsAvailable,r),n=this.word>>>32-i;return r>32&&S.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=i,this.bitsAvailable>0?this.word<<=i:this.bytesAvailable>0&&this.loadWord(),i=r-i,i>0&&this.bitsAvailable?n<<i|this.readBits(i):n},c.skipLZ=function(){var r;for(r=0;r<this.bitsAvailable;++r)if((this.word&2147483648>>>r)!==0)return this.word<<=r,this.bitsAvailable-=r,r;return this.loadWord(),r+this.skipLZ()},c.skipUEG=function(){this.skipBits(1+this.skipLZ())},c.skipEG=function(){this.skipBits(1+this.skipLZ())},c.readUEG=function(){var r=this.skipLZ();return this.readBits(r+1)-1},c.readEG=function(){var r=this.readUEG();return 1&r?1+r>>>1:-1*(r>>>1)},c.readBoolean=function(){return this.readBits(1)===1},c.readUByte=function(){return this.readBits(8)},c.readUShort=function(){return this.readBits(16)},c.readUInt=function(){return this.readBits(32)},c.skipScalingList=function(r){for(var i=8,n=8,e,l=0;l<r;l++)n!==0&&(e=this.readEG(),n=(i+e+256)%256),i=n===0?i:n},c.readSPS=function(){var r=0,i=0,n=0,e=0,l,t,a,s=this.readUByte.bind(this),u=this.readBits.bind(this),h=this.readUEG.bind(this),p=this.readBoolean.bind(this),m=this.skipBits.bind(this),v=this.skipEG.bind(this),y=this.skipUEG.bind(this),E=this.skipScalingList.bind(this);s();var T=s();if(u(5),m(3),s(),y(),T===100||T===110||T===122||T===244||T===44||T===83||T===86||T===118||T===128){var b=h();if(b===3&&m(1),y(),y(),m(1),p())for(t=b!==3?8:12,a=0;a<t;a++)p()&&(a<6?E(16):E(64))}y();var w=h();if(w===0)h();else if(w===1)for(m(1),v(),v(),l=h(),a=0;a<l;a++)v();y(),m(1);var _=h(),I=h(),L=u(1);L===0&&m(1),m(1),p()&&(r=h(),i=h(),n=h(),e=h());var N=[1,1];if(p()&&p()){var D=s();switch(D){case 1:N=[1,1];break;case 2:N=[12,11];break;case 3:N=[10,11];break;case 4:N=[16,11];break;case 5:N=[40,33];break;case 6:N=[24,11];break;case 7:N=[20,11];break;case 8:N=[32,11];break;case 9:N=[80,33];break;case 10:N=[18,11];break;case 11:N=[15,11];break;case 12:N=[64,33];break;case 13:N=[160,99];break;case 14:N=[4,3];break;case 15:N=[3,2];break;case 16:N=[2,1];break;case 255:{N=[s()<<8|s(),s()<<8|s()];break}}}return{width:Math.ceil((_+1)*16-r*2-i*2),height:(2-L)*(I+1)*16-(L?2:4)*(n+e),pixelRatio:N}},c.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},f}();C.default=g},"./src/demux/id3.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"isHeader",function(){return S}),A.d(C,"isFooter",function(){return g}),A.d(C,"getID3Data",function(){return f}),A.d(C,"canParse",function(){return o}),A.d(C,"getTimeStamp",function(){return r}),A.d(C,"isTimeStampFrame",function(){return i}),A.d(C,"getID3Frames",function(){return e}),A.d(C,"decodeFrame",function(){return l}),A.d(C,"utf8ArrayToStr",function(){return h}),A.d(C,"testables",function(){return p});var S=function(E,T){return T+10<=E.length&&(E[T]===73&&E[T+1]===68&&E[T+2]===51&&(E[T+3]<255&&E[T+4]<255&&(E[T+6]<128&&E[T+7]<128&&E[T+8]<128&&E[T+9]<128)))},g=function(E,T){return T+10<=E.length&&(E[T]===51&&E[T+1]===68&&E[T+2]===73&&(E[T+3]<255&&E[T+4]<255&&(E[T+6]<128&&E[T+7]<128&&E[T+8]<128&&E[T+9]<128)))},f=function(E,T){for(var b=T,w=0;S(E,T);){w+=10;var _=c(E,T+6);w+=_,g(E,T+10)&&(w+=10),T+=w}return w>0?E.subarray(b,b+w):void 0},c=function(E,T){var b=0;return b=(E[T]&127)<<21,b|=(E[T+1]&127)<<14,b|=(E[T+2]&127)<<7,b|=E[T+3]&127,b},o=function(E,T){return S(E,T)&&c(E,T+6)+10<=E.length-T},r=function(E){for(var T=e(E),b=0;b<T.length;b++){var w=T[b];if(i(w))return u(w)}return},i=function(E){return E&&E.key==="PRIV"&&E.info==="com.apple.streaming.transportStreamTimestamp"},n=function(E){var T=String.fromCharCode(E[0],E[1],E[2],E[3]),b=c(E,4),w=10;return{type:T,size:b,data:E.subarray(w,w+b)}},e=function(E){for(var T=0,b=[];S(E,T);){var w=c(E,T+6);T+=10;for(var _=T+w;T+8<_;){var I=n(E.subarray(T)),L=l(I);L&&b.push(L),T+=I.size+10}g(E,T)&&(T+=10)}return b},l=function(E){return E.type==="PRIV"?t(E):E.type[0]==="W"?s(E):a(E)},t=function(E){if(E.size<2)return;var T=h(E.data,!0),b=new Uint8Array(E.data.subarray(T.length+1));return{key:E.type,info:T,data:b.buffer}},a=function(E){if(E.size<2)return;if(E.type==="TXXX"){var T=1,b=h(E.data.subarray(T),!0);T+=b.length+1;var w=h(E.data.subarray(T));return{key:E.type,info:b,data:w}}var _=h(E.data.subarray(1));return{key:E.type,data:_}},s=function(E){if(E.type==="WXXX"){if(E.size<2)return;var T=1,b=h(E.data.subarray(T),!0);T+=b.length+1;var w=h(E.data.subarray(T));return{key:E.type,info:b,data:w}}var _=h(E.data);return{key:E.type,data:_}},u=function(E){if(E.data.byteLength===8){var T=new Uint8Array(E.data),b=T[3]&1,w=(T[4]<<23)+(T[5]<<15)+(T[6]<<7)+T[7];return w/=45,b&&(w+=4772185884e-2),Math.round(w)}return},h=function(E,T){T===void 0&&(T=!1);var b=v();if(b){var w=b.decode(E);if(T){var _=w.indexOf("\0");return _!==-1?w.substring(0,_):w}return w.replace(/\0/g,"")}for(var I=E.length,L,N,D,R="",k=0;k<I;){if(L=E[k++],L===0&&T)return R;if(L===0||L===3)continue;switch(L>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:R+=String.fromCharCode(L);break;case 12:case 13:N=E[k++],R+=String.fromCharCode((L&31)<<6|N&63);break;case 14:N=E[k++],D=E[k++],R+=String.fromCharCode((L&15)<<12|(N&63)<<6|(D&63)<<0);break;default:}}return R},p={decodeTextFrame:a},m;function v(){return!m&&typeof self.TextDecoder!="undefined"&&(m=new self.TextDecoder("utf-8")),m}},"./src/demux/mp3demuxer.ts":function(x,C,A){"use strict";A.r(C);var S=A("./src/demux/base-audio-demuxer.ts"),g=A("./src/demux/id3.ts"),f=A("./src/utils/logger.ts"),c=A("./src/demux/mpegaudio.ts");function o(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,r(n,e)}function r(n,e){return r=Object.setPrototypeOf||function(t,a){return t.__proto__=a,t},r(n,e)}var i=function(n){o(e,n);function e(){return n.apply(this,arguments)||this}var l=e.prototype;return l.resetInitSegment=function(a,s,u){n.prototype.resetInitSegment.call(this,a,s,u),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:a,duration:u,inputTimeScale:9e4,dropped:0}},e.probe=function(a){if(!a)return!1;for(var s=g.getID3Data(a,0)||[],u=s.length,h=a.length;u<h;u++)if(c.probe(a,u))return f.logger.log("MPEG Audio sync word found !"),!0;return!1},l.canParse=function(a,s){return c.canParse(a,s)},l.appendFrame=function(a,s,u){return this.initPTS===null?void 0:c.appendFrame(a,s,u,this.initPTS,this.frameIndex)},e}(S.default);i.minProbeByteLength=4,C.default=i},"./src/demux/mp4demuxer.ts":function(x,C,A){"use strict";A.r(C);var S=A("./src/utils/mp4-tools.ts"),g=A("./src/demux/dummy-demuxed-track.ts"),f=function(){function c(r,i){this.remainderData=null,this.config=void 0,this.config=i}var o=c.prototype;return o.resetTimeStamp=function(){},o.resetInitSegment=function(){},o.resetContiguity=function(){},c.probe=function(i){return Object(S.findBox)({data:i,start:0,end:Math.min(i.length,16384)},["moof"]).length>0},o.demux=function(i){var n=i,e=Object(g.dummyTrack)();if(this.config.progressive){this.remainderData&&(n=Object(S.appendUint8Array)(this.remainderData,i));var l=Object(S.segmentValidRange)(n);this.remainderData=l.remainder,e.samples=l.valid||new Uint8Array}else e.samples=n;return{audioTrack:Object(g.dummyTrack)(),avcTrack:e,id3Track:Object(g.dummyTrack)(),textTrack:Object(g.dummyTrack)()}},o.flush=function(){var i=Object(g.dummyTrack)();return i.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(g.dummyTrack)(),avcTrack:i,id3Track:Object(g.dummyTrack)(),textTrack:Object(g.dummyTrack)()}},o.demuxSampleAes=function(i,n,e){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},o.destroy=function(){},c}();f.minProbeByteLength=1024,C.default=f},"./src/demux/mpegaudio.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"appendFrame",function(){return r}),A.d(C,"parseHeader",function(){return i}),A.d(C,"isHeaderPattern",function(){return n}),A.d(C,"isHeader",function(){return e}),A.d(C,"canParse",function(){return l}),A.d(C,"probe",function(){return t});var S=null,g=[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],f=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],c=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],o=[0,1,1,4];function r(a,s,u,h,p){if(u+24>s.length)return;var m=i(s,u);if(m&&u+m.frameLength<=s.length){var v=m.samplesPerFrame*9e4/m.sampleRate,y=h+p*v,E={unit:s.subarray(u,u+m.frameLength),pts:y,dts:y};return a.config=[],a.channelCount=m.channelCount,a.samplerate=m.sampleRate,a.samples.push(E),{sample:E,length:m.frameLength,missing:0}}}function i(a,s){var u=a[s+1]>>3&3,h=a[s+1]>>1&3,p=a[s+2]>>4&15,m=a[s+2]>>2&3;if(u!==1&&p!==0&&p!==15&&m!==3){var v=a[s+2]>>1&1,y=a[s+3]>>6,E=u===3?3-h:h===3?3:4,T=g[E*14+p-1]*1e3,b=u===3?0:u===2?1:2,w=f[b*3+m],_=y===3?1:2,I=c[u][h],L=o[h],N=I*8*L,D=Math.floor(I*T/w+v)*L;if(S===null){var R=navigator.userAgent||"",k=R.match(/Chrome\/(\d+)/i);S=k?parseInt(k[1]):0}var M=!!S&&S<=87;return M&&h===2&&T>=224e3&&y===0&&(a[s+3]=a[s+3]|128),{sampleRate:w,channelCount:_,frameLength:D,samplesPerFrame:N}}}function n(a,s){return a[s]===255&&(a[s+1]&224)===224&&(a[s+1]&6)!==0}function e(a,s){return s+1<a.length&&n(a,s)}function l(a,s){var u=4;return n(a,s)&&u<=a.length-s}function t(a,s){if(s+1<a.length&&n(a,s)){var u=4,h=i(a,s),p=u;h!=null&&h.frameLength&&(p=h.frameLength);var m=s+p;return m===a.length||e(a,m)}return!1}},"./src/demux/sample-aes.ts":function(x,C,A){"use strict";A.r(C);var S=A("./src/crypt/decrypter.ts"),g=A("./src/demux/tsdemuxer.ts"),f=function(){function c(r,i,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new S.default(r,i,{removePKCS7Padding:!1})}var o=c.prototype;return o.decryptBuffer=function(i,n){this.decrypter.decrypt(i,this.keyData.key.buffer,this.keyData.iv.buffer,n)},o.decryptAacSample=function(i,n,e,l){var t=i[n].unit,a=t.subarray(16,t.length-t.length%16),s=a.buffer.slice(a.byteOffset,a.byteOffset+a.length),u=this;this.decryptBuffer(s,function(h){var p=new Uint8Array(h);t.set(p,16),l||u.decryptAacSamples(i,n+1,e)})},o.decryptAacSamples=function(i,n,e){for(;;n++){if(n>=i.length){e();return}if(i[n].unit.length<32)continue;var l=this.decrypter.isSync();if(this.decryptAacSample(i,n,e,l),!l)return}},o.getAvcEncryptedData=function(i){for(var n=Math.floor((i.length-48)/160)*16+16,e=new Int8Array(n),l=0,t=32;t<i.length-16;t+=160,l+=16)e.set(i.subarray(t,t+16),l);return e},o.getAvcDecryptedUnit=function(i,n){for(var e=new Uint8Array(n),l=0,t=32;t<i.length-16;t+=160,l+=16)i.set(e.subarray(l,l+16),t);return i},o.decryptAvcSample=function(i,n,e,l,t,a){var s=Object(g.discardEPB)(t.data),u=this.getAvcEncryptedData(s),h=this;this.decryptBuffer(u.buffer,function(p){t.data=h.getAvcDecryptedUnit(s,p),a||h.decryptAvcSamples(i,n,e+1,l)})},o.decryptAvcSamples=function(i,n,e,l){if(i instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;n++,e=0){if(n>=i.length){l();return}for(var t=i[n].units;!(e>=t.length);e++){var a=t[e];if(a.data.length<=48||a.type!==1&&a.type!==5)continue;var s=this.decrypter.isSync();if(this.decryptAvcSample(i,n,e,l,a,s),!s)return}}},c}();C.default=f},"./src/demux/transmuxer-interface.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return t});var S=A("./node_modules/webworkify-webpack/index.js"),g=A.n(S),f=A("./src/events.ts"),c=A("./src/demux/transmuxer.ts"),o=A("./src/utils/logger.ts"),r=A("./src/errors.ts"),i=A("./src/utils/mediasource-helper.ts"),n=A("./node_modules/eventemitter3/index.js"),e=A.n(n),l=Object(i.getMediaSource)()||{isTypeSupported:function(){return!1}},t=function(){function a(u,h,p,m){var v=this;this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.worker=void 0,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.hls=u,this.id=h,this.onTransmuxComplete=p,this.onFlush=m;var y=u.config,E=function(I,L){L=L||{},L.frag=v.frag,L.id=v.id,u.trigger(I,L)};this.observer=new n.EventEmitter,this.observer.on(f.Events.FRAG_DECRYPTED,E),this.observer.on(f.Events.ERROR,E);var T={mp4:l.isTypeSupported("video/mp4"),mpeg:l.isTypeSupported("audio/mpeg"),mp3:l.isTypeSupported('audio/mp4; codecs="mp3"')},b=navigator.vendor;if(y.enableWorker&&typeof Worker!="undefined"){o.logger.log("demuxing in webworker");var w;try{w=this.worker=S("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),w.addEventListener("message",this.onwmsg),w.onerror=function(_){u.trigger(f.Events.ERROR,{type:r.ErrorTypes.OTHER_ERROR,details:r.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(_.message+" ("+_.filename+":"+_.lineno+")")})},w.postMessage({cmd:"init",typeSupported:T,vendor:b,id:h,config:JSON.stringify(y)})}catch(_){o.logger.warn("Error in worker:",_),o.logger.error("Error while initializing DemuxerWorker, fallback to inline"),w&&self.URL.revokeObjectURL(w.objectURL),this.transmuxer=new c.default(this.observer,T,y,b,h),this.worker=null}}else this.transmuxer=new c.default(this.observer,T,y,b,h)}var s=a.prototype;return s.destroy=function(){var h=this.worker;if(h)h.removeEventListener("message",this.onwmsg),h.terminate(),this.worker=null;else{var p=this.transmuxer;p&&(p.destroy(),this.transmuxer=null)}var m=this.observer;m&&m.removeAllListeners(),this.observer=null},s.push=function(h,p,m,v,y,E,T,b,w,_){var I,L,N=this;w.transmuxing.start=self.performance.now();var D=this.transmuxer,R=this.worker,k=E?E.start:y.start,M=y.decryptdata,U=this.frag,B=!(U&&y.cc===U.cc),j=!(U&&w.level===U.level),W=U?w.sn-U.sn:-1,V=this.part?w.part-this.part.index:1,z=!j&&(W===1||W===0&&V===1),J=self.performance.now();(j||W||y.stats.parsing.start===0)&&(y.stats.parsing.start=J),E&&(V||!z)&&(E.stats.parsing.start=J);var Z=!(U&&((I=y.initSegment)===null||I===void 0?void 0:I.url)===((L=U.initSegment)===null||L===void 0?void 0:L.url)),de=new c.TransmuxState(B,z,b,j,k,Z);if(!z||B||Z){o.logger.log("[transmuxer-interface, "+y.type+"]: Starting new transmux session for sn: "+w.sn+" p: "+w.part+" level: "+w.level+" id: "+w.id+`
|
|
|
discontinuity: `+B+`
|
|
|
trackSwitch: `+j+`
|
|
|
contiguous: `+z+`
|
|
|
accurateTimeOffset: `+b+`
|
|
|
timeOffset: `+k+`
|
|
|
initSegmentChange: `+Z);var ie=new c.TransmuxConfig(m,v,p,T,_);this.configureTransmuxer(ie)}if(this.frag=y,this.part=E,R)R.postMessage({cmd:"demux",data:h,decryptdata:M,chunkMeta:w,state:de},h instanceof ArrayBuffer?[h]:[]);else if(D){var ve=D.push(h,M,w,de);Object(c.isPromise)(ve)?ve.then(function(xe){N.handleTransmuxComplete(xe)}):this.handleTransmuxComplete(ve)}},s.flush=function(h){var p=this;h.transmuxing.start=self.performance.now();var m=this.transmuxer,v=this.worker;if(v)v.postMessage({cmd:"flush",chunkMeta:h});else if(m){var y=m.flush(h);Object(c.isPromise)(y)?y.then(function(E){p.handleFlushResult(E,h)}):this.handleFlushResult(y,h)}},s.handleFlushResult=function(h,p){var m=this;h.forEach(function(v){m.handleTransmuxComplete(v)}),this.onFlush(p)},s.onWorkerMessage=function(h){var p=h.data,m=this.hls;switch(p.event){case"init":{self.URL.revokeObjectURL(this.worker.objectURL);break}case"transmuxComplete":{this.handleTransmuxComplete(p.data);break}case"flush":{this.onFlush(p.data);break}default:{p.data=p.data||{},p.data.frag=this.frag,p.data.id=this.id,m.trigger(p.event,p.data);break}}},s.configureTransmuxer=function(h){var p=this.worker,m=this.transmuxer;p?p.postMessage({cmd:"configure",config:h}):m&&m.configure(h)},s.handleTransmuxComplete=function(h){h.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(h)},a}()},"./src/demux/transmuxer-worker.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return r});var S=A("./src/demux/transmuxer.ts"),g=A("./src/events.ts"),f=A("./src/utils/logger.ts"),c=A("./node_modules/eventemitter3/index.js"),o=A.n(c);function r(t){var a=new c.EventEmitter,s=function(h,p){t.postMessage({event:h,data:p})};a.on(g.Events.FRAG_DECRYPTED,s),a.on(g.Events.ERROR,s),t.addEventListener("message",function(u){var h=u.data;switch(h.cmd){case"init":{var p=JSON.parse(h.config);t.transmuxer=new S.default(a,h.typeSupported,p,h.vendor,h.id),Object(f.enableLogs)(p.debug),s("init",null);break}case"configure":{t.transmuxer.configure(h.config);break}case"demux":{var m=t.transmuxer.push(h.data,h.decryptdata,h.chunkMeta,h.state);Object(S.isPromise)(m)?m.then(function(E){i(t,E)}):i(t,m);break}case"flush":{var v=h.chunkMeta,y=t.transmuxer.flush(v);Object(S.isPromise)(y)?y.then(function(E){e(t,E,v)}):e(t,y,v);break}default:break}})}function i(t,a){if(l(a.remuxResult))return;var s=[],u=a.remuxResult,h=u.audio,p=u.video;h&&n(s,h),p&&n(s,p),t.postMessage({event:"transmuxComplete",data:a},s)}function n(t,a){a.data1&&t.push(a.data1.buffer),a.data2&&t.push(a.data2.buffer)}function e(t,a,s){a.forEach(function(u){i(t,u)}),t.postMessage({event:"flush",data:s})}function l(t){return!t.audio&&!t.video&&!t.text&&!t.id3&&!t.initSegment}},"./src/demux/transmuxer.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return p}),A.d(C,"isPromise",function(){return y}),A.d(C,"TransmuxConfig",function(){return E}),A.d(C,"TransmuxState",function(){return T});var S=A("./src/events.ts"),g=A("./src/errors.ts"),f=A("./src/crypt/decrypter.ts"),c=A("./src/demux/aacdemuxer.ts"),o=A("./src/demux/mp4demuxer.ts"),r=A("./src/demux/tsdemuxer.ts"),i=A("./src/demux/mp3demuxer.ts"),n=A("./src/remux/mp4-remuxer.ts"),e=A("./src/remux/passthrough-remuxer.ts"),l=A("./src/demux/chunk-cache.ts"),t=A("./src/utils/mp4-tools.ts"),a=A("./src/utils/logger.ts"),s;try{s=self.performance.now.bind(self.performance)}catch(b){a.logger.debug("Unable to use Performance API on this environment"),s=self.Date.now}var u=[{demux:r.default,remux:n.default},{demux:o.default,remux:e.default},{demux:c.default,remux:n.default},{demux:i.default,remux:n.default}],h=1024;u.forEach(function(b){var w=b.demux;h=Math.max(h,w.minProbeByteLength)});var p=function(){function b(_,I,L,N,D){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.cache=new l.default,this.observer=_,this.typeSupported=I,this.config=L,this.vendor=N,this.id=D}var w=b.prototype;return w.configure=function(I){this.transmuxConfig=I,this.decrypter&&this.decrypter.reset()},w.push=function(I,L,N,D){var R=this,k=N.transmuxing;k.executeStart=s();var M=new Uint8Array(I),U=this.cache,B=this.config,j=this.currentTransmuxState,W=this.transmuxConfig;D&&(this.currentTransmuxState=D);var V=m(M,L);if(V&&V.method==="AES-128"){var z=this.getDecrypter();if(B.enableSoftwareAES){var J=z.softwareDecrypt(M,V.key.buffer,V.iv.buffer);if(!J)return k.executeEnd=s(),v(N);M=new Uint8Array(J)}else return this.decryptionPromise=z.webCryptoDecrypt(M,V.key.buffer,V.iv.buffer).then(function(Y){var me=R.push(Y,null,N);return R.decryptionPromise=null,me}),this.decryptionPromise}var Z=D||j,de=Z.contiguous,ie=Z.discontinuity,ve=Z.trackSwitch,xe=Z.accurateTimeOffset,_e=Z.timeOffset,Ue=Z.initSegmentChange,fe=W.audioCodec,ke=W.videoCodec,se=W.defaultInitPts,te=W.duration,Ve=W.initSegmentData;if((ie||ve||Ue)&&this.resetInitSegment(Ve,fe,ke,te),(ie||Ue)&&this.resetInitialTimestamp(se),de||this.resetContiguity(),this.needsProbing(M,ie,ve)){if(U.dataLength){var ae=U.flush();M=Object(t.appendUint8Array)(ae,M)}this.configureTransmuxer(M,W)}var Q=this.transmux(M,V,_e,xe,N),G=this.currentTransmuxState;return G.contiguous=!0,G.discontinuity=!1,G.trackSwitch=!1,k.executeEnd=s(),Q},w.flush=function(I){var L=this,N=I.transmuxing;N.executeStart=s();var D=this.decrypter,R=this.cache,k=this.currentTransmuxState,M=this.decryptionPromise;if(M)return M.then(function(){return L.flush(I)});var U=[],B=k.timeOffset;if(D){var j=D.flush();j&&U.push(this.push(j,null,I))}var W=R.dataLength;R.reset();var V=this.demuxer,z=this.remuxer;if(!V||!z)return W>=h&&this.observer.emit(S.Events.ERROR,S.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),N.executeEnd=s(),[v(I)];var J=V.flush(B);return y(J)?J.then(function(Z){return L.flushRemux(U,Z,I),U}):(this.flushRemux(U,J,I),U)},w.flushRemux=function(I,L,N){var D=L.audioTrack,R=L.avcTrack,k=L.id3Track,M=L.textTrack,U=this.currentTransmuxState,B=U.accurateTimeOffset,j=U.timeOffset;a.logger.log("[transmuxer.ts]: Flushed fragment "+N.sn+(N.part>-1?" p: "+N.part:"")+" of level "+N.level);var W=this.remuxer.remux(D,R,k,M,j,B,!0,this.id);I.push({remuxResult:W,chunkMeta:N}),N.transmuxing.executeEnd=s()},w.resetInitialTimestamp=function(I){var L=this.demuxer,N=this.remuxer;if(!L||!N)return;L.resetTimeStamp(I),N.resetTimeStamp(I)},w.resetContiguity=function(){var I=this.demuxer,L=this.remuxer;if(!I||!L)return;I.resetContiguity(),L.resetNextTimestamp()},w.resetInitSegment=function(I,L,N,D){var R=this.demuxer,k=this.remuxer;if(!R||!k)return;R.resetInitSegment(L,N,D),k.resetInitSegment(I,L,N)},w.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},w.transmux=function(I,L,N,D,R){var k;return L&&L.method==="SAMPLE-AES"?k=this.transmuxSampleAes(I,L,N,D,R):k=this.transmuxUnencrypted(I,N,D,R),k},w.transmuxUnencrypted=function(I,L,N,D){var R=this.demuxer.demux(I,L,!1,!this.config.progressive),k=R.audioTrack,M=R.avcTrack,U=R.id3Track,B=R.textTrack,j=this.remuxer.remux(k,M,U,B,L,N,!1,this.id);return{remuxResult:j,chunkMeta:D}},w.transmuxSampleAes=function(I,L,N,D,R){var k=this;return this.demuxer.demuxSampleAes(I,L,N).then(function(M){var U=k.remuxer.remux(M.audioTrack,M.avcTrack,M.id3Track,M.textTrack,N,D,!1,k.id);return{remuxResult:U,chunkMeta:R}})},w.configureTransmuxer=function(I,L){for(var N=this.config,D=this.observer,R=this.typeSupported,k=this.vendor,M=L.audioCodec,U=L.defaultInitPts,B=L.duration,j=L.initSegmentData,W=L.videoCodec,V,z=0,J=u.length;z<J;z++)if(u[z].demux.probe(I)){V=u[z];break}V||(a.logger.warn("Failed to find demuxer by probing frag, treating as mp4 passthrough"),V={demux:o.default,remux:e.default});var Z=this.demuxer,de=this.remuxer,ie=V.remux,ve=V.demux;(!de||!(de instanceof ie))&&(this.remuxer=new ie(D,N,R,k)),(!Z||!(Z instanceof ve))&&(this.demuxer=new ve(D,N,R),this.probe=ve.probe),this.resetInitSegment(j,M,W,B),this.resetInitialTimestamp(U)},w.needsProbing=function(I,L,N){return!this.demuxer||!this.remuxer||L||N},w.getDecrypter=function(){var I=this.decrypter;return I||(I=this.decrypter=new f.default(this.observer,this.config)),I},b}();function m(b,w){var _=null;return b.byteLength>0&&w!=null&&w.key!=null&&w.iv!==null&&w.method!=null&&(_=w),_}var v=function(w){return{remuxResult:{},chunkMeta:w}};function y(b){return"then"in b&&b.then instanceof Function}var E=function(w,_,I,L,N){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=w,this.videoCodec=_,this.initSegmentData=I,this.duration=L,this.defaultInitPts=N},T=function(w,_,I,L,N,D){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=w,this.contiguous=_,this.accurateTimeOffset=I,this.trackSwitch=L,this.timeOffset=N,this.initSegmentChange=D}},"./src/demux/tsdemuxer.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"discardEPB",function(){return v});var S=A("./src/demux/adts.ts"),g=A("./src/demux/mpegaudio.ts"),f=A("./src/demux/exp-golomb.ts"),c=A("./src/demux/id3.ts"),o=A("./src/demux/sample-aes.ts"),r=A("./src/events.ts"),i=A("./src/utils/mp4-tools.ts"),n=A("./src/utils/logger.ts"),e=A("./src/errors.ts"),l={video:1,audio:2,id3:3,text:4},t=function(){function y(T,b,w){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.aacLastPTS=null,this._initPTS=null,this._initDTS=null,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=T,this.config=b,this.typeSupported=w}y.probe=function(b){var w=y.syncOffset(b);return w<0?!1:(w&&n.logger.warn("MPEG2-TS detected but first sync word found @ offset "+w+", junk ahead ?"),!0)},y.syncOffset=function(b){for(var w=Math.min(1e3,b.length-3*188),_=0;_<w;){if(b[_]===71&&b[_+188]===71&&b[_+2*188]===71)return _;_++}return-1},y.createTrack=function(b,w){return{container:b==="video"||b==="audio"?"video/mp2t":void 0,type:b,id:l[b],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:b==="audio"?w:void 0}};var E=y.prototype;return E.resetInitSegment=function(b,w,_){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=y.createTrack("video",_),this._audioTrack=y.createTrack("audio",_),this._id3Track=y.createTrack("id3",_),this._txtTrack=y.createTrack("text",_),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=b,this.videoCodec=w,this._duration=_},E.resetTimeStamp=function(){},E.resetContiguity=function(){var b=this._audioTrack,w=this._avcTrack,_=this._id3Track;b&&(b.pesData=null),w&&(w.pesData=null),_&&(_.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},E.demux=function(b,w,_,I){_===void 0&&(_=!1),I===void 0&&(I=!1),_||(this.sampleAes=null);var L,N=this._avcTrack,D=this._audioTrack,R=this._id3Track,k=N.pid,M=N.pesData,U=D.pid,B=R.pid,j=D.pesData,W=R.pesData,V=!1,z=this.pmtParsed,J=this._pmtId,Z=b.length;if(this.remainderData&&(b=Object(i.appendUint8Array)(this.remainderData,b),Z=b.length,this.remainderData=null),Z<188&&!I)return this.remainderData=b,{audioTrack:D,avcTrack:N,id3Track:R,textTrack:this._txtTrack};var de=Math.max(0,y.syncOffset(b));Z-=(Z+de)%188,Z<b.byteLength&&!I&&(this.remainderData=new Uint8Array(b.buffer,Z,b.buffer.byteLength-Z));for(var ie=0,ve=de;ve<Z;ve+=188)if(b[ve]===71){var xe=!!(b[ve+1]&64),_e=((b[ve+1]&31)<<8)+b[ve+2],Ue=(b[ve+3]&48)>>4,fe=void 0;if(Ue>1){if(fe=ve+5+b[ve+4],fe===ve+188)continue}else fe=ve+4;switch(_e){case k:xe&&(M&&(L=h(M))&&this.parseAVCPES(L,!1),M={data:[],size:0}),M&&(M.data.push(b.subarray(fe,ve+188)),M.size+=ve+188-fe);break;case U:xe&&(j&&(L=h(j))&&(D.isAAC?this.parseAACPES(L):this.parseMPEGPES(L)),j={data:[],size:0}),j&&(j.data.push(b.subarray(fe,ve+188)),j.size+=ve+188-fe);break;case B:xe&&(W&&(L=h(W))&&this.parseID3PES(L),W={data:[],size:0}),W&&(W.data.push(b.subarray(fe,ve+188)),W.size+=ve+188-fe);break;case 0:xe&&(fe+=b[fe]+1),J=this._pmtId=s(b,fe);break;case J:{xe&&(fe+=b[fe]+1);var ke=u(b,fe,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,_);k=ke.avc,k>0&&(N.pid=k),U=ke.audio,U>0&&(D.pid=U,D.isAAC=ke.isAAC),B=ke.id3,B>0&&(R.pid=B),V&&!z&&(n.logger.log("reparse from beginning"),V=!1,ve=de-188),z=this.pmtParsed=!0;break}case 17:case 8191:break;default:V=!0;break}}else ie++;ie>0&&this.observer.emit(r.Events.ERROR,r.Events.ERROR,{type:e.ErrorTypes.MEDIA_ERROR,details:e.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"Found "+ie+" TS packet/s that do not start with 0x47"}),N.pesData=M,D.pesData=j,R.pesData=W;var se={audioTrack:D,avcTrack:N,id3Track:R,textTrack:this._txtTrack};return I&&this.extractRemainingSamples(se),se},E.flush=function(){var b=this.remainderData;this.remainderData=null;var w;return b?w=this.demux(b,-1,!1,!0):w={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(w),this.sampleAes?this.decrypt(w,this.sampleAes):w},E.extractRemainingSamples=function(b){var w=b.audioTrack,_=b.avcTrack,I=b.id3Track,L=_.pesData,N=w.pesData,D=I.pesData,R;L&&(R=h(L))?(this.parseAVCPES(R,!0),_.pesData=null):_.pesData=L,N&&(R=h(N))?(w.isAAC?this.parseAACPES(R):this.parseMPEGPES(R),w.pesData=null):(N!=null&&N.size&&n.logger.log("last AAC PES packet truncated,might overlap between fragments"),w.pesData=N),D&&(R=h(D))?(this.parseID3PES(R),I.pesData=null):I.pesData=D},E.demuxSampleAes=function(b,w,_){var I=this.demux(b,_,!0,!this.config.progressive),L=this.sampleAes=new o.default(this.observer,this.config,w);return this.decrypt(I,L)},E.decrypt=function(b,w){return new Promise(function(_){var I=b.audioTrack,L=b.avcTrack;I.samples&&I.isAAC?w.decryptAacSamples(I.samples,0,function(){L.samples?w.decryptAvcSamples(L.samples,0,0,function(){_(b)}):_(b)}):L.samples&&w.decryptAvcSamples(L.samples,0,0,function(){_(b)})})},E.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},E.parseAVCPES=function(b,w){var _=this,I=this._avcTrack,L=this.parseAVCNALu(b.data),N=!1,D=this.avcSample,R,k=!1;b.data=null,D&&L.length&&!I.audFound&&(p(D,I),D=this.avcSample=a(!1,b.pts,b.dts,"")),L.forEach(function(M){switch(M.type){case 1:{R=!0,D||(D=_.avcSample=a(!0,b.pts,b.dts,"")),N&&(D.debug+="NDR "),D.frame=!0;var U=M.data;if(k&&U.length>4){var B=new f.default(U).readSliceType();(B===2||B===4||B===7||B===9)&&(D.key=!0)}break}case 5:R=!0,D||(D=_.avcSample=a(!0,b.pts,b.dts,"")),N&&(D.debug+="IDR "),D.key=!0,D.frame=!0;break;case 6:{R=!0,N&&D&&(D.debug+="SEI ");var j=new f.default(v(M.data));j.readUByte();for(var W=0,V=0,z=!1,J=0;!z&&j.bytesAvailable>1;){W=0;do J=j.readUByte(),W+=J;while(J===255);V=0;do J=j.readUByte(),V+=J;while(J===255);if(W===4&&j.bytesAvailable!==0){z=!0;var Z=j.readUByte();if(Z===181){var de=j.readUShort();if(de===49){var ie=j.readUInt();if(ie===1195456820){var ve=j.readUByte();if(ve===3){for(var xe=j.readUByte(),_e=j.readUByte(),Ue=31&xe,fe=[xe,_e],ke=0;ke<Ue;ke++)fe.push(j.readUByte()),fe.push(j.readUByte()),fe.push(j.readUByte());m(_._txtTrack.samples,{type:3,pts:b.pts,bytes:fe})}}}}}else if(W===5&&j.bytesAvailable!==0){if(z=!0,V>16){for(var se=[],te=0;te<16;te++)se.push(j.readUByte().toString(16)),(te===3||te===5||te===7||te===9)&&se.push("-");for(var Ve=V-16,ae=new Uint8Array(Ve),Q=0;Q<Ve;Q++)ae[Q]=j.readUByte();m(_._txtTrack.samples,{pts:b.pts,payloadType:W,uuid:se.join(""),userData:Object(c.utf8ArrayToStr)(ae),userDataBytes:ae})}}else if(V<j.bytesAvailable)for(var G=0;G<V;G++)j.readUByte()}break}case 7:if(R=!0,k=!0,N&&D&&(D.debug+="SPS "),!I.sps){var Y=new f.default(M.data),me=Y.readSPS();I.width=me.width,I.height=me.height,I.pixelRatio=me.pixelRatio,I.sps=[M.data],I.duration=_._duration;for(var ue=M.data.subarray(1,4),Ce="avc1.",Ie=0;Ie<3;Ie++){var ce=ue[Ie].toString(16);ce.length<2&&(ce="0"+ce),Ce+=ce}I.codec=Ce}break;case 8:R=!0,N&&D&&(D.debug+="PPS "),I.pps||(I.pps=[M.data]);break;case 9:R=!1,I.audFound=!0,D&&p(D,I),D=_.avcSample=a(!1,b.pts,b.dts,N?"AUD ":"");break;case 12:R=!1;break;default:R=!1,D&&(D.debug+="unknown NAL "+M.type+" ");break}if(D&&R){var Ae=D.units;Ae.push(M)}}),w&&D&&(p(D,I),this.avcSample=null)},E.getLastNalUnit=function(){var b,w=this.avcSample,_;if(!w||w.units.length===0){var I=this._avcTrack.samples;w=I[I.length-1]}if((b=w)!==null&&b!==void 0&&b.units){var L=w.units;_=L[L.length-1]}return _},E.parseAVCNALu=function(b){var w=b.byteLength,_=this._avcTrack,I=_.naluState||0,L=I,N=[],D=0,R,k,M,U=-1,B=0;for(I===-1&&(U=0,B=b[0]&31,I=0,D=1);D<w;){if(R=b[D++],!I){I=R?0:1;continue}if(I===1){I=R?0:2;continue}if(!R)I=3;else if(R===1){if(U>=0){var j={data:b.subarray(U,D-I-1),type:B};N.push(j)}else{var W=this.getLastNalUnit();if(W&&(L&&D<=4-L&&(W.state&&(W.data=W.data.subarray(0,W.data.byteLength-L))),k=D-I-1,k>0)){var V=new Uint8Array(W.data.byteLength+k);V.set(W.data,0),V.set(b.subarray(0,k),W.data.byteLength),W.data=V,W.state=0}}D<w?(M=b[D]&31,U=D,B=M,I=0):I=-1}else I=0}if(U>=0&&I>=0){var z={data:b.subarray(U,w),type:B,state:I};N.push(z)}if(N.length===0){var J=this.getLastNalUnit();if(J){var Z=new Uint8Array(J.data.byteLength+b.byteLength);Z.set(J.data,0),Z.set(b,J.data.byteLength),J.data=Z}}return _.naluState=I,N},E.parseAACPES=function(b){var w=0,_=this._audioTrack,I=this.aacOverFlow,L=b.data;if(I){this.aacOverFlow=null;var N=I.sample.unit.byteLength,D=Math.min(I.missing,N),R=N-D;I.sample.unit.set(L.subarray(0,D),R),_.samples.push(I.sample),w=I.missing}var k,M;for(k=w,M=L.length;k<M-1&&!S.isHeader(L,k);k++);if(k!==w){var U,B;if(k<M-1?(U="AAC PES did not start with ADTS header,offset:"+k,B=!1):(U="no ADTS header found in AAC PES",B=!0),n.logger.warn("parsing error:"+U),this.observer.emit(r.Events.ERROR,r.Events.ERROR,{type:e.ErrorTypes.MEDIA_ERROR,details:e.ErrorDetails.FRAG_PARSING_ERROR,fatal:B,reason:U}),B)return}S.initTrackConfig(_,this.observer,L,k,this.audioCodec);var j;if(b.pts!==void 0)j=b.pts;else if(I){var W=S.getFrameDuration(_.samplerate);j=I.sample.pts+W}else{n.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var V=0;k<M;)if(S.isHeader(L,k)){if(k+5<M){var z=S.appendFrame(_,L,k,j,V);if(z)if(z.missing)this.aacOverFlow=z;else{k+=z.length,V++;continue}}break}else k++},E.parseMPEGPES=function(b){var w=b.data,_=w.length,I=0,L=0,N=b.pts;if(N===void 0){n.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;L<_;)if(g.isHeader(w,L)){var D=g.appendFrame(this._audioTrack,w,L,N,I);if(D)L+=D.length,I++;else break}else L++},E.parseID3PES=function(b){if(b.pts===void 0){n.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(b)},y}();t.minProbeByteLength=188;function a(y,E,T,b){return{key:y,frame:!1,pts:E,dts:T,units:[],debug:b,length:0}}function s(y,E){return(y[E+10]&31)<<8|y[E+11]}function u(y,E,T,b){var w={audio:-1,avc:-1,id3:-1,isAAC:!0},_=(y[E+1]&15)<<8|y[E+2],I=E+3+_-4,L=(y[E+10]&15)<<8|y[E+11];for(E+=12+L;E<I;){var N=(y[E+1]&31)<<8|y[E+2];switch(y[E]){case 207:if(!b){n.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:w.audio===-1&&(w.audio=N);break;case 21:w.id3===-1&&(w.id3=N);break;case 219:if(!b){n.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:w.avc===-1&&(w.avc=N);break;case 3:case 4:T?w.audio===-1&&(w.audio=N,w.isAAC=!1):n.logger.log("MPEG audio found, not supported in this browser");break;case 36:n.logger.warn("Unsupported HEVC stream type found");break;default:break}E+=((y[E+3]&15)<<8|y[E+4])+5}return w}function h(y){var E=0,T,b,w,_,I,L=y.data;if(!y||y.size===0)return null;for(;L[0].length<19&&L.length>1;){var N=new Uint8Array(L[0].length+L[1].length);N.set(L[0]),N.set(L[1],L[0].length),L[0]=N,L.splice(1,1)}T=L[0];var D=(T[0]<<16)+(T[1]<<8)+T[2];if(D===1){if(b=(T[4]<<8)+T[5],b&&b>y.size-6)return null;var R=T[7];R&192&&(_=(T[9]&14)*536870912+(T[10]&255)*4194304+(T[11]&254)*16384+(T[12]&255)*128+(T[13]&254)/2,R&64?(I=(T[14]&14)*536870912+(T[15]&255)*4194304+(T[16]&254)*16384+(T[17]&255)*128+(T[18]&254)/2,_-I>60*9e4&&(n.logger.warn(Math.round((_-I)/9e4)+"s delta between PTS and DTS, align them"),_=I)):I=_),w=T[8];var k=w+9;if(y.size<=k)return null;y.size-=k;for(var M=new Uint8Array(y.size),U=0,B=L.length;U<B;U++){T=L[U];var j=T.byteLength;if(k)if(k>j){k-=j;continue}else T=T.subarray(k),j-=k,k=0;M.set(T,E),E+=j}return b&&(b-=w+3),{data:M,pts:_,dts:I,len:b}}return null}function p(y,E){if(y.units.length&&y.frame){if(y.pts===void 0){var T=E.samples,b=T.length;if(b){var w=T[b-1];y.pts=w.pts,y.dts=w.dts}else{E.dropped++;return}}E.samples.push(y)}y.debug.length&&n.logger.log(y.pts+"/"+y.dts+":"+y.debug)}function m(y,E){var T=y.length;if(T>0){if(E.pts>=y[T-1].pts)y.push(E);else for(var b=T-1;b>=0;b--)if(E.pts<y[b].pts){y.splice(b,0,E);break}}else y.push(E)}function v(y){for(var E=y.byteLength,T=[],b=1;b<E-2;)y[b]===0&&y[b+1]===0&&y[b+2]===3?(T.push(b+2),b+=2):b++;if(T.length===0)return y;var w=E-T.length,_=new Uint8Array(w),I=0;for(b=0;b<w;I++,b++)I===T[0]&&(I++,T.shift()),_[b]=y[I];return _}C.default=t},"./src/errors.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"ErrorTypes",function(){return S}),A.d(C,"ErrorDetails",function(){return g});var S;(function(f){f.NETWORK_ERROR="networkError",f.MEDIA_ERROR="mediaError",f.KEY_SYSTEM_ERROR="keySystemError",f.MUX_ERROR="muxError",f.OTHER_ERROR="otherError"})(S||(S={}));var g;(function(f){f.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",f.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",f.KEY_SYSTEM_NO_SESSION="keySystemNoSession",f.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",f.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",f.MANIFEST_LOAD_ERROR="manifestLoadError",f.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",f.MANIFEST_PARSING_ERROR="manifestParsingError",f.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",f.LEVEL_EMPTY_ERROR="levelEmptyError",f.LEVEL_LOAD_ERROR="levelLoadError",f.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",f.LEVEL_SWITCH_ERROR="levelSwitchError",f.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",f.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",f.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",f.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",f.FRAG_LOAD_ERROR="fragLoadError",f.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",f.FRAG_DECRYPT_ERROR="fragDecryptError",f.FRAG_PARSING_ERROR="fragParsingError",f.REMUX_ALLOC_ERROR="remuxAllocError",f.KEY_LOAD_ERROR="keyLoadError",f.KEY_LOAD_TIMEOUT="keyLoadTimeOut",f.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",f.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",f.BUFFER_APPEND_ERROR="bufferAppendError",f.BUFFER_APPENDING_ERROR="bufferAppendingError",f.BUFFER_STALLED_ERROR="bufferStalledError",f.BUFFER_FULL_ERROR="bufferFullError",f.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",f.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",f.INTERNAL_EXCEPTION="internalException",f.INTERNAL_ABORTED="aborted",f.UNKNOWN="unknown"})(g||(g={}))},"./src/events.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"Events",function(){return S});var S;(function(g){g.MEDIA_ATTACHING="hlsMediaAttaching",g.MEDIA_ATTACHED="hlsMediaAttached",g.MEDIA_DETACHING="hlsMediaDetaching",g.MEDIA_DETACHED="hlsMediaDetached",g.BUFFER_RESET="hlsBufferReset",g.BUFFER_CODECS="hlsBufferCodecs",g.BUFFER_CREATED="hlsBufferCreated",g.BUFFER_APPENDING="hlsBufferAppending",g.BUFFER_APPENDED="hlsBufferAppended",g.BUFFER_EOS="hlsBufferEos",g.BUFFER_FLUSHING="hlsBufferFlushing",g.BUFFER_FLUSHED="hlsBufferFlushed",g.MANIFEST_LOADING="hlsManifestLoading",g.MANIFEST_LOADED="hlsManifestLoaded",g.MANIFEST_PARSED="hlsManifestParsed",g.LEVEL_SWITCHING="hlsLevelSwitching",g.LEVEL_SWITCHED="hlsLevelSwitched",g.LEVEL_LOADING="hlsLevelLoading",g.LEVEL_LOADED="hlsLevelLoaded",g.LEVEL_UPDATED="hlsLevelUpdated",g.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",g.LEVELS_UPDATED="hlsLevelsUpdated",g.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",g.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",g.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",g.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",g.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",g.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",g.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",g.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",g.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",g.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",g.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",g.CUES_PARSED="hlsCuesParsed",g.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",g.INIT_PTS_FOUND="hlsInitPtsFound",g.FRAG_LOADING="hlsFragLoading",g.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",g.FRAG_LOADED="hlsFragLoaded",g.FRAG_DECRYPTED="hlsFragDecrypted",g.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",g.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",g.FRAG_PARSING_METADATA="hlsFragParsingMetadata",g.FRAG_PARSED="hlsFragParsed",g.FRAG_BUFFERED="hlsFragBuffered",g.FRAG_CHANGED="hlsFragChanged",g.FPS_DROP="hlsFpsDrop",g.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",g.ERROR="hlsError",g.DESTROYING="hlsDestroying",g.KEY_LOADING="hlsKeyLoading",g.KEY_LOADED="hlsKeyLoaded",g.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",g.BACK_BUFFER_REACHED="hlsBackBufferReached"})(S||(S={}))},"./src/hls.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return y});var S=A("./node_modules/url-toolkit/src/url-toolkit.js"),g=A.n(S),f=A("./src/loader/playlist-loader.ts"),c=A("./src/loader/key-loader.ts"),o=A("./src/controller/id3-track-controller.ts"),r=A("./src/controller/latency-controller.ts"),i=A("./src/controller/level-controller.ts"),n=A("./src/controller/fragment-tracker.ts"),e=A("./src/controller/stream-controller.ts"),l=A("./src/is-supported.ts"),t=A("./src/utils/logger.ts"),a=A("./src/config.ts"),s=A("./node_modules/eventemitter3/index.js"),u=A.n(s),h=A("./src/events.ts"),p=A("./src/errors.ts");function m(E,T){for(var b=0;b<T.length;b++){var w=T[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(E,w.key,w)}}function v(E,T,b){return T&&m(E.prototype,T),b&&m(E,b),E}var y=function(){E.isSupported=function(){return Object(l.isSupported)()};function E(b){b===void 0&&(b={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new s.EventEmitter,this._autoLevelCapping=void 0,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;var w=this.config=Object(a.mergeConfig)(E.DefaultConfig,b);this.userConfig=b,Object(t.enableLogs)(w.debug),this._autoLevelCapping=-1,w.progressive&&Object(a.enableStreamingMode)(w);var _=w.abrController,I=w.bufferController,L=w.capLevelController,N=w.fpsController,D=this.abrController=new _(this),R=this.bufferController=new I(this),k=this.capLevelController=new L(this),M=new N(this),U=new f.default(this),B=new c.default(this),j=new o.default(this),W=this.levelController=new i.default(this),V=new n.FragmentTracker(this),z=this.streamController=new e.default(this,V);k.setStreamController(z),M.setStreamController(z);var J=[W,z];this.networkControllers=J;var Z=[U,B,D,R,k,M,j,V];this.audioTrackController=this.createController(w.audioTrackController,null,J),this.createController(w.audioStreamController,V,J),this.subtitleTrackController=this.createController(w.subtitleTrackController,null,J),this.createController(w.subtitleStreamController,V,J),this.createController(w.timelineController,null,Z),this.emeController=this.createController(w.emeController,null,Z),this.cmcdController=this.createController(w.cmcdController,null,Z),this.latencyController=this.createController(r.default,null,Z),this.coreComponents=Z}var T=E.prototype;return T.createController=function(w,_,I){if(w){var L=_?new w(this,_):new w(this);return I&&I.push(L),L}return null},T.on=function(w,_,I){I===void 0&&(I=this),this._emitter.on(w,_,I)},T.once=function(w,_,I){I===void 0&&(I=this),this._emitter.once(w,_,I)},T.removeAllListeners=function(w){this._emitter.removeAllListeners(w)},T.off=function(w,_,I,L){I===void 0&&(I=this),this._emitter.off(w,_,I,L)},T.listeners=function(w){return this._emitter.listeners(w)},T.emit=function(w,_,I){return this._emitter.emit(w,_,I)},T.trigger=function(w,_){if(this.config.debug)return this.emit(w,w,_);try{return this.emit(w,w,_)}catch(I){t.logger.error("An internal error happened while handling event "+w+'. Error message: "'+I.message+'". Here is a stacktrace:',I),this.trigger(h.Events.ERROR,{type:p.ErrorTypes.OTHER_ERROR,details:p.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:w,error:I})}return!1},T.listenerCount=function(w){return this._emitter.listenerCount(w)},T.destroy=function(){t.logger.log("destroy"),this.trigger(h.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(w){return w.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(w){return w.destroy()}),this.coreComponents.length=0},T.attachMedia=function(w){t.logger.log("attachMedia"),this._media=w,this.trigger(h.Events.MEDIA_ATTACHING,{media:w})},T.detachMedia=function(){t.logger.log("detachMedia"),this.trigger(h.Events.MEDIA_DETACHING,void 0),this._media=null},T.loadSource=function(w){this.stopLoad();var _=this.media,I=this.url,L=this.url=S.buildAbsoluteURL(self.location.href,w,{alwaysNormalize:!0});t.logger.log("loadSource:"+L),_&&I&&I!==L&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(_)),this.trigger(h.Events.MANIFEST_LOADING,{url:w})},T.startLoad=function(w){w===void 0&&(w=-1),t.logger.log("startLoad("+w+")"),this.networkControllers.forEach(function(_){_.startLoad(w)})},T.stopLoad=function(){t.logger.log("stopLoad"),this.networkControllers.forEach(function(w){w.stopLoad()})},T.swapAudioCodec=function(){t.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},T.recoverMediaError=function(){t.logger.log("recoverMediaError");var w=this._media;this.detachMedia(),w&&this.attachMedia(w)},T.removeLevel=function(w,_){_===void 0&&(_=0),this.levelController.removeLevel(w,_)},v(E,[{key:"levels",get:function(){var w=this.levelController.levels;return w||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(w){t.logger.log("set currentLevel:"+w),this.loadLevel=w,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(w){t.logger.log("set nextLevel:"+w),this.levelController.manualLevel=w,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(w){t.logger.log("set loadLevel:"+w),this.levelController.manualLevel=w}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(w){this.levelController.nextLoadLevel=w}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(w){t.logger.log("set firstLevel:"+w),this.levelController.firstLevel=w}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(w){t.logger.log("set startLevel:"+w),w!==-1&&(w=Math.max(w,this.minAutoLevel)),this.levelController.startLevel=w}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(w){var _=!!w;_!==this.config.capLevelToPlayerSize&&(_?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=_)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(w){this._autoLevelCapping!==w&&(t.logger.log("set autoLevelCapping:"+w),this._autoLevelCapping=w)}},{key:"bandwidthEstimate",get:function(){var w=this.abrController.bwEstimator;return w?w.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var w=this.levels,_=this.config.minAutoBitrate;if(!w)return 0;for(var I=w.length,L=0;L<I;L++)if(w[L].maxBitrate>_)return L;return 0}},{key:"maxAutoLevel",get:function(){var w=this.levels,_=this.autoLevelCapping,I;return _===-1&&w&&w.length?I=w.length-1:I=_,I}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(w){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,w)}},{key:"audioTracks",get:function(){var w=this.audioTrackController;return w?w.audioTracks:[]}},{key:"audioTrack",get:function(){var w=this.audioTrackController;return w?w.audioTrack:-1},set:function(w){var _=this.audioTrackController;_&&(_.audioTrack=w)}},{key:"subtitleTracks",get:function(){var w=this.subtitleTrackController;return w?w.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var w=this.subtitleTrackController;return w?w.subtitleTrack:-1},set:function(w){var _=this.subtitleTrackController;_&&(_.subtitleTrack=w)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var w=this.subtitleTrackController;return w?w.subtitleDisplay:!1},set:function(w){var _=this.subtitleTrackController;_&&(_.subtitleDisplay=w)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(w){this.config.lowLatencyMode=w}},{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.1.5"}},{key:"Events",get:function(){return h.Events}},{key:"ErrorTypes",get:function(){return p.ErrorTypes}},{key:"ErrorDetails",get:function(){return p.ErrorDetails}},{key:"DefaultConfig",get:function(){return E.defaultConfig?E.defaultConfig:a.hlsDefaultConfig},set:function(w){E.defaultConfig=w}}]),E}();y.defaultConfig=void 0},"./src/is-supported.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"isSupported",function(){return f}),A.d(C,"changeTypeSupported",function(){return c});var S=A("./src/utils/mediasource-helper.ts");function g(){return self.SourceBuffer||self.WebKitSourceBuffer}function f(){var o=Object(S.getMediaSource)();if(!o)return!1;var r=g(),i=o&&typeof o.isTypeSupported=="function"&&o.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),n=!r||r.prototype&&typeof r.prototype.appendBuffer=="function"&&typeof r.prototype.remove=="function";return!!i&&!!n}function c(){var o,r=g();return typeof(r==null||((o=r.prototype)===null||o===void 0)?void 0:o.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return t}),A.d(C,"LoadError",function(){return s});var S=A("./src/polyfills/number.ts"),g=A("./src/errors.ts");function f(u,h){u.prototype=Object.create(h.prototype),u.prototype.constructor=u,n(u,h)}function c(u){var h=typeof Map=="function"?new Map:void 0;return c=function(m){if(m===null||!i(m))return m;if(typeof m!="function")throw new TypeError("Super expression must either be null or a function");if(typeof h!="undefined"){if(h.has(m))return h.get(m);h.set(m,v)}function v(){return o(m,arguments,e(this).constructor)}return v.prototype=Object.create(m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),n(v,m)},c(u)}function o(u,h,p){return r()?o=Reflect.construct:o=function(v,y,E){var T=[null];T.push.apply(T,y);var b=Function.bind.apply(v,T),w=new b;return E&&n(w,E.prototype),w},o.apply(null,arguments)}function r(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(u){return!1}}function i(u){return Function.toString.call(u).indexOf("[native code]")!==-1}function n(u,h){return n=Object.setPrototypeOf||function(m,v){return m.__proto__=v,m},n(u,h)}function e(u){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(p){return p.__proto__||Object.getPrototypeOf(p)},e(u)}var l=Math.pow(2,17),t=function(){function u(p){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=p}var h=u.prototype;return h.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},h.abort=function(){this.loader&&this.loader.abort()},h.load=function(m,v){var y=this,E=m.url;if(!E)return Promise.reject(new s({type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:m,networkDetails:null},"Fragment does not have a "+(E?"part list":"url")));this.abort();var T=this.config,b=T.fLoader,w=T.loader;return new Promise(function(_,I){y.loader&&y.loader.destroy();var L=y.loader=m.loader=b?new b(T):new w(T),N=a(m),D={timeout:T.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:T.fragLoadingMaxRetryTimeout,highWaterMark:l};m.stats=L.stats,L.load(N,D,{onSuccess:function(k,M,U,B){y.resetLoader(m,L),_({frag:m,part:null,payload:k.data,networkDetails:B})},onError:function(k,M,U){y.resetLoader(m,L),I(new s({type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:m,response:k,networkDetails:U}))},onAbort:function(k,M,U){y.resetLoader(m,L),I(new s({type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:m,networkDetails:U}))},onTimeout:function(k,M,U){y.resetLoader(m,L),I(new s({type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:m,networkDetails:U}))},onProgress:function(k,M,U,B){v&&v({frag:m,part:null,payload:U,networkDetails:B})}})})},h.loadPart=function(m,v,y){var E=this;this.abort();var T=this.config,b=T.fLoader,w=T.loader;return new Promise(function(_,I){E.loader&&E.loader.destroy();var L=E.loader=m.loader=b?new b(T):new w(T),N=a(m,v),D={timeout:T.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:T.fragLoadingMaxRetryTimeout,highWaterMark:l};v.stats=L.stats,L.load(N,D,{onSuccess:function(k,M,U,B){E.resetLoader(m,L),E.updateStatsFromPart(m,v);var j={frag:m,part:v,payload:k.data,networkDetails:B};y(j),_(j)},onError:function(k,M,U){E.resetLoader(m,L),I(new s({type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:m,part:v,response:k,networkDetails:U}))},onAbort:function(k,M,U){m.stats.aborted=v.stats.aborted,E.resetLoader(m,L),I(new s({type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:m,part:v,networkDetails:U}))},onTimeout:function(k,M,U){E.resetLoader(m,L),I(new s({type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:m,part:v,networkDetails:U}))}})})},h.updateStatsFromPart=function(m,v){var y=m.stats,E=v.stats,T=E.total;if(y.loaded+=E.loaded,T){var b=Math.round(m.duration/v.duration),w=Math.min(Math.round(y.loaded/T),b),_=b-w,I=_*Math.round(y.loaded/w);y.total=y.loaded+I}else y.total=Math.max(y.loaded,y.total);var L=y.loading,N=E.loading;L.start?L.first+=N.first-N.start:(L.start=N.start,L.first=N.first),L.end=N.end},h.resetLoader=function(m,v){m.loader=null,this.loader===v&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),v.destroy()},u}();function a(u,h){h===void 0&&(h=null);var p=h||u,m={frag:u,part:h,responseType:"arraybuffer",url:p.url,headers:{},rangeStart:0,rangeEnd:0},v=p.byteRangeStartOffset,y=p.byteRangeEndOffset;return Object(S.isFiniteNumber)(v)&&Object(S.isFiniteNumber)(y)&&(m.rangeStart=v,m.rangeEnd=y),m}var s=function(u){f(h,u);function h(p){for(var m,v=arguments.length,y=new Array(v>1?v-1:0),E=1;E<v;E++)y[E-1]=arguments[E];return m=u.call.apply(u,[this].concat(y))||this,m.data=void 0,m.data=p,m}return h}(c(Error))},"./src/loader/fragment.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"ElementaryStreamTypes",function(){return t}),A.d(C,"BaseSegment",function(){return a}),A.d(C,"Fragment",function(){return s}),A.d(C,"Part",function(){return u});var S=A("./src/polyfills/number.ts"),g=A("./node_modules/url-toolkit/src/url-toolkit.js"),f=A.n(g),c=A("./src/utils/logger.ts"),o=A("./src/loader/level-key.ts"),r=A("./src/loader/load-stats.ts");function i(h,p){h.prototype=Object.create(p.prototype),h.prototype.constructor=h,n(h,p)}function n(h,p){return n=Object.setPrototypeOf||function(v,y){return v.__proto__=y,v},n(h,p)}function e(h,p){for(var m=0;m<p.length;m++){var v=p[m];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(h,v.key,v)}}function l(h,p,m){return p&&e(h.prototype,p),m&&e(h,m),h}var t;(function(h){h.AUDIO="audio",h.VIDEO="video",h.AUDIOVIDEO="audiovideo"})(t||(t={}));var a=function(){function h(m){var v;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(v={},v[t.AUDIO]=null,v[t.VIDEO]=null,v[t.AUDIOVIDEO]=null,v),this.baseurl=m}var p=h.prototype;return p.setByteRange=function(v,y){var E=v.split("@",2),T=[];E.length===1?T[0]=y?y.byteRangeEndOffset:0:T[0]=parseInt(E[1]),T[1]=parseInt(E[0])+T[0],this._byteRange=T},l(h,[{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=Object(g.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(v){this._url=v}}]),h}(),s=function(h){i(p,h);function p(v,y){var E;return E=h.call(this,y)||this,E._decryptdata=null,E.rawProgramDateTime=null,E.programDateTime=null,E.tagList=[],E.duration=0,E.sn=0,E.levelkey=void 0,E.type=void 0,E.loader=null,E.level=-1,E.cc=0,E.startPTS=void 0,E.endPTS=void 0,E.appendedPTS=void 0,E.startDTS=void 0,E.endDTS=void 0,E.start=0,E.deltaPTS=void 0,E.maxStartPTS=void 0,E.minEndPTS=void 0,E.stats=new r.LoadStats,E.urlId=0,E.data=void 0,E.bitrateTest=!1,E.title=null,E.initSegment=null,E.type=v,E}var m=p.prototype;return m.createInitializationVector=function(y){for(var E=new Uint8Array(16),T=12;T<16;T++)E[T]=y>>8*(15-T)&255;return E},m.setDecryptDataFromLevelKey=function(y,E){var T=y;return(y==null?void 0:y.method)==="AES-128"&&y.uri&&!y.iv&&(T=o.LevelKey.fromURI(y.uri),T.method=y.method,T.iv=this.createInitializationVector(E),T.keyFormat="identity"),T},m.setElementaryStreamInfo=function(y,E,T,b,w,_){_===void 0&&(_=!1);var I=this.elementaryStreams,L=I[y];if(!L){I[y]={startPTS:E,endPTS:T,startDTS:b,endDTS:w,partial:_};return}L.startPTS=Math.min(L.startPTS,E),L.endPTS=Math.max(L.endPTS,T),L.startDTS=Math.min(L.startDTS,b),L.endDTS=Math.max(L.endDTS,w)},m.clearElementaryStreamInfo=function(){var y=this.elementaryStreams;y[t.AUDIO]=null,y[t.VIDEO]=null,y[t.AUDIOVIDEO]=null},l(p,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var y=this.sn;typeof y!="number"&&(this.levelkey&&this.levelkey.method==="AES-128"&&!this.levelkey.iv&&c.logger.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),y=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,y)}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(this.programDateTime===null)return null;if(!Object(S.isFiniteNumber)(this.programDateTime))return null;var y=Object(S.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+y*1e3}},{key:"encrypted",get:function(){var y;return!!((y=this.decryptdata)!==null&&y!==void 0&&y.keyFormat&&this.decryptdata.uri)}}]),p}(a),u=function(h){i(p,h);function p(m,v,y,E,T){var b;b=h.call(this,y)||this,b.fragOffset=0,b.duration=0,b.gap=!1,b.independent=!1,b.relurl=void 0,b.fragment=void 0,b.index=void 0,b.stats=new r.LoadStats,b.duration=m.decimalFloatingPoint("DURATION"),b.gap=m.bool("GAP"),b.independent=m.bool("INDEPENDENT"),b.relurl=m.enumeratedString("URI"),b.fragment=v,b.index=E;var w=m.enumeratedString("BYTERANGE");return w&&b.setByteRange(w,T),T&&(b.fragOffset=T.fragOffset+T.duration),b}return l(p,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var v=this.elementaryStreams;return!!(v.audio||v.video||v.audiovideo)}}]),p}(a)},"./src/loader/key-loader.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return c});var S=A("./src/events.ts"),g=A("./src/errors.ts"),f=A("./src/utils/logger.ts"),c=function(){function o(i){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=i,this._registerListeners()}var r=o.prototype;return r._registerListeners=function(){this.hls.on(S.Events.KEY_LOADING,this.onKeyLoading,this)},r._unregisterListeners=function(){this.hls.off(S.Events.KEY_LOADING,this.onKeyLoading)},r.destroy=function(){this._unregisterListeners();for(var n in this.loaders){var e=this.loaders[n];e&&e.destroy()}this.loaders={}},r.onKeyLoading=function(n,e){var l=e.frag,t=l.type,a=this.loaders[t];if(!l.decryptdata){f.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var s=l.decryptdata.uri;if(s!==this.decrypturl||this.decryptkey===null){var u=this.hls.config;if(a&&(f.logger.warn("abort previous key loader for type:"+t),a.abort()),!s){f.logger.warn("key uri is falsy");return}var h=u.loader,p=l.loader=this.loaders[t]=new h(u);this.decrypturl=s,this.decryptkey=null;var m={url:s,frag:l,responseType:"arraybuffer"},v={timeout:u.fragLoadingTimeOut,maxRetry:0,retryDelay:u.fragLoadingRetryDelay,maxRetryDelay:u.fragLoadingMaxRetryTimeout,highWaterMark:0},y={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};p.load(m,v,y)}else this.decryptkey&&(l.decryptdata.key=this.decryptkey,this.hls.trigger(S.Events.KEY_LOADED,{frag:l}))},r.loadsuccess=function(n,e,l){var t=l.frag;if(!t.decryptdata){f.logger.error("after key load, decryptdata unset");return}this.decryptkey=t.decryptdata.key=new Uint8Array(n.data),t.loader=null,delete this.loaders[t.type],this.hls.trigger(S.Events.KEY_LOADED,{frag:t})},r.loaderror=function(n,e){var l=e.frag,t=l.loader;t&&t.abort(),delete this.loaders[l.type],this.hls.trigger(S.Events.ERROR,{type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:l,response:n})},r.loadtimeout=function(n,e){var l=e.frag,t=l.loader;t&&t.abort(),delete this.loaders[l.type],this.hls.trigger(S.Events.ERROR,{type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:l})},o}()},"./src/loader/level-details.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"LevelDetails",function(){return o});var S=A("./src/polyfills/number.ts");function g(r,i){for(var n=0;n<i.length;n++){var e=i[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(r,e.key,e)}}function f(r,i,n){return i&&g(r.prototype,i),n&&g(r,n),r}var c=10,o=function(){function r(n){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.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.needSidxRanges=!1,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.fragments=[],this.url=n}var i=r.prototype;return i.reloaded=function(e){if(!e){this.advanced=!0,this.updated=!0;return}var l=this.lastPartSn-e.lastPartSn,t=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!t||!!l,this.advanced=this.endSN>e.endSN||l>0||l===0&&t>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay},f(r,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(S.isFiniteNumber)(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||c}},{key:"drift",get:function(){var e=this.driftEndTime-this.driftStartTime;if(e>0){var l=this.driftEnd-this.driftStart;return l*1e3/e}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var e;return(e=this.partList)!==null&&e!==void 0&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var e;return(e=this.fragments)!==null&&e!==void 0&&e.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 e;return(e=this.partList)!==null&&e!==void 0&&e.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var e;return(e=this.partList)!==null&&e!==void 0&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),r}()},"./src/loader/level-key.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"LevelKey",function(){return o});var S=A("./node_modules/url-toolkit/src/url-toolkit.js"),g=A.n(S);function f(r,i){for(var n=0;n<i.length;n++){var e=i[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(r,e.key,e)}}function c(r,i,n){return i&&f(r.prototype,i),n&&f(r,n),r}var o=function(){r.fromURL=function(n,e){return new r(n,e)},r.fromURI=function(n){return new r(n)};function r(i,n){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,n?this._uri=Object(S.buildAbsoluteURL)(i,n,{alwaysNormalize:!0}):this._uri=i}return c(r,[{key:"uri",get:function(){return this._uri}}]),r}()},"./src/loader/load-stats.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"LoadStats",function(){return S});var S=function(){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}}},"./src/loader/m3u8-parser.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return p});var S=A("./src/polyfills/number.ts"),g=A("./node_modules/url-toolkit/src/url-toolkit.js"),f=A.n(g),c=A("./src/loader/fragment.ts"),o=A("./src/loader/level-details.ts"),r=A("./src/loader/level-key.ts"),i=A("./src/utils/attr-list.ts"),n=A("./src/utils/logger.ts"),e=A("./src/utils/codecs.ts"),l=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-SESSION-DATA:([^\r\n]*)[\r\n]+/g,t=/#EXT-X-MEDIA:(.*)/g,a=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),s=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(PLAYLIST-TYPE):(.+)/.source,/#EXT-X-(MEDIA-SEQUENCE): *(\d+)/.source,/#EXT-X-(SKIP):(.+)/.source,/#EXT-X-(TARGETDURATION): *(\d+)/.source,/#EXT-X-(KEY):(.+)/.source,/#EXT-X-(START):(.+)/.source,/#EXT-X-(ENDLIST)/.source,/#EXT-X-(DISCONTINUITY-SEQ)UENCE: *(\d+)/.source,/#EXT-X-(DIS)CONTINUITY/.source,/#EXT-X-(VERSION):(\d+)/.source,/#EXT-X-(MAP):(.+)/.source,/#EXT-X-(SERVER-CONTROL):(.+)/.source,/#EXT-X-(PART-INF):(.+)/.source,/#EXT-X-(GAP)/.source,/#EXT-X-(BITRATE):\s*(\d+)/.source,/#EXT-X-(PART):(.+)/.source,/#EXT-X-(PRELOAD-HINT):(.+)/.source,/#EXT-X-(RENDITION-REPORT):(.+)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),u=/\.(mp4|m4s|m4v|m4a)$/i;function h(T){var b,w;return u.test((b=(w=g.parseURL(T))===null||w===void 0?void 0:w.path)!=null?b:"")}var p=function(){function T(){}return T.findGroup=function(w,_){for(var I=0;I<w.length;I++){var L=w[I];if(L.id===_)return L}},T.convertAVC1ToAVCOTI=function(w){var _=w.split(".");if(_.length>2){var I=_.shift()+".";return I+=parseInt(_.shift()).toString(16),I+=("000"+parseInt(_.shift()).toString(16)).substr(-4),I}return w},T.resolve=function(w,_){return g.buildAbsoluteURL(_,w,{alwaysNormalize:!0})},T.parseMasterPlaylist=function(w,_){var I=[],L={},N=!1;l.lastIndex=0;for(var D;(D=l.exec(w))!=null;)if(D[1]){var R=new i.AttrList(D[1]),k={attrs:R,bitrate:R.decimalInteger("AVERAGE-BANDWIDTH")||R.decimalInteger("BANDWIDTH"),name:R.NAME,url:T.resolve(D[2],_)},M=R.decimalResolution("RESOLUTION");M&&(k.width=M.width,k.height=M.height),m((R.CODECS||"").split(/[ ,]+/).filter(function(B){return B}),k),k.videoCodec&&k.videoCodec.indexOf("avc1")!==-1&&(k.videoCodec=T.convertAVC1ToAVCOTI(k.videoCodec)),I.push(k)}else if(D[3]){var U=new i.AttrList(D[3]);U["DATA-ID"]&&(N=!0,L[U["DATA-ID"]]=U)}return{levels:I,sessionData:N?L:null}},T.parseMasterPlaylistMedia=function(w,_,I,L){L===void 0&&(L=[]);var N,D=[],R=0;for(t.lastIndex=0;(N=t.exec(w))!==null;){var k=new i.AttrList(N[1]);if(k.TYPE===I){var M={attrs:k,bitrate:0,id:R++,groupId:k["GROUP-ID"],instreamId:k["INSTREAM-ID"],name:k.NAME||k.LANGUAGE||"",type:I,default:k.bool("DEFAULT"),autoselect:k.bool("AUTOSELECT"),forced:k.bool("FORCED"),lang:k.LANGUAGE,url:k.URI?T.resolve(k.URI,_):""};if(L.length){var U=T.findGroup(L,M.groupId)||L[0];v(M,U,"audioCodec"),v(M,U,"textCodec")}D.push(M)}}return D},T.parseLevelPlaylist=function(w,_,I,L,N){var D=new o.LevelDetails(_),R=D.fragments,k=null,M=0,U=0,B=0,j=0,W=null,V=new c.Fragment(L,_),z,J,Z,de=-1,ie=!1;for(a.lastIndex=0,D.m3u8=w;(z=a.exec(w))!==null;){ie&&(ie=!1,V=new c.Fragment(L,_),V.start=B,V.sn=M,V.cc=j,V.level=I,k&&(V.initSegment=k,V.rawProgramDateTime=k.rawProgramDateTime));var ve=z[1];if(ve){V.duration=parseFloat(ve);var xe=(" "+z[2]).slice(1);V.title=xe||null,V.tagList.push(xe?["INF",ve,xe]:["INF",ve])}else if(z[3])Object(S.isFiniteNumber)(V.duration)&&(V.start=B,Z&&(V.levelkey=Z),V.sn=M,V.level=I,V.cc=j,V.urlId=N,R.push(V),V.relurl=(" "+z[3]).slice(1),E(V,W),W=V,B+=V.duration,M++,U=0,ie=!0);else if(z[4]){var _e=(" "+z[4]).slice(1);W?V.setByteRange(_e,W):V.setByteRange(_e)}else if(z[5])V.rawProgramDateTime=(" "+z[5]).slice(1),V.tagList.push(["PROGRAM-DATE-TIME",V.rawProgramDateTime]),de===-1&&(de=R.length);else{if(z=z[0].match(s),!z){n.logger.warn("No matches on slow regex match for level playlist!");continue}for(J=1;J<z.length&&!(typeof z[J]!="undefined");J++);var Ue=(" "+z[J]).slice(1),fe=(" "+z[J+1]).slice(1),ke=z[J+2]?(" "+z[J+2]).slice(1):"";switch(Ue){case"PLAYLIST-TYPE":D.type=fe.toUpperCase();break;case"MEDIA-SEQUENCE":M=D.startSN=parseInt(fe);break;case"SKIP":{var se=new i.AttrList(fe),te=se.decimalInteger("SKIPPED-SEGMENTS");if(Object(S.isFiniteNumber)(te)){D.skippedSegments=te;for(var Ve=te;Ve--;)R.unshift(null);M+=te}var ae=se.enumeratedString("RECENTLY-REMOVED-DATERANGES");ae&&(D.recentlyRemovedDateranges=ae.split(" "));break}case"TARGETDURATION":D.targetduration=parseFloat(fe);break;case"VERSION":D.version=parseInt(fe);break;case"EXTM3U":break;case"ENDLIST":D.live=!1;break;case"#":(fe||ke)&&V.tagList.push(ke?[fe,ke]:[fe]);break;case"DIS":j++;case"GAP":V.tagList.push([Ue]);break;case"BITRATE":V.tagList.push([Ue,fe]);break;case"DISCONTINUITY-SEQ":j=parseInt(fe);break;case"KEY":{var Q,G=new i.AttrList(fe),Y=G.enumeratedString("METHOD"),me=G.URI,ue=G.hexadecimalInteger("IV"),Ce=G.enumeratedString("KEYFORMATVERSIONS"),Ie=G.enumeratedString("KEYID"),ce=(Q=G.enumeratedString("KEYFORMAT"))!=null?Q:"identity",Ae=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(Ae.indexOf(ce)>-1){n.logger.warn("Keyformat "+ce+" is not supported from the manifest");continue}else if(ce!=="identity")continue;Y&&(Z=r.LevelKey.fromURL(_,me),me&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Y)>=0&&(Z.method=Y,Z.keyFormat=ce,Ie&&(Z.keyID=Ie),Ce&&(Z.keyFormatVersions=Ce),Z.iv=ue));break}case"START":{var Te=new i.AttrList(fe),Ge=Te.decimalFloatingPoint("TIME-OFFSET");Object(S.isFiniteNumber)(Ge)&&(D.startTimeOffset=Ge);break}case"MAP":{var gt=new i.AttrList(fe);V.relurl=gt.URI,gt.BYTERANGE&&V.setByteRange(gt.BYTERANGE),V.level=I,V.sn="initSegment",Z&&(V.levelkey=Z),V.initSegment=null,k=V,ie=!0;break}case"SERVER-CONTROL":{var qe=new i.AttrList(fe);D.canBlockReload=qe.bool("CAN-BLOCK-RELOAD"),D.canSkipUntil=qe.optionalFloat("CAN-SKIP-UNTIL",0),D.canSkipDateRanges=D.canSkipUntil>0&&qe.bool("CAN-SKIP-DATERANGES"),D.partHoldBack=qe.optionalFloat("PART-HOLD-BACK",0),D.holdBack=qe.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Le=new i.AttrList(fe);D.partTarget=Le.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ot=D.partList;Ot||(Ot=D.partList=[]);var $e=U>0?Ot[Ot.length-1]:void 0,xt=U++,Ht=new c.Part(new i.AttrList(fe),V,_,xt,$e);Ot.push(Ht),V.duration+=Ht.duration;break}case"PRELOAD-HINT":{var tr=new i.AttrList(fe);D.preloadHint=tr;break}case"RENDITION-REPORT":{var Mt=new i.AttrList(fe);D.renditionReports=D.renditionReports||[],D.renditionReports.push(Mt);break}default:n.logger.warn("line parsed but not handled: "+z);break}}}W&&!W.relurl?(R.pop(),B-=W.duration,D.partList&&(D.fragmentHint=W)):D.partList&&(E(V,W),V.cc=j,D.fragmentHint=V);var Tt=R.length,Xe=R[0],oe=R[Tt-1];if(B+=D.skippedSegments*D.targetduration,B>0&&Tt&&oe){D.averagetargetduration=B/Tt;var X=oe.sn;D.endSN=X!=="initSegment"?X:0,Xe&&(D.startCC=Xe.cc,Xe.initSegment||D.fragments.every(function(Be){return Be.relurl&&h(Be.relurl)})&&(n.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),V=new c.Fragment(L,_),V.relurl=oe.relurl,V.level=I,V.sn="initSegment",Xe.initSegment=V,D.needSidxRanges=!0))}else D.endSN=0,D.startCC=0;return D.fragmentHint&&(B+=D.fragmentHint.duration),D.totalduration=B,D.endCC=j,de>0&&y(R,de),D},T}();function m(T,b){["video","audio","text"].forEach(function(w){var _=T.filter(function(L){return Object(e.isCodecType)(L,w)});if(_.length){var I=_.filter(function(L){return L.lastIndexOf("avc1",0)===0||L.lastIndexOf("mp4a",0)===0});b[w+"Codec"]=I.length>0?I[0]:_[0],T=T.filter(function(L){return _.indexOf(L)===-1})}}),b.unknownCodecs=T}function v(T,b,w){var _=b[w];_&&(T[w]=_)}function y(T,b){for(var w=T[b],_=b;_--;){var I=T[_];if(!I)return;I.programDateTime=w.programDateTime-I.duration*1e3,w=I}}function E(T,b){T.rawProgramDateTime?T.programDateTime=Date.parse(T.rawProgramDateTime):b!=null&&b.programDateTime&&(T.programDateTime=b.endProgramDateTime),Object(S.isFiniteNumber)(T.programDateTime)||(T.programDateTime=null,T.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(x,C,A){"use strict";A.r(C);var S=A("./src/polyfills/number.ts"),g=A("./src/events.ts"),f=A("./src/errors.ts"),c=A("./src/utils/logger.ts"),o=A("./src/utils/mp4-tools.ts"),r=A("./src/loader/m3u8-parser.ts"),i=A("./src/types/loader.ts"),n=A("./src/utils/attr-list.ts");function e(a){var s=a.type;switch(s){case i.PlaylistContextType.AUDIO_TRACK:return i.PlaylistLevelType.AUDIO;case i.PlaylistContextType.SUBTITLE_TRACK:return i.PlaylistLevelType.SUBTITLE;default:return i.PlaylistLevelType.MAIN}}function l(a,s){var u=a.url;return(u===void 0||u.indexOf("data:")===0)&&(u=s.url),u}var t=function(){function a(u){this.hls=void 0,this.loaders=Object.create(null),this.hls=u,this.registerListeners()}var s=a.prototype;return s.registerListeners=function(){var h=this.hls;h.on(g.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(g.Events.LEVEL_LOADING,this.onLevelLoading,this),h.on(g.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),h.on(g.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},s.unregisterListeners=function(){var h=this.hls;h.off(g.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(g.Events.LEVEL_LOADING,this.onLevelLoading,this),h.off(g.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),h.off(g.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},s.createInternalLoader=function(h){var p=this.hls.config,m=p.pLoader,v=p.loader,y=m||v,E=new y(p);return h.loader=E,this.loaders[h.type]=E,E},s.getInternalLoader=function(h){return this.loaders[h.type]},s.resetInternalLoader=function(h){this.loaders[h]&&delete this.loaders[h]},s.destroyInternalLoaders=function(){for(var h in this.loaders){var p=this.loaders[h];p&&p.destroy(),this.resetInternalLoader(h)}},s.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},s.onManifestLoading=function(h,p){var m=p.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:i.PlaylistContextType.MANIFEST,url:m,deliveryDirectives:null})},s.onLevelLoading=function(h,p){var m=p.id,v=p.level,y=p.url,E=p.deliveryDirectives;this.load({id:m,groupId:null,level:v,responseType:"text",type:i.PlaylistContextType.LEVEL,url:y,deliveryDirectives:E})},s.onAudioTrackLoading=function(h,p){var m=p.id,v=p.groupId,y=p.url,E=p.deliveryDirectives;this.load({id:m,groupId:v,level:null,responseType:"text",type:i.PlaylistContextType.AUDIO_TRACK,url:y,deliveryDirectives:E})},s.onSubtitleTrackLoading=function(h,p){var m=p.id,v=p.groupId,y=p.url,E=p.deliveryDirectives;this.load({id:m,groupId:v,level:null,responseType:"text",type:i.PlaylistContextType.SUBTITLE_TRACK,url:y,deliveryDirectives:E})},s.load=function(h){var p,m=this.hls.config,v=this.getInternalLoader(h);if(v){var y=v.context;if(y&&y.url===h.url){c.logger.trace("[playlist-loader]: playlist request ongoing");return}c.logger.log("[playlist-loader]: aborting previous loader for type: "+h.type),v.abort()}var E,T,b,w;switch(h.type){case i.PlaylistContextType.MANIFEST:E=m.manifestLoadingMaxRetry,T=m.manifestLoadingTimeOut,b=m.manifestLoadingRetryDelay,w=m.manifestLoadingMaxRetryTimeout;break;case i.PlaylistContextType.LEVEL:case i.PlaylistContextType.AUDIO_TRACK:case i.PlaylistContextType.SUBTITLE_TRACK:E=0,T=m.levelLoadingTimeOut;break;default:E=m.levelLoadingMaxRetry,T=m.levelLoadingTimeOut,b=m.levelLoadingRetryDelay,w=m.levelLoadingMaxRetryTimeout;break}if(v=this.createInternalLoader(h),(p=h.deliveryDirectives)!==null&&p!==void 0&&p.part){var _;if(h.type===i.PlaylistContextType.LEVEL&&h.level!==null?_=this.hls.levels[h.level].details:h.type===i.PlaylistContextType.AUDIO_TRACK&&h.id!==null?_=this.hls.audioTracks[h.id].details:h.type===i.PlaylistContextType.SUBTITLE_TRACK&&h.id!==null&&(_=this.hls.subtitleTracks[h.id].details),_){var I=_.partTarget,L=_.targetduration;I&&L&&(T=Math.min(Math.max(I*3,L*.8)*1e3,T))}}var N={timeout:T,maxRetry:E,retryDelay:b,maxRetryDelay:w,highWaterMark:0},D={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};v.load(h,N,D)},s.loadsuccess=function(h,p,m,v){if(v===void 0&&(v=null),m.isSidxRequest){this.handleSidxRequest(h,m),this.handlePlaylistLoaded(h,p,m,v);return}this.resetInternalLoader(m.type);var y=h.data;if(y.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(h,m,"no EXTM3U delimiter",v);return}p.parsing.start=performance.now(),y.indexOf("#EXTINF:")>0||y.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(h,p,m,v):this.handleMasterPlaylist(h,p,m,v)},s.loaderror=function(h,p,m){m===void 0&&(m=null),this.handleNetworkError(p,m,!1,h)},s.loadtimeout=function(h,p,m){m===void 0&&(m=null),this.handleNetworkError(p,m,!0)},s.handleMasterPlaylist=function(h,p,m,v){var y=this.hls,E=h.data,T=l(h,m),b=r.default.parseMasterPlaylist(E,T),w=b.levels,_=b.sessionData;if(!w.length){this.handleManifestParsingError(h,m,"no level found in manifest",v);return}var I=w.map(function(M){return{id:M.attrs.AUDIO,audioCodec:M.audioCodec}}),L=w.map(function(M){return{id:M.attrs.SUBTITLES,textCodec:M.textCodec}}),N=r.default.parseMasterPlaylistMedia(E,T,"AUDIO",I),D=r.default.parseMasterPlaylistMedia(E,T,"SUBTITLES",L),R=r.default.parseMasterPlaylistMedia(E,T,"CLOSED-CAPTIONS");if(N.length){var k=N.some(function(M){return!M.url});!k&&w[0].audioCodec&&!w[0].attrs.AUDIO&&(c.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),N.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new n.AttrList({}),bitrate:0,url:""}))}y.trigger(g.Events.MANIFEST_LOADED,{levels:w,audioTracks:N,subtitles:D,captions:R,url:T,stats:p,networkDetails:v,sessionData:_})},s.handleTrackOrLevelPlaylist=function(h,p,m,v){var y=this.hls,E=m.id,T=m.level,b=m.type,w=l(h,m),_=Object(S.isFiniteNumber)(E)?E:0,I=Object(S.isFiniteNumber)(T)?T:_,L=e(m),N=r.default.parseLevelPlaylist(h.data,w,I,L,_);if(!N.fragments.length){y.trigger(g.Events.ERROR,{type:f.ErrorTypes.NETWORK_ERROR,details:f.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:w,reason:"no fragments found in level",level:typeof m.level=="number"?m.level:void 0});return}if(b===i.PlaylistContextType.MANIFEST){var D={attrs:new n.AttrList({}),bitrate:0,details:N,name:"",url:w};y.trigger(g.Events.MANIFEST_LOADED,{levels:[D],audioTracks:[],url:w,stats:p,networkDetails:v,sessionData:null})}if(p.parsing.end=performance.now(),N.needSidxRanges){var R,k=(R=N.fragments[0].initSegment)===null||R===void 0?void 0:R.url;this.load({url:k,isSidxRequest:!0,type:b,level:T,levelDetails:N,id:E,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}m.levelDetails=N,this.handlePlaylistLoaded(h,p,m,v)},s.handleSidxRequest=function(h,p){var m=Object(o.parseSegmentIndex)(new Uint8Array(h.data));if(!m)return;var v=m.references,y=p.levelDetails;v.forEach(function(E,T){var b=E.info,w=y.fragments[T];w.byteRange.length===0&&w.setByteRange(String(1+b.end-b.start)+"@"+String(b.start)),w.initSegment&&w.initSegment.setByteRange(String(m.moovEndOffset)+"@0")})},s.handleManifestParsingError=function(h,p,m,v){this.hls.trigger(g.Events.ERROR,{type:f.ErrorTypes.NETWORK_ERROR,details:f.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:p.type===i.PlaylistContextType.MANIFEST,url:h.url,reason:m,response:h,context:p,networkDetails:v})},s.handleNetworkError=function(h,p,m,v){m===void 0&&(m=!1),c.logger.warn("[playlist-loader]: A network "+(m?"timeout":"error")+" occurred while loading "+h.type+" level: "+h.level+" id: "+h.id+' group-id: "'+h.groupId+'"');var y=f.ErrorDetails.UNKNOWN,E=!1,T=this.getInternalLoader(h);switch(h.type){case i.PlaylistContextType.MANIFEST:y=m?f.ErrorDetails.MANIFEST_LOAD_TIMEOUT:f.ErrorDetails.MANIFEST_LOAD_ERROR,E=!0;break;case i.PlaylistContextType.LEVEL:y=m?f.ErrorDetails.LEVEL_LOAD_TIMEOUT:f.ErrorDetails.LEVEL_LOAD_ERROR,E=!1;break;case i.PlaylistContextType.AUDIO_TRACK:y=m?f.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:f.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,E=!1;break;case i.PlaylistContextType.SUBTITLE_TRACK:y=m?f.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:f.ErrorDetails.SUBTITLE_LOAD_ERROR,E=!1;break}T&&this.resetInternalLoader(h.type);var b={type:f.ErrorTypes.NETWORK_ERROR,details:y,fatal:E,url:h.url,loader:T,context:h,networkDetails:p};v&&(b.response=v),this.hls.trigger(g.Events.ERROR,b)},s.handlePlaylistLoaded=function(h,p,m,v){var y=m.type,E=m.level,T=m.id,b=m.groupId,w=m.loader,_=m.levelDetails,I=m.deliveryDirectives;if(!(_!=null&&_.targetduration)){this.handleManifestParsingError(h,m,"invalid target duration",v);return}if(!w)return;_.live&&(w.getCacheAge&&(_.ageHeader=w.getCacheAge()||0),(!w.getCacheAge||isNaN(_.ageHeader))&&(_.ageHeader=0));switch(y){case i.PlaylistContextType.MANIFEST:case i.PlaylistContextType.LEVEL:this.hls.trigger(g.Events.LEVEL_LOADED,{details:_,level:E||0,id:T||0,stats:p,networkDetails:v,deliveryDirectives:I});break;case i.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(g.Events.AUDIO_TRACK_LOADED,{details:_,id:T||0,groupId:b||"",stats:p,networkDetails:v,deliveryDirectives:I});break;case i.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(g.Events.SUBTITLE_TRACK_LOADED,{details:_,id:T||0,groupId:b||"",stats:p,networkDetails:v,deliveryDirectives:I});break}},a}();C.default=t},"./src/polyfills/number.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"isFiniteNumber",function(){return S}),A.d(C,"MAX_SAFE_INTEGER",function(){return g});var S=Number.isFinite||function(f){return typeof f=="number"&&isFinite(f)},g=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(x,C,A){"use strict";A.r(C);var S=function(){function g(){}return g.getSilentFrame=function(c,o){switch(c){case"mp4a.40.2":if(o===1)return new Uint8Array([0,200,0,128,35,128]);if(o===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(o===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(o===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(o===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(o===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(o===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(o===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(o===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},g}();C.default=S},"./src/remux/mp4-generator.ts":function(x,C,A){"use strict";A.r(C);var S=Math.pow(2,32)-1,g=function(){function f(){}return f.init=function(){f.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 o;for(o in f.types)f.types.hasOwnProperty(o)&&(f.types[o]=[o.charCodeAt(0),o.charCodeAt(1),o.charCodeAt(2),o.charCodeAt(3)]);var r=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]),i=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]);f.HDLR_TYPES={video:r,audio:i};var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),e=new Uint8Array([0,0,0,0,0,0,0,0]);f.STTS=f.STSC=f.STCO=e,f.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),f.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),f.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),f.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var l=new Uint8Array([105,115,111,109]),t=new Uint8Array([97,118,99,49]),a=new Uint8Array([0,0,0,1]);f.FTYP=f.box(f.types.ftyp,l,a,l,t),f.DINF=f.box(f.types.dinf,f.box(f.types.dref,n))},f.box=function(o){for(var r=8,i=arguments.length,n=new Array(i>1?i-1:0),e=1;e<i;e++)n[e-1]=arguments[e];for(var l=n.length,t=l;l--;)r+=n[l].byteLength;var a=new Uint8Array(r);for(a[0]=r>>24&255,a[1]=r>>16&255,a[2]=r>>8&255,a[3]=r&255,a.set(o,4),l=0,r=8;l<t;l++)a.set(n[l],r),r+=n[l].byteLength;return a},f.hdlr=function(o){return f.box(f.types.hdlr,f.HDLR_TYPES[o])},f.mdat=function(o){return f.box(f.types.mdat,o)},f.mdhd=function(o,r){r*=o;var i=Math.floor(r/(S+1)),n=Math.floor(r%(S+1));return f.box(f.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,o>>24&255,o>>16&255,o>>8&255,o&255,i>>24,i>>16&255,i>>8&255,i&255,n>>24,n>>16&255,n>>8&255,n&255,85,196,0,0]))},f.mdia=function(o){return f.box(f.types.mdia,f.mdhd(o.timescale,o.duration),f.hdlr(o.type),f.minf(o))},f.mfhd=function(o){return f.box(f.types.mfhd,new Uint8Array([0,0,0,0,o>>24,o>>16&255,o>>8&255,o&255]))},f.minf=function(o){return o.type==="audio"?f.box(f.types.minf,f.box(f.types.smhd,f.SMHD),f.DINF,f.stbl(o)):f.box(f.types.minf,f.box(f.types.vmhd,f.VMHD),f.DINF,f.stbl(o))},f.moof=function(o,r,i){return f.box(f.types.moof,f.mfhd(o),f.traf(i,r))},f.moov=function(o){for(var r=o.length,i=[];r--;)i[r]=f.trak(o[r]);return f.box.apply(null,[f.types.moov,f.mvhd(o[0].timescale,o[0].duration)].concat(i).concat(f.mvex(o)))},f.mvex=function(o){for(var r=o.length,i=[];r--;)i[r]=f.trex(o[r]);return f.box.apply(null,[f.types.mvex].concat(i))},f.mvhd=function(o,r){r*=o;var i=Math.floor(r/(S+1)),n=Math.floor(r%(S+1)),e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,o>>24&255,o>>16&255,o>>8&255,o&255,i>>24,i>>16&255,i>>8&255,i&255,n>>24,n>>16&255,n>>8&255,n&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 f.box(f.types.mvhd,e)},f.sdtp=function(o){var r=o.samples||[],i=new Uint8Array(4+r.length),n,e;for(n=0;n<r.length;n++)e=r[n].flags,i[n+4]=e.dependsOn<<4|e.isDependedOn<<2|e.hasRedundancy;return f.box(f.types.sdtp,i)},f.stbl=function(o){return f.box(f.types.stbl,f.stsd(o),f.box(f.types.stts,f.STTS),f.box(f.types.stsc,f.STSC),f.box(f.types.stsz,f.STSZ),f.box(f.types.stco,f.STCO))},f.avc1=function(o){var r=[],i=[],n,e,l;for(n=0;n<o.sps.length;n++)e=o.sps[n],l=e.byteLength,r.push(l>>>8&255),r.push(l&255),r=r.concat(Array.prototype.slice.call(e));for(n=0;n<o.pps.length;n++)e=o.pps[n],l=e.byteLength,i.push(l>>>8&255),i.push(l&255),i=i.concat(Array.prototype.slice.call(e));var t=f.box(f.types.avcC,new Uint8Array([1,r[3],r[4],r[5],252|3,224|o.sps.length].concat(r).concat([o.pps.length]).concat(i))),a=o.width,s=o.height,u=o.pixelRatio[0],h=o.pixelRatio[1];return f.box(f.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,a>>8&255,a&255,s>>8&255,s&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]),t,f.box(f.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),f.box(f.types.pasp,new Uint8Array([u>>24,u>>16&255,u>>8&255,u&255,h>>24,h>>16&255,h>>8&255,h&255])))},f.esds=function(o){var r=o.config.length;return new Uint8Array([0,0,0,0,3,23+r,0,1,0,4,15+r,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([r]).concat(o.config).concat([6,1,2]))},f.mp4a=function(o){var r=o.samplerate;return f.box(f.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,o.channelCount,0,16,0,0,0,0,r>>8&255,r&255,0,0]),f.box(f.types.esds,f.esds(o)))},f.mp3=function(o){var r=o.samplerate;return f.box(f.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,o.channelCount,0,16,0,0,0,0,r>>8&255,r&255,0,0]))},f.stsd=function(o){return o.type==="audio"?!o.isAAC&&o.codec==="mp3"?f.box(f.types.stsd,f.STSD,f.mp3(o)):f.box(f.types.stsd,f.STSD,f.mp4a(o)):f.box(f.types.stsd,f.STSD,f.avc1(o))},f.tkhd=function(o){var r=o.id,i=o.duration*o.timescale,n=o.width,e=o.height,l=Math.floor(i/(S+1)),t=Math.floor(i%(S+1));return f.box(f.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,r>>24&255,r>>16&255,r>>8&255,r&255,0,0,0,0,l>>24,l>>16&255,l>>8&255,l&255,t>>24,t>>16&255,t>>8&255,t&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,n>>8&255,n&255,0,0,e>>8&255,e&255,0,0]))},f.traf=function(o,r){var i=f.sdtp(o),n=o.id,e=Math.floor(r/(S+1)),l=Math.floor(r%(S+1));return f.box(f.types.traf,f.box(f.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255])),f.box(f.types.tfdt,new Uint8Array([1,0,0,0,e>>24,e>>16&255,e>>8&255,e&255,l>>24,l>>16&255,l>>8&255,l&255])),f.trun(o,i.length+16+20+8+16+8+8),i)},f.trak=function(o){return o.duration=o.duration||4294967295,f.box(f.types.trak,f.tkhd(o),f.mdia(o))},f.trex=function(o){var r=o.id;return f.box(f.types.trex,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},f.trun=function(o,r){var i=o.samples||[],n=i.length,e=12+16*n,l=new Uint8Array(e),t,a,s,u,h,p;for(r+=8+e,l.set([0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,n&255,r>>>24&255,r>>>16&255,r>>>8&255,r&255],0),t=0;t<n;t++)a=i[t],s=a.duration,u=a.size,h=a.flags,p=a.cts,l.set([s>>>24&255,s>>>16&255,s>>>8&255,s&255,u>>>24&255,u>>>16&255,u>>>8&255,u&255,h.isLeading<<2|h.dependsOn,h.isDependedOn<<6|h.hasRedundancy<<4|h.paddingValue<<1|h.isNonSync,h.degradPrio&240<<8,h.degradPrio&15,p>>>24&255,p>>>16&255,p>>>8&255,p&255],12+16*t);return f.box(f.types.trun,l)},f.initSegment=function(o){f.types||f.init();var r=f.moov(o),i=new Uint8Array(f.FTYP.byteLength+r.byteLength);return i.set(f.FTYP),i.set(r,f.FTYP.byteLength),i},f}();g.types=void 0,g.HDLR_TYPES=void 0,g.STTS=void 0,g.STSC=void 0,g.STCO=void 0,g.STSZ=void 0,g.VMHD=void 0,g.SMHD=void 0,g.STSD=void 0,g.FTYP=void 0,g.DINF=void 0,C.default=g},"./src/remux/mp4-remuxer.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return p}),A.d(C,"normalizePts",function(){return m});var S=A("./src/polyfills/number.ts"),g=A("./src/remux/aac-helper.ts"),f=A("./src/remux/mp4-generator.ts"),c=A("./src/events.ts"),o=A("./src/errors.ts"),r=A("./src/utils/logger.ts"),i=A("./src/types/loader.ts"),n=A("./src/utils/timescale-conversion.ts");function e(){return e=Object.assign||function(T){for(var b=1;b<arguments.length;b++){var w=arguments[b];for(var _ in w)Object.prototype.hasOwnProperty.call(w,_)&&(T[_]=w[_])}return T},e.apply(this,arguments)}var l=10*1e3,t=1024,a=1152,s=null,u=null,h=!1,p=function(){function T(w,_,I,L){if(L===void 0&&(L=""),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=void 0,this._initDTS=void 0,this.nextAvcDts=null,this.nextAudioPts=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.observer=w,this.config=_,this.typeSupported=I,this.ISGenerated=!1,s===null){var N=navigator.userAgent||"",D=N.match(/Chrome\/(\d+)/i);s=D?parseInt(D[1]):0}if(u===null){var R=navigator.userAgent.match(/Safari\/(\d+)/i);u=R?parseInt(R[1]):0}h=!!s&&s<75||!!u&&u<600}var b=T.prototype;return b.destroy=function(){},b.resetTimeStamp=function(_){r.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=_},b.resetNextTimestamp=function(){r.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},b.resetInitSegment=function(){r.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},b.getVideoStartPts=function(_){var I=!1,L=_.reduce(function(N,D){var R=D.pts-N;return R<-4294967296?(I=!0,m(N,D.pts)):R>0?N:D.pts},_[0].pts);return I&&r.logger.debug("PTS rollover detected"),L},b.remux=function(_,I,L,N,D,R,k,M){var U,B,j,W,V,z,J=D,Z=D,de=_.pid>-1,ie=I.pid>-1,ve=I.samples.length,xe=_.samples.length>0,_e=ve>1,Ue=(!de||xe)&&(!ie||_e)||this.ISGenerated||k;if(Ue){this.ISGenerated||(j=this.generateIS(_,I,D));var fe=this.isVideoContiguous,ke=-1;if(_e&&(ke=v(I.samples),!fe&&this.config.forceKeyFrameOnDiscontinuity))if(z=!0,ke>0){r.logger.warn("[mp4-remuxer]: Dropped "+ke+" out of "+ve+" video samples due to a missing keyframe");var se=this.getVideoStartPts(I.samples);I.samples=I.samples.slice(ke),I.dropped+=ke,Z+=(I.samples[0].pts-se)/(I.timescale||9e4)}else ke===-1&&(r.logger.warn("[mp4-remuxer]: No keyframe found out of "+ve+" video samples"),z=!1);if(this.ISGenerated){if(xe&&_e){var te=this.getVideoStartPts(I.samples),Ve=m(_.samples[0].pts,te)-te,ae=Ve/I.inputTimeScale;J+=Math.max(0,ae),Z+=Math.max(0,-ae)}if(xe){if(_.samplerate||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),j=this.generateIS(_,I,D)),B=this.remuxAudio(_,J,this.isAudioContiguous,R,ie||_e||M===i.PlaylistLevelType.AUDIO?Z:void 0),_e){var Q=B?B.endPTS-B.startPTS:0;I.inputTimeScale||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),j=this.generateIS(_,I,D)),U=this.remuxVideo(I,Z,fe,Q)}}else _e&&(U=this.remuxVideo(I,Z,fe,0));U&&(U.firstKeyFrame=ke,U.independent=ke!==-1)}}return this.ISGenerated&&(L.samples.length&&(V=this.remuxID3(L,D)),N.samples.length&&(W=this.remuxText(N,D))),{audio:B,video:U,initSegment:j,independent:z,text:W,id3:V}},b.generateIS=function(_,I,L){var N=_.samples,D=I.samples,R=this.typeSupported,k={},M=!Object(S.isFiniteNumber)(this._initPTS),U="audio/mp4",B,j,W;if(M&&(B=j=Infinity),_.config&&N.length&&(_.timescale=_.samplerate,_.isAAC||(R.mpeg?(U="audio/mpeg",_.codec=""):R.mp3&&(_.codec="mp3")),k.audio={id:"audio",container:U,codec:_.codec,initSegment:!_.isAAC&&R.mpeg?new Uint8Array(0):f.default.initSegment([_]),metadata:{channelCount:_.channelCount}},M&&(W=_.inputTimeScale,B=j=N[0].pts-Math.round(W*L))),I.sps&&I.pps&&D.length&&(I.timescale=I.inputTimeScale,k.video={id:"main",container:"video/mp4",codec:I.codec,initSegment:f.default.initSegment([I]),metadata:{width:I.width,height:I.height}},M)){W=I.inputTimeScale;var V=this.getVideoStartPts(D),z=Math.round(W*L);j=Math.min(j,m(D[0].dts,V)-z),B=Math.min(B,V-z)}if(Object.keys(k).length)return this.ISGenerated=!0,M&&(this._initPTS=B,this._initDTS=j),{tracks:k,initPTS:B,timescale:W}},b.remuxVideo=function(_,I,L,N){var D=_.inputTimeScale,R=_.samples,k=[],M=R.length,U=this._initPTS,B=this.nextAvcDts,j=8,W,V,z,J=Number.POSITIVE_INFINITY,Z=Number.NEGATIVE_INFINITY,de=0,ie=!1;if(!L||B===null){var ve=I*D,xe=R[0].pts-m(R[0].dts,R[0].pts);B=ve-xe}for(var _e=0;_e<M;_e++){var Ue=R[_e];if(Ue.pts=m(Ue.pts-U,B),Ue.dts=m(Ue.dts-U,B),Ue.dts>Ue.pts){var fe=9e4*.2;de=Math.max(Math.min(de,Ue.pts-Ue.dts),-1*fe)}Ue.dts<R[_e>0?_e-1:_e].dts&&(ie=!0)}ie&&R.sort(function($r,nr){var lr=$r.dts-nr.dts,zt=$r.pts-nr.pts;return lr||zt}),V=R[0].dts,z=R[R.length-1].dts;var ke=Math.round((z-V)/(M-1));if(de<0){if(de<ke*-2){r.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(n.toMsFromMpegTsClock)(-ke,!0)+" ms");for(var se=de,te=0;te<M;te++)R[te].dts=se=Math.max(se,R[te].pts-ke),R[te].pts=Math.max(se,R[te].pts)}else{r.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(n.toMsFromMpegTsClock)(de,!0)+" ms to overcome this issue");for(var Ve=0;Ve<M;Ve++)R[Ve].dts=R[Ve].dts+de}V=R[0].dts}if(L){var ae=V-B,Q=ae>ke,G=ae<-1;if(Q||G){Q?r.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(ae,!0)+" ms ("+ae+"dts) hole between fragments detected, filling it"):r.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(-ae,!0)+" ms ("+ae+"dts) overlapping between fragments detected"),V=B;var Y=R[0].pts-ae;R[0].dts=V,R[0].pts=Y,r.logger.log("Video: First PTS/DTS adjusted: "+Object(n.toMsFromMpegTsClock)(Y,!0)+"/"+Object(n.toMsFromMpegTsClock)(V,!0)+", delta: "+Object(n.toMsFromMpegTsClock)(ae,!0)+" ms")}}h&&(V=Math.max(0,V));for(var me=0,ue=0,Ce=0;Ce<M;Ce++){for(var Ie=R[Ce],ce=Ie.units,Ae=ce.length,Te=0,Ge=0;Ge<Ae;Ge++)Te+=ce[Ge].data.length;ue+=Te,me+=Ae,Ie.length=Te,Ie.dts=Math.max(Ie.dts,V),Ie.pts=Math.max(Ie.pts,Ie.dts,0),J=Math.min(Ie.pts,J),Z=Math.max(Ie.pts,Z)}z=R[M-1].dts;var gt=ue+4*me+8,qe;try{qe=new Uint8Array(gt)}catch($r){this.observer.emit(c.Events.ERROR,c.Events.ERROR,{type:o.ErrorTypes.MUX_ERROR,details:o.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:gt,reason:"fail allocating video mdat "+gt});return}var Le=new DataView(qe.buffer);Le.setUint32(0,gt),qe.set(f.default.types.mdat,4);for(var Ot=0;Ot<M;Ot++){for(var $e=R[Ot],xt=$e.units,Ht=0,tr=0,Mt=xt.length;tr<Mt;tr++){var Tt=xt[tr],Xe=Tt.data,oe=Tt.data.byteLength;Le.setUint32(j,oe),j+=4,qe.set(Xe,j),j+=oe,Ht+=4+oe}if(Ot<M-1)W=R[Ot+1].dts-$e.dts;else{var X=this.config,Be=$e.dts-R[Ot>0?Ot-1:Ot].dts;if(X.stretchShortVideoTrack&&this.nextAudioPts!==null){var Ee=Math.floor(X.maxBufferHole*D),ee=(N?J+N*D:this.nextAudioPts)-$e.pts;ee>Ee?(W=ee-Be,W<0&&(W=Be),r.logger.log("[mp4-remuxer]: It is approximately "+ee/90+" ms to the next segment; using duration "+W/90+" ms for the last video frame.")):W=Be}else W=Be}var lt=Math.round($e.pts-$e.dts);k.push(new y($e.key,W,Ht,lt))}if(k.length&&s&&s<70){var Ct=k[0].flags;Ct.dependsOn=2,Ct.isNonSync=0}console.assert(W!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=B=z+W,this.isVideoContiguous=!0;var dt=f.default.moof(_.sequenceNumber++,V,e({},_,{samples:k})),_t="video",ir={data1:dt,data2:qe,startPTS:J/D,endPTS:(Z+W)/D,startDTS:V/D,endDTS:B/D,type:_t,hasAudio:!1,hasVideo:!0,nb:k.length,dropped:_.dropped};return _.samples=[],_.dropped=0,console.assert(qe.length,"MDAT length must not be zero"),ir},b.remuxAudio=function(_,I,L,N,D){var R=_.inputTimeScale,k=_.samplerate?_.samplerate:R,M=R/k,U=_.isAAC?t:a,B=U*M,j=this._initPTS,W=!_.isAAC&&this.typeSupported.mpeg,V=[],z=_.samples,J=W?0:8,Z=this.nextAudioPts||-1,de=I*R;if(this.isAudioContiguous=L=L||z.length&&Z>0&&(N&&Math.abs(de-Z)<9e3||Math.abs(m(z[0].pts-j,de)-Z)<20*B),z.forEach(function(Xe){Xe.pts=m(Xe.pts-j,de)}),!L||Z<0){if(z=z.filter(function(Xe){return Xe.pts>=0}),!z.length)return;D===0?Z=0:N?Z=Math.max(0,de):Z=z[0].pts}if(_.isAAC)for(var ie=D!==void 0,ve=this.config.maxAudioFramesDrift,xe=0,_e=Z;xe<z.length;xe++){var Ue=z[xe],fe=Ue.pts,ke=fe-_e,se=Math.abs(1e3*ke/R);if(ke<=-ve*B&&ie)xe===0&&(r.logger.warn("Audio frame @ "+(fe/R).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*ke/R)+" ms."),this.nextAudioPts=Z=_e=fe);else if(ke>=ve*B&&se<l&&ie){var te=Math.round(ke/B);_e=fe-te*B,_e<0&&(te--,_e+=B),xe===0&&(this.nextAudioPts=Z=_e),r.logger.warn("[mp4-remuxer]: Injecting "+te+" audio frame @ "+(_e/R).toFixed(3)+"s due to "+Math.round(1e3*ke/R)+" ms gap.");for(var Ve=0;Ve<te;Ve++){var ae=Math.max(_e,0),Q=g.default.getSilentFrame(_.manifestCodec||_.codec,_.channelCount);Q||(r.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Q=Ue.unit.subarray()),z.splice(xe,0,{unit:Q,pts:ae}),_e+=B,xe++}}Ue.pts=_e,_e+=B}for(var G=null,Y=null,me,ue=0,Ce=z.length;Ce--;)ue+=z[Ce].unit.byteLength;for(var Ie=0,ce=z.length;Ie<ce;Ie++){var Ae=z[Ie],Te=Ae.unit,Ge=Ae.pts;if(Y!==null){var gt=V[Ie-1];gt.duration=Math.round((Ge-Y)/M)}else if(L&&_.isAAC&&(Ge=Z),G=Ge,ue>0){ue+=J;try{me=new Uint8Array(ue)}catch(Xe){this.observer.emit(c.Events.ERROR,c.Events.ERROR,{type:o.ErrorTypes.MUX_ERROR,details:o.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ue,reason:"fail allocating audio mdat "+ue});return}if(!W){var qe=new DataView(me.buffer);qe.setUint32(0,ue),me.set(f.default.types.mdat,4)}}else return;me.set(Te,J);var Le=Te.byteLength;J+=Le,V.push(new y(!0,U,Le,0)),Y=Ge}var Ot=V.length;if(!Ot)return;var $e=V[V.length-1];this.nextAudioPts=Z=Y+M*$e.duration;var xt=W?new Uint8Array(0):f.default.moof(_.sequenceNumber++,G/M,e({},_,{samples:V}));_.samples=[];var Ht=G/R,tr=Z/R,Mt="audio",Tt={data1:xt,data2:me,startPTS:Ht,endPTS:tr,startDTS:Ht,endDTS:tr,type:Mt,hasAudio:!0,hasVideo:!1,nb:Ot};return this.isAudioContiguous=!0,console.assert(me.length,"MDAT length must not be zero"),Tt},b.remuxEmptyAudio=function(_,I,L,N){var D=_.inputTimeScale,R=_.samplerate?_.samplerate:D,k=D/R,M=this.nextAudioPts,U=(M!==null?M:N.startDTS*D)+this._initDTS,B=N.endDTS*D+this._initDTS,j=k*t,W=Math.ceil((B-U)/j),V=g.default.getSilentFrame(_.manifestCodec||_.codec,_.channelCount);if(r.logger.warn("[mp4-remuxer]: remux empty Audio"),!V){r.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var z=[],J=0;J<W;J++){var Z=U+J*j;z.push({unit:V,pts:Z,dts:Z})}return _.samples=z,this.remuxAudio(_,I,L,!1)},b.remuxID3=function(_,I){var L=_.samples.length;if(!L)return;for(var N=_.inputTimeScale,D=this._initPTS,R=this._initDTS,k=0;k<L;k++){var M=_.samples[k];M.pts=m(M.pts-D,I*N)/N,M.dts=m(M.dts-R,I*N)/N}var U=_.samples;return _.samples=[],{samples:U}},b.remuxText=function(_,I){var L=_.samples.length;if(!L)return;for(var N=_.inputTimeScale,D=this._initPTS,R=0;R<L;R++){var k=_.samples[R];k.pts=m(k.pts-D,I*N)/N}_.samples.sort(function(U,B){return U.pts-B.pts});var M=_.samples;return _.samples=[],{samples:M}},T}();function m(T,b){var w;if(b===null)return T;for(b<T?w=-8589934592:w=8589934592;Math.abs(T-b)>4294967296;)T+=w;return T}function v(T){for(var b=0;b<T.length;b++)if(T[b].key)return b;return-1}var y=function(b,w,_,I){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=w,this.size=_,this.cts=I,this.flags=new E(b)},E=function(b){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=b?2:1,this.isNonSync=b?0:1}},"./src/remux/passthrough-remuxer.ts":function(x,C,A){"use strict";A.r(C);var S=A("./src/polyfills/number.ts"),g=A("./src/utils/mp4-tools.ts"),f=A("./src/loader/fragment.ts"),c=A("./src/utils/logger.ts"),o=function(){function n(){this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=void 0,this.initTracks=void 0,this.lastEndDTS=null}var e=n.prototype;return e.destroy=function(){},e.resetTimeStamp=function(t){this.initPTS=t,this.lastEndDTS=null},e.resetNextTimestamp=function(){this.lastEndDTS=null},e.resetInitSegment=function(t,a,s){this.audioCodec=a,this.videoCodec=s,this.generateInitSegment(t),this.emitInitSegment=!0},e.generateInitSegment=function(t){var a=this.audioCodec,s=this.videoCodec;if(!t||!t.byteLength){this.initTracks=void 0,this.initData=void 0;return}var u=this.initData=Object(g.parseInitSegment)(t);a||(a=i(u.audio,f.ElementaryStreamTypes.AUDIO)),s||(s=i(u.video,f.ElementaryStreamTypes.VIDEO));var h={};u.audio&&u.video?h.audiovideo={container:"video/mp4",codec:a+","+s,initSegment:t,id:"main"}:u.audio?h.audio={container:"audio/mp4",codec:a,initSegment:t,id:"audio"}:u.video?h.video={container:"video/mp4",codec:s,initSegment:t,id:"main"}:c.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=h},e.remux=function(t,a,s,u,h){var p=this.initPTS,m=this.lastEndDTS,v={audio:void 0,video:void 0,text:u,id3:s,initSegment:void 0};Object(S.isFiniteNumber)(m)||(m=this.lastEndDTS=h||0);var y=a.samples;if(!y||!y.length)return v;var E={initPTS:void 0,timescale:1},T=this.initData;if((!T||!T.length)&&(this.generateInitSegment(y),T=this.initData),!T||!T.length)return c.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),v;this.emitInitSegment&&(E.tracks=this.initTracks,this.emitInitSegment=!1),Object(S.isFiniteNumber)(p)||(this.initPTS=E.initPTS=p=r(T,y,m));var b=Object(g.getDuration)(y,T),w=m,_=b+w;Object(g.offsetStartDTS)(T,y,p),b>0?this.lastEndDTS=_:(c.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var I=!!T.audio,L=!!T.video,N="";I&&(N+="audio"),L&&(N+="video");var D={data1:y,startPTS:w,startDTS:w,endPTS:_,endDTS:_,type:N,hasAudio:I,hasVideo:L,nb:1,dropped:0};return v.audio=D.type==="audio"?D:void 0,v.video=D.type!=="audio"?D:void 0,v.text=u,v.id3=s,v.initSegment=E,v},n}(),r=function(e,l,t){return Object(g.getStartDTS)(e,l)-t};function i(n,e){var l=n==null?void 0:n.codec;return l&&l.length>4?l:l==="hvc1"?"hvc1.1.c.L120.90":l==="av01"?"av01.0.04M.08":l==="avc1"||e===f.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}C.default=o},"./src/task-loop.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return S});var S=function(){function g(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var f=g.prototype;return f.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},f.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},f.onHandlerDestroyed=function(){},f.hasInterval=function(){return!!this._tickInterval},f.hasNextTick=function(){return!!this._tickTimer},f.setInterval=function(o){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,o),!0)},f.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},f.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},f.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},f.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},f.doTick=function(){},g}()},"./src/types/cmcd.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"CMCDVersion",function(){return S}),A.d(C,"CMCDObjectType",function(){return g}),A.d(C,"CMCDStreamingFormat",function(){return f}),A.d(C,"CMCDStreamType",function(){return c});var S=1,g;(function(o){o.MANIFEST="m",o.AUDIO="a",o.VIDEO="v",o.MUXED="av",o.INIT="i",o.CAPTION="c",o.TIMED_TEXT="tt",o.KEY="k",o.OTHER="o"})(g||(g={}));var f;(function(o){o.DASH="d",o.HLS="h",o.SMOOTH="s",o.OTHER="o"})(f||(f={}));var c;(function(o){o.VOD="v",o.LIVE="l"})(c||(c={}))},"./src/types/level.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"HlsSkip",function(){return f}),A.d(C,"getSkipValue",function(){return c}),A.d(C,"HlsUrlParameters",function(){return o}),A.d(C,"Level",function(){return r});function S(i,n){for(var e=0;e<n.length;e++){var l=n[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(i,l.key,l)}}function g(i,n,e){return n&&S(i.prototype,n),e&&S(i,e),i}var f;(function(i){i.No="",i.Yes="YES",i.v2="v2"})(f||(f={}));function c(i,n){var e=i.canSkipUntil,l=i.canSkipDateRanges,t=i.endSN,a=n!==void 0?n-t:0;return e&&a<e?l?f.v2:f.Yes:f.No}var o=function(){function i(e,l,t){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=l,this.skip=t}var n=i.prototype;return n.addDirectives=function(l){var t=new self.URL(l);return this.msn!==void 0&&t.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.toString()},i}(),r=function(){function i(n){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=[n.url],this.attrs=n.attrs,this.bitrate=n.bitrate,n.details&&(this.details=n.details),this.id=n.id||0,this.name=n.name,this.width=n.width||0,this.height=n.height||0,this.audioCodec=n.audioCodec,this.videoCodec=n.videoCodec,this.unknownCodecs=n.unknownCodecs,this.codecSet=[n.videoCodec,n.audioCodec].filter(function(e){return e}).join(",").replace(/\.[^.,]+/g,"")}return g(i,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(e){var l=e%this.url.length;this._urlId!==l&&(this.details=void 0,this._urlId=l)}}]),i}()},"./src/types/loader.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"PlaylistContextType",function(){return S}),A.d(C,"PlaylistLevelType",function(){return g});var S;(function(f){f.MANIFEST="manifest",f.LEVEL="level",f.AUDIO_TRACK="audioTrack",f.SUBTITLE_TRACK="subtitleTrack"})(S||(S={}));var g;(function(f){f.MAIN="main",f.AUDIO="audio",f.SUBTITLE="subtitle"})(g||(g={}))},"./src/types/transmuxer.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"ChunkMetadata",function(){return S});var S=function(c,o,r,i,n,e){i===void 0&&(i=0),n===void 0&&(n=-1),e===void 0&&(e=!1),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=g(),this.buffering={audio:g(),video:g(),audiovideo:g()},this.level=c,this.sn=o,this.id=r,this.size=i,this.part=n,this.partial=e};function g(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"AttrList",function(){return f});var S=/^(\d+)x(\d+)$/,g=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,f=function(){function c(r){typeof r=="string"&&(r=c.parseAttrList(r));for(var i in r)r.hasOwnProperty(i)&&(this[i]=r[i])}var o=c.prototype;return o.decimalInteger=function(i){var n=parseInt(this[i],10);return n>Number.MAX_SAFE_INTEGER?Infinity:n},o.hexadecimalInteger=function(i){if(this[i]){var n=(this[i]||"0x").slice(2);n=(n.length&1?"0":"")+n;for(var e=new Uint8Array(n.length/2),l=0;l<n.length/2;l++)e[l]=parseInt(n.slice(l*2,l*2+2),16);return e}else return null},o.hexadecimalIntegerAsNumber=function(i){var n=parseInt(this[i],16);return n>Number.MAX_SAFE_INTEGER?Infinity:n},o.decimalFloatingPoint=function(i){return parseFloat(this[i])},o.optionalFloat=function(i,n){var e=this[i];return e?parseFloat(e):n},o.enumeratedString=function(i){return this[i]},o.bool=function(i){return this[i]==="YES"},o.decimalResolution=function(i){var n=S.exec(this[i]);return n===null?void 0:{width:parseInt(n[1],10),height:parseInt(n[2],10)}},c.parseAttrList=function(i){var n,e={},l='"';for(g.lastIndex=0;(n=g.exec(i))!==null;){var t=n[2];t.indexOf(l)===0&&t.lastIndexOf(l)===t.length-1&&(t=t.slice(1,-1)),e[n[1]]=t}return e},c}()},"./src/utils/binary-search.ts":function(x,C,A){"use strict";A.r(C);var S={search:function(f,c){for(var o=0,r=f.length-1,i=null,n=null;o<=r;){i=(o+r)/2|0,n=f[i];var e=c(n);if(e>0)o=i+1;else if(e<0)r=i-1;else return n}return null}};C.default=S},"./src/utils/buffer-helper.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"BufferHelper",function(){return f});var S=A("./src/utils/logger.ts"),g={length:0,start:function(){return 0},end:function(){return 0}},f=function(){function c(){}return c.isBuffered=function(r,i){try{if(r){for(var n=c.getBuffered(r),e=0;e<n.length;e++)if(i>=n.start(e)&&i<=n.end(e))return!0}}catch(l){}return!1},c.bufferInfo=function(r,i,n){try{if(r){var e=c.getBuffered(r),l=[],t;for(t=0;t<e.length;t++)l.push({start:e.start(t),end:e.end(t)});return this.bufferedInfo(l,i,n)}}catch(a){}return{len:0,start:i,end:i,nextStart:void 0}},c.bufferedInfo=function(r,i,n){i=Math.max(0,i),r.sort(function(E,T){var b=E.start-T.start;return b||T.end-E.end});var e=[];if(n)for(var l=0;l<r.length;l++){var t=e.length;if(t){var a=e[t-1].end;r[l].start-a<n?r[l].end>a&&(e[t-1].end=r[l].end):e.push(r[l])}else e.push(r[l])}else e=r;for(var s=0,u,h=i,p=i,m=0;m<e.length;m++){var v=e[m].start,y=e[m].end;if(i+n>=v&&i<y)h=v,p=y,s=p-i;else if(i+n<v){u=v;break}}return{len:s,start:h||0,end:p||0,nextStart:u}},c.getBuffered=function(r){try{return r.buffered}catch(i){return S.logger.log("failed to get media.buffered",i),g}},c}()},"./src/utils/cea-608-parser.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"Row",function(){return p}),A.d(C,"CaptionScreen",function(){return m});var S=A("./src/utils/logger.ts"),g={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},f=function(_){var I=_;return g.hasOwnProperty(_)&&(I=g[_]),String.fromCharCode(I)},c=15,o=100,r={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},i={17:2,18:4,21:6,22:8,23:10,19:13,20:15},n={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},e={25:2,26:4,29:6,30:8,31:10,27:13,28:15},l=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],t;(function(w){w[w.ERROR=0]="ERROR",w[w.TEXT=1]="TEXT",w[w.WARNING=2]="WARNING",w[w.INFO=2]="INFO",w[w.DEBUG=3]="DEBUG",w[w.DATA=3]="DATA"})(t||(t={}));var a=function(){function w(){this.time=null,this.verboseLevel=t.ERROR}var _=w.prototype;return _.log=function(L,N){this.verboseLevel>=L&&S.logger.log(this.time+" ["+L+"] "+N)},w}(),s=function(_){for(var I=[],L=0;L<_.length;L++)I.push(_[L].toString(16));return I},u=function(){function w(I,L,N,D,R){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=I||"white",this.underline=L||!1,this.italics=N||!1,this.background=D||"black",this.flash=R||!1}var _=w.prototype;return _.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},_.setStyles=function(L){for(var N=["foreground","underline","italics","background","flash"],D=0;D<N.length;D++){var R=N[D];L.hasOwnProperty(R)&&(this[R]=L[R])}},_.isDefault=function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},_.equals=function(L){return this.foreground===L.foreground&&this.underline===L.underline&&this.italics===L.italics&&this.background===L.background&&this.flash===L.flash},_.copy=function(L){this.foreground=L.foreground,this.underline=L.underline,this.italics=L.italics,this.background=L.background,this.flash=L.flash},_.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},w}(),h=function(){function w(I,L,N,D,R,k){this.uchar=void 0,this.penState=void 0,this.uchar=I||" ",this.penState=new u(L,N,D,R,k)}var _=w.prototype;return _.reset=function(){this.uchar=" ",this.penState.reset()},_.setChar=function(L,N){this.uchar=L,this.penState.copy(N)},_.setPenState=function(L){this.penState.copy(L)},_.equals=function(L){return this.uchar===L.uchar&&this.penState.equals(L.penState)},_.copy=function(L){this.uchar=L.uchar,this.penState.copy(L.penState)},_.isEmpty=function(){return this.uchar===" "&&this.penState.isDefault()},w}(),p=function(){function w(I){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<o;L++)this.chars.push(new h);this.logger=I,this.pos=0,this.currPenState=new u}var _=w.prototype;return _.equals=function(L){for(var N=!0,D=0;D<o;D++)if(!this.chars[D].equals(L.chars[D])){N=!1;break}return N},_.copy=function(L){for(var N=0;N<o;N++)this.chars[N].copy(L.chars[N])},_.isEmpty=function(){for(var L=!0,N=0;N<o;N++)if(!this.chars[N].isEmpty()){L=!1;break}return L},_.setCursor=function(L){this.pos!==L&&(this.pos=L),this.pos<0?(this.logger.log(t.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>o&&(this.logger.log(t.DEBUG,"Too large cursor position "+this.pos),this.pos=o)},_.moveCursor=function(L){var N=this.pos+L;if(L>1)for(var D=this.pos+1;D<N+1;D++)this.chars[D].setPenState(this.currPenState);this.setCursor(N)},_.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},_.insertChar=function(L){L>=144&&this.backSpace();var N=f(L);if(this.pos>=o){this.logger.log(t.ERROR,"Cannot insert "+L.toString(16)+" ("+N+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(N,this.currPenState),this.moveCursor(1)},_.clearFromPos=function(L){var N;for(N=L;N<o;N++)this.chars[N].reset()},_.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},_.clearToEndOfRow=function(){this.clearFromPos(this.pos)},_.getTextString=function(){for(var L=[],N=!0,D=0;D<o;D++){var R=this.chars[D].uchar;R!==" "&&(N=!1),L.push(R)}return N?"":L.join("")},_.setPenStyles=function(L){this.currPenState.setStyles(L);var N=this.chars[this.pos];N.setPenState(this.currPenState)},w}(),m=function(){function w(I){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<c;L++)this.rows.push(new p(I));this.logger=I,this.currRow=c-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var _=w.prototype;return _.reset=function(){for(var L=0;L<c;L++)this.rows[L].clear();this.currRow=c-1},_.equals=function(L){for(var N=!0,D=0;D<c;D++)if(!this.rows[D].equals(L.rows[D])){N=!1;break}return N},_.copy=function(L){for(var N=0;N<c;N++)this.rows[N].copy(L.rows[N])},_.isEmpty=function(){for(var L=!0,N=0;N<c;N++)if(!this.rows[N].isEmpty()){L=!1;break}return L},_.backSpace=function(){var L=this.rows[this.currRow];L.backSpace()},_.clearToEndOfRow=function(){var L=this.rows[this.currRow];L.clearToEndOfRow()},_.insertChar=function(L){var N=this.rows[this.currRow];N.insertChar(L)},_.setPen=function(L){var N=this.rows[this.currRow];N.setPenStyles(L)},_.moveCursor=function(L){var N=this.rows[this.currRow];N.moveCursor(L)},_.setCursor=function(L){this.logger.log(t.INFO,"setCursor: "+L);var N=this.rows[this.currRow];N.setCursor(L)},_.setPAC=function(L){this.logger.log(t.INFO,"pacData = "+JSON.stringify(L));var N=L.row-1;if(this.nrRollUpRows&&N<this.nrRollUpRows-1&&(N=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==N){for(var D=0;D<c;D++)this.rows[D].clear();var R=this.currRow+1-this.nrRollUpRows,k=this.lastOutputScreen;if(k){var M=k.rows[R].cueStartTime,U=this.logger.time;if(M&&U!==null&&M<U)for(var B=0;B<this.nrRollUpRows;B++)this.rows[N-this.nrRollUpRows+B+1].copy(k.rows[R+B])}}this.currRow=N;var j=this.rows[this.currRow];if(L.indent!==null){var W=L.indent,V=Math.max(W-1,0);j.setCursor(L.indent),L.color=j.chars[V].penState.foreground}var z={foreground:L.color,underline:L.underline,italics:L.italics,background:"black",flash:!1};this.setPen(z)},_.setBkgData=function(L){this.logger.log(t.INFO,"bkgData = "+JSON.stringify(L)),this.backSpace(),this.setPen(L),this.insertChar(32)},_.setRollUpRows=function(L){this.nrRollUpRows=L},_.rollUp=function(){if(this.nrRollUpRows===null){this.logger.log(t.DEBUG,"roll_up but nrRollUpRows not set yet");return}this.logger.log(t.TEXT,this.getDisplayText());var L=this.currRow+1-this.nrRollUpRows,N=this.rows.splice(L,1)[0];N.clear(),this.rows.splice(this.currRow,0,N),this.logger.log(t.INFO,"Rolling up")},_.getDisplayText=function(L){L=L||!1;for(var N=[],D="",R=-1,k=0;k<c;k++){var M=this.rows[k].getTextString();M&&(R=k+1,L?N.push("Row "+R+": '"+M+"'"):N.push(M.trim()))}return N.length>0&&(L?D="["+N.join(" | ")+"]":D=N.join(`
|
|
|
`)),D},_.getTextAndFormat=function(){return this.rows},w}(),v=function(){function w(I,L,N){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=I,this.outputFilter=L,this.mode=null,this.verbose=0,this.displayedMemory=new m(N),this.nonDisplayedMemory=new m(N),this.lastOutputScreen=new m(N),this.currRollUpRow=this.displayedMemory.rows[c-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=N}var _=w.prototype;return _.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[c-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},_.getHandler=function(){return this.outputFilter},_.setHandler=function(L){this.outputFilter=L},_.setPAC=function(L){this.writeScreen.setPAC(L)},_.setBkgData=function(L){this.writeScreen.setBkgData(L)},_.setMode=function(L){if(L===this.mode)return;this.mode=L,this.logger.log(t.INFO,"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},_.insertChars=function(L){for(var N=0;N<L.length;N++)this.writeScreen.insertChar(L[N]);var D=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(t.INFO,D+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(t.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},_.ccRCL=function(){this.logger.log(t.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},_.ccBS=function(){if(this.logger.log(t.INFO,"BS - BackSpace"),this.mode==="MODE_TEXT")return;this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate()},_.ccAOF=function(){},_.ccAON=function(){},_.ccDER=function(){this.logger.log(t.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},_.ccRU=function(L){this.logger.log(t.INFO,"RU("+L+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(L)},_.ccFON=function(){this.logger.log(t.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},_.ccRDC=function(){this.logger.log(t.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},_.ccTR=function(){this.logger.log(t.INFO,"TR"),this.setMode("MODE_TEXT")},_.ccRTD=function(){this.logger.log(t.INFO,"RTD"),this.setMode("MODE_TEXT")},_.ccEDM=function(){this.logger.log(t.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},_.ccCR=function(){this.logger.log(t.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},_.ccENM=function(){this.logger.log(t.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},_.ccEOC=function(){if(this.logger.log(t.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var L=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=L,this.writeScreen=this.nonDisplayedMemory,this.logger.log(t.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},_.ccTO=function(L){this.logger.log(t.INFO,"TO("+L+") - Tab Offset"),this.writeScreen.moveCursor(L)},_.ccMIDROW=function(L){var N={flash:!1};if(N.underline=L%2===1,N.italics=L>=46,N.italics)N.foreground="white";else{var D=Math.floor(L/2)-16,R=["white","green","blue","cyan","red","yellow","magenta"];N.foreground=R[D]}this.logger.log(t.INFO,"MIDROW: "+JSON.stringify(N)),this.writeScreen.setPen(N)},_.outputDataUpdate=function(L){L===void 0&&(L=!1);var N=this.logger.time;if(N===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=N:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,N,this.lastOutputScreen),L&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:N),this.lastOutputScreen.copy(this.displayedMemory))},_.cueSplitAtTime=function(L){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,L,this.displayedMemory),this.cueStartTime=L))},w}(),y=function(){function w(I,L,N){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var D=new a;this.channels=[null,new v(I,L,D),new v(I+1,N,D)],this.cmdHistory=b(),this.logger=D}var _=w.prototype;return _.getHandler=function(L){return this.channels[L].getHandler()},_.setHandler=function(L,N){this.channels[L].setHandler(N)},_.addData=function(L,N){var D,R,k,M=!1;this.logger.time=L;for(var U=0;U<N.length;U+=2){if(R=N[U]&127,k=N[U+1]&127,R===0&&k===0)continue;if(this.logger.log(t.DATA,"["+s([N[U],N[U+1]])+"] -> ("+s([R,k])+")"),D=this.parseCmd(R,k),D||(D=this.parseMidrow(R,k)),D||(D=this.parsePAC(R,k)),D||(D=this.parseBackgroundAttributes(R,k)),!D&&(M=this.parseChars(R,k),M)){var B=this.currentChannel;if(B&&B>0){var j=this.channels[B];j.insertChars(M)}else this.logger.log(t.WARNING,"No channel found yet. TEXT-MODE?")}!D&&!M&&this.logger.log(t.WARNING,"Couldn't parse cleaned data "+s([R,k])+" orig: "+s([N[U],N[U+1]]))}},_.parseCmd=function(L,N){var D=this.cmdHistory,R=(L===20||L===28||L===21||L===29)&&N>=32&&N<=47,k=(L===23||L===31)&&N>=33&&N<=35;if(!(R||k))return!1;if(T(L,N,D))return E(null,null,D),this.logger.log(t.DEBUG,"Repeated command ("+s([L,N])+") is dropped"),!0;var M=L===20||L===21||L===23?1:2,U=this.channels[M];return L===20||L===21||L===28||L===29?N===32?U.ccRCL():N===33?U.ccBS():N===34?U.ccAOF():N===35?U.ccAON():N===36?U.ccDER():N===37?U.ccRU(2):N===38?U.ccRU(3):N===39?U.ccRU(4):N===40?U.ccFON():N===41?U.ccRDC():N===42?U.ccTR():N===43?U.ccRTD():N===44?U.ccEDM():N===45?U.ccCR():N===46?U.ccENM():N===47&&U.ccEOC():U.ccTO(N-32),E(L,N,D),this.currentChannel=M,!0},_.parseMidrow=function(L,N){var D=0;if((L===17||L===25)&&N>=32&&N<=47){if(L===17?D=1:D=2,D!==this.currentChannel)return this.logger.log(t.ERROR,"Mismatch channel in midrow parsing"),!1;var R=this.channels[D];return R?(R.ccMIDROW(N),this.logger.log(t.DEBUG,"MIDROW ("+s([L,N])+")"),!0):!1}return!1},_.parsePAC=function(L,N){var D,R=this.cmdHistory,k=(L>=17&&L<=23||L>=25&&L<=31)&&N>=64&&N<=127,M=(L===16||L===24)&&N>=64&&N<=95;if(!(k||M))return!1;if(T(L,N,R))return E(null,null,R),!0;var U=L<=23?1:2;N>=64&&N<=95?D=U===1?r[L]:n[L]:D=U===1?i[L]:e[L];var B=this.channels[U];return B?(B.setPAC(this.interpretPAC(D,N)),E(L,N,R),this.currentChannel=U,!0):!1},_.interpretPAC=function(L,N){var D,R={color:null,italics:!1,indent:null,underline:!1,row:L};return N>95?D=N-96:D=N-64,R.underline=(D&1)===1,D<=13?R.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(D/2)]:D<=15?(R.italics=!0,R.color="white"):R.indent=Math.floor((D-16)/2)*4,R},_.parseChars=function(L,N){var D,R=null,k=null;if(L>=25?(D=2,k=L-8):(D=1,k=L),k>=17&&k<=19){var M;k===17?M=N+80:k===18?M=N+112:M=N+144,this.logger.log(t.INFO,"Special char '"+f(M)+"' in channel "+D),R=[M]}else L>=32&&L<=127&&(R=N===0?[L]:[L,N]);if(R){var U=s(R);this.logger.log(t.DEBUG,"Char codes = "+U.join(",")),E(L,N,this.cmdHistory)}return R},_.parseBackgroundAttributes=function(L,N){var D=(L===16||L===24)&&N>=32&&N<=47,R=(L===23||L===31)&&N>=45&&N<=47;if(!(D||R))return!1;var k,M={};L===16||L===24?(k=Math.floor((N-32)/2),M.background=l[k],N%2===1&&(M.background=M.background+"_semi")):N===45?M.background="transparent":(M.foreground="black",N===47&&(M.underline=!0));var U=L<=23?1:2,B=this.channels[U];return B.setBkgData(M),E(L,N,this.cmdHistory),!0},_.reset=function(){for(var L=0;L<Object.keys(this.channels).length;L++){var N=this.channels[L];N&&N.reset()}this.cmdHistory=b()},_.cueSplitAtTime=function(L){for(var N=0;N<this.channels.length;N++){var D=this.channels[N];D&&D.cueSplitAtTime(L)}},w}();function E(w,_,I){I.a=w,I.b=_}function T(w,_,I){return I.a===w&&I.b===_}function b(){return{a:null,b:null}}C.default=y},"./src/utils/codecs.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"isCodecType",function(){return g}),A.d(C,"isCodecSupportedInMp4",function(){return f});var S={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,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,dvav:!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}};function g(c,o){var r=S[o];return!!r&&r[c.slice(0,4)]===!0}function f(c,o){return MediaSource.isTypeSupported((o||"video")+'/mp4;codecs="'+c+'"')}},"./src/utils/cues.ts":function(x,C,A){"use strict";A.r(C);var S=A("./src/utils/vttparser.ts"),g=A("./src/utils/webvtt-parser.ts"),f=A("./src/utils/texttrack-utils.ts"),c=/\s/,o={newCue:function(i,n,e,l){for(var t=[],a,s,u,h,p,m=self.VTTCue||self.TextTrackCue,v=0;v<l.rows.length;v++)if(a=l.rows[v],u=!0,h=0,p="",!a.isEmpty()){for(var y=0;y<a.chars.length;y++)c.test(a.chars[y].uchar)&&u?h++:(p+=a.chars[y].uchar,u=!1);a.cueStartTime=n,n===e&&(e+=1e-4),h>=16?h--:h++;var E=Object(S.fixLineBreaks)(p.trim()),T=Object(g.generateCueId)(n,e,E);(!i||!i.cues||!i.cues.getCueById(T))&&(s=new m(n,e,E),s.id=T,s.line=v+1,s.align="left",s.position=10+Math.min(80,Math.floor(h*8/32)*10),t.push(s))}return i&&t.length&&(t.sort(function(b,w){return b.line==="auto"||w.line==="auto"?0:b.line>8&&w.line>8?w.line-b.line:b.line-w.line}),t.forEach(function(b){return Object(f.addCueToTrack)(i,b)})),t}};C.default=o},"./src/utils/discontinuities.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"findFirstFragWithCC",function(){return c}),A.d(C,"shouldAlignOnDiscontinuities",function(){return o}),A.d(C,"findDiscontinuousReferenceFrag",function(){return r}),A.d(C,"adjustSlidingStart",function(){return n}),A.d(C,"alignStream",function(){return e}),A.d(C,"alignPDT",function(){return t}),A.d(C,"alignFragmentByPDTDelta",function(){return a}),A.d(C,"alignMediaPlaylistByPDT",function(){return s});var S=A("./src/polyfills/number.ts"),g=A("./src/utils/logger.ts"),f=A("./src/controller/level-helper.ts");function c(u,h){for(var p=null,m=0,v=u.length;m<v;m++){var y=u[m];if(y&&y.cc===h){p=y;break}}return p}function o(u,h,p){return!!(h.details&&(p.endCC>p.startCC||u&&u.cc<p.startCC))}function r(u,h){var p=u.fragments,m=h.fragments;if(!m.length||!p.length){g.logger.log("No fragments to align");return}var v=c(p,m[0].cc);if(!v||v&&!v.startPTS){g.logger.log("No frag in previous level to align on");return}return v}function i(u,h){if(u){var p=u.start+h;u.start=u.startPTS=p,u.endPTS=p+u.duration}}function n(u,h){for(var p=h.fragments,m=0,v=p.length;m<v;m++)i(p[m],u);h.fragmentHint&&i(h.fragmentHint,u),h.alignedSliding=!0}function e(u,h,p){if(!h)return;l(u,p,h),!p.alignedSliding&&h.details&&t(p,h.details),!p.alignedSliding&&h.details&&!p.skippedSegments&&Object(f.adjustSliding)(h.details,p)}function l(u,h,p){if(o(u,p,h)){var m=r(p.details,h);m&&Object(S.isFiniteNumber)(m.start)&&(g.logger.log("Adjusting PTS using last level due to CC increase within current level "+h.url),n(m.start,h))}}function t(u,h){if(!h.fragments.length||!u.hasProgramDateTime||!h.hasProgramDateTime)return;var p=h.fragments[0].programDateTime,m=u.fragments[0].programDateTime,v=(m-p)/1e3+h.fragments[0].start;v&&Object(S.isFiniteNumber)(v)&&(g.logger.log("Adjusting PTS using programDateTime delta "+(m-p)+"ms, sliding:"+v.toFixed(3)+" "+u.url+" "),n(v,u))}function a(u,h){var p=u.programDateTime;if(!p)return;var m=(p-h)/1e3;u.start=u.startPTS=m,u.endPTS=m+u.duration}function s(u,h){if(!h.fragments.length||!u.hasProgramDateTime||!h.hasProgramDateTime)return;var p=h.fragments[0].programDateTime,m=h.fragments[0].start,v=p-m*1e3;u.fragments.forEach(function(y){a(y,v)}),u.fragmentHint&&a(u.fragmentHint,v),u.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(x,C,A){"use strict";A.r(C);var S=A("./src/utils/ewma.ts"),g=function(){function f(o,r,i){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=i,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new S.default(o),this.fast_=new S.default(r)}var c=f.prototype;return c.update=function(r,i){var n=this.slow_,e=this.fast_;this.slow_.halfLife!==r&&(this.slow_=new S.default(r,n.getEstimate(),n.getTotalWeight())),this.fast_.halfLife!==i&&(this.fast_=new S.default(i,e.getEstimate(),e.getTotalWeight()))},c.sample=function(r,i){r=Math.max(r,this.minDelayMs_);var n=8*i,e=r/1e3,l=n/e;this.fast_.sample(e,l),this.slow_.sample(e,l)},c.canEstimate=function(){var r=this.fast_;return r&&r.getTotalWeight()>=this.minWeight_},c.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},c.destroy=function(){},f}();C.default=g},"./src/utils/ewma.ts":function(x,C,A){"use strict";A.r(C);var S=function(){function g(c,o,r){o===void 0&&(o=0),r===void 0&&(r=0),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=c,this.alpha_=c?Math.exp(Math.log(.5)/c):0,this.estimate_=o,this.totalWeight_=r}var f=g.prototype;return f.sample=function(o,r){var i=Math.pow(this.alpha_,o);this.estimate_=r*(1-i)+i*this.estimate_,this.totalWeight_+=o},f.getTotalWeight=function(){return this.totalWeight_},f.getEstimate=function(){if(this.alpha_){var o=1-Math.pow(this.alpha_,this.totalWeight_);if(o)return this.estimate_/o}return this.estimate_},g}();C.default=S},"./src/utils/fetch-loader.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"fetchSupported",function(){return a});var S=A("./src/polyfills/number.ts"),g=A("./src/loader/load-stats.ts"),f=A("./src/demux/chunk-cache.ts");function c(m,v){m.prototype=Object.create(v.prototype),m.prototype.constructor=m,e(m,v)}function o(m){var v=typeof Map=="function"?new Map:void 0;return o=function(E){if(E===null||!n(E))return E;if(typeof E!="function")throw new TypeError("Super expression must either be null or a function");if(typeof v!="undefined"){if(v.has(E))return v.get(E);v.set(E,T)}function T(){return r(E,arguments,l(this).constructor)}return T.prototype=Object.create(E.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),e(T,E)},o(m)}function r(m,v,y){return i()?r=Reflect.construct:r=function(T,b,w){var _=[null];_.push.apply(_,b);var I=Function.bind.apply(T,_),L=new I;return w&&e(L,w.prototype),L},r.apply(null,arguments)}function i(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(m){return!1}}function n(m){return Function.toString.call(m).indexOf("[native code]")!==-1}function e(m,v){return e=Object.setPrototypeOf||function(E,T){return E.__proto__=T,E},e(m,v)}function l(m){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)},l(m)}function t(){return t=Object.assign||function(m){for(var v=1;v<arguments.length;v++){var y=arguments[v];for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&(m[E]=y[E])}return m},t.apply(this,arguments)}function a(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(m){}return!1}var s=function(){function m(y){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=y.fetchSetup||h,this.controller=new self.AbortController,this.stats=new g.LoadStats}var v=m.prototype;return v.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},v.abortInternal=function(){var E=this.response;(!E||!E.ok)&&(this.stats.aborted=!0,this.controller.abort())},v.abort=function(){var E;this.abortInternal(),(E=this.callbacks)!==null&&E!==void 0&&E.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},v.load=function(E,T,b){var w=this,_=this.stats;if(_.loading.start)throw new Error("Loader can only be used once.");_.loading.start=self.performance.now();var I=u(E,this.controller.signal),L=b.onProgress,N=E.responseType==="arraybuffer",D=N?"byteLength":"length";this.context=E,this.config=T,this.callbacks=b,this.request=this.fetchSetup(E,I),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){w.abortInternal(),b.onTimeout(_,E,w.response)},T.timeout),self.fetch(this.request).then(function(R){if(w.response=w.loader=R,!R.ok){var k=R.status,M=R.statusText;throw new p(M||"fetch, bad network response",k,R)}return _.loading.first=Math.max(self.performance.now(),_.loading.start),_.total=parseInt(R.headers.get("Content-Length")||"0"),L&&Object(S.isFiniteNumber)(T.highWaterMark)?w.loadProgressively(R,_,E,T.highWaterMark,L):N?R.arrayBuffer():R.text()}).then(function(R){var k=w.response;self.clearTimeout(w.requestTimeout),_.loading.end=Math.max(self.performance.now(),_.loading.first),_.loaded=_.total=R[D];var M={url:k.url,data:R};L&&!Object(S.isFiniteNumber)(T.highWaterMark)&&L(_,E,R,k),b.onSuccess(M,_,E,k)}).catch(function(R){if(self.clearTimeout(w.requestTimeout),_.aborted)return;var k=R.code||0;b.onError({code:k,text:R.message},E,R.details)})},v.getCacheAge=function(){var E=null;if(this.response){var T=this.response.headers.get("age");E=T?parseFloat(T):null}return E},v.loadProgressively=function(E,T,b,w,_){w===void 0&&(w=0);var I=new f.default,L=E.body.getReader(),N=function D(){return L.read().then(function(R){if(R.done)return I.dataLength&&_(T,b,I.flush(),E),Promise.resolve(new ArrayBuffer(0));var k=R.value,M=k.length;return T.loaded+=M,M<w||I.dataLength?(I.push(k),I.dataLength>=w&&_(T,b,I.flush(),E)):_(T,b,k,E),D()}).catch(function(){return Promise.reject()})};return N()},m}();function u(m,v){var y={method:"GET",mode:"cors",credentials:"same-origin",signal:v,headers:new self.Headers(t({},m.headers))};return m.rangeEnd&&y.headers.set("Range","bytes="+m.rangeStart+"-"+String(m.rangeEnd-1)),y}function h(m,v){return new self.Request(m.url,v)}var p=function(m){c(v,m);function v(y,E,T){var b;return b=m.call(this,y)||this,b.code=void 0,b.details=void 0,b.code=E,b.details=T,b}return v}(o(Error));C.default=s},"./src/utils/imsc1-ttml-parser.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"IMSC1_CODEC",function(){return n}),A.d(C,"parseIMSC1",function(){return a});var S=A("./src/utils/mp4-tools.ts"),g=A("./src/utils/vttparser.ts"),f=A("./src/utils/vttcue.ts"),c=A("./src/demux/id3.ts"),o=A("./src/utils/timescale-conversion.ts"),r=A("./src/utils/webvtt-parser.ts");function i(){return i=Object.assign||function(w){for(var _=1;_<arguments.length;_++){var I=arguments[_];for(var L in I)Object.prototype.hasOwnProperty.call(I,L)&&(w[L]=I[L])}return w},i.apply(this,arguments)}var n="stpp.ttml.im1t",e=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,l=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,t={left:"start",center:"center",right:"end",start:"start",end:"end"};function a(w,_,I,L,N){var D=Object(S.findBox)(new Uint8Array(w),["mdat"]);if(D.length===0){N(new Error("Could not parse IMSC1 mdat"));return}var R=D[0],k=Object(c.utf8ArrayToStr)(new Uint8Array(w,R.start,R.end-R.start)),M=Object(o.toTimescaleFromScale)(_,1,I);try{L(s(k,M))}catch(U){N(U)}}function s(w,_){var I=new DOMParser,L=I.parseFromString(w,"text/xml"),N=L.getElementsByTagName("tt")[0];if(!N)throw new Error("Invalid ttml");var D={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},R=Object.keys(D).reduce(function(j,W){return j[W]=N.getAttribute("ttp:"+W)||D[W],j},{}),k=N.getAttribute("xml:space")!=="preserve",M=h(u(N,"styling","style")),U=h(u(N,"layout","region")),B=u(N,"body","[begin]");return[].map.call(B,function(j){var W=p(j,k);if(!W||!j.hasAttribute("begin"))return null;var V=E(j.getAttribute("begin"),R),z=E(j.getAttribute("dur"),R),J=E(j.getAttribute("end"),R);if(V===null)throw y(j);if(J===null){if(z===null)throw y(j);J=V+z}var Z=new f.default(V-_,J-_,W);Z.id=Object(r.generateCueId)(Z.startTime,Z.endTime,Z.text);var de=U[j.getAttribute("region")],ie=M[j.getAttribute("style")];Z.position=10,Z.size=80;var ve=m(de,ie),xe=ve.textAlign;if(xe){var _e=t[xe];_e&&(Z.lineAlign=_e),Z.align=xe}return i(Z,ve),Z}).filter(function(j){return j!==null})}function u(w,_,I){var L=w.getElementsByTagName(_)[0];return L?[].slice.call(L.querySelectorAll(I)):[]}function h(w){return w.reduce(function(_,I){var L=I.getAttribute("xml:id");return L&&(_[L]=I),_},{})}function p(w,_){return[].slice.call(w.childNodes).reduce(function(I,L,N){var D;return L.nodeName==="br"&&N?I+`
|
|
|
`:(D=L.childNodes)!==null&&D!==void 0&&D.length?p(L,_):_?I+L.textContent.trim().replace(/\s+/g," "):I+L.textContent},"")}function m(w,_){var I="http://www.w3.org/ns/ttml#styling",L=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return L.reduce(function(N,D){var R=v(_,I,D)||v(w,I,D);return R&&(N[D]=R),N},{})}function v(w,_,I){return w.hasAttributeNS(_,I)?w.getAttributeNS(_,I):null}function y(w){return new Error("Could not parse ttml timestamp "+w)}function E(w,_){if(!w)return null;var I=Object(g.parseTimeStamp)(w);return I===null&&(e.test(w)?I=T(w,_):l.test(w)&&(I=b(w,_))),I}function T(w,_){var I=e.exec(w),L=(I[4]|0)+(I[5]|0)/_.subFrameRate;return(I[1]|0)*3600+(I[2]|0)*60+(I[3]|0)+L/_.frameRate}function b(w,_){var I=l.exec(w),L=Number(I[1]),N=I[2];switch(N){case"h":return L*3600;case"m":return L*60;case"ms":return L*1e3;case"f":return L/_.frameRate;case"t":return L/_.tickRate}return L}},"./src/utils/logger.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"enableLogs",function(){return r}),A.d(C,"logger",function(){return i});var S=function(){},g={trace:S,debug:S,log:S,warn:S,info:S,error:S},f=g;function c(n){var e=self.console[n];return e?e.bind(self.console,"["+n+"] >"):S}function o(n){for(var e=arguments.length,l=new Array(e>1?e-1:0),t=1;t<e;t++)l[t-1]=arguments[t];l.forEach(function(a){f[a]=n[a]?n[a].bind(n):c(a)})}function r(n){if(self.console&&n===!0||typeof n=="object"){o(n,"debug","log","info","warn","error");try{f.log()}catch(e){f=g}}else f=g}var i=f},"./src/utils/mediakeys-helper.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"KeySystems",function(){return S}),A.d(C,"requestMediaKeySystemAccess",function(){return g});var S;(function(f){f.WIDEVINE="com.widevine.alpha",f.PLAYREADY="com.microsoft.playready"})(S||(S={}));var g=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}()},"./src/utils/mediasource-helper.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"getMediaSource",function(){return S});function S(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"bin2str",function(){return o}),A.d(C,"readUint16",function(){return r}),A.d(C,"readUint32",function(){return i}),A.d(C,"writeUint32",function(){return n}),A.d(C,"findBox",function(){return e}),A.d(C,"parseSegmentIndex",function(){return l}),A.d(C,"parseInitSegment",function(){return t}),A.d(C,"getStartDTS",function(){return a}),A.d(C,"getDuration",function(){return s}),A.d(C,"computeRawDurationFromSamples",function(){return u}),A.d(C,"offsetStartDTS",function(){return h}),A.d(C,"segmentValidRange",function(){return p}),A.d(C,"appendUint8Array",function(){return m});var S=A("./src/utils/typed-array.ts"),g=A("./src/loader/fragment.ts"),f=Math.pow(2,32)-1,c=[].push;function o(v){return String.fromCharCode.apply(null,v)}function r(v,y){"data"in v&&(y+=v.start,v=v.data);var E=v[y]<<8|v[y+1];return E<0?65536+E:E}function i(v,y){"data"in v&&(y+=v.start,v=v.data);var E=v[y]<<24|v[y+1]<<16|v[y+2]<<8|v[y+3];return E<0?4294967296+E:E}function n(v,y,E){"data"in v&&(y+=v.start,v=v.data),v[y]=E>>24,v[y+1]=E>>16&255,v[y+2]=E>>8&255,v[y+3]=E&255}function e(v,y){var E=[];if(!y.length)return E;var T,b,w;"data"in v?(T=v.data,b=v.start,w=v.end):(T=v,b=0,w=T.byteLength);for(var _=b;_<w;){var I=i(T,_),L=o(T.subarray(_+4,_+8)),N=I>1?_+I:w;if(L===y[0])if(y.length===1)E.push({data:T,start:_+8,end:N});else{var D=e({data:T,start:_+8,end:N},y.slice(1));D.length&&c.apply(E,D)}_=N}return E}function l(v){var y=e(v,["moov"]),E=y[0],T=E?E.end:null,b=e(v,["sidx"]);if(!b||!b[0])return null;var w=[],_=b[0],I=_.data[0],L=I===0?8:16,N=i(_,L);L+=4;var D=0,R=0;I===0?L+=8:L+=16,L+=2;var k=_.end+R,M=r(_,L);L+=2;for(var U=0;U<M;U++){var B=L,j=i(_,B);B+=4;var W=j&2147483647,V=(j&2147483648)>>>31;if(V===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var z=i(_,B);B+=4,w.push({referenceSize:W,subsegmentDuration:z,info:{duration:z/N,start:k,end:k+W-1}}),k+=W,B+=4,L=B}return{earliestPresentationTime:D,timescale:N,version:I,referencesCount:M,references:w,moovEndOffset:T}}function t(v){for(var y=[],E=e(v,["moov","trak"]),T=0;T<E.length;T++){var b=E[T],w=e(b,["tkhd"])[0];if(w){var _=w.data[w.start],I=_===0?12:20,L=i(w,I),N=e(b,["mdia","mdhd"])[0];if(N){_=N.data[N.start],I=_===0?12:20;var D=i(N,I),R=e(b,["mdia","hdlr"])[0];if(R){var k=o(R.data.subarray(R.start+8,R.start+12)),M={soun:g.ElementaryStreamTypes.AUDIO,vide:g.ElementaryStreamTypes.VIDEO}[k];if(M){var U=e(b,["mdia","minf","stbl","stsd"])[0],B=void 0;U&&(B=o(U.data.subarray(U.start+12,U.start+16))),y[L]={timescale:D,type:M},y[M]={timescale:D,id:L,codec:B}}}}}}var j=e(v,["moov","mvex","trex"]);return j.forEach(function(W){var V=i(W,4),z=y[V];z&&(z.default={duration:i(W,12),flags:i(W,20)})}),y}function a(v,y){return e(y,["moof","traf"]).reduce(function(E,T){var b=e(T,["tfdt"])[0],w=b.data[b.start],_=e(T,["tfhd"]).reduce(function(I,L){var N=i(L,4),D=v[N];if(D){var R=i(b,4);w===1&&(R*=Math.pow(2,32),R+=i(b,8));var k=D.timescale||9e4,M=R/k;if(isFinite(M)&&(I===null||M<I))return M}return I},null);return _!==null&&isFinite(_)&&(E===null||_<E)?_:E},null)||0}function s(v,y){for(var E=0,T=0,b=0,w=e(v,["moof","traf"]),_=0;_<w.length;_++){var I=w[_],L=e(I,["tfhd"])[0],N=i(L,4),D=y[N];if(!D)continue;var R=D.default,k=i(L,0)|(R==null?void 0:R.flags),M=R==null?void 0:R.duration;k&8&&(k&2?M=i(L,12):M=i(L,8));for(var U=D.timescale||9e4,B=e(I,["trun"]),j=0;j<B.length;j++){if(E=u(B[j]),!E&&M){var W=i(B[j],4);E=M*W}D.type===g.ElementaryStreamTypes.VIDEO?T+=E/U:D.type===g.ElementaryStreamTypes.AUDIO&&(b+=E/U)}}if(T===0&&b===0){var V=l(v);if(V!=null&&V.references)return V.references.reduce(function(z,J){return z+J.info.duration||0},0)}return T||b}function u(v){var y=i(v,0),E=8;y&1&&(E+=4),y&4&&(E+=4);for(var T=0,b=i(v,4),w=0;w<b;w++){if(y&256){var _=i(v,E);T+=_,E+=4}y&512&&(E+=4),y&1024&&(E+=4),y&2048&&(E+=4)}return T}function h(v,y,E){e(y,["moof","traf"]).forEach(function(T){e(T,["tfhd"]).forEach(function(b){var w=i(b,4),_=v[w];if(!_)return;var I=_.timescale||9e4;e(T,["tfdt"]).forEach(function(L){var N=L.data[L.start],D=i(L,4);if(N===0)n(L,4,D-E*I);else{D*=Math.pow(2,32),D+=i(L,8),D-=E*I,D=Math.max(D,0);var R=Math.floor(D/(f+1)),k=Math.floor(D%(f+1));n(L,4,R),n(L,8,k)}})})})}function p(v){var y={valid:null,remainder:null},E=e(v,["moof"]);if(E){if(E.length<2)return y.remainder=v,y}else return y;var T=E[E.length-1];return y.valid=Object(S.sliceUint8)(v,0,T.start-8),y.remainder=Object(S.sliceUint8)(v,T.start-8),y}function m(v,y){var E=new Uint8Array(v.length+y.length);return E.set(v),E.set(y,v.length),E}},"./src/utils/output-filter.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return S});var S=function(){function g(c,o){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=c,this.trackName=o}var f=g.prototype;return f.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},f.newCue=function(o,r,i){(this.startTime===null||this.startTime>o)&&(this.startTime=o),this.endTime=r,this.screen=i,this.timelineController.createCaptionsTrack(this.trackName)},f.reset=function(){this.cueRanges=[],this.startTime=null},g}()},"./src/utils/texttrack-utils.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"sendAddTrackEvent",function(){return g}),A.d(C,"addCueToTrack",function(){return f}),A.d(C,"clearCurrentCues",function(){return c}),A.d(C,"removeCuesInRange",function(){return o}),A.d(C,"getCuesInRange",function(){return i});var S=A("./src/utils/logger.ts");function g(n,e){var l;try{l=new Event("addtrack")}catch(t){l=document.createEvent("Event"),l.initEvent("addtrack",!1,!1)}l.track=n,e.dispatchEvent(l)}function f(n,e){var l=n.mode;if(l==="disabled"&&(n.mode="hidden"),n.cues&&!n.cues.getCueById(e.id))try{if(n.addCue(e),!n.cues.getCueById(e.id))throw new Error("addCue is failed for: "+e)}catch(a){S.logger.debug("[texttrack-utils]: "+a);var t=new self.TextTrackCue(e.startTime,e.endTime,e.text);t.id=e.id,n.addCue(t)}l==="disabled"&&(n.mode=l)}function c(n){var e=n.mode;if(e==="disabled"&&(n.mode="hidden"),n.cues)for(var l=n.cues.length;l--;)n.removeCue(n.cues[l]);e==="disabled"&&(n.mode=e)}function o(n,e,l){var t=n.mode;if(t==="disabled"&&(n.mode="hidden"),n.cues&&n.cues.length>0)for(var a=i(n.cues,e,l),s=0;s<a.length;s++)n.removeCue(a[s]);t==="disabled"&&(n.mode=t)}function r(n,e){if(e<n[0].startTime)return 0;var l=n.length-1;if(e>n[l].endTime)return-1;for(var t=0,a=l;t<=a;){var s=Math.floor((a+t)/2);if(e<n[s].startTime)a=s-1;else if(e>n[s].startTime&&t<l)t=s+1;else return s}return n[t].startTime-e<e-n[a].startTime?t:a}function i(n,e,l){var t=[],a=r(n,e);if(a>-1)for(var s=a,u=n.length;s<u;s++){var h=n[s];if(h.startTime>=e&&h.endTime<=l)t.push(h);else if(h.startTime>l)return t}return t}},"./src/utils/time-ranges.ts":function(x,C,A){"use strict";A.r(C);var S={toString:function(f){for(var c="",o=f.length,r=0;r<o;r++)c+="["+f.start(r).toFixed(3)+","+f.end(r).toFixed(3)+"]";return c}};C.default=S},"./src/utils/timescale-conversion.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"toTimescaleFromBase",function(){return g}),A.d(C,"toTimescaleFromScale",function(){return f}),A.d(C,"toMsFromMpegTsClock",function(){return c}),A.d(C,"toMpegTsClockFromTimescale",function(){return o});var S=9e4;function g(r,i,n,e){n===void 0&&(n=1),e===void 0&&(e=!1);var l=r*i*n;return e?Math.round(l):l}function f(r,i,n,e){return n===void 0&&(n=1),e===void 0&&(e=!1),g(r,i,1/n,e)}function c(r,i){return i===void 0&&(i=!1),g(r,1e3,1/S,i)}function o(r,i){return i===void 0&&(i=1),g(r,S,1/i)}},"./src/utils/typed-array.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"sliceUint8",function(){return S});function S(g,f,c){return Uint8Array.prototype.slice?g.slice(f,c):new Uint8Array(Array.prototype.slice.call(g,f,c))}},"./src/utils/vttcue.ts":function(x,C,A){"use strict";A.r(C),C.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var S=["","lr","rl"],g=["start","middle","end","left","right"];function f(n,e){if(typeof e!="string")return!1;if(!Array.isArray(n))return!1;var l=e.toLowerCase();return~n.indexOf(l)?l:!1}function c(n){return f(S,n)}function o(n){return f(g,n)}function r(n){for(var e=arguments.length,l=new Array(e>1?e-1:0),t=1;t<e;t++)l[t-1]=arguments[t];for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var u in s)n[u]=s[u]}return n}function i(n,e,l){var t=this,a={enumerable:!0};t.hasBeenReset=!1;var s="",u=!1,h=n,p=e,m=l,v=null,y="",E=!0,T="auto",b="start",w=50,_="middle",I=50,L="middle";Object.defineProperty(t,"id",r({},a,{get:function(){return s},set:function(D){s=""+D}})),Object.defineProperty(t,"pauseOnExit",r({},a,{get:function(){return u},set:function(D){u=!!D}})),Object.defineProperty(t,"startTime",r({},a,{get:function(){return h},set:function(D){if(typeof D!="number")throw new TypeError("Start time must be set to a number.");h=D,this.hasBeenReset=!0}})),Object.defineProperty(t,"endTime",r({},a,{get:function(){return p},set:function(D){if(typeof D!="number")throw new TypeError("End time must be set to a number.");p=D,this.hasBeenReset=!0}})),Object.defineProperty(t,"text",r({},a,{get:function(){return m},set:function(D){m=""+D,this.hasBeenReset=!0}})),Object.defineProperty(t,"region",r({},a,{get:function(){return v},set:function(D){v=D,this.hasBeenReset=!0}})),Object.defineProperty(t,"vertical",r({},a,{get:function(){return y},set:function(D){var R=c(D);if(R===!1)throw new SyntaxError("An invalid or illegal string was specified.");y=R,this.hasBeenReset=!0}})),Object.defineProperty(t,"snapToLines",r({},a,{get:function(){return E},set:function(D){E=!!D,this.hasBeenReset=!0}})),Object.defineProperty(t,"line",r({},a,{get:function(){return T},set:function(D){if(typeof D!="number"&&D!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");T=D,this.hasBeenReset=!0}})),Object.defineProperty(t,"lineAlign",r({},a,{get:function(){return b},set:function(D){var R=o(D);if(!R)throw new SyntaxError("An invalid or illegal string was specified.");b=R,this.hasBeenReset=!0}})),Object.defineProperty(t,"position",r({},a,{get:function(){return w},set:function(D){if(D<0||D>100)throw new Error("Position must be between 0 and 100.");w=D,this.hasBeenReset=!0}})),Object.defineProperty(t,"positionAlign",r({},a,{get:function(){return _},set:function(D){var R=o(D);if(!R)throw new SyntaxError("An invalid or illegal string was specified.");_=R,this.hasBeenReset=!0}})),Object.defineProperty(t,"size",r({},a,{get:function(){return I},set:function(D){if(D<0||D>100)throw new Error("Size must be between 0 and 100.");I=D,this.hasBeenReset=!0}})),Object.defineProperty(t,"align",r({},a,{get:function(){return L},set:function(D){var R=o(D);if(!R)throw new SyntaxError("An invalid or illegal string was specified.");L=R,this.hasBeenReset=!0}})),t.displayState=void 0}return i.prototype.getCueAsHTML=function(){var n=self.WebVTT;return n.convertCueToDOMTree(self,this.text)},i}()},"./src/utils/vttparser.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"parseTimeStamp",function(){return f}),A.d(C,"fixLineBreaks",function(){return e}),A.d(C,"VTTParser",function(){return l});var S=A("./src/utils/vttcue.ts"),g=function(){function t(){}var a=t.prototype;return a.decode=function(u,h){if(!u)return"";if(typeof u!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(u))},t}();function f(t){function a(u,h,p,m){return(u|0)*3600+(h|0)*60+(p|0)+parseFloat(m||0)}var s=t.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return s?parseFloat(s[2])>59?a(s[2],s[3],0,s[4]):a(s[1],s[2],s[3],s[4]):null}var c=function(){function t(){this.values=Object.create(null)}var a=t.prototype;return a.set=function(u,h){!this.get(u)&&h!==""&&(this.values[u]=h)},a.get=function(u,h,p){return p?this.has(u)?this.values[u]:h[p]:this.has(u)?this.values[u]:h},a.has=function(u){return u in this.values},a.alt=function(u,h,p){for(var m=0;m<p.length;++m)if(h===p[m]){this.set(u,h);break}},a.integer=function(u,h){/^-?\d+$/.test(h)&&this.set(u,parseInt(h,10))},a.percent=function(u,h){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(h)){var p=parseFloat(h);if(p>=0&&p<=100)return this.set(u,p),!0}return!1},t}();function o(t,a,s,u){var h=u?t.split(u):[t];for(var p in h){if(typeof h[p]!="string")continue;var m=h[p].split(s);if(m.length!==2)continue;var v=m[0],y=m[1];a(v,y)}}var r=new S.default(0,0,""),i=r.align==="middle"?"middle":"center";function n(t,a,s){var u=t;function h(){var v=f(t);if(v===null)throw new Error("Malformed timestamp: "+u);return t=t.replace(/^[^\sa-zA-Z-]+/,""),v}function p(v,y){var E=new c;o(v,function(w,_){var I;switch(w){case"region":for(var L=s.length-1;L>=0;L--)if(s[L].id===_){E.set(w,s[L].region);break}break;case"vertical":E.alt(w,_,["rl","lr"]);break;case"line":I=_.split(","),E.integer(w,I[0]),E.percent(w,I[0])&&E.set("snapToLines",!1),E.alt(w,I[0],["auto"]),I.length===2&&E.alt("lineAlign",I[1],["start",i,"end"]);break;case"position":I=_.split(","),E.percent(w,I[0]),I.length===2&&E.alt("positionAlign",I[1],["start",i,"end","line-left","line-right","auto"]);break;case"size":E.percent(w,_);break;case"align":E.alt(w,_,["start",i,"end","left","right"]);break}},/:/,/\s/),y.region=E.get("region",null),y.vertical=E.get("vertical","");var T=E.get("line","auto");T==="auto"&&r.line===-1&&(T=-1),y.line=T,y.lineAlign=E.get("lineAlign","start"),y.snapToLines=E.get("snapToLines",!0),y.size=E.get("size",100),y.align=E.get("align",i);var b=E.get("position","auto");b==="auto"&&r.position===50&&(b=y.align==="start"||y.align==="left"?0:y.align==="end"||y.align==="right"?100:50),y.position=b}function m(){t=t.replace(/^\s+/,"")}if(m(),a.startTime=h(),m(),t.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+u);t=t.substr(3),m(),a.endTime=h(),m(),p(t,a)}function e(t){return t.replace(/<br(?: \/)?>/gi,`
|
|
|
`)}var l=function(){function t(){this.state="INITIAL",this.buffer="",this.decoder=new g,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var a=t.prototype;return a.parse=function(u){var h=this;u&&(h.buffer+=h.decoder.decode(u,{stream:!0}));function p(){var b=h.buffer,w=0;for(b=e(b);w<b.length&&b[w]!=="\r"&&b[w]!==`
|
|
|
`;)++w;var _=b.substr(0,w);return b[w]==="\r"&&++w,b[w]===`
|
|
|
`&&++w,h.buffer=b.substr(w),_}function m(b){o(b,function(w,_){},/:/)}try{var v="";if(h.state==="INITIAL"){if(!/\r\n|\n/.test(h.buffer))return this;v=p();var y=v.match(/^()?WEBVTT([ \t].*)?$/);if(!y||!y[0])throw new Error("Malformed WebVTT signature.");h.state="HEADER"}for(var E=!1;h.buffer;){if(!/\r\n|\n/.test(h.buffer))return this;E?E=!1:v=p();switch(h.state){case"HEADER":/:/.test(v)?m(v):v||(h.state="ID");continue;case"NOTE":v||(h.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(v)){h.state="NOTE";break}if(!v)continue;if(h.cue=new S.default(0,0,""),h.state="CUE",v.indexOf("-->")===-1){h.cue.id=v;continue}case"CUE":if(!h.cue){h.state="BADCUE";continue}try{n(v,h.cue,h.regionList)}catch(b){h.cue=null,h.state="BADCUE";continue}h.state="CUETEXT";continue;case"CUETEXT":{var T=v.indexOf("-->")!==-1;if(!v||T&&(E=!0)){h.oncue&&h.cue&&h.oncue(h.cue),h.cue=null,h.state="ID";continue}if(h.cue===null)continue;h.cue.text&&(h.cue.text+=`
|
|
|
`),h.cue.text+=v}continue;case"BADCUE":v||(h.state="ID")}}}catch(b){h.state==="CUETEXT"&&h.cue&&h.oncue&&h.oncue(h.cue),h.cue=null,h.state=h.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},a.flush=function(){var u=this;try{if((u.cue||u.state==="HEADER")&&(u.buffer+=`
|
|
|
|
|
|
`,u.parse()),u.state==="INITIAL"||u.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(h){u.onparsingerror&&u.onparsingerror(h)}return u.onflush&&u.onflush(),this},t}()},"./src/utils/webvtt-parser.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"generateCueId",function(){return l}),A.d(C,"parseWebVTT",function(){return a});var S=A("./src/polyfills/number.ts"),g=A("./src/utils/vttparser.ts"),f=A("./src/demux/id3.ts"),c=A("./src/utils/timescale-conversion.ts"),o=A("./src/remux/mp4-remuxer.ts"),r=/\r\n|\n\r|\n|\r/g,i=function(u,h,p){return p===void 0&&(p=0),u.substr(p,h.length)===h},n=function(u){var h=parseInt(u.substr(-3)),p=parseInt(u.substr(-6,2)),m=parseInt(u.substr(-9,2)),v=u.length>9?parseInt(u.substr(0,u.indexOf(":"))):0;if(!Object(S.isFiniteNumber)(h)||!Object(S.isFiniteNumber)(p)||!Object(S.isFiniteNumber)(m)||!Object(S.isFiniteNumber)(v))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+u);return h+=1e3*p,h+=60*1e3*m,h+=60*60*1e3*v,h},e=function(u){for(var h=5381,p=u.length;p;)h=h*33^u.charCodeAt(--p);return(h>>>0).toString()};function l(s,u,h){return e(s.toString())+e(u.toString())+e(h)}var t=function(u,h,p){var m=u[h],v=u[m.prevCC];if(!v||!v.new&&m.new){u.ccOffset=u.presentationOffset=m.start,m.new=!1;return}for(;(y=v)!==null&&y!==void 0&&y.new;){var y;u.ccOffset+=m.start-v.start,m.new=!1,m=v,v=u[m.prevCC]}u.presentationOffset=p};function a(s,u,h,p,m,v,y,E){var T=new g.VTTParser,b=Object(f.utf8ArrayToStr)(new Uint8Array(s)).trim().replace(r,`
|
|
|
`).split(`
|
|
|
`),w=[],_=Object(c.toMpegTsClockFromTimescale)(u,h),I="00:00.000",L=0,N=0,D,R=!0,k=!1;T.oncue=function(M){var U=p[m],B=p.ccOffset,j=(L-_)/9e4;if(U!=null&&U.new&&(N!==void 0?B=p.ccOffset=U.start:t(p,m,j)),j&&(B=j-p.presentationOffset),k){var W=M.endTime-M.startTime,V=Object(o.normalizePts)((M.startTime+B-N)*9e4,v*9e4)/9e4;M.startTime=V,M.endTime=V+W}var z=M.text.trim();M.text=decodeURIComponent(encodeURIComponent(z)),M.id||(M.id=l(M.startTime,M.endTime,z)),M.endTime>0&&w.push(M)},T.onparsingerror=function(M){D=M},T.onflush=function(){if(D){E(D);return}y(w)},b.forEach(function(M){if(R)if(i(M,"X-TIMESTAMP-MAP=")){R=!1,k=!0,M.substr(16).split(",").forEach(function(U){i(U,"LOCAL:")?I=U.substr(6):i(U,"MPEGTS:")&&(L=parseInt(U.substr(7)))});try{N=n(I)/1e3}catch(U){k=!1,D=U}return}else M===""&&(R=!1);T.parse(M+`
|
|
|
`)}),T.flush()}},"./src/utils/xhr-loader.ts":function(x,C,A){"use strict";A.r(C);var S=A("./src/utils/logger.ts"),g=A("./src/loader/load-stats.ts"),f=/^age:\s*[\d.]+\s*$/m,c=function(){function o(i){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=i?i.xhrSetup:null,this.stats=new g.LoadStats,this.retryDelay=0}var r=o.prototype;return r.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},r.abortInternal=function(){var n=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),n&&(n.onreadystatechange=null,n.onprogress=null,n.readyState!==4&&(this.stats.aborted=!0,n.abort()))},r.abort=function(){var n;this.abortInternal(),(n=this.callbacks)!==null&&n!==void 0&&n.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},r.load=function(n,e,l){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=n,this.config=e,this.callbacks=l,this.retryDelay=e.retryDelay,this.loadInternal()},r.loadInternal=function(){var n=this.config,e=this.context;if(!n)return;var l=this.loader=new self.XMLHttpRequest,t=this.stats;t.loading.first=0,t.loaded=0;var a=this.xhrSetup;try{if(a)try{a(l,e.url)}catch(h){l.open("GET",e.url,!0),a(l,e.url)}l.readyState||l.open("GET",e.url,!0);var s=this.context.headers;if(s)for(var u in s)l.setRequestHeader(u,s[u])}catch(h){this.callbacks.onError({code:l.status,text:h.message},e,l);return}e.rangeEnd&&l.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),l.onreadystatechange=this.readystatechange.bind(this),l.onprogress=this.loadprogress.bind(this),l.responseType=e.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),l.send()},r.readystatechange=function(){var n=this.context,e=this.loader,l=this.stats;if(!n||!e)return;var t=e.readyState,a=this.config;if(l.aborted)return;if(t>=2)if(self.clearTimeout(this.requestTimeout),l.loading.first===0&&(l.loading.first=Math.max(self.performance.now(),l.loading.start)),t===4){e.onreadystatechange=null,e.onprogress=null;var s=e.status;if(s>=200&&s<300){l.loading.end=Math.max(self.performance.now(),l.loading.first);var u,h;if(n.responseType==="arraybuffer"?(u=e.response,h=u.byteLength):(u=e.responseText,h=u.length),l.loaded=l.total=h,!this.callbacks)return;var p=this.callbacks.onProgress;if(p&&p(l,n,u,e),!this.callbacks)return;var m={url:e.responseURL,data:u};this.callbacks.onSuccess(m,l,n,e)}else l.retry>=a.maxRetry||s>=400&&s<499?(S.logger.error(s+" while loading "+n.url),this.callbacks.onError({code:s,text:e.statusText},n,e)):(S.logger.warn(s+" while loading "+n.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,a.maxRetryDelay),l.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout)},r.loadtimeout=function(){S.logger.warn("timeout while loading "+this.context.url);var n=this.callbacks;n&&(this.abortInternal(),n.onTimeout(this.stats,this.context,this.loader))},r.loadprogress=function(n){var e=this.stats;e.loaded=n.loaded,n.lengthComputable&&(e.total=n.total)},r.getCacheAge=function(){var n=null;if(this.loader&&f.test(this.loader.getAllResponseHeaders())){var e=this.loader.getResponseHeader("age");n=e?parseFloat(e):null}return n},o}();C.default=c}}).default})},v56E:function(H,F,d){},v5uJ:function(H,F,d){var O=d("ProS"),x=d("2B6p"),C=x.updateCenterAndZoom;O.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(A,S){S.eachComponent({mainType:"series",subType:"tree",query:A},function(g){var f=A.dataIndex,c=g.getData().tree,o=c.getNodeByDataIndex(f);o.isExpand=!o.isExpand})}),O.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(A,S){S.eachComponent({mainType:"series",subType:"tree",query:A},function(g){var f=g.coordinateSystem,c=C(f,A);g.setCenter&&g.setCenter(c.center),g.setZoom&&g.setZoom(c.zoom)})})},"vF/C":function(H,F,d){var O=d("bLfw");O.registerSubTypeDefaulter("visualMap",function(x){return!x.categories&&(!(x.pieces?x.pieces.length>0:x.splitNumber>0)||x.calculable)?"continuous":"piecewise"})},vKoX:function(H,F,d){var O=d("SrGk"),x=d("bYtY");function C(g,f){O.call(this,g,f,["filter"],"__filter_in_use__","_shadowDom")}x.inherits(C,O),C.prototype.addWithoutUpdate=function(g,f){if(f&&A(f.style)){var c;if(f._shadowDom){c=f._shadowDom;var o=this.getDefs(!0);o.contains(f._shadowDom)||this.addDom(c)}else c=this.add(f);this.markUsed(f);var r=c.getAttribute("id");g.style.filter="url(#"+r+")"}},C.prototype.add=function(g){var f=this.createElement("filter");return g._shadowDomId=g._shadowDomId||this.nextId++,f.setAttribute("id","zr"+this._zrId+"-shadow-"+g._shadowDomId),this.updateDom(g,f),this.addDom(f),f},C.prototype.update=function(g,f){var c=f.style;if(A(c)){var o=this;O.prototype.update.call(this,f,function(){o.updateDom(f,f._shadowDom)})}else this.remove(g,f)},C.prototype.remove=function(g,f){f._shadowDomId!=null&&(this.removeDom(g),g.style.filter="")},C.prototype.updateDom=function(g,f){var c=f.getElementsByTagName("feDropShadow");c.length===0?c=this.createElement("feDropShadow"):c=c[0];var o=g.style,r=g.scale&&g.scale[0]||1,i=g.scale&&g.scale[1]||1,n,e,l,t;if(o.shadowBlur||o.shadowOffsetX||o.shadowOffsetY)n=o.shadowOffsetX||0,e=o.shadowOffsetY||0,l=o.shadowBlur,t=o.shadowColor;else if(o.textShadowBlur)n=o.textShadowOffsetX||0,e=o.textShadowOffsetY||0,l=o.textShadowBlur,t=o.textShadowColor;else{this.removeDom(f,o);return}c.setAttribute("dx",n/r),c.setAttribute("dy",e/i),c.setAttribute("flood-color",t);var a=l/2/r,s=l/2/i,u=a+" "+s;c.setAttribute("stdDeviation",u),f.setAttribute("x","-100%"),f.setAttribute("y","-100%"),f.setAttribute("width",Math.ceil(l/2*200)+"%"),f.setAttribute("height",Math.ceil(l/2*200)+"%"),f.appendChild(c),g._shadowDom=f},C.prototype.markUsed=function(g){g._shadowDom&&O.prototype.markUsed.call(this,g._shadowDom)};function A(g){return g&&(g.shadowBlur||g.shadowOffsetX||g.shadowOffsetY||g.textShadowBlur||g.textShadowOffsetX||g.textShadowOffsetY)}var S=C;H.exports=S},vL6D:function(H,F,d){var O=d("bYtY"),x=d("+rIm"),C=d("IwbS"),A=d("7bkD"),S=d("Znkb"),g=d("WN+l"),f=g.rectCoordAxisBuildSplitArea,c=g.rectCoordAxisHandleRemove,o=["axisLine","axisTickLabel","axisName"],r=["splitArea","splitLine"],i=S.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,l,t,a){var s=this.group;s.removeAll();var u=this._axisGroup;this._axisGroup=new C.Group;var h=A.layout(e),p=new x(e,h);O.each(o,p.add,p),s.add(this._axisGroup),s.add(p.getGroup()),O.each(r,function(m){e.get(m+".show")&&this["_"+m](e)},this),C.groupTransition(u,this._axisGroup,e),i.superCall(this,"render",e,l,t,a)},remove:function(){c(this)},_splitLine:function(e){var l=e.axis;if(l.scale.isBlank())return;var t=e.getModel("splitLine"),a=t.getModel("lineStyle"),s=a.get("width"),u=a.get("color");u=u instanceof Array?u:[u];for(var h=e.coordinateSystem.getRect(),p=l.isHorizontal(),m=[],v=0,y=l.getTicksCoords({tickModel:t}),E=[],T=[],b=0;b<y.length;++b){var w=l.toGlobalCoord(y[b].coord);p?(E[0]=w,E[1]=h.y,T[0]=w,T[1]=h.y+h.height):(E[0]=h.x,E[1]=w,T[0]=h.x+h.width,T[1]=w);var _=v++%u.length;m[_]=m[_]||[],m[_].push(new C.Line({subPixelOptimize:!0,shape:{x1:E[0],y1:E[1],x2:T[0],y2:T[1]},style:{lineWidth:s},silent:!0}))}for(var b=0;b<m.length;++b)this.group.add(C.mergePath(m[b],{style:{stroke:u[b%u.length],lineDash:a.getLineDash(s),lineWidth:s},silent:!0}))},_splitArea:function(e){f(this,this._axisGroup,e,e)}}),n=i;H.exports=n},vWvF:function(H,F,d){var O=d("Bq2U"),x=d("SUKs"),C=d("bYtY"),A=C.isString,S=C.isFunction,g=C.isObject,f=C.isArrayLike,c=C.indexOf,o=function(){this.animators=[]};o.prototype={constructor:o,animate:function(t,a){var s,u=!1,h=this,p=this.__zr;if(t){var m=t.split("."),v=h;u=m[0]==="shape";for(var y=0,E=m.length;y<E;y++){if(!v)continue;v=v[m[y]]}v&&(s=v)}else s=h;if(!s){x('Property "'+t+'" is not existed in element '+h.id);return}var T=h.animators,b=new O(s,a);return b.during(function(w){h.dirty(u)}).done(function(){T.splice(c(T,b),1)}),T.push(b),p&&p.animation.addAnimator(b),b},stopAnimation:function(t){for(var a=this.animators,s=a.length,u=0;u<s;u++)a[u].stop(t);return a.length=0,this},animateTo:function(t,a,s,u,h,p){r(this,t,a,s,u,h,p)},animateFrom:function(t,a,s,u,h,p){r(this,t,a,s,u,h,p,!0)}};function r(l,t,a,s,u,h,p,m){A(s)?(h=u,u=s,s=0):S(u)?(h=u,u="linear",s=0):S(s)?(h=s,s=0):S(a)?(h=a,a=500):a||(a=500),l.stopAnimation(),i(l,"",l,t,a,s,m);var v=l.animators.slice(),y=v.length;function E(){y--,y||h&&h()}y||h&&h();for(var T=0;T<v.length;T++)v[T].done(E).start(u,p)}function i(l,t,a,s,u,h,p){var m={},v=0;for(var y in s){if(!s.hasOwnProperty(y))continue;a[y]!=null?g(s[y])&&!f(s[y])?i(l,t?t+"."+y:y,a[y],s[y],u,h,p):(p?(m[y]=a[y],n(l,t,y,s[y])):m[y]=s[y],v++):s[y]!=null&&!p&&n(l,t,y,s[y])}v>0&&l.animate(t,!1).when(u==null?500:u,m).delay(h||0)}function n(l,t,a,s){if(!t)l.attr(a,s);else{var u={};u[t]={},u[t][a]=s,l.attr(u)}}var e=o;H.exports=e},vZ6x:function(H,F,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=d("IwbS"),S=d("4NO4"),g=d("9KIM"),f=C.each,c=C.indexOf,o=C.curry,r=["dataToPoint","pointToData"],i=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function n(b,w,_){var I=this._targetInfoList=[],L={},N=t(w,b);f(a,function(D,R){(!_||!_.include||c(_.include,R)>=0)&&D(N,I,L)})}var e=n.prototype;e.setOutputRanges=function(b,w){this.matchOutputRanges(b,w,function(_,I,L){if((_.coordRanges||(_.coordRanges=[])).push(I),!_.coordRange){_.coordRange=I;var N=h[_.brushType](0,L,I);_.__rangeOffset={offset:m[_.brushType](N.values,_.range,[1,1]),xyMinMax:N.xyMinMax}}})},e.matchOutputRanges=function(b,w,_){f(b,function(I){var L=this.findTargetInfo(I,w);L&&L!==!0&&C.each(L.coordSyses,function(N){var D=h[I.brushType](1,N,I.range);_(I,D.values,N,w)})},this)},e.setInputRanges=function(b,w){f(b,function(_){var I=this.findTargetInfo(_,w);if(_.range=_.range||[],I&&I!==!0){_.panelId=I.panelId;var L=h[_.brushType](0,I.coordSys,_.coordRange),N=_.__rangeOffset;_.range=N?m[_.brushType](L.values,N.offset,y(L.xyMinMax,N.xyMinMax)):L.values}},this)},e.makePanelOpts=function(b,w){return C.map(this._targetInfoList,function(_){var I=_.getPanelRect();return{panelId:_.panelId,defaultBrushType:w&&w(_),clipPath:g.makeRectPanelClipPath(I),isTargetByCursor:g.makeRectIsTargetByCursor(I,b,_.coordSysModel),getLinearBrushOtherExtent:g.makeLinearBrushOtherExtent(I)}})},e.controlSeries=function(b,w,_){var I=this.findTargetInfo(b,_);return I===!0||I&&c(I.coordSyses,w.coordinateSystem)>=0},e.findTargetInfo=function(b,w){for(var _=this._targetInfoList,I=t(w,b),L=0;L<_.length;L++){var N=_[L],D=b.panelId;if(D){if(N.panelId===D)return N}else for(var L=0;L<s.length;L++)if(s[L](I,N))return N}return!0};function l(b){return b[0]>b[1]&&b.reverse(),b}function t(b,w){return S.parseFinder(b,w,{includeMainTypes:i})}var a={grid:function(b,w){var _=b.xAxisModels,I=b.yAxisModels,L=b.gridModels,N=C.createHashMap(),D={},R={};if(!_&&!I&&!L)return;f(_,function(k){var M=k.axis.grid.model;N.set(M.id,M),D[M.id]=!0}),f(I,function(k){var M=k.axis.grid.model;N.set(M.id,M),R[M.id]=!0}),f(L,function(k){N.set(k.id,k),D[k.id]=!0,R[k.id]=!0}),N.each(function(k){var M=k.coordinateSystem,U=[];f(M.getCartesians(),function(B,j){(c(_,B.getAxis("x").model)>=0||c(I,B.getAxis("y").model)>=0)&&U.push(B)}),w.push({panelId:"grid--"+k.id,gridModel:k,coordSysModel:k,coordSys:U[0],coordSyses:U,getPanelRect:u.grid,xAxisDeclared:D[k.id],yAxisDeclared:R[k.id]})})},geo:function(b,w){f(b.geoModels,function(_){var I=_.coordinateSystem;w.push({panelId:"geo--"+_.id,geoModel:_,coordSysModel:_,coordSys:I,coordSyses:[I],getPanelRect:u.geo})})}},s=[function(b,w){var _=b.xAxisModel,I=b.yAxisModel,L=b.gridModel;return!L&&_&&(L=_.axis.grid.model),!L&&I&&(L=I.axis.grid.model),L&&L===w.gridModel},function(b,w){var _=b.geoModel;return _&&_===w.geoModel}],u={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var b=this.coordSys,w=b.getBoundingRect().clone();return w.applyTransform(A.getTransform(b)),w}},h={lineX:o(p,0),lineY:o(p,1),rect:function(b,w,_){var I=w[r[b]]([_[0][0],_[1][0]]),L=w[r[b]]([_[0][1],_[1][1]]),N=[l([I[0],L[0]]),l([I[1],L[1]])];return{values:N,xyMinMax:N}},polygon:function(b,w,_){var I=[[Infinity,-Infinity],[Infinity,-Infinity]],L=C.map(_,function(N){var D=w[r[b]](N);return I[0][0]=Math.min(I[0][0],D[0]),I[1][0]=Math.min(I[1][0],D[1]),I[0][1]=Math.max(I[0][1],D[0]),I[1][1]=Math.max(I[1][1],D[1]),D});return{values:L,xyMinMax:I}}};function p(b,w,_,I){var L=_.getAxis(["x","y"][b]),N=l(C.map([0,1],function(R){return w?L.coordToData(L.toLocalCoord(I[R])):L.toGlobalCoord(L.dataToCoord(I[R]))})),D=[];return D[b]=N,D[1-b]=[NaN,NaN],{values:N,xyMinMax:D}}var m={lineX:o(v,0),lineY:o(v,1),rect:function(b,w,_){return[[b[0][0]-_[0]*w[0][0],b[0][1]-_[0]*w[0][1]],[b[1][0]-_[1]*w[1][0],b[1][1]-_[1]*w[1][1]]]},polygon:function(b,w,_){return C.map(b,function(I,L){return[I[0]-_[0]*w[L][0],I[1]-_[1]*w[L][1]]})}};function v(b,w,_,I){return[w[0]-I[b]*_[0],w[1]-I[b]*_[1]]}function y(b,w){var _=E(b),I=E(w),L=[_[0]/I[0],_[1]/I[1]];return isNaN(L[0])&&(L[0]=1),isNaN(L[1])&&(L[1]=1),L}function E(b){return b?[b[0][1]-b[0][0],b[1][1]-b[1][0]]:[NaN,NaN]}var T=n;H.exports=T},vZI5:function(H,F,d){var O=d("bYtY"),x=d("T4UG"),C=d("5GhG"),A=C.seriesModelMixin,S=x.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(f,c,o){var r=c.getItemLayout(f);return r&&o.rect(r.brushRect)}});O.mixin(S,A,!0);var g=S;H.exports=g},vafp:function(H,F,d){var O=d("bYtY"),x=d("8nly");function C(g){if(!g.UTF8Encoding)return g;var f=g.UTF8Scale;f==null&&(f=1024);for(var c=g.features,o=0;o<c.length;o++)for(var r=c[o],i=r.geometry,n=i.coordinates,e=i.encodeOffsets,l=0;l<n.length;l++){var t=n[l];if(i.type==="Polygon")n[l]=A(t,e[l],f);else if(i.type==="MultiPolygon")for(var a=0;a<t.length;a++){var s=t[a];t[a]=A(s,e[l][a],f)}}return g.UTF8Encoding=!1,g}function A(g,f,c){for(var o=[],r=f[0],i=f[1],n=0;n<g.length;n+=2){var e=g.charCodeAt(n)-64,l=g.charCodeAt(n+1)-64;e=e>>1^-(e&1),l=l>>1^-(l&1),e+=r,l+=i,r=e,i=l,o.push([e/c,l/c])}return o}function S(g,f){return C(g),O.map(O.filter(g.features,function(c){return c.geometry&&c.properties&&c.geometry.coordinates.length>0}),function(c){var o=c.properties,r=c.geometry,i=r.coordinates,n=[];r.type==="Polygon"&&n.push({type:"polygon",exterior:i[0],interiors:i.slice(1)}),r.type==="MultiPolygon"&&O.each(i,function(l){l[0]&&n.push({type:"polygon",exterior:l[0],interiors:l.slice(1)})});var e=new x(o[f||"name"],n,o.cp);return e.properties=o,e})}H.exports=S},vcCh:function(H,F,d){var O=d("ProS");d("0qV/"),O.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(x,C){C.eachComponent({mainType:"series",subType:"sankey",query:x},function(A){A.setNodePosition(x.dataIndex,[x.localX,x.localY])})})},vewr:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.getPointerEvent=O,F.stopEvent=x,F.setCapture=c,F.releaseCapture=o;function O(r){return r.changedTouches?r.changedTouches[0]:r.touches?r.touches[0]:r}function x(r){r.stopPropagation(),r.preventDefault()}var C=!1,A=null;document.captureElement=null;function S(r){if(C)return;var i=new r.constructor(r.type,r);C=!0,document.captureElement?document.captureElement.dispatchEvent(i):A.dispatchEvent(i),C=!1,r.stopPropagation(),i.defaultPrevented&&r.preventDefault(),r.type==="mouseup"&&o()}function g(){var r=document.getElementById("noVNC_mouse_capture_elem");r.style.cursor=window.getComputedStyle(document.captureElement).cursor}var f=new MutationObserver(g);function c(r){if(r.setCapture)r.setCapture(),document.captureElement=r,r.addEventListener("mouseup",o);else{o();var i=document.getElementById("noVNC_mouse_capture_elem");i===null&&(i=document.createElement("div"),i.id="noVNC_mouse_capture_elem",i.style.position="fixed",i.style.top="0px",i.style.left="0px",i.style.width="100%",i.style.height="100%",i.style.zIndex=1e4,i.style.display="none",document.body.appendChild(i),i.addEventListener("contextmenu",S),i.addEventListener("mousemove",S),i.addEventListener("mouseup",S)),document.captureElement=r,f.observe(r,{attributes:!0}),g(),i.style.display="",window.addEventListener("mousemove",S),window.addEventListener("mouseup",S)}}function o(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;A=document.captureElement,document.captureElement=null,f.disconnect();var r=document.getElementById("noVNC_mouse_capture_elem");r.style.display="none",window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",S)}}},vg9a:function(H,F,d){},"vk+C":function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("RZPm"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},w4Tj:function(H,F,d){"use strict";d.d(F,"a",function(){return C});var O=d("oZsa");function x(A,S){for(;!Object.prototype.hasOwnProperty.call(A,S)&&!(A=Object(O.a)(A),A===null););return A}function C(A,S,g){return typeof Reflect!="undefined"&&Reflect.get?C=Reflect.get:C=function(c,o,r){var i=x(c,o);if(!i)return;var n=Object.getOwnPropertyDescriptor(i,o);return n.get?n.get.call(r):n.value},C(A,S,g||A)}},w5pM:function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="PlusCircleOutlined";var f=F.a=x.forwardRef(g)},w6Tc:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("apAg"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;F.default=C,H.exports=C},w7YG:function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.StreamCipher,S=x.algo,g=S.RC4=A.extend({_doReset:function(){for(var r=this._key,i=r.words,n=r.sigBytes,e=this._S=[],l=0;l<256;l++)e[l]=l;for(var l=0,t=0;l<256;l++){var a=l%n,s=i[a>>>2]>>>24-a%4*8&255;t=(t+e[l]+s)%256;var u=e[l];e[l]=e[t],e[t]=u}this._i=this._j=0},_doProcessBlock:function(r,i){r[i]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var o=this._S,r=this._i,i=this._j,n=0,e=0;e<4;e++){r=(r+1)%256,i=(i+o[r])%256;var l=o[r];o[r]=o[i],o[i]=l,n|=o[(o[r]+o[i])%256]<<24-e*8}return this._i=r,this._j=i,n}x.RC4=A._createHelper(g);var c=S.RC4Drop=g.extend({cfg:g.cfg.extend({drop:192}),_doReset:function(){g._doReset.call(this);for(var r=this.cfg.drop;r>0;r--)f.call(this)}});x.RC4Drop=A._createHelper(c)}(),O.RC4})},wCAj:function(H,F,d){"use strict";var O=d("cDf5"),x=d.n(O),C=d("lSNA"),A=d.n(C),S=d("J4zp"),g=d.n(S),f=d("pVnL"),c=d.n(f),o=d("q1tI"),r=d.n(o),i=d("TSYQ"),n=d.n(i),e=d("BGR+"),l=d("rePB"),t=d("VTBJ"),a=d("KQm4"),s=d("U8pU"),u=d("ODXe"),h=d("Gytx"),p=d.n(h),m={};function v(Xt,zr){}function y(Xt,zr){}function E(){m={}}function T(Xt,zr,un){!zr&&!m[un]&&(Xt(!1,un),m[un]=!0)}function b(Xt,zr){T(v,Xt,zr)}function w(Xt,zr){T(y,Xt,zr)}var _=b,I=d("1OyB"),L=d("vuIU"),N=d("Ji7U"),D=d("LK+K"),R=d("i8i4"),k=d.n(R);function M(Xt){return Xt instanceof HTMLElement?Xt:k.a.findDOMNode(Xt)}var U=d("TOwV");function B(Xt){var zr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},un=[];return r.a.Children.forEach(Xt,function(vn){if(vn==null&&!zr.keepEmpty)return;Array.isArray(vn)?un=un.concat(B(vn)):Object(U.isFragment)(vn)&&vn.props?un=un.concat(B(vn.props.children,zr)):un.push(vn)}),un}function j(Xt,zr,un){var vn=o.useRef({});return(!("value"in vn.current)||un(vn.current.condition,zr))&&(vn.current.value=Xt(),vn.current.condition=zr),vn.current.value}function W(Xt,zr){typeof Xt=="function"?Xt(zr):Object(s.a)(Xt)==="object"&&Xt&&"current"in Xt&&(Xt.current=zr)}function V(){for(var Xt=arguments.length,zr=new Array(Xt),un=0;un<Xt;un++)zr[un]=arguments[un];var vn=zr.filter(function(ni){return ni});return vn.length<=1?vn[0]:function(ni){zr.forEach(function(li){W(li,ni)})}}function z(){for(var Xt=arguments.length,zr=new Array(Xt),un=0;un<Xt;un++)zr[un]=arguments[un];return j(function(){return V.apply(void 0,zr)},zr,function(vn,ni){return vn.length===ni.length&&vn.every(function(li,fi){return li===ni[fi]})})}function J(Xt){var zr,un,vn=Object(U.isMemo)(Xt)?Xt.type.type:Xt.type;return typeof vn=="function"&&!((zr=vn.prototype)===null||zr===void 0?void 0:zr.render)?!1:!(typeof Xt=="function"&&!((un=Xt.prototype)===null||un===void 0?void 0:un.render))}var Z=d("bdgK"),de="rc-observer-key",ie=function(Xt){Object(N.a)(un,Xt);var zr=Object(D.a)(un);function un(){var vn;return Object(I.a)(this,un),vn=zr.apply(this,arguments),vn.resizeObserver=null,vn.childNode=null,vn.currentElement=null,vn.state={width:0,height:0,offsetHeight:0,offsetWidth:0},vn.onResize=function(ni){var li=vn.props.onResize,fi=ni[0].target,di=fi.getBoundingClientRect(),Yt=di.width,Et=di.height,yr=fi.offsetWidth,ct=fi.offsetHeight,Zt=Math.floor(Yt),dr=Math.floor(Et);if(vn.state.width!==Zt||vn.state.height!==dr||vn.state.offsetWidth!==yr||vn.state.offsetHeight!==ct){var Lr={width:Zt,height:dr,offsetWidth:yr,offsetHeight:ct};vn.setState(Lr),li&&Promise.resolve().then(function(){li(Object(t.a)(Object(t.a)({},Lr),{},{offsetWidth:yr,offsetHeight:ct}))})}},vn.setChildNode=function(ni){vn.childNode=ni},vn}return Object(L.a)(un,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var ni=this.props.disabled;if(ni){this.destroyObserver();return}var li=M(this.childNode||this),fi=li!==this.currentElement;fi&&(this.destroyObserver(),this.currentElement=li),!this.resizeObserver&&li&&(this.resizeObserver=new Z.default(this.onResize),this.resizeObserver.observe(li))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var ni=this.props.children,li=B(ni);if(li.length>1)_(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(li.length===0)return _(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var fi=li[0];if(o.isValidElement(fi)&&J(fi)){var di=fi.ref;li[0]=o.cloneElement(fi,{ref:V(di,this.setChildNode)})}return li.length===1?li[0]:li.map(function(Yt,Et){return!o.isValidElement(Yt)||"key"in Yt&&Yt.key!==null?Yt:o.cloneElement(Yt,{key:"".concat(de,"-").concat(Et)})})}}]),un}(o.Component);ie.displayName="ResizeObserver";var ve=ie,xe;function _e(Xt){if(typeof document=="undefined")return 0;if(Xt||xe===void 0){var zr=document.createElement("div");zr.style.width="100%",zr.style.height="200px";var un=document.createElement("div"),vn=un.style;vn.position="absolute",vn.top="0",vn.left="0",vn.pointerEvents="none",vn.visibility="hidden",vn.width="200px",vn.height="150px",vn.overflow="hidden",un.appendChild(zr),document.body.appendChild(un);var ni=zr.offsetWidth;un.style.overflow="scroll";var li=zr.offsetWidth;ni===li&&(li=un.clientWidth),document.body.removeChild(un),xe=ni-li}return xe}function Ue(Xt){var zr=Xt.match(/^(.*)px$/),un=Number(zr==null?void 0:zr[1]);return Number.isNaN(un)?_e():un}function fe(Xt){if(typeof document=="undefined"||!Xt||!(Xt instanceof Element))return{width:0,height:0};var zr=getComputedStyle(Xt,"::-webkit-scrollbar"),un=zr.width,vn=zr.height;return{width:Ue(un),height:Ue(vn)}}function ke(Xt){return null}var se=ke;function te(Xt){return null}var Ve=te,ae=d("Ff2n"),Q="RC_TABLE_KEY";function G(Xt){return Xt==null?[]:Array.isArray(Xt)?Xt:[Xt]}function Y(Xt,zr){if(!zr&&typeof zr!="number")return Xt;for(var un=G(zr),vn=Xt,ni=0;ni<un.length;ni+=1){if(!vn)return null;var li=un[ni];vn=vn[li]}return vn}function me(Xt){var zr=[],un={};return Xt.forEach(function(vn){for(var ni=vn||{},li=ni.key,fi=ni.dataIndex,di=li||G(fi).join("-")||Q;un[di];)di="".concat(di,"_next");un[di]=!0,zr.push(di)}),zr}function ue(){var Xt={};function zr(li,fi){fi&&Object.keys(fi).forEach(function(di){var Yt=fi[di];Yt&&Object(s.a)(Yt)==="object"?(li[di]=li[di]||{},zr(li[di],Yt)):li[di]=Yt})}for(var un=arguments.length,vn=new Array(un),ni=0;ni<un;ni++)vn[ni]=arguments[ni];return vn.forEach(function(li){zr(Xt,li)}),Xt}function Ce(Xt){return Xt!=null}function Ie(Xt){return Xt&&Object(s.a)(Xt)==="object"&&!Array.isArray(Xt)&&!o.isValidElement(Xt)}function ce(Xt){return typeof Xt=="string"?!0:J(Xt)}function Ae(Xt,zr){var un,vn=Xt.prefixCls,ni=Xt.className,li=Xt.record,fi=Xt.index,di=Xt.dataIndex,Yt=Xt.render,Et=Xt.children,yr=Xt.component,ct=yr===void 0?"td":yr,Zt=Xt.colSpan,dr=Xt.rowSpan,Lr=Xt.fixLeft,Jr=Xt.fixRight,fn=Xt.firstFixLeft,Cn=Xt.lastFixLeft,Nn=Xt.firstFixRight,Zn=Xt.lastFixRight,ii=Xt.appendNode,pi=Xt.additionalProps,ri=pi===void 0?{}:pi,ji=Xt.ellipsis,ei=Xt.align,Je=Xt.rowType,Gt=Xt.isSticky,vr="".concat(vn,"-cell"),fr,Gr;if(Et)Gr=Et;else{var Pr=Y(li,di);if(Gr=Pr,Yt){var hr=Yt(Pr,li,fi);Ie(hr)?(Gr=hr.children,fr=hr.props):Gr=hr}}Object(s.a)(Gr)==="object"&&!Array.isArray(Gr)&&!o.isValidElement(Gr)&&(Gr=null),ji&&(Cn||Nn)&&(Gr=o.createElement("span",{className:"".concat(vr,"-content")},Gr));var An=fr||{},br=An.colSpan,pn=An.rowSpan,Kn=An.style,Wn=An.className,Ln=Object(ae.a)(An,["colSpan","rowSpan","style","className"]),$n=br!==void 0?br:Zt,Un=pn!==void 0?pn:dr;if($n===0||Un===0)return null;var ti={},Gn=typeof Lr=="number",wi=typeof Jr=="number";Gn&&(ti.position="sticky",ti.left=Lr),wi&&(ti.position="sticky",ti.right=Jr);var Ei={};ei&&(Ei.textAlign=ei);var Zi,ua=ji===!0?{showTitle:!0}:ji;ua&&(ua.showTitle||Je==="header")&&(typeof Gr=="string"||typeof Gr=="number"?Zi=Gr.toString():o.isValidElement(Gr)&&typeof Gr.props.children=="string"&&(Zi=Gr.props.children));var Xi=Object(t.a)(Object(t.a)(Object(t.a)({title:Zi},Ln),ri),{},{colSpan:$n&&$n!==1?$n:null,rowSpan:Un&&Un!==1?Un:null,className:n()(vr,ni,(un={},Object(l.a)(un,"".concat(vr,"-fix-left"),Gn),Object(l.a)(un,"".concat(vr,"-fix-left-first"),fn),Object(l.a)(un,"".concat(vr,"-fix-left-last"),Cn),Object(l.a)(un,"".concat(vr,"-fix-right"),wi),Object(l.a)(un,"".concat(vr,"-fix-right-first"),Nn),Object(l.a)(un,"".concat(vr,"-fix-right-last"),Zn),Object(l.a)(un,"".concat(vr,"-ellipsis"),ji),Object(l.a)(un,"".concat(vr,"-with-append"),ii),Object(l.a)(un,"".concat(vr,"-fix-sticky"),(Gn||wi)&&Gt),un),ri.className,Wn),style:Object(t.a)(Object(t.a)(Object(t.a)(Object(t.a)({},ri.style),Ei),ti),Kn),ref:ce(ct)?zr:null});return o.createElement(ct,Object.assign({},Xi),ii,Gr)}var Te=o.forwardRef(Ae);Te.displayName="Cell";var Ge=o.memo(Te,function(Xt,zr){return zr.shouldCellUpdate?!zr.shouldCellUpdate(zr.record,Xt.record):!1}),gt=Ge,qe=o.createContext(null),Le=qe;function Ot(Xt,zr,un,vn,ni){var li=un[Xt]||{},fi=un[zr]||{},di,Yt;li.fixed==="left"?di=vn.left[Xt]:fi.fixed==="right"&&(Yt=vn.right[zr]);var Et=!1,yr=!1,ct=!1,Zt=!1,dr=un[zr+1],Lr=un[Xt-1];if(ni==="rtl"){if(di!==void 0){var Jr=Lr&&Lr.fixed==="left";Zt=!Jr}else if(Yt!==void 0){var fn=dr&&dr.fixed==="right";ct=!fn}}else if(di!==void 0){var Cn=dr&&dr.fixed==="left";Et=!Cn}else if(Yt!==void 0){var Nn=Lr&&Lr.fixed==="right";yr=!Nn}return{fixLeft:di,fixRight:Yt,lastFixLeft:Et,firstFixRight:yr,lastFixRight:ct,firstFixLeft:Zt,isSticky:vn.isSticky}}function $e(Xt){var zr=Xt.cells,un=Xt.stickyOffsets,vn=Xt.flattenColumns,ni=Xt.rowComponent,li=Xt.cellComponent,fi=Xt.onHeaderRow,di=Xt.index,Yt=o.useContext(Le),Et=Yt.prefixCls,yr=Yt.direction,ct;fi&&(ct=fi(zr.map(function(dr){return dr.column}),di));var Zt=me(zr.map(function(dr){return dr.column}));return o.createElement(ni,Object.assign({},ct),zr.map(function(dr,Lr){var Jr=dr.column,fn=Ot(dr.colStart,dr.colEnd,vn,un,yr),Cn;return Jr&&Jr.onHeaderCell&&(Cn=dr.column.onHeaderCell(Jr)),o.createElement(gt,Object.assign({},dr,{ellipsis:Jr.ellipsis,align:Jr.align,component:li,prefixCls:Et,key:Zt[Lr]},fn,{additionalProps:Cn,rowType:"header"}))}))}$e.displayName="HeaderRow";var xt=$e;function Ht(Xt){var zr=[];function un(fi,di){var Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;zr[Yt]=zr[Yt]||[];var Et=di,yr=fi.filter(Boolean).map(function(ct){var Zt={key:ct.key,className:ct.className||"",children:ct.title,column:ct,colStart:Et},dr=1,Lr=ct.children;return Lr&&Lr.length>0&&(dr=un(Lr,Et,Yt+1).reduce(function(Jr,fn){return Jr+fn},0),Zt.hasSubColumns=!0),"colSpan"in ct&&(dr=ct.colSpan),"rowSpan"in ct&&(Zt.rowSpan=ct.rowSpan),Zt.colSpan=dr,Zt.colEnd=Zt.colStart+dr-1,zr[Yt].push(Zt),Et+=dr,dr});return yr}un(Xt,0);for(var vn=zr.length,ni=function(di){zr[di].forEach(function(Yt){!("rowSpan"in Yt)&&!Yt.hasSubColumns&&(Yt.rowSpan=vn-di)})},li=0;li<vn;li+=1)ni(li);return zr}function tr(Xt){var zr=Xt.stickyOffsets,un=Xt.columns,vn=Xt.flattenColumns,ni=Xt.onHeaderRow,li=o.useContext(Le),fi=li.prefixCls,di=li.getComponent,Yt=o.useMemo(function(){return Ht(un)},[un]),Et=di(["header","wrapper"],"thead"),yr=di(["header","row"],"tr"),ct=di(["header","cell"],"th");return o.createElement(Et,{className:"".concat(fi,"-thead")},Yt.map(function(Zt,dr){var Lr=o.createElement(xt,{key:dr,flattenColumns:vn,cells:Zt,stickyOffsets:zr,rowComponent:yr,cellComponent:ct,onHeaderRow:ni,index:dr});return Lr}))}var Mt=tr,Tt="RC_TABLE_INTERNAL_COL_DEFINE";function Xe(Xt){var zr=Xt.expandable,un=Object(ae.a)(Xt,["expandable"]);return"expandable"in Xt?Object(t.a)(Object(t.a)({},un),zr):un}function oe(Xt){return Object.keys(Xt).reduce(function(zr,un){return(un.substr(0,5)==="data-"||un.substr(0,5)==="aria-")&&(zr[un]=Xt[un]),zr},{})}function X(Xt){for(var zr=Xt.colWidths,un=Xt.columns,vn=Xt.columCount,ni=[],li=vn||un.length,fi=!1,di=li-1;di>=0;di-=1){var Yt=zr[di],Et=un&&un[di],yr=Et&&Et[Tt];(Yt||yr||fi)&&(ni.unshift(o.createElement("col",Object.assign({key:di,style:{width:Yt,minWidth:Yt}},yr))),fi=!0)}return o.createElement("colgroup",null,ni)}var Be=X;function Ee(Xt,zr){return Object(o.useMemo)(function(){for(var un=[],vn=0;vn<zr;vn+=1){var ni=Xt[vn];if(ni!==void 0)un[vn]=ni;else return null}return un},[Xt.join("_"),zr])}var ee=o.forwardRef(function(Xt,zr){var un=Xt.noData,vn=Xt.columns,ni=Xt.flattenColumns,li=Xt.colWidths,fi=Xt.columCount,di=Xt.stickyOffsets,Yt=Xt.direction,Et=Xt.fixHeader,yr=Xt.offsetHeader,ct=Xt.stickyClassName,Zt=Xt.onScroll,dr=Object(ae.a)(Xt,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),Lr=o.useContext(Le),Jr=Lr.prefixCls,fn=Lr.scrollbarSize,Cn=Lr.isSticky,Nn=Cn&&!Et?0:fn,Zn=o.useRef(null),ii=o.useCallback(function(vr){W(zr,vr),W(Zn,vr)},[]);o.useEffect(function(){var vr;function fr(Gr){var Pr=Gr.currentTarget,hr=Gr.deltaX;hr&&(Zt({currentTarget:Pr,scrollLeft:Pr.scrollLeft+hr}),Gr.preventDefault())}return(vr=Zn.current)===null||vr===void 0||vr.addEventListener("wheel",fr),function(){var Gr;(Gr=Zn.current)===null||Gr===void 0||Gr.removeEventListener("wheel",fr)}},[]);var pi=ni[ni.length-1],ri={fixed:pi?pi.fixed:null,onHeaderCell:function(){return{className:"".concat(Jr,"-cell-scrollbar")}}},ji=Object(o.useMemo)(function(){return Nn?[].concat(Object(a.a)(vn),[ri]):vn},[Nn,vn]),ei=Object(o.useMemo)(function(){return Nn?[].concat(Object(a.a)(ni),[ri]):ni},[Nn,ni]),Je=Object(o.useMemo)(function(){var vr=di.right,fr=di.left;return Object(t.a)(Object(t.a)({},di),{},{left:Yt==="rtl"?[].concat(Object(a.a)(fr.map(function(Gr){return Gr+Nn})),[0]):fr,right:Yt==="rtl"?vr:[].concat(Object(a.a)(vr.map(function(Gr){return Gr+Nn})),[0]),isSticky:Cn})},[Nn,di,Cn]),Gt=Ee(li,fi);return o.createElement("div",{style:Object(t.a)({overflow:"hidden"},Cn?{top:yr}:{}),ref:ii,className:n()("".concat(Jr,"-header"),Object(l.a)({},ct,!!ct))},o.createElement("table",{style:{tableLayout:"fixed",visibility:un||Gt?null:"hidden"}},o.createElement(Be,{colWidths:Gt?[].concat(Object(a.a)(Gt),[Nn]):[],columCount:fi+1,columns:ei}),o.createElement(Mt,Object.assign({},dr,{stickyOffsets:Je,columns:ji,flattenColumns:ei}))))});ee.displayName="FixedHeader";var lt=ee,Ct=o.createContext(null),dt=Ct;function _t(Xt){var zr=Xt.prefixCls,un=Xt.children,vn=Xt.component,ni=Xt.cellComponent,li=Xt.fixHeader,fi=Xt.fixColumn,di=Xt.horizonScroll,Yt=Xt.className,Et=Xt.expanded,yr=Xt.componentWidth,ct=Xt.colSpan,Zt=o.useContext(Le),dr=Zt.scrollbarSize;return o.useMemo(function(){var Lr=un;return fi&&(Lr=o.createElement("div",{style:{width:yr-(li?dr:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(zr,"-expanded-row-fixed")},Lr)),o.createElement(vn,{className:Yt,style:{display:Et?null:"none"}},o.createElement(gt,{component:ni,prefixCls:zr,colSpan:ct},Lr))},[un,vn,li,di,Yt,Et,yr,ct,dr])}var ir=_t;function $r(Xt){var zr=Xt.className,un=Xt.style,vn=Xt.record,ni=Xt.index,li=Xt.rowKey,fi=Xt.getRowKey,di=Xt.rowExpandable,Yt=Xt.expandedKeys,Et=Xt.onRow,yr=Xt.indent,ct=yr===void 0?0:yr,Zt=Xt.rowComponent,dr=Xt.cellComponent,Lr=Xt.childrenColumnName,Jr=o.useContext(Le),fn=Jr.prefixCls,Cn=Jr.fixedInfoList,Nn=o.useContext(dt),Zn=Nn.fixHeader,ii=Nn.fixColumn,pi=Nn.horizonScroll,ri=Nn.componentWidth,ji=Nn.flattenColumns,ei=Nn.expandableType,Je=Nn.expandRowByClick,Gt=Nn.onTriggerExpand,vr=Nn.rowClassName,fr=Nn.expandedRowClassName,Gr=Nn.indentSize,Pr=Nn.expandIcon,hr=Nn.expandedRowRender,An=Nn.expandIconColumnIndex,br=o.useState(!1),pn=Object(u.a)(br,2),Kn=pn[0],Wn=pn[1],Ln=Yt&&Yt.has(Xt.recordKey);o.useEffect(function(){Ln&&Wn(!0)},[Ln]);var $n=ei==="row"&&(!di||di(vn)),Un=ei==="nest",ti=Lr&&vn&&vn[Lr],Gn=$n||Un,wi;Et&&(wi=Et(vn,ni));var Ei=function(qi){if(Je&&Gn&&Gt(vn,qi),wi&&wi.onClick){for(var aa,$i=arguments.length,Aa=new Array($i>1?$i-1:0),ya=1;ya<$i;ya++)Aa[ya-1]=arguments[ya];(aa=wi).onClick.apply(aa,[qi].concat(Aa))}},Zi;typeof vr=="string"?Zi=vr:typeof vr=="function"&&(Zi=vr(vn,ni,ct));var ua=me(ji),Xi=o.createElement(Zt,Object.assign({},wi,{"data-row-key":li,className:n()(zr,"".concat(fn,"-row"),"".concat(fn,"-row-level-").concat(ct),Zi,wi&&wi.className),style:Object(t.a)(Object(t.a)({},un),wi?wi.style:null),onClick:Ei}),ji.map(function(Ca,qi){var aa=Ca.render,$i=Ca.dataIndex,Aa=Ca.className,ya=ua[qi],Ha=Cn[qi],ta;qi===(An||0)&&Un&&(ta=o.createElement(o.Fragment,null,o.createElement("span",{style:{paddingLeft:"".concat(Gr*ct,"px")},className:"".concat(fn,"-row-indent indent-level-").concat(ct)}),Pr({prefixCls:fn,expanded:Ln,expandable:ti,record:vn,onExpand:Gt})));var ra;return Ca.onCell&&(ra=Ca.onCell(vn,ni)),o.createElement(gt,Object.assign({className:Aa,ellipsis:Ca.ellipsis,align:Ca.align,component:dr,prefixCls:fn,key:ya,record:vn,index:ni,dataIndex:$i,render:aa,shouldCellUpdate:Ca.shouldCellUpdate},Ha,{appendNode:ta,additionalProps:ra}))})),Gi;if($n&&(Kn||Ln)){var wa=hr(vn,ni,ct+1,Ln),na=fr&&fr(vn,ni,ct);Gi=o.createElement(ir,{expanded:Ln,className:n()("".concat(fn,"-expanded-row"),"".concat(fn,"-expanded-row-level-").concat(ct+1),na),prefixCls:fn,fixHeader:Zn,fixColumn:ii,horizonScroll:pi,component:Zt,componentWidth:ri,cellComponent:dr,colSpan:ji.length},wa)}var mo;return ti&&Ln&&(mo=(vn[Lr]||[]).map(function(Ca,qi){var aa=fi(Ca,qi);return o.createElement($r,Object.assign({},Xt,{key:aa,rowKey:aa,record:Ca,recordKey:aa,index:qi,indent:ct+1}))})),o.createElement(o.Fragment,null,Xi,Gi,mo)}$r.displayName="BodyRow";var nr=$r,lr=o.createContext(null),zt=lr;function Ut(Xt){var zr=Xt.columnKey,un=Xt.onColumnResize,vn=o.useRef();return o.useEffect(function(){vn.current&&un(zr,vn.current.offsetWidth)},[]),o.createElement(ve,{onResize:function(li){var fi=li.offsetWidth;un(zr,fi)}},o.createElement("td",{ref:vn,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function st(Xt){var zr=Xt.data,un=Xt.getRowKey,vn=Xt.measureColumnWidth,ni=Xt.expandedKeys,li=Xt.onRow,fi=Xt.rowExpandable,di=Xt.emptyNode,Yt=Xt.childrenColumnName,Et=o.useContext(zt),yr=Et.onColumnResize,ct=o.useContext(Le),Zt=ct.prefixCls,dr=ct.getComponent,Lr=o.useContext(dt),Jr=Lr.fixHeader,fn=Lr.horizonScroll,Cn=Lr.flattenColumns,Nn=Lr.componentWidth;return o.useMemo(function(){var Zn=dr(["body","wrapper"],"tbody"),ii=dr(["body","row"],"tr"),pi=dr(["body","cell"],"td"),ri;zr.length?ri=zr.map(function(ei,Je){var Gt=un(ei,Je);return o.createElement(nr,{key:Gt,rowKey:Gt,record:ei,recordKey:Gt,index:Je,rowComponent:ii,cellComponent:pi,expandedKeys:ni,onRow:li,getRowKey:un,rowExpandable:fi,childrenColumnName:Yt})}):ri=o.createElement(ir,{expanded:!0,className:"".concat(Zt,"-placeholder"),prefixCls:Zt,fixHeader:Jr,fixColumn:fn,horizonScroll:fn,component:ii,componentWidth:Nn,cellComponent:pi,colSpan:Cn.length},di);var ji=me(Cn);return o.createElement(Zn,{className:"".concat(Zt,"-tbody")},vn&&o.createElement("tr",{"aria-hidden":"true",className:"".concat(Zt,"-measure-row"),style:{height:0}},ji.map(function(ei){return o.createElement(Ut,{key:ei,columnKey:ei,onColumnResize:yr})})),ri)},[zr,Zt,li,vn,ni,un,dr,Nn,di,Cn])}var Hr=o.memo(st);Hr.displayName="Body";var mn=Hr;function In(Xt){return B(Xt).filter(function(zr){return o.isValidElement(zr)}).map(function(zr){var un=zr.key,vn=zr.props,ni=vn.children,li=Object(ae.a)(vn,["children"]),fi=Object(t.a)({key:un},li);return ni&&(fi.children=In(ni)),fi})}function Yn(Xt){return Xt.reduce(function(zr,un){var vn=un.fixed,ni=vn===!0?"left":vn,li=un.children;return li&&li.length>0?[].concat(Object(a.a)(zr),Object(a.a)(Yn(li).map(function(fi){return Object(t.a)({fixed:ni},fi)}))):[].concat(Object(a.a)(zr),[Object(t.a)(Object(t.a)({},un),{},{fixed:ni})])},[])}function Mi(Xt){for(var zr=!0,un=0;un<Xt.length;un+=1){var vn=Xt[un];if(zr&&vn.fixed!=="left")zr=!1;else if(!zr&&vn.fixed==="left"){_(!1,"Index ".concat(un-1," of `columns` missing `fixed='left'` prop."));break}}for(var ni=!0,li=Xt.length-1;li>=0;li-=1){var fi=Xt[li];if(ni&&fi.fixed!=="right")ni=!1;else if(!ni&&fi.fixed==="right"){_(!1,"Index ".concat(li+1," of `columns` missing `fixed='right'` prop."));break}}}function wn(Xt){return Xt.map(function(zr){var un=zr.fixed,vn=Object(ae.a)(zr,["fixed"]),ni=un;return un==="left"?ni="right":un==="right"&&(ni="left"),Object(t.a)({fixed:ni},vn)})}function Rn(Xt,zr){var un=Xt.prefixCls,vn=Xt.columns,ni=Xt.children,li=Xt.expandable,fi=Xt.expandedKeys,di=Xt.getRowKey,Yt=Xt.onTriggerExpand,Et=Xt.expandIcon,yr=Xt.rowExpandable,ct=Xt.expandIconColumnIndex,Zt=Xt.direction,dr=Xt.expandRowByClick,Lr=o.useMemo(function(){return vn||In(ni)},[vn,ni]),Jr=o.useMemo(function(){if(li){var Nn,Zn=ct||0,ii=Lr[Zn],pi=(Nn={},Object(l.a)(Nn,Tt,{className:"".concat(un,"-expand-icon-col")}),Object(l.a)(Nn,"title",""),Object(l.a)(Nn,"fixed",ii?ii.fixed:null),Object(l.a)(Nn,"className","".concat(un,"-row-expand-icon-cell")),Object(l.a)(Nn,"render",function(ei,Je,Gt){var vr=di(Je,Gt),fr=fi.has(vr),Gr=yr?yr(Je):!0,Pr=Et({prefixCls:un,expanded:fr,expandable:Gr,record:Je,onExpand:Yt});return dr?o.createElement("span",{onClick:function(An){return An.stopPropagation()}},Pr):Pr}),Nn),ri=Lr.slice();return Zn>=0&&ri.splice(Zn,0,pi),ri}return Lr},[li,Lr,di,fi,Et,Zt]),fn=o.useMemo(function(){var Nn=Jr;return zr&&(Nn=zr(Nn)),Nn.length||(Nn=[{render:function(){return null}}]),Nn},[zr,Jr,Zt]),Cn=o.useMemo(function(){return Zt==="rtl"?wn(Yn(fn)):Yn(fn)},[fn,Zt]);return[fn,Cn]}var kt=Rn,vt=d("xEkU"),Re=d.n(vt);function Ke(Xt){var zr=Object(o.useRef)(Xt),un=Object(o.useState)({}),vn=Object(u.a)(un,2),ni=vn[1],li=Object(o.useRef)(null),fi=Object(o.useRef)([]);function di(Yt){li.current===null&&(fi.current=[],li.current=Re()(function(){fi.current.forEach(function(Et){zr.current=Et(zr.current)}),li.current=null,ni({})})),fi.current.push(Yt)}return Object(o.useEffect)(function(){return function(){Re.a.cancel(li.current)}},[]),[zr.current,di]}function Pe(Xt){var zr=Object(o.useRef)(Xt),un=Object(o.useRef)(null);function vn(){window.clearTimeout(un.current)}function ni(fi){zr.current=fi,vn(),un.current=window.setTimeout(function(){zr.current=null,un.current=null},100)}function li(){return zr.current}return Object(o.useEffect)(function(){return vn},[]),[ni,li]}function nt(Xt,zr,un){var vn=Object(o.useMemo)(function(){for(var ni=[],li=[],fi=0,di=0,Yt=0;Yt<zr;Yt+=1)if(un==="rtl"){li[Yt]=di,di+=Xt[Yt]||0;var Et=zr-Yt-1;ni[Et]=fi,fi+=Xt[Et]||0}else{ni[Yt]=fi,fi+=Xt[Yt]||0;var yr=zr-Yt-1;li[yr]=di,di+=Xt[yr]||0}return{left:ni,right:li}},[Xt,zr,un]);return vn}var yt=nt;function Dt(Xt){var zr=Xt.className,un=Xt.children;return o.createElement("div",{className:zr},un)}var bt=Dt;function It(Xt){var zr=Xt.className,un=Xt.index,vn=Xt.children,ni=Xt.colSpan,li=Xt.rowSpan,fi=o.useContext(Le),di=fi.prefixCls,Yt=fi.fixedInfoList,Et=Yt[un];return o.createElement(gt,Object.assign({className:zr,index:un,component:"td",prefixCls:di,record:null,dataIndex:null,render:function(){return{children:vn,props:{colSpan:ni,rowSpan:li}}}},Et))}function gr(Xt){return o.createElement("tr",Object.assign({},Xt))}function kr(Xt){var zr=Xt.children,un=o.useContext(Le),vn=un.prefixCls;return o.createElement("tfoot",{className:"".concat(vn,"-summary")},zr)}var wt=kr,rt={Cell:It,Row:gr};function tt(Xt){var zr,un=Xt.prefixCls,vn=Xt.record,ni=Xt.onExpand,li=Xt.expanded,fi=Xt.expandable,di="".concat(un,"-row-expand-icon");if(!fi)return o.createElement("span",{className:n()(di,"".concat(un,"-row-spaced"))});var Yt=function(yr){ni(vn,yr),yr.stopPropagation()};return o.createElement("span",{className:n()(di,(zr={},Object(l.a)(zr,"".concat(un,"-row-expanded"),li),Object(l.a)(zr,"".concat(un,"-row-collapsed"),!li),zr)),onClick:Yt})}function Rt(Xt,zr,un){var vn=[];function ni(li){(li||[]).forEach(function(fi,di){vn.push(zr(fi,di)),ni(fi[un])})}return ni(Xt),vn}function Ft(Xt,zr,un,vn){var ni=k.a.unstable_batchedUpdates?function(fi){k.a.unstable_batchedUpdates(un,fi)}:un;return Xt.addEventListener&&Xt.addEventListener(zr,ni,vn),{remove:function(){Xt.removeEventListener&&Xt.removeEventListener(zr,ni,vn)}}}var At=/margin|padding|width|height|max|min|offset/,Wt={left:!0,top:!0},ot={cssFloat:1,styleFloat:1,float:1};function Bt(Xt){return Xt.nodeType===1?Xt.ownerDocument.defaultView.getComputedStyle(Xt,null):{}}function Ar(Xt,zr,un){if(zr=zr.toLowerCase(),un==="auto"){if(zr==="height")return Xt.offsetHeight;if(zr==="width")return Xt.offsetWidth}return zr in Wt||(Wt[zr]=At.test(zr)),Wt[zr]?parseFloat(un)||0:un}function rr(Xt,zr){var un=arguments.length,vn=Bt(Xt);return zr=ot[zr]?"cssFloat"in Xt.style?"cssFloat":"styleFloat":zr,un===1?vn:Ar(Xt,zr,vn[zr]||Xt.style[zr])}function pr(Xt,zr,un){var vn=arguments.length;if(zr=ot[zr]?"cssFloat"in Xt.style?"cssFloat":"styleFloat":zr,vn===3)return typeof un=="number"&&At.test(zr)&&(un="".concat(un,"px")),Xt.style[zr]=un,un;for(var ni in zr)zr.hasOwnProperty(ni)&&pr(Xt,ni,zr[ni]);return Bt(Xt)}function tn(Xt){return Xt===document.body?document.documentElement.clientWidth:Xt.offsetWidth}function hn(Xt){return Xt===document.body?window.innerHeight||document.documentElement.clientHeight:Xt.offsetHeight}function Mn(){var Xt=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),zr=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Xt,height:zr}}function Xn(){var Xt=document.documentElement.clientWidth,zr=window.innerHeight||document.documentElement.clientHeight;return{width:Xt,height:zr}}function si(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function vi(Xt){var zr=Xt.getBoundingClientRect(),un=document.documentElement;return{left:zr.left+(window.pageXOffset||un.scrollLeft)-(un.clientLeft||document.body.clientLeft||0),top:zr.top+(window.pageYOffset||un.scrollTop)-(un.clientTop||document.body.clientTop||0)}}var xi=function(zr,un){var vn,ni,li=zr.scrollBodyRef,fi=zr.onScroll,di=zr.offsetScroll,Yt=o.useContext(Le),Et=Yt.prefixCls,yr=((vn=li.current)===null||vn===void 0?void 0:vn.scrollWidth)||0,ct=((ni=li.current)===null||ni===void 0?void 0:ni.clientWidth)||0,Zt=yr&&ct*(ct/yr),dr=o.useRef(),Lr=Ke({scrollLeft:0,isHiddenScrollBar:!1}),Jr=Object(u.a)(Lr,2),fn=Jr[0],Cn=Jr[1],Nn=o.useRef({delta:0,x:0}),Zn=o.useState(!1),ii=Object(u.a)(Zn,2),pi=ii[0],ri=ii[1],ji=function(){ri(!1)},ei=function(Gr){Gr.persist(),Nn.current.delta=Gr.pageX-fn.scrollLeft,Nn.current.x=0,ri(!0),Gr.preventDefault()},Je=function(Gr){var Pr,hr=Gr||((Pr=window)===null||Pr===void 0?void 0:Pr.event),An=hr.buttons;if(!pi||An===0){pi&&ri(!1);return}var br=Nn.current.x+Gr.pageX-Nn.current.x-Nn.current.delta;br<=0&&(br=0),br+Zt>=ct&&(br=ct-Zt),fi({scrollLeft:br/ct*(yr+2)}),Nn.current.x=Gr.pageX},Gt=function(){var Gr=vi(li.current).top,Pr=Gr+li.current.offsetHeight,hr=document.documentElement.scrollTop+window.innerHeight;Pr-_e()<=hr||Gr>=hr-di?Cn(function(An){return Object(t.a)(Object(t.a)({},An),{},{isHiddenScrollBar:!0})}):Cn(function(An){return Object(t.a)(Object(t.a)({},An),{},{isHiddenScrollBar:!1})})},vr=function(Gr){Cn(function(Pr){return Object(t.a)(Object(t.a)({},Pr),{},{scrollLeft:Gr/yr*ct||0})})};return o.useImperativeHandle(un,function(){return{setScrollLeft:vr}}),o.useEffect(function(){var fr=Ft(document.body,"mouseup",ji,!1),Gr=Ft(document.body,"mousemove",Je,!1);return Gt(),function(){fr.remove(),Gr.remove()}},[Zt,pi]),o.useEffect(function(){var fr=Ft(window,"scroll",Gt,!1),Gr=Ft(window,"resize",Gt,!1);return function(){fr.remove(),Gr.remove()}},[]),o.useEffect(function(){fn.isHiddenScrollBar||Cn(function(fr){var Gr,Pr;return Object(t.a)(Object(t.a)({},fr),{},{scrollLeft:li.current.scrollLeft/((Gr=li.current)===null||Gr===void 0?void 0:Gr.scrollWidth)*((Pr=li.current)===null||Pr===void 0?void 0:Pr.clientWidth)})})},[fn.isHiddenScrollBar]),yr<=ct||!Zt||fn.isHiddenScrollBar?null:o.createElement("div",{style:{height:_e(),width:ct,bottom:di},className:"".concat(Et,"-sticky-scroll")},o.createElement("div",{onMouseDown:ei,ref:dr,className:n()("".concat(Et,"-sticky-scroll-bar"),Object(l.a)({},"".concat(Et,"-sticky-scroll-bar-active"),pi)),style:{width:"".concat(Zt,"px"),transform:"translate3d(".concat(fn.scrollLeft,"px, 0, 0)")}}))},_i=o.forwardRef(xi);function Qe(Xt,zr){return o.useMemo(function(){var un=!!Xt;return{isSticky:un,stickyClassName:un?"".concat(zr,"-sticky-header"):"",offsetHeader:Object(s.a)(Xt)==="object"&&Xt.offsetHeader||0,offsetScroll:Object(s.a)(Xt)==="object"&&Xt.offsetScroll||0}},[Xt,zr])}var we=[],Ne={},Fe="rc-table-internal-hook",Ye=o.memo(function(Xt){var zr=Xt.children;return zr},function(Xt,zr){return p()(Xt.props,zr.props)?Xt.pingLeft!==zr.pingLeft||Xt.pingRight!==zr.pingRight:!1});function We(Xt){var zr,un=Xt.prefixCls,vn=Xt.className,ni=Xt.rowClassName,li=Xt.style,fi=Xt.data,di=Xt.rowKey,Yt=Xt.scroll,Et=Xt.tableLayout,yr=Xt.direction,ct=Xt.title,Zt=Xt.footer,dr=Xt.summary,Lr=Xt.id,Jr=Xt.showHeader,fn=Xt.components,Cn=Xt.emptyText,Nn=Xt.onRow,Zn=Xt.onHeaderRow,ii=Xt.internalHooks,pi=Xt.transformColumns,ri=Xt.internalRefs,ji=Xt.sticky,ei=fi||we,Je=!!ei.length,Gt=o.useState(0),vr=Object(u.a)(Gt,2),fr=vr[0],Gr=vr[1];o.useEffect(function(){Gr(_e())});var Pr=o.useMemo(function(){return ue(fn,{})},[fn]),hr=o.useCallback(function(io,Xa){return Y(Pr,io)||Xa},[Pr]),An=o.useMemo(function(){return typeof di=="function"?di:function(io){var Xa=io&&io[di];return Xa}},[di]),br=Xe(Xt),pn=br.expandIcon,Kn=br.expandedRowKeys,Wn=br.defaultExpandedRowKeys,Ln=br.defaultExpandAllRows,$n=br.expandedRowRender,Un=br.onExpand,ti=br.onExpandedRowsChange,Gn=br.expandRowByClick,wi=br.rowExpandable,Ei=br.expandIconColumnIndex,Zi=br.expandedRowClassName,ua=br.childrenColumnName,Xi=br.indentSize,Gi=pn||tt,wa=ua||"children",na=o.useMemo(function(){return $n?"row":Xt.expandable&&ii===Fe&&Xt.expandable.__PARENT_RENDER_ICON__||ei.some(function(io){return io&&Object(s.a)(io)==="object"&&io[wa]})?"nest":!1},[!!$n,ei]),mo=o.useState(function(){return Wn||(Ln?Rt(ei,An,wa):[])}),Ca=Object(u.a)(mo,2),qi=Ca[0],aa=Ca[1],$i=o.useMemo(function(){return new Set(Kn||qi||[])},[Kn,qi]),Aa=o.useCallback(function(io){var Xa=An(io,ei.indexOf(io)),Ya,ka=$i.has(Xa);ka?($i.delete(Xa),Ya=Object(a.a)($i)):Ya=[].concat(Object(a.a)($i),[Xa]),aa(Ya),Un&&Un(!ka,io),ti&&ti(Ya)},[An,$i,ei,Un,ti]),ya=o.useState(0),Ha=Object(u.a)(ya,2),ta=Ha[0],ra=Ha[1],_a=kt(Object(t.a)(Object(t.a)(Object(t.a)({},Xt),br),{},{expandable:!!$n,expandedKeys:$i,getRowKey:An,onTriggerExpand:Aa,expandIcon:Gi,expandIconColumnIndex:Ei,direction:yr}),ii===Fe?pi:null),Ka=Object(u.a)(_a,2),bo=Ka[0],ga=Ka[1],go=o.useMemo(function(){return{columns:bo,flattenColumns:ga}},[bo,ga]),Sa=o.useRef(),Va=o.useRef(),uo=o.useRef(),No=o.useState(!1),Po=Object(u.a)(No,2),to=Po[0],Uo=Po[1],co=o.useState(!1),fa=Object(u.a)(co,2),ro=fa[0],Wa=fa[1],Ea=Ke(new Map),Qr=Object(u.a)(Ea,2),za=Qr[0],rs=Qr[1],Vo=me(ga),Go=Vo.map(function(io){return za.get(io)}),Qo=o.useMemo(function(){return Go},[Go.join("_")]),Yo=yt(Qo,ga.length,yr),vo=Yt&&Ce(Yt.y),Io=Yt&&Ce(Yt.x),zo=Io&&ga.some(function(io){var Xa=io.fixed;return Xa}),Fa=o.useRef(),Ja=Qe(ji,un),ho=Ja.isSticky,Ao=Ja.offsetHeader,$o=Ja.offsetScroll,ps=Ja.stickyClassName,is,Za,St;vo&&(Za={overflowY:"scroll",maxHeight:Yt.y}),Io&&(is={overflowX:"auto"},vo||(Za={overflowY:"hidden"}),St={width:Yt.x===!0?"auto":Yt.x,minWidth:"100%"});var Pt=o.useCallback(function(io,Xa){rs(function(Ya){var ka=new Map(Ya);return ka.set(io,Xa),ka})},[]),Kr=Pe(null),Pn=Object(u.a)(Kr,2),ut=Pn[0],ne=Pn[1];function pe(io,Xa){if(!Xa)return;typeof Xa=="function"?Xa(io):Xa.scrollLeft!==io&&(Xa.scrollLeft=io)}var be=function(Xa){var Ya=Xa.currentTarget,ka=Xa.scrollLeft,os=typeof ka=="number"?ka:Ya.scrollLeft,Es=Ya||Ne;if(!ne()||ne()===Es){var qo;ut(Es),pe(os,Va.current),pe(os,uo.current),pe(os,(qo=Fa.current)===null||qo===void 0?void 0:qo.setScrollLeft)}if(Ya){var pa=Ya.scrollWidth,ls=Ya.clientWidth;Uo(os>0),Wa(os<pa-ls)}},je=function(){uo.current&&be({currentTarget:uo.current})},ht=function(Xa){var Ya=Xa.width;je(),ra(Sa.current?Sa.current.offsetWidth:Ya)};o.useEffect(function(){return je},[]),o.useEffect(function(){Io&&je()},[Io]),o.useEffect(function(){ii===Fe&&ri&&(ri.body.current=uo.current)});var Vt=hr(["table"],"table"),Or=o.useMemo(function(){return Et||(zo?Yt.x==="max-content"?"auto":"fixed":vo||ga.some(function(io){var Xa=io.ellipsis;return Xa})?"fixed":"auto")},[vo,zo,ga,Et]),Yr,cn={colWidths:Qo,columCount:ga.length,stickyOffsets:Yo,onHeaderRow:Zn,fixHeader:vo},jn=o.useMemo(function(){return Je?null:typeof Cn=="function"?Cn():Cn},[Je,Cn]),ai=o.createElement(mn,{data:ei,measureColumnWidth:vo||Io||ho,expandedKeys:$i,rowExpandable:wi,getRowKey:An,onRow:Nn,emptyNode:jn,childrenColumnName:wa}),Qn=o.createElement(Be,{colWidths:ga.map(function(io){var Xa=io.width;return Xa}),columns:ga}),Ni=dr&&o.createElement(wt,null,dr(ei)),Vi=hr(["body"]);if(vo||ho){var Ta;typeof Vi=="function"?(Ta=Vi(ei,{scrollbarSize:fr,ref:uo,onScroll:be}),cn.colWidths=ga.map(function(io,Xa){var Ya=io.width,ka=Xa===bo.length-1?Ya-fr:Ya;return typeof ka=="number"&&!Number.isNaN(ka)?ka:(_(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Ta=o.createElement("div",{style:Object(t.a)(Object(t.a)({},is),Za),onScroll:be,ref:uo,className:n()("".concat(un,"-body"))},o.createElement(Vt,{style:Object(t.a)(Object(t.a)({},St),{},{tableLayout:Or})},Qn,ai,Ni),ho&&o.createElement(_i,{ref:Fa,offsetScroll:$o,scrollBodyRef:uo,onScroll:be})),Yr=o.createElement(o.Fragment,null,Jr!==!1&&o.createElement(lt,Object.assign({noData:!ei.length},cn,go,{direction:yr,offsetHeader:Ao,stickyClassName:ps,ref:Va,onScroll:be})),Ta)}else Yr=o.createElement("div",{style:Object(t.a)(Object(t.a)({},is),Za),className:n()("".concat(un,"-content")),onScroll:be,ref:uo},o.createElement(Vt,{style:Object(t.a)(Object(t.a)({},St),{},{tableLayout:Or})},Qn,Jr!==!1&&o.createElement(Mt,Object.assign({},cn,go)),ai,Ni));var Ga=oe(Xt),ao=o.createElement("div",Object.assign({className:n()(un,vn,(zr={},Object(l.a)(zr,"".concat(un,"-rtl"),yr==="rtl"),Object(l.a)(zr,"".concat(un,"-ping-left"),to),Object(l.a)(zr,"".concat(un,"-ping-right"),ro),Object(l.a)(zr,"".concat(un,"-layout-fixed"),Et==="fixed"),Object(l.a)(zr,"".concat(un,"-fixed-header"),vo),Object(l.a)(zr,"".concat(un,"-fixed-column"),zo),Object(l.a)(zr,"".concat(un,"-scroll-horizontal"),Io),Object(l.a)(zr,"".concat(un,"-has-fix-left"),ga[0]&&ga[0].fixed),Object(l.a)(zr,"".concat(un,"-has-fix-right"),ga[ga.length-1]&&ga[ga.length-1].fixed==="right"),zr)),style:li,id:Lr,ref:Sa},Ga),o.createElement(Ye,{pingLeft:to,pingRight:ro,props:Object(t.a)(Object(t.a)({},Xt),{},{stickyOffsets:Yo,mergedExpandedKeys:$i})},ct&&o.createElement(bt,{className:"".concat(un,"-title")},ct(ei)),o.createElement("div",{className:"".concat(un,"-container")},Yr),Zt&&o.createElement(bt,{className:"".concat(un,"-footer")},Zt(ei))));Io&&(ao=o.createElement(ve,{onResize:ht},ao));var Do=o.useMemo(function(){return{prefixCls:un,getComponent:hr,scrollbarSize:fr,direction:yr,fixedInfoList:ga.map(function(io,Xa){return Ot(Xa,Xa,ga,Yo,yr)}),isSticky:ho}},[un,hr,fr,yr,ga,Yo,yr,ho]),fo=o.useMemo(function(){return Object(t.a)(Object(t.a)({},go),{},{tableLayout:Or,rowClassName:ni,expandedRowClassName:Zi,componentWidth:ta,fixHeader:vo,fixColumn:zo,horizonScroll:Io,expandIcon:Gi,expandableType:na,expandRowByClick:Gn,expandedRowRender:$n,onTriggerExpand:Aa,expandIconColumnIndex:Ei,indentSize:Xi})},[go,Or,ni,Zi,ta,vo,zo,Io,Gi,na,Gn,$n,Aa,Ei,Xi]),as=o.useMemo(function(){return{onColumnResize:Pt}},[Pt]);return o.createElement(Le.Provider,{value:Do},o.createElement(dt.Provider,{value:fo},o.createElement(zt.Provider,{value:as},ao)))}We.Column=Ve,We.ColumnGroup=se,We.Summary=rt,We.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var Ze=We,mt=Ze,it=d("W9HT"),Jt=d("NUBc"),Dr=d("H84U"),Sr=function(Xt,zr){var un={};for(var vn in Xt)Object.prototype.hasOwnProperty.call(Xt,vn)&&zr.indexOf(vn)<0&&(un[vn]=Xt[vn]);if(Xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ni=0,vn=Object.getOwnPropertySymbols(Xt);ni<vn.length;ni++)zr.indexOf(vn[ni])<0&&Object.prototype.propertyIsEnumerable.call(Xt,vn[ni])&&(un[vn[ni]]=Xt[vn[ni]]);return un},Br=10;function $t(Xt,zr){var un={current:zr.current,pageSize:zr.pageSize},vn=Xt&&x()(Xt)==="object"?Xt:{};return Object.keys(vn).forEach(function(ni){var li=zr[ni];typeof li!="function"&&(un[ni]=li)}),un}function gn(){for(var Xt={},zr=arguments.length,un=new Array(zr),vn=0;vn<zr;vn++)un[vn]=arguments[vn];return un.forEach(function(ni){ni&&Object.keys(ni).forEach(function(li){var fi=ni[li];fi!==void 0&&(Xt[li]=fi)})}),Xt}function or(Xt,zr,un){var vn=zr&&x()(zr)==="object"?zr:{},ni=vn.total,li=ni===void 0?0:ni,fi=Sr(vn,["total"]),di=Object(o.useState)(function(){return{current:"defaultCurrent"in fi?fi.defaultCurrent:1,pageSize:"defaultPageSize"in fi?fi.defaultPageSize:Br}}),Yt=g()(di,2),Et=Yt[0],yr=Yt[1],ct=gn(Et,fi,{total:li>0?li:Xt});if(!li){var Zt=Math.ceil(Xt/ct.pageSize);Zt<ct.current&&(ct.current=1)}var dr=function(){var fn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,Cn=arguments.length>1?arguments[1]:void 0;yr(c()(c()({},ct),{current:fn,pageSize:Cn||ct.pageSize}))},Lr=function(fn,Cn){var Nn=ct==null?void 0:ct.pageSize;Cn&&Cn!==Nn&&(fn=1,zr&&zr.onShowSizeChange&&zr.onShowSizeChange(fn,Cn)),zr&&zr.onChange&&zr.onChange(fn,Cn),dr(fn,Cn),un(fn,Cn||Nn)};return zr===!1?[{},function(){}]:[c()(c()({},ct),{onChange:Lr}),dr]}function ln(Xt,zr,un){var vn=o.useRef({});function ni(li){if(!vn.current||vn.current.data!==Xt||vn.current.childrenColumnName!==zr||vn.current.getRowKey!==un){var fi=function Yt(Et){Et.forEach(function(yr,ct){var Zt=un(yr,ct);di.set(Zt,yr),yr&&x()(yr)==="object"&&zr in yr&&Yt(yr[zr]||[])})},di=new Map;fi(Xt),vn.current={data:Xt,childrenColumnName:zr,kvMap:di,getRowKey:un}}return vn.current.kvMap.get(li)}return[ni]}var an=d("SA+Z"),Rr=d.n(an),On=d("RIqP"),ci=d.n(On),Ui=d("HQEm"),ki=d.n(Ui),Di=d("c3jg"),Ki=d("qOx5"),Ur=d("wPhX"),Tn=d("6cGi"),Mr=d("kaz8"),mr=d("jsC+"),Cr=d("BvKs"),Lt=d("9yH6"),wr=d("uaoM"),Vr="SELECT_ALL",jr="SELECT_INVERT";function qr(Xt){return Xt&&Xt.fixed}function oi(Xt,zr){var un=[];return(Xt||[]).forEach(function(vn){un.push(vn),vn&&x()(vn)==="object"&&zr in vn&&(un=[].concat(ci()(un),ci()(oi(vn[zr],zr))))}),un}function Vn(Xt,zr){var un=Xt||{},vn=un.preserveSelectedRowKeys,ni=un.selectedRowKeys,li=un.getCheckboxProps,fi=un.onChange,di=un.onSelect,Yt=un.onSelectAll,Et=un.onSelectInvert,yr=un.onSelectMultiple,ct=un.columnWidth,Zt=un.type,dr=un.selections,Lr=un.fixed,Jr=un.renderCell,fn=un.hideSelectAll,Cn=un.checkStrictly,Nn=Cn===void 0?!0:Cn,Zn=zr.prefixCls,ii=zr.data,pi=zr.pageData,ri=zr.getRecordByKey,ji=zr.getRowKey,ei=zr.expandType,Je=zr.childrenColumnName,Gt=zr.locale,vr=zr.expandIconColumnIndex,fr=zr.getPopupContainer,Gr=o.useRef(new Map),Pr=Object(Tn.a)(ni||[],{value:ni}),hr=g()(Pr,2),An=hr[0],br=hr[1],pn=Object(o.useMemo)(function(){return Nn?{keyEntities:null}:Object(Di.a)(ii,void 0,ji)},[ii,ji,Nn]),Kn=pn.keyEntities,Wn=Object(o.useMemo)(function(){return oi(pi,Je)},[pi,Je]),Ln=Object(o.useMemo)(function(){var aa=new Map;return Wn.forEach(function($i,Aa){var ya=ji($i,Aa),Ha=(li?li($i):null)||{};aa.set(ya,Ha)}),aa},[Wn,ji,li]),$n=Object(o.useCallback)(function(aa){var $i;return!!(($i=Ln.get(ji(aa)))===null||$i===void 0?void 0:$i.disabled)},[Ln,ji]),Un=Object(o.useMemo)(function(){if(Nn)return[An,[]];var aa=Object(Ki.a)(An,!0,Kn,$n),$i=aa.checkedKeys,Aa=aa.halfCheckedKeys;return[$i,Aa]},[An,Nn,Kn,$n]),ti=g()(Un,2),Gn=ti[0],wi=ti[1],Ei=Object(o.useMemo)(function(){var aa=Zt==="radio"?Gn.slice(0,1):Gn;return new Set(aa)},[Gn,Zt]),Zi=Object(o.useMemo)(function(){return Zt==="radio"?new Set:new Set(wi)},[wi,Zt]),ua=Object(o.useState)(null),Xi=g()(ua,2),Gi=Xi[0],wa=Xi[1];o.useEffect(function(){Xt||br([])},[!!Xt]);var na=Object(o.useCallback)(function(aa){var $i,Aa;if(vn){var ya=new Map;$i=aa,Aa=aa.map(function(Ha){var ta=ri(Ha);return!ta&&Gr.current.has(Ha)&&(ta=Gr.current.get(Ha)),ya.set(Ha,ta),ta}),Gr.current=ya}else $i=[],Aa=[],aa.forEach(function(Ha){var ta=ri(Ha);ta!==void 0&&($i.push(Ha),Aa.push(ta))});br($i),fi&&fi($i,Aa)},[br,ri,fi,vn]),mo=Object(o.useCallback)(function(aa,$i,Aa,ya){if(di){var Ha=Aa.map(function(ta){return ri(ta)});di(ri(aa),$i,Ha,ya)}na(Aa)},[di,ri,na]),Ca=Object(o.useMemo)(function(){if(!dr||fn)return null;var aa=dr===!0?[Vr,jr]:dr;return aa.map(function($i){return $i===Vr?{key:"all",text:Gt.selectionAll,onSelect:function(){na(ii.map(function(ya,Ha){return ji(ya,Ha)}))}}:$i===jr?{key:"invert",text:Gt.selectInvert,onSelect:function(){var ya=new Set(Ei);pi.forEach(function(ta,ra){var _a=ji(ta,ra);ya.has(_a)?ya.delete(_a):ya.add(_a)});var Ha=Array.from(ya);na(Ha),Et&&(Object(wr.a)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),Et(Ha))}}:$i})},[dr,Ei,pi,ji,Et,na]),qi=Object(o.useCallback)(function(aa){if(!Xt)return aa;var $i=new Set(Ei),Aa=Wn.map(ji).filter(function(to){return!Ln.get(to).disabled}),ya=Aa.every(function(to){return $i.has(to)}),Ha=Aa.some(function(to){return $i.has(to)}),ta=function(){var Uo=[];ya?Aa.forEach(function(fa){$i.delete(fa),Uo.push(fa)}):Aa.forEach(function(fa){$i.has(fa)||($i.add(fa),Uo.push(fa))});var co=Array.from($i);na(co),Yt&&Yt(!ya,co.map(function(fa){return ri(fa)}),Uo.map(function(fa){return ri(fa)}))},ra;if(Zt!=="radio"){var _a;if(Ca){var Ka=o.createElement(Cr.a,{getPopupContainer:fr},Ca.map(function(to,Uo){var co=to.key,fa=to.text,ro=to.onSelect;return o.createElement(Cr.a.Item,{key:co||Uo,onClick:function(){ro&&ro(Aa)}},fa)}));_a=o.createElement("div",{className:"".concat(Zn,"-selection-extra")},o.createElement(mr.a,{overlay:Ka,getPopupContainer:fr},o.createElement("span",null,o.createElement(ki.a,null))))}var bo=Wn.every(function(to,Uo){var co=ji(to,Uo),fa=Ln.get(co)||{};return fa.disabled});ra=!fn&&o.createElement("div",{className:"".concat(Zn,"-selection")},o.createElement(Mr.a,{checked:!bo&&!!Wn.length&&ya,indeterminate:!ya&&Ha,onChange:ta,disabled:Wn.length===0||bo}),_a)}var ga;Zt==="radio"?ga=function(Uo,co,fa){var ro=ji(co,fa),Wa=$i.has(ro);return{node:o.createElement(Lt.a,c()({},Ln.get(ro),{checked:Wa,onClick:function(Qr){return Qr.stopPropagation()},onChange:function(Qr){$i.has(ro)||mo(ro,!0,[ro],Qr.nativeEvent)}})),checked:Wa}}:ga=function(Uo,co,fa){var ro,Wa=ji(co,fa),Ea=$i.has(Wa),Qr=Zi.has(Wa),za=Ln.get(Wa),rs;return ei==="nest"?(rs=Qr,Object(wr.a)(!(typeof(za==null?void 0:za.indeterminate)=="boolean"),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):rs=(ro=za==null?void 0:za.indeterminate)!==null&&ro!==void 0?ro:Qr,{node:o.createElement(Mr.a,c()({},za,{indeterminate:rs,checked:Ea,onClick:function(Go){return Go.stopPropagation()},onChange:function(Go){var Qo=Go.nativeEvent,Yo=Qo.shiftKey,vo=-1,Io=-1;if(Yo&&Nn){var zo=new Set([Gi,Wa]);Aa.some(function(Kr,Pn){if(zo.has(Kr))if(vo===-1)vo=Pn;else return Io=Pn,!0;return!1})}if(Io!==-1&&vo!==Io&&Nn){var Fa=Aa.slice(vo,Io+1),Ja=[];Ea?Fa.forEach(function(Kr){$i.has(Kr)&&(Ja.push(Kr),$i.delete(Kr))}):Fa.forEach(function(Kr){$i.has(Kr)||(Ja.push(Kr),$i.add(Kr))});var ho=Array.from($i);na(ho),yr&&yr(!Ea,ho.map(function(Kr){return ri(Kr)}),Ja.map(function(Kr){return ri(Kr)}))}else{var Ao=Gn;if(Nn){var $o=Ea?Object(Ur.b)(Ao,Wa):Object(Ur.a)(Ao,Wa);mo(Wa,!Ea,$o,Qo)}else{var ps=Object(Ki.a)([].concat(ci()(Ao),[Wa]),!0,Kn,$n),is=ps.checkedKeys,Za=ps.halfCheckedKeys,St=is;if(Ea){var Pt=new Set(is);Pt.delete(Wa),St=Object(Ki.a)(Array.from(Pt),{checked:!1,halfCheckedKeys:Za},Kn,$n).checkedKeys}mo(Wa,!Ea,St,Qo)}}wa(Wa)}})),checked:Ea}};var go=function(Uo,co,fa){var ro=ga(Uo,co,fa),Wa=ro.node,Ea=ro.checked;return Jr?Jr(Ea,co,fa,Wa):Wa},Sa=A()({width:ct,className:"".concat(Zn,"-selection-column"),title:Xt.columnTitle||ra,render:go},Tt,{className:"".concat(Zn,"-selection-col")});if(ei==="row"&&aa.length&&!vr){var Va=Rr()(aa),uo=Va[0],No=Va.slice(1),Po=Lr||qr(No[0]);return Po&&(uo.fixed=Po),[uo,c()(c()({},Sa),{fixed:Po})].concat(ci()(No))}return[c()(c()({},Sa),{fixed:Lr||qr(aa[0])})].concat(ci()(aa))},[ji,Wn,Xt,Gn,Ei,Zi,ct,Ca,ei,Gi,Ln,yr,mo,$n]);return[qi,Ei]}var Ti=d("6SEX"),dn=d.n(Ti),_r=d("i8CU"),xn=d.n(_r),Fn=d("3S7+");function zn(Xt,zr){return"key"in Xt&&Xt.key!==void 0&&Xt.key!==null?Xt.key:Xt.dataIndex?Array.isArray(Xt.dataIndex)?Xt.dataIndex.join("."):Xt.dataIndex:zr}function qn(Xt,zr){return zr?"".concat(zr,"-").concat(Xt):"".concat(Xt)}function Oi(Xt,zr){return typeof Xt=="function"?Xt(zr):Xt}var Li="ascend",Ri="descend";function Ji(Xt){return x()(Xt.sorter)==="object"&&typeof Xt.sorter.multiple=="number"?Xt.sorter.multiple:!1}function ma(Xt){return typeof Xt=="function"?Xt:Xt&&x()(Xt)==="object"&&Xt.compare?Xt.compare:!1}function la(Xt,zr){return zr?Xt[Xt.indexOf(zr)+1]:Xt[0]}function qa(Xt,zr,un){var vn=[];function ni(li,fi){vn.push({column:li,key:zn(li,fi),multiplePriority:Ji(li),sortOrder:li.sortOrder})}return(Xt||[]).forEach(function(li,fi){var di=qn(fi,un);li.children?("sortOrder"in li&&ni(li,di),vn=[].concat(ci()(vn),ci()(qa(li.children,zr,di)))):li.sorter&&("sortOrder"in li?ni(li,di):zr&&li.defaultSortOrder&&vn.push({column:li,key:zn(li,di),multiplePriority:Ji(li),sortOrder:li.defaultSortOrder}))}),vn}function bi(Xt,zr,un,vn,ni,li,fi,di){return(zr||[]).map(function(Yt,Et){var yr=qn(Et,di),ct=Yt;if(ct.sorter){var Zt=ct.sortDirections||ni,dr=ct.showSorterTooltip===void 0?fi:ct.showSorterTooltip,Lr=zn(ct,yr),Jr=un.find(function(Je){var Gt=Je.key;return Gt===Lr}),fn=Jr?Jr.sortOrder:null,Cn=la(Zt,fn),Nn=Zt.includes(Li)&&o.createElement(xn.a,{className:n()("".concat(Xt,"-column-sorter-up"),{active:fn===Li})}),Zn=Zt.includes(Ri)&&o.createElement(dn.a,{className:n()("".concat(Xt,"-column-sorter-down"),{active:fn===Ri})}),ii=li||{},pi=ii.cancelSort,ri=ii.triggerAsc,ji=ii.triggerDesc,ei=pi;Cn===Ri?ei=ji:Cn===Li&&(ei=ri),ct=c()(c()({},ct),{className:n()(ct.className,A()({},"".concat(Xt,"-column-sort"),fn)),title:function(Gt){var vr=o.createElement("div",{className:"".concat(Xt,"-column-sorters")},o.createElement("span",null,Oi(Yt.title,Gt)),o.createElement("span",{className:n()("".concat(Xt,"-column-sorter"),A()({},"".concat(Xt,"-column-sorter-full"),Nn&&Zn))},o.createElement("span",{className:"".concat(Xt,"-column-sorter-inner")},Nn,Zn)));return dr?o.createElement(Fn.a,{title:ei},o.createElement("div",{className:"".concat(Xt,"-column-sorters-with-tooltip")},vr)):vr},onHeaderCell:function(Gt){var vr=Yt.onHeaderCell&&Yt.onHeaderCell(Gt)||{},fr=vr.onClick;return vr.onClick=function(Gr){vn({column:Yt,key:Lr,sortOrder:Cn,multiplePriority:Ji(Yt)}),fr&&fr(Gr)},vr.className=n()(vr.className,"".concat(Xt,"-column-has-sorters")),vr}})}return"children"in ct&&(ct=c()(c()({},ct),{children:bi(Xt,ct.children,un,vn,ni,li,fi,yr)})),ct})}function Sn(Xt){var zr=Xt.column,un=Xt.sortOrder;return{column:zr,order:un,field:zr.dataIndex,columnKey:zr.key}}function zi(Xt){var zr=Xt.filter(function(un){var vn=un.sortOrder;return vn}).map(Sn);return zr.length===0&&Xt.length?c()(c()({},Sn(Xt[Xt.length-1])),{column:void 0}):zr.length<=1?zr[0]||{}:zr}function oa(Xt,zr,un){var vn=zr.slice().sort(function(fi,di){return di.multiplePriority-fi.multiplePriority}),ni=Xt.slice(),li=vn.filter(function(fi){var di=fi.column.sorter,Yt=fi.sortOrder;return ma(di)&&Yt});return li.length?ni.sort(function(fi,di){for(var Yt=0;Yt<li.length;Yt+=1){var Et=li[Yt],yr=Et.column.sorter,ct=Et.sortOrder,Zt=ma(yr);if(Zt&&ct){var dr=Zt(fi,di,ct);if(dr!==0)return ct===Li?dr:-dr}}return 0}).map(function(fi){var di=fi[un];return di?c()(c()({},fi),A()({},un,oa(di,zr,un))):fi}):ni}function Yi(Xt){var zr=Xt.prefixCls,un=Xt.mergedColumns,vn=Xt.onSorterChange,ni=Xt.sortDirections,li=Xt.tableLocale,fi=Xt.showSorterTooltip,di=o.useState(qa(un,!0)),Yt=g()(di,2),Et=Yt[0],yr=Yt[1],ct=o.useMemo(function(){var fn=!0,Cn=qa(un,!1);if(!Cn.length)return Et;var Nn=[];function Zn(pi){fn?Nn.push(pi):Nn.push(c()(c()({},pi),{sortOrder:null}))}var ii=null;return Cn.forEach(function(pi){ii===null?(Zn(pi),pi.sortOrder&&(pi.multiplePriority===!1?fn=!1:ii=!0)):(ii&&pi.multiplePriority!==!1||(fn=!1),Zn(pi))}),Nn},[un,Et]),Zt=o.useMemo(function(){var fn=ct.map(function(Cn){var Nn=Cn.column,Zn=Cn.sortOrder;return{column:Nn,order:Zn}});return{sortColumns:fn,sortColumn:fn[0]&&fn[0].column,sortOrder:fn[0]&&fn[0].order}},[ct]);function dr(fn){var Cn;fn.multiplePriority===!1||!ct.length||ct[0].multiplePriority===!1?Cn=[fn]:Cn=[].concat(ci()(ct.filter(function(Nn){var Zn=Nn.key;return Zn!==fn.key})),[fn]),yr(Cn),vn(zi(Cn),Cn)}var Lr=function(Cn){return bi(zr,Cn,ct,dr,ni,li,fi)},Jr=function(){return zi(ct)};return[Lr,ct,Zt,Jr]}var ca=d("Y+p1"),Hi=d.n(ca),Ia=d("5Uyt"),Da=d.n(Ia),Qa=d("2/Rp"),Wo=d("ECub"),po=function(zr){return o.createElement("div",{className:zr.className,onClick:function(vn){return vn.stopPropagation()}},zr.children)},Mo=po,Fo=d("sPtV"),yo=Cr.a.SubMenu,Oo=Cr.a.Item;function sa(Xt){return Xt.some(function(zr){var un=zr.children;return un})}function hs(Xt){var zr=Xt.filters,un=Xt.prefixCls,vn=Xt.filteredKeys,ni=Xt.filterMultiple,li=Xt.locale;return zr.length===0?o.createElement(o.Fragment,null,o.createElement(Wo.a,{image:Wo.a.PRESENTED_IMAGE_SIMPLE,description:li.filterEmptyText,style:{margin:"16px 0"},imageStyle:{height:24}})):zr.map(function(fi,di){var Yt=String(fi.value);if(fi.children)return o.createElement(yo,{key:Yt||di,title:fi.text,popupClassName:"".concat(un,"-dropdown-submenu")},hs({filters:fi.children,prefixCls:un,filteredKeys:vn,filterMultiple:ni,locale:li}));var Et=ni?Mr.a:Lt.a;return o.createElement(Oo,{key:fi.value!==void 0?Yt:di},o.createElement(Et,{checked:vn.includes(Yt)}),o.createElement("span",null,fi.text))})}function Jo(Xt){var zr,un=Xt.prefixCls,vn=Xt.column,ni=Xt.dropdownPrefixCls,li=Xt.columnKey,fi=Xt.filterMultiple,di=Xt.filterState,Yt=Xt.triggerFilter,Et=Xt.locale,yr=Xt.children,ct=Xt.getPopupContainer,Zt=vn.filterDropdownVisible,dr=vn.onFilterDropdownVisibleChange,Lr=o.useState(!1),Jr=g()(Lr,2),fn=Jr[0],Cn=Jr[1],Nn=!!(di&&(((zr=di.filteredKeys)===null||zr===void 0?void 0:zr.length)||di.forceFiltered)),Zn=function(Xi){Cn(Xi),dr&&dr(Xi)},ii=typeof Zt=="boolean"?Zt:fn,pi=di&&di.filteredKeys,ri=Object(Fo.a)(pi||[]),ji=g()(ri,2),ei=ji[0],Je=ji[1],Gt=function(Xi){var Gi=Xi.selectedKeys;Je(Gi)};o.useEffect(function(){Gt({selectedKeys:pi||[]})},[pi]);var vr=o.useState([]),fr=g()(vr,2),Gr=fr[0],Pr=fr[1],hr=o.useRef(),An=function(Xi){hr.current=window.setTimeout(function(){Pr(Xi)})},br=function(){window.clearTimeout(hr.current)};o.useEffect(function(){return function(){window.clearTimeout(hr.current)}},[]);var pn=function(Xi){Zn(!1);var Gi=Xi&&Xi.length?Xi:null;if(Gi===null&&(!di||!di.filteredKeys))return null;if(Hi()(Gi,di==null?void 0:di.filteredKeys))return null;Yt({column:vn,key:li,filteredKeys:Gi})},Kn=function(){pn(ei())},Wn=function(){Je([]),pn([])},Ln=function(Xi){Xi&&pi!==void 0&&Je(pi||[]),Zn(Xi),!Xi&&!vn.filterDropdown&&Kn()},$n=n()(A()({},"".concat(ni,"-menu-without-submenu"),!sa(vn.filters||[]))),Un;if(typeof vn.filterDropdown=="function")Un=vn.filterDropdown({prefixCls:"".concat(ni,"-custom"),setSelectedKeys:function(Xi){return Gt({selectedKeys:Xi})},selectedKeys:ei(),confirm:Kn,clearFilters:Wn,filters:vn.filters,visible:ii});else if(vn.filterDropdown)Un=vn.filterDropdown;else{var ti=ei()||[];Un=o.createElement(o.Fragment,null,o.createElement(Cr.a,{multiple:fi,prefixCls:"".concat(ni,"-menu"),className:$n,onClick:br,onSelect:Gt,onDeselect:Gt,selectedKeys:ti,getPopupContainer:ct,openKeys:Gr,onOpenChange:An},hs({filters:vn.filters||[],prefixCls:un,filteredKeys:ei(),filterMultiple:fi,locale:Et})),o.createElement("div",{className:"".concat(un,"-dropdown-btns")},o.createElement(Qa.a,{type:"link",size:"small",disabled:ti.length===0,onClick:Wn},Et.filterReset),o.createElement(Qa.a,{type:"primary",size:"small",onClick:Kn},Et.filterConfirm)))}var Gn=o.createElement(Mo,{className:"".concat(un,"-dropdown")},Un),wi;typeof vn.filterIcon=="function"?wi=vn.filterIcon(Nn):vn.filterIcon?wi=vn.filterIcon:wi=o.createElement(Da.a,null);var Ei=o.useContext(Dr.b),Zi=Ei.direction;return o.createElement("div",{className:n()("".concat(un,"-column"))},o.createElement("span",{className:"".concat(un,"-column-title")},yr),o.createElement("span",{className:n()("".concat(un,"-trigger-container"),A()({},"".concat(un,"-trigger-container-open"),ii)),onClick:function(Xi){Xi.stopPropagation()}},o.createElement(mr.a,{overlay:Gn,trigger:["click"],visible:ii,onVisibleChange:Ln,getPopupContainer:ct,placement:Zi==="rtl"?"bottomLeft":"bottomRight"},o.createElement("span",{role:"button",tabIndex:-1,className:n()("".concat(un,"-trigger"),{active:Nn})},wi))))}var wo=Jo;function _o(Xt,zr,un){var vn=[];return(Xt||[]).forEach(function(ni,li){var fi=qn(li,un);"children"in ni?vn=[].concat(ci()(vn),ci()(_o(ni.children,zr,fi))):(ni.filters||"filterDropdown"in ni||"onFilter"in ni)&&("filteredValue"in ni?vn.push({column:ni,key:zn(ni,fi),filteredKeys:ni.filteredValue,forceFiltered:ni.filtered}):vn.push({column:ni,key:zn(ni,fi),filteredKeys:zr&&ni.defaultFilteredValue?ni.defaultFilteredValue:void 0,forceFiltered:ni.filtered}))}),vn}function Bo(Xt,zr,un,vn,ni,li,fi,di){return un.map(function(Yt,Et){var yr=qn(Et,di),ct=Yt.filterMultiple,Zt=ct===void 0?!0:ct;if(Yt.filters||"filterDropdown"in Yt){var dr=zn(Yt,yr),Lr=vn.find(function(Jr){var fn=Jr.key;return dr===fn});return c()(c()({},Yt),{title:function(fn){return o.createElement(wo,{prefixCls:"".concat(Xt,"-filter"),dropdownPrefixCls:zr,column:Yt,columnKey:dr,filterState:Lr,filterMultiple:Zt,triggerFilter:ni,locale:fi,getPopupContainer:li},Oi(Yt.title,fn))}})}return"children"in Yt?c()(c()({},Yt),{children:Bo(Xt,zr,Yt.children,vn,ni,li,fi,yr)}):Yt})}function Ds(Xt){var zr={};return Xt.forEach(function(un){var vn=un.key,ni=un.filteredKeys;zr[vn]=ni||null}),zr}function Nr(Xt){var zr=[];return(Xt||[]).forEach(function(un){var vn=un.value,ni=un.children;zr.push(vn),ni&&(zr=[].concat(ci()(zr),ci()(Nr(ni))))}),zr}function rn(Xt,zr){return zr.reduce(function(un,vn){var ni=vn.column,li=ni.onFilter,fi=ni.filters,di=vn.filteredKeys;return li&&di&&di.length?un.filter(function(Yt){return di.some(function(Et){var yr=Nr(fi),ct=yr.findIndex(function(dr){return String(dr)===String(Et)}),Zt=ct!==-1?yr[ct]:Et;return li(Zt,Yt)})}):un},Xt)}function En(Xt){var zr=Xt.prefixCls,un=Xt.dropdownPrefixCls,vn=Xt.mergedColumns,ni=Xt.onFilterChange,li=Xt.getPopupContainer,fi=Xt.locale,di=o.useState(_o(vn,!0)),Yt=g()(di,2),Et=Yt[0],yr=Yt[1],ct=o.useMemo(function(){var Jr=_o(vn,!1);return Jr.every(function(fn){var Cn=fn.filteredKeys;return Cn===void 0})?Et:Jr},[vn,Et]),Zt=o.useCallback(function(){return Ds(ct)},[ct]),dr=function(fn){var Cn=ct.filter(function(Nn){var Zn=Nn.key;return Zn!==fn.key});Cn.push(fn),yr(Cn),ni(Ds(Cn),Cn)},Lr=function(fn){return Bo(zr,un,fn,ct,dr,li,fi)};return[Lr,ct,Zt]}var en=En;function ur(Xt,zr){return Xt.map(function(un){var vn=c()({},un);return vn.title=Oi(un.title,zr),"children"in vn&&(vn.children=ur(vn.children,zr)),vn})}function on(Xt){var zr=o.useCallback(function(un){return ur(un,Xt)},[Xt]);return[zr]}function Bn(Xt){return function(un){var vn,ni=un.prefixCls,li=un.onExpand,fi=un.record,di=un.expanded,Yt=un.expandable,Et="".concat(ni,"-row-expand-icon");return o.createElement("button",{type:"button",onClick:function(ct){li(fi,ct),ct.stopPropagation()},className:n()(Et,(vn={},A()(vn,"".concat(Et,"-spaced"),!Yt),A()(vn,"".concat(Et,"-expanded"),Yt&&di),A()(vn,"".concat(Et,"-collapsed"),Yt&&!di),vn)),"aria-label":di?Xt.collapse:Xt.expand})}}var Hn=Bn,Ii=d("zAh6"),Ci=d("ZvpZ"),Jn=Ci.a,mi=d("3Nzz");function yi(Xt){return null}var da=yi;function ha(Xt){return null}var Pa=ha,Ra=d("5OYt"),so=[];function La(Xt){var zr,un=Xt.prefixCls,vn=Xt.className,ni=Xt.style,li=Xt.size,fi=Xt.bordered,di=Xt.dropdownPrefixCls,Yt=Xt.dataSource,Et=Xt.pagination,yr=Xt.rowSelection,ct=Xt.rowKey,Zt=Xt.rowClassName,dr=Xt.columns,Lr=Xt.children,Jr=Xt.childrenColumnName,fn=Xt.onChange,Cn=Xt.getPopupContainer,Nn=Xt.loading,Zn=Xt.expandIcon,ii=Xt.expandable,pi=Xt.expandedRowRender,ri=Xt.expandIconColumnIndex,ji=Xt.indentSize,ei=Xt.scroll,Je=Xt.sortDirections,Gt=Xt.locale,vr=Xt.showSorterTooltip,fr=vr===void 0?!0:vr;Object(wr.a)(!(typeof ct=="function"&&ct.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var Gr=Object(Ra.a)(),Pr=o.useMemo(function(){var Pt=new Set(Object.keys(Gr).filter(function(Kr){return Gr[Kr]}));return(dr||In(Lr)).filter(function(Kr){return!Kr.responsive||Kr.responsive.some(function(Pn){return Pt.has(Pn)})})},[Lr,dr,Gr]),hr=Object(e.default)(Xt,["className","style","columns"]),An=o.useContext(mi.b),br=o.useContext(Dr.b),pn=br.locale,Kn=pn===void 0?Jn:pn,Wn=br.renderEmpty,Ln=br.direction,$n=li||An,Un=c()(c()({},Kn.Table),Gt),ti=Yt||so,Gn=o.useContext(Dr.b),wi=Gn.getPrefixCls,Ei=wi("table",un),Zi=wi("dropdown",di),ua=c()({childrenColumnName:Jr,expandIconColumnIndex:ri},ii),Xi=ua.childrenColumnName,Gi=Xi===void 0?"children":Xi,wa=o.useMemo(function(){return ti.some(function(Pt){var Kr;return(Kr=Pt)===null||Kr===void 0?void 0:Kr[Gi]})?"nest":pi||ii&&ii.expandedRowRender?"row":null},[ti]),na={body:o.useRef()},mo=o.useMemo(function(){return typeof ct=="function"?ct:function(Pt){var Kr;return(Kr=Pt)===null||Kr===void 0?void 0:Kr[ct]}},[ct]),Ca=ln(ti,Gi,mo),qi=g()(Ca,1),aa=qi[0],$i={},Aa=function(Kr,Pn){var ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ne=c()(c()({},$i),Kr);ut&&($i.resetPagination(),ne.pagination.current&&(ne.pagination.current=1),Et&&Et.onChange&&Et.onChange(1,ne.pagination.pageSize)),ei&&ei.scrollToFirstRowOnChange!==!1&&na.body.current&&Object(Ii.a)(0,{getContainer:function(){return na.body.current}}),fn&&fn(ne.pagination,ne.filters,ne.sorter,{currentDataSource:rn(oa(ti,ne.sorterStates,Gi),ne.filterStates),action:Pn})},ya=function(Kr,Pn){Aa({sorter:Kr,sorterStates:Pn},"sort",!1)},Ha=Yi({prefixCls:Ei,mergedColumns:Pr,onSorterChange:ya,sortDirections:Je||["ascend","descend"],tableLocale:Un,showSorterTooltip:fr}),ta=g()(Ha,4),ra=ta[0],_a=ta[1],Ka=ta[2],bo=ta[3],ga=o.useMemo(function(){return oa(ti,_a,Gi)},[ti,_a]);$i.sorter=bo(),$i.sorterStates=_a;var go=function(Kr,Pn){Aa({filters:Kr,filterStates:Pn},"filter",!0)},Sa=en({prefixCls:Ei,locale:Un,dropdownPrefixCls:Zi,mergedColumns:Pr,onFilterChange:go,getPopupContainer:Cn}),Va=g()(Sa,3),uo=Va[0],No=Va[1],Po=Va[2],to=rn(ga,No);$i.filters=Po(),$i.filterStates=No;var Uo=o.useMemo(function(){return c()({},Ka)},[Ka]),co=on(Uo),fa=g()(co,1),ro=fa[0],Wa=function(Kr,Pn){Aa({pagination:c()(c()({},$i.pagination),{current:Kr,pageSize:Pn})},"paginate")},Ea=or(to.length,Et,Wa),Qr=g()(Ea,2),za=Qr[0],rs=Qr[1];$i.pagination=Et===!1?{}:$t(Et,za),$i.resetPagination=rs;var Vo=o.useMemo(function(){if(Et===!1||!za.pageSize)return to;var Pt=za.current,Kr=Pt===void 0?1:Pt,Pn=za.total,ut=za.pageSize,ne=ut===void 0?Br:ut;return to.length<Pn?to.length>ne?(Object(wr.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."),to.slice((Kr-1)*ne,Kr*ne)):to:to.slice((Kr-1)*ne,Kr*ne)},[!!Et,to,za&&za.current,za&&za.pageSize,za&&za.total]),Go=Vn(yr,{prefixCls:Ei,data:to,pageData:Vo,getRowKey:mo,getRecordByKey:aa,expandType:wa,childrenColumnName:Gi,locale:Un,expandIconColumnIndex:ua.expandIconColumnIndex,getPopupContainer:Cn}),Qo=g()(Go,2),Yo=Qo[0],vo=Qo[1],Io=function(Kr,Pn,ut){var ne;return typeof Zt=="function"?ne=n()(Zt(Kr,Pn,ut)):ne=n()(Zt),n()(A()({},"".concat(Ei,"-row-selected"),vo.has(mo(Kr,Pn))),ne)};ua.__PARENT_RENDER_ICON__=ua.expandIcon,ua.expandIcon=ua.expandIcon||Zn||Hn(Un),wa==="nest"&&ua.expandIconColumnIndex===void 0?ua.expandIconColumnIndex=yr?1:0:ua.expandIconColumnIndex>0&&yr&&(ua.expandIconColumnIndex-=1),typeof ua.indentSize!="number"&&(ua.indentSize=typeof ji=="number"?ji:15);var zo=o.useCallback(function(Pt){return ro(Yo(uo(ra(Pt))))},[ra,uo,Yo]),Fa,Ja;if(Et!==!1){var ho;za.size?ho=za.size:ho=$n==="small"||$n==="middle"?"small":void 0;var Ao=function(Kr){return o.createElement(Jt.a,c()({className:"".concat(Ei,"-pagination ").concat(Ei,"-pagination-").concat(Kr)},za,{size:ho}))},$o=Ln==="rtl"?"left":"right";if(za.position!==null&&Array.isArray(za.position)){var ps=za.position.find(function(Pt){return Pt.indexOf("top")!==-1}),is=za.position.find(function(Pt){return Pt.indexOf("bottom")!==-1});!ps&&!is?Ja=Ao($o):(ps&&(Fa=Ao(ps.toLowerCase().replace("top",""))),is&&(Ja=Ao(is.toLowerCase().replace("bottom",""))))}else Ja=Ao($o)}var Za;typeof Nn=="boolean"?Za={spinning:Nn}:x()(Nn)==="object"&&(Za=c()({spinning:!0},Nn));var St=n()("".concat(Ei,"-wrapper"),vn,A()({},"".concat(Ei,"-wrapper-rtl"),Ln==="rtl"));return o.createElement("div",{className:St,style:ni},o.createElement(it.a,c()({spinning:!1},Za),Fa,o.createElement(mt,c()({},hr,{columns:Pr,direction:Ln,expandable:ua,prefixCls:Ei,className:n()((zr={},A()(zr,"".concat(Ei,"-middle"),$n==="middle"),A()(zr,"".concat(Ei,"-small"),$n==="small"),A()(zr,"".concat(Ei,"-bordered"),fi),A()(zr,"".concat(Ei,"-empty"),ti.length===0),zr)),data:Vo,rowKey:mo,rowClassName:Io,emptyText:Gt&&Gt.emptyText||Wn("Table"),internalHooks:Fe,internalRefs:na,transformColumns:zo})),to&&to.length>0&&Ja))}La.defaultProps={rowKey:"key"},La.SELECTION_ALL=Vr,La.SELECTION_INVERT=jr,La.Column=da,La.ColumnGroup=Pa,La.Summary=rt;var lo=La,So=F.a=lo},wDdD:function(H,F,d){var O=d("ProS"),x=d("bYtY");d("98bh"),d("GrNh");var C=d("d4KN"),A=d("mOdp"),S=d("KS52"),g=d("0/Rx");C("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),O.registerVisual(A("pie")),O.registerLayout(x.curry(S,"pie")),O.registerProcessor(g("pie"))},wOnQ:function(H,F,d){/*!
|
|
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
|
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
|
* Released under MIT License
|
|
|
*/(function(O,x){H.exports=x()})(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 O=function(he,Se){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(De,et){De.__proto__=et}||function(De,et){for(var qt in et)Object.prototype.hasOwnProperty.call(et,qt)&&(De[qt]=et[qt])},O(he,Se)};function x(sr,he){if(typeof he!="function"&&he!==null)throw new TypeError("Class extends value "+String(he)+" is not a constructor or null");O(sr,he);function Se(){this.constructor=sr}sr.prototype=he===null?Object.create(he):(Se.prototype=he.prototype,new Se)}var C=function(){return C=Object.assign||function(Se){for(var De,et=1,qt=arguments.length;et<qt;et++){De=arguments[et];for(var Fr in De)Object.prototype.hasOwnProperty.call(De,Fr)&&(Se[Fr]=De[Fr])}return Se},C.apply(this,arguments)};function A(sr,he,Se,De){function et(qt){return qt instanceof Se?qt:new Se(function(Fr){Fr(qt)})}return new(Se||(Se=Promise))(function(qt,Fr){function sn(Pi){try{kn(De.next(Pi))}catch(Si){Fr(Si)}}function yn(Pi){try{kn(De.throw(Pi))}catch(Si){Fr(Si)}}function kn(Pi){Pi.done?qt(Pi.value):et(Pi.value).then(sn,yn)}kn((De=De.apply(sr,he||[])).next())})}function S(sr,he){var Se={label:0,sent:function(){if(qt[0]&1)throw qt[1];return qt[1]},trys:[],ops:[]},De,et,qt,Fr;return Fr={next:sn(0),throw:sn(1),return:sn(2)},typeof Symbol=="function"&&(Fr[Symbol.iterator]=function(){return this}),Fr;function sn(kn){return function(Pi){return yn([kn,Pi])}}function yn(kn){if(De)throw new TypeError("Generator is already executing.");for(;Se;)try{if(De=1,et&&(qt=kn[0]&2?et.return:kn[0]?et.throw||((qt=et.return)&&qt.call(et),0):et.next)&&!(qt=qt.call(et,kn[1])).done)return qt;(et=0,qt)&&(kn=[kn[0]&2,qt.value]);switch(kn[0]){case 0:case 1:qt=kn;break;case 4:return Se.label++,{value:kn[1],done:!1};case 5:Se.label++,et=kn[1],kn=[0];continue;case 7:kn=Se.ops.pop(),Se.trys.pop();continue;default:if(!(qt=Se.trys,qt=qt.length>0&&qt[qt.length-1])&&(kn[0]===6||kn[0]===2)){Se=0;continue}if(kn[0]===3&&(!qt||kn[1]>qt[0]&&kn[1]<qt[3])){Se.label=kn[1];break}if(kn[0]===6&&Se.label<qt[1]){Se.label=qt[1],qt=kn;break}if(qt&&Se.label<qt[2]){Se.label=qt[2],Se.ops.push(kn);break}qt[2]&&Se.ops.pop(),Se.trys.pop();continue}kn=he.call(sr,Se)}catch(Pi){kn=[6,Pi],et=0}finally{De=qt=0}if(kn[0]&5)throw kn[1];return{value:kn[0]?kn[1]:void 0,done:!0}}}function g(sr,he,Se){if(Se||arguments.length===2)for(var De=0,et=he.length,qt;De<et;De++)(qt||!(De in he))&&(qt||(qt=Array.prototype.slice.call(he,0,De)),qt[De]=he[De]);return sr.concat(qt||he)}for(var f=function(){function sr(he,Se,De,et){this.left=he,this.top=Se,this.width=De,this.height=et}return sr.prototype.add=function(he,Se,De,et){return new sr(this.left+he,this.top+Se,this.width+De,this.height+et)},sr.fromClientRect=function(he,Se){return new sr(Se.left+he.windowBounds.left,Se.top+he.windowBounds.top,Se.width,Se.height)},sr.fromDOMRectList=function(he,Se){var De=Array.from(Se).find(function(et){return et.width!==0});return De?new sr(De.left+he.windowBounds.left,De.top+he.windowBounds.top,De.width,De.height):sr.EMPTY},sr.EMPTY=new sr(0,0,0,0),sr}(),c=function(he,Se){return f.fromClientRect(he,Se.getBoundingClientRect())},o=function(he){var Se=he.body,De=he.documentElement;if(!Se||!De)throw new Error("Unable to get document size");var et=Math.max(Math.max(Se.scrollWidth,De.scrollWidth),Math.max(Se.offsetWidth,De.offsetWidth),Math.max(Se.clientWidth,De.clientWidth)),qt=Math.max(Math.max(Se.scrollHeight,De.scrollHeight),Math.max(Se.offsetHeight,De.offsetHeight),Math.max(Se.clientHeight,De.clientHeight));return new f(0,0,et,qt)},r=function(he){for(var Se=[],De=0,et=he.length;De<et;){var qt=he.charCodeAt(De++);if(qt>=55296&&qt<=56319&&De<et){var Fr=he.charCodeAt(De++);(Fr&64512)===56320?Se.push(((qt&1023)<<10)+(Fr&1023)+65536):(Se.push(qt),De--)}else Se.push(qt)}return Se},i=function(){for(var he=[],Se=0;Se<arguments.length;Se++)he[Se]=arguments[Se];if(String.fromCodePoint)return String.fromCodePoint.apply(String,he);var De=he.length;if(!De)return"";for(var et=[],qt=-1,Fr="";++qt<De;){var sn=he[qt];sn<=65535?et.push(sn):(sn-=65536,et.push((sn>>10)+55296,sn%1024+56320)),(qt+1===De||et.length>16384)&&(Fr+=String.fromCharCode.apply(String,et),et.length=0)}return Fr},n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),l=0;l<n.length;l++)e[n.charCodeAt(l)]=l;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),s=0;s<t.length;s++)a[t.charCodeAt(s)]=s;for(var u=function(he){var Se=he.length*.75,De=he.length,et,qt=0,Fr,sn,yn,kn;he[he.length-1]==="="&&(Se--,he[he.length-2]==="="&&Se--);var Pi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Se):new Array(Se),Si=Array.isArray(Pi)?Pi:new Uint8Array(Pi);for(et=0;et<De;et+=4)Fr=a[he.charCodeAt(et)],sn=a[he.charCodeAt(et+1)],yn=a[he.charCodeAt(et+2)],kn=a[he.charCodeAt(et+3)],Si[qt++]=Fr<<2|sn>>4,Si[qt++]=(sn&15)<<4|yn>>2,Si[qt++]=(yn&3)<<6|kn&63;return Pi},h=function(he){for(var Se=he.length,De=[],et=0;et<Se;et+=2)De.push(he[et+1]<<8|he[et]);return De},p=function(he){for(var Se=he.length,De=[],et=0;et<Se;et+=4)De.push(he[et+3]<<24|he[et+2]<<16|he[et+1]<<8|he[et]);return De},m=5,v=6+5,y=2,E=v-m,T=65536>>m,b=1<<m,w=b-1,_=1024>>m,I=T+_,L=I,N=2048>>6,D=L+N,R=65536>>v,k=1<<E,M=k-1,U=function(he,Se,De){return he.slice?he.slice(Se,De):new Uint16Array(Array.prototype.slice.call(he,Se,De))},B=function(he,Se,De){return he.slice?he.slice(Se,De):new Uint32Array(Array.prototype.slice.call(he,Se,De))},j=function(he,Se){var De=u(he),et=Array.isArray(De)?p(De):new Uint32Array(De),qt=Array.isArray(De)?h(De):new Uint16Array(De),Fr=24,sn=U(qt,Fr/2,et[4]/2),yn=et[5]===2?U(qt,(Fr+et[4])/2):B(et,Math.ceil((Fr+et[4])/4));return new W(et[0],et[1],et[2],et[3],sn,yn)},W=function(){function sr(he,Se,De,et,qt,Fr){this.initialValue=he,this.errorValue=Se,this.highStart=De,this.highValueIndex=et,this.index=qt,this.data=Fr}return sr.prototype.get=function(he){var Se;if(he>=0){if(he<55296||he>56319&&he<=65535)return Se=this.index[he>>m],Se=(Se<<y)+(he&w),this.data[Se];if(he<=65535)return Se=this.index[T+(he-55296>>m)],Se=(Se<<y)+(he&w),this.data[Se];if(he<this.highStart)return Se=D-R+(he>>v),Se=this.index[Se],Se+=he>>m&M,Se=this.index[Se],Se=(Se<<y)+(he&w),this.data[Se];if(he<=1114111)return this.data[this.highValueIndex]}return this.errorValue},sr}(),V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),J=0;J<V.length;J++)z[V.charCodeAt(J)]=J;var Z="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==",de=50,ie=1,ve=2,xe=3,_e=4,Ue=5,fe=7,ke=8,se=9,te=10,Ve=11,ae=12,Q=13,G=14,Y=15,me=16,ue=17,Ce=18,Ie=19,ce=20,Ae=21,Te=22,Ge=23,gt=24,qe=25,Le=26,Ot=27,$e=28,xt=29,Ht=30,tr=31,Mt=32,Tt=33,Xe=34,oe=35,X=36,Be=37,Ee=38,ee=39,lt=40,Ct=41,dt=42,_t=43,ir=[9001,65288],$r="!",nr="\xD7",lr="\xF7",zt=j(Z),Ut=[Ht,X],st=[ie,ve,xe,Ue],Hr=[te,ke],mn=[Ot,Le],In=st.concat(Hr),Yn=[Ee,ee,lt,Xe,oe],Mi=[Y,Q],wn=function(he,Se){Se===void 0&&(Se="strict");var De=[],et=[],qt=[];return he.forEach(function(Fr,sn){var yn=zt.get(Fr);if(yn>de?(qt.push(!0),yn-=de):qt.push(!1),["normal","auto","loose"].indexOf(Se)!==-1&&[8208,8211,12316,12448].indexOf(Fr)!==-1)return et.push(sn),De.push(me);if(yn===_e||yn===Ve){if(sn===0)return et.push(sn),De.push(Ht);var kn=De[sn-1];return In.indexOf(kn)===-1?(et.push(et[sn-1]),De.push(kn)):(et.push(sn),De.push(Ht))}if(et.push(sn),yn===tr)return De.push(Se==="strict"?Ae:Be);if(yn===dt)return De.push(Ht);if(yn===xt)return De.push(Ht);if(yn===_t)return Fr>=131072&&Fr<=196605||Fr>=196608&&Fr<=262141?De.push(Be):De.push(Ht);De.push(yn)}),[et,De,qt]},Rn=function(he,Se,De,et){var qt=et[De];if(Array.isArray(he)?he.indexOf(qt)!==-1:he===qt)for(var Fr=De;Fr<=et.length;){Fr++;var sn=et[Fr];if(sn===Se)return!0;if(sn!==te)break}if(qt===te)for(var Fr=De;Fr>0;){Fr--;var yn=et[Fr];if(Array.isArray(he)?he.indexOf(yn)!==-1:he===yn)for(var kn=De;kn<=et.length;){kn++;var sn=et[kn];if(sn===Se)return!0;if(sn!==te)break}if(yn!==te)break}return!1},kt=function(he,Se){for(var De=he;De>=0;){var et=Se[De];if(et===te)De--;else return et}return 0},vt=function(he,Se,De,et,qt){if(De[et]===0)return nr;var Fr=et-1;if(Array.isArray(qt)&&qt[Fr]===!0)return nr;var sn=Fr-1,yn=Fr+1,kn=Se[Fr],Pi=sn>=0?Se[sn]:0,Si=Se[yn];if(kn===ve&&Si===xe)return nr;if(st.indexOf(kn)!==-1)return $r;if(st.indexOf(Si)!==-1)return nr;if(Hr.indexOf(Si)!==-1)return nr;if(kt(Fr,Se)===ke)return lr;if(zt.get(he[Fr])===Ve)return nr;if((kn===Mt||kn===Tt)&&zt.get(he[yn])===Ve)return nr;if(kn===fe||Si===fe)return nr;if(kn===se)return nr;if([te,Q,Y].indexOf(kn)===-1&&Si===se)return nr;if([ue,Ce,Ie,gt,$e].indexOf(Si)!==-1)return nr;if(kt(Fr,Se)===Te)return nr;if(Rn(Ge,Te,Fr,Se))return nr;if(Rn([ue,Ce],Ae,Fr,Se))return nr;if(Rn(ae,ae,Fr,Se))return nr;if(kn===te)return lr;if(kn===Ge||Si===Ge)return nr;if(Si===me||kn===me)return lr;if([Q,Y,Ae].indexOf(Si)!==-1||kn===G)return nr;if(Pi===X&&Mi.indexOf(kn)!==-1)return nr;if(kn===$e&&Si===X)return nr;if(Si===ce)return nr;if(Ut.indexOf(Si)!==-1&&kn===qe||Ut.indexOf(kn)!==-1&&Si===qe)return nr;if(kn===Ot&&[Be,Mt,Tt].indexOf(Si)!==-1||[Be,Mt,Tt].indexOf(kn)!==-1&&Si===Le)return nr;if(Ut.indexOf(kn)!==-1&&mn.indexOf(Si)!==-1||mn.indexOf(kn)!==-1&&Ut.indexOf(Si)!==-1)return nr;if([Ot,Le].indexOf(kn)!==-1&&(Si===qe||[Te,Y].indexOf(Si)!==-1&&Se[yn+1]===qe)||[Te,Y].indexOf(kn)!==-1&&Si===qe||kn===qe&&[qe,$e,gt].indexOf(Si)!==-1)return nr;if([qe,$e,gt,ue,Ce].indexOf(Si)!==-1)for(var Fi=Fr;Fi>=0;){var Na=Se[Fi];if(Na===qe)return nr;if([$e,gt].indexOf(Na)!==-1)Fi--;else break}if([Ot,Le].indexOf(Si)!==-1)for(var Fi=[ue,Ce].indexOf(kn)!==-1?sn:Fr;Fi>=0;){var Na=Se[Fi];if(Na===qe)return nr;if([$e,gt].indexOf(Na)!==-1)Fi--;else break}if(Ee===kn&&[Ee,ee,Xe,oe].indexOf(Si)!==-1||[ee,Xe].indexOf(kn)!==-1&&[ee,lt].indexOf(Si)!==-1||[lt,oe].indexOf(kn)!==-1&&Si===lt)return nr;if(Yn.indexOf(kn)!==-1&&[ce,Le].indexOf(Si)!==-1||Yn.indexOf(Si)!==-1&&kn===Ot)return nr;if(Ut.indexOf(kn)!==-1&&Ut.indexOf(Si)!==-1)return nr;if(kn===gt&&Ut.indexOf(Si)!==-1)return nr;if(Ut.concat(qe).indexOf(kn)!==-1&&Si===Te&&ir.indexOf(he[yn])===-1||Ut.concat(qe).indexOf(Si)!==-1&&kn===Ce)return nr;if(kn===Ct&&Si===Ct){for(var ja=De[Fr],no=1;ja>0&&(ja--,Se[ja]===Ct);)no++;if(no%2!==0)return nr}return kn===Mt&&Si===Tt?nr:lr},Re=function(he,Se){Se||(Se={lineBreak:"normal",wordBreak:"normal"});var De=wn(he,Se.lineBreak),et=De[0],qt=De[1],Fr=De[2];(Se.wordBreak==="break-all"||Se.wordBreak==="break-word")&&(qt=qt.map(function(yn){return[qe,Ht,dt].indexOf(yn)!==-1?Be:yn}));var sn=Se.wordBreak==="keep-all"?Fr.map(function(yn,kn){return yn&&he[kn]>=19968&&he[kn]<=40959}):void 0;return[et,qt,sn]},Ke=function(){function sr(he,Se,De,et){this.codePoints=he,this.required=Se===$r,this.start=De,this.end=et}return sr.prototype.slice=function(){return i.apply(void 0,this.codePoints.slice(this.start,this.end))},sr}(),Pe=function(he,Se){var De=r(he),et=Re(De,Se),qt=et[0],Fr=et[1],sn=et[2],yn=De.length,kn=0,Pi=0;return{next:function(){if(Pi>=yn)return{done:!0,value:null};for(var Fi=nr;Pi<yn&&(Fi=vt(De,Fr,qt,++Pi,sn))===nr;);if(Fi!==nr||Pi===yn){var Na=new Ke(De,Fi,kn,Pi);return kn=Pi,{value:Na,done:!1}}return{done:!0,value:null}}}},nt=1<<0,yt=1<<1,Dt=1<<2,bt=1<<3,It=10,gr=47,kr=92,wt=9,rt=32,tt=34,Rt=61,Ft=35,At=36,Wt=37,ot=39,Bt=40,Ar=41,rr=95,pr=45,tn=33,hn=60,Mn=62,Xn=64,si=91,vi=93,xi=61,_i=123,Qe=63,we=125,Ne=124,Fe=126,Ye=128,We=65533,Ze=42,mt=43,it=44,Jt=58,Dr=59,Sr=46,Br=0,$t=8,gn=11,or=14,ln=31,an=127,Rr=-1,On=48,ci=97,Ui=101,ki=102,Di=117,Ki=122,Ur=65,Tn=69,Mr=70,mr=85,Cr=90,Lt=function(he){return he>=On&&he<=57},wr=function(he){return he>=55296&&he<=57343},Vr=function(he){return Lt(he)||he>=Ur&&he<=Mr||he>=ci&&he<=ki},jr=function(he){return he>=ci&&he<=Ki},qr=function(he){return he>=Ur&&he<=Cr},oi=function(he){return jr(he)||qr(he)},Vn=function(he){return he>=Ye},Ti=function(he){return he===It||he===wt||he===rt},dn=function(he){return oi(he)||Vn(he)||he===rr},_r=function(he){return dn(he)||Lt(he)||he===pr},xn=function(he){return he>=Br&&he<=$t||he===gn||he>=or&&he<=ln||he===an},Fn=function(he,Se){return he!==kr?!1:Se!==It},zn=function(he,Se,De){return he===pr?dn(Se)||Fn(Se,De):dn(he)?!0:!!(he===kr&&Fn(he,Se))},qn=function(he,Se,De){return he===mt||he===pr?Lt(Se)?!0:Se===Sr&&Lt(De):he===Sr?Lt(Se):Lt(he)},Oi=function(he){var Se=0,De=1;(he[Se]===mt||he[Se]===pr)&&(he[Se]===pr&&(De=-1),Se++);for(var et=[];Lt(he[Se]);)et.push(he[Se++]);var qt=et.length?parseInt(i.apply(void 0,et),10):0;he[Se]===Sr&&Se++;for(var Fr=[];Lt(he[Se]);)Fr.push(he[Se++]);var sn=Fr.length,yn=sn?parseInt(i.apply(void 0,Fr),10):0;(he[Se]===Tn||he[Se]===Ui)&&Se++;var kn=1;(he[Se]===mt||he[Se]===pr)&&(he[Se]===pr&&(kn=-1),Se++);for(var Pi=[];Lt(he[Se]);)Pi.push(he[Se++]);var Si=Pi.length?parseInt(i.apply(void 0,Pi),10):0;return De*(qt+yn*Math.pow(10,-sn))*Math.pow(10,kn*Si)},Li={type:2},Ri={type:3},Ji={type:4},ma={type:13},la={type:8},qa={type:21},bi={type:9},Sn={type:10},zi={type:11},oa={type:12},Yi={type:14},ca={type:23},Hi={type:1},Ia={type:25},Da={type:24},Qa={type:26},Wo={type:27},po={type:28},Mo={type:29},Fo={type:31},yo={type:32},Oo=function(){function sr(){this._value=[]}return sr.prototype.write=function(he){this._value=this._value.concat(r(he))},sr.prototype.read=function(){for(var he=[],Se=this.consumeToken();Se!==yo;)he.push(Se),Se=this.consumeToken();return he},sr.prototype.consumeToken=function(){var he=this.consumeCodePoint();switch(he){case tt:return this.consumeStringToken(tt);case Ft:var Se=this.peekCodePoint(0),De=this.peekCodePoint(1),et=this.peekCodePoint(2);if(_r(Se)||Fn(De,et)){var qt=zn(Se,De,et)?yt:nt,Fr=this.consumeName();return{type:5,value:Fr,flags:qt}}break;case At:if(this.peekCodePoint(0)===Rt)return this.consumeCodePoint(),ma;break;case ot:return this.consumeStringToken(ot);case Bt:return Li;case Ar:return Ri;case Ze:if(this.peekCodePoint(0)===Rt)return this.consumeCodePoint(),Yi;break;case mt:if(qn(he,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(he),this.consumeNumericToken();break;case it:return Ji;case pr:var sn=he,yn=this.peekCodePoint(0),kn=this.peekCodePoint(1);if(qn(sn,yn,kn))return this.reconsumeCodePoint(he),this.consumeNumericToken();if(zn(sn,yn,kn))return this.reconsumeCodePoint(he),this.consumeIdentLikeToken();if(yn===pr&&kn===Mn)return this.consumeCodePoint(),this.consumeCodePoint(),Da;break;case Sr:if(qn(he,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(he),this.consumeNumericToken();break;case gr:if(this.peekCodePoint(0)===Ze)for(this.consumeCodePoint();;){var Pi=this.consumeCodePoint();if(Pi===Ze&&(Pi=this.consumeCodePoint(),Pi===gr))return this.consumeToken();if(Pi===Rr)return this.consumeToken()}break;case Jt:return Qa;case Dr:return Wo;case hn:if(this.peekCodePoint(0)===tn&&this.peekCodePoint(1)===pr&&this.peekCodePoint(2)===pr)return this.consumeCodePoint(),this.consumeCodePoint(),Ia;break;case Xn:var Si=this.peekCodePoint(0),Fi=this.peekCodePoint(1),Na=this.peekCodePoint(2);if(zn(Si,Fi,Na)){var Fr=this.consumeName();return{type:7,value:Fr}}break;case si:return po;case kr:if(Fn(he,this.peekCodePoint(0)))return this.reconsumeCodePoint(he),this.consumeIdentLikeToken();break;case vi:return Mo;case xi:if(this.peekCodePoint(0)===Rt)return this.consumeCodePoint(),la;break;case _i:return zi;case we:return oa;case Di:case mr:var ja=this.peekCodePoint(0),no=this.peekCodePoint(1);return ja===mt&&(Vr(no)||no===Qe)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(he),this.consumeIdentLikeToken();case Ne:if(this.peekCodePoint(0)===Rt)return this.consumeCodePoint(),bi;if(this.peekCodePoint(0)===Ne)return this.consumeCodePoint(),qa;break;case Fe:if(this.peekCodePoint(0)===Rt)return this.consumeCodePoint(),Sn;break;case Rr:return yo}return Ti(he)?(this.consumeWhiteSpace(),Fo):Lt(he)?(this.reconsumeCodePoint(he),this.consumeNumericToken()):dn(he)?(this.reconsumeCodePoint(he),this.consumeIdentLikeToken()):{type:6,value:i(he)}},sr.prototype.consumeCodePoint=function(){var he=this._value.shift();return typeof he=="undefined"?-1:he},sr.prototype.reconsumeCodePoint=function(he){this._value.unshift(he)},sr.prototype.peekCodePoint=function(he){return he>=this._value.length?-1:this._value[he]},sr.prototype.consumeUnicodeRangeToken=function(){for(var he=[],Se=this.consumeCodePoint();Vr(Se)&&he.length<6;)he.push(Se),Se=this.consumeCodePoint();for(var De=!1;Se===Qe&&he.length<6;)he.push(Se),Se=this.consumeCodePoint(),De=!0;if(De){var et=parseInt(i.apply(void 0,he.map(function(yn){return yn===Qe?On:yn})),16),qt=parseInt(i.apply(void 0,he.map(function(yn){return yn===Qe?Mr:yn})),16);return{type:30,start:et,end:qt}}var Fr=parseInt(i.apply(void 0,he),16);if(this.peekCodePoint(0)===pr&&Vr(this.peekCodePoint(1))){this.consumeCodePoint(),Se=this.consumeCodePoint();for(var sn=[];Vr(Se)&&sn.length<6;)sn.push(Se),Se=this.consumeCodePoint();var qt=parseInt(i.apply(void 0,sn),16);return{type:30,start:Fr,end:qt}}else return{type:30,start:Fr,end:Fr}},sr.prototype.consumeIdentLikeToken=function(){var he=this.consumeName();return he.toLowerCase()==="url"&&this.peekCodePoint(0)===Bt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Bt?(this.consumeCodePoint(),{type:19,value:he}):{type:20,value:he}},sr.prototype.consumeUrlToken=function(){var he=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Rr)return{type:22,value:""};var Se=this.peekCodePoint(0);if(Se===ot||Se===tt){var De=this.consumeStringToken(this.consumeCodePoint());return De.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Rr||this.peekCodePoint(0)===Ar)?(this.consumeCodePoint(),{type:22,value:De.value}):(this.consumeBadUrlRemnants(),ca)}for(;;){var et=this.consumeCodePoint();if(et===Rr||et===Ar)return{type:22,value:i.apply(void 0,he)};if(Ti(et))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Rr||this.peekCodePoint(0)===Ar?(this.consumeCodePoint(),{type:22,value:i.apply(void 0,he)}):(this.consumeBadUrlRemnants(),ca);if(et===tt||et===ot||et===Bt||xn(et))return this.consumeBadUrlRemnants(),ca;if(et===kr)if(Fn(et,this.peekCodePoint(0)))he.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ca;else he.push(et)}},sr.prototype.consumeWhiteSpace=function(){for(;Ti(this.peekCodePoint(0));)this.consumeCodePoint()},sr.prototype.consumeBadUrlRemnants=function(){for(;;){var he=this.consumeCodePoint();if(he===Ar||he===Rr)return;Fn(he,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},sr.prototype.consumeStringSlice=function(he){for(var Se=5e4,De="";he>0;){var et=Math.min(Se,he);De+=i.apply(void 0,this._value.splice(0,et)),he-=et}return this._value.shift(),De},sr.prototype.consumeStringToken=function(he){var Se="",De=0;do{var et=this._value[De];if(et===Rr||et===void 0||et===he)return Se+=this.consumeStringSlice(De),{type:0,value:Se};if(et===It)return this._value.splice(0,De),Hi;if(et===kr){var qt=this._value[De+1];qt!==Rr&&qt!==void 0&&(qt===It?(Se+=this.consumeStringSlice(De),De=-1,this._value.shift()):Fn(et,qt)&&(Se+=this.consumeStringSlice(De),Se+=i(this.consumeEscapedCodePoint()),De=-1))}De++}while(!0)},sr.prototype.consumeNumber=function(){var he=[],Se=Dt,De=this.peekCodePoint(0);for((De===mt||De===pr)&&he.push(this.consumeCodePoint());Lt(this.peekCodePoint(0));)he.push(this.consumeCodePoint());De=this.peekCodePoint(0);var et=this.peekCodePoint(1);if(De===Sr&&Lt(et))for(he.push(this.consumeCodePoint(),this.consumeCodePoint()),Se=bt;Lt(this.peekCodePoint(0));)he.push(this.consumeCodePoint());De=this.peekCodePoint(0),et=this.peekCodePoint(1);var qt=this.peekCodePoint(2);if((De===Tn||De===Ui)&&((et===mt||et===pr)&&Lt(qt)||Lt(et)))for(he.push(this.consumeCodePoint(),this.consumeCodePoint()),Se=bt;Lt(this.peekCodePoint(0));)he.push(this.consumeCodePoint());return[Oi(he),Se]},sr.prototype.consumeNumericToken=function(){var he=this.consumeNumber(),Se=he[0],De=he[1],et=this.peekCodePoint(0),qt=this.peekCodePoint(1),Fr=this.peekCodePoint(2);if(zn(et,qt,Fr)){var sn=this.consumeName();return{type:15,number:Se,flags:De,unit:sn}}return et===Wt?(this.consumeCodePoint(),{type:16,number:Se,flags:De}):{type:17,number:Se,flags:De}},sr.prototype.consumeEscapedCodePoint=function(){var he=this.consumeCodePoint();if(Vr(he)){for(var Se=i(he);Vr(this.peekCodePoint(0))&&Se.length<6;)Se+=i(this.consumeCodePoint());Ti(this.peekCodePoint(0))&&this.consumeCodePoint();var De=parseInt(Se,16);return De===0||wr(De)||De>1114111?We:De}return he===Rr?We:he},sr.prototype.consumeName=function(){for(var he="";;){var Se=this.consumeCodePoint();if(_r(Se))he+=i(Se);else if(Fn(Se,this.peekCodePoint(0)))he+=i(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(Se),he}},sr}(),sa=function(){function sr(he){this._tokens=he}return sr.create=function(he){var Se=new Oo;return Se.write(he),new sr(Se.read())},sr.parseValue=function(he){return sr.create(he).parseComponentValue()},sr.parseValues=function(he){return sr.create(he).parseComponentValues()},sr.prototype.parseComponentValue=function(){for(var he=this.consumeToken();he.type===31;)he=this.consumeToken();if(he.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(he);var Se=this.consumeComponentValue();do he=this.consumeToken();while(he.type===31);if(he.type===32)return Se;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},sr.prototype.parseComponentValues=function(){for(var he=[];;){var Se=this.consumeComponentValue();if(Se.type===32)return he;he.push(Se),he.push()}},sr.prototype.consumeComponentValue=function(){var he=this.consumeToken();switch(he.type){case 11:case 28:case 2:return this.consumeSimpleBlock(he.type);case 19:return this.consumeFunction(he)}return he},sr.prototype.consumeSimpleBlock=function(he){for(var Se={type:he,values:[]},De=this.consumeToken();;){if(De.type===32||En(De,he))return Se;this.reconsumeToken(De),Se.values.push(this.consumeComponentValue()),De=this.consumeToken()}},sr.prototype.consumeFunction=function(he){for(var Se={name:he.value,values:[],type:18};;){var De=this.consumeToken();if(De.type===32||De.type===3)return Se;this.reconsumeToken(De),Se.values.push(this.consumeComponentValue())}},sr.prototype.consumeToken=function(){var he=this._tokens.shift();return typeof he=="undefined"?yo:he},sr.prototype.reconsumeToken=function(he){this._tokens.unshift(he)},sr}(),hs=function(he){return he.type===15},Jo=function(he){return he.type===17},wo=function(he){return he.type===20},_o=function(he){return he.type===0},Bo=function(he,Se){return wo(he)&&he.value===Se},Ds=function(he){return he.type!==31},Nr=function(he){return he.type!==31&&he.type!==4},rn=function(he){var Se=[],De=[];return he.forEach(function(et){if(et.type===4){if(De.length===0)throw new Error("Error parsing function args, zero tokens for arg");Se.push(De),De=[];return}et.type!==31&&De.push(et)}),De.length&&Se.push(De),Se},En=function(he,Se){return Se===11&&he.type===12||Se===28&&he.type===29?!0:Se===2&&he.type===3},en=function(he){return he.type===17||he.type===15},ur=function(he){return he.type===16||en(he)},on=function(he){return he.length>1?[he[0],he[1]]:[he[0]]},Bn={type:17,number:0,flags:Dt},Hn={type:16,number:50,flags:Dt},Ii={type:16,number:100,flags:Dt},Ci=function(he,Se,De){var et=he[0],qt=he[1];return[Jn(et,Se),Jn(typeof qt!="undefined"?qt:et,De)]},Jn=function(he,Se){if(he.type===16)return he.number/100*Se;if(hs(he))switch(he.unit){case"rem":case"em":return 16*he.number;case"px":default:return he.number}return he.number},mi="deg",yi="grad",da="rad",ha="turn",Pa={name:"angle",parse:function(he,Se){if(Se.type===15)switch(Se.unit){case mi:return Math.PI*Se.number/180;case yi:return Math.PI/200*Se.number;case da:return Se.number;case ha:return Math.PI*2*Se.number}throw new Error("Unsupported angle type")}},Ra=function(he){return he.type===15&&(he.unit===mi||he.unit===yi||he.unit===da||he.unit===ha)},so=function(he){var Se=he.filter(wo).map(function(De){return De.value}).join(" ");switch(Se){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Bn,Bn];case"to top":case"bottom":return La(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Bn,Ii];case"to right":case"left":return La(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ii,Ii];case"to bottom":case"top":return La(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ii,Bn];case"to left":case"right":return La(270)}return 0},La=function(he){return Math.PI*he/180},lo={name:"color",parse:function(he,Se){if(Se.type===18){var De=fi[Se.name];if(typeof De=="undefined")throw new Error('Attempting to parse an unsupported color function "'+Se.name+'"');return De(he,Se.values)}if(Se.type===5){if(Se.value.length===3){var et=Se.value.substring(0,1),qt=Se.value.substring(1,2),Fr=Se.value.substring(2,3);return zr(parseInt(et+et,16),parseInt(qt+qt,16),parseInt(Fr+Fr,16),1)}if(Se.value.length===4){var et=Se.value.substring(0,1),qt=Se.value.substring(1,2),Fr=Se.value.substring(2,3),sn=Se.value.substring(3,4);return zr(parseInt(et+et,16),parseInt(qt+qt,16),parseInt(Fr+Fr,16),parseInt(sn+sn,16)/255)}if(Se.value.length===6){var et=Se.value.substring(0,2),qt=Se.value.substring(2,4),Fr=Se.value.substring(4,6);return zr(parseInt(et,16),parseInt(qt,16),parseInt(Fr,16),1)}if(Se.value.length===8){var et=Se.value.substring(0,2),qt=Se.value.substring(2,4),Fr=Se.value.substring(4,6),sn=Se.value.substring(6,8);return zr(parseInt(et,16),parseInt(qt,16),parseInt(Fr,16),parseInt(sn,16)/255)}}if(Se.type===20){var yn=Yt[Se.value.toUpperCase()];if(typeof yn!="undefined")return yn}return Yt.TRANSPARENT}},So=function(he){return(255&he)===0},Xt=function(he){var Se=255&he,De=255&he>>8,et=255&he>>16,qt=255&he>>24;return Se<255?"rgba("+qt+","+et+","+De+","+Se/255+")":"rgb("+qt+","+et+","+De+")"},zr=function(he,Se,De,et){return(he<<24|Se<<16|De<<8|Math.round(et*255)<<0)>>>0},un=function(he,Se){if(he.type===17)return he.number;if(he.type===16){var De=Se===3?1:255;return Se===3?he.number/100*De:Math.round(he.number/100*De)}return 0},vn=function(he,Se){var De=Se.filter(Nr);if(De.length===3){var et=De.map(un),qt=et[0],Fr=et[1],sn=et[2];return zr(qt,Fr,sn,1)}if(De.length===4){var yn=De.map(un),qt=yn[0],Fr=yn[1],sn=yn[2],kn=yn[3];return zr(qt,Fr,sn,kn)}return 0};function ni(sr,he,Se){return Se<0&&(Se+=1),Se>=1&&(Se-=1),Se<1/6?(he-sr)*Se*6+sr:Se<1/2?he:Se<2/3?(he-sr)*6*(2/3-Se)+sr:sr}var li=function(he,Se){var De=Se.filter(Nr),et=De[0],qt=De[1],Fr=De[2],sn=De[3],yn=(et.type===17?La(et.number):Pa.parse(he,et))/(Math.PI*2),kn=ur(qt)?qt.number/100:0,Pi=ur(Fr)?Fr.number/100:0,Si=typeof sn!="undefined"&&ur(sn)?Jn(sn,1):1;if(kn===0)return zr(Pi*255,Pi*255,Pi*255,1);var Fi=Pi<=.5?Pi*(kn+1):Pi+kn-Pi*kn,Na=Pi*2-Fi,ja=ni(Na,Fi,yn+1/3),no=ni(Na,Fi,yn),Xo=ni(Na,Fi,yn-1/3);return zr(ja*255,no*255,Xo*255,Si)},fi={hsl:li,hsla:li,rgb:vn,rgba:vn},di=function(he,Se){return lo.parse(he,sa.create(Se).parseComponentValue())},Yt={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},Et={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(he,Se){return Se.map(function(De){if(wo(De))switch(De.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},yr={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ct=function(he,Se){var De=lo.parse(he,Se[0]),et=Se[1];return et&&ur(et)?{color:De,stop:et}:{color:De,stop:null}},Zt=function(he,Se){var De=he[0],et=he[he.length-1];De.stop===null&&(De.stop=Bn),et.stop===null&&(et.stop=Ii);for(var qt=[],Fr=0,sn=0;sn<he.length;sn++){var yn=he[sn].stop;if(yn!==null){var kn=Jn(yn,Se);kn>Fr?qt.push(kn):qt.push(Fr),Fr=kn}else qt.push(null)}for(var Pi=null,sn=0;sn<qt.length;sn++){var Si=qt[sn];if(Si===null)Pi===null&&(Pi=sn);else if(Pi!==null){for(var Fi=sn-Pi,Na=qt[Pi-1],ja=(Si-Na)/(Fi+1),no=1;no<=Fi;no++)qt[Pi+no-1]=ja*no;Pi=null}}return he.map(function(Xo,Lo){var Co=Xo.color;return{color:Co,stop:Math.max(Math.min(1,qt[Lo]/Se),0)}})},dr=function(he,Se,De){var et=Se/2,qt=De/2,Fr=Jn(he[0],Se)-et,sn=qt-Jn(he[1],De);return(Math.atan2(sn,Fr)+Math.PI*2)%(Math.PI*2)},Lr=function(he,Se,De){var et=typeof he=="number"?he:dr(he,Se,De),qt=Math.abs(Se*Math.sin(et))+Math.abs(De*Math.cos(et)),Fr=Se/2,sn=De/2,yn=qt/2,kn=Math.sin(et-Math.PI/2)*yn,Pi=Math.cos(et-Math.PI/2)*yn;return[qt,Fr-Pi,Fr+Pi,sn-kn,sn+kn]},Jr=function(he,Se){return Math.sqrt(he*he+Se*Se)},fn=function(he,Se,De,et,qt){var Fr=[[0,0],[0,Se],[he,0],[he,Se]];return Fr.reduce(function(sn,yn){var kn=yn[0],Pi=yn[1],Si=Jr(De-kn,et-Pi);return(qt?Si<sn.optimumDistance:Si>sn.optimumDistance)?{optimumCorner:yn,optimumDistance:Si}:sn},{optimumDistance:qt?Infinity:-Infinity,optimumCorner:null}).optimumCorner},Cn=function(he,Se,De,et,qt){var Fr=0,sn=0;switch(he.size){case 0:he.shape===0?Fr=sn=Math.min(Math.abs(Se),Math.abs(Se-et),Math.abs(De),Math.abs(De-qt)):he.shape===1&&(Fr=Math.min(Math.abs(Se),Math.abs(Se-et)),sn=Math.min(Math.abs(De),Math.abs(De-qt)));break;case 2:if(he.shape===0)Fr=sn=Math.min(Jr(Se,De),Jr(Se,De-qt),Jr(Se-et,De),Jr(Se-et,De-qt));else if(he.shape===1){var yn=Math.min(Math.abs(De),Math.abs(De-qt))/Math.min(Math.abs(Se),Math.abs(Se-et)),kn=fn(et,qt,Se,De,!0),Pi=kn[0],Si=kn[1];Fr=Jr(Pi-Se,(Si-De)/yn),sn=yn*Fr}break;case 1:he.shape===0?Fr=sn=Math.max(Math.abs(Se),Math.abs(Se-et),Math.abs(De),Math.abs(De-qt)):he.shape===1&&(Fr=Math.max(Math.abs(Se),Math.abs(Se-et)),sn=Math.max(Math.abs(De),Math.abs(De-qt)));break;case 3:if(he.shape===0)Fr=sn=Math.max(Jr(Se,De),Jr(Se,De-qt),Jr(Se-et,De),Jr(Se-et,De-qt));else if(he.shape===1){var yn=Math.max(Math.abs(De),Math.abs(De-qt))/Math.max(Math.abs(Se),Math.abs(Se-et)),Fi=fn(et,qt,Se,De,!1),Pi=Fi[0],Si=Fi[1];Fr=Jr(Pi-Se,(Si-De)/yn),sn=yn*Fr}break}return Array.isArray(he.size)&&(Fr=Jn(he.size[0],et),sn=he.size.length===2?Jn(he.size[1],qt):Fr),[Fr,sn]},Nn=function(he,Se){var De=La(180),et=[];return rn(Se).forEach(function(qt,Fr){if(Fr===0){var sn=qt[0];if(sn.type===20&&sn.value==="to"){De=so(qt);return}else if(Ra(sn)){De=Pa.parse(he,sn);return}}var yn=ct(he,qt);et.push(yn)}),{angle:De,stops:et,type:1}},Zn=function(he,Se){var De=La(180),et=[];return rn(Se).forEach(function(qt,Fr){if(Fr===0){var sn=qt[0];if(sn.type===20&&["top","left","right","bottom"].indexOf(sn.value)!==-1){De=so(qt);return}else if(Ra(sn)){De=(Pa.parse(he,sn)+La(270))%La(360);return}}var yn=ct(he,qt);et.push(yn)}),{angle:De,stops:et,type:1}},ii=function(he,Se){var De=La(180),et=[],qt=1,Fr=0,sn=3,yn=[];return rn(Se).forEach(function(kn,Pi){var Si=kn[0];if(Pi===0){if(wo(Si)&&Si.value==="linear"){qt=1;return}else if(wo(Si)&&Si.value==="radial"){qt=2;return}}if(Si.type===18){if(Si.name==="from"){var Fi=lo.parse(he,Si.values[0]);et.push({stop:Bn,color:Fi})}else if(Si.name==="to"){var Fi=lo.parse(he,Si.values[0]);et.push({stop:Ii,color:Fi})}else if(Si.name==="color-stop"){var Na=Si.values.filter(Nr);if(Na.length===2){var Fi=lo.parse(he,Na[1]),ja=Na[0];Jo(ja)&&et.push({stop:{type:16,number:ja.number*100,flags:ja.flags},color:Fi})}}}}),qt===1?{angle:(De+La(180))%La(360),stops:et,type:qt}:{size:sn,shape:Fr,stops:et,position:yn,type:qt}},pi="closest-side",ri="farthest-side",ji="closest-corner",ei="farthest-corner",Je="circle",Gt="ellipse",vr="cover",fr="contain",Gr=function(he,Se){var De=0,et=3,qt=[],Fr=[];return rn(Se).forEach(function(sn,yn){var kn=!0;if(yn===0){var Pi=!1;kn=sn.reduce(function(Fi,Na){if(Pi)if(wo(Na))switch(Na.value){case"center":return Fr.push(Hn),Fi;case"top":case"left":return Fr.push(Bn),Fi;case"right":case"bottom":return Fr.push(Ii),Fi}else(ur(Na)||en(Na))&&Fr.push(Na);else if(wo(Na))switch(Na.value){case Je:return De=0,!1;case Gt:return De=1,!1;case"at":return Pi=!0,!1;case pi:return et=0,!1;case vr:case ri:return et=1,!1;case fr:case ji:return et=2,!1;case ei:return et=3,!1}else if(en(Na)||ur(Na))return Array.isArray(et)||(et=[]),et.push(Na),!1;return Fi},kn)}if(kn){var Si=ct(he,sn);qt.push(Si)}}),{size:et,shape:De,stops:qt,position:Fr,type:2}},Pr=function(he,Se){var De=0,et=3,qt=[],Fr=[];return rn(Se).forEach(function(sn,yn){var kn=!0;if(yn===0?kn=sn.reduce(function(Si,Fi){if(wo(Fi))switch(Fi.value){case"center":return Fr.push(Hn),!1;case"top":case"left":return Fr.push(Bn),!1;case"right":case"bottom":return Fr.push(Ii),!1}else if(ur(Fi)||en(Fi))return Fr.push(Fi),!1;return Si},kn):yn===1&&(kn=sn.reduce(function(Si,Fi){if(wo(Fi))switch(Fi.value){case Je:return De=0,!1;case Gt:return De=1,!1;case fr:case pi:return et=0,!1;case ri:return et=1,!1;case ji:return et=2,!1;case vr:case ei:return et=3,!1}else if(en(Fi)||ur(Fi))return Array.isArray(et)||(et=[]),et.push(Fi),!1;return Si},kn)),kn){var Pi=ct(he,sn);qt.push(Pi)}}),{size:et,shape:De,stops:qt,position:Fr,type:2}},hr=function(he){return he.type===1},An=function(he){return he.type===2},br={name:"image",parse:function(he,Se){if(Se.type===22){var De={url:Se.value,type:0};return he.cache.addImage(Se.value),De}if(Se.type===18){var et=Kn[Se.name];if(typeof et=="undefined")throw new Error('Attempting to parse an unsupported image function "'+Se.name+'"');return et(he,Se.values)}throw new Error("Unsupported image type "+Se.type)}};function pn(sr){return!(sr.type===20&&sr.value==="none")&&(sr.type!==18||!!Kn[sr.name])}var Kn={"linear-gradient":Nn,"-moz-linear-gradient":Zn,"-ms-linear-gradient":Zn,"-o-linear-gradient":Zn,"-webkit-linear-gradient":Zn,"radial-gradient":Gr,"-moz-radial-gradient":Pr,"-ms-radial-gradient":Pr,"-o-radial-gradient":Pr,"-webkit-radial-gradient":Pr,"-webkit-gradient":ii},Wn={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(he,Se){if(Se.length===0)return[];var De=Se[0];return De.type===20&&De.value==="none"?[]:Se.filter(function(et){return Nr(et)&&pn(et)}).map(function(et){return br.parse(he,et)})}},Ln={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(he,Se){return Se.map(function(De){if(wo(De))switch(De.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},$n={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(he,Se){return rn(Se).map(function(De){return De.filter(ur)}).map(on)}},Un={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(he,Se){return rn(Se).map(function(De){return De.filter(wo).map(function(et){return et.value}).join(" ")}).map(ti)}},ti=function(he){switch(he){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}},Gn;(function(sr){sr.AUTO="auto",sr.CONTAIN="contain",sr.COVER="cover"})(Gn||(Gn={}));var wi={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(he,Se){return rn(Se).map(function(De){return De.filter(Ei)})}},Ei=function(he){return wo(he)||ur(he)},Zi=function(he){return{name:"border-"+he+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},ua=Zi("top"),Xi=Zi("right"),Gi=Zi("bottom"),wa=Zi("left"),na=function(he){return{name:"border-radius-"+he,initialValue:"0 0",prefix:!1,type:1,parse:function(De,et){return on(et.filter(ur))}}},mo=na("top-left"),Ca=na("top-right"),qi=na("bottom-right"),aa=na("bottom-left"),$i=function(he){return{name:"border-"+he+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(De,et){switch(et){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Aa=$i("top"),ya=$i("right"),Ha=$i("bottom"),ta=$i("left"),ra=function(he){return{name:"border-"+he+"-width",initialValue:"0",type:0,prefix:!1,parse:function(De,et){return hs(et)?et.number:0}}},_a=ra("top"),Ka=ra("right"),bo=ra("bottom"),ga=ra("left"),go={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Sa={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(he,Se){switch(Se){case"rtl":return 1;case"ltr":default:return 0}}},Va={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(he,Se){return Se.filter(wo).reduce(function(De,et){return De|uo(et.value)},0)}},uo=function(he){switch(he){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},No={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(he,Se){switch(Se){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Po={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(he,Se){return Se.type===20&&Se.value==="normal"?0:Se.type===17||Se.type===15?Se.number:0}},to;(function(sr){sr.NORMAL="normal",sr.STRICT="strict"})(to||(to={}));var Uo={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(he,Se){switch(Se){case"strict":return to.STRICT;case"normal":default:return to.NORMAL}}},co={name:"line-height",initialValue:"normal",prefix:!1,type:4},fa=function(he,Se){return wo(he)&&he.value==="normal"?1.2*Se:he.type===17?Se*he.number:ur(he)?Jn(he,Se):Se},ro={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(he,Se){return Se.type===20&&Se.value==="none"?null:br.parse(he,Se)}},Wa={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(he,Se){switch(Se){case"inside":return 0;case"outside":default:return 1}}},Ea={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(he,Se){switch(Se){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}}},Qr=function(he){return{name:"margin-"+he,initialValue:"0",prefix:!1,type:4}},za=Qr("top"),rs=Qr("right"),Vo=Qr("bottom"),Go=Qr("left"),Qo={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(he,Se){return Se.filter(wo).map(function(De){switch(De.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Yo={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(he,Se){switch(Se){case"break-word":return"break-word";case"normal":default:return"normal"}}},vo=function(he){return{name:"padding-"+he,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Io=vo("top"),zo=vo("right"),Fa=vo("bottom"),Ja=vo("left"),ho={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(he,Se){switch(Se){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Ao={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(he,Se){switch(Se){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},$o={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(he,Se){return Se.length===1&&Bo(Se[0],"none")?[]:rn(Se).map(function(De){for(var et={color:Yt.TRANSPARENT,offsetX:Bn,offsetY:Bn,blur:Bn},qt=0,Fr=0;Fr<De.length;Fr++){var sn=De[Fr];en(sn)?(qt===0?et.offsetX=sn:qt===1?et.offsetY=sn:et.blur=sn,qt++):et.color=lo.parse(he,sn)}return et})}},ps={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(he,Se){switch(Se){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},is={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(he,Se){if(Se.type===20&&Se.value==="none")return null;if(Se.type===18){var De=Pt[Se.name];if(typeof De=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+Se.name+'"');return De(Se.values)}return null}},Za=function(he){var Se=he.filter(function(De){return De.type===17}).map(function(De){return De.number});return Se.length===6?Se:null},St=function(he){var Se=he.filter(function(kn){return kn.type===17}).map(function(kn){return kn.number}),De=Se[0],et=Se[1];Se[2],Se[3];var qt=Se[4],Fr=Se[5];Se[6],Se[7],Se[8],Se[9],Se[10],Se[11];var sn=Se[12],yn=Se[13];return Se[14],Se[15],Se.length===16?[De,et,qt,Fr,sn,yn]:null},Pt={matrix:Za,matrix3d:St},Kr={type:16,number:50,flags:Dt},Pn=[Kr,Kr],ut={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(he,Se){var De=Se.filter(ur);return De.length!==2?Pn:[De[0],De[1]]}},ne={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(he,Se){switch(Se){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},pe;(function(sr){sr.NORMAL="normal",sr.BREAK_ALL="break-all",sr.KEEP_ALL="keep-all"})(pe||(pe={}));for(var be={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(he,Se){switch(Se){case"break-all":return pe.BREAK_ALL;case"keep-all":return pe.KEEP_ALL;case"normal":default:return pe.NORMAL}}},je={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(he,Se){if(Se.type===20)return{auto:!0,order:0};if(Jo(Se))return{auto:!1,order:Se.number};throw new Error("Invalid z-index number parsed")}},ht={name:"time",parse:function(he,Se){if(Se.type===15)switch(Se.unit.toLowerCase()){case"s":return 1e3*Se.number;case"ms":return Se.number}throw new Error("Unsupported time type")}},Vt={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(he,Se){return Jo(Se)?Se.number:1}},Or={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Yr={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(he,Se){return Se.filter(wo).map(function(De){switch(De.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(De){return De!==0})}},cn={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(he,Se){var De=[],et=[];return Se.forEach(function(qt){switch(qt.type){case 20:case 0:De.push(qt.value);break;case 17:De.push(qt.number.toString());break;case 4:et.push(De.join(" ")),De.length=0;break}}),De.length&&et.push(De.join(" ")),et.map(function(qt){return qt.indexOf(" ")===-1?qt:"'"+qt+"'"})}},jn={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ai={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(he,Se){if(Jo(Se))return Se.number;if(wo(Se))switch(Se.value){case"bold":return 700;case"normal":default:return 400}return 400}},Qn={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(he,Se){return Se.filter(wo).map(function(De){return De.value})}},Ni={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(he,Se){switch(Se){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Vi=function(he,Se){return(he&Se)!==0},Ta={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(he,Se){if(Se.length===0)return[];var De=Se[0];return De.type===20&&De.value==="none"?[]:Se}},Ga={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(he,Se){if(Se.length===0)return null;var De=Se[0];if(De.type===20&&De.value==="none")return null;for(var et=[],qt=Se.filter(Ds),Fr=0;Fr<qt.length;Fr++){var sn=qt[Fr],yn=qt[Fr+1];if(sn.type===20){var kn=yn&&Jo(yn)?yn.number:1;et.push({counter:sn.value,increment:kn})}}return et}},ao={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(he,Se){if(Se.length===0)return[];for(var De=[],et=Se.filter(Ds),qt=0;qt<et.length;qt++){var Fr=et[qt],sn=et[qt+1];if(wo(Fr)&&Fr.value!=="none"){var yn=sn&&Jo(sn)?sn.number:0;De.push({counter:Fr.value,reset:yn})}}return De}},Do={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(he,Se){return Se.filter(hs).map(function(De){return ht.parse(he,De)})}},fo={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(he,Se){if(Se.length===0)return null;var De=Se[0];if(De.type===20&&De.value==="none")return null;var et=[],qt=Se.filter(_o);if(qt.length%2!==0)return null;for(var Fr=0;Fr<qt.length;Fr+=2){var sn=qt[Fr].value,yn=qt[Fr+1].value;et.push({open:sn,close:yn})}return et}},as=function(he,Se,De){if(!he)return"";var et=he[Math.min(Se,he.length-1)];return et?De?et.open:et.close:""},io={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(he,Se){return Se.length===1&&Bo(Se[0],"none")?[]:rn(Se).map(function(De){for(var et={color:255,offsetX:Bn,offsetY:Bn,blur:Bn,spread:Bn,inset:!1},qt=0,Fr=0;Fr<De.length;Fr++){var sn=De[Fr];Bo(sn,"inset")?et.inset=!0:en(sn)?(qt===0?et.offsetX=sn:qt===1?et.offsetY=sn:qt===2?et.blur=sn:et.spread=sn,qt++):et.color=lo.parse(he,sn)}return et})}},Xa={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(he,Se){var De=[0,1,2],et=[];return Se.filter(wo).forEach(function(qt){switch(qt.value){case"stroke":et.push(1);break;case"fill":et.push(0);break;case"markers":et.push(2);break}}),De.forEach(function(qt){et.indexOf(qt)===-1&&et.push(qt)}),et}},Ya={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},ka={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(he,Se){return hs(Se)?Se.number:0}},os=function(){function sr(he,Se){var De,et;this.animationDuration=pa(he,Do,Se.animationDuration),this.backgroundClip=pa(he,Et,Se.backgroundClip),this.backgroundColor=pa(he,yr,Se.backgroundColor),this.backgroundImage=pa(he,Wn,Se.backgroundImage),this.backgroundOrigin=pa(he,Ln,Se.backgroundOrigin),this.backgroundPosition=pa(he,$n,Se.backgroundPosition),this.backgroundRepeat=pa(he,Un,Se.backgroundRepeat),this.backgroundSize=pa(he,wi,Se.backgroundSize),this.borderTopColor=pa(he,ua,Se.borderTopColor),this.borderRightColor=pa(he,Xi,Se.borderRightColor),this.borderBottomColor=pa(he,Gi,Se.borderBottomColor),this.borderLeftColor=pa(he,wa,Se.borderLeftColor),this.borderTopLeftRadius=pa(he,mo,Se.borderTopLeftRadius),this.borderTopRightRadius=pa(he,Ca,Se.borderTopRightRadius),this.borderBottomRightRadius=pa(he,qi,Se.borderBottomRightRadius),this.borderBottomLeftRadius=pa(he,aa,Se.borderBottomLeftRadius),this.borderTopStyle=pa(he,Aa,Se.borderTopStyle),this.borderRightStyle=pa(he,ya,Se.borderRightStyle),this.borderBottomStyle=pa(he,Ha,Se.borderBottomStyle),this.borderLeftStyle=pa(he,ta,Se.borderLeftStyle),this.borderTopWidth=pa(he,_a,Se.borderTopWidth),this.borderRightWidth=pa(he,Ka,Se.borderRightWidth),this.borderBottomWidth=pa(he,bo,Se.borderBottomWidth),this.borderLeftWidth=pa(he,ga,Se.borderLeftWidth),this.boxShadow=pa(he,io,Se.boxShadow),this.color=pa(he,go,Se.color),this.direction=pa(he,Sa,Se.direction),this.display=pa(he,Va,Se.display),this.float=pa(he,No,Se.cssFloat),this.fontFamily=pa(he,cn,Se.fontFamily),this.fontSize=pa(he,jn,Se.fontSize),this.fontStyle=pa(he,Ni,Se.fontStyle),this.fontVariant=pa(he,Qn,Se.fontVariant),this.fontWeight=pa(he,ai,Se.fontWeight),this.letterSpacing=pa(he,Po,Se.letterSpacing),this.lineBreak=pa(he,Uo,Se.lineBreak),this.lineHeight=pa(he,co,Se.lineHeight),this.listStyleImage=pa(he,ro,Se.listStyleImage),this.listStylePosition=pa(he,Wa,Se.listStylePosition),this.listStyleType=pa(he,Ea,Se.listStyleType),this.marginTop=pa(he,za,Se.marginTop),this.marginRight=pa(he,rs,Se.marginRight),this.marginBottom=pa(he,Vo,Se.marginBottom),this.marginLeft=pa(he,Go,Se.marginLeft),this.opacity=pa(he,Vt,Se.opacity);var qt=pa(he,Qo,Se.overflow);this.overflowX=qt[0],this.overflowY=qt[qt.length>1?1:0],this.overflowWrap=pa(he,Yo,Se.overflowWrap),this.paddingTop=pa(he,Io,Se.paddingTop),this.paddingRight=pa(he,zo,Se.paddingRight),this.paddingBottom=pa(he,Fa,Se.paddingBottom),this.paddingLeft=pa(he,Ja,Se.paddingLeft),this.paintOrder=pa(he,Xa,Se.paintOrder),this.position=pa(he,Ao,Se.position),this.textAlign=pa(he,ho,Se.textAlign),this.textDecorationColor=pa(he,Or,(De=Se.textDecorationColor)!==null&&De!==void 0?De:Se.color),this.textDecorationLine=pa(he,Yr,(et=Se.textDecorationLine)!==null&&et!==void 0?et:Se.textDecoration),this.textShadow=pa(he,$o,Se.textShadow),this.textTransform=pa(he,ps,Se.textTransform),this.transform=pa(he,is,Se.transform),this.transformOrigin=pa(he,ut,Se.transformOrigin),this.visibility=pa(he,ne,Se.visibility),this.webkitTextStrokeColor=pa(he,Ya,Se.webkitTextStrokeColor),this.webkitTextStrokeWidth=pa(he,ka,Se.webkitTextStrokeWidth),this.wordBreak=pa(he,be,Se.wordBreak),this.zIndex=pa(he,je,Se.zIndex)}return sr.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},sr.prototype.isTransparent=function(){return So(this.backgroundColor)},sr.prototype.isTransformed=function(){return this.transform!==null},sr.prototype.isPositioned=function(){return this.position!==0},sr.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},sr.prototype.isFloating=function(){return this.float!==0},sr.prototype.isInlineLevel=function(){return Vi(this.display,4)||Vi(this.display,33554432)||Vi(this.display,268435456)||Vi(this.display,536870912)||Vi(this.display,67108864)||Vi(this.display,134217728)},sr}(),Es=function(){function sr(he,Se){this.content=pa(he,Ta,Se.content),this.quotes=pa(he,fo,Se.quotes)}return sr}(),qo=function(){function sr(he,Se){this.counterIncrement=pa(he,Ga,Se.counterIncrement),this.counterReset=pa(he,ao,Se.counterReset)}return sr}(),pa=function(he,Se,De){var et=new Oo,qt=De!==null&&typeof De!="undefined"?De.toString():Se.initialValue;et.write(qt);var Fr=new sa(et.read());switch(Se.type){case 2:var sn=Fr.parseComponentValue();return Se.parse(he,wo(sn)?sn.value:Se.initialValue);case 0:return Se.parse(he,Fr.parseComponentValue());case 1:return Se.parse(he,Fr.parseComponentValues());case 4:return Fr.parseComponentValue();case 3:switch(Se.format){case"angle":return Pa.parse(he,Fr.parseComponentValue());case"color":return lo.parse(he,Fr.parseComponentValue());case"image":return br.parse(he,Fr.parseComponentValue());case"length":var yn=Fr.parseComponentValue();return en(yn)?yn:Bn;case"length-percentage":var kn=Fr.parseComponentValue();return ur(kn)?kn:Bn;case"time":return ht.parse(he,Fr.parseComponentValue())}break}},ls="data-html2canvas-debug",Os=function(he){var Se=he.getAttribute(ls);switch(Se){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ys=function(he,Se){var De=Os(he);return De===1||Se===De},ms=function(){function sr(he,Se){if(this.context=he,this.textNodes=[],this.elements=[],this.flags=0,ys(Se,3))debugger;this.styles=new os(he,window.getComputedStyle(Se,null)),Iu(Se)&&(this.styles.animationDuration.some(function(De){return De>0})&&(Se.style.animationDuration="0s"),this.styles.transform!==null&&(Se.style.transform="none")),this.bounds=c(this.context,Se),ys(Se,4)&&(this.flags|=16)}return sr}(),ws="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Pl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ml=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ws=0;Ws<Pl.length;Ws++)ml[Pl.charCodeAt(Ws)]=Ws;for(var fs=function(he){var Se=he.length*.75,De=he.length,et,qt=0,Fr,sn,yn,kn;he[he.length-1]==="="&&(Se--,he[he.length-2]==="="&&Se--);var Pi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(Se):new Array(Se),Si=Array.isArray(Pi)?Pi:new Uint8Array(Pi);for(et=0;et<De;et+=4)Fr=ml[he.charCodeAt(et)],sn=ml[he.charCodeAt(et+1)],yn=ml[he.charCodeAt(et+2)],kn=ml[he.charCodeAt(et+3)],Si[qt++]=Fr<<2|sn>>4,Si[qt++]=(sn&15)<<4|yn>>2,Si[qt++]=(yn&3)<<6|kn&63;return Pi},_s=function(he){for(var Se=he.length,De=[],et=0;et<Se;et+=2)De.push(he[et+1]<<8|he[et]);return De},gl=function(he){for(var Se=he.length,De=[],et=0;et<Se;et+=4)De.push(he[et+3]<<24|he[et+2]<<16|he[et+1]<<8|he[et]);return De},Bs=5,Us=6+5,Qs=2,al=Us-Bs,El=65536>>Bs,bl=1<<Bs,ol=bl-1,Gs=1024>>Bs,zs=El+Gs,vl=zs,Xs=2048>>6,sl=vl+Xs,dl=65536>>Us,rl=1<<al,nl=rl-1,Tl=function(he,Se,De){return he.slice?he.slice(Se,De):new Uint16Array(Array.prototype.slice.call(he,Se,De))},Rs=function(he,Se,De){return he.slice?he.slice(Se,De):new Uint32Array(Array.prototype.slice.call(he,Se,De))},bs=function(he,Se){var De=fs(he),et=Array.isArray(De)?gl(De):new Uint32Array(De),qt=Array.isArray(De)?_s(De):new Uint16Array(De),Fr=24,sn=Tl(qt,Fr/2,et[4]/2),yn=et[5]===2?Tl(qt,(Fr+et[4])/2):Rs(et,Math.ceil((Fr+et[4])/4));return new Ms(et[0],et[1],et[2],et[3],sn,yn)},Ms=function(){function sr(he,Se,De,et,qt,Fr){this.initialValue=he,this.errorValue=Se,this.highStart=De,this.highValueIndex=et,this.index=qt,this.data=Fr}return sr.prototype.get=function(he){var Se;if(he>=0){if(he<55296||he>56319&&he<=65535)return Se=this.index[he>>Bs],Se=(Se<<Qs)+(he&ol),this.data[Se];if(he<=65535)return Se=this.index[El+(he-55296>>Bs)],Se=(Se<<Qs)+(he&ol),this.data[Se];if(he<this.highStart)return Se=sl-dl+(he>>Us),Se=this.index[Se],Se+=he>>Bs&nl,Se=this.index[Se],Se=(Se<<Qs)+(he&ol),this.data[Se];if(he<=1114111)return this.data[this.highValueIndex]}return this.errorValue},sr}(),Ts="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zs=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),hl=0;hl<Ts.length;hl++)Zs[Ts.charCodeAt(hl)]=hl;var wl=1,Kl=2,il=3,fl=4,kl=5,gu=7,Jl=8,Zl=9,$l=10,Gl=11,$s=12,ll=13,pl=14,Nl=15,ou=function(he){for(var Se=[],De=0,et=he.length;De<et;){var qt=he.charCodeAt(De++);if(qt>=55296&&qt<=56319&&De<et){var Fr=he.charCodeAt(De++);(Fr&64512)===56320?Se.push(((qt&1023)<<10)+(Fr&1023)+65536):(Se.push(qt),De--)}else Se.push(qt)}return Se},ql=function(){for(var he=[],Se=0;Se<arguments.length;Se++)he[Se]=arguments[Se];if(String.fromCodePoint)return String.fromCodePoint.apply(String,he);var De=he.length;if(!De)return"";for(var et=[],qt=-1,Fr="";++qt<De;){var sn=he[qt];sn<=65535?et.push(sn):(sn-=65536,et.push((sn>>10)+55296,sn%1024+56320)),(qt+1===De||et.length>16384)&&(Fr+=String.fromCharCode.apply(String,et),et.length=0)}return Fr},eu=bs(ws),el="\xD7",tu="\xF7",ru=function(he){return eu.get(he)},su=function(he,Se,De){var et=De-2,qt=Se[et],Fr=Se[De-1],sn=Se[De];if(Fr===Kl&&sn===il)return el;if(Fr===Kl||Fr===il||Fr===fl)return tu;if(sn===Kl||sn===il||sn===fl)return tu;if(Fr===Jl&&[Jl,Zl,Gl,$s].indexOf(sn)!==-1)return el;if((Fr===Gl||Fr===Zl)&&(sn===Zl||sn===$l))return el;if((Fr===$s||Fr===$l)&&sn===$l)return el;if(sn===ll||sn===kl)return el;if(sn===gu)return el;if(Fr===wl)return el;if(Fr===ll&&sn===pl){for(;qt===kl;)qt=Se[--et];if(qt===pl)return el}if(Fr===Nl&&sn===Nl){for(var yn=0;qt===Nl;)yn++,qt=Se[--et];if(yn%2===0)return el}return tu},Cl=function(he){var Se=ou(he),De=Se.length,et=0,qt=0,Fr=Se.map(ru);return{next:function(){if(et>=De)return{done:!0,value:null};for(var yn=el;et<De&&(yn=su(Se,Fr,++et))===el;);if(yn!==el||et===De){var kn=ql.apply(null,Se.slice(qt,et));return qt=et,{value:kn,done:!1}}return{done:!0,value:null}}}},Dl=function(he){for(var Se=Cl(he),De=[],et;!(et=Se.next()).done;)et.value&&De.push(et.value.slice());return De},Fl=function(he){var Se=123;if(he.createRange){var De=he.createRange();if(De.getBoundingClientRect){var et=he.createElement("boundtest");et.style.height=Se+"px",et.style.display="block",he.body.appendChild(et),De.selectNode(et);var qt=De.getBoundingClientRect(),Fr=Math.round(qt.height);if(he.body.removeChild(et),Fr===Se)return!0}}return!1},Xl=function(he){var Se=he.createElement("boundtest");Se.style.width="50px",Se.style.display="block",Se.style.fontSize="12px",Se.style.letterSpacing="0px",Se.style.wordSpacing="0px",he.body.appendChild(Se);var De=he.createRange();Se.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var et=Se.firstChild,qt=r(et.data).map(function(kn){return i(kn)}),Fr=0,sn={},yn=qt.every(function(kn,Pi){De.setStart(et,Fr),De.setEnd(et,Fr+kn.length);var Si=De.getBoundingClientRect();Fr+=kn.length;var Fi=Si.x>sn.x||Si.y>sn.y;return sn=Si,Pi===0?!0:Fi});return he.body.removeChild(Se),yn},jo=function(){return typeof new Image().crossOrigin!="undefined"},Ho=function(){return typeof new XMLHttpRequest().responseType=="string"},us=function(he){var Se=new Image,De=he.createElement("canvas"),et=De.getContext("2d");if(!et)return!1;Se.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{et.drawImage(Se,0,0),De.toDataURL()}catch(qt){return!1}return!0},cs=function(he){return he[0]===0&&he[1]===255&&he[2]===0&&he[3]===255},Cs=function(he){var Se=he.createElement("canvas"),De=100;Se.width=De,Se.height=De;var et=Se.getContext("2d");if(!et)return Promise.reject(!1);et.fillStyle="rgb(0, 255, 0)",et.fillRect(0,0,De,De);var qt=new Image,Fr=Se.toDataURL();qt.src=Fr;var sn=ds(De,De,0,0,qt);return et.fillStyle="red",et.fillRect(0,0,De,De),Js(sn).then(function(yn){et.drawImage(yn,0,0);var kn=et.getImageData(0,0,De,De).data;et.fillStyle="red",et.fillRect(0,0,De,De);var Pi=he.createElement("div");return Pi.style.backgroundImage="url("+Fr+")",Pi.style.height=De+"px",cs(kn)?Js(ds(De,De,0,0,Pi)):Promise.reject(!1)}).then(function(yn){return et.drawImage(yn,0,0),cs(et.getImageData(0,0,De,De).data)}).catch(function(){return!1})},ds=function(he,Se,De,et,qt){var Fr="http://www.w3.org/2000/svg",sn=document.createElementNS(Fr,"svg"),yn=document.createElementNS(Fr,"foreignObject");return sn.setAttributeNS(null,"width",he.toString()),sn.setAttributeNS(null,"height",Se.toString()),yn.setAttributeNS(null,"width","100%"),yn.setAttributeNS(null,"height","100%"),yn.setAttributeNS(null,"x",De.toString()),yn.setAttributeNS(null,"y",et.toString()),yn.setAttributeNS(null,"externalResourcesRequired","true"),sn.appendChild(yn),yn.appendChild(qt),sn},Js=function(he){return new Promise(function(Se,De){var et=new Image;et.onload=function(){return Se(et)},et.onerror=De,et.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(he))})},ss={get SUPPORT_RANGE_BOUNDS(){var sr=Fl(document);return Object.defineProperty(ss,"SUPPORT_RANGE_BOUNDS",{value:sr}),sr},get SUPPORT_WORD_BREAKING(){var sr=ss.SUPPORT_RANGE_BOUNDS&&Xl(document);return Object.defineProperty(ss,"SUPPORT_WORD_BREAKING",{value:sr}),sr},get SUPPORT_SVG_DRAWING(){var sr=us(document);return Object.defineProperty(ss,"SUPPORT_SVG_DRAWING",{value:sr}),sr},get SUPPORT_FOREIGNOBJECT_DRAWING(){var sr=typeof Array.from=="function"&&typeof window.fetch=="function"?Cs(document):Promise.resolve(!1);return Object.defineProperty(ss,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:sr}),sr},get SUPPORT_CORS_IMAGES(){var sr=jo();return Object.defineProperty(ss,"SUPPORT_CORS_IMAGES",{value:sr}),sr},get SUPPORT_RESPONSE_TYPE(){var sr=Ho();return Object.defineProperty(ss,"SUPPORT_RESPONSE_TYPE",{value:sr}),sr},get SUPPORT_CORS_XHR(){var sr="withCredentials"in new XMLHttpRequest;return Object.defineProperty(ss,"SUPPORT_CORS_XHR",{value:sr}),sr},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var sr=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(ss,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:sr}),sr}},Is=function(){function sr(he,Se){this.text=he,this.bounds=Se}return sr}(),Al=function(he,Se,De,et){var qt=vu(Se,De),Fr=[],sn=0;return qt.forEach(function(yn){if(De.textDecorationLine.length||yn.trim().length>0)if(ss.SUPPORT_RANGE_BOUNDS){var kn=uu(et,sn,yn.length).getClientRects();if(kn.length>1){var Pi=Yl(yn),Si=0;Pi.forEach(function(Na){Fr.push(new Is(Na,f.fromDOMRectList(he,uu(et,Si+sn,Na.length).getClientRects()))),Si+=Na.length})}else Fr.push(new Is(yn,f.fromDOMRectList(he,kn)))}else{var Fi=et.splitText(yn.length);Fr.push(new Is(yn,lu(he,et))),et=Fi}else ss.SUPPORT_RANGE_BOUNDS||(et=et.splitText(yn.length));sn+=yn.length}),Fr},lu=function(he,Se){var De=Se.ownerDocument;if(De){var et=De.createElement("html2canvaswrapper");et.appendChild(Se.cloneNode(!0));var qt=Se.parentNode;if(qt){qt.replaceChild(et,Se);var Fr=c(he,et);return et.firstChild&&qt.replaceChild(et.firstChild,et),Fr}}return f.EMPTY},uu=function(he,Se,De){var et=he.ownerDocument;if(!et)throw new Error("Node has no owner document");var qt=et.createRange();return qt.setStart(he,Se),qt.setEnd(he,Se+De),qt},Yl=function(he){if(ss.SUPPORT_NATIVE_TEXT_SEGMENTATION){var Se=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(Se.segment(he)).map(function(De){return De.segment})}return Dl(he)},nu=function(he,Se){if(ss.SUPPORT_NATIVE_TEXT_SEGMENTATION){var De=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(De.segment(he)).map(function(et){return et.segment})}return bu(he,Se)},vu=function(he,Se){return Se.letterSpacing!==0?Yl(he):nu(he,Se)},yu=[32,160,4961,65792,65793,4153,4241],bu=function(he,Se){for(var De=Pe(he,{lineBreak:Se.lineBreak,wordBreak:Se.overflowWrap==="break-word"?"break-word":Se.wordBreak}),et=[],qt,Fr=function(){if(qt.value){var yn=qt.value.slice(),kn=r(yn),Pi="";kn.forEach(function(Si){yu.indexOf(Si)===-1?Pi+=i(Si):(Pi.length&&et.push(Pi),et.push(i(Si)),Pi="")}),Pi.length&&et.push(Pi)}};!(qt=De.next()).done;)Fr();return et},_l=function(){function sr(he,Se,De){this.text=Rl(Se.data,De.textTransform),this.textBounds=Al(he,this.text,De,Se)}return sr}(),Rl=function(he,Se){switch(Se){case 1:return he.toLowerCase();case 3:return he.replace(Wl,es);case 2:return he.toUpperCase();default:return he}},Wl=/(^|\s|:|-|\(|\))([a-z])/g,es=function(he,Se,De){return he.length>0?Se+De.toUpperCase():he},$a=function(sr){x(he,sr);function he(Se,De){var et=sr.call(this,Se,De)||this;return et.src=De.currentSrc||De.src,et.intrinsicWidth=De.naturalWidth,et.intrinsicHeight=De.naturalHeight,et.context.cache.addImage(et.src),et}return he}(ms),Eo=function(sr){x(he,sr);function he(Se,De){var et=sr.call(this,Se,De)||this;return et.canvas=De,et.intrinsicWidth=De.width,et.intrinsicHeight=De.height,et}return he}(ms),Ko=function(sr){x(he,sr);function he(Se,De){var et=sr.call(this,Se,De)||this,qt=new XMLSerializer,Fr=c(Se,De);return De.setAttribute("width",Fr.width+"px"),De.setAttribute("height",Fr.height+"px"),et.svg="data:image/svg+xml,"+encodeURIComponent(qt.serializeToString(De)),et.intrinsicWidth=De.width.baseVal.value,et.intrinsicHeight=De.height.baseVal.value,et.context.cache.addImage(et.svg),et}return he}(ms),js=function(sr){x(he,sr);function he(Se,De){var et=sr.call(this,Se,De)||this;return et.value=De.value,et}return he}(ms),Bl=function(sr){x(he,sr);function he(Se,De){var et=sr.call(this,Se,De)||this;return et.start=De.start,et.reversed=typeof De.reversed=="boolean"&&De.reversed===!0,et}return he}(ms),Ul=[{type:15,flags:0,unit:"px",number:3}],Ol=[{type:16,flags:0,number:50}],Ll=function(he){return he.width>he.height?new f(he.left+(he.width-he.height)/2,he.top,he.height,he.height):he.width<he.height?new f(he.left,he.top+(he.height-he.width)/2,he.width,he.width):he},jl=function(he){var Se=he.type===cu?new Array(he.value.length+1).join("\u2022"):he.value;return Se.length===0?he.placeholder||"":Se},Hl="checkbox",Vs="radio",cu="password",wu=707406591,Au=function(sr){x(he,sr);function he(Se,De){var et=sr.call(this,Se,De)||this;et.type=De.type.toLowerCase(),et.checked=De.checked,et.value=jl(De),(et.type===Hl||et.type===Vs)&&(et.styles.backgroundColor=3739148031,et.styles.borderTopColor=et.styles.borderRightColor=et.styles.borderBottomColor=et.styles.borderLeftColor=2779096575,et.styles.borderTopWidth=et.styles.borderRightWidth=et.styles.borderBottomWidth=et.styles.borderLeftWidth=1,et.styles.borderTopStyle=et.styles.borderRightStyle=et.styles.borderBottomStyle=et.styles.borderLeftStyle=1,et.styles.backgroundClip=[0],et.styles.backgroundOrigin=[0],et.bounds=Ll(et.bounds));switch(et.type){case Hl:et.styles.borderTopRightRadius=et.styles.borderTopLeftRadius=et.styles.borderBottomRightRadius=et.styles.borderBottomLeftRadius=Ul;break;case Vs:et.styles.borderTopRightRadius=et.styles.borderTopLeftRadius=et.styles.borderBottomRightRadius=et.styles.borderBottomLeftRadius=Ol;break}return et}return he}(ms),_u=function(sr){x(he,sr);function he(Se,De){var et=sr.call(this,Se,De)||this,qt=De.options[De.selectedIndex||0];return et.value=qt&&qt.text||"",et}return he}(ms),Vu=function(sr){x(he,sr);function he(Se,De){var et=sr.call(this,Se,De)||this;return et.value=De.value,et}return he}(ms),Fu=function(sr){x(he,sr);function he(Se,De){var et=sr.call(this,Se,De)||this;et.src=De.src,et.width=parseInt(De.width,10)||0,et.height=parseInt(De.height,10)||0,et.backgroundColor=et.styles.backgroundColor;try{if(De.contentWindow&&De.contentWindow.document&&De.contentWindow.document.documentElement){et.tree=Xu(Se,De.contentWindow.document.documentElement);var qt=De.contentWindow.document.documentElement?di(Se,getComputedStyle(De.contentWindow.document.documentElement).backgroundColor):Yt.TRANSPARENT,Fr=De.contentWindow.document.body?di(Se,getComputedStyle(De.contentWindow.document.body).backgroundColor):Yt.TRANSPARENT;et.backgroundColor=So(qt)?So(Fr)?et.styles.backgroundColor:Fr:qt}}catch(sn){}return et}return he}(ms),ec=["OL","UL","MENU"],Bu=function sr(he,Se,De,et){for(var qt=Se.firstChild,Fr=void 0;qt;qt=Fr)if(Fr=qt.nextSibling,Ou(qt)&&qt.data.trim().length>0)De.textNodes.push(new _l(he,qt,De.styles));else if(Ql(qt))if(Qt(qt)&&qt.assignedNodes)qt.assignedNodes().forEach(function(yn){return sr(he,yn,De,et)});else{var sn=Gu(he,qt);sn.styles.isVisible()&&(Yu(qt,sn,et)?sn.flags|=4:Uu(sn.styles)&&(sn.flags|=2),ec.indexOf(qt.tagName)!==-1&&(sn.flags|=8),De.elements.push(sn),qt.slot,qt.shadowRoot?sr(he,qt.shadowRoot,sn,et):!Nt(qt)&&!er(qt)&&!Kt(qt)&&sr(he,qt,sn,et))}},Gu=function(he,Se){return q(Se)?new $a(he,Se):Xr(Se)?new Eo(he,Se):er(Se)?new Ko(he,Se):Eu(Se)?new js(he,Se):ge(Se)?new Bl(he,Se):He(Se)?new Au(he,Se):Kt(Se)?new _u(he,Se):Nt(Se)?new Vu(he,Se):ye(Se)?new Fu(he,Se):new ms(he,Se)},Xu=function(he,Se){var De=Gu(he,Se);return De.flags|=4,Bu(he,Se,De,De),De},Yu=function(he,Se,De){return Se.styles.isPositionedWithZIndex()||Se.styles.opacity<1||Se.styles.isTransformed()||Er(he)&&De.styles.isTransparent()},Uu=function(he){return he.isPositioned()||he.isFloating()},Ou=function(he){return he.nodeType===Node.TEXT_NODE},Ql=function(he){return he.nodeType===Node.ELEMENT_NODE},Iu=function(he){return Ql(he)&&typeof he.style!="undefined"&&!iu(he)},iu=function(he){return typeof he.className=="object"},Eu=function(he){return he.tagName==="LI"},ge=function(he){return he.tagName==="OL"},He=function(he){return he.tagName==="INPUT"},ft=function(he){return he.tagName==="HTML"},er=function(he){return he.tagName==="svg"},Er=function(he){return he.tagName==="BODY"},Xr=function(he){return he.tagName==="CANVAS"},Oe=function(he){return he.tagName==="VIDEO"},q=function(he){return he.tagName==="IMG"},ye=function(he){return he.tagName==="IFRAME"},ze=function(he){return he.tagName==="STYLE"},at=function(he){return he.tagName==="SCRIPT"},Nt=function(he){return he.tagName==="TEXTAREA"},Kt=function(he){return he.tagName==="SELECT"},Qt=function(he){return he.tagName==="SLOT"},Ir=function(he){return he.tagName.indexOf("-")>0},Zr=function(){function sr(){this.counters={}}return sr.prototype.getCounterValue=function(he){var Se=this.counters[he];return Se&&Se.length?Se[Se.length-1]:1},sr.prototype.getCounterValues=function(he){var Se=this.counters[he];return Se||[]},sr.prototype.pop=function(he){var Se=this;he.forEach(function(De){return Se.counters[De].pop()})},sr.prototype.parse=function(he){var Se=this,De=he.counterIncrement,et=he.counterReset,qt=!0;De!==null&&De.forEach(function(sn){var yn=Se.counters[sn.counter];yn&&sn.increment!==0&&(qt=!1,yn.length||yn.push(1),yn[Math.max(0,yn.length-1)]+=sn.increment)});var Fr=[];return qt&&et.forEach(function(sn){var yn=Se.counters[sn.counter];Fr.push(sn.counter),yn||(yn=Se.counters[sn.counter]=[]),yn.push(sn.reset)}),Fr},sr}(),Tr={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"]},xr={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"]},Wr={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"]},nn={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},_n=function(he,Se,De,et,qt,Fr){return he<Se||he>De?$(he,qt,Fr.length>0):et.integers.reduce(function(sn,yn,kn){for(;he>=yn;)he-=yn,sn+=et.values[kn];return sn},"")+Fr},gi=function(he,Se,De,et){var qt="";do De||he--,qt=et(he)+qt,he/=Se;while(he*Se>=Se);return qt},Ai=function(he,Se,De,et,qt){var Fr=De-Se+1;return(he<0?"-":"")+(gi(Math.abs(he),Fr,et,function(sn){return i(Math.floor(sn%Fr)+Se)})+qt)},Qi=function(he,Se,De){De===void 0&&(De=". ");var et=Se.length;return gi(Math.abs(he),et,!1,function(qt){return Se[Math.floor(qt%et)]})+De},Bi=1<<0,Ma=1<<1,ea=1<<2,oo=1<<3,Ba=function(he,Se,De,et,qt,Fr){if(he<-9999||he>9999)return $(he,4,qt.length>0);var sn=Math.abs(he),yn=qt;if(sn===0)return Se[0]+yn;for(var kn=0;sn>0&&kn<=4;kn++){var Pi=sn%10;Pi===0&&Vi(Fr,Bi)&&yn!==""?yn=Se[Pi]+yn:Pi>1||Pi===1&&kn===0||Pi===1&&kn===1&&Vi(Fr,Ma)||Pi===1&&kn===1&&Vi(Fr,ea)&&he>100||Pi===1&&kn>1&&Vi(Fr,oo)?yn=Se[Pi]+(kn>0?De[kn-1]:"")+yn:Pi===1&&kn>0&&(yn=De[kn-1]+yn),sn=Math.floor(sn/10)}return(he<0?et:"")+yn},Ro="\u5341\u767E\u5343\u842C",Zo="\u62FE\u4F70\u4EDF\u842C",P="\u30DE\u30A4\u30CA\u30B9",K="\uB9C8\uC774\uB108\uC2A4",$=function(he,Se,De){var et=De?". ":"",qt=De?"\u3001":"",Fr=De?", ":"",sn=De?" ":"";switch(Se){case 0:return"\u2022"+sn;case 1:return"\u25E6"+sn;case 2:return"\u25FE"+sn;case 5:var yn=Ai(he,48,57,!0,et);return yn.length<4?"0"+yn:yn;case 4:return Qi(he,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",qt);case 6:return _n(he,1,3999,Tr,3,et).toLowerCase();case 7:return _n(he,1,3999,Tr,3,et);case 8:return Ai(he,945,969,!1,et);case 9:return Ai(he,97,122,!1,et);case 10:return Ai(he,65,90,!1,et);case 11:return Ai(he,1632,1641,!0,et);case 12:case 49:return _n(he,1,9999,xr,3,et);case 35:return _n(he,1,9999,xr,3,et).toLowerCase();case 13:return Ai(he,2534,2543,!0,et);case 14:case 30:return Ai(he,6112,6121,!0,et);case 15:return Qi(he,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",qt);case 16:return Qi(he,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",qt);case 17:case 48:return Ba(he,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Ro,"\u8CA0",qt,Ma|ea|oo);case 47:return Ba(he,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Zo,"\u8CA0",qt,Bi|Ma|ea|oo);case 42:return Ba(he,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Ro,"\u8D1F",qt,Ma|ea|oo);case 41:return Ba(he,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Zo,"\u8D1F",qt,Bi|Ma|ea|oo);case 26:return Ba(he,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",P,qt,0);case 25:return Ba(he,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",P,qt,Bi|Ma|ea);case 31:return Ba(he,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",K,Fr,Bi|Ma|ea);case 33:return Ba(he,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",K,Fr,0);case 32:return Ba(he,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",K,Fr,Bi|Ma|ea);case 18:return Ai(he,2406,2415,!0,et);case 20:return _n(he,1,19999,nn,3,et);case 21:return Ai(he,2790,2799,!0,et);case 22:return Ai(he,2662,2671,!0,et);case 22:return _n(he,1,10999,Wr,3,et);case 23:return Qi(he,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Qi(he,"\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 Ai(he,3302,3311,!0,et);case 28:return Qi(he,"\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",qt);case 29:return Qi(he,"\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",qt);case 34:return Ai(he,3792,3801,!0,et);case 37:return Ai(he,6160,6169,!0,et);case 38:return Ai(he,4160,4169,!0,et);case 39:return Ai(he,2918,2927,!0,et);case 40:return Ai(he,1776,1785,!0,et);case 43:return Ai(he,3046,3055,!0,et);case 44:return Ai(he,3174,3183,!0,et);case 45:return Ai(he,3664,3673,!0,et);case 46:return Ai(he,3872,3881,!0,et);case 3:default:return Ai(he,48,57,!0,et)}},re="data-html2canvas-ignore",le=function(){function sr(he,Se,De){if(this.context=he,this.options=De,this.scrolledElements=[],this.referenceElement=Se,this.counters=new Zr,this.quoteDepth=0,!Se.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(Se.ownerDocument.documentElement,!1)}return sr.prototype.toIFrame=function(he,Se){var De=this,et=pt(he,Se);if(!et.contentWindow)return Promise.reject("Unable to find iframe window");var qt=he.defaultView.pageXOffset,Fr=he.defaultView.pageYOffset,sn=et.contentWindow,yn=sn.document,kn=cr(et).then(function(){return A(De,void 0,void 0,function(){var Pi,Si;return S(this,function(Fi){switch(Fi.label){case 0:return this.scrolledElements.forEach(Wi),sn&&(sn.scrollTo(Se.left,Se.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(sn.scrollY!==Se.top||sn.scrollX!==Se.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(sn.scrollX-Se.left,sn.scrollY-Se.top,0,0))),Pi=this.options.onclone,Si=this.clonedReferenceElement,typeof Si=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:yn.fonts&&yn.fonts.ready?[4,yn.fonts.ready]:[3,2];case 1:Fi.sent(),Fi.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,ar(yn)]:[3,4];case 3:Fi.sent(),Fi.label=4;case 4:return typeof Pi=="function"?[2,Promise.resolve().then(function(){return Pi(yn,Si)}).then(function(){return et})]:[2,et]}})})});return yn.open(),yn.write(ui(document.doctype)+"<html></html>"),hi(this.referenceElement.ownerDocument,qt,Fr),yn.replaceChild(yn.adoptNode(this.documentElement),yn.documentElement),yn.close(),kn},sr.prototype.createElementClone=function(he){if(ys(he,2))debugger;if(Xr(he))return this.createCanvasClone(he);if(Oe(he))return this.createVideoClone(he);if(ze(he))return this.createStyleClone(he);var Se=he.cloneNode(!1);return q(Se)&&(q(he)&&he.currentSrc&&he.currentSrc!==he.src&&(Se.src=he.currentSrc,Se.srcset=""),Se.loading==="lazy"&&(Se.loading="eager")),Ir(Se)?this.createCustomElementClone(Se):Se},sr.prototype.createCustomElementClone=function(he){var Se=document.createElement("html2canvascustomelement");return Dn(he.style,Se),Se},sr.prototype.createStyleClone=function(he){try{var Se=he.sheet;if(Se&&Se.cssRules){var De=[].slice.call(Se.cssRules,0).reduce(function(qt,Fr){return Fr&&typeof Fr.cssText=="string"?qt+Fr.cssText:qt},""),et=he.cloneNode(!1);return et.textContent=De,et}}catch(qt){if(this.context.logger.error("Unable to access cssRules property",qt),qt.name!=="SecurityError")throw qt}return he.cloneNode(!1)},sr.prototype.createCanvasClone=function(he){var Se;if(this.options.inlineImages&&he.ownerDocument){var De=he.ownerDocument.createElement("img");try{return De.src=he.toDataURL(),De}catch(kn){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",he)}}var et=he.cloneNode(!1);try{et.width=he.width,et.height=he.height;var qt=he.getContext("2d"),Fr=et.getContext("2d");if(Fr)if(!this.options.allowTaint&&qt)Fr.putImageData(qt.getImageData(0,0,he.width,he.height),0,0);else{var sn=(Se=he.getContext("webgl2"))!==null&&Se!==void 0?Se:he.getContext("webgl");if(sn){var yn=sn.getContextAttributes();(yn==null?void 0:yn.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",he)}Fr.drawImage(he,0,0)}return et}catch(kn){this.context.logger.info("Unable to clone canvas as it is tainted",he)}return et},sr.prototype.createVideoClone=function(he){var Se=he.ownerDocument.createElement("canvas");Se.width=he.offsetWidth,Se.height=he.offsetHeight;var De=Se.getContext("2d");try{return De&&(De.drawImage(he,0,0,Se.width,Se.height),this.options.allowTaint||De.getImageData(0,0,Se.width,Se.height)),Se}catch(qt){this.context.logger.info("Unable to clone video as it is tainted",he)}var et=he.ownerDocument.createElement("canvas");return et.width=he.offsetWidth,et.height=he.offsetHeight,et},sr.prototype.appendChildNode=function(he,Se,De){(!Ql(Se)||!at(Se)&&!Se.hasAttribute(re)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(Se)))&&((!this.options.copyStyles||!Ql(Se)||!ze(Se))&&he.appendChild(this.cloneNode(Se,De)))},sr.prototype.cloneChildNodes=function(he,Se,De){for(var et=this,qt=he.shadowRoot?he.shadowRoot.firstChild:he.firstChild;qt;qt=qt.nextSibling)if(Ql(qt)&&Qt(qt)&&typeof qt.assignedNodes=="function"){var Fr=qt.assignedNodes();Fr.length&&Fr.forEach(function(sn){return et.appendChildNode(Se,sn,De)})}else this.appendChildNode(Se,qt,De)},sr.prototype.cloneNode=function(he,Se){if(Ou(he))return document.createTextNode(he.data);if(!he.ownerDocument)return he.cloneNode(!1);var De=he.ownerDocument.defaultView;if(De&&Ql(he)&&(Iu(he)||iu(he))){var et=this.createElementClone(he);et.style.transitionProperty="none";var qt=De.getComputedStyle(he),Fr=De.getComputedStyle(he,":before"),sn=De.getComputedStyle(he,":after");this.referenceElement===he&&Iu(et)&&(this.clonedReferenceElement=et),Er(et)&&eo(et);var yn=this.counters.parse(new qo(this.context,qt)),kn=this.resolvePseudoContent(he,et,Fr,Me.BEFORE);Ir(he)&&(Se=!0),Oe(he)||this.cloneChildNodes(he,et,Se),kn&&et.insertBefore(kn,et.firstChild);var Pi=this.resolvePseudoContent(he,et,sn,Me.AFTER);return Pi&&et.appendChild(Pi),this.counters.pop(yn),(qt&&(this.options.copyStyles||iu(he))&&!ye(he)||Se)&&Dn(qt,et),(he.scrollTop!==0||he.scrollLeft!==0)&&this.scrolledElements.push([et,he.scrollLeft,he.scrollTop]),(Nt(he)||Kt(he))&&(Nt(et)||Kt(et))&&(et.value=he.value),et}return he.cloneNode(!1)},sr.prototype.resolvePseudoContent=function(he,Se,De,et){var qt=this;if(!De)return;var Fr=De.content,sn=Se.ownerDocument;if(!sn||!Fr||Fr==="none"||Fr==="-moz-alt-content"||De.display==="none")return;this.counters.parse(new qo(this.context,De));var yn=new Es(this.context,De),kn=sn.createElement("html2canvaspseudoelement");Dn(De,kn),yn.content.forEach(function(Si){if(Si.type===0)kn.appendChild(sn.createTextNode(Si.value));else if(Si.type===22){var Fi=sn.createElement("img");Fi.src=Si.value,Fi.style.opacity="1",kn.appendChild(Fi)}else if(Si.type===18){if(Si.name==="attr"){var Na=Si.values.filter(wo);Na.length&&kn.appendChild(sn.createTextNode(he.getAttribute(Na[0].value)||""))}else if(Si.name==="counter"){var ja=Si.values.filter(Nr),no=ja[0],Xo=ja[1];if(no&&wo(no)){var Lo=qt.counters.getCounterValue(no.value),Co=Xo&&wo(Xo)?Ea.parse(qt.context,Xo.value):3;kn.appendChild(sn.createTextNode($(Lo,Co,!1)))}}else if(Si.name==="counters"){var xs=Si.values.filter(Nr),no=xs[0],Ns=xs[1],Xo=xs[2];if(no&&wo(no)){var vs=qt.counters.getCounterValues(no.value),xo=Xo&&wo(Xo)?Ea.parse(qt.context,Xo.value):3,Fs=Ns&&Ns.type===0?Ns.value:"",Ks=vs.map(function(xu){return $(xu,xo,!1)}).join(Fs);kn.appendChild(sn.createTextNode(Ks))}}}else if(Si.type===20)switch(Si.value){case"open-quote":kn.appendChild(sn.createTextNode(as(yn.quotes,qt.quoteDepth++,!0)));break;case"close-quote":kn.appendChild(sn.createTextNode(as(yn.quotes,--qt.quoteDepth,!1)));break;default:kn.appendChild(sn.createTextNode(Si.value))}}),kn.className=ba+" "+va;var Pi=et===Me.BEFORE?" "+ba:" "+va;return iu(Se)?Se.className.baseValue+=Pi:Se.className+=Pi,kn},sr.destroy=function(he){return he.parentNode?(he.parentNode.removeChild(he),!0):!1},sr}(),Me;(function(sr){sr[sr.BEFORE=0]="BEFORE",sr[sr.AFTER=1]="AFTER"})(Me||(Me={}));var pt=function(he,Se){var De=he.createElement("iframe");return De.className="html2canvas-container",De.style.visibility="hidden",De.style.position="fixed",De.style.left="-10000px",De.style.top="0px",De.style.border="0",De.width=Se.width.toString(),De.height=Se.height.toString(),De.scrolling="no",De.setAttribute(re,"true"),he.body.appendChild(De),De},jt=function(he){return new Promise(function(Se){if(he.complete){Se();return}if(!he.src){Se();return}he.onload=Se,he.onerror=Se})},ar=function(he){return Promise.all([].slice.call(he.images,0).map(jt))},cr=function(he){return new Promise(function(Se,De){var et=he.contentWindow;if(!et)return De("No window assigned for iframe");var qt=et.document;et.onload=he.onload=function(){et.onload=he.onload=null;var Fr=setInterval(function(){qt.body.childNodes.length>0&&qt.readyState==="complete"&&(clearInterval(Fr),Se(he))},50)}})},bn=["all","d","content"],Dn=function(he,Se){for(var De=he.length-1;De>=0;De--){var et=he.item(De);bn.indexOf(et)===-1&&Se.style.setProperty(et,he.getPropertyValue(et))}return Se},ui=function(he){var Se="";return he&&(Se+="<!DOCTYPE ",he.name&&(Se+=he.name),he.internalSubset&&(Se+=he.internalSubset),he.publicId&&(Se+='"'+he.publicId+'"'),he.systemId&&(Se+='"'+he.systemId+'"'),Se+=">"),Se},hi=function(he,Se,De){he&&he.defaultView&&(Se!==he.defaultView.pageXOffset||De!==he.defaultView.pageYOffset)&&he.defaultView.scrollTo(Se,De)},Wi=function(he){var Se=he[0],De=he[1],et=he[2];Se.scrollLeft=De,Se.scrollTop=et},ia=":before",xa=":after",ba="___html2canvas___pseudoelement_before",va="___html2canvas___pseudoelement_after",Ua=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,eo=function(he){ko(he,"."+ba+ia+Ua+`
|
|
|
.`+va+xa+Ua)},ko=function(he,Se){var De=he.ownerDocument;if(De){var et=De.createElement("style");et.textContent=Se,he.appendChild(et)}},To=function(){function sr(){}return sr.getOrigin=function(he){var Se=sr._link;return Se?(Se.href=he,Se.href=Se.href,Se.protocol+Se.hostname+Se.port):"about:blank"},sr.isSameOrigin=function(he){return sr.getOrigin(he)===sr._origin},sr.setContext=function(he){sr._link=he.document.createElement("a"),sr._origin=sr.getOrigin(he.location.href)},sr._origin="about:blank",sr}(),ns=function(){function sr(he,Se){this.context=he,this._options=Se,this._cache={}}return sr.prototype.addImage=function(he){var Se=Promise.resolve();return this.has(he)||(xl(he)||ul(he))&&(this._cache[he]=this.loadImage(he)).catch(function(){}),Se},sr.prototype.match=function(he){return this._cache[he]},sr.prototype.loadImage=function(he){return A(this,void 0,void 0,function(){var Se,De,et,qt,Fr=this;return S(this,function(sn){switch(sn.label){case 0:return Se=To.isSameOrigin(he),De=!Sl(he)&&this._options.useCORS===!0&&ss.SUPPORT_CORS_IMAGES&&!Se,et=!Sl(he)&&!Se&&!xl(he)&&typeof this._options.proxy=="string"&&ss.SUPPORT_CORS_XHR&&!De,!Se&&this._options.allowTaint===!1&&!Sl(he)&&!xl(he)&&!et&&!De?[2]:(qt=he,et?[4,this.proxy(qt)]:[3,2]);case 1:qt=sn.sent(),sn.label=2;case 2:return this.context.logger.debug("Added image "+he.substring(0,256)),[4,new Promise(function(yn,kn){var Pi=new Image;Pi.onload=function(){return yn(Pi)},Pi.onerror=kn,(tl(qt)||De)&&(Pi.crossOrigin="anonymous"),Pi.src=qt,Pi.complete===!0&&setTimeout(function(){return yn(Pi)},500),Fr._options.imageTimeout>0&&setTimeout(function(){return kn("Timed out ("+Fr._options.imageTimeout+"ms) loading image")},Fr._options.imageTimeout)})];case 3:return[2,sn.sent()]}})})},sr.prototype.has=function(he){return typeof this._cache[he]!="undefined"},sr.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},sr.prototype.proxy=function(he){var Se=this,De=this._options.proxy;if(!De)throw new Error("No proxy defined");var et=he.substring(0,256);return new Promise(function(qt,Fr){var sn=ss.SUPPORT_RESPONSE_TYPE?"blob":"text",yn=new XMLHttpRequest;yn.onload=function(){if(yn.status===200)if(sn==="text")qt(yn.response);else{var Si=new FileReader;Si.addEventListener("load",function(){return qt(Si.result)},!1),Si.addEventListener("error",function(Fi){return Fr(Fi)},!1),Si.readAsDataURL(yn.response)}else Fr("Failed to proxy resource "+et+" with status code "+yn.status)},yn.onerror=Fr;var kn=De.indexOf("?")>-1?"&":"?";if(yn.open("GET",""+De+kn+"url="+encodeURIComponent(he)+"&responseType="+sn),sn!=="text"&&yn instanceof XMLHttpRequest&&(yn.responseType=sn),Se._options.imageTimeout){var Pi=Se._options.imageTimeout;yn.timeout=Pi,yn.ontimeout=function(){return Fr("Timed out ("+Pi+"ms) proxying "+et)}}yn.send()})},sr}(),Ss=/^data:image\/svg\+xml/i,Hs=/^data:image\/.*;base64,/i,Ls=/^data:image\/.*/i,ul=function(he){return ss.SUPPORT_SVG_DRAWING||!cl(he)},Sl=function(he){return Ls.test(he)},tl=function(he){return Hs.test(he)},xl=function(he){return he.substr(0,4)==="blob"},cl=function(he){return he.substr(-3).toLowerCase()==="svg"||Ss.test(he)},Oa=function(){function sr(he,Se){this.type=0,this.x=he,this.y=Se}return sr.prototype.add=function(he,Se){return new sr(this.x+he,this.y+Se)},sr}(),ks=function(he,Se,De){return new Oa(he.x+(Se.x-he.x)*De,he.y+(Se.y-he.y)*De)},Ps=function(){function sr(he,Se,De,et){this.type=1,this.start=he,this.startControl=Se,this.endControl=De,this.end=et}return sr.prototype.subdivide=function(he,Se){var De=ks(this.start,this.startControl,he),et=ks(this.startControl,this.endControl,he),qt=ks(this.endControl,this.end,he),Fr=ks(De,et,he),sn=ks(et,qt,he),yn=ks(Fr,sn,he);return Se?new sr(this.start,De,Fr,yn):new sr(yn,sn,qt,this.end)},sr.prototype.add=function(he,Se){return new sr(this.start.add(he,Se),this.startControl.add(he,Se),this.endControl.add(he,Se),this.end.add(he,Se))},sr.prototype.reverse=function(){return new sr(this.end,this.endControl,this.startControl,this.start)},sr}(),Ys=function(he){return he.type===1},Lu=function(){function sr(he){var Se=he.styles,De=he.bounds,et=Ci(Se.borderTopLeftRadius,De.width,De.height),qt=et[0],Fr=et[1],sn=Ci(Se.borderTopRightRadius,De.width,De.height),yn=sn[0],kn=sn[1],Pi=Ci(Se.borderBottomRightRadius,De.width,De.height),Si=Pi[0],Fi=Pi[1],Na=Ci(Se.borderBottomLeftRadius,De.width,De.height),ja=Na[0],no=Na[1],Xo=[];Xo.push((qt+yn)/De.width),Xo.push((ja+Si)/De.width),Xo.push((Fr+no)/De.height),Xo.push((kn+Fi)/De.height);var Lo=Math.max.apply(Math,Xo);Lo>1&&(qt/=Lo,Fr/=Lo,yn/=Lo,kn/=Lo,Si/=Lo,Fi/=Lo,ja/=Lo,no/=Lo);var Co=De.width-yn,xs=De.height-Fi,Ns=De.width-Si,vs=De.height-no,xo=Se.borderTopWidth,Fs=Se.borderRightWidth,Ks=Se.borderBottomWidth,As=Se.borderLeftWidth,pu=Jn(Se.paddingTop,he.bounds.width),xu=Jn(Se.paddingRight,he.bounds.width),mu=Jn(Se.paddingBottom,he.bounds.width),Ml=Jn(Se.paddingLeft,he.bounds.width);this.topLeftBorderDoubleOuterBox=qt>0||Fr>0?ts(De.left+As/3,De.top+xo/3,qt-As/3,Fr-xo/3,gs.TOP_LEFT):new Oa(De.left+As/3,De.top+xo/3),this.topRightBorderDoubleOuterBox=qt>0||Fr>0?ts(De.left+Co,De.top+xo/3,yn-Fs/3,kn-xo/3,gs.TOP_RIGHT):new Oa(De.left+De.width-Fs/3,De.top+xo/3),this.bottomRightBorderDoubleOuterBox=Si>0||Fi>0?ts(De.left+Ns,De.top+xs,Si-Fs/3,Fi-Ks/3,gs.BOTTOM_RIGHT):new Oa(De.left+De.width-Fs/3,De.top+De.height-Ks/3),this.bottomLeftBorderDoubleOuterBox=ja>0||no>0?ts(De.left+As/3,De.top+vs,ja-As/3,no-Ks/3,gs.BOTTOM_LEFT):new Oa(De.left+As/3,De.top+De.height-Ks/3),this.topLeftBorderDoubleInnerBox=qt>0||Fr>0?ts(De.left+As*2/3,De.top+xo*2/3,qt-As*2/3,Fr-xo*2/3,gs.TOP_LEFT):new Oa(De.left+As*2/3,De.top+xo*2/3),this.topRightBorderDoubleInnerBox=qt>0||Fr>0?ts(De.left+Co,De.top+xo*2/3,yn-Fs*2/3,kn-xo*2/3,gs.TOP_RIGHT):new Oa(De.left+De.width-Fs*2/3,De.top+xo*2/3),this.bottomRightBorderDoubleInnerBox=Si>0||Fi>0?ts(De.left+Ns,De.top+xs,Si-Fs*2/3,Fi-Ks*2/3,gs.BOTTOM_RIGHT):new Oa(De.left+De.width-Fs*2/3,De.top+De.height-Ks*2/3),this.bottomLeftBorderDoubleInnerBox=ja>0||no>0?ts(De.left+As*2/3,De.top+vs,ja-As*2/3,no-Ks*2/3,gs.BOTTOM_LEFT):new Oa(De.left+As*2/3,De.top+De.height-Ks*2/3),this.topLeftBorderStroke=qt>0||Fr>0?ts(De.left+As/2,De.top+xo/2,qt-As/2,Fr-xo/2,gs.TOP_LEFT):new Oa(De.left+As/2,De.top+xo/2),this.topRightBorderStroke=qt>0||Fr>0?ts(De.left+Co,De.top+xo/2,yn-Fs/2,kn-xo/2,gs.TOP_RIGHT):new Oa(De.left+De.width-Fs/2,De.top+xo/2),this.bottomRightBorderStroke=Si>0||Fi>0?ts(De.left+Ns,De.top+xs,Si-Fs/2,Fi-Ks/2,gs.BOTTOM_RIGHT):new Oa(De.left+De.width-Fs/2,De.top+De.height-Ks/2),this.bottomLeftBorderStroke=ja>0||no>0?ts(De.left+As/2,De.top+vs,ja-As/2,no-Ks/2,gs.BOTTOM_LEFT):new Oa(De.left+As/2,De.top+De.height-Ks/2),this.topLeftBorderBox=qt>0||Fr>0?ts(De.left,De.top,qt,Fr,gs.TOP_LEFT):new Oa(De.left,De.top),this.topRightBorderBox=yn>0||kn>0?ts(De.left+Co,De.top,yn,kn,gs.TOP_RIGHT):new Oa(De.left+De.width,De.top),this.bottomRightBorderBox=Si>0||Fi>0?ts(De.left+Ns,De.top+xs,Si,Fi,gs.BOTTOM_RIGHT):new Oa(De.left+De.width,De.top+De.height),this.bottomLeftBorderBox=ja>0||no>0?ts(De.left,De.top+vs,ja,no,gs.BOTTOM_LEFT):new Oa(De.left,De.top+De.height),this.topLeftPaddingBox=qt>0||Fr>0?ts(De.left+As,De.top+xo,Math.max(0,qt-As),Math.max(0,Fr-xo),gs.TOP_LEFT):new Oa(De.left+As,De.top+xo),this.topRightPaddingBox=yn>0||kn>0?ts(De.left+Math.min(Co,De.width-Fs),De.top+xo,Co>De.width+Fs?0:Math.max(0,yn-Fs),Math.max(0,kn-xo),gs.TOP_RIGHT):new Oa(De.left+De.width-Fs,De.top+xo),this.bottomRightPaddingBox=Si>0||Fi>0?ts(De.left+Math.min(Ns,De.width-As),De.top+Math.min(xs,De.height-Ks),Math.max(0,Si-Fs),Math.max(0,Fi-Ks),gs.BOTTOM_RIGHT):new Oa(De.left+De.width-Fs,De.top+De.height-Ks),this.bottomLeftPaddingBox=ja>0||no>0?ts(De.left+As,De.top+Math.min(vs,De.height-Ks),Math.max(0,ja-As),Math.max(0,no-Ks),gs.BOTTOM_LEFT):new Oa(De.left+As,De.top+De.height-Ks),this.topLeftContentBox=qt>0||Fr>0?ts(De.left+As+Ml,De.top+xo+pu,Math.max(0,qt-(As+Ml)),Math.max(0,Fr-(xo+pu)),gs.TOP_LEFT):new Oa(De.left+As+Ml,De.top+xo+pu),this.topRightContentBox=yn>0||kn>0?ts(De.left+Math.min(Co,De.width+As+Ml),De.top+xo+pu,Co>De.width+As+Ml?0:yn-As+Ml,kn-(xo+pu),gs.TOP_RIGHT):new Oa(De.left+De.width-(Fs+xu),De.top+xo+pu),this.bottomRightContentBox=Si>0||Fi>0?ts(De.left+Math.min(Ns,De.width-(As+Ml)),De.top+Math.min(xs,De.height+xo+pu),Math.max(0,Si-(Fs+xu)),Fi-(Ks+mu),gs.BOTTOM_RIGHT):new Oa(De.left+De.width-(Fs+xu),De.top+De.height-(Ks+mu)),this.bottomLeftContentBox=ja>0||no>0?ts(De.left+As+Ml,De.top+vs,Math.max(0,ja-(As+Ml)),no-(Ks+mu),gs.BOTTOM_LEFT):new Oa(De.left+As+Ml,De.top+De.height-(Ks+mu))}return sr}(),gs;(function(sr){sr[sr.TOP_LEFT=0]="TOP_LEFT",sr[sr.TOP_RIGHT=1]="TOP_RIGHT",sr[sr.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",sr[sr.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(gs||(gs={}));var ts=function(he,Se,De,et,qt){var Fr=4*((Math.sqrt(2)-1)/3),sn=De*Fr,yn=et*Fr,kn=he+De,Pi=Se+et;switch(qt){case gs.TOP_LEFT:return new Ps(new Oa(he,Pi),new Oa(he,Pi-yn),new Oa(kn-sn,Se),new Oa(kn,Se));case gs.TOP_RIGHT:return new Ps(new Oa(he,Se),new Oa(he+sn,Se),new Oa(kn,Pi-yn),new Oa(kn,Pi));case gs.BOTTOM_RIGHT:return new Ps(new Oa(kn,Se),new Oa(kn,Se+yn),new Oa(he+sn,Pi),new Oa(he,Pi));case gs.BOTTOM_LEFT:default:return new Ps(new Oa(kn,Pi),new Oa(kn-sn,Pi),new Oa(he,Se+yn),new Oa(he,Se))}},zl=function(he){return[he.topLeftBorderBox,he.topRightBorderBox,he.bottomRightBorderBox,he.bottomLeftBorderBox]},yl=function(he){return[he.topLeftContentBox,he.topRightContentBox,he.bottomRightContentBox,he.bottomLeftContentBox]},Nu=function(he){return[he.topLeftPaddingBox,he.topRightPaddingBox,he.bottomRightPaddingBox,he.bottomLeftPaddingBox]},du=function(){function sr(he,Se,De){this.offsetX=he,this.offsetY=Se,this.matrix=De,this.type=0,this.target=2|4}return sr}(),Vl=function(){function sr(he,Se){this.path=he,this.target=Se,this.type=1}return sr}(),Su=function(){function sr(he){this.opacity=he,this.type=2,this.target=2|4}return sr}(),Il=function(he){return he.type===0},hu=function(he){return he.type===1},ju=function(he){return he.type===2},Qu=function(he,Se){return he.length===Se.length?he.some(function(De,et){return De===Se[et]}):!1},vc=function(he,Se,De,et,qt){return he.map(function(Fr,sn){switch(sn){case 0:return Fr.add(Se,De);case 1:return Fr.add(Se+et,De);case 2:return Fr.add(Se+et,De+qt);case 3:return Fr.add(Se,De+qt)}return Fr})},Ac=function(){function sr(he){this.element=he,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return sr}(),tc=function(){function sr(he,Se){if(this.container=he,this.parent=Se,this.effects=[],this.curves=new Lu(this.container),this.container.styles.opacity<1&&this.effects.push(new Su(this.container.styles.opacity)),this.container.styles.transform!==null){var De=this.container.bounds.left+this.container.styles.transformOrigin[0].number,et=this.container.bounds.top+this.container.styles.transformOrigin[1].number,qt=this.container.styles.transform;this.effects.push(new du(De,et,qt))}if(this.container.styles.overflowX!==0){var Fr=zl(this.curves),sn=Nu(this.curves);Qu(Fr,sn)?this.effects.push(new Vl(Fr,2|4)):(this.effects.push(new Vl(Fr,2)),this.effects.push(new Vl(sn,4)))}}return sr.prototype.getEffects=function(he){for(var Se=[2,3].indexOf(this.container.styles.position)===-1,De=this.parent,et=this.effects.slice(0);De;){var qt=De.effects.filter(function(yn){return!hu(yn)});if(Se||De.container.styles.position!==0||!De.parent){if(et.unshift.apply(et,qt),Se=[2,3].indexOf(De.container.styles.position)===-1,De.container.styles.overflowX!==0){var Fr=zl(De.curves),sn=Nu(De.curves);Qu(Fr,sn)||et.unshift(new Vl(sn,2|4))}}else et.unshift.apply(et,qt);De=De.parent}return et.filter(function(yn){return Vi(yn.target,he)})},sr}(),yc=function sr(he,Se,De,et){he.container.elements.forEach(function(qt){var Fr=Vi(qt.flags,4),sn=Vi(qt.flags,2),yn=new tc(qt,he);Vi(qt.styles.display,2048)&&et.push(yn);var kn=Vi(qt.flags,8)?[]:et;if(Fr||sn){var Pi=Fr||qt.styles.isPositioned()?De:Se,Si=new Ac(yn);if(qt.styles.isPositioned()||qt.styles.opacity<1||qt.styles.isTransformed()){var Fi=qt.styles.zIndex.order;if(Fi<0){var Na=0;Pi.negativeZIndex.some(function(no,Xo){return Fi>no.element.container.styles.zIndex.order?(Na=Xo,!1):Na>0}),Pi.negativeZIndex.splice(Na,0,Si)}else if(Fi>0){var ja=0;Pi.positiveZIndex.some(function(no,Xo){return Fi>=no.element.container.styles.zIndex.order?(ja=Xo+1,!1):ja>0}),Pi.positiveZIndex.splice(ja,0,Si)}else Pi.zeroOrAutoZIndexOrTransformedOrOpacity.push(Si)}else qt.styles.isFloating()?Pi.nonPositionedFloats.push(Si):Pi.nonPositionedInlineLevel.push(Si);sr(yn,Si,Fr?Si:De,kn)}else qt.styles.isInlineLevel()?Se.inlineLevel.push(yn):Se.nonInlineLevel.push(yn),sr(yn,Se,De,kn);Vi(qt.flags,8)&&sc(qt,kn)})},sc=function(he,Se){for(var De=he instanceof Bl?he.start:1,et=he instanceof Bl?he.reversed:!1,qt=0;qt<Se.length;qt++){var Fr=Se[qt];Fr.container instanceof js&&typeof Fr.container.value=="number"&&Fr.container.value!==0&&(De=Fr.container.value),Fr.listValue=$(De,Fr.container.styles.listStyleType,!0),De+=et?-1:1}},Du=function(he){var Se=new tc(he,null),De=new Ac(Se),et=[];return yc(Se,De,De,et),sc(Se.container,et),De},hc=function(he,Se){switch(Se){case 0:return fu(he.topLeftBorderBox,he.topLeftPaddingBox,he.topRightBorderBox,he.topRightPaddingBox);case 1:return fu(he.topRightBorderBox,he.topRightPaddingBox,he.bottomRightBorderBox,he.bottomRightPaddingBox);case 2:return fu(he.bottomRightBorderBox,he.bottomRightPaddingBox,he.bottomLeftBorderBox,he.bottomLeftPaddingBox);case 3:default:return fu(he.bottomLeftBorderBox,he.bottomLeftPaddingBox,he.topLeftBorderBox,he.topLeftPaddingBox)}},bc=function(he,Se){switch(Se){case 0:return fu(he.topLeftBorderBox,he.topLeftBorderDoubleOuterBox,he.topRightBorderBox,he.topRightBorderDoubleOuterBox);case 1:return fu(he.topRightBorderBox,he.topRightBorderDoubleOuterBox,he.bottomRightBorderBox,he.bottomRightBorderDoubleOuterBox);case 2:return fu(he.bottomRightBorderBox,he.bottomRightBorderDoubleOuterBox,he.bottomLeftBorderBox,he.bottomLeftBorderDoubleOuterBox);case 3:default:return fu(he.bottomLeftBorderBox,he.bottomLeftBorderDoubleOuterBox,he.topLeftBorderBox,he.topLeftBorderDoubleOuterBox)}},Tc=function(he,Se){switch(Se){case 0:return fu(he.topLeftBorderDoubleInnerBox,he.topLeftPaddingBox,he.topRightBorderDoubleInnerBox,he.topRightPaddingBox);case 1:return fu(he.topRightBorderDoubleInnerBox,he.topRightPaddingBox,he.bottomRightBorderDoubleInnerBox,he.bottomRightPaddingBox);case 2:return fu(he.bottomRightBorderDoubleInnerBox,he.bottomRightPaddingBox,he.bottomLeftBorderDoubleInnerBox,he.bottomLeftPaddingBox);case 3:default:return fu(he.bottomLeftBorderDoubleInnerBox,he.bottomLeftPaddingBox,he.topLeftBorderDoubleInnerBox,he.topLeftPaddingBox)}},wc=function(he,Se){switch(Se){case 0:return Tu(he.topLeftBorderStroke,he.topRightBorderStroke);case 1:return Tu(he.topRightBorderStroke,he.bottomRightBorderStroke);case 2:return Tu(he.bottomRightBorderStroke,he.bottomLeftBorderStroke);case 3:default:return Tu(he.bottomLeftBorderStroke,he.topLeftBorderStroke)}},Tu=function(he,Se){var De=[];return Ys(he)?De.push(he.subdivide(.5,!1)):De.push(he),Ys(Se)?De.push(Se.subdivide(.5,!0)):De.push(Se),De},fu=function(he,Se,De,et){var qt=[];return Ys(he)?qt.push(he.subdivide(.5,!1)):qt.push(he),Ys(De)?qt.push(De.subdivide(.5,!0)):qt.push(De),Ys(et)?qt.push(et.subdivide(.5,!0).reverse()):qt.push(et),Ys(Se)?qt.push(Se.subdivide(.5,!1).reverse()):qt.push(Se),qt},fc=function(he){var Se=he.bounds,De=he.styles;return Se.add(De.borderLeftWidth,De.borderTopWidth,-(De.borderRightWidth+De.borderLeftWidth),-(De.borderTopWidth+De.borderBottomWidth))},lc=function(he){var Se=he.styles,De=he.bounds,et=Jn(Se.paddingLeft,De.width),qt=Jn(Se.paddingRight,De.width),Fr=Jn(Se.paddingTop,De.width),sn=Jn(Se.paddingBottom,De.width);return De.add(et+Se.borderLeftWidth,Fr+Se.borderTopWidth,-(Se.borderRightWidth+Se.borderLeftWidth+et+qt),-(Se.borderTopWidth+Se.borderBottomWidth+Fr+sn))},Sc=function(he,Se){return he===0?Se.bounds:he===2?lc(Se):fc(Se)},Cc=function(he,Se){return he===0?Se.bounds:he===2?lc(Se):fc(Se)},Hu=function(he,Se,De){var et=Sc(au(he.styles.backgroundOrigin,Se),he),qt=Cc(au(he.styles.backgroundClip,Se),he),Fr=Cu(au(he.styles.backgroundSize,Se),De,et),sn=Fr[0],yn=Fr[1],kn=Ci(au(he.styles.backgroundPosition,Se),et.width-sn,et.height-yn),Pi=Mu(au(he.styles.backgroundRepeat,Se),kn,Fr,et,qt),Si=Math.round(et.left+kn[0]),Fi=Math.round(et.top+kn[1]);return[Pi,Si,Fi,sn,yn]},Ru=function(he){return wo(he)&&he.value===Gn.AUTO},Ku=function(he){return typeof he=="number"},Cu=function(he,Se,De){var et=Se[0],qt=Se[1],Fr=Se[2],sn=he[0],yn=he[1];if(!sn)return[0,0];if(ur(sn)&&yn&&ur(yn))return[Jn(sn,De.width),Jn(yn,De.height)];var kn=Ku(Fr);if(wo(sn)&&(sn.value===Gn.CONTAIN||sn.value===Gn.COVER)){if(Ku(Fr)){var Pi=De.width/De.height;return Pi<Fr!==(sn.value===Gn.COVER)?[De.width,De.width/Fr]:[De.height*Fr,De.height]}return[De.width,De.height]}var Si=Ku(et),Fi=Ku(qt),Na=Si||Fi;if(Ru(sn)&&(!yn||Ru(yn))){if(Si&&Fi)return[et,qt];if(!kn&&!Na)return[De.width,De.height];if(Na&&kn){var ja=Si?et:qt*Fr,no=Fi?qt:et/Fr;return[ja,no]}var Xo=Si?et:De.width,Lo=Fi?qt:De.height;return[Xo,Lo]}if(kn){var Co=0,xs=0;return ur(sn)?Co=Jn(sn,De.width):ur(yn)&&(xs=Jn(yn,De.height)),Ru(sn)?Co=xs*Fr:(!yn||Ru(yn))&&(xs=Co/Fr),[Co,xs]}var Ns=null,vs=null;if(ur(sn)?Ns=Jn(sn,De.width):yn&&ur(yn)&&(vs=Jn(yn,De.height)),Ns!==null&&(!yn||Ru(yn))&&(vs=Si&&Fi?Ns/et*qt:De.height),vs!==null&&Ru(sn)&&(Ns=Si&&Fi?vs/qt*et:De.width),Ns!==null&&vs!==null)return[Ns,vs];throw new Error("Unable to calculate background-size for element")},au=function(he,Se){var De=he[Se];return typeof De=="undefined"?he[0]:De},Mu=function(he,Se,De,et,qt){var Fr=Se[0],sn=Se[1],yn=De[0],kn=De[1];switch(he){case 2:return[new Oa(Math.round(et.left),Math.round(et.top+sn)),new Oa(Math.round(et.left+et.width),Math.round(et.top+sn)),new Oa(Math.round(et.left+et.width),Math.round(kn+et.top+sn)),new Oa(Math.round(et.left),Math.round(kn+et.top+sn))];case 3:return[new Oa(Math.round(et.left+Fr),Math.round(et.top)),new Oa(Math.round(et.left+Fr+yn),Math.round(et.top)),new Oa(Math.round(et.left+Fr+yn),Math.round(et.height+et.top)),new Oa(Math.round(et.left+Fr),Math.round(et.height+et.top))];case 1:return[new Oa(Math.round(et.left+Fr),Math.round(et.top+sn)),new Oa(Math.round(et.left+Fr+yn),Math.round(et.top+sn)),new Oa(Math.round(et.left+Fr+yn),Math.round(et.top+sn+kn)),new Oa(Math.round(et.left+Fr),Math.round(et.top+sn+kn))];default:return[new Oa(Math.round(qt.left),Math.round(qt.top)),new Oa(Math.round(qt.left+qt.width),Math.round(qt.top)),new Oa(Math.round(qt.left+qt.width),Math.round(qt.height+qt.top)),new Oa(Math.round(qt.left),Math.round(qt.height+qt.top))]}},uc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",cc="Hidden Text",xc=function(){function sr(he){this._data={},this._document=he}return sr.prototype.parseMetrics=function(he,Se){var De=this._document.createElement("div"),et=this._document.createElement("img"),qt=this._document.createElement("span"),Fr=this._document.body;De.style.visibility="hidden",De.style.fontFamily=he,De.style.fontSize=Se,De.style.margin="0",De.style.padding="0",De.style.whiteSpace="nowrap",Fr.appendChild(De),et.src=uc,et.width=1,et.height=1,et.style.margin="0",et.style.padding="0",et.style.verticalAlign="baseline",qt.style.fontFamily=he,qt.style.fontSize=Se,qt.style.margin="0",qt.style.padding="0",qt.appendChild(this._document.createTextNode(cc)),De.appendChild(qt),De.appendChild(et);var sn=et.offsetTop-qt.offsetTop+2;De.removeChild(qt),De.appendChild(this._document.createTextNode(cc)),De.style.lineHeight="normal",et.style.verticalAlign="super";var yn=et.offsetTop-De.offsetTop+2;return Fr.removeChild(De),{baseline:sn,middle:yn}},sr.prototype.getMetrics=function(he,Se){var De=he+" "+Se;return typeof this._data[De]=="undefined"&&(this._data[De]=this.parseMetrics(he,Se)),this._data[De]},sr}(),Ec=function(){function sr(he,Se){this.context=he,this.options=Se}return sr}(),pc=1e4,mc=function(sr){x(he,sr);function he(Se,De){var et=sr.call(this,Se,De)||this;return et._activeEffects=[],et.canvas=De.canvas?De.canvas:document.createElement("canvas"),et.ctx=et.canvas.getContext("2d"),De.canvas||(et.canvas.width=Math.floor(De.width*De.scale),et.canvas.height=Math.floor(De.height*De.scale),et.canvas.style.width=De.width+"px",et.canvas.style.height=De.height+"px"),et.fontMetrics=new xc(document),et.ctx.scale(et.options.scale,et.options.scale),et.ctx.translate(-De.x,-De.y),et.ctx.textBaseline="bottom",et._activeEffects=[],et.context.logger.debug("Canvas renderer initialized ("+De.width+"x"+De.height+") with scale "+De.scale),et}return he.prototype.applyEffects=function(Se){for(var De=this;this._activeEffects.length;)this.popEffect();Se.forEach(function(et){return De.applyEffect(et)})},he.prototype.applyEffect=function(Se){this.ctx.save(),ju(Se)&&(this.ctx.globalAlpha=Se.opacity),Il(Se)&&(this.ctx.translate(Se.offsetX,Se.offsetY),this.ctx.transform(Se.matrix[0],Se.matrix[1],Se.matrix[2],Se.matrix[3],Se.matrix[4],Se.matrix[5]),this.ctx.translate(-Se.offsetX,-Se.offsetY)),hu(Se)&&(this.path(Se.path),this.ctx.clip()),this._activeEffects.push(Se)},he.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},he.prototype.renderStack=function(Se){return A(this,void 0,void 0,function(){var De;return S(this,function(et){switch(et.label){case 0:return De=Se.element.container.styles,De.isVisible()?[4,this.renderStackContent(Se)]:[3,2];case 1:et.sent(),et.label=2;case 2:return[2]}})})},he.prototype.renderNode=function(Se){return A(this,void 0,void 0,function(){return S(this,function(De){switch(De.label){case 0:if(Vi(Se.container.flags,16))debugger;return Se.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(Se)]:[3,3];case 1:return De.sent(),[4,this.renderNodeContent(Se)];case 2:De.sent(),De.label=3;case 3:return[2]}})})},he.prototype.renderTextWithLetterSpacing=function(Se,De,et){var qt=this;if(De===0)this.ctx.fillText(Se.text,Se.bounds.left,Se.bounds.top+et);else{var Fr=Yl(Se.text);Fr.reduce(function(sn,yn){return qt.ctx.fillText(yn,sn,Se.bounds.top+et),sn+qt.ctx.measureText(yn).width},Se.bounds.left)}},he.prototype.createFontStyle=function(Se){var De=Se.fontVariant.filter(function(Fr){return Fr==="normal"||Fr==="small-caps"}).join(""),et=Nc(Se.fontFamily).join(", "),qt=hs(Se.fontSize)?""+Se.fontSize.number+Se.fontSize.unit:Se.fontSize.number+"px";return[[Se.fontStyle,De,Se.fontWeight,qt,et].join(" "),et,qt]},he.prototype.renderTextNode=function(Se,De){return A(this,void 0,void 0,function(){var et,qt,Fr,sn,yn,kn,Pi,Si,Fi=this;return S(this,function(Na){return et=this.createFontStyle(De),qt=et[0],Fr=et[1],sn=et[2],this.ctx.font=qt,this.ctx.direction=De.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",yn=this.fontMetrics.getMetrics(Fr,sn),kn=yn.baseline,Pi=yn.middle,Si=De.paintOrder,Se.textBounds.forEach(function(ja){Si.forEach(function(no){switch(no){case 0:Fi.ctx.fillStyle=Xt(De.color),Fi.renderTextWithLetterSpacing(ja,De.letterSpacing,kn);var Xo=De.textShadow;Xo.length&&ja.text.trim().length&&(Xo.slice(0).reverse().forEach(function(Lo){Fi.ctx.shadowColor=Xt(Lo.color),Fi.ctx.shadowOffsetX=Lo.offsetX.number*Fi.options.scale,Fi.ctx.shadowOffsetY=Lo.offsetY.number*Fi.options.scale,Fi.ctx.shadowBlur=Lo.blur.number,Fi.renderTextWithLetterSpacing(ja,De.letterSpacing,kn)}),Fi.ctx.shadowColor="",Fi.ctx.shadowOffsetX=0,Fi.ctx.shadowOffsetY=0,Fi.ctx.shadowBlur=0),De.textDecorationLine.length&&(Fi.ctx.fillStyle=Xt(De.textDecorationColor||De.color),De.textDecorationLine.forEach(function(Lo){switch(Lo){case 1:Fi.ctx.fillRect(ja.bounds.left,Math.round(ja.bounds.top+kn),ja.bounds.width,1);break;case 2:Fi.ctx.fillRect(ja.bounds.left,Math.round(ja.bounds.top),ja.bounds.width,1);break;case 3:Fi.ctx.fillRect(ja.bounds.left,Math.ceil(ja.bounds.top+Pi),ja.bounds.width,1);break}}));break;case 1:De.webkitTextStrokeWidth&&ja.text.trim().length&&(Fi.ctx.strokeStyle=Xt(De.webkitTextStrokeColor),Fi.ctx.lineWidth=De.webkitTextStrokeWidth,Fi.ctx.lineJoin=window.chrome?"miter":"round",Fi.ctx.strokeText(ja.text,ja.bounds.left,ja.bounds.top+kn)),Fi.ctx.strokeStyle="",Fi.ctx.lineWidth=0,Fi.ctx.lineJoin="miter";break}})}),[2]})})},he.prototype.renderReplacedElement=function(Se,De,et){if(et&&Se.intrinsicWidth>0&&Se.intrinsicHeight>0){var qt=lc(Se),Fr=Nu(De);this.path(Fr),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(et,0,0,Se.intrinsicWidth,Se.intrinsicHeight,qt.left,qt.top,qt.width,qt.height),this.ctx.restore()}},he.prototype.renderNodeContent=function(Se){return A(this,void 0,void 0,function(){var De,et,qt,Fr,sn,yn,kn,kn,Pi,Si,Fi,Na,ja,no,Xo,Lo,Co,xs,Ns,kn,vs,ja,Lo;return S(this,function(xo){switch(xo.label){case 0:this.applyEffects(Se.getEffects(4)),De=Se.container,et=Se.curves,qt=De.styles,Fr=0,sn=De.textNodes,xo.label=1;case 1:return Fr<sn.length?(yn=sn[Fr],[4,this.renderTextNode(yn,qt)]):[3,4];case 2:xo.sent(),xo.label=3;case 3:return Fr++,[3,1];case 4:if(!(De instanceof $a))return[3,8];xo.label=5;case 5:return xo.trys.push([5,7,,8]),[4,this.context.cache.match(De.src)];case 6:return kn=xo.sent(),this.renderReplacedElement(De,et,kn),[3,8];case 7:return xo.sent(),this.context.logger.error("Error loading image "+De.src),[3,8];case 8:if(De instanceof Eo&&this.renderReplacedElement(De,et,De.canvas),!(De instanceof Ko))return[3,12];xo.label=9;case 9:return xo.trys.push([9,11,,12]),[4,this.context.cache.match(De.svg)];case 10:return kn=xo.sent(),this.renderReplacedElement(De,et,kn),[3,12];case 11:return xo.sent(),this.context.logger.error("Error loading svg "+De.svg.substring(0,255)),[3,12];case 12:return De instanceof Fu&&De.tree?(Pi=new he(this.context,{scale:this.options.scale,backgroundColor:De.backgroundColor,x:0,y:0,width:De.width,height:De.height}),[4,Pi.render(De.tree)]):[3,14];case 13:Si=xo.sent(),De.width&&De.height&&this.ctx.drawImage(Si,0,0,De.width,De.height,De.bounds.left,De.bounds.top,De.bounds.width,De.bounds.height),xo.label=14;case 14:if(De instanceof Au&&(Fi=Math.min(De.bounds.width,De.bounds.height),De.type===Hl?De.checked&&(this.ctx.save(),this.path([new Oa(De.bounds.left+Fi*.39363,De.bounds.top+Fi*.79),new Oa(De.bounds.left+Fi*.16,De.bounds.top+Fi*.5549),new Oa(De.bounds.left+Fi*.27347,De.bounds.top+Fi*.44071),new Oa(De.bounds.left+Fi*.39694,De.bounds.top+Fi*.5649),new Oa(De.bounds.left+Fi*.72983,De.bounds.top+Fi*.23),new Oa(De.bounds.left+Fi*.84,De.bounds.top+Fi*.34085),new Oa(De.bounds.left+Fi*.39363,De.bounds.top+Fi*.79)]),this.ctx.fillStyle=Xt(wu),this.ctx.fill(),this.ctx.restore()):De.type===Vs&&(De.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(De.bounds.left+Fi/2,De.bounds.top+Fi/2,Fi/4,0,Math.PI*2,!0),this.ctx.fillStyle=Xt(wu),this.ctx.fill(),this.ctx.restore()))),_c(De)&&De.value.length){Na=this.createFontStyle(qt),ja=Na[0],no=Na[1],Xo=this.fontMetrics.getMetrics(ja,no).baseline,this.ctx.font=ja,this.ctx.fillStyle=Xt(qt.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ic(De.styles.textAlign),Lo=lc(De),Co=0;switch(De.styles.textAlign){case 1:Co+=Lo.width/2;break;case 2:Co+=Lo.width;break}xs=Lo.add(Co,0,0,-Lo.height/2+1),this.ctx.save(),this.path([new Oa(Lo.left,Lo.top),new Oa(Lo.left+Lo.width,Lo.top),new Oa(Lo.left+Lo.width,Lo.top+Lo.height),new Oa(Lo.left,Lo.top+Lo.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Is(De.value,xs),qt.letterSpacing,Xo),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Vi(De.styles.display,2048))return[3,20];if(!(De.styles.listStyleImage!==null))return[3,19];if(Ns=De.styles.listStyleImage,!(Ns.type===0))return[3,18];kn=void 0,vs=Ns.url,xo.label=15;case 15:return xo.trys.push([15,17,,18]),[4,this.context.cache.match(vs)];case 16:return kn=xo.sent(),this.ctx.drawImage(kn,De.bounds.left-(kn.width+10),De.bounds.top),[3,18];case 17:return xo.sent(),this.context.logger.error("Error loading list-style-image "+vs),[3,18];case 18:return[3,20];case 19:Se.listValue&&De.styles.listStyleType!==-1&&(ja=this.createFontStyle(qt)[0],this.ctx.font=ja,this.ctx.fillStyle=Xt(qt.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Lo=new f(De.bounds.left,De.bounds.top+Jn(De.styles.paddingTop,De.bounds.width),De.bounds.width,fa(qt.lineHeight,qt.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Is(Se.listValue,Lo),qt.letterSpacing,fa(qt.lineHeight,qt.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),xo.label=20;case 20:return[2]}})})},he.prototype.renderStackContent=function(Se){return A(this,void 0,void 0,function(){var De,et,qt,Fr,sn,qt,yn,kn,qt,Pi,Si,qt,Fi,Na,qt,ja,no,qt,Xo,Lo,qt;return S(this,function(Co){switch(Co.label){case 0:if(Vi(Se.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(Se.element)];case 1:Co.sent(),De=0,et=Se.negativeZIndex,Co.label=2;case 2:return De<et.length?(qt=et[De],[4,this.renderStack(qt)]):[3,5];case 3:Co.sent(),Co.label=4;case 4:return De++,[3,2];case 5:return[4,this.renderNodeContent(Se.element)];case 6:Co.sent(),Fr=0,sn=Se.nonInlineLevel,Co.label=7;case 7:return Fr<sn.length?(qt=sn[Fr],[4,this.renderNode(qt)]):[3,10];case 8:Co.sent(),Co.label=9;case 9:return Fr++,[3,7];case 10:yn=0,kn=Se.nonPositionedFloats,Co.label=11;case 11:return yn<kn.length?(qt=kn[yn],[4,this.renderStack(qt)]):[3,14];case 12:Co.sent(),Co.label=13;case 13:return yn++,[3,11];case 14:Pi=0,Si=Se.nonPositionedInlineLevel,Co.label=15;case 15:return Pi<Si.length?(qt=Si[Pi],[4,this.renderStack(qt)]):[3,18];case 16:Co.sent(),Co.label=17;case 17:return Pi++,[3,15];case 18:Fi=0,Na=Se.inlineLevel,Co.label=19;case 19:return Fi<Na.length?(qt=Na[Fi],[4,this.renderNode(qt)]):[3,22];case 20:Co.sent(),Co.label=21;case 21:return Fi++,[3,19];case 22:ja=0,no=Se.zeroOrAutoZIndexOrTransformedOrOpacity,Co.label=23;case 23:return ja<no.length?(qt=no[ja],[4,this.renderStack(qt)]):[3,26];case 24:Co.sent(),Co.label=25;case 25:return ja++,[3,23];case 26:Xo=0,Lo=Se.positiveZIndex,Co.label=27;case 27:return Xo<Lo.length?(qt=Lo[Xo],[4,this.renderStack(qt)]):[3,30];case 28:Co.sent(),Co.label=29;case 29:return Xo++,[3,27];case 30:return[2]}})})},he.prototype.mask=function(Se){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(Se.slice(0).reverse()),this.ctx.closePath()},he.prototype.path=function(Se){this.ctx.beginPath(),this.formatPath(Se),this.ctx.closePath()},he.prototype.formatPath=function(Se){var De=this;Se.forEach(function(et,qt){var Fr=Ys(et)?et.start:et;qt===0?De.ctx.moveTo(Fr.x,Fr.y):De.ctx.lineTo(Fr.x,Fr.y),Ys(et)&&De.ctx.bezierCurveTo(et.startControl.x,et.startControl.y,et.endControl.x,et.endControl.y,et.end.x,et.end.y)})},he.prototype.renderRepeat=function(Se,De,et,qt){this.path(Se),this.ctx.fillStyle=De,this.ctx.translate(et,qt),this.ctx.fill(),this.ctx.translate(-et,-qt)},he.prototype.resizeImage=function(Se,De,et){var qt;if(Se.width===De&&Se.height===et)return Se;var Fr=(qt=this.canvas.ownerDocument)!==null&&qt!==void 0?qt:document,sn=Fr.createElement("canvas");sn.width=Math.max(1,De),sn.height=Math.max(1,et);var yn=sn.getContext("2d");return yn.drawImage(Se,0,0,Se.width,Se.height,0,0,De,et),sn},he.prototype.renderBackgroundImage=function(Se){return A(this,void 0,void 0,function(){var De,et,qt,Fr,sn,yn;return S(this,function(kn){switch(kn.label){case 0:De=Se.styles.backgroundImage.length-1,et=function(Si){var Fi,Na,ja,no,Xo,Lo,Co,xs,Ns,vs,no,Xo,Lo,Co,xs,xo,Fs,Ks,As,pu,xu,mu,Ml,rc,Ns,Pu,no,Ju,Zu,Co,xs,$u,Xo,Lo,nc,ku,qu,ic,ac,Wu,oc,zu;return S(this,function(dc){switch(dc.label){case 0:if(!(Si.type===0))return[3,5];Fi=void 0,Na=Si.url,dc.label=1;case 1:return dc.trys.push([1,3,,4]),[4,qt.context.cache.match(Na)];case 2:return Fi=dc.sent(),[3,4];case 3:return dc.sent(),qt.context.logger.error("Error loading background-image "+Na),[3,4];case 4:return Fi&&(ja=Hu(Se,De,[Fi.width,Fi.height,Fi.width/Fi.height]),no=ja[0],Xo=ja[1],Lo=ja[2],Co=ja[3],xs=ja[4],Ns=qt.ctx.createPattern(qt.resizeImage(Fi,Co,xs),"repeat"),qt.renderRepeat(no,Ns,Xo,Lo)),[3,6];case 5:hr(Si)?(vs=Hu(Se,De,[null,null,null]),no=vs[0],Xo=vs[1],Lo=vs[2],Co=vs[3],xs=vs[4],xo=Lr(Si.angle,Co,xs),Fs=xo[0],Ks=xo[1],As=xo[2],pu=xo[3],xu=xo[4],mu=document.createElement("canvas"),mu.width=Co,mu.height=xs,Ml=mu.getContext("2d"),rc=Ml.createLinearGradient(Ks,pu,As,xu),Zt(Si.stops,Fs).forEach(function(gc){return rc.addColorStop(gc.stop,Xt(gc.color))}),Ml.fillStyle=rc,Ml.fillRect(0,0,Co,xs),Co>0&&xs>0&&(Ns=qt.ctx.createPattern(mu,"repeat"),qt.renderRepeat(no,Ns,Xo,Lo))):An(Si)&&(Pu=Hu(Se,De,[null,null,null]),no=Pu[0],Ju=Pu[1],Zu=Pu[2],Co=Pu[3],xs=Pu[4],$u=Si.position.length===0?[Hn]:Si.position,Xo=Jn($u[0],Co),Lo=Jn($u[$u.length-1],xs),nc=Cn(Si,Xo,Lo,Co,xs),ku=nc[0],qu=nc[1],ku>0&&qu>0&&(ic=qt.ctx.createRadialGradient(Ju+Xo,Zu+Lo,0,Ju+Xo,Zu+Lo,ku),Zt(Si.stops,ku*2).forEach(function(gc){return ic.addColorStop(gc.stop,Xt(gc.color))}),qt.path(no),qt.ctx.fillStyle=ic,ku!==qu?(ac=Se.bounds.left+.5*Se.bounds.width,Wu=Se.bounds.top+.5*Se.bounds.height,oc=qu/ku,zu=1/oc,qt.ctx.save(),qt.ctx.translate(ac,Wu),qt.ctx.transform(1,0,0,oc,0,0),qt.ctx.translate(-ac,-Wu),qt.ctx.fillRect(Ju,zu*(Zu-Wu)+Wu,Co,xs*zu),qt.ctx.restore()):qt.ctx.fill())),dc.label=6;case 6:return De--,[2]}})},qt=this,Fr=0,sn=Se.styles.backgroundImage.slice(0).reverse(),kn.label=1;case 1:return Fr<sn.length?(yn=sn[Fr],[5,et(yn)]):[3,4];case 2:kn.sent(),kn.label=3;case 3:return Fr++,[3,1];case 4:return[2]}})})},he.prototype.renderSolidBorder=function(Se,De,et){return A(this,void 0,void 0,function(){return S(this,function(qt){return this.path(hc(et,De)),this.ctx.fillStyle=Xt(Se),this.ctx.fill(),[2]})})},he.prototype.renderDoubleBorder=function(Se,De,et,qt){return A(this,void 0,void 0,function(){var Fr,sn;return S(this,function(yn){switch(yn.label){case 0:return De<3?[4,this.renderSolidBorder(Se,et,qt)]:[3,2];case 1:return yn.sent(),[2];case 2:return Fr=bc(qt,et),this.path(Fr),this.ctx.fillStyle=Xt(Se),this.ctx.fill(),sn=Tc(qt,et),this.path(sn),this.ctx.fill(),[2]}})})},he.prototype.renderNodeBackgroundAndBorders=function(Se){return A(this,void 0,void 0,function(){var De,et,qt,Fr,sn,yn,kn,Pi,Si=this;return S(this,function(Fi){switch(Fi.label){case 0:return this.applyEffects(Se.getEffects(2)),De=Se.container.styles,et=!So(De.backgroundColor)||De.backgroundImage.length,qt=[{style:De.borderTopStyle,color:De.borderTopColor,width:De.borderTopWidth},{style:De.borderRightStyle,color:De.borderRightColor,width:De.borderRightWidth},{style:De.borderBottomStyle,color:De.borderBottomColor,width:De.borderBottomWidth},{style:De.borderLeftStyle,color:De.borderLeftColor,width:De.borderLeftWidth}],Fr=Oc(au(De.backgroundClip,0),Se.curves),et||De.boxShadow.length?(this.ctx.save(),this.path(Fr),this.ctx.clip(),So(De.backgroundColor)||(this.ctx.fillStyle=Xt(De.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(Se.container)]):[3,2];case 1:Fi.sent(),this.ctx.restore(),De.boxShadow.slice(0).reverse().forEach(function(Na){Si.ctx.save();var ja=zl(Se.curves),no=Na.inset?0:pc,Xo=vc(ja,-no+(Na.inset?1:-1)*Na.spread.number,(Na.inset?1:-1)*Na.spread.number,Na.spread.number*(Na.inset?-2:2),Na.spread.number*(Na.inset?-2:2));Na.inset?(Si.path(ja),Si.ctx.clip(),Si.mask(Xo)):(Si.mask(ja),Si.ctx.clip(),Si.path(Xo)),Si.ctx.shadowOffsetX=Na.offsetX.number+no,Si.ctx.shadowOffsetY=Na.offsetY.number,Si.ctx.shadowColor=Xt(Na.color),Si.ctx.shadowBlur=Na.blur.number,Si.ctx.fillStyle=Na.inset?Xt(Na.color):"rgba(0,0,0,1)",Si.ctx.fill(),Si.ctx.restore()}),Fi.label=2;case 2:sn=0,yn=0,kn=qt,Fi.label=3;case 3:return yn<kn.length?(Pi=kn[yn],Pi.style!==0&&!So(Pi.color)&&Pi.width>0?Pi.style===2?[4,this.renderDashedDottedBorder(Pi.color,Pi.width,sn,Se.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return Fi.sent(),[3,11];case 5:return Pi.style===3?[4,this.renderDashedDottedBorder(Pi.color,Pi.width,sn,Se.curves,3)]:[3,7];case 6:return Fi.sent(),[3,11];case 7:return Pi.style===4?[4,this.renderDoubleBorder(Pi.color,Pi.width,sn,Se.curves)]:[3,9];case 8:return Fi.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Pi.color,sn,Se.curves)];case 10:Fi.sent(),Fi.label=11;case 11:sn++,Fi.label=12;case 12:return yn++,[3,3];case 13:return[2]}})})},he.prototype.renderDashedDottedBorder=function(Se,De,et,qt,Fr){return A(this,void 0,void 0,function(){var sn,yn,kn,Pi,Si,Fi,Na,ja,no,Xo,Lo,Co,xs,Ns,vs,xo,vs,xo;return S(this,function(Fs){return this.ctx.save(),sn=wc(qt,et),yn=hc(qt,et),Fr===2&&(this.path(yn),this.ctx.clip()),Ys(yn[0])?(kn=yn[0].start.x,Pi=yn[0].start.y):(kn=yn[0].x,Pi=yn[0].y),Ys(yn[1])?(Si=yn[1].end.x,Fi=yn[1].end.y):(Si=yn[1].x,Fi=yn[1].y),et===0||et===2?Na=Math.abs(kn-Si):Na=Math.abs(Pi-Fi),this.ctx.beginPath(),Fr===3?this.formatPath(sn):this.formatPath(yn.slice(0,2)),ja=De<3?De*3:De*2,no=De<3?De*2:De,Fr===3&&(ja=De,no=De),Xo=!0,Na<=ja*2?Xo=!1:Na<=ja*2+no?(Lo=Na/(2*ja+no),ja*=Lo,no*=Lo):(Co=Math.floor((Na+no)/(ja+no)),xs=(Na-Co*ja)/(Co-1),Ns=(Na-(Co+1)*ja)/Co,no=Ns<=0||Math.abs(no-xs)<Math.abs(no-Ns)?xs:Ns),Xo&&(Fr===3?this.ctx.setLineDash([0,ja+no]):this.ctx.setLineDash([ja,no])),Fr===3?(this.ctx.lineCap="round",this.ctx.lineWidth=De):this.ctx.lineWidth=De*2+1.1,this.ctx.strokeStyle=Xt(Se),this.ctx.stroke(),this.ctx.setLineDash([]),Fr===2&&(Ys(yn[0])&&(vs=yn[3],xo=yn[0],this.ctx.beginPath(),this.formatPath([new Oa(vs.end.x,vs.end.y),new Oa(xo.start.x,xo.start.y)]),this.ctx.stroke()),Ys(yn[1])&&(vs=yn[1],xo=yn[2],this.ctx.beginPath(),this.formatPath([new Oa(vs.end.x,vs.end.y),new Oa(xo.start.x,xo.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},he.prototype.render=function(Se){return A(this,void 0,void 0,function(){var De;return S(this,function(et){switch(et.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Xt(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),De=Du(Se),[4,this.renderStack(De)];case 1:return et.sent(),this.applyEffects([]),[2,this.canvas]}})})},he}(Ec),_c=function(he){return he instanceof Vu||he instanceof _u?!0:he instanceof Au&&he.type!==Vs&&he.type!==Hl},Oc=function(he,Se){switch(he){case 0:return zl(Se);case 2:return yl(Se);case 1:default:return Nu(Se)}},Ic=function(he){switch(he){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Lc=["-apple-system","system-ui"],Nc=function(he){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?he.filter(function(Se){return Lc.indexOf(Se)===-1}):he},Dc=function(sr){x(he,sr);function he(Se,De){var et=sr.call(this,Se,De)||this;return et.canvas=De.canvas?De.canvas:document.createElement("canvas"),et.ctx=et.canvas.getContext("2d"),et.options=De,et.canvas.width=Math.floor(De.width*De.scale),et.canvas.height=Math.floor(De.height*De.scale),et.canvas.style.width=De.width+"px",et.canvas.style.height=De.height+"px",et.ctx.scale(et.options.scale,et.options.scale),et.ctx.translate(-De.x,-De.y),et.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+De.width+"x"+De.height+" at "+De.x+","+De.y+") with scale "+De.scale),et}return he.prototype.render=function(Se){return A(this,void 0,void 0,function(){var De,et;return S(this,function(qt){switch(qt.label){case 0:return De=ds(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,Se),[4,Rc(De)];case 1:return et=qt.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Xt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(et,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},he}(Ec),Rc=function(he){return new Promise(function(Se,De){var et=new Image;et.onload=function(){Se(et)},et.onerror=De,et.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(he))})},Mc=function(){function sr(he){var Se=he.id,De=he.enabled;this.id=Se,this.enabled=De,this.start=Date.now()}return sr.prototype.debug=function(){for(var he=[],Se=0;Se<arguments.length;Se++)he[Se]=arguments[Se];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,g([this.id,this.getTime()+"ms"],he)):this.info.apply(this,he))},sr.prototype.getTime=function(){return Date.now()-this.start},sr.prototype.info=function(){for(var he=[],Se=0;Se<arguments.length;Se++)he[Se]=arguments[Se];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,g([this.id,this.getTime()+"ms"],he)))},sr.prototype.warn=function(){for(var he=[],Se=0;Se<arguments.length;Se++)he[Se]=arguments[Se];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,g([this.id,this.getTime()+"ms"],he)):this.info.apply(this,he))},sr.prototype.error=function(){for(var he=[],Se=0;Se<arguments.length;Se++)he[Se]=arguments[Se];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,g([this.id,this.getTime()+"ms"],he)):this.info.apply(this,he))},sr.instances={},sr}(),Pc=function(){function sr(he,Se){var De;this.windowBounds=Se,this.instanceName="#"+sr.instanceCount++,this.logger=new Mc({id:this.instanceName,enabled:he.logging}),this.cache=(De=he.cache)!==null&&De!==void 0?De:new ns(this,he)}return sr.instanceCount=1,sr}(),kc=function(he,Se){return Se===void 0&&(Se={}),Fc(he,Se)};typeof window!="undefined"&&To.setContext(window);var Fc=function(he,Se){return A(void 0,void 0,void 0,function(){var De,et,qt,Fr,sn,yn,kn,Pi,Si,Fi,Na,ja,no,Xo,Lo,Co,xs,Ns,vs,xo,Fs,Ks,Fs,As,pu,xu,mu,Ml,rc,Pu,Ju,Zu,$u,nc,ku,qu,ic,ac,Wu,oc;return S(this,function(zu){switch(zu.label){case 0:if(!he||typeof he!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(De=he.ownerDocument,!De)throw new Error("Element is not attached to a Document");if(et=De.defaultView,!et)throw new Error("Document is not attached to a Window");return qt={allowTaint:(As=Se.allowTaint)!==null&&As!==void 0?As:!1,imageTimeout:(pu=Se.imageTimeout)!==null&&pu!==void 0?pu:15e3,proxy:Se.proxy,useCORS:(xu=Se.useCORS)!==null&&xu!==void 0?xu:!1},Fr=C({logging:(mu=Se.logging)!==null&&mu!==void 0?mu:!0,cache:Se.cache},qt),sn={windowWidth:(Ml=Se.windowWidth)!==null&&Ml!==void 0?Ml:et.innerWidth,windowHeight:(rc=Se.windowHeight)!==null&&rc!==void 0?rc:et.innerHeight,scrollX:(Pu=Se.scrollX)!==null&&Pu!==void 0?Pu:et.pageXOffset,scrollY:(Ju=Se.scrollY)!==null&&Ju!==void 0?Ju:et.pageYOffset},yn=new f(sn.scrollX,sn.scrollY,sn.windowWidth,sn.windowHeight),kn=new Pc(Fr,yn),Pi=(Zu=Se.foreignObjectRendering)!==null&&Zu!==void 0?Zu:!1,Si={allowTaint:($u=Se.allowTaint)!==null&&$u!==void 0?$u:!1,onclone:Se.onclone,ignoreElements:Se.ignoreElements,inlineImages:Pi,copyStyles:Pi},kn.logger.debug("Starting document clone with size "+yn.width+"x"+yn.height+" scrolled to "+-yn.left+","+-yn.top),Fi=new le(kn,he,Si),Na=Fi.clonedReferenceElement,Na?[4,Fi.toIFrame(De,yn)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return ja=zu.sent(),no=Er(Na)||ft(Na)?o(Na.ownerDocument):c(kn,Na),Xo=no.width,Lo=no.height,Co=no.left,xs=no.top,Ns=Bc(kn,Na,Se.backgroundColor),vs={canvas:Se.canvas,backgroundColor:Ns,scale:(ku=(nc=Se.scale)!==null&&nc!==void 0?nc:et.devicePixelRatio)!==null&&ku!==void 0?ku:1,x:((qu=Se.x)!==null&&qu!==void 0?qu:0)+Co,y:((ic=Se.y)!==null&&ic!==void 0?ic:0)+xs,width:(ac=Se.width)!==null&&ac!==void 0?ac:Math.ceil(Xo),height:(Wu=Se.height)!==null&&Wu!==void 0?Wu:Math.ceil(Lo)},Pi?(kn.logger.debug("Document cloned, using foreign object rendering"),Fs=new Dc(kn,vs),[4,Fs.render(Na)]):[3,3];case 2:return xo=zu.sent(),[3,5];case 3:return kn.logger.debug("Document cloned, element located at "+Co+","+xs+" with size "+Xo+"x"+Lo+" using computed rendering"),kn.logger.debug("Starting DOM parsing"),Ks=Xu(kn,Na),Ns===Ks.styles.backgroundColor&&(Ks.styles.backgroundColor=Yt.TRANSPARENT),kn.logger.debug("Starting renderer for element at "+vs.x+","+vs.y+" with size "+vs.width+"x"+vs.height),Fs=new mc(kn,vs),[4,Fs.render(Ks)];case 4:xo=zu.sent(),zu.label=5;case 5:return((oc=Se.removeContainer)!==null&&oc!==void 0?oc:!0)&&(le.destroy(ja)||kn.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),kn.logger.debug("Finished rendering"),[2,xo]}})})},Bc=function(he,Se,De){var et=Se.ownerDocument,qt=et.documentElement?di(he,getComputedStyle(et.documentElement).backgroundColor):Yt.TRANSPARENT,Fr=et.body?di(he,getComputedStyle(et.body).backgroundColor):Yt.TRANSPARENT,sn=typeof De=="string"?di(he,De):De===null?Yt.TRANSPARENT:4294967295;return Se===et.documentElement?So(qt)?So(Fr)?sn:Fr:qt:sn};return kc})},wPhX:function(H,F,d){"use strict";d.d(F,"b",function(){return r}),d.d(F,"a",function(){return i}),d.d(F,"k",function(){return n}),d.d(F,"h",function(){return e}),d.d(F,"i",function(){return l}),d.d(F,"g",function(){return t}),d.d(F,"c",function(){return a}),d.d(F,"d",function(){return s}),d.d(F,"j",function(){return p}),d.d(F,"e",function(){return m}),d.d(F,"f",function(){return v});var O=d("KQm4"),x=d("U8pU"),C=d("Ff2n"),A=d("q1tI"),S=d.n(A),g=d("xroW"),f=d("lr6o"),c=.25,o=2;function r(y,E){var T=y.slice(),b=T.indexOf(E);return b>=0&&T.splice(b,1),T}function i(y,E){var T=y.slice();return T.indexOf(E)===-1&&T.push(E),T}function n(y){return y.split("-")}function e(y,E){return"".concat(y,"-").concat(E)}function l(y){return y&&y.type&&y.type.isTreeNode}function t(y,E){var T=[y],b=E[y];function w(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_.forEach(function(I){var L=I.key,N=I.children;T.push(L),w(N)})}return w(b.children),T}function a(y,E){var T=y.clientY,b=E.selectHandle.getBoundingClientRect(),w=b.top,_=b.bottom,I=b.height,L=Math.max(I*c,o);return T<=w+L?-1:T>=_-L?1:0}function s(y,E){if(!y)return;var T=E.multiple;return T?y.slice():y.length?[y[0]]:y}var u=function(E){return E};function h(y,E){if(!y)return[];var T=E||{},b=T.processProps,w=b===void 0?u:b,_=Array.isArray(y)?y:[y];return _.map(function(I){var L=I.children,N=Object(C.a)(I,["children"]),D=h(L,E);return S.a.createElement(f.a,Object.assign({},w(N)),D)})}function p(y){if(!y)return null;var E;if(Array.isArray(y))E={checkedKeys:y,halfCheckedKeys:void 0};else if(Object(x.a)(y)==="object")E={checkedKeys:y.checked||void 0,halfCheckedKeys:y.halfChecked||void 0};else return Object(g.a)(!1,"`checkedKeys` is not an array or an object"),null;return E}function m(y,E){var T=new Set;function b(w){if(T.has(w))return;var _=E[w];if(!_)return;T.add(w);var I=_.parent,L=_.node;if(L.disabled)return;I&&b(I.key)}return(y||[]).forEach(function(w){b(w)}),Object(O.a)(T)}function v(y){var E={};return Object.keys(y).forEach(function(T){(T.startsWith("data-")||T.startsWith("aria-"))&&(E[T]=y[T])}),E}},wXyp:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("ygfH")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="CheckOutlined";var c=A.forwardRef(f);F.default=c},wYyv:function(H,F,d){"use strict";var O=d("R5yR"),x=d("5wUe"),C=function(g,f,c){var o=f<0?g.length+f:f;if(o>=0&&o<g.length){var r=c<0?g.length+c:c,i=g.splice(f,1),n=x(i,1),e=n[0];g.splice(r,0,e)}},A=function(g,f,c){return g=O(g),C(g,f,c),g};H.exports=A,H.exports.mutate=C},wZgz:function(H,F,d){(function(O,x,C){H.exports=F=x(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.BlockCipher,S=x.algo,g=[],f=[],c=[],o=[],r=[],i=[],n=[],e=[],l=[],t=[];(function(){for(var u=[],h=0;h<256;h++)h<128?u[h]=h<<1:u[h]=h<<1^283;for(var p=0,m=0,h=0;h<256;h++){var v=m^m<<1^m<<2^m<<3^m<<4;v=v>>>8^v&255^99,g[p]=v,f[v]=p;var y=u[p],E=u[y],T=u[E],b=u[v]*257^v*16843008;c[p]=b<<24|b>>>8,o[p]=b<<16|b>>>16,r[p]=b<<8|b>>>24,i[p]=b;var b=T*16843009^E*65537^y*257^p*16843008;n[v]=b<<24|b>>>8,e[v]=b<<16|b>>>16,l[v]=b<<8|b>>>24,t[v]=b,p?(p=y^u[u[u[T^y]]],m^=u[u[m]]):p=m=1}})();var a=[0,1,2,4,8,16,32,64,128,27,54],s=S.AES=A.extend({_doReset:function(){var h;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var p=this._keyPriorReset=this._key,m=p.words,v=p.sigBytes/4,y=this._nRounds=v+6,E=(y+1)*4,T=this._keySchedule=[],b=0;b<E;b++)b<v?T[b]=m[b]:(h=T[b-1],b%v?v>6&&b%v==4&&(h=g[h>>>24]<<24|g[h>>>16&255]<<16|g[h>>>8&255]<<8|g[h&255]):(h=h<<8|h>>>24,h=g[h>>>24]<<24|g[h>>>16&255]<<16|g[h>>>8&255]<<8|g[h&255],h^=a[b/v|0]<<24),T[b]=T[b-v]^h);for(var w=this._invKeySchedule=[],_=0;_<E;_++){var b=E-_;if(_%4)var h=T[b];else var h=T[b-4];_<4||b<=4?w[_]=h:w[_]=n[g[h>>>24]]^e[g[h>>>16&255]]^l[g[h>>>8&255]]^t[g[h&255]]}},encryptBlock:function(h,p){this._doCryptBlock(h,p,this._keySchedule,c,o,r,i,g)},decryptBlock:function(h,p){var m=h[p+1];h[p+1]=h[p+3],h[p+3]=m,this._doCryptBlock(h,p,this._invKeySchedule,n,e,l,t,f);var m=h[p+1];h[p+1]=h[p+3],h[p+3]=m},_doCryptBlock:function(h,p,m,v,y,E,T,b){for(var w=this._nRounds,_=h[p]^m[0],I=h[p+1]^m[1],L=h[p+2]^m[2],N=h[p+3]^m[3],D=4,R=1;R<w;R++){var k=v[_>>>24]^y[I>>>16&255]^E[L>>>8&255]^T[N&255]^m[D++],M=v[I>>>24]^y[L>>>16&255]^E[N>>>8&255]^T[_&255]^m[D++],U=v[L>>>24]^y[N>>>16&255]^E[_>>>8&255]^T[I&255]^m[D++],B=v[N>>>24]^y[_>>>16&255]^E[I>>>8&255]^T[L&255]^m[D++];_=k,I=M,L=U,N=B}var k=(b[_>>>24]<<24|b[I>>>16&255]<<16|b[L>>>8&255]<<8|b[N&255])^m[D++],M=(b[I>>>24]<<24|b[L>>>16&255]<<16|b[N>>>8&255]<<8|b[_&255])^m[D++],U=(b[L>>>24]<<24|b[N>>>16&255]<<16|b[_>>>8&255]<<8|b[I&255])^m[D++],B=(b[N>>>24]<<24|b[_>>>16&255]<<16|b[I>>>8&255]<<8|b[L&255])^m[D++];h[p]=k,h[p+1]=M,h[p+2]=U,h[p+3]=B},keySize:256/32});x.AES=A._createHelper(s)}(),O.AES})},wbyO:function(H,F,d){(function(O,x){H.exports=F=x(d("Ib8C"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.WordArray,S=x.enc,g=S.Base64url={stringify:function(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=o.words,n=o.sigBytes,e=r?this._safe_map:this._map;o.clamp();for(var l=[],t=0;t<n;t+=3)for(var a=i[t>>>2]>>>24-t%4*8&255,s=i[t+1>>>2]>>>24-(t+1)%4*8&255,u=i[t+2>>>2]>>>24-(t+2)%4*8&255,h=a<<16|s<<8|u,p=0;p<4&&t+p*.75<n;p++)l.push(e.charAt(h>>>6*(3-p)&63));var m=e.charAt(64);if(m)for(;l.length%4;)l.push(m);return l.join("")},parse:function(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=o.length,n=r?this._safe_map:this._map,e=this._reverseMap;if(!e){e=this._reverseMap=[];for(var l=0;l<n.length;l++)e[n.charCodeAt(l)]=l}var t=n.charAt(64);if(t){var a=o.indexOf(t);a!==-1&&(i=a)}return f(o,i,e)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function f(c,o,r){for(var i=[],n=0,e=0;e<o;e++)if(e%4){var l=r[c.charCodeAt(e-1)]<<e%4*2,t=r[c.charCodeAt(e)]>>>6-e%4*2,a=l|t;i[n>>>2]|=a<<24-n%4*8,n++}return A.create(i,n)}}(),O.enc.Base64url})},wgjA:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},whJP:function(H,F,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),S=d("lwsE"),g=d.n(S),f=d("W8MJ"),c=d.n(f),o=d("7W2i"),r=d.n(o),i=d("LQ03"),n=d.n(i),e=d("q1tI"),l=d.n(e),t=d("Y1PL"),a=d("BGR+"),s=d("TSYQ"),u=d.n(s),h=d("LlR5"),p=d("H84U"),m=d("mh/l"),v=function(y){r()(T,y);var E=n()(T);function T(b){var w;g()(this,T),w=E.call(this,b),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(m.d)(w.resizableTextArea.textArea,I,w.props.onChange)},w.handleReset=function(I){w.setValue("",function(){w.focus()}),Object(m.d)(w.resizableTextArea.textArea,I,w.props.onChange)},w.renderTextArea=function(I,L){return e.createElement(t.default,x()({},Object(a.default)(w.props,["allowClear","bordered"]),{className:u()(w.props.className,A()({},"".concat(I,"-borderless"),!L)),prefixCls:I,onChange:w.handleChange,ref:w.saveTextArea}))},w.renderComponent=function(I){var L=I.getPrefixCls,N=I.direction,D=w.state.value,R=w.props,k=R.prefixCls,M=R.bordered,U=M===void 0?!0:M,B=L("input",k);return e.createElement(h.a,x()({},w.props,{prefixCls:B,direction:N,inputType:"text",value:Object(m.b)(D),element:w.renderTextArea(B,U),handleReset:w.handleReset,ref:w.saveClearableInput,triggerFocus:w.focus,bordered:U}))};var _=typeof b.value=="undefined"?b.defaultValue:b.value;return w.state={value:_},w}return c()(T,[{key:"setValue",value:function(w,_){this.props.value===void 0&&this.setState({value:w},_)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return e.createElement(p.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(w){return w.value!==void 0?{value:w.value}:null}}]),T}(e.Component);F.a=v},whVF:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=d("lNSK"),x=C(d("1q3G"));function C(c){return c&&c.__esModule?c:{default:c}}function A(c,o){if(!(c instanceof o))throw new TypeError("Cannot call a class as a function")}function S(c,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(c,i.key,i)}}function g(c,o,r){return o&&S(c.prototype,o),r&&S(c,r),c}var f=function(){function c(){A(this,c),this.strm=new x.default,this.chunkSize=1024*10*10,this.outputBuffer=new Uint8Array(this.chunkSize),this.windowBits=5,(0,O.deflateInit)(this.strm,this.windowBits)}return g(c,[{key:"deflate",value:function(r){this.strm.input=r,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 i=(0,O.deflate)(this.strm,O.Z_FULL_FLUSH),n=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);if(i<0)throw new Error("zlib deflate failed");if(this.strm.avail_in>0){var e=[n],l=n.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,i=(0,O.deflate)(this.strm,O.Z_FULL_FLUSH),i<0)throw new Error("zlib deflate failed");var t=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);l+=t.length,e.push(t)}while(this.strm.avail_in>0);for(var a=new Uint8Array(l),s=0,u=0;u<e.length;u++)a.set(e[u],s),s+=e[u].length;n=a}return this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0,n}}]),c}();F.default=f},wr5s:function(H,F,d){var O=d("IwbS"),x=O.extendShape,C=x({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},buildPath:function(A,S){var g=S.cx,f=S.cy,c=Math.max(S.r0||0,0),o=Math.max(S.r,0),r=(o-c)*.5,i=c+r,n=S.startAngle,e=S.endAngle,l=S.clockwise,t=Math.cos(n),a=Math.sin(n),s=Math.cos(e),u=Math.sin(e),h=l?e-n<Math.PI*2:n-e<Math.PI*2;h&&(A.moveTo(t*c+g,a*c+f),A.arc(t*i+g,a*i+f,r,-Math.PI+n,n,!l)),A.arc(g,f,o,n,e,!l),A.moveTo(s*o+g,u*o+f),A.arc(s*i+g,u*i+f,r,e-Math.PI*2,e-Math.PI,!l),c!==0&&(A.arc(g,f,c,e,n,l),A.moveTo(t*c+g,u*c+f)),A.closePath()}});H.exports=C},wt3j:function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("/IIm"),A=d("EMyp"),S=A.layoutCovers,g=O.extendComponentView({type:"brush",init:function(c,o){this.ecModel=c,this.api=o,this.model,(this._brushController=new C(o.getZr())).on("brush",x.bind(this._onBrush,this)).mount()},render:function(c){return this.model=c,f.apply(this,arguments)},updateTransform:function(c,o){return S(o),f.apply(this,arguments)},updateView:f,dispose:function(){this._brushController.dispose()},_onBrush:function(c,o){var r=this.model.id;this.model.brushTargetManager.setOutputRanges(c,this.ecModel),(!o.isEnd||o.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:x.clone(c),$from:r}),o.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:x.clone(c),$from:r})}});function f(c,o,r,i){(!i||i.$from!==c.id)&&this._brushController.setPanels(c.brushTargetManager.makePanelOpts(r)).enableBrush(c.brushOption).updateCovers(c.areas.slice())}H.exports=g},wy8a:function(H,F,d){var O=d("KxBF");function x(C,A,S){var g=C.length;return S=S===void 0?g:S,!A&&S>=g?C:O(C,A,S)}H.exports=x},x3X8:function(H,F,d){var O=d("KxfA"),x=O.retrieveRawValue;function C(A,S){var g=A.mapDimension("defaultedLabel",!0),f=g.length;if(f===1)return x(A,S,g[0]);if(f){for(var c=[],o=0;o<g.length;o++){var r=x(A,S,g[o]);c.push(r)}return c.join(" ")}}F.getDefaultLabel=C},x54q:function(H,F,d){},x6Kt:function(H,F,d){var O=d("y+Vt"),x=d("VpOo"),C=d("nPnh"),A=C.subPixelOptimizeRect,S={},g=O.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(c,o){var r,i,n,e;this.subPixelOptimize?(A(S,o,this.style),r=S.x,i=S.y,n=S.width,e=S.height,S.r=o.r,o=S):(r=o.x,i=o.y,n=o.width,e=o.height),o.r?x.buildPath(c,o):c.rect(r,i,n,e),c.closePath();return}});H.exports=g},xGfz:function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="PlusSquareOutlined";var f=F.a=x.forwardRef(g)},xKMd:function(H,F){function d(x,C){this.getAllNames=function(){var A=C();return A.mapArray(A.getName)},this.containName=function(A){var S=C();return S.indexOfName(A)>=0},this.indexOfName=function(A){var S=x();return S.indexOfName(A)},this.getItemVisual=function(A,S){var g=x();return g.getItemVisual(A,S)}}var O=d;H.exports=O},xO64:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O=x(d("8K/p"));function x(t){return t&&t.__esModule?t:{default:t}}function C(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(s){return typeof s}:C=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},C(t)}function A(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}function S(t,a){for(var s=0;s<a.length;s++){var u=a[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function g(t,a,s){return a&&S(t.prototype,a),s&&S(t,s),t}function f(t,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(a&&a.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),a&&c(t,a)}function c(t,a){return c=Object.setPrototypeOf||function(u,h){return u.__proto__=h,u},c(t,a)}function o(t){var a=n();return function(){var u=e(t),h;if(a){var p=e(this).constructor;h=Reflect.construct(u,arguments,p)}else h=u.apply(this,arguments);return r(this,h)}}function r(t,a){return a&&(C(a)==="object"||typeof a=="function")?a:i(t)}function i(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(){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(t){return!1}}function e(t){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},e(t)}var l=function(t){f(s,t);var a=o(s);function s(){return A(this,s),a.apply(this,arguments)}return g(s,[{key:"_pngRect",value:function(h,p,m,v,y,E,T){var b=this._readData(y);return b===null?!1:(E.imageRect(h,p,m,v,"image/png",b),!0)}},{key:"_basicRect",value:function(h,p,m,v,y,E,T,b){throw new Error("BasicCompression received in TightPNG rect")}}]),s}(O.default);F.default=l},xOOu:function(H,F,d){(function(O,x,C){var A,A;/*!
|
|
|
|
|
|
JSZip v3.10.0 - 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(S){H.exports=S()}(function(){return function S(g,f,c){function o(n,e){if(!f[n]){if(!g[n]){var l=typeof A=="function"&&A;if(!e&&l)return A(n,!0);if(r)return r(n,!0);var t=new Error("Cannot find module '"+n+"'");throw t.code="MODULE_NOT_FOUND",t}var a=f[n]={exports:{}};g[n][0].call(a.exports,function(s){var u=g[n][1][s];return o(u||s)},a,a.exports,S,g,f,c)}return f[n].exports}for(var r=typeof A=="function"&&A,i=0;i<c.length;i++)o(c[i]);return o}({1:[function(S,g,f){"use strict";var c=S("./utils"),o=S("./support"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";f.encode=function(i){for(var n,e,l,t,a,s,u,h=[],p=0,m=i.length,v=m,y=c.getTypeOf(i)!=="string";p<i.length;)v=m-p,l=y?(n=i[p++],e=p<m?i[p++]:0,p<m?i[p++]:0):(n=i.charCodeAt(p++),e=p<m?i.charCodeAt(p++):0,p<m?i.charCodeAt(p++):0),t=n>>2,a=(3&n)<<4|e>>4,s=1<v?(15&e)<<2|l>>6:64,u=2<v?63&l:64,h.push(r.charAt(t)+r.charAt(a)+r.charAt(s)+r.charAt(u));return h.join("")},f.decode=function(i){var n,e,l,t,a,s,u=0,h=0,p="data:";if(i.substr(0,p.length)===p)throw new Error("Invalid base64 input, it looks like a data url.");var m,v=3*(i=i.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(i.charAt(i.length-1)===r.charAt(64)&&v--,i.charAt(i.length-2)===r.charAt(64)&&v--,v%1!=0)throw new Error("Invalid base64 input, bad content length.");for(m=o.uint8array?new Uint8Array(0|v):new Array(0|v);u<i.length;)n=r.indexOf(i.charAt(u++))<<2|(t=r.indexOf(i.charAt(u++)))>>4,e=(15&t)<<4|(a=r.indexOf(i.charAt(u++)))>>2,l=(3&a)<<6|(s=r.indexOf(i.charAt(u++))),m[h++]=n,a!==64&&(m[h++]=e),s!==64&&(m[h++]=l);return m}},{"./support":30,"./utils":32}],2:[function(S,g,f){"use strict";var c=S("./external"),o=S("./stream/DataWorker"),r=S("./stream/Crc32Probe"),i=S("./stream/DataLengthProbe");function n(e,l,t,a,s){this.compressedSize=e,this.uncompressedSize=l,this.crc32=t,this.compression=a,this.compressedContent=s}n.prototype={getContentWorker:function(){var l=new o(c.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i("data_length")),t=this;return l.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new o(c.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},n.createWorkerFrom=function(e,l,t){return e.pipe(new r).pipe(new i("uncompressedSize")).pipe(l.compressWorker(t)).pipe(new i("compressedSize")).withStreamInfo("compression",l)},g.exports=n},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(S,g,f){"use strict";var c=S("./stream/GenericWorker");f.STORE={magic:"\0\0",compressWorker:function(r){return new c("STORE compression")},uncompressWorker:function(){return new c("STORE decompression")}},f.DEFLATE=S("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(S,g,f){"use strict";var c=S("./utils"),o=function(){for(var r,i=[],n=0;n<256;n++){r=n;for(var e=0;e<8;e++)r=1&r?3988292384^r>>>1:r>>>1;i[n]=r}return i}();g.exports=function(r,i){return r!==void 0&&r.length?c.getTypeOf(r)!=="string"?function(n,e,l,t){var a=o,s=t+l;n^=-1;for(var u=t;u<s;u++)n=n>>>8^a[255&(n^e[u])];return-1^n}(0|i,r,r.length,0):function(n,e,l,t){var a=o,s=t+l;n^=-1;for(var u=t;u<s;u++)n=n>>>8^a[255&(n^e.charCodeAt(u))];return-1^n}(0|i,r,r.length,0):0}},{"./utils":32}],5:[function(S,g,f){"use strict";f.base64=!1,f.binary=!1,f.dir=!1,f.createFolders=!0,f.date=null,f.compression=null,f.compressionOptions=null,f.comment=null,f.unixPermissions=null,f.dosPermissions=null},{}],6:[function(S,g,f){"use strict";var c=null;c=typeof Promise!="undefined"?Promise:S("lie"),g.exports={Promise:c}},{lie:37}],7:[function(S,g,f){"use strict";var c=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",o=S("pako"),r=S("./utils"),i=S("./stream/GenericWorker"),n=c?"uint8array":"array";function e(l,t){i.call(this,"FlateWorker/"+l),this._pako=null,this._pakoAction=l,this._pakoOptions=t,this.meta={}}f.magic="\b\0",r.inherits(e,i),e.prototype.processChunk=function(l){this.meta=l.meta,this._pako===null&&this._createPako(),this._pako.push(r.transformTo(n,l.data),!1)},e.prototype.flush=function(){i.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},e.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this._pako=null},e.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var l=this;this._pako.onData=function(t){l.push({data:t,meta:l.meta})}},f.compressWorker=function(l){return new e("Deflate",l)},f.uncompressWorker=function(){return new e("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(S,g,f){"use strict";function c(a,s){var u,h="";for(u=0;u<s;u++)h+=String.fromCharCode(255&a),a>>>=8;return h}function o(a,s,u,h,p,m){var v,y,E=a.file,T=a.compression,b=m!==n.utf8encode,w=r.transformTo("string",m(E.name)),_=r.transformTo("string",n.utf8encode(E.name)),I=E.comment,L=r.transformTo("string",m(I)),N=r.transformTo("string",n.utf8encode(I)),D=_.length!==E.name.length,R=N.length!==I.length,k="",M="",U="",B=E.dir,j=E.date,W={crc32:0,compressedSize:0,uncompressedSize:0};s&&!u||(W.crc32=a.crc32,W.compressedSize=a.compressedSize,W.uncompressedSize=a.uncompressedSize);var V=0;s&&(V|=8),b||!D&&!R||(V|=2048);var z=0,J=0;B&&(z|=16),p==="UNIX"?(J=798,z|=function(de,ie){var ve=de;return de||(ve=ie?16893:33204),(65535&ve)<<16}(E.unixPermissions,B)):(J=20,z|=function(de){return 63&(de||0)}(E.dosPermissions)),v=j.getUTCHours(),v<<=6,v|=j.getUTCMinutes(),v<<=5,v|=j.getUTCSeconds()/2,y=j.getUTCFullYear()-1980,y<<=4,y|=j.getUTCMonth()+1,y<<=5,y|=j.getUTCDate(),D&&(M=c(1,1)+c(e(w),4)+_,k+="up"+c(M.length,2)+M),R&&(U=c(1,1)+c(e(L),4)+N,k+="uc"+c(U.length,2)+U);var Z="";return Z+=`
|
|
|
\0`,Z+=c(V,2),Z+=T.magic,Z+=c(v,2),Z+=c(y,2),Z+=c(W.crc32,4),Z+=c(W.compressedSize,4),Z+=c(W.uncompressedSize,4),Z+=c(w.length,2),Z+=c(k.length,2),{fileRecord:l.LOCAL_FILE_HEADER+Z+w+k,dirRecord:l.CENTRAL_FILE_HEADER+c(J,2)+Z+c(L.length,2)+"\0\0\0\0"+c(z,4)+c(h,4)+w+k+L}}var r=S("../utils"),i=S("../stream/GenericWorker"),n=S("../utf8"),e=S("../crc32"),l=S("../signature");function t(a,s,u,h){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=s,this.zipPlatform=u,this.encodeFileName=h,this.streamFiles=a,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}r.inherits(t,i),t.prototype.push=function(a){var s=a.meta.percent||0,u=this.entriesCount,h=this._sources.length;this.accumulate?this.contentBuffer.push(a):(this.bytesWritten+=a.data.length,i.prototype.push.call(this,{data:a.data,meta:{currentFile:this.currentFile,percent:u?(s+100*(u-h-1))/u:100}}))},t.prototype.openedSource=function(a){this.currentSourceOffset=this.bytesWritten,this.currentFile=a.file.name;var s=this.streamFiles&&!a.file.dir;if(s){var u=o(a,s,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:u.fileRecord,meta:{percent:0}})}else this.accumulate=!0},t.prototype.closedSource=function(a){this.accumulate=!1;var s=this.streamFiles&&!a.file.dir,u=o(a,s,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(u.dirRecord),s)this.push({data:function(h){return l.DATA_DESCRIPTOR+c(h.crc32,4)+c(h.compressedSize,4)+c(h.uncompressedSize,4)}(a),meta:{percent:100}});else for(this.push({data:u.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},t.prototype.flush=function(){for(var a=this.bytesWritten,s=0;s<this.dirRecords.length;s++)this.push({data:this.dirRecords[s],meta:{percent:100}});var u=this.bytesWritten-a,h=function(p,m,v,y,E){var T=r.transformTo("string",E(y));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+c(p,2)+c(p,2)+c(m,4)+c(v,4)+c(T.length,2)+T}(this.dirRecords.length,u,a,this.zipComment,this.encodeFileName);this.push({data:h,meta:{percent:100}})},t.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},t.prototype.registerPrevious=function(a){this._sources.push(a);var s=this;return a.on("data",function(u){s.processChunk(u)}),a.on("end",function(){s.closedSource(s.previous.streamInfo),s._sources.length?s.prepareNextSource():s.end()}),a.on("error",function(u){s.error(u)}),this},t.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},t.prototype.error=function(a){var s=this._sources;if(!i.prototype.error.call(this,a))return!1;for(var u=0;u<s.length;u++)try{s[u].error(a)}catch(h){}return!0},t.prototype.lock=function(){i.prototype.lock.call(this);for(var a=this._sources,s=0;s<a.length;s++)a[s].lock()},g.exports=t},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(S,g,f){"use strict";var c=S("../compressions"),o=S("./ZipFileWorker");f.generateWorker=function(r,i,n){var e=new o(i.streamFiles,n,i.platform,i.encodeFileName),l=0;try{r.forEach(function(t,a){l++;var s=function(m,v){var y=m||v,E=c[y];if(!E)throw new Error(y+" is not a valid compression method !");return E}(a.options.compression,i.compression),u=a.options.compressionOptions||i.compressionOptions||{},h=a.dir,p=a.date;a._compressWorker(s,u).withStreamInfo("file",{name:t,dir:h,date:p,comment:a.comment||"",unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions}).pipe(e)}),e.entriesCount=l}catch(t){e.error(t)}return e}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(S,g,f){"use strict";function c(){if(!(this instanceof c))return new c;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var o=new c;for(var r in this)typeof this[r]!="function"&&(o[r]=this[r]);return o}}(c.prototype=S("./object")).loadAsync=S("./load"),c.support=S("./support"),c.defaults=S("./defaults"),c.version="3.10.0",c.loadAsync=function(o,r){return new c().loadAsync(o,r)},c.external=S("./external"),g.exports=c},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(S,g,f){"use strict";var c=S("./utils"),o=S("./external"),r=S("./utf8"),i=S("./zipEntries"),n=S("./stream/Crc32Probe"),e=S("./nodejsUtils");function l(t){return new o.Promise(function(a,s){var u=t.decompressed.getContentWorker().pipe(new n);u.on("error",function(h){s(h)}).on("end",function(){u.streamInfo.crc32!==t.decompressed.crc32?s(new Error("Corrupted zip : CRC32 mismatch")):a()}).resume()})}g.exports=function(t,a){var s=this;return a=c.extend(a||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:r.utf8decode}),e.isNode&&e.isStream(t)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):c.prepareContent("the loaded zip file",t,!0,a.optimizedBinaryString,a.base64).then(function(u){var h=new i(a);return h.load(u),h}).then(function(u){var h=[o.Promise.resolve(u)],p=u.files;if(a.checkCRC32)for(var m=0;m<p.length;m++)h.push(l(p[m]));return o.Promise.all(h)}).then(function(u){for(var h=u.shift(),p=h.files,m=0;m<p.length;m++){var v=p[m],y=v.fileNameStr,E=c.resolve(v.fileNameStr);s.file(E,v.decompressed,{binary:!0,optimizedBinaryString:!0,date:v.date,dir:v.dir,comment:v.fileCommentStr.length?v.fileCommentStr:null,unixPermissions:v.unixPermissions,dosPermissions:v.dosPermissions,createFolders:a.createFolders}),v.dir||(s.file(E).unsafeOriginalName=y)}return h.zipComment.length&&(s.comment=h.zipComment),s})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(S,g,f){"use strict";var c=S("../utils"),o=S("../stream/GenericWorker");function r(i,n){o.call(this,"Nodejs stream input adapter for "+i),this._upstreamEnded=!1,this._bindStream(n)}c.inherits(r,o),r.prototype._bindStream=function(i){var n=this;(this._stream=i).pause(),i.on("data",function(e){n.push({data:e,meta:{percent:0}})}).on("error",function(e){n.isPaused?this.generatedError=e:n.error(e)}).on("end",function(){n.isPaused?n._upstreamEnded=!0:n.end()})},r.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},r.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},g.exports=r},{"../stream/GenericWorker":28,"../utils":32}],13:[function(S,g,f){"use strict";var c=S("readable-stream").Readable;function o(r,i,n){c.call(this,i),this._helper=r;var e=this;r.on("data",function(l,t){e.push(l)||e._helper.pause(),n&&n(t)}).on("error",function(l){e.emit("error",l)}).on("end",function(){e.push(null)})}S("../utils").inherits(o,c),o.prototype._read=function(){this._helper.resume()},g.exports=o},{"../utils":32,"readable-stream":16}],14:[function(S,g,f){"use strict";g.exports={isNode:typeof O!="undefined",newBufferFrom:function(o,r){if(O.from&&O.from!==Uint8Array.from)return O.from(o,r);if(typeof o=="number")throw new Error('The "data" argument must not be a number');return new O(o,r)},allocBuffer:function(o){if(O.alloc)return O.alloc(o);var r=new O(o);return r.fill(0),r},isBuffer:function(o){return O.isBuffer(o)},isStream:function(o){return o&&typeof o.on=="function"&&typeof o.pause=="function"&&typeof o.resume=="function"}}},{}],15:[function(S,g,f){"use strict";function c(E,T,b){var w,_=r.getTypeOf(T),I=r.extend(b||{},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&&(E=p(E)),I.createFolders&&(w=h(E))&&m.call(this,w,!0);var L=_==="string"&&I.binary===!1&&I.base64===!1;b&&b.binary!==void 0||(I.binary=!L),(T instanceof l&&T.uncompressedSize===0||I.dir||!T||T.length===0)&&(I.base64=!1,I.binary=!0,T="",I.compression="STORE",_="string");var N=null;N=T instanceof l||T instanceof i?T:s.isNode&&s.isStream(T)?new u(E,T):r.prepareContent(E,T,I.binary,I.optimizedBinaryString,I.base64);var D=new t(E,N,I);this.files[E]=D}var o=S("./utf8"),r=S("./utils"),i=S("./stream/GenericWorker"),n=S("./stream/StreamHelper"),e=S("./defaults"),l=S("./compressedObject"),t=S("./zipObject"),a=S("./generate"),s=S("./nodejsUtils"),u=S("./nodejs/NodejsStreamInputAdapter"),h=function(T){T.slice(-1)==="/"&&(T=T.substring(0,T.length-1));var b=T.lastIndexOf("/");return 0<b?T.substring(0,b):""},p=function(T){return T.slice(-1)!=="/"&&(T+="/"),T},m=function(T,b){return b=b!==void 0?b:e.createFolders,T=p(T),this.files[T]||c.call(this,T,null,{dir:!0,createFolders:b}),this.files[T]};function v(E){return Object.prototype.toString.call(E)==="[object RegExp]"}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(T){var b,w,_;for(b in this.files)_=this.files[b],(w=b.slice(this.root.length,b.length))&&b.slice(0,this.root.length)===this.root&&T(w,_)},filter:function(T){var b=[];return this.forEach(function(w,_){T(w,_)&&b.push(_)}),b},file:function(T,b,w){if(arguments.length!==1)return T=this.root+T,c.call(this,T,b,w),this;if(v(T)){var _=T;return this.filter(function(L,N){return!N.dir&&_.test(L)})}var I=this.files[this.root+T];return I&&!I.dir?I:null},folder:function(T){if(!T)return this;if(v(T))return this.filter(function(I,L){return L.dir&&T.test(I)});var b=this.root+T,w=m.call(this,b),_=this.clone();return _.root=w.name,_},remove:function(T){T=this.root+T;var b=this.files[T];if(b||(T.slice(-1)!=="/"&&(T+="/"),b=this.files[T]),b&&!b.dir)delete this.files[T];else for(var w=this.filter(function(I,L){return L.name.slice(0,T.length)===T}),_=0;_<w.length;_++)delete this.files[w[_].name];return this},generate:function(T){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(T){var b,w={};try{if((w=r.extend(T||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.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.");r.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 _=w.comment||this.comment||"";b=a.generateWorker(this,w,_)}catch(I){(b=new i("error")).error(I)}return new n(b,w.type||"string",w.mimeType)},generateAsync:function(T,b){return this.generateInternalStream(T).accumulate(b)},generateNodeStream:function(T,b){return(T=T||{}).type||(T.type="nodebuffer"),this.generateInternalStream(T).toNodejsStream(b)}};g.exports=y},{"./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(S,g,f){g.exports=S("stream")},{stream:void 0}],17:[function(S,g,f){"use strict";var c=S("./DataReader");function o(r){c.call(this,r);for(var i=0;i<this.data.length;i++)r[i]=255&r[i]}S("../utils").inherits(o,c),o.prototype.byteAt=function(r){return this.data[this.zero+r]},o.prototype.lastIndexOfSignature=function(r){for(var i=r.charCodeAt(0),n=r.charCodeAt(1),e=r.charCodeAt(2),l=r.charCodeAt(3),t=this.length-4;0<=t;--t)if(this.data[t]===i&&this.data[t+1]===n&&this.data[t+2]===e&&this.data[t+3]===l)return t-this.zero;return-1},o.prototype.readAndCheckSignature=function(r){var i=r.charCodeAt(0),n=r.charCodeAt(1),e=r.charCodeAt(2),l=r.charCodeAt(3),t=this.readData(4);return i===t[0]&&n===t[1]&&e===t[2]&&l===t[3]},o.prototype.readData=function(r){if(this.checkOffset(r),r===0)return[];var i=this.data.slice(this.zero+this.index,this.zero+this.index+r);return this.index+=r,i},g.exports=o},{"../utils":32,"./DataReader":18}],18:[function(S,g,f){"use strict";var c=S("../utils");function o(r){this.data=r,this.length=r.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(i){this.checkIndex(this.index+i)},checkIndex:function(i){if(this.length<this.zero+i||i<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+i+"). Corrupted zip ?")},setIndex:function(i){this.checkIndex(i),this.index=i},skip:function(i){this.setIndex(this.index+i)},byteAt:function(i){},readInt:function(i){var n,e=0;for(this.checkOffset(i),n=this.index+i-1;n>=this.index;n--)e=(e<<8)+this.byteAt(n);return this.index+=i,e},readString:function(i){return c.transformTo("string",this.readData(i))},readData:function(i){},lastIndexOfSignature:function(i){},readAndCheckSignature:function(i){},readDate:function(){var i=this.readInt(4);return new Date(Date.UTC(1980+(i>>25&127),(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(31&i)<<1))}},g.exports=o},{"../utils":32}],19:[function(S,g,f){"use strict";var c=S("./Uint8ArrayReader");function o(r){c.call(this,r)}S("../utils").inherits(o,c),o.prototype.readData=function(r){this.checkOffset(r);var i=this.data.slice(this.zero+this.index,this.zero+this.index+r);return this.index+=r,i},g.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(S,g,f){"use strict";var c=S("./DataReader");function o(r){c.call(this,r)}S("../utils").inherits(o,c),o.prototype.byteAt=function(r){return this.data.charCodeAt(this.zero+r)},o.prototype.lastIndexOfSignature=function(r){return this.data.lastIndexOf(r)-this.zero},o.prototype.readAndCheckSignature=function(r){return r===this.readData(4)},o.prototype.readData=function(r){this.checkOffset(r);var i=this.data.slice(this.zero+this.index,this.zero+this.index+r);return this.index+=r,i},g.exports=o},{"../utils":32,"./DataReader":18}],21:[function(S,g,f){"use strict";var c=S("./ArrayReader");function o(r){c.call(this,r)}S("../utils").inherits(o,c),o.prototype.readData=function(r){if(this.checkOffset(r),r===0)return new Uint8Array(0);var i=this.data.subarray(this.zero+this.index,this.zero+this.index+r);return this.index+=r,i},g.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(S,g,f){"use strict";var c=S("../utils"),o=S("../support"),r=S("./ArrayReader"),i=S("./StringReader"),n=S("./NodeBufferReader"),e=S("./Uint8ArrayReader");g.exports=function(l){var t=c.getTypeOf(l);return c.checkSupport(t),t!=="string"||o.uint8array?t==="nodebuffer"?new n(l):o.uint8array?new e(c.transformTo("uint8array",l)):new r(c.transformTo("array",l)):new i(l)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(S,g,f){"use strict";f.LOCAL_FILE_HEADER="PK",f.CENTRAL_FILE_HEADER="PK",f.CENTRAL_DIRECTORY_END="PK",f.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",f.ZIP64_CENTRAL_DIRECTORY_END="PK",f.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(S,g,f){"use strict";var c=S("./GenericWorker"),o=S("../utils");function r(i){c.call(this,"ConvertWorker to "+i),this.destType=i}o.inherits(r,c),r.prototype.processChunk=function(i){this.push({data:o.transformTo(this.destType,i.data),meta:i.meta})},g.exports=r},{"../utils":32,"./GenericWorker":28}],25:[function(S,g,f){"use strict";var c=S("./GenericWorker"),o=S("../crc32");function r(){c.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}S("../utils").inherits(r,c),r.prototype.processChunk=function(i){this.streamInfo.crc32=o(i.data,this.streamInfo.crc32||0),this.push(i)},g.exports=r},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(S,g,f){"use strict";var c=S("../utils"),o=S("./GenericWorker");function r(i){o.call(this,"DataLengthProbe for "+i),this.propName=i,this.withStreamInfo(i,0)}c.inherits(r,o),r.prototype.processChunk=function(i){if(i){var n=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=n+i.data.length}o.prototype.processChunk.call(this,i)},g.exports=r},{"../utils":32,"./GenericWorker":28}],27:[function(S,g,f){"use strict";var c=S("../utils"),o=S("./GenericWorker");function r(i){o.call(this,"DataWorker");var n=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,i.then(function(e){n.dataIsReady=!0,n.data=e,n.max=e&&e.length||0,n.type=c.getTypeOf(e),n.isPaused||n._tickAndRepeat()},function(e){n.error(e)})}c.inherits(r,o),r.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},r.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,c.delay(this._tickAndRepeat,[],this)),!0)},r.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(c.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},r.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var i=null,n=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":i=this.data.substring(this.index,n);break;case"uint8array":i=this.data.subarray(this.index,n);break;case"array":case"nodebuffer":i=this.data.slice(this.index,n)}return this.index=n,this.push({data:i,meta:{percent:this.max?this.index/this.max*100:0}})},g.exports=r},{"../utils":32,"./GenericWorker":28}],28:[function(S,g,f){"use strict";function c(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}c.prototype={push:function(r){this.emit("data",r)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(r){this.emit("error",r)}return!0},error:function(r){return!this.isFinished&&(this.isPaused?this.generatedError=r:(this.isFinished=!0,this.emit("error",r),this.previous&&this.previous.error(r),this.cleanUp()),!0)},on:function(r,i){return this._listeners[r].push(i),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(r,i){if(this._listeners[r])for(var n=0;n<this._listeners[r].length;n++)this._listeners[r][n].call(this,i)},pipe:function(r){return r.registerPrevious(this)},registerPrevious:function(r){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=r.streamInfo,this.mergeStreamInfo(),this.previous=r;var i=this;return r.on("data",function(n){i.processChunk(n)}),r.on("end",function(){i.end()}),r.on("error",function(n){i.error(n)}),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 r=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),r=!0),this.previous&&this.previous.resume(),!r},flush:function(){},processChunk:function(r){this.push(r)},withStreamInfo:function(r,i){return this.extraStreamInfo[r]=i,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var r in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(r)&&(this.streamInfo[r]=this.extraStreamInfo[r])},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 r="Worker "+this.name;return this.previous?this.previous+" -> "+r:r}},g.exports=c},{}],29:[function(S,g,f){"use strict";var c=S("../utils"),o=S("./ConvertWorker"),r=S("./GenericWorker"),i=S("../base64"),n=S("../support"),e=S("../external"),l=null;if(n.nodestream)try{l=S("../nodejs/NodejsStreamOutputAdapter")}catch(s){}function t(s,u){return new e.Promise(function(h,p){var m=[],v=s._internalType,y=s._outputType,E=s._mimeType;s.on("data",function(T,b){m.push(T),u&&u(b)}).on("error",function(T){m=[],p(T)}).on("end",function(){try{var T=function(b,w,_){switch(b){case"blob":return c.newBlob(c.transformTo("arraybuffer",w),_);case"base64":return i.encode(w);default:return c.transformTo(b,w)}}(y,function(b,w){var _,I=0,L=null,N=0;for(_=0;_<w.length;_++)N+=w[_].length;switch(b){case"string":return w.join("");case"array":return Array.prototype.concat.apply([],w);case"uint8array":for(L=new Uint8Array(N),_=0;_<w.length;_++)L.set(w[_],I),I+=w[_].length;return L;case"nodebuffer":return O.concat(w);default:throw new Error("concat : unsupported type '"+b+"'")}}(v,m),E);h(T)}catch(b){p(b)}m=[]}).resume()})}function a(s,u,h){var p=u;switch(u){case"blob":case"arraybuffer":p="uint8array";break;case"base64":p="string"}try{this._internalType=p,this._outputType=u,this._mimeType=h,c.checkSupport(p),this._worker=s.pipe(new o(p)),s.lock()}catch(m){this._worker=new r("error"),this._worker.error(m)}}a.prototype={accumulate:function(u){return t(this,u)},on:function(u,h){var p=this;return u==="data"?this._worker.on(u,function(m){h.call(p,m.data,m.meta)}):this._worker.on(u,function(){c.delay(h,arguments,p)}),this},resume:function(){return c.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(u){if(c.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new l(this,{objectMode:this._outputType!=="nodebuffer"},u)}},g.exports=a},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(S,g,f){"use strict";if(f.base64=!0,f.array=!0,f.string=!0,f.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",f.nodebuffer=typeof O!="undefined",f.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")f.blob=!1;else{var c=new ArrayBuffer(0);try{f.blob=new Blob([c],{type:"application/zip"}).size===0}catch(r){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(c),f.blob=o.getBlob("application/zip").size===0}catch(i){f.blob=!1}}}try{f.nodestream=!!S("readable-stream").Readable}catch(r){f.nodestream=!1}},{"readable-stream":16}],31:[function(S,g,f){"use strict";for(var c=S("./utils"),o=S("./support"),r=S("./nodejsUtils"),i=S("./stream/GenericWorker"),n=new Array(256),e=0;e<256;e++)n[e]=252<=e?6:248<=e?5:240<=e?4:224<=e?3:192<=e?2:1;n[254]=n[254]=1;function l(){i.call(this,"utf-8 decode"),this.leftOver=null}function t(){i.call(this,"utf-8 encode")}f.utf8encode=function(a){return o.nodebuffer?r.newBufferFrom(a,"utf-8"):function(s){var u,h,p,m,v,y=s.length,E=0;for(m=0;m<y;m++)(64512&(h=s.charCodeAt(m)))==55296&&m+1<y&&(64512&(p=s.charCodeAt(m+1)))==56320&&(h=65536+(h-55296<<10)+(p-56320),m++),E+=h<128?1:h<2048?2:h<65536?3:4;for(u=o.uint8array?new Uint8Array(E):new Array(E),m=v=0;v<E;m++)(64512&(h=s.charCodeAt(m)))==55296&&m+1<y&&(64512&(p=s.charCodeAt(m+1)))==56320&&(h=65536+(h-55296<<10)+(p-56320),m++),h<128?u[v++]=h:(h<2048?u[v++]=192|h>>>6:(h<65536?u[v++]=224|h>>>12:(u[v++]=240|h>>>18,u[v++]=128|h>>>12&63),u[v++]=128|h>>>6&63),u[v++]=128|63&h);return u}(a)},f.utf8decode=function(a){return o.nodebuffer?c.transformTo("nodebuffer",a).toString("utf-8"):function(s){var u,h,p,m,v=s.length,y=new Array(2*v);for(u=h=0;u<v;)if((p=s[u++])<128)y[h++]=p;else if(4<(m=n[p]))y[h++]=65533,u+=m-1;else{for(p&=m===2?31:m===3?15:7;1<m&&u<v;)p=p<<6|63&s[u++],m--;1<m?y[h++]=65533:p<65536?y[h++]=p:(p-=65536,y[h++]=55296|p>>10&1023,y[h++]=56320|1023&p)}return y.length!==h&&(y.subarray?y=y.subarray(0,h):y.length=h),c.applyFromCharCode(y)}(a=c.transformTo(o.uint8array?"uint8array":"array",a))},c.inherits(l,i),l.prototype.processChunk=function(a){var s=c.transformTo(o.uint8array?"uint8array":"array",a.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var u=s;(s=new Uint8Array(u.length+this.leftOver.length)).set(this.leftOver,0),s.set(u,this.leftOver.length)}else s=this.leftOver.concat(s);this.leftOver=null}var h=function(m,v){var y;for((v=v||m.length)>m.length&&(v=m.length),y=v-1;0<=y&&(192&m[y])==128;)y--;return y<0||y===0?v:y+n[m[y]]>v?y:v}(s),p=s;h!==s.length&&(o.uint8array?(p=s.subarray(0,h),this.leftOver=s.subarray(h,s.length)):(p=s.slice(0,h),this.leftOver=s.slice(h,s.length))),this.push({data:f.utf8decode(p),meta:a.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:f.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},f.Utf8DecodeWorker=l,c.inherits(t,i),t.prototype.processChunk=function(a){this.push({data:f.utf8encode(a.data),meta:a.meta})},f.Utf8EncodeWorker=t},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(S,g,f){"use strict";var c=S("./support"),o=S("./base64"),r=S("./nodejsUtils"),i=S("./external");function n(u){return u}function e(u,h){for(var p=0;p<u.length;++p)h[p]=255&u.charCodeAt(p);return h}S("setimmediate"),f.newBlob=function(u,h){f.checkSupport("blob");try{return new Blob([u],{type:h})}catch(m){try{var p=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return p.append(u),p.getBlob(h)}catch(v){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(h,p,m){var v=[],y=0,E=h.length;if(E<=m)return String.fromCharCode.apply(null,h);for(;y<E;)p==="array"||p==="nodebuffer"?v.push(String.fromCharCode.apply(null,h.slice(y,Math.min(y+m,E)))):v.push(String.fromCharCode.apply(null,h.subarray(y,Math.min(y+m,E)))),y+=m;return v.join("")},stringifyByChar:function(h){for(var p="",m=0;m<h.length;m++)p+=String.fromCharCode(h[m]);return p},applyCanBeUsed:{uint8array:function(){try{return c.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(u){return!1}}(),nodebuffer:function(){try{return c.nodebuffer&&String.fromCharCode.apply(null,r.allocBuffer(1)).length===1}catch(u){return!1}}()}};function t(u){var h=65536,p=f.getTypeOf(u),m=!0;if(p==="uint8array"?m=l.applyCanBeUsed.uint8array:p==="nodebuffer"&&(m=l.applyCanBeUsed.nodebuffer),m)for(;1<h;)try{return l.stringifyByChunk(u,p,h)}catch(v){h=Math.floor(h/2)}return l.stringifyByChar(u)}function a(u,h){for(var p=0;p<u.length;p++)h[p]=u[p];return h}f.applyFromCharCode=t;var s={};s.string={string:n,array:function(h){return e(h,new Array(h.length))},arraybuffer:function(h){return s.string.uint8array(h).buffer},uint8array:function(h){return e(h,new Uint8Array(h.length))},nodebuffer:function(h){return e(h,r.allocBuffer(h.length))}},s.array={string:t,array:n,arraybuffer:function(h){return new Uint8Array(h).buffer},uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return r.newBufferFrom(h)}},s.arraybuffer={string:function(h){return t(new Uint8Array(h))},array:function(h){return a(new Uint8Array(h),new Array(h.byteLength))},arraybuffer:n,uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return r.newBufferFrom(new Uint8Array(h))}},s.uint8array={string:t,array:function(h){return a(h,new Array(h.length))},arraybuffer:function(h){return h.buffer},uint8array:n,nodebuffer:function(h){return r.newBufferFrom(h)}},s.nodebuffer={string:t,array:function(h){return a(h,new Array(h.length))},arraybuffer:function(h){return s.nodebuffer.uint8array(h).buffer},uint8array:function(h){return a(h,new Uint8Array(h.length))},nodebuffer:n},f.transformTo=function(u,h){if(h=h||"",!u)return h;f.checkSupport(u);var p=f.getTypeOf(h);return s[p][u](h)},f.resolve=function(u){for(var h=u.split("/"),p=[],m=0;m<h.length;m++){var v=h[m];v==="."||v===""&&m!==0&&m!==h.length-1||(v===".."?p.pop():p.push(v))}return p.join("/")},f.getTypeOf=function(u){return typeof u=="string"?"string":Object.prototype.toString.call(u)==="[object Array]"?"array":c.nodebuffer&&r.isBuffer(u)?"nodebuffer":c.uint8array&&u instanceof Uint8Array?"uint8array":c.arraybuffer&&u instanceof ArrayBuffer?"arraybuffer":void 0},f.checkSupport=function(u){if(!c[u.toLowerCase()])throw new Error(u+" is not supported by this platform")},f.MAX_VALUE_16BITS=65535,f.MAX_VALUE_32BITS=-1,f.pretty=function(u){var h,p,m="";for(p=0;p<(u||"").length;p++)m+="\\x"+((h=u.charCodeAt(p))<16?"0":"")+h.toString(16).toUpperCase();return m},f.delay=function(u,h,p){setImmediate(function(){u.apply(p||null,h||[])})},f.inherits=function(u,h){function p(){}p.prototype=h.prototype,u.prototype=new p},f.extend=function(){var u,h,p={};for(u=0;u<arguments.length;u++)for(h in arguments[u])arguments[u].hasOwnProperty(h)&&p[h]===void 0&&(p[h]=arguments[u][h]);return p},f.prepareContent=function(u,h,p,m,v){return i.Promise.resolve(h).then(function(y){return c.blob&&(y instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(y))!==-1)&&typeof FileReader!="undefined"?new i.Promise(function(E,T){var b=new FileReader;b.onload=function(w){E(w.target.result)},b.onerror=function(w){T(w.target.error)},b.readAsArrayBuffer(y)}):y}).then(function(y){var E=f.getTypeOf(y);return E?(E==="arraybuffer"?y=f.transformTo("uint8array",y):E==="string"&&(v?y=o.decode(y):p&&m!==!0&&(y=function(T){return e(T,c.uint8array?new Uint8Array(T.length):new Array(T.length))}(y))),y):i.Promise.reject(new Error("Can't read the data of '"+u+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(S,g,f){"use strict";var c=S("./reader/readerFor"),o=S("./utils"),r=S("./signature"),i=S("./zipEntry"),n=(S("./utf8"),S("./support"));function e(l){this.files=[],this.loadOptions=l}e.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var a=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(a)+", expected "+o.pretty(t)+")")}},isSignature:function(t,a){var s=this.reader.index;this.reader.setIndex(t);var u=this.reader.readString(4)===a;return this.reader.setIndex(s),u},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 t=this.reader.readData(this.zipCommentLength),a=n.uint8array?"uint8array":"array",s=o.transformTo(a,t);this.zipComment=this.loadOptions.decodeFileName(s)},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 t,a,s,u=this.zip64EndOfCentralSize-44;0<u;)t=this.reader.readInt(2),a=this.reader.readInt(4),s=this.reader.readData(a),this.zip64ExtensibleData[t]={id:t,length:a,value:s}},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 t,a;for(t=0;t<this.files.length;t++)a=this.files[t],this.reader.setIndex(a.localHeaderOffset),this.checkSignature(r.LOCAL_FILE_HEADER),a.readLocalPart(this.reader),a.handleUTF8(),a.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(r.CENTRAL_FILE_HEADER);)(t=new i({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);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 t=this.reader.lastIndexOfSignature(r.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,r.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(t);var a=t;if(this.checkSignature(r.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,r.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(r.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(r.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var s=this.centralDirOffset+this.centralDirSize;this.zip64&&(s+=20,s+=12+this.zip64EndOfCentralSize);var u=a-s;if(0<u)this.isSignature(a,r.CENTRAL_FILE_HEADER)||(this.reader.zero=u);else if(u<0)throw new Error("Corrupted zip: missing "+Math.abs(u)+" bytes.")},prepareReader:function(t){this.reader=c(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},g.exports=e},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(S,g,f){"use strict";var c=S("./reader/readerFor"),o=S("./utils"),r=S("./compressedObject"),i=S("./crc32"),n=S("./utf8"),e=S("./compressions"),l=S("./support");function t(a,s){this.options=a,this.loadOptions=s}t.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(s){var u,h;if(s.skip(22),this.fileNameLength=s.readInt(2),h=s.readInt(2),this.fileName=s.readData(this.fileNameLength),s.skip(h),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((u=function(p){for(var m in e)if(e.hasOwnProperty(m)&&e[m].magic===p)return e[m];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new r(this.compressedSize,this.uncompressedSize,this.crc32,u,s.readData(this.compressedSize))},readCentralPart:function(s){this.versionMadeBy=s.readInt(2),s.skip(2),this.bitFlag=s.readInt(2),this.compressionMethod=s.readString(2),this.date=s.readDate(),this.crc32=s.readInt(4),this.compressedSize=s.readInt(4),this.uncompressedSize=s.readInt(4);var u=s.readInt(2);if(this.extraFieldsLength=s.readInt(2),this.fileCommentLength=s.readInt(2),this.diskNumberStart=s.readInt(2),this.internalFileAttributes=s.readInt(2),this.externalFileAttributes=s.readInt(4),this.localHeaderOffset=s.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");s.skip(u),this.readExtraFields(s),this.parseZIP64ExtraField(s),this.fileComment=s.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var s=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),s==0&&(this.dosPermissions=63&this.externalFileAttributes),s==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(s){if(this.extraFields[1]){var u=c(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=u.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=u.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=u.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=u.readInt(4))}},readExtraFields:function(s){var u,h,p,m=s.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});s.index+4<m;)u=s.readInt(2),h=s.readInt(2),p=s.readData(h),this.extraFields[u]={id:u,length:h,value:p};s.setIndex(m)},handleUTF8:function(){var s=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=n.utf8decode(this.fileName),this.fileCommentStr=n.utf8decode(this.fileComment);else{var u=this.findExtraFieldUnicodePath();if(u!==null)this.fileNameStr=u;else{var h=o.transformTo(s,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(h)}var p=this.findExtraFieldUnicodeComment();if(p!==null)this.fileCommentStr=p;else{var m=o.transformTo(s,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(m)}}},findExtraFieldUnicodePath:function(){var s=this.extraFields[28789];if(s){var u=c(s.value);return u.readInt(1)!==1||i(this.fileName)!==u.readInt(4)?null:n.utf8decode(u.readData(s.length-5))}return null},findExtraFieldUnicodeComment:function(){var s=this.extraFields[25461];if(s){var u=c(s.value);return u.readInt(1)!==1||i(this.fileComment)!==u.readInt(4)?null:n.utf8decode(u.readData(s.length-5))}return null}},g.exports=t},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(S,g,f){"use strict";function c(s,u,h){this.name=s,this.dir=h.dir,this.date=h.date,this.comment=h.comment,this.unixPermissions=h.unixPermissions,this.dosPermissions=h.dosPermissions,this._data=u,this._dataBinary=h.binary,this.options={compression:h.compression,compressionOptions:h.compressionOptions}}var o=S("./stream/StreamHelper"),r=S("./stream/DataWorker"),i=S("./utf8"),n=S("./compressedObject"),e=S("./stream/GenericWorker");c.prototype={internalStream:function(u){var h=null,p="string";try{if(!u)throw new Error("No output type specified.");var m=(p=u.toLowerCase())==="string"||p==="text";p!=="binarystring"&&p!=="text"||(p="string"),h=this._decompressWorker();var v=!this._dataBinary;v&&!m&&(h=h.pipe(new i.Utf8EncodeWorker)),!v&&m&&(h=h.pipe(new i.Utf8DecodeWorker))}catch(y){(h=new e("error")).error(y)}return new o(h,p,"")},async:function(u,h){return this.internalStream(u).accumulate(h)},nodeStream:function(u,h){return this.internalStream(u||"nodebuffer").toNodejsStream(h)},_compressWorker:function(u,h){if(this._data instanceof n&&this._data.compression.magic===u.magic)return this._data.getCompressedWorker();var p=this._decompressWorker();return this._dataBinary||(p=p.pipe(new i.Utf8EncodeWorker)),n.createWorkerFrom(p,u,h)},_decompressWorker:function(){return this._data instanceof n?this._data.getContentWorker():this._data instanceof e?this._data:new r(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],t=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},a=0;a<l.length;a++)c.prototype[l[a]]=t;g.exports=c},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(S,g,f){(function(c){"use strict";var o,r,i=c.MutationObserver||c.WebKitMutationObserver;if(i){var n=0,e=new i(s),l=c.document.createTextNode("");e.observe(l,{characterData:!0}),o=function(){l.data=n=++n%2}}else if(c.setImmediate||c.MessageChannel===void 0)o="document"in c&&"onreadystatechange"in c.document.createElement("script")?function(){var u=c.document.createElement("script");u.onreadystatechange=function(){s(),u.onreadystatechange=null,u.parentNode.removeChild(u),u=null},c.document.documentElement.appendChild(u)}:function(){setTimeout(s,0)};else{var t=new c.MessageChannel;t.port1.onmessage=s,o=function(){t.port2.postMessage(0)}}var a=[];function s(){var u,h;r=!0;for(var p=a.length;p;){for(h=a,a=[],u=-1;++u<p;)h[u]();p=a.length}r=!1}g.exports=function(u){a.push(u)!==1||r||o()}}).call(this,typeof x!="undefined"?x:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(S,g,f){"use strict";var c=S("immediate");function o(){}var r={},i=["REJECTED"],n=["FULFILLED"],e=["PENDING"];function l(p){if(typeof p!="function")throw new TypeError("resolver must be a function");this.state=e,this.queue=[],this.outcome=void 0,p!==o&&u(this,p)}function t(p,m,v){this.promise=p,typeof m=="function"&&(this.onFulfilled=m,this.callFulfilled=this.otherCallFulfilled),typeof v=="function"&&(this.onRejected=v,this.callRejected=this.otherCallRejected)}function a(p,m,v){c(function(){var y;try{y=m(v)}catch(E){return r.reject(p,E)}y===p?r.reject(p,new TypeError("Cannot resolve promise with itself")):r.resolve(p,y)})}function s(p){var m=p&&p.then;if(p&&(typeof p=="object"||typeof p=="function")&&typeof m=="function")return function(){m.apply(p,arguments)}}function u(p,m){var v=!1;function y(b){v||(v=!0,r.reject(p,b))}function E(b){v||(v=!0,r.resolve(p,b))}var T=h(function(){m(E,y)});T.status==="error"&&y(T.value)}function h(p,m){var v={};try{v.value=p(m),v.status="success"}catch(y){v.status="error",v.value=y}return v}(g.exports=l).prototype.finally=function(p){if(typeof p!="function")return this;var m=this.constructor;return this.then(function(v){return m.resolve(p()).then(function(){return v})},function(v){return m.resolve(p()).then(function(){throw v})})},l.prototype.catch=function(p){return this.then(null,p)},l.prototype.then=function(p,m){if(typeof p!="function"&&this.state===n||typeof m!="function"&&this.state===i)return this;var v=new this.constructor(o);return this.state!==e?a(v,this.state===n?p:m,this.outcome):this.queue.push(new t(v,p,m)),v},t.prototype.callFulfilled=function(p){r.resolve(this.promise,p)},t.prototype.otherCallFulfilled=function(p){a(this.promise,this.onFulfilled,p)},t.prototype.callRejected=function(p){r.reject(this.promise,p)},t.prototype.otherCallRejected=function(p){a(this.promise,this.onRejected,p)},r.resolve=function(p,m){var v=h(s,m);if(v.status==="error")return r.reject(p,v.value);var y=v.value;if(y)u(p,y);else{p.state=n,p.outcome=m;for(var E=-1,T=p.queue.length;++E<T;)p.queue[E].callFulfilled(m)}return p},r.reject=function(p,m){p.state=i,p.outcome=m;for(var v=-1,y=p.queue.length;++v<y;)p.queue[v].callRejected(m);return p},l.resolve=function(p){return p instanceof this?p:r.resolve(new this(o),p)},l.reject=function(p){var m=new this(o);return r.reject(m,p)},l.all=function(p){var m=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=p.length,y=!1;if(!v)return this.resolve([]);for(var E=new Array(v),T=0,b=-1,w=new this(o);++b<v;)_(p[b],b);return w;function _(I,L){m.resolve(I).then(function(N){E[L]=N,++T!==v||y||(y=!0,r.resolve(w,E))},function(N){y||(y=!0,r.reject(w,N))})}},l.race=function(p){var m=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=p.length,y=!1;if(!v)return this.resolve([]);for(var E=-1,T=new this(o);++E<v;)b=p[E],m.resolve(b).then(function(w){y||(y=!0,r.resolve(T,w))},function(w){y||(y=!0,r.reject(T,w))});var b;return T}},{immediate:36}],38:[function(S,g,f){"use strict";var c={};(0,S("./lib/utils/common").assign)(c,S("./lib/deflate"),S("./lib/inflate"),S("./lib/zlib/constants")),g.exports=c},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(S,g,f){"use strict";var c=S("./zlib/deflate"),o=S("./utils/common"),r=S("./utils/strings"),i=S("./zlib/messages"),n=S("./zlib/zstream"),e=Object.prototype.toString,l=0,t=-1,a=0,s=8;function u(p){if(!(this instanceof u))return new u(p);this.options=o.assign({level:t,method:s,chunkSize:16384,windowBits:15,memLevel:8,strategy:a,to:""},p||{});var m=this.options;m.raw&&0<m.windowBits?m.windowBits=-m.windowBits:m.gzip&&0<m.windowBits&&m.windowBits<16&&(m.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new n,this.strm.avail_out=0;var v=c.deflateInit2(this.strm,m.level,m.method,m.windowBits,m.memLevel,m.strategy);if(v!==l)throw new Error(i[v]);if(m.header&&c.deflateSetHeader(this.strm,m.header),m.dictionary){var y;if(y=typeof m.dictionary=="string"?r.string2buf(m.dictionary):e.call(m.dictionary)==="[object ArrayBuffer]"?new Uint8Array(m.dictionary):m.dictionary,(v=c.deflateSetDictionary(this.strm,y))!==l)throw new Error(i[v]);this._dict_set=!0}}function h(p,m){var v=new u(m);if(v.push(p,!0),v.err)throw v.msg||i[v.err];return v.result}u.prototype.push=function(p,m){var v,y,E=this.strm,T=this.options.chunkSize;if(this.ended)return!1;y=m===~~m?m:m===!0?4:0,typeof p=="string"?E.input=r.string2buf(p):e.call(p)==="[object ArrayBuffer]"?E.input=new Uint8Array(p):E.input=p,E.next_in=0,E.avail_in=E.input.length;do{if(E.avail_out===0&&(E.output=new o.Buf8(T),E.next_out=0,E.avail_out=T),(v=c.deflate(E,y))!==1&&v!==l)return this.onEnd(v),!(this.ended=!0);E.avail_out!==0&&(E.avail_in!==0||y!==4&&y!==2)||(this.options.to==="string"?this.onData(r.buf2binstring(o.shrinkBuf(E.output,E.next_out))):this.onData(o.shrinkBuf(E.output,E.next_out)))}while((0<E.avail_in||E.avail_out===0)&&v!==1);return y===4?(v=c.deflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===l):y!==2||(this.onEnd(l),!(E.avail_out=0))},u.prototype.onData=function(p){this.chunks.push(p)},u.prototype.onEnd=function(p){p===l&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=p,this.msg=this.strm.msg},f.Deflate=u,f.deflate=h,f.deflateRaw=function(p,m){return(m=m||{}).raw=!0,h(p,m)},f.gzip=function(p,m){return(m=m||{}).gzip=!0,h(p,m)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(S,g,f){"use strict";var c=S("./zlib/inflate"),o=S("./utils/common"),r=S("./utils/strings"),i=S("./zlib/constants"),n=S("./zlib/messages"),e=S("./zlib/zstream"),l=S("./zlib/gzheader"),t=Object.prototype.toString;function a(u){if(!(this instanceof a))return new a(u);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},u||{});var h=this.options;h.raw&&0<=h.windowBits&&h.windowBits<16&&(h.windowBits=-h.windowBits,h.windowBits===0&&(h.windowBits=-15)),!(0<=h.windowBits&&h.windowBits<16)||u&&u.windowBits||(h.windowBits+=32),15<h.windowBits&&h.windowBits<48&&(15&h.windowBits)==0&&(h.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new e,this.strm.avail_out=0;var p=c.inflateInit2(this.strm,h.windowBits);if(p!==i.Z_OK)throw new Error(n[p]);this.header=new l,c.inflateGetHeader(this.strm,this.header)}function s(u,h){var p=new a(h);if(p.push(u,!0),p.err)throw p.msg||n[p.err];return p.result}a.prototype.push=function(u,h){var p,m,v,y,E,T,b=this.strm,w=this.options.chunkSize,_=this.options.dictionary,I=!1;if(this.ended)return!1;m=h===~~h?h:h===!0?i.Z_FINISH:i.Z_NO_FLUSH,typeof u=="string"?b.input=r.binstring2buf(u):t.call(u)==="[object ArrayBuffer]"?b.input=new Uint8Array(u):b.input=u,b.next_in=0,b.avail_in=b.input.length;do{if(b.avail_out===0&&(b.output=new o.Buf8(w),b.next_out=0,b.avail_out=w),(p=c.inflate(b,i.Z_NO_FLUSH))===i.Z_NEED_DICT&&_&&(T=typeof _=="string"?r.string2buf(_):t.call(_)==="[object ArrayBuffer]"?new Uint8Array(_):_,p=c.inflateSetDictionary(this.strm,T)),p===i.Z_BUF_ERROR&&I===!0&&(p=i.Z_OK,I=!1),p!==i.Z_STREAM_END&&p!==i.Z_OK)return this.onEnd(p),!(this.ended=!0);b.next_out&&(b.avail_out!==0&&p!==i.Z_STREAM_END&&(b.avail_in!==0||m!==i.Z_FINISH&&m!==i.Z_SYNC_FLUSH)||(this.options.to==="string"?(v=r.utf8border(b.output,b.next_out),y=b.next_out-v,E=r.buf2string(b.output,v),b.next_out=y,b.avail_out=w-y,y&&o.arraySet(b.output,b.output,v,y,0),this.onData(E)):this.onData(o.shrinkBuf(b.output,b.next_out)))),b.avail_in===0&&b.avail_out===0&&(I=!0)}while((0<b.avail_in||b.avail_out===0)&&p!==i.Z_STREAM_END);return p===i.Z_STREAM_END&&(m=i.Z_FINISH),m===i.Z_FINISH?(p=c.inflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===i.Z_OK):m!==i.Z_SYNC_FLUSH||(this.onEnd(i.Z_OK),!(b.avail_out=0))},a.prototype.onData=function(u){this.chunks.push(u)},a.prototype.onEnd=function(u){u===i.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=u,this.msg=this.strm.msg},f.Inflate=a,f.inflate=s,f.inflateRaw=function(u,h){return(h=h||{}).raw=!0,s(u,h)},f.ungzip=s},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(S,g,f){"use strict";var c=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";f.assign=function(i){for(var n=Array.prototype.slice.call(arguments,1);n.length;){var e=n.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(var l in e)e.hasOwnProperty(l)&&(i[l]=e[l])}}return i},f.shrinkBuf=function(i,n){return i.length===n?i:i.subarray?i.subarray(0,n):(i.length=n,i)};var o={arraySet:function(n,e,l,t,a){if(e.subarray&&n.subarray)n.set(e.subarray(l,l+t),a);else for(var s=0;s<t;s++)n[a+s]=e[l+s]},flattenChunks:function(n){var e,l,t,a,s,u;for(e=t=0,l=n.length;e<l;e++)t+=n[e].length;for(u=new Uint8Array(t),e=a=0,l=n.length;e<l;e++)s=n[e],u.set(s,a),a+=s.length;return u}},r={arraySet:function(n,e,l,t,a){for(var s=0;s<t;s++)n[a+s]=e[l+s]},flattenChunks:function(n){return[].concat.apply([],n)}};f.setTyped=function(i){i?(f.Buf8=Uint8Array,f.Buf16=Uint16Array,f.Buf32=Int32Array,f.assign(f,o)):(f.Buf8=Array,f.Buf16=Array,f.Buf32=Array,f.assign(f,r))},f.setTyped(c)},{}],42:[function(S,g,f){"use strict";var c=S("./common"),o=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch(l){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(l){r=!1}for(var i=new c.Buf8(256),n=0;n<256;n++)i[n]=252<=n?6:248<=n?5:240<=n?4:224<=n?3:192<=n?2:1;function e(l,t){if(t<65537&&(l.subarray&&r||!l.subarray&&o))return String.fromCharCode.apply(null,c.shrinkBuf(l,t));for(var a="",s=0;s<t;s++)a+=String.fromCharCode(l[s]);return a}i[254]=i[254]=1,f.string2buf=function(l){var t,a,s,u,h,p=l.length,m=0;for(u=0;u<p;u++)(64512&(a=l.charCodeAt(u)))==55296&&u+1<p&&(64512&(s=l.charCodeAt(u+1)))==56320&&(a=65536+(a-55296<<10)+(s-56320),u++),m+=a<128?1:a<2048?2:a<65536?3:4;for(t=new c.Buf8(m),u=h=0;h<m;u++)(64512&(a=l.charCodeAt(u)))==55296&&u+1<p&&(64512&(s=l.charCodeAt(u+1)))==56320&&(a=65536+(a-55296<<10)+(s-56320),u++),a<128?t[h++]=a:(a<2048?t[h++]=192|a>>>6:(a<65536?t[h++]=224|a>>>12:(t[h++]=240|a>>>18,t[h++]=128|a>>>12&63),t[h++]=128|a>>>6&63),t[h++]=128|63&a);return t},f.buf2binstring=function(l){return e(l,l.length)},f.binstring2buf=function(l){for(var t=new c.Buf8(l.length),a=0,s=t.length;a<s;a++)t[a]=l.charCodeAt(a);return t},f.buf2string=function(l,t){var a,s,u,h,p=t||l.length,m=new Array(2*p);for(a=s=0;a<p;)if((u=l[a++])<128)m[s++]=u;else if(4<(h=i[u]))m[s++]=65533,a+=h-1;else{for(u&=h===2?31:h===3?15:7;1<h&&a<p;)u=u<<6|63&l[a++],h--;1<h?m[s++]=65533:u<65536?m[s++]=u:(u-=65536,m[s++]=55296|u>>10&1023,m[s++]=56320|1023&u)}return e(m,s)},f.utf8border=function(l,t){var a;for((t=t||l.length)>l.length&&(t=l.length),a=t-1;0<=a&&(192&l[a])==128;)a--;return a<0||a===0?t:a+i[l[a]]>t?a:t}},{"./common":41}],43:[function(S,g,f){"use strict";g.exports=function(c,o,r,i){for(var n=65535&c|0,e=c>>>16&65535|0,l=0;r!==0;){for(r-=l=2e3<r?2e3:r;e=e+(n=n+o[i++]|0)|0,--l;);n%=65521,e%=65521}return n|e<<16|0}},{}],44:[function(S,g,f){"use strict";g.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(S,g,f){"use strict";var c=function(){for(var o,r=[],i=0;i<256;i++){o=i;for(var n=0;n<8;n++)o=1&o?3988292384^o>>>1:o>>>1;r[i]=o}return r}();g.exports=function(o,r,i,n){var e=c,l=n+i;o^=-1;for(var t=n;t<l;t++)o=o>>>8^e[255&(o^r[t])];return-1^o}},{}],46:[function(S,g,f){"use strict";var c,o=S("../utils/common"),r=S("./trees"),i=S("./adler32"),n=S("./crc32"),e=S("./messages"),l=0,t=4,a=0,s=-2,u=-1,h=4,p=2,m=8,v=9,y=286,E=30,T=19,b=2*y+1,w=15,_=3,I=258,L=I+_+1,N=42,D=113,R=1,k=2,M=3,U=4;function B(te,Ve){return te.msg=e[Ve],Ve}function j(te){return(te<<1)-(4<te?9:0)}function W(te){for(var Ve=te.length;0<=--Ve;)te[Ve]=0}function V(te){var Ve=te.state,ae=Ve.pending;ae>te.avail_out&&(ae=te.avail_out),ae!==0&&(o.arraySet(te.output,Ve.pending_buf,Ve.pending_out,ae,te.next_out),te.next_out+=ae,Ve.pending_out+=ae,te.total_out+=ae,te.avail_out-=ae,Ve.pending-=ae,Ve.pending===0&&(Ve.pending_out=0))}function z(te,Ve){r._tr_flush_block(te,0<=te.block_start?te.block_start:-1,te.strstart-te.block_start,Ve),te.block_start=te.strstart,V(te.strm)}function J(te,Ve){te.pending_buf[te.pending++]=Ve}function Z(te,Ve){te.pending_buf[te.pending++]=Ve>>>8&255,te.pending_buf[te.pending++]=255&Ve}function de(te,Ve){var ae,Q,G=te.max_chain_length,Y=te.strstart,me=te.prev_length,ue=te.nice_match,Ce=te.strstart>te.w_size-L?te.strstart-(te.w_size-L):0,Ie=te.window,ce=te.w_mask,Ae=te.prev,Te=te.strstart+I,Ge=Ie[Y+me-1],gt=Ie[Y+me];te.prev_length>=te.good_match&&(G>>=2),ue>te.lookahead&&(ue=te.lookahead);do if(Ie[(ae=Ve)+me]===gt&&Ie[ae+me-1]===Ge&&Ie[ae]===Ie[Y]&&Ie[++ae]===Ie[Y+1]){Y+=2,ae++;do;while(Ie[++Y]===Ie[++ae]&&Ie[++Y]===Ie[++ae]&&Ie[++Y]===Ie[++ae]&&Ie[++Y]===Ie[++ae]&&Ie[++Y]===Ie[++ae]&&Ie[++Y]===Ie[++ae]&&Ie[++Y]===Ie[++ae]&&Ie[++Y]===Ie[++ae]&&Y<Te);if(Q=I-(Te-Y),Y=Te-I,me<Q){if(te.match_start=Ve,ue<=(me=Q))break;Ge=Ie[Y+me-1],gt=Ie[Y+me]}}while((Ve=Ae[Ve&ce])>Ce&&--G!=0);return me<=te.lookahead?me:te.lookahead}function ie(te){var Ve,ae,Q,G,Y,me,ue,Ce,Ie,ce,Ae=te.w_size;do{if(G=te.window_size-te.lookahead-te.strstart,te.strstart>=Ae+(Ae-L)){for(o.arraySet(te.window,te.window,Ae,Ae,0),te.match_start-=Ae,te.strstart-=Ae,te.block_start-=Ae,Ve=ae=te.hash_size;Q=te.head[--Ve],te.head[Ve]=Ae<=Q?Q-Ae:0,--ae;);for(Ve=ae=Ae;Q=te.prev[--Ve],te.prev[Ve]=Ae<=Q?Q-Ae:0,--ae;);G+=Ae}if(te.strm.avail_in===0)break;if(me=te.strm,ue=te.window,Ce=te.strstart+te.lookahead,Ie=G,ce=void 0,ce=me.avail_in,Ie<ce&&(ce=Ie),ae=ce===0?0:(me.avail_in-=ce,o.arraySet(ue,me.input,me.next_in,ce,Ce),me.state.wrap===1?me.adler=i(me.adler,ue,ce,Ce):me.state.wrap===2&&(me.adler=n(me.adler,ue,ce,Ce)),me.next_in+=ce,me.total_in+=ce,ce),te.lookahead+=ae,te.lookahead+te.insert>=_)for(Y=te.strstart-te.insert,te.ins_h=te.window[Y],te.ins_h=(te.ins_h<<te.hash_shift^te.window[Y+1])&te.hash_mask;te.insert&&(te.ins_h=(te.ins_h<<te.hash_shift^te.window[Y+_-1])&te.hash_mask,te.prev[Y&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=Y,Y++,te.insert--,!(te.lookahead+te.insert<_)););}while(te.lookahead<L&&te.strm.avail_in!==0)}function ve(te,Ve){for(var ae,Q;;){if(te.lookahead<L){if(ie(te),te.lookahead<L&&Ve===l)return R;if(te.lookahead===0)break}if(ae=0,te.lookahead>=_&&(te.ins_h=(te.ins_h<<te.hash_shift^te.window[te.strstart+_-1])&te.hash_mask,ae=te.prev[te.strstart&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=te.strstart),ae!==0&&te.strstart-ae<=te.w_size-L&&(te.match_length=de(te,ae)),te.match_length>=_)if(Q=r._tr_tally(te,te.strstart-te.match_start,te.match_length-_),te.lookahead-=te.match_length,te.match_length<=te.max_lazy_match&&te.lookahead>=_){for(te.match_length--;te.strstart++,te.ins_h=(te.ins_h<<te.hash_shift^te.window[te.strstart+_-1])&te.hash_mask,ae=te.prev[te.strstart&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=te.strstart,--te.match_length!=0;);te.strstart++}else te.strstart+=te.match_length,te.match_length=0,te.ins_h=te.window[te.strstart],te.ins_h=(te.ins_h<<te.hash_shift^te.window[te.strstart+1])&te.hash_mask;else Q=r._tr_tally(te,0,te.window[te.strstart]),te.lookahead--,te.strstart++;if(Q&&(z(te,!1),te.strm.avail_out===0))return R}return te.insert=te.strstart<_-1?te.strstart:_-1,Ve===t?(z(te,!0),te.strm.avail_out===0?M:U):te.last_lit&&(z(te,!1),te.strm.avail_out===0)?R:k}function xe(te,Ve){for(var ae,Q,G;;){if(te.lookahead<L){if(ie(te),te.lookahead<L&&Ve===l)return R;if(te.lookahead===0)break}if(ae=0,te.lookahead>=_&&(te.ins_h=(te.ins_h<<te.hash_shift^te.window[te.strstart+_-1])&te.hash_mask,ae=te.prev[te.strstart&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=te.strstart),te.prev_length=te.match_length,te.prev_match=te.match_start,te.match_length=_-1,ae!==0&&te.prev_length<te.max_lazy_match&&te.strstart-ae<=te.w_size-L&&(te.match_length=de(te,ae),te.match_length<=5&&(te.strategy===1||te.match_length===_&&4096<te.strstart-te.match_start)&&(te.match_length=_-1)),te.prev_length>=_&&te.match_length<=te.prev_length){for(G=te.strstart+te.lookahead-_,Q=r._tr_tally(te,te.strstart-1-te.prev_match,te.prev_length-_),te.lookahead-=te.prev_length-1,te.prev_length-=2;++te.strstart<=G&&(te.ins_h=(te.ins_h<<te.hash_shift^te.window[te.strstart+_-1])&te.hash_mask,ae=te.prev[te.strstart&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=te.strstart),--te.prev_length!=0;);if(te.match_available=0,te.match_length=_-1,te.strstart++,Q&&(z(te,!1),te.strm.avail_out===0))return R}else if(te.match_available){if((Q=r._tr_tally(te,0,te.window[te.strstart-1]))&&z(te,!1),te.strstart++,te.lookahead--,te.strm.avail_out===0)return R}else te.match_available=1,te.strstart++,te.lookahead--}return te.match_available&&(Q=r._tr_tally(te,0,te.window[te.strstart-1]),te.match_available=0),te.insert=te.strstart<_-1?te.strstart:_-1,Ve===t?(z(te,!0),te.strm.avail_out===0?M:U):te.last_lit&&(z(te,!1),te.strm.avail_out===0)?R:k}function _e(te,Ve,ae,Q,G){this.good_length=te,this.max_lazy=Ve,this.nice_length=ae,this.max_chain=Q,this.func=G}function Ue(){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=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(2*b),this.dyn_dtree=new o.Buf16(2*(2*E+1)),this.bl_tree=new o.Buf16(2*(2*T+1)),W(this.dyn_ltree),W(this.dyn_dtree),W(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(w+1),this.heap=new o.Buf16(2*y+1),W(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*y+1),W(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 fe(te){var Ve;return te&&te.state?(te.total_in=te.total_out=0,te.data_type=p,(Ve=te.state).pending=0,Ve.pending_out=0,Ve.wrap<0&&(Ve.wrap=-Ve.wrap),Ve.status=Ve.wrap?N:D,te.adler=Ve.wrap===2?0:1,Ve.last_flush=l,r._tr_init(Ve),a):B(te,s)}function ke(te){var Ve=fe(te);return Ve===a&&function(ae){ae.window_size=2*ae.w_size,W(ae.head),ae.max_lazy_match=c[ae.level].max_lazy,ae.good_match=c[ae.level].good_length,ae.nice_match=c[ae.level].nice_length,ae.max_chain_length=c[ae.level].max_chain,ae.strstart=0,ae.block_start=0,ae.lookahead=0,ae.insert=0,ae.match_length=ae.prev_length=_-1,ae.match_available=0,ae.ins_h=0}(te.state),Ve}function se(te,Ve,ae,Q,G,Y){if(!te)return s;var me=1;if(Ve===u&&(Ve=6),Q<0?(me=0,Q=-Q):15<Q&&(me=2,Q-=16),G<1||v<G||ae!==m||Q<8||15<Q||Ve<0||9<Ve||Y<0||h<Y)return B(te,s);Q===8&&(Q=9);var ue=new Ue;return(te.state=ue).strm=te,ue.wrap=me,ue.gzhead=null,ue.w_bits=Q,ue.w_size=1<<ue.w_bits,ue.w_mask=ue.w_size-1,ue.hash_bits=G+7,ue.hash_size=1<<ue.hash_bits,ue.hash_mask=ue.hash_size-1,ue.hash_shift=~~((ue.hash_bits+_-1)/_),ue.window=new o.Buf8(2*ue.w_size),ue.head=new o.Buf16(ue.hash_size),ue.prev=new o.Buf16(ue.w_size),ue.lit_bufsize=1<<G+6,ue.pending_buf_size=4*ue.lit_bufsize,ue.pending_buf=new o.Buf8(ue.pending_buf_size),ue.d_buf=1*ue.lit_bufsize,ue.l_buf=3*ue.lit_bufsize,ue.level=Ve,ue.strategy=Y,ue.method=ae,ke(te)}c=[new _e(0,0,0,0,function(te,Ve){var ae=65535;for(ae>te.pending_buf_size-5&&(ae=te.pending_buf_size-5);;){if(te.lookahead<=1){if(ie(te),te.lookahead===0&&Ve===l)return R;if(te.lookahead===0)break}te.strstart+=te.lookahead,te.lookahead=0;var Q=te.block_start+ae;if((te.strstart===0||te.strstart>=Q)&&(te.lookahead=te.strstart-Q,te.strstart=Q,z(te,!1),te.strm.avail_out===0))return R;if(te.strstart-te.block_start>=te.w_size-L&&(z(te,!1),te.strm.avail_out===0))return R}return te.insert=0,Ve===t?(z(te,!0),te.strm.avail_out===0?M:U):(te.strstart>te.block_start&&(z(te,!1),te.strm.avail_out),R)}),new _e(4,4,8,4,ve),new _e(4,5,16,8,ve),new _e(4,6,32,32,ve),new _e(4,4,16,16,xe),new _e(8,16,32,32,xe),new _e(8,16,128,128,xe),new _e(8,32,128,256,xe),new _e(32,128,258,1024,xe),new _e(32,258,258,4096,xe)],f.deflateInit=function(te,Ve){return se(te,Ve,m,15,8,0)},f.deflateInit2=se,f.deflateReset=ke,f.deflateResetKeep=fe,f.deflateSetHeader=function(te,Ve){return te&&te.state?te.state.wrap!==2?s:(te.state.gzhead=Ve,a):s},f.deflate=function(te,Ve){var ae,Q,G,Y;if(!te||!te.state||5<Ve||Ve<0)return te?B(te,s):s;if(Q=te.state,!te.output||!te.input&&te.avail_in!==0||Q.status===666&&Ve!==t)return B(te,te.avail_out===0?-5:s);if(Q.strm=te,ae=Q.last_flush,Q.last_flush=Ve,Q.status===N)if(Q.wrap===2)te.adler=0,J(Q,31),J(Q,139),J(Q,8),Q.gzhead?(J(Q,(Q.gzhead.text?1:0)+(Q.gzhead.hcrc?2:0)+(Q.gzhead.extra?4:0)+(Q.gzhead.name?8:0)+(Q.gzhead.comment?16:0)),J(Q,255&Q.gzhead.time),J(Q,Q.gzhead.time>>8&255),J(Q,Q.gzhead.time>>16&255),J(Q,Q.gzhead.time>>24&255),J(Q,Q.level===9?2:2<=Q.strategy||Q.level<2?4:0),J(Q,255&Q.gzhead.os),Q.gzhead.extra&&Q.gzhead.extra.length&&(J(Q,255&Q.gzhead.extra.length),J(Q,Q.gzhead.extra.length>>8&255)),Q.gzhead.hcrc&&(te.adler=n(te.adler,Q.pending_buf,Q.pending,0)),Q.gzindex=0,Q.status=69):(J(Q,0),J(Q,0),J(Q,0),J(Q,0),J(Q,0),J(Q,Q.level===9?2:2<=Q.strategy||Q.level<2?4:0),J(Q,3),Q.status=D);else{var me=m+(Q.w_bits-8<<4)<<8;me|=(2<=Q.strategy||Q.level<2?0:Q.level<6?1:Q.level===6?2:3)<<6,Q.strstart!==0&&(me|=32),me+=31-me%31,Q.status=D,Z(Q,me),Q.strstart!==0&&(Z(Q,te.adler>>>16),Z(Q,65535&te.adler)),te.adler=1}if(Q.status===69)if(Q.gzhead.extra){for(G=Q.pending;Q.gzindex<(65535&Q.gzhead.extra.length)&&(Q.pending!==Q.pending_buf_size||(Q.gzhead.hcrc&&Q.pending>G&&(te.adler=n(te.adler,Q.pending_buf,Q.pending-G,G)),V(te),G=Q.pending,Q.pending!==Q.pending_buf_size));)J(Q,255&Q.gzhead.extra[Q.gzindex]),Q.gzindex++;Q.gzhead.hcrc&&Q.pending>G&&(te.adler=n(te.adler,Q.pending_buf,Q.pending-G,G)),Q.gzindex===Q.gzhead.extra.length&&(Q.gzindex=0,Q.status=73)}else Q.status=73;if(Q.status===73)if(Q.gzhead.name){G=Q.pending;do{if(Q.pending===Q.pending_buf_size&&(Q.gzhead.hcrc&&Q.pending>G&&(te.adler=n(te.adler,Q.pending_buf,Q.pending-G,G)),V(te),G=Q.pending,Q.pending===Q.pending_buf_size)){Y=1;break}Y=Q.gzindex<Q.gzhead.name.length?255&Q.gzhead.name.charCodeAt(Q.gzindex++):0,J(Q,Y)}while(Y!==0);Q.gzhead.hcrc&&Q.pending>G&&(te.adler=n(te.adler,Q.pending_buf,Q.pending-G,G)),Y===0&&(Q.gzindex=0,Q.status=91)}else Q.status=91;if(Q.status===91)if(Q.gzhead.comment){G=Q.pending;do{if(Q.pending===Q.pending_buf_size&&(Q.gzhead.hcrc&&Q.pending>G&&(te.adler=n(te.adler,Q.pending_buf,Q.pending-G,G)),V(te),G=Q.pending,Q.pending===Q.pending_buf_size)){Y=1;break}Y=Q.gzindex<Q.gzhead.comment.length?255&Q.gzhead.comment.charCodeAt(Q.gzindex++):0,J(Q,Y)}while(Y!==0);Q.gzhead.hcrc&&Q.pending>G&&(te.adler=n(te.adler,Q.pending_buf,Q.pending-G,G)),Y===0&&(Q.status=103)}else Q.status=103;if(Q.status===103&&(Q.gzhead.hcrc?(Q.pending+2>Q.pending_buf_size&&V(te),Q.pending+2<=Q.pending_buf_size&&(J(Q,255&te.adler),J(Q,te.adler>>8&255),te.adler=0,Q.status=D)):Q.status=D),Q.pending!==0){if(V(te),te.avail_out===0)return Q.last_flush=-1,a}else if(te.avail_in===0&&j(Ve)<=j(ae)&&Ve!==t)return B(te,-5);if(Q.status===666&&te.avail_in!==0)return B(te,-5);if(te.avail_in!==0||Q.lookahead!==0||Ve!==l&&Q.status!==666){var ue=Q.strategy===2?function(Ce,Ie){for(var ce;;){if(Ce.lookahead===0&&(ie(Ce),Ce.lookahead===0)){if(Ie===l)return R;break}if(Ce.match_length=0,ce=r._tr_tally(Ce,0,Ce.window[Ce.strstart]),Ce.lookahead--,Ce.strstart++,ce&&(z(Ce,!1),Ce.strm.avail_out===0))return R}return Ce.insert=0,Ie===t?(z(Ce,!0),Ce.strm.avail_out===0?M:U):Ce.last_lit&&(z(Ce,!1),Ce.strm.avail_out===0)?R:k}(Q,Ve):Q.strategy===3?function(Ce,Ie){for(var ce,Ae,Te,Ge,gt=Ce.window;;){if(Ce.lookahead<=I){if(ie(Ce),Ce.lookahead<=I&&Ie===l)return R;if(Ce.lookahead===0)break}if(Ce.match_length=0,Ce.lookahead>=_&&0<Ce.strstart&&(Ae=gt[Te=Ce.strstart-1])===gt[++Te]&&Ae===gt[++Te]&&Ae===gt[++Te]){Ge=Ce.strstart+I;do;while(Ae===gt[++Te]&&Ae===gt[++Te]&&Ae===gt[++Te]&&Ae===gt[++Te]&&Ae===gt[++Te]&&Ae===gt[++Te]&&Ae===gt[++Te]&&Ae===gt[++Te]&&Te<Ge);Ce.match_length=I-(Ge-Te),Ce.match_length>Ce.lookahead&&(Ce.match_length=Ce.lookahead)}if(Ce.match_length>=_?(ce=r._tr_tally(Ce,1,Ce.match_length-_),Ce.lookahead-=Ce.match_length,Ce.strstart+=Ce.match_length,Ce.match_length=0):(ce=r._tr_tally(Ce,0,Ce.window[Ce.strstart]),Ce.lookahead--,Ce.strstart++),ce&&(z(Ce,!1),Ce.strm.avail_out===0))return R}return Ce.insert=0,Ie===t?(z(Ce,!0),Ce.strm.avail_out===0?M:U):Ce.last_lit&&(z(Ce,!1),Ce.strm.avail_out===0)?R:k}(Q,Ve):c[Q.level].func(Q,Ve);if(ue!==M&&ue!==U||(Q.status=666),ue===R||ue===M)return te.avail_out===0&&(Q.last_flush=-1),a;if(ue===k&&(Ve===1?r._tr_align(Q):Ve!==5&&(r._tr_stored_block(Q,0,0,!1),Ve===3&&(W(Q.head),Q.lookahead===0&&(Q.strstart=0,Q.block_start=0,Q.insert=0))),V(te),te.avail_out===0))return Q.last_flush=-1,a}return Ve!==t?a:Q.wrap<=0?1:(Q.wrap===2?(J(Q,255&te.adler),J(Q,te.adler>>8&255),J(Q,te.adler>>16&255),J(Q,te.adler>>24&255),J(Q,255&te.total_in),J(Q,te.total_in>>8&255),J(Q,te.total_in>>16&255),J(Q,te.total_in>>24&255)):(Z(Q,te.adler>>>16),Z(Q,65535&te.adler)),V(te),0<Q.wrap&&(Q.wrap=-Q.wrap),Q.pending!==0?a:1)},f.deflateEnd=function(te){var Ve;return te&&te.state?(Ve=te.state.status)!==N&&Ve!==69&&Ve!==73&&Ve!==91&&Ve!==103&&Ve!==D&&Ve!==666?B(te,s):(te.state=null,Ve===D?B(te,-3):a):s},f.deflateSetDictionary=function(te,Ve){var ae,Q,G,Y,me,ue,Ce,Ie,ce=Ve.length;if(!te||!te.state)return s;if((Y=(ae=te.state).wrap)===2||Y===1&&ae.status!==N||ae.lookahead)return s;for(Y===1&&(te.adler=i(te.adler,Ve,ce,0)),ae.wrap=0,ce>=ae.w_size&&(Y===0&&(W(ae.head),ae.strstart=0,ae.block_start=0,ae.insert=0),Ie=new o.Buf8(ae.w_size),o.arraySet(Ie,Ve,ce-ae.w_size,ae.w_size,0),Ve=Ie,ce=ae.w_size),me=te.avail_in,ue=te.next_in,Ce=te.input,te.avail_in=ce,te.next_in=0,te.input=Ve,ie(ae);ae.lookahead>=_;){for(Q=ae.strstart,G=ae.lookahead-(_-1);ae.ins_h=(ae.ins_h<<ae.hash_shift^ae.window[Q+_-1])&ae.hash_mask,ae.prev[Q&ae.w_mask]=ae.head[ae.ins_h],ae.head[ae.ins_h]=Q,Q++,--G;);ae.strstart=Q,ae.lookahead=_-1,ie(ae)}return ae.strstart+=ae.lookahead,ae.block_start=ae.strstart,ae.insert=ae.lookahead,ae.lookahead=0,ae.match_length=ae.prev_length=_-1,ae.match_available=0,te.next_in=ue,te.input=Ce,te.avail_in=me,ae.wrap=Y,a},f.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(S,g,f){"use strict";g.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(S,g,f){"use strict";g.exports=function(c,o){var r,i,n,e,l,t,a,s,u,h,p,m,v,y,E,T,b,w,_,I,L,N,D,R,k;r=c.state,i=c.next_in,R=c.input,n=i+(c.avail_in-5),e=c.next_out,k=c.output,l=e-(o-c.avail_out),t=e+(c.avail_out-257),a=r.dmax,s=r.wsize,u=r.whave,h=r.wnext,p=r.window,m=r.hold,v=r.bits,y=r.lencode,E=r.distcode,T=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;e:do{v<15&&(m+=R[i++]<<v,v+=8,m+=R[i++]<<v,v+=8),w=y[m&T];t:for(;;){if(m>>>=_=w>>>24,v-=_,(_=w>>>16&255)===0)k[e++]=65535&w;else{if(!(16&_)){if((64&_)==0){w=y[(65535&w)+(m&(1<<_)-1)];continue t}if(32&_){r.mode=12;break e}c.msg="invalid literal/length code",r.mode=30;break e}I=65535&w,(_&=15)&&(v<_&&(m+=R[i++]<<v,v+=8),I+=m&(1<<_)-1,m>>>=_,v-=_),v<15&&(m+=R[i++]<<v,v+=8,m+=R[i++]<<v,v+=8),w=E[m&b];r:for(;;){if(m>>>=_=w>>>24,v-=_,!(16&(_=w>>>16&255))){if((64&_)==0){w=E[(65535&w)+(m&(1<<_)-1)];continue r}c.msg="invalid distance code",r.mode=30;break e}if(L=65535&w,v<(_&=15)&&(m+=R[i++]<<v,(v+=8)<_&&(m+=R[i++]<<v,v+=8)),a<(L+=m&(1<<_)-1)){c.msg="invalid distance too far back",r.mode=30;break e}if(m>>>=_,v-=_,(_=e-l)<L){if(u<(_=L-_)&&r.sane){c.msg="invalid distance too far back",r.mode=30;break e}if(D=p,(N=0)===h){if(N+=s-_,_<I){for(I-=_;k[e++]=p[N++],--_;);N=e-L,D=k}}else if(h<_){if(N+=s+h-_,(_-=h)<I){for(I-=_;k[e++]=p[N++],--_;);if(N=0,h<I){for(I-=_=h;k[e++]=p[N++],--_;);N=e-L,D=k}}}else if(N+=h-_,_<I){for(I-=_;k[e++]=p[N++],--_;);N=e-L,D=k}for(;2<I;)k[e++]=D[N++],k[e++]=D[N++],k[e++]=D[N++],I-=3;I&&(k[e++]=D[N++],1<I&&(k[e++]=D[N++]))}else{for(N=e-L;k[e++]=k[N++],k[e++]=k[N++],k[e++]=k[N++],2<(I-=3););I&&(k[e++]=k[N++],1<I&&(k[e++]=k[N++]))}break}}break}}while(i<n&&e<t);i-=I=v>>3,m&=(1<<(v-=I<<3))-1,c.next_in=i,c.next_out=e,c.avail_in=i<n?n-i+5:5-(i-n),c.avail_out=e<t?t-e+257:257-(e-t),r.hold=m,r.bits=v}},{}],49:[function(S,g,f){"use strict";var c=S("../utils/common"),o=S("./adler32"),r=S("./crc32"),i=S("./inffast"),n=S("./inftrees"),e=1,l=2,t=0,a=-2,s=1,u=852,h=592;function p(N){return(N>>>24&255)+(N>>>8&65280)+((65280&N)<<8)+((255&N)<<24)}function m(){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 c.Buf16(320),this.work=new c.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(N){var D;return N&&N.state?(D=N.state,N.total_in=N.total_out=D.total=0,N.msg="",D.wrap&&(N.adler=1&D.wrap),D.mode=s,D.last=0,D.havedict=0,D.dmax=32768,D.head=null,D.hold=0,D.bits=0,D.lencode=D.lendyn=new c.Buf32(u),D.distcode=D.distdyn=new c.Buf32(h),D.sane=1,D.back=-1,t):a}function y(N){var D;return N&&N.state?((D=N.state).wsize=0,D.whave=0,D.wnext=0,v(N)):a}function E(N,D){var R,k;return N&&N.state?(k=N.state,D<0?(R=0,D=-D):(R=1+(D>>4),D<48&&(D&=15)),D&&(D<8||15<D)?a:(k.window!==null&&k.wbits!==D&&(k.window=null),k.wrap=R,k.wbits=D,y(N))):a}function T(N,D){var R,k;return N?(k=new m,(N.state=k).window=null,(R=E(N,D))!==t&&(N.state=null),R):a}var b,w,_=!0;function I(N){if(_){var D;for(b=new c.Buf32(512),w=new c.Buf32(32),D=0;D<144;)N.lens[D++]=8;for(;D<256;)N.lens[D++]=9;for(;D<280;)N.lens[D++]=7;for(;D<288;)N.lens[D++]=8;for(n(e,N.lens,0,288,b,0,N.work,{bits:9}),D=0;D<32;)N.lens[D++]=5;n(l,N.lens,0,32,w,0,N.work,{bits:5}),_=!1}N.lencode=b,N.lenbits=9,N.distcode=w,N.distbits=5}function L(N,D,R,k){var M,U=N.state;return U.window===null&&(U.wsize=1<<U.wbits,U.wnext=0,U.whave=0,U.window=new c.Buf8(U.wsize)),k>=U.wsize?(c.arraySet(U.window,D,R-U.wsize,U.wsize,0),U.wnext=0,U.whave=U.wsize):(k<(M=U.wsize-U.wnext)&&(M=k),c.arraySet(U.window,D,R-k,M,U.wnext),(k-=M)?(c.arraySet(U.window,D,R-k,k,0),U.wnext=k,U.whave=U.wsize):(U.wnext+=M,U.wnext===U.wsize&&(U.wnext=0),U.whave<U.wsize&&(U.whave+=M))),0}f.inflateReset=y,f.inflateReset2=E,f.inflateResetKeep=v,f.inflateInit=function(N){return T(N,15)},f.inflateInit2=T,f.inflate=function(N,D){var R,k,M,U,B,j,W,V,z,J,Z,de,ie,ve,xe,_e,Ue,fe,ke,se,te,Ve,ae,Q,G=0,Y=new c.Buf8(4),me=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!N||!N.state||!N.output||!N.input&&N.avail_in!==0)return a;(R=N.state).mode===12&&(R.mode=13),B=N.next_out,M=N.output,W=N.avail_out,U=N.next_in,k=N.input,j=N.avail_in,V=R.hold,z=R.bits,J=j,Z=W,Ve=t;e:for(;;)switch(R.mode){case s:if(R.wrap===0){R.mode=13;break}for(;z<16;){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}if(2&R.wrap&&V===35615){Y[R.check=0]=255&V,Y[1]=V>>>8&255,R.check=r(R.check,Y,2,0),z=V=0,R.mode=2;break}if(R.flags=0,R.head&&(R.head.done=!1),!(1&R.wrap)||(((255&V)<<8)+(V>>8))%31){N.msg="incorrect header check",R.mode=30;break}if((15&V)!=8){N.msg="unknown compression method",R.mode=30;break}if(z-=4,te=8+(15&(V>>>=4)),R.wbits===0)R.wbits=te;else if(te>R.wbits){N.msg="invalid window size",R.mode=30;break}R.dmax=1<<te,N.adler=R.check=1,R.mode=512&V?10:12,z=V=0;break;case 2:for(;z<16;){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}if(R.flags=V,(255&R.flags)!=8){N.msg="unknown compression method",R.mode=30;break}if(57344&R.flags){N.msg="unknown header flags set",R.mode=30;break}R.head&&(R.head.text=V>>8&1),512&R.flags&&(Y[0]=255&V,Y[1]=V>>>8&255,R.check=r(R.check,Y,2,0)),z=V=0,R.mode=3;case 3:for(;z<32;){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}R.head&&(R.head.time=V),512&R.flags&&(Y[0]=255&V,Y[1]=V>>>8&255,Y[2]=V>>>16&255,Y[3]=V>>>24&255,R.check=r(R.check,Y,4,0)),z=V=0,R.mode=4;case 4:for(;z<16;){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}R.head&&(R.head.xflags=255&V,R.head.os=V>>8),512&R.flags&&(Y[0]=255&V,Y[1]=V>>>8&255,R.check=r(R.check,Y,2,0)),z=V=0,R.mode=5;case 5:if(1024&R.flags){for(;z<16;){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}R.length=V,R.head&&(R.head.extra_len=V),512&R.flags&&(Y[0]=255&V,Y[1]=V>>>8&255,R.check=r(R.check,Y,2,0)),z=V=0}else R.head&&(R.head.extra=null);R.mode=6;case 6:if(1024&R.flags&&(j<(de=R.length)&&(de=j),de&&(R.head&&(te=R.head.extra_len-R.length,R.head.extra||(R.head.extra=new Array(R.head.extra_len)),c.arraySet(R.head.extra,k,U,de,te)),512&R.flags&&(R.check=r(R.check,k,de,U)),j-=de,U+=de,R.length-=de),R.length))break e;R.length=0,R.mode=7;case 7:if(2048&R.flags){if(j===0)break e;for(de=0;te=k[U+de++],R.head&&te&&R.length<65536&&(R.head.name+=String.fromCharCode(te)),te&&de<j;);if(512&R.flags&&(R.check=r(R.check,k,de,U)),j-=de,U+=de,te)break e}else R.head&&(R.head.name=null);R.length=0,R.mode=8;case 8:if(4096&R.flags){if(j===0)break e;for(de=0;te=k[U+de++],R.head&&te&&R.length<65536&&(R.head.comment+=String.fromCharCode(te)),te&&de<j;);if(512&R.flags&&(R.check=r(R.check,k,de,U)),j-=de,U+=de,te)break e}else R.head&&(R.head.comment=null);R.mode=9;case 9:if(512&R.flags){for(;z<16;){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}if(V!==(65535&R.check)){N.msg="header crc mismatch",R.mode=30;break}z=V=0}R.head&&(R.head.hcrc=R.flags>>9&1,R.head.done=!0),N.adler=R.check=0,R.mode=12;break;case 10:for(;z<32;){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}N.adler=R.check=p(V),z=V=0,R.mode=11;case 11:if(R.havedict===0)return N.next_out=B,N.avail_out=W,N.next_in=U,N.avail_in=j,R.hold=V,R.bits=z,2;N.adler=R.check=1,R.mode=12;case 12:if(D===5||D===6)break e;case 13:if(R.last){V>>>=7&z,z-=7&z,R.mode=27;break}for(;z<3;){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}switch(R.last=1&V,z-=1,3&(V>>>=1)){case 0:R.mode=14;break;case 1:if(I(R),R.mode=20,D!==6)break;V>>>=2,z-=2;break e;case 2:R.mode=17;break;case 3:N.msg="invalid block type",R.mode=30}V>>>=2,z-=2;break;case 14:for(V>>>=7&z,z-=7&z;z<32;){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}if((65535&V)!=(V>>>16^65535)){N.msg="invalid stored block lengths",R.mode=30;break}if(R.length=65535&V,z=V=0,R.mode=15,D===6)break e;case 15:R.mode=16;case 16:if(de=R.length){if(j<de&&(de=j),W<de&&(de=W),de===0)break e;c.arraySet(M,k,U,de,B),j-=de,U+=de,W-=de,B+=de,R.length-=de;break}R.mode=12;break;case 17:for(;z<14;){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}if(R.nlen=257+(31&V),V>>>=5,z-=5,R.ndist=1+(31&V),V>>>=5,z-=5,R.ncode=4+(15&V),V>>>=4,z-=4,286<R.nlen||30<R.ndist){N.msg="too many length or distance symbols",R.mode=30;break}R.have=0,R.mode=18;case 18:for(;R.have<R.ncode;){for(;z<3;){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}R.lens[me[R.have++]]=7&V,V>>>=3,z-=3}for(;R.have<19;)R.lens[me[R.have++]]=0;if(R.lencode=R.lendyn,R.lenbits=7,ae={bits:R.lenbits},Ve=n(0,R.lens,0,19,R.lencode,0,R.work,ae),R.lenbits=ae.bits,Ve){N.msg="invalid code lengths set",R.mode=30;break}R.have=0,R.mode=19;case 19:for(;R.have<R.nlen+R.ndist;){for(;_e=(G=R.lencode[V&(1<<R.lenbits)-1])>>>16&255,Ue=65535&G,!((xe=G>>>24)<=z);){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}if(Ue<16)V>>>=xe,z-=xe,R.lens[R.have++]=Ue;else{if(Ue===16){for(Q=xe+2;z<Q;){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}if(V>>>=xe,z-=xe,R.have===0){N.msg="invalid bit length repeat",R.mode=30;break}te=R.lens[R.have-1],de=3+(3&V),V>>>=2,z-=2}else if(Ue===17){for(Q=xe+3;z<Q;){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}z-=xe,te=0,de=3+(7&(V>>>=xe)),V>>>=3,z-=3}else{for(Q=xe+7;z<Q;){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}z-=xe,te=0,de=11+(127&(V>>>=xe)),V>>>=7,z-=7}if(R.have+de>R.nlen+R.ndist){N.msg="invalid bit length repeat",R.mode=30;break}for(;de--;)R.lens[R.have++]=te}}if(R.mode===30)break;if(R.lens[256]===0){N.msg="invalid code -- missing end-of-block",R.mode=30;break}if(R.lenbits=9,ae={bits:R.lenbits},Ve=n(e,R.lens,0,R.nlen,R.lencode,0,R.work,ae),R.lenbits=ae.bits,Ve){N.msg="invalid literal/lengths set",R.mode=30;break}if(R.distbits=6,R.distcode=R.distdyn,ae={bits:R.distbits},Ve=n(l,R.lens,R.nlen,R.ndist,R.distcode,0,R.work,ae),R.distbits=ae.bits,Ve){N.msg="invalid distances set",R.mode=30;break}if(R.mode=20,D===6)break e;case 20:R.mode=21;case 21:if(6<=j&&258<=W){N.next_out=B,N.avail_out=W,N.next_in=U,N.avail_in=j,R.hold=V,R.bits=z,i(N,Z),B=N.next_out,M=N.output,W=N.avail_out,U=N.next_in,k=N.input,j=N.avail_in,V=R.hold,z=R.bits,R.mode===12&&(R.back=-1);break}for(R.back=0;_e=(G=R.lencode[V&(1<<R.lenbits)-1])>>>16&255,Ue=65535&G,!((xe=G>>>24)<=z);){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}if(_e&&(240&_e)==0){for(fe=xe,ke=_e,se=Ue;_e=(G=R.lencode[se+((V&(1<<fe+ke)-1)>>fe)])>>>16&255,Ue=65535&G,!(fe+(xe=G>>>24)<=z);){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}V>>>=fe,z-=fe,R.back+=fe}if(V>>>=xe,z-=xe,R.back+=xe,R.length=Ue,_e===0){R.mode=26;break}if(32&_e){R.back=-1,R.mode=12;break}if(64&_e){N.msg="invalid literal/length code",R.mode=30;break}R.extra=15&_e,R.mode=22;case 22:if(R.extra){for(Q=R.extra;z<Q;){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}R.length+=V&(1<<R.extra)-1,V>>>=R.extra,z-=R.extra,R.back+=R.extra}R.was=R.length,R.mode=23;case 23:for(;_e=(G=R.distcode[V&(1<<R.distbits)-1])>>>16&255,Ue=65535&G,!((xe=G>>>24)<=z);){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}if((240&_e)==0){for(fe=xe,ke=_e,se=Ue;_e=(G=R.distcode[se+((V&(1<<fe+ke)-1)>>fe)])>>>16&255,Ue=65535&G,!(fe+(xe=G>>>24)<=z);){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}V>>>=fe,z-=fe,R.back+=fe}if(V>>>=xe,z-=xe,R.back+=xe,64&_e){N.msg="invalid distance code",R.mode=30;break}R.offset=Ue,R.extra=15&_e,R.mode=24;case 24:if(R.extra){for(Q=R.extra;z<Q;){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}R.offset+=V&(1<<R.extra)-1,V>>>=R.extra,z-=R.extra,R.back+=R.extra}if(R.offset>R.dmax){N.msg="invalid distance too far back",R.mode=30;break}R.mode=25;case 25:if(W===0)break e;if(de=Z-W,R.offset>de){if((de=R.offset-de)>R.whave&&R.sane){N.msg="invalid distance too far back",R.mode=30;break}ie=de>R.wnext?(de-=R.wnext,R.wsize-de):R.wnext-de,de>R.length&&(de=R.length),ve=R.window}else ve=M,ie=B-R.offset,de=R.length;for(W<de&&(de=W),W-=de,R.length-=de;M[B++]=ve[ie++],--de;);R.length===0&&(R.mode=21);break;case 26:if(W===0)break e;M[B++]=R.length,W--,R.mode=21;break;case 27:if(R.wrap){for(;z<32;){if(j===0)break e;j--,V|=k[U++]<<z,z+=8}if(Z-=W,N.total_out+=Z,R.total+=Z,Z&&(N.adler=R.check=R.flags?r(R.check,M,Z,B-Z):o(R.check,M,Z,B-Z)),Z=W,(R.flags?V:p(V))!==R.check){N.msg="incorrect data check",R.mode=30;break}z=V=0}R.mode=28;case 28:if(R.wrap&&R.flags){for(;z<32;){if(j===0)break e;j--,V+=k[U++]<<z,z+=8}if(V!==(4294967295&R.total)){N.msg="incorrect length check",R.mode=30;break}z=V=0}R.mode=29;case 29:Ve=1;break e;case 30:Ve=-3;break e;case 31:return-4;case 32:default:return a}return N.next_out=B,N.avail_out=W,N.next_in=U,N.avail_in=j,R.hold=V,R.bits=z,(R.wsize||Z!==N.avail_out&&R.mode<30&&(R.mode<27||D!==4))&&L(N,N.output,N.next_out,Z-N.avail_out)?(R.mode=31,-4):(J-=N.avail_in,Z-=N.avail_out,N.total_in+=J,N.total_out+=Z,R.total+=Z,R.wrap&&Z&&(N.adler=R.check=R.flags?r(R.check,M,Z,N.next_out-Z):o(R.check,M,Z,N.next_out-Z)),N.data_type=R.bits+(R.last?64:0)+(R.mode===12?128:0)+(R.mode===20||R.mode===15?256:0),(J==0&&Z===0||D===4)&&Ve===t&&(Ve=-5),Ve)},f.inflateEnd=function(N){if(!N||!N.state)return a;var D=N.state;return D.window&&(D.window=null),N.state=null,t},f.inflateGetHeader=function(N,D){var R;return N&&N.state?(2&(R=N.state).wrap)==0?a:((R.head=D).done=!1,t):a},f.inflateSetDictionary=function(N,D){var R,k=D.length;return N&&N.state?(R=N.state).wrap!==0&&R.mode!==11?a:R.mode===11&&o(1,D,k,0)!==R.check?-3:L(N,D,k,k)?(R.mode=31,-4):(R.havedict=1,t):a},f.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(S,g,f){"use strict";var c=S("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],r=[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],i=[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],n=[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];g.exports=function(e,l,t,a,s,u,h,p){var m,v,y,E,T,b,w,_,I,L=p.bits,N=0,D=0,R=0,k=0,M=0,U=0,B=0,j=0,W=0,V=0,z=null,J=0,Z=new c.Buf16(16),de=new c.Buf16(16),ie=null,ve=0;for(N=0;N<=15;N++)Z[N]=0;for(D=0;D<a;D++)Z[l[t+D]]++;for(M=L,k=15;1<=k&&Z[k]===0;k--);if(k<M&&(M=k),k===0)return s[u++]=20971520,s[u++]=20971520,p.bits=1,0;for(R=1;R<k&&Z[R]===0;R++);for(M<R&&(M=R),N=j=1;N<=15;N++)if(j<<=1,(j-=Z[N])<0)return-1;if(0<j&&(e===0||k!==1))return-1;for(de[1]=0,N=1;N<15;N++)de[N+1]=de[N]+Z[N];for(D=0;D<a;D++)l[t+D]!==0&&(h[de[l[t+D]]++]=D);if(b=e===0?(z=ie=h,19):e===1?(z=o,J-=257,ie=r,ve-=257,256):(z=i,ie=n,-1),N=R,T=u,B=D=V=0,y=-1,E=(W=1<<(U=M))-1,e===1&&852<W||e===2&&592<W)return 1;for(;;){for(w=N-B,I=h[D]<b?(_=0,h[D]):h[D]>b?(_=ie[ve+h[D]],z[J+h[D]]):(_=96,0),m=1<<N-B,R=v=1<<U;s[T+(V>>B)+(v-=m)]=w<<24|_<<16|I|0,v!==0;);for(m=1<<N-1;V&m;)m>>=1;if(m!==0?(V&=m-1,V+=m):V=0,D++,--Z[N]==0){if(N===k)break;N=l[t+h[D]]}if(M<N&&(V&E)!==y){for(B===0&&(B=M),T+=R,j=1<<(U=N-B);U+B<k&&!((j-=Z[U+B])<=0);)U++,j<<=1;if(W+=1<<U,e===1&&852<W||e===2&&592<W)return 1;s[y=V&E]=M<<24|U<<16|T-u|0}}return V!==0&&(s[T+V]=N-B<<24|64<<16|0),p.bits=M,0}},{"../utils/common":41}],51:[function(S,g,f){"use strict";g.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(S,g,f){"use strict";var c=S("../utils/common"),o=0,r=1;function i(G){for(var Y=G.length;0<=--Y;)G[Y]=0}var n=0,e=29,l=256,t=l+1+e,a=30,s=19,u=2*t+1,h=15,p=16,m=7,v=256,y=16,E=17,T=18,b=[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],_=[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],L=new Array(2*(t+2));i(L);var N=new Array(2*a);i(N);var D=new Array(512);i(D);var R=new Array(256);i(R);var k=new Array(e);i(k);var M,U,B,j=new Array(a);function W(G,Y,me,ue,Ce){this.static_tree=G,this.extra_bits=Y,this.extra_base=me,this.elems=ue,this.max_length=Ce,this.has_stree=G&&G.length}function V(G,Y){this.dyn_tree=G,this.max_code=0,this.stat_desc=Y}function z(G){return G<256?D[G]:D[256+(G>>>7)]}function J(G,Y){G.pending_buf[G.pending++]=255&Y,G.pending_buf[G.pending++]=Y>>>8&255}function Z(G,Y,me){G.bi_valid>p-me?(G.bi_buf|=Y<<G.bi_valid&65535,J(G,G.bi_buf),G.bi_buf=Y>>p-G.bi_valid,G.bi_valid+=me-p):(G.bi_buf|=Y<<G.bi_valid&65535,G.bi_valid+=me)}function de(G,Y,me){Z(G,me[2*Y],me[2*Y+1])}function ie(G,Y){for(var me=0;me|=1&G,G>>>=1,me<<=1,0<--Y;);return me>>>1}function ve(G,Y,me){var ue,Ce,Ie=new Array(h+1),ce=0;for(ue=1;ue<=h;ue++)Ie[ue]=ce=ce+me[ue-1]<<1;for(Ce=0;Ce<=Y;Ce++){var Ae=G[2*Ce+1];Ae!==0&&(G[2*Ce]=ie(Ie[Ae]++,Ae))}}function xe(G){var Y;for(Y=0;Y<t;Y++)G.dyn_ltree[2*Y]=0;for(Y=0;Y<a;Y++)G.dyn_dtree[2*Y]=0;for(Y=0;Y<s;Y++)G.bl_tree[2*Y]=0;G.dyn_ltree[2*v]=1,G.opt_len=G.static_len=0,G.last_lit=G.matches=0}function _e(G){8<G.bi_valid?J(G,G.bi_buf):0<G.bi_valid&&(G.pending_buf[G.pending++]=G.bi_buf),G.bi_buf=0,G.bi_valid=0}function Ue(G,Y,me,ue){var Ce=2*Y,Ie=2*me;return G[Ce]<G[Ie]||G[Ce]===G[Ie]&&ue[Y]<=ue[me]}function fe(G,Y,me){for(var ue=G.heap[me],Ce=me<<1;Ce<=G.heap_len&&(Ce<G.heap_len&&Ue(Y,G.heap[Ce+1],G.heap[Ce],G.depth)&&Ce++,!Ue(Y,ue,G.heap[Ce],G.depth));)G.heap[me]=G.heap[Ce],me=Ce,Ce<<=1;G.heap[me]=ue}function ke(G,Y,me){var ue,Ce,Ie,ce,Ae=0;if(G.last_lit!==0)for(;ue=G.pending_buf[G.d_buf+2*Ae]<<8|G.pending_buf[G.d_buf+2*Ae+1],Ce=G.pending_buf[G.l_buf+Ae],Ae++,ue===0?de(G,Ce,Y):(de(G,(Ie=R[Ce])+l+1,Y),(ce=b[Ie])!==0&&Z(G,Ce-=k[Ie],ce),de(G,Ie=z(--ue),me),(ce=w[Ie])!==0&&Z(G,ue-=j[Ie],ce)),Ae<G.last_lit;);de(G,v,Y)}function se(G,Y){var me,ue,Ce,Ie=Y.dyn_tree,ce=Y.stat_desc.static_tree,Ae=Y.stat_desc.has_stree,Te=Y.stat_desc.elems,Ge=-1;for(G.heap_len=0,G.heap_max=u,me=0;me<Te;me++)Ie[2*me]!==0?(G.heap[++G.heap_len]=Ge=me,G.depth[me]=0):Ie[2*me+1]=0;for(;G.heap_len<2;)Ie[2*(Ce=G.heap[++G.heap_len]=Ge<2?++Ge:0)]=1,G.depth[Ce]=0,G.opt_len--,Ae&&(G.static_len-=ce[2*Ce+1]);for(Y.max_code=Ge,me=G.heap_len>>1;1<=me;me--)fe(G,Ie,me);for(Ce=Te;me=G.heap[1],G.heap[1]=G.heap[G.heap_len--],fe(G,Ie,1),ue=G.heap[1],G.heap[--G.heap_max]=me,G.heap[--G.heap_max]=ue,Ie[2*Ce]=Ie[2*me]+Ie[2*ue],G.depth[Ce]=(G.depth[me]>=G.depth[ue]?G.depth[me]:G.depth[ue])+1,Ie[2*me+1]=Ie[2*ue+1]=Ce,G.heap[1]=Ce++,fe(G,Ie,1),2<=G.heap_len;);G.heap[--G.heap_max]=G.heap[1],function(gt,qe){var Le,Ot,$e,xt,Ht,tr,Mt=qe.dyn_tree,Tt=qe.max_code,Xe=qe.stat_desc.static_tree,oe=qe.stat_desc.has_stree,X=qe.stat_desc.extra_bits,Be=qe.stat_desc.extra_base,Ee=qe.stat_desc.max_length,ee=0;for(xt=0;xt<=h;xt++)gt.bl_count[xt]=0;for(Mt[2*gt.heap[gt.heap_max]+1]=0,Le=gt.heap_max+1;Le<u;Le++)Ee<(xt=Mt[2*Mt[2*(Ot=gt.heap[Le])+1]+1]+1)&&(xt=Ee,ee++),Mt[2*Ot+1]=xt,Tt<Ot||(gt.bl_count[xt]++,Ht=0,Be<=Ot&&(Ht=X[Ot-Be]),tr=Mt[2*Ot],gt.opt_len+=tr*(xt+Ht),oe&&(gt.static_len+=tr*(Xe[2*Ot+1]+Ht)));if(ee!==0){do{for(xt=Ee-1;gt.bl_count[xt]===0;)xt--;gt.bl_count[xt]--,gt.bl_count[xt+1]+=2,gt.bl_count[Ee]--,ee-=2}while(0<ee);for(xt=Ee;xt!==0;xt--)for(Ot=gt.bl_count[xt];Ot!==0;)Tt<($e=gt.heap[--Le])||(Mt[2*$e+1]!==xt&&(gt.opt_len+=(xt-Mt[2*$e+1])*Mt[2*$e],Mt[2*$e+1]=xt),Ot--)}}(G,Y),ve(Ie,Ge,G.bl_count)}function te(G,Y,me){var ue,Ce,Ie=-1,ce=Y[1],Ae=0,Te=7,Ge=4;for(ce===0&&(Te=138,Ge=3),Y[2*(me+1)+1]=65535,ue=0;ue<=me;ue++)Ce=ce,ce=Y[2*(ue+1)+1],++Ae<Te&&Ce===ce||(Ae<Ge?G.bl_tree[2*Ce]+=Ae:Ce!==0?(Ce!==Ie&&G.bl_tree[2*Ce]++,G.bl_tree[2*y]++):Ae<=10?G.bl_tree[2*E]++:G.bl_tree[2*T]++,Ie=Ce,Ge=(Ae=0)===ce?(Te=138,3):Ce===ce?(Te=6,3):(Te=7,4))}function Ve(G,Y,me){var ue,Ce,Ie=-1,ce=Y[1],Ae=0,Te=7,Ge=4;for(ce===0&&(Te=138,Ge=3),ue=0;ue<=me;ue++)if(Ce=ce,ce=Y[2*(ue+1)+1],!(++Ae<Te&&Ce===ce)){if(Ae<Ge)for(;de(G,Ce,G.bl_tree),--Ae!=0;);else Ce!==0?(Ce!==Ie&&(de(G,Ce,G.bl_tree),Ae--),de(G,y,G.bl_tree),Z(G,Ae-3,2)):Ae<=10?(de(G,E,G.bl_tree),Z(G,Ae-3,3)):(de(G,T,G.bl_tree),Z(G,Ae-11,7));Ie=Ce,Ge=(Ae=0)===ce?(Te=138,3):Ce===ce?(Te=6,3):(Te=7,4)}}i(j);var ae=!1;function Q(G,Y,me,ue){Z(G,(n<<1)+(ue?1:0),3),function(Ce,Ie,ce,Ae){_e(Ce),Ae&&(J(Ce,ce),J(Ce,~ce)),c.arraySet(Ce.pending_buf,Ce.window,Ie,ce,Ce.pending),Ce.pending+=ce}(G,Y,me,!0)}f._tr_init=function(G){ae||(function(){var Y,me,ue,Ce,Ie,ce=new Array(h+1);for(Ce=ue=0;Ce<e-1;Ce++)for(k[Ce]=ue,Y=0;Y<1<<b[Ce];Y++)R[ue++]=Ce;for(R[ue-1]=Ce,Ce=Ie=0;Ce<16;Ce++)for(j[Ce]=Ie,Y=0;Y<1<<w[Ce];Y++)D[Ie++]=Ce;for(Ie>>=7;Ce<a;Ce++)for(j[Ce]=Ie<<7,Y=0;Y<1<<w[Ce]-7;Y++)D[256+Ie++]=Ce;for(me=0;me<=h;me++)ce[me]=0;for(Y=0;Y<=143;)L[2*Y+1]=8,Y++,ce[8]++;for(;Y<=255;)L[2*Y+1]=9,Y++,ce[9]++;for(;Y<=279;)L[2*Y+1]=7,Y++,ce[7]++;for(;Y<=287;)L[2*Y+1]=8,Y++,ce[8]++;for(ve(L,t+1,ce),Y=0;Y<a;Y++)N[2*Y+1]=5,N[2*Y]=ie(Y,5);M=new W(L,b,l+1,t,h),U=new W(N,w,0,a,h),B=new W(new Array(0),_,0,s,m)}(),ae=!0),G.l_desc=new V(G.dyn_ltree,M),G.d_desc=new V(G.dyn_dtree,U),G.bl_desc=new V(G.bl_tree,B),G.bi_buf=0,G.bi_valid=0,xe(G)},f._tr_stored_block=Q,f._tr_flush_block=function(G,Y,me,ue){var Ce,Ie,ce=0;0<G.level?(G.strm.data_type===2&&(G.strm.data_type=function(Ae){var Te,Ge=4093624447;for(Te=0;Te<=31;Te++,Ge>>>=1)if(1&Ge&&Ae.dyn_ltree[2*Te]!==0)return o;if(Ae.dyn_ltree[18]!==0||Ae.dyn_ltree[20]!==0||Ae.dyn_ltree[26]!==0)return r;for(Te=32;Te<l;Te++)if(Ae.dyn_ltree[2*Te]!==0)return r;return o}(G)),se(G,G.l_desc),se(G,G.d_desc),ce=function(Ae){var Te;for(te(Ae,Ae.dyn_ltree,Ae.l_desc.max_code),te(Ae,Ae.dyn_dtree,Ae.d_desc.max_code),se(Ae,Ae.bl_desc),Te=s-1;3<=Te&&Ae.bl_tree[2*I[Te]+1]===0;Te--);return Ae.opt_len+=3*(Te+1)+5+5+4,Te}(G),Ce=G.opt_len+3+7>>>3,(Ie=G.static_len+3+7>>>3)<=Ce&&(Ce=Ie)):Ce=Ie=me+5,me+4<=Ce&&Y!==-1?Q(G,Y,me,ue):G.strategy===4||Ie===Ce?(Z(G,2+(ue?1:0),3),ke(G,L,N)):(Z(G,4+(ue?1:0),3),function(Ae,Te,Ge,gt){var qe;for(Z(Ae,Te-257,5),Z(Ae,Ge-1,5),Z(Ae,gt-4,4),qe=0;qe<gt;qe++)Z(Ae,Ae.bl_tree[2*I[qe]+1],3);Ve(Ae,Ae.dyn_ltree,Te-1),Ve(Ae,Ae.dyn_dtree,Ge-1)}(G,G.l_desc.max_code+1,G.d_desc.max_code+1,ce+1),ke(G,G.dyn_ltree,G.dyn_dtree)),xe(G),ue&&_e(G)},f._tr_tally=function(G,Y,me){return G.pending_buf[G.d_buf+2*G.last_lit]=Y>>>8&255,G.pending_buf[G.d_buf+2*G.last_lit+1]=255&Y,G.pending_buf[G.l_buf+G.last_lit]=255&me,G.last_lit++,Y===0?G.dyn_ltree[2*me]++:(G.matches++,Y--,G.dyn_ltree[2*(R[me]+l+1)]++,G.dyn_dtree[2*z(Y)]++),G.last_lit===G.lit_bufsize-1},f._tr_align=function(G){Z(G,2,3),de(G,v,L),function(Y){Y.bi_valid===16?(J(Y,Y.bi_buf),Y.bi_buf=0,Y.bi_valid=0):8<=Y.bi_valid&&(Y.pending_buf[Y.pending++]=255&Y.bi_buf,Y.bi_buf>>=8,Y.bi_valid-=8)}(G)}},{"../utils/common":41}],53:[function(S,g,f){"use strict";g.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(S,g,f){(function(c){!function(o,r){"use strict";if(!o.setImmediate){var i,n,e,l,t=1,a={},s=!1,u=o.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(o);h=h&&h.setTimeout?h:o,i={}.toString.call(o.process)==="[object process]"?function(y){C.nextTick(function(){m(y)})}:function(){if(o.postMessage&&!o.importScripts){var y=!0,E=o.onmessage;return o.onmessage=function(){y=!1},o.postMessage("","*"),o.onmessage=E,y}}()?(l="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",v,!1):o.attachEvent("onmessage",v),function(y){o.postMessage(l+y,"*")}):o.MessageChannel?((e=new MessageChannel).port1.onmessage=function(y){m(y.data)},function(y){e.port2.postMessage(y)}):u&&"onreadystatechange"in u.createElement("script")?(n=u.documentElement,function(y){var E=u.createElement("script");E.onreadystatechange=function(){m(y),E.onreadystatechange=null,n.removeChild(E),E=null},n.appendChild(E)}):function(y){setTimeout(m,0,y)},h.setImmediate=function(y){typeof y!="function"&&(y=new Function(""+y));for(var E=new Array(arguments.length-1),T=0;T<E.length;T++)E[T]=arguments[T+1];var b={callback:y,args:E};return a[t]=b,i(t),t++},h.clearImmediate=p}function p(y){delete a[y]}function m(y){if(s)setTimeout(m,0,y);else{var E=a[y];if(E){s=!0;try{!function(T){var b=T.callback,w=T.args;switch(w.length){case 0:b();break;case 1:b(w[0]);break;case 2:b(w[0],w[1]);break;case 3:b(w[0],w[1],w[2]);break;default:b.apply(r,w)}}(E)}finally{p(y),s=!1}}}}function v(y){y.source===o&&typeof y.data=="string"&&y.data.indexOf(l)===0&&m(+y.data.slice(l.length))}}(typeof self=="undefined"?c===void 0?this:c:self)}).call(this,typeof x!="undefined"?x:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})}).call(this,d("HDXh").Buffer,d("yLpj"),d("Q2Ig"))},xRUu:function(H,F,d){d("hJvP"),d("hFmY"),d("sAZ8")},xSIq:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var O={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"};F.default=O},xSat:function(H,F){var d={axisPointer:1,tooltip:1,brush:1};function O(x,C,A){var S=C.getComponentByElement(x.topTarget),g=S&&S.coordinateSystem;return S&&S!==A&&!d[S.mainType]&&g&&g.model!==A}F.onIrrelevantElement=O},xTNl:function(H,F){var d=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],O={color:d,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],d]};H.exports=O},xb2K:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("5yev")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="RedoOutlined";var c=A.forwardRef(f);F.default=c},xiyX:function(H,F,d){var O=d("bYtY"),x=d("bLfw"),C=d("nkfE"),A=d("ICMv"),S=x.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),g={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 f(o,r){return r.type||(r.data?"category":"value")}O.merge(S.prototype,A),C("single",S,f,g);var c=S;H.exports=c},xlC8:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0}),F.default=O;function O(x,C,A,S){for(var g=x&65535|0,f=x>>>16&65535|0,c=0;A!==0;){c=A>2e3?2e3:A,A-=c;do g=g+C[S++]|0,f=f+g|0;while(--c);g%=65521,f%=65521}return g|f<<16|0}},xroW:function(H,F,d){"use strict";var O={};function x(c,o){}function C(c,o){}function A(){O={}}function S(c,o,r){!o&&!O[r]&&(c(!1,r),O[r]=!0)}function g(c,o){S(x,c,o)}function f(c,o){S(C,c,o)}F.a=g},xvlK:function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="PlusOutlined";var f=F.a=x.forwardRef(g)},xzDV:function(H,F,d){},"y+Vt":function(H,F,d){var O=d("Gev7"),x=d("bYtY"),C=d("IMiH"),A=d("2DNl"),S=d("3C/r"),g=S.prototype.getCanvasPattern,f=Math.abs,c=new C(!0);function o(i){O.call(this,i),this.path=null}o.prototype={constructor:o,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(n,e){var l=this.style,t=this.path||c,a=l.hasStroke(),s=l.hasFill(),u=l.fill,h=l.stroke,p=s&&!!u.colorStops,m=a&&!!h.colorStops,v=s&&!!u.image,y=a&&!!h.image;if(l.bind(n,this,e),this.setTransform(n),this.__dirty){var E;p&&(E=E||this.getBoundingRect(),this._fillGradient=l.getGradient(n,u,E)),m&&(E=E||this.getBoundingRect(),this._strokeGradient=l.getGradient(n,h,E))}p?n.fillStyle=this._fillGradient:v&&(n.fillStyle=g.call(u,n)),m?n.strokeStyle=this._strokeGradient:y&&(n.strokeStyle=g.call(h,n));var T=l.lineDash,b=l.lineDashOffset,w=!!n.setLineDash,_=this.getGlobalScale();if(t.setScale(_[0],_[1],this.segmentIgnoreThreshold),this.__dirtyPath||T&&!w&&a?(t.beginPath(n),T&&!w&&(t.setLineDash(T),t.setLineDashOffset(b)),this.buildPath(t,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(n.beginPath(),this.path.rebuildPath(n)),s)if(l.fillOpacity!=null){var I=n.globalAlpha;n.globalAlpha=l.fillOpacity*l.opacity,t.fill(n),n.globalAlpha=I}else t.fill(n);if(T&&w&&(n.setLineDash(T),n.lineDashOffset=b),a)if(l.strokeOpacity!=null){var I=n.globalAlpha;n.globalAlpha=l.strokeOpacity*l.opacity,t.stroke(n),n.globalAlpha=I}else t.stroke(n);T&&w&&n.setLineDash([]),l.text!=null&&(this.restoreTransform(n),this.drawRectText(n,this.getBoundingRect()))},buildPath:function(n,e,l){},createPathProxy:function(){this.path=new C},getBoundingRect:function(){var n=this._rect,e=this.style,l=!n;if(l){var t=this.path;t||(t=this.path=new C),this.__dirtyPath&&(t.beginPath(),this.buildPath(t,this.shape,!1)),n=t.getBoundingRect()}if(this._rect=n,e.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=n.clone());if(this.__dirty||l){a.copy(n);var s=e.lineWidth,u=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(s=Math.max(s,this.strokeContainThreshold||4)),u>1e-10&&(a.width+=s/u,a.height+=s/u,a.x-=s/u/2,a.y-=s/u/2)}return a}return n},contain:function(n,e){var l=this.transformCoordToLocal(n,e),t=this.getBoundingRect(),a=this.style;if(n=l[0],e=l[1],t.contain(n,e)){var s=this.path.data;if(a.hasStroke()){var u=a.lineWidth,h=a.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(a.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),A.containStroke(s,u/h,n,e)))return!0}if(a.hasFill())return A.contain(s,n,e)}return!1},dirty:function(n){n==null&&(n=!0),n&&(this.__dirtyPath=n,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(n){return this.animate("shape",n)},attrKV:function(n,e){n==="shape"?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):O.prototype.attrKV.call(this,n,e)},setShape:function(n,e){var l=this.shape;if(l){if(x.isObject(n))for(var t in n)n.hasOwnProperty(t)&&(l[t]=n[t]);else l[n]=e;this.dirty(!0)}return this},getLineScale:function(){var n=this.transform;return n&&f(n[0]-1)>1e-10&&f(n[3]-1)>1e-10?Math.sqrt(f(n[0]*n[3]-n[2]*n[1])):1}},o.extend=function(i){var n=function(t){o.call(this,t),i.style&&this.style.extendFrom(i.style,!1);var a=i.shape;if(a){this.shape=this.shape||{};var s=this.shape;for(var u in a)!s.hasOwnProperty(u)&&a.hasOwnProperty(u)&&(s[u]=a[u])}i.init&&i.init.call(this,t)};x.inherits(n,o);for(var e in i)e!=="style"&&e!=="shape"&&(n.prototype[e]=i[e]);return n},x.inherits(o,O);var r=o;H.exports=r},"y+lR":function(H,F,d){var O=d("bYtY"),x=d("mFDi"),C=d("z35g");function A(g){C.call(this,g)}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(g){var f=this.getAxis("x"),c=this.getAxis("y");return f.contain(f.toLocalCoord(g[0]))&&c.contain(c.toLocalCoord(g[1]))},containData:function(g){return this.getAxis("x").containData(g[0])&&this.getAxis("y").containData(g[1])},dataToPoint:function(g,f,c){var o=this.getAxis("x"),r=this.getAxis("y");return c=c||[],c[0]=o.toGlobalCoord(o.dataToCoord(g[0])),c[1]=r.toGlobalCoord(r.dataToCoord(g[1])),c},clampData:function(g,f){var c=this.getAxis("x").scale,o=this.getAxis("y").scale,r=c.getExtent(),i=o.getExtent(),n=c.parse(g[0]),e=o.parse(g[1]);return f=f||[],f[0]=Math.min(Math.max(Math.min(r[0],r[1]),n),Math.max(r[0],r[1])),f[1]=Math.min(Math.max(Math.min(i[0],i[1]),e),Math.max(i[0],i[1])),f},pointToData:function(g,f){var c=this.getAxis("x"),o=this.getAxis("y");return f=f||[],f[0]=c.coordToData(c.toLocalCoord(g[0])),f[1]=o.coordToData(o.toLocalCoord(g[1])),f},getOtherAxis:function(g){return this.getAxis(g.dim==="x"?"y":"x")},getArea:function(){var g=this.getAxis("x").getGlobalExtent(),f=this.getAxis("y").getGlobalExtent(),c=Math.min(g[0],g[1]),o=Math.min(f[0],f[1]),r=Math.max(g[0],g[1])-c,i=Math.max(f[0],f[1])-o,n=new x(c,o,r,i);return n}},O.inherits(A,C);var S=A;H.exports=S},y23F:function(H,F){function d(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}d.prototype={constructor:d,_dragStart:function(A){for(var S=A.target;S&&!S.draggable;)S=S.parent;S&&(this._draggingTarget=S,S.dragging=!0,this._x=A.offsetX,this._y=A.offsetY,this.dispatchToElement(O(S,A),"dragstart",A.event))},_drag:function(A){var S=this._draggingTarget;if(S){var g=A.offsetX,f=A.offsetY,c=g-this._x,o=f-this._y;this._x=g,this._y=f,S.drift(c,o,A),this.dispatchToElement(O(S,A),"drag",A.event);var r=this.findHover(g,f,S).target,i=this._dropTarget;this._dropTarget=r,S!==r&&(i&&r!==i&&this.dispatchToElement(O(i,A),"dragleave",A.event),r&&r!==i&&this.dispatchToElement(O(r,A),"dragenter",A.event))}},_dragEnd:function(A){var S=this._draggingTarget;S&&(S.dragging=!1),this.dispatchToElement(O(S,A),"dragend",A.event),this._dropTarget&&this.dispatchToElement(O(this._dropTarget,A),"drop",A.event),this._draggingTarget=null,this._dropTarget=null}};function O(C,A){return{target:C,topTarget:A&&A.topTarget}}var x=d;H.exports=x},y2l5:function(H,F,d){var O=d("MwEJ"),x=d("T4UG"),C=x.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(A,S){return O(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}});H.exports=C},y3Kf:function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="UpOutlined";var f=F.a=x.forwardRef(g)},y3NT:function(H,F,d){var O=d("OELB"),x=O.parsePercent,C=d("bYtY"),A=Math.PI/180;function S(c,o,r,i){o.eachSeriesByType(c,function(n){var e=n.get("center"),l=n.get("radius");C.isArray(l)||(l=[0,l]),C.isArray(e)||(e=[e,e]);var t=r.getWidth(),a=r.getHeight(),s=Math.min(t,a),u=x(e[0],t),h=x(e[1],a),p=x(l[0],s/2),m=x(l[1],s/2),v=-n.get("startAngle")*A,y=n.get("minAngle")*A,E=n.getData().tree.root,T=n.getViewRoot(),b=T.depth,w=n.get("sort");w!=null&&g(T,w);var _=0;C.each(T.children,function(z){!isNaN(z.getValue())&&_++});var I=T.getValue(),L=Math.PI/(I||_)*2,N=T.depth>0,D=T.height-(N?-1:1),R=(m-p)/(D||1),k=n.get("clockwise"),M=n.get("stillShowZeroSum"),U=k?1:-1,B=function(z,J){if(!z)return;var Z=J;if(z!==E){var de=z.getValue(),ie=I===0&&M?L:de*L;ie<y&&(ie=y),Z=J+U*ie;var ve=z.depth-b-(N?-1:1),xe=p+R*ve,_e=p+R*(ve+1),Ue=z.getModel();Ue.get("r0")!=null&&(xe=x(Ue.get("r0"),s/2)),Ue.get("r")!=null&&(_e=x(Ue.get("r"),s/2)),z.setLayout({angle:ie,startAngle:J,endAngle:Z,clockwise:k,cx:u,cy:h,r0:xe,r:_e})}if(z.children&&z.children.length){var fe=0;C.each(z.children,function(ke){fe+=B(ke,J+fe)})}return Z-J};if(N){var j=p,W=p+R,V=Math.PI*2;E.setLayout({angle:V,startAngle:v,endAngle:v+V,clockwise:k,cx:u,cy:h,r0:j,r:W})}B(T,v)})}function g(c,o){var r=c.children||[];c.children=f(r,o),r.length&&C.each(c.children,function(i){g(i,o)})}function f(c,o){if(typeof o=="function")return c.sort(o);var r=o==="asc";return c.sort(function(i,n){var e=(i.getValue()-n.getValue())*(r?1:-1);return e===0?(i.dataIndex-n.dataIndex)*(r?-1:1):e})}H.exports=S},y3Yb:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("HBhm")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="PaperClipOutlined";var c=A.forwardRef(f);F.default=c},"y4/Y":function(H,F,d){var O=d("ProS"),x=d("bYtY"),C=d("zTMp"),A=d("62sa");d("SKx+"),d("1LEl"),d("Sp2Z"),O.registerPreprocessor(function(S){if(S){(!S.axisPointer||S.axisPointer.length===0)&&(S.axisPointer={});var g=S.axisPointer.link;g&&!x.isArray(g)&&(S.axisPointer.link=[g])}}),O.registerProcessor(O.PRIORITY.PROCESSOR.STATISTIC,function(S,g){S.getComponent("axisPointer").coordSysAxesInfo=C.collect(S,g)}),O.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},A)},y7Aq:function(H,F,d){var O=d("bYtY"),x=d("+TT/"),C=x.getLayoutRect;function A(g,f,c){var o=g.option,r=o.align;if(r!=null&&r!=="auto")return r;for(var i={width:f.getWidth(),height:f.getHeight()},n=o.orient==="horizontal"?1:0,e=[["left","right","width"],["top","bottom","height"]],l=e[n],t=[0,null,10],a={},s=0;s<3;s++)a[e[1-n][s]]=t[s],a[l[s]]=s===2?c[0]:o[l[s]];var u=[["x","width",3],["y","height",0]][n],h=C(a,i,o.padding);return l[(h.margin[u[2]]||0)+h[u[0]]+h[u[1]]*.5<i[u[1]]*.5?0:1]}function S(g,f){return O.each(g||[],function(c){c.dataIndex!=null&&(c.dataIndexInside=c.dataIndex,c.dataIndex=null),c.highlightKey="visualMap"+(f?f.componentIndex:"")}),g}F.getItemAlign=A,F.makeHighDownBatch=S},y8nQ:function(H,F,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("gwTy"),A=d.n(C),S=d("1GLa")},yEEn:function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="ArrowDownOutlined";var f=F.a=x.forwardRef(g)},yO87:function(H,F,d){var O=d("bYtY"),x=d("oVpE"),C=x.createSymbol,A=d("IwbS"),S=A.Group,g=d("OELB"),f=g.parsePercent,c=d("FBjb"),o=3;function r(t){return O.isArray(t)||(t=[+t,+t]),t}function i(t,a){var s=a.rippleEffectColor||a.color;t.eachChild(function(u){u.attr({z:a.z,zlevel:a.zlevel,style:{stroke:a.brushType==="stroke"?s:null,fill:a.brushType==="fill"?s:null}})})}function n(t,a){S.call(this);var s=new c(t,a),u=new S;this.add(s),this.add(u),u.beforeUpdate=function(){this.attr(s.getScale())},this.updateData(t,a)}var e=n.prototype;e.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.startEffectAnimation=function(t){for(var a=t.symbolType,s=t.color,u=this.childAt(1),h=0;h<o;h++){var p=C(a,-1,-1,2,2,s);p.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var m=-h/o*t.period+t.effectOffset;p.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(m).start(),p.animateStyle(!0).when(t.period,{opacity:0}).delay(m).start(),u.add(p)}i(u,t)},e.updateEffectAnimation=function(t){for(var a=this._effectCfg,s=this.childAt(1),u=["symbolType","period","rippleScale"],h=0;h<u.length;h++){var p=u[h];if(a[p]!==t[p]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}i(s,t)},e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.updateData=function(t,a){var s=t.hostModel;this.childAt(0).updateData(t,a);var u=this.childAt(1),h=t.getItemModel(a),p=t.getItemVisual(a,"symbol"),m=r(t.getItemVisual(a,"symbolSize")),v=t.getItemVisual(a,"color");u.attr("scale",m),u.traverse(function(L){L.attr({fill:v})});var y=h.getShallow("symbolOffset");if(y){var E=u.position;E[0]=f(y[0],m[0]),E[1]=f(y[1],m[1])}var T=t.getItemVisual(a,"symbolRotate");u.rotation=(T||0)*Math.PI/180||0;var b={};if(b.showEffectOn=s.get("showEffectOn"),b.rippleScale=h.get("rippleEffect.scale"),b.brushType=h.get("rippleEffect.brushType"),b.period=h.get("rippleEffect.period")*1e3,b.effectOffset=a/t.count(),b.z=h.getShallow("z")||0,b.zlevel=h.getShallow("zlevel")||0,b.symbolType=p,b.color=v,b.rippleEffectColor=h.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),b.showEffectOn==="render")this._effectCfg?this.updateEffectAnimation(b):this.startEffectAnimation(b),this._effectCfg=b;else{this._effectCfg=null,this.stopEffectAnimation();var w=this.childAt(0),_=function(){w.highlight(),b.showEffectOn!=="render"&&this.startEffectAnimation(b)},I=function(){w.downplay(),b.showEffectOn!=="render"&&this.stopEffectAnimation()};this.on("mouseover",_,this).on("mouseout",I,this).on("emphasis",_,this).on("normal",I,this)}this._effectCfg=b},e.fadeOut=function(t){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),t&&t()},O.inherits(n,S);var l=n;H.exports=l},yS9w:function(H,F,d){var O=d("MEGo"),x=O.parseSVG,C=O.makeViewBoxTransform,A=d("4fz+"),S=d("x6Kt"),g=d("bYtY"),f=g.assert,c=g.createHashMap,o=d("mFDi"),r=d("4NO4"),i=r.makeInner,n=i(),e={load:function(t,a){var s=n(a).originRoot;if(s)return{root:s,boundingRect:n(a).boundingRect};var u=l(a);return n(a).originRoot=u.root,n(a).boundingRect=u.boundingRect,u},makeGraphic:function(t,a,s){var u=n(a),h=u.rootMap||(u.rootMap=c()),p=h.get(s);if(p)return p;var m=u.originRoot,v=u.boundingRect;return u.originRootHostKey?p=l(a,v).root:(u.originRootHostKey=s,p=m),h.set(s,p)},removeGraphic:function(t,a,s){var u=n(a),h=u.rootMap;h&&h.removeKey(s),s===u.originRootHostKey&&(u.originRootHostKey=null)}};function l(t,a){var s=t.svgXML,u,h;try{u=s&&x(s,{ignoreViewBox:!0,ignoreRootClip:!0})||{},h=u.root,f(h!=null)}catch(T){throw new Error(`Invalid svg format
|
|
|
`+T.message)}var p=u.width,m=u.height,v=u.viewBoxRect;if(a||(a=p==null||m==null?h.getBoundingRect():new o(0,0,0,0),p!=null&&(a.width=p),m!=null&&(a.height=m)),v){var y=C(v,a.width,a.height),E=h;h=new A,h.add(E),E.scale=y.scale,E.position=y.position}return h.setClipPath(new S({shape:a.plain()})),{root:h,boundingRect:a}}H.exports=e},yWXo:function(H,F,d){var O=d("IwbS"),x=d("oVpE"),C=x.createSymbol,A=d("OS9S"),S=4,g=O.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(r,i){var n=i.points,e=i.size,l=this.symbolProxy,t=l.shape,a=r.getContext?r.getContext():r,s=a&&e[0]<S;if(s)return;for(var u=0;u<n.length;){var h=n[u++],p=n[u++];if(isNaN(h)||isNaN(p))continue;if(this.softClipShape&&!this.softClipShape.contain(h,p))continue;t.x=h-e[0]/2,t.y=p-e[1]/2,t.width=e[0],t.height=e[1],l.buildPath(r,t,!0)}},afterBrush:function(r){var i=this.shape,n=i.points,e=i.size,l=e[0]<S;if(!l)return;this.setTransform(r);for(var t=0;t<n.length;){var a=n[t++],s=n[t++];if(isNaN(a)||isNaN(s))continue;if(this.softClipShape&&!this.softClipShape.contain(a,s))continue;r.fillRect(a-e[0]/2,s-e[1]/2,e[0],e[1])}this.restoreTransform(r)},findDataIndex:function(r,i){for(var n=this.shape,e=n.points,l=n.size,t=Math.max(l[0],4),a=Math.max(l[1],4),s=e.length/2-1;s>=0;s--){var u=s*2,h=e[u]-t/2,p=e[u+1]-a/2;if(r>=h&&i>=p&&r<=h+t&&i<=p+a)return s}return-1}});function f(){this.group=new O.Group}var c=f.prototype;c.isPersistent=function(){return!this._incremental},c.updateData=function(r,i){this.group.removeAll();var n=new g({rectHover:!0,cursor:"default"});n.setShape({points:r.getLayout("symbolPoints")}),this._setCommon(n,r,!1,i),this.group.add(n),this._incremental=null},c.updateLayout=function(r){if(this._incremental)return;var i=r.getLayout("symbolPoints");this.group.eachChild(function(n){if(n.startIndex!=null){var e=(n.endIndex-n.startIndex)*2,l=n.startIndex*4*2;i=new Float32Array(i.buffer,l,e)}n.setShape("points",i)})},c.incrementalPrepareUpdate=function(r){this.group.removeAll(),this._clearIncremental(),r.count()>2e6?(this._incremental||(this._incremental=new A({silent:!0})),this.group.add(this._incremental)):this._incremental=null},c.incrementalUpdate=function(r,i,n){var e;this._incremental?(e=new g,this._incremental.addDisplayable(e,!0)):(e=new g({rectHover:!0,cursor:"default",startIndex:r.start,endIndex:r.end}),e.incremental=!0,this.group.add(e)),e.setShape({points:i.getLayout("symbolPoints")}),this._setCommon(e,i,!!this._incremental,n)},c._setCommon=function(r,i,n,e){var l=i.hostModel;e=e||{};var t=i.getVisual("symbolSize");r.setShape("size",t instanceof Array?t:[t,t]),r.softClipShape=e.clipShape||null,r.symbolProxy=C(i.getVisual("symbol"),0,0,0,0),r.setColor=r.symbolProxy.setColor;var a=r.shape.size[0]<S;r.useStyle(l.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=i.getVisual("color");s&&r.setColor(s),n||(r.seriesIndex=l.seriesIndex,r.on("mousemove",function(u){r.dataIndex=null;var h=r.findDataIndex(u.offsetX,u.offsetY);h>=0&&(r.dataIndex=h+(r.startIndex||0))}))},c.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},c._clearIncremental=function(){var r=this._incremental;r&&r.clearDisplaybles()};var o=f;H.exports=o},ycre:function(H,F,d){var O=d("711d"),x=O("length");H.exports=x},ye1Q:function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="LoadingOutlined";var f=F.a=x.forwardRef(g)},ygfH:function(H,F,d){"use strict";Object.defineProperty(F,"__esModule",{value:!0});var O={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"};F.default=O},yik8:function(H,F,d){var O=d("bZqE"),x=O.eachAfter,C=O.eachBefore,A=d("Itpr"),S=A.init,g=A.firstWalk,f=A.secondWalk,c=A.separation,o=A.radialCoordinate,r=A.getViewRect;function i(e,l){e.eachSeriesByType("tree",function(t){n(t,l)})}function n(e,l){var t=r(e,l);e.layoutInfo=t;var a=e.get("layout"),s=0,u=0,h=null;a==="radial"?(s=2*Math.PI,u=Math.min(t.height,t.width)/2,h=c(function(D,R){return(D.parentNode===R.parentNode?1:2)/D.depth})):(s=t.width,u=t.height,h=c());var p=e.getData().tree.root,m=p.children[0];if(m){S(p),x(m,g,h),p.hierNode.modifier=-m.hierNode.prelim,C(m,f);var v=m,y=m,E=m;C(m,function(D){var R=D.getLayout().x;R<v.getLayout().x&&(v=D),R>y.getLayout().x&&(y=D),D.depth>E.depth&&(E=D)});var T=v===y?1:h(v,y)/2,b=T-v.getLayout().x,w=0,_=0,I=0,L=0;if(a==="radial")w=s/(y.getLayout().x+T+b),_=u/(E.depth-1||1),C(m,function(D){I=(D.getLayout().x+b)*w,L=(D.depth-1)*_;var R=o(I,L);D.setLayout({x:R.x,y:R.y,rawX:I,rawY:L},!0)});else{var N=e.getOrient();N==="RL"||N==="LR"?(_=u/(y.getLayout().x+T+b),w=s/(E.depth-1||1),C(m,function(D){L=(D.getLayout().x+b)*_,I=N==="LR"?(D.depth-1)*w:s-(D.depth-1)*w,D.setLayout({x:I,y:L},!0)})):(N==="TB"||N==="BT")&&(w=s/(y.getLayout().x+T+b),_=u/(E.depth-1||1),C(m,function(D){I=(D.getLayout().x+b)*w,L=N==="TB"?(D.depth-1)*_:u-(D.depth-1)*_,D.setLayout({x:I,y:L},!0)}))}}}H.exports=i},ynwM:function(H,F,d){var O=d("MFOe"),x=O.Global;H.exports={name:"oldFF-globalStorage",read:A,write:S,each:g,remove:f,clearAll:c};var C=x.globalStorage;function A(o){return C[o]}function S(o,r){C[o]=r}function g(o){for(var r=C.length-1;r>=0;r--){var i=C.key(r);o(C[i],i)}}function f(o){return C.removeItem(o)}function c(){g(function(o,r){delete C[o]})}},ypgQ:function(H,F,d){var O=d("bYtY"),x=d("4NO4"),C=d("bLfw"),A=O.each,S=O.clone,g=O.map,f=O.merge,c=/^(min|max)?(.+)$/;function o(a){this._api=a,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}o.prototype={constructor:o,setOption:function(a,s){a&&O.each(x.normalizeToArray(a.series),function(p){p&&p.data&&O.isTypedArray(p.data)&&O.setAsPrimitive(p.data)}),a=S(a);var u=this._optionBackup,h=r.call(this,a,s,!u);this._newBaseOption=h.baseOption,u?(l(u.baseOption,h.baseOption),h.timelineOptions.length&&(u.timelineOptions=h.timelineOptions),h.mediaList.length&&(u.mediaList=h.mediaList),h.mediaDefault&&(u.mediaDefault=h.mediaDefault)):this._optionBackup=h},mountOption:function(a){var s=this._optionBackup;return this._timelineOptions=g(s.timelineOptions,S),this._mediaList=g(s.mediaList,S),this._mediaDefault=S(s.mediaDefault),this._currentMediaIndices=[],S(a?s.baseOption:this._newBaseOption)},getTimelineOption:function(a){var s,u=this._timelineOptions;if(u.length){var h=a.getComponent("timeline");h&&(s=S(u[h.getCurrentIndex()],!0))}return s},getMediaOption:function(a){var s=this._api.getWidth(),u=this._api.getHeight(),h=this._mediaList,p=this._mediaDefault,m=[],v=[];if(!h.length&&!p)return v;for(var y=0,E=h.length;y<E;y++)i(h[y].query,s,u)&&m.push(y);return!m.length&&p&&(m=[-1]),m.length&&!e(m,this._currentMediaIndices)&&(v=g(m,function(T){return S(T===-1?p.option:h[T].option)})),this._currentMediaIndices=m,v}};function r(a,s,u){var h=[],p=[],m,v,y=a.timeline;if(a.baseOption&&(v=a.baseOption),(y||a.options)&&(v=v||{},h=(a.options||[]).slice()),a.media){v=v||{};var E=a.media;A(E,function(T){T&&T.option&&(T.query?p.push(T):m||(m=T))})}return v||(v=a),v.timeline||(v.timeline=y),A([v].concat(h).concat(O.map(p,function(T){return T.option})),function(T){A(s,function(b){b(T,u)})}),{baseOption:v,timelineOptions:h,mediaDefault:m,mediaList:p}}function i(a,s,u){var h={width:s,height:u,aspectratio:s/u},p=!0;return O.each(a,function(m,v){var y=v.match(c);if(!y||!y[1]||!y[2])return;var E=y[1],T=y[2].toLowerCase();n(h[T],m,E)||(p=!1)}),p}function n(a,s,u){return u==="min"?a>=s:u==="max"?a<=s:a===s}function e(a,s){return a.join(",")===s.join(",")}function l(a,s){s=s||{},A(s,function(u,h){if(u==null)return;var p=a[h];if(!C.hasClass(h))a[h]=f(p,u,!0);else{u=x.normalizeToArray(u),p=x.normalizeToArray(p);var m=x.mappingToExists(p,u);a[h]=g(m,function(v){return v.option&&v.exist?f(v.exist,v.option,!0):v.exist||v.option})}})}var t=o;H.exports=t},yxFR:function(H,F,d){var O=d("y+Vt"),x=d("nPnh"),C=x.subPixelOptimizeLine,A={},S=O.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(f,c){var o,r,i,n;this.subPixelOptimize?(C(A,c,this.style),o=A.x1,r=A.y1,i=A.x2,n=A.y2):(o=c.x1,r=c.y1,i=c.x2,n=c.y2);var e=c.percent;if(e===0)return;f.moveTo(o,r),e<1&&(i=o*(1-e)+i*e,n=r*(1-e)+n*e),f.lineTo(i,n)},pointAt:function(f){var c=this.shape;return[c.x1*(1-f)+c.x2*f,c.y1*(1-f)+c.y2*f]}});H.exports=S},z35g:function(H,F,d){var O=d("bYtY");function x(S){return this._axes[S]}var C=function(S){this._axes={},this._dimList=[],this.name=S||""};C.prototype={constructor:C,type:"cartesian",getAxis:function(S){return this._axes[S]},getAxes:function(){return O.map(this._dimList,x,this)},getAxesByScale:function(S){return S=S.toLowerCase(),O.filter(this.getAxes(),function(g){return g.scale.type===S})},addAxis:function(S){var g=S.dim;this._axes[g]=S,this._dimList.push(g)},dataToCoord:function(S){return this._dataCoordConvert(S,"dataToCoord")},coordToData:function(S){return this._dataCoordConvert(S,"coordToData")},_dataCoordConvert:function(S,g){for(var f=this._dimList,c=S instanceof Array?[]:{},o=0;o<f.length;o++){var r=f[o],i=this._axes[r];c[r]=i[g](S[r])}return c}};var A=C;H.exports=A},z7Xi:function(H,F,d){"use strict";var O=d("VTBJ"),x=d("q1tI"),C={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=C,S=d("6VBw"),g=function(o,r){return x.createElement(S.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="UploadOutlined";var f=F.a=x.forwardRef(g)},zAh6:function(H,F,d){"use strict";d.d(F,"a",function(){return S});var O=d("xEkU"),x=d.n(O),C=d("i6bk");function A(g,f,c,o){var r=c-f;return g/=o/2,g<1?r/2*g*g*g+f:r/2*((g-=2)*g*g+2)+f}function S(g){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=f.getContainer,o=c===void 0?function(){return window}:c,r=f.callback,i=f.duration,n=i===void 0?450:i,e=o(),l=Object(C.a)(e,!0),t=Date.now(),a=function s(){var u=Date.now(),h=u-t,p=A(h>n?n:h,l,g,n);Object(C.b)(e)?e.scrollTo(window.pageXOffset,p):e instanceof HTMLDocument||e.constructor.name==="HTMLDocument"?e.documentElement.scrollTop=p:e.scrollTop=p,h<n?x()(s):typeof r=="function"&&r()};x()(a)}},zDms:function(H,F,d){var O=d("bYtY"),x=d("OELB"),C=d("UOVi"),A=d("72pK"),S=O.each,g=x.asc,f=function(e,l,t,a){this._dimName=e,this._axisIndex=l,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=a,this._dataZoomModel=t};f.prototype={constructor:f,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(t){if(C.isCoordSupported(t.get("coordinateSystem"))){var a=this._dimName,s=l.queryComponents({mainType:a+"Axis",index:t.get(a+"AxisIndex"),id:t.get(a+"AxisId")})[0];this._axisIndex===(s&&s.componentIndex)&&e.push(t)}},this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e=this._dimName,l=this.ecModel,t=this.getAxisModel(),a=e==="x"||e==="y",s,u;a?(u="gridIndex",s=e==="x"?"y":"x"):(u="polarIndex",s=e==="angle"?"radius":"angle");var h;return l.eachComponent(s+"Axis",function(p){(p.get(u)||0)===(t.get(u)||0)&&(h=p)}),h},getMinMaxSpan:function(){return O.clone(this._minMaxSpan)},calculateDataWindow:function(e){var l=this._dataExtent,t=this.getAxisModel(),a=t.axis.scale,s=this._dataZoomModel.getRangePropMode(),u=[0,100],h=[],p=[],m;S(["start","end"],function(E,T){var b=e[E],w=e[E+"Value"];s[T]==="percent"?(b==null&&(b=u[T]),w=a.parse(x.linearMap(b,u,l))):(m=!0,w=w==null?l[T]:a.parse(w),b=x.linearMap(w,l,u)),p[T]=w,h[T]=b}),g(p),g(h);var v=this._minMaxSpan;m?y(p,h,l,u,!1):y(h,p,u,l,!0);function y(E,T,b,w,_){var I=_?"Span":"ValueSpan";A(0,E,b,"all",v["min"+I],v["max"+I]);for(var L=0;L<2;L++)T[L]=x.linearMap(E[L],b,w,!0),_&&(T[L]=a.parse(T[L]))}return{valueWindow:p,percentWindow:h}},reset:function(e){if(e!==this._dataZoomModel)return;var l=this.getTargetSeriesModels();this._dataExtent=c(this,this._dimName,l),i(this);var t=this.calculateDataWindow(e.settledOption);this._valueWindow=t.valueWindow,this._percentWindow=t.percentWindow,r(this)},restore:function(e){if(e!==this._dataZoomModel)return;this._valueWindow=this._percentWindow=null,r(this,!0)},filterData:function(e,l){if(e!==this._dataZoomModel)return;var t=this._dimName,a=this.getTargetSeriesModels(),s=e.get("filterMode"),u=this._valueWindow;if(s==="none")return;S(a,function(p){var m=p.getData(),v=m.mapDimension(t,!0);if(!v.length)return;s==="weakFilter"?m.filterSelf(function(y){for(var E,T,b,w=0;w<v.length;w++){var _=m.get(v[w],y),I=!isNaN(_),L=_<u[0],N=_>u[1];if(I&&!L&&!N)return!0;I&&(b=!0),L&&(E=!0),N&&(T=!0)}return b&&E&&T}):S(v,function(y){if(s==="empty")p.setData(m=m.map(y,function(T){return h(T)?T:NaN}));else{var E={};E[y]=u,m.selectRange(E)}}),S(v,function(y){m.setApproximateExtent(u,y)})});function h(p){return p>=u[0]&&p<=u[1]}}};function c(e,l,t){var a=[Infinity,-Infinity];return S(t,function(s){var u=s.getData();u&&S(u.mapDimension(l,!0),function(h){var p=u.getApproximateExtent(h);p[0]<a[0]&&(a[0]=p[0]),p[1]>a[1]&&(a[1]=p[1])})}),a[1]<a[0]&&(a=[NaN,NaN]),o(e,a),a}function o(e,l){var t=e.getAxisModel(),a=t.getMin(!0),s=t.get("type")==="category",u=s&&t.getCategories().length;a!=null&&a!=="dataMin"&&typeof a!="function"?l[0]=a:s&&(l[0]=u>0?0:NaN);var h=t.getMax(!0);return h!=null&&h!=="dataMax"&&typeof h!="function"?l[1]=h:s&&(l[1]=u>0?u-1:NaN),t.get("scale",!0)||(l[0]>0&&(l[0]=0),l[1]<0&&(l[1]=0)),l}function r(e,l){var t=e.getAxisModel(),a=e._percentWindow,s=e._valueWindow;if(!a)return;var u=x.getPixelPrecision(s,[0,500]);u=Math.min(u,20);var h=l||a[0]===0&&a[1]===100;t.setRange(h?null:+s[0].toFixed(u),h?null:+s[1].toFixed(u))}function i(e){var l=e._minMaxSpan={},t=e._dataZoomModel,a=e._dataExtent;S(["min","max"],function(s){var u=t.get(s+"Span"),h=t.get(s+"ValueSpan");h!=null&&(h=e.getAxisModel().axis.scale.parse(h)),h!=null?u=x.linearMap(a[0]+h,a,[0,100],!0):u!=null&&(h=x.linearMap(u,[0,100],a,!0)-a[0]),l[s+"Span"]=u,l[s+"ValueSpan"]=h})}var n=f;H.exports=n},zM3Q:function(H,F,d){var O=d("4NO4"),x=O.makeInner;function C(){var A=x();return function(S){var g=A(S),f=S.pipelineContext,c=g.large,o=g.progressiveRender,r=g.large=f&&f.large,i=g.progressiveRender=f&&f.progressiveRender;return!!(c^r||o^i)&&"reset"}}H.exports=C},zRKj:function(H,F,d){d("Ae16"),d("Sp2Z"),d("y4/Y")},zTMp:function(H,F,d){var O=d("bYtY"),x=d("Qxkt"),C=O.each,A=O.curry;function S(a,s){var u={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return g(u,a,s),u.seriesInvolved&&c(u,a),u}function g(a,s,u){var h=s.getComponent("tooltip"),p=s.getComponent("axisPointer"),m=p.get("link",!0)||[],v=[];C(u.getCoordinateSystems(),function(y){if(!y.axisPointerEnabled)return;var E=t(y.model),T=a.coordSysAxesInfo[E]={};a.coordSysMap[E]=y;var b=y.model,w=b.getModel("tooltip",h);if(C(y.getAxes(),A(N,!1,null)),y.getTooltipAxes&&h&&w.get("show")){var _=w.get("trigger")==="axis",I=w.get("axisPointer.type")==="cross",L=y.getTooltipAxes(w.get("axisPointer.axis"));(_||I)&&C(L.baseAxes,A(N,I?"cross":!0,_)),I&&C(L.otherAxes,A(N,"cross",!1))}function N(D,R,k){var M=k.model.getModel("axisPointer",p),U=M.get("show");if(!U||U==="auto"&&!D&&!l(M))return;R==null&&(R=M.get("triggerTooltip")),M=D?f(k,w,p,s,D,R):M;var B=M.get("snap"),j=t(k.model),W=R||B||k.type==="category",V=a.axesInfo[j]={key:j,axis:k,coordSys:y,axisPointerModel:M,triggerTooltip:R,involveSeries:W,snap:B,useHandle:l(M),seriesModels:[]};T[j]=V,a.seriesInvolved|=W;var z=o(m,k);if(z!=null){var J=v[z]||(v[z]={axesInfo:{}});J.axesInfo[j]=V,J.mapper=m[z].mapper,V.linkGroup=J}}})}function f(a,s,u,h,p,m){var v=s.getModel("axisPointer"),y={};C(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(w){y[w]=O.clone(v.get(w))}),y.snap=a.type!=="category"&&!!m,v.get("type")==="cross"&&(y.type="line");var E=y.label||(y.label={});if(E.show==null&&(E.show=!1),p==="cross"){var T=v.get("label.show");if(E.show=T!=null?T:!0,!m){var b=y.lineStyle=v.get("crossStyle");b&&O.defaults(E,b.textStyle)}}return a.model.getModel("axisPointer",new x(y,u,h))}function c(a,s){s.eachSeries(function(u){var h=u.coordinateSystem,p=u.get("tooltip.trigger",!0),m=u.get("tooltip.show",!0);if(!h||p==="none"||p===!1||p==="item"||m===!1||u.get("axisPointer.show",!0)===!1)return;C(a.coordSysAxesInfo[t(h.model)],function(v){var y=v.axis;h.getAxis(y.dim)===y&&(v.seriesModels.push(u),v.seriesDataCount==null&&(v.seriesDataCount=0),v.seriesDataCount+=u.getData().count())})},this)}function o(a,s){for(var u=s.model,h=s.dim,p=0;p<a.length;p++){var m=a[p]||{};if(r(m[h+"AxisId"],u.id)||r(m[h+"AxisIndex"],u.componentIndex)||r(m[h+"AxisName"],u.name))return p}}function r(a,s){return a==="all"||O.isArray(a)&&O.indexOf(a,s)>=0||a===s}function i(a){var s=n(a);if(!s)return;var u=s.axisPointerModel,h=s.axis.scale,p=u.option,m=u.get("status"),v=u.get("value");v!=null&&(v=h.parse(v));var y=l(u);m==null&&(p.status=y?"show":"hide");var E=h.getExtent().slice();E[0]>E[1]&&E.reverse(),(v==null||v>E[1])&&(v=E[1]),v<E[0]&&(v=E[0]),p.value=v,y&&(p.status=s.axis.scale.isBlank()?"hide":"show")}function n(a){var s=(a.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return s&&s.axesInfo[t(a)]}function e(a){var s=n(a);return s&&s.axisPointerModel}function l(a){return!!a.get("handle.show")}function t(a){return a.type+"||"+a.id}F.collect=S,F.fixValue=i,F.getAxisInfo=n,F.getAxisPointerModel=e,F.makeKey=t},zYTA:function(H,F,d){var O=d("bYtY"),x=256;function C(){var S=O.createCanvas();this.canvas=S,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}C.prototype={update:function(S,g,f,c,o,r){var i=this._getBrush(),n=this._getGradient(S,o,"inRange"),e=this._getGradient(S,o,"outOfRange"),l=this.pointSize+this.blurSize,t=this.canvas,a=t.getContext("2d"),s=S.length;t.width=g,t.height=f;for(var u=0;u<s;++u){var h=S[u],p=h[0],m=h[1],v=h[2],y=c(v);a.globalAlpha=y,a.drawImage(i,p-l,m-l)}if(!t.width||!t.height)return t;for(var E=a.getImageData(0,0,t.width,t.height),T=E.data,b=0,w=T.length,_=this.minOpacity,I=this.maxOpacity,L=I-_;b<w;){var y=T[b+3]/256,N=Math.floor(y*(x-1))*4;if(y>0){var D=r(y)?n:e;y>0&&(y=y*L+_),T[b++]=D[N],T[b++]=D[N+1],T[b++]=D[N+2],T[b++]=D[N+3]*y*256}else b+=4}return a.putImageData(E,0,0),t},_getBrush:function(){var S=this._brushCanvas||(this._brushCanvas=O.createCanvas()),g=this.pointSize+this.blurSize,f=g*2;S.width=f,S.height=f;var c=S.getContext("2d");return c.clearRect(0,0,f,f),c.shadowOffsetX=f,c.shadowBlur=this.blurSize,c.shadowColor="#000",c.beginPath(),c.arc(-g,g,this.pointSize,0,Math.PI*2,!0),c.closePath(),c.fill(),S},_getGradient:function(S,g,f){for(var c=this._gradientPixels,o=c[f]||(c[f]=new Uint8ClampedArray(256*4)),r=[0,0,0,0],i=0,n=0;n<256;n++)g[f](n/255,!0,r),o[i++]=r[0],o[i++]=r[1],o[i++]=r[2],o[i++]=r[3];return o}};var A=C;H.exports=A},zarK:function(H,F,d){var O=d("YH21"),x=O.addEventListener,C=O.removeEventListener,A=O.normalizeEvent,S=O.getNativeEvent,g=d("bYtY"),f=d("H6uX"),c=d("ItGF"),o=300,r=c.domSupported,i=function(){var D=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],R=["touchstart","touchend","touchmove"],k={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},M=g.map(D,function(U){var B=U.replace("mouse","pointer");return k.hasOwnProperty(B)?B:U});return{mouse:D,touch:R,pointer:M}}(),n={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function e(D){return D==="mousewheel"&&c.browser.firefox?"DOMMouseScroll":D}function l(D){var R=D.pointerType;return R==="pen"||R==="touch"}function t(D){D.touching=!0,D.touchTimer!=null&&(clearTimeout(D.touchTimer),D.touchTimer=null),D.touchTimer=setTimeout(function(){D.touching=!1,D.touchTimer=null},700)}function a(D){D&&(D.zrByTouch=!0)}function s(D,R){return A(D.dom,new h(D,R),!0)}function u(D,R){for(var k=R,M=!1;k&&k.nodeType!==9&&!(M=k.domBelongToZr||k!==R&&k===D.painterRoot);)k=k.parentNode;return M}function h(D,R){this.type=R.type,this.target=this.currentTarget=D.dom,this.pointerType=R.pointerType,this.clientX=R.clientX,this.clientY=R.clientY}var p=h.prototype;p.stopPropagation=p.stopImmediatePropagation=p.preventDefault=g.noop;var m={mousedown:function(R){R=A(this.dom,R),this._mayPointerCapture=[R.zrX,R.zrY],this.trigger("mousedown",R)},mousemove:function(R){R=A(this.dom,R);var k=this._mayPointerCapture;k&&(R.zrX!==k[0]||R.zrY!==k[1])&&w(this,!0),this.trigger("mousemove",R)},mouseup:function(R){R=A(this.dom,R),w(this,!1),this.trigger("mouseup",R)},mouseout:function(R){R=A(this.dom,R),this._pointerCapturing&&(R.zrEventControl="no_globalout");var k=R.toElement||R.relatedTarget;R.zrIsToLocalDOM=u(this,k),this.trigger("mouseout",R)},touchstart:function(R){R=A(this.dom,R),a(R),this._lastTouchMoment=new Date,this.handler.processGesture(R,"start"),m.mousemove.call(this,R),m.mousedown.call(this,R)},touchmove:function(R){R=A(this.dom,R),a(R),this.handler.processGesture(R,"change"),m.mousemove.call(this,R)},touchend:function(R){R=A(this.dom,R),a(R),this.handler.processGesture(R,"end"),m.mouseup.call(this,R),+new Date-this._lastTouchMoment<o&&m.click.call(this,R)},pointerdown:function(R){m.mousedown.call(this,R)},pointermove:function(R){l(R)||m.mousemove.call(this,R)},pointerup:function(R){m.mouseup.call(this,R)},pointerout:function(R){l(R)||m.mouseout.call(this,R)}};g.each(["click","mousewheel","dblclick","contextmenu"],function(D){m[D]=function(R){R=A(this.dom,R),this.trigger(D,R)}});var v={pointermove:function(R){l(R)||v.mousemove.call(this,R)},pointerup:function(R){v.mouseup.call(this,R)},mousemove:function(R){this.trigger("mousemove",R)},mouseup:function(R){var k=this._pointerCapturing;w(this,!1),this.trigger("mouseup",R),k&&(R.zrEventControl="only_globalout",this.trigger("mouseout",R))}};function y(D,R){var k=R.domHandlers;c.pointerEventsSupported?g.each(i.pointer,function(M){T(R,M,function(U){k[M].call(D,U)})}):(c.touchEventsSupported&&g.each(i.touch,function(M){T(R,M,function(U){k[M].call(D,U),t(R)})}),g.each(i.mouse,function(M){T(R,M,function(U){U=S(U),R.touching||k[M].call(D,U)})}))}function E(D,R){c.pointerEventsSupported?g.each(n.pointer,k):c.touchEventsSupported||g.each(n.mouse,k);function k(M){function U(B){B=S(B),u(D,B.target)||(B=s(D,B),R.domHandlers[M].call(D,B))}T(R,M,U,{capture:!0})}}function T(D,R,k,M){D.mounted[R]=k,D.listenerOpts[R]=M,x(D.domTarget,e(R),k,M)}function b(D){var R=D.mounted;for(var k in R)R.hasOwnProperty(k)&&C(D.domTarget,e(k),R[k],D.listenerOpts[k]);D.mounted={}}function w(D,R){if(D._mayPointerCapture=null,r&&D._pointerCapturing^R){D._pointerCapturing=R;var k=D._globalHandlerScope;R?E(D,k):b(k)}}function _(D,R){this.domTarget=D,this.domHandlers=R,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function I(D,R){f.call(this),this.dom=D,this.painterRoot=R,this._localHandlerScope=new _(D,m),r&&(this._globalHandlerScope=new _(document,v)),this._pointerCapturing=!1,this._mayPointerCapture=null,y(this,this._localHandlerScope)}var L=I.prototype;L.dispose=function(){b(this._localHandlerScope),r&&b(this._globalHandlerScope)},L.setCursor=function(D){this.dom.style&&(this.dom.style.cursor=D||"default")},g.mixin(I,f);var N=I;H.exports=N},zdCA:function(H,F,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(F,"__esModule",{value:!0}),F.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),S=x(d("PSzr")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:S.default}))};f.displayName="BarsOutlined";var c=A.forwardRef(f);F.default=c},zeV3:function(H,F,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),S=d("q1tI"),g=d.n(S),f=d("TSYQ"),c=d.n(f),o=d("H84U"),r=function(e,l){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&l.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)l.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(t[a[s]]=e[a[s]]);return t},i={small:8,middle:16,large:24},n=function(l){var t,a=S.useContext(o.b),s=a.getPrefixCls,u=a.space,h=a.direction,p=l.size,m=p===void 0?(u==null?void 0:u.size)||"small":p,v=l.align,y=l.className,E=l.children,T=l.direction,b=T===void 0?"horizontal":T,w=l.prefixCls,_=r(l,["size","align","className","children","direction","prefixCls"]),I=S.Children.count(E);if(I===0)return null;var L=v===void 0&&b==="horizontal"?"center":v,N=s("space",w),D=c()(N,"".concat(N,"-").concat(b),(t={},A()(t,"".concat(N,"-rtl"),h==="rtl"),A()(t,"".concat(N,"-align-").concat(L),L),t),y),R="".concat(N,"-item"),k=h==="rtl"?"marginLeft":"marginRight";return S.createElement("div",x()({className:D},_),S.Children.map(E,function(M,U){return S.createElement("div",{className:R,key:"".concat(R,"-").concat(U),style:U===I-1||M===null||M===void 0?{}:A()({},b==="vertical"?"marginBottom":k,typeof m=="string"?i[m]:m)},M)}))};F.a=n},zoYe:function(H,F,d){var O=d("nmnc"),x=d("eUgh"),C=d("Z0cm"),A=d("/9aa"),S=1/0,g=O?O.prototype:void 0,f=g?g.toString:void 0;function c(o){if(typeof o=="string")return o;if(C(o))return x(o,c)+"";if(A(o))return f?f.call(o):"";var r=o+"";return r=="0"&&1/o==-S?"-0":r}H.exports=c},zuHt:function(H,F,d){var O=d("bYtY");function x(C){var A={};C.eachSeriesByType("map",function(S){var g=S.getMapType();if(S.getHostGeoModel()||A[g])return;var f={};O.each(S.seriesGroup,function(o){var r=o.coordinateSystem,i=o.originalData;o.get("showLegendSymbol")&&C.getComponent("legend")&&i.each(i.mapDimension("value"),function(n,e){var l=i.getName(e),t=r.getRegion(l);if(!t||isNaN(n))return;var a=f[l]||0,s=r.dataToPoint(t.center);f[l]=a+1,i.setItemLayout(e,{point:s,offset:a})})});var c=S.getData();c.each(function(o){var r=c.getName(o),i=c.getItemLayout(o)||{};i.showLabel=!f[r],c.setItemLayout(o,i)}),A[g]=!0})}H.exports=x}}]);
|